@cruxkit/icon 0.0.4 → 0.0.5
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 +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +132 -2
- package/dist/index.d.ts +132 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
10
|
<div align="center">
|
|
11
|
-
<img src="https://img.shields.io/badge/v-0.0.
|
|
11
|
+
<img src="https://img.shields.io/badge/v-0.0.5-black"/>
|
|
12
12
|
<a href="https://github.com/cruxkit-org"><img src="https://img.shields.io/badge/🔥-@cruxkit-black"/></a>
|
|
13
13
|
<br>
|
|
14
14
|
<img src="https://img.shields.io/badge/coverage-99%25-brightgreen" alt="Test Coverage" />
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
- ### Basic usage
|
|
55
55
|
|
|
56
56
|
```typescript
|
|
57
|
-
const
|
|
57
|
+
const arrowDown = Icon('arrow-down');
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
- ### With options
|
|
61
61
|
|
|
62
62
|
```typescript
|
|
63
|
-
const
|
|
64
|
-
name : '
|
|
63
|
+
const LargePrimaryarrow = Icon({
|
|
64
|
+
name : 'arrow-down',
|
|
65
65
|
size : 'xl',
|
|
66
66
|
color : '#111827',
|
|
67
67
|
});
|
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';var jsxRuntime=require('@minejs/jsx/jsx-runtime');var l={"chevron-down":{category:"chevron",viewBox:"0 0 24 24",svg:'<path d="M6 9L12 15L18 9" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>'}};var a={flag:{category:"ui",viewBox:"0 0 448 512",svg:'<path opacity=".4" fill="currentColor" d="M64 48l69-17.2c38.1-9.5 78.3-5.1 113.5 12.5 46.3 23.2 100.8 23.2 147.1 0l9.6-4.8C423.8 28.1 448 43.1 448 66.1l0 247.7c0 13.3-8.3 25.3-20.8 30l-34.7 13c-46.2 17.3-97.6 14.6-141.7-7.4-37.9-19-81.4-23.7-122.5-13.4L64 352 64 48z"/><path fill="currentColor" d="M32 0C49.7 0 64 14.3 64 32l0 448c0 17.7-14.3 32-32 32S0 497.7 0 480L0 32C0 14.3 14.3 0 32 0z"/>'},language:{category:"ui",viewBox:"0 0 576 512",svg:'<path opacity=".4" fill="currentColor" d="M258.8 467c58.2-131 80.2-180.5 128-288 5.1-11.6 16.6-19 29.2-19s24.1 7.4 29.2 19l128 288c7.2 16.2-.1 35.1-16.2 42.2s-35.1-.1-42.2-16.2l-20-45-157.5 0-20 45c-7.2 16.2-26.1 23.4-42.2 16.2s-23.4-26.1-16.2-42.2zm106.9-83L466.3 384 416 270.8 365.7 384z"/><path fill="currentColor" d="M160 0c17.7 0 32 14.3 32 32l0 32 128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-9.6 0-8.4 23.1c-16.4 45.2-41.1 86.5-72.2 122 14.2 8.8 29 16.6 44.4 23.5l50.4 22.4-26 58.5-50.4-22.4c-23-10.2-45-22.4-65.8-36.4-21.3 17.2-44.6 32.2-69.5 44.7L78.3 380.6c-15.8 7.9-35 1.5-42.9-14.3s-1.5-35 14.3-42.9l34.5-17.3c16.3-8.2 31.8-17.7 46.4-28.3-13.8-12.7-26.8-26.4-38.9-40.9L71.4 212.5c-11.3-13.6-9.5-33.8 4.1-45.1s33.8-9.5 45.1 4.1l20.3 24.4c11.5 13.9 24.1 26.8 37.4 38.7 27.5-30.4 49.2-66.1 63.5-105.4l.5-1.2-210.3 0C14.3 128 0 113.7 0 96S14.3 64 32 64l96 0 0-32c0-17.7 14.3-32 32-32z"/>'},moon:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"/><path fill="currentColor" d=""/>'},sun:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24zM75 75c9.4-9.4 24.6-9.4 33.9 0l39.6 39.6c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L75 108.9c-9.4-9.4-9.4-24.6 0-33.9zm0 328.1l39.6-39.6c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L108.9 437c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zM232 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zm0 408c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zM363.5 114.6L403.1 75c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-39.6 39.6c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zm0 248.9c9.4-9.4 24.6-9.4 33.9 0L437 403.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-39.6-39.6c-9.4-9.4-9.4-24.6 0-33.9zM408 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24z"/><path fill="currentColor" d="M144 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0z"/>'},user:{category:"ui",viewBox:"0 0 448 512",svg:'<path fill="currentColor" d="M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"/>'}};var n={...l,...a},c={chevron:["chevron-down"],ui:["flag","language","moon","sun","user"]};var g={xs:"0.75rem",sm:"1rem",md:"1.25rem",lg:"1.5rem",xl:"2rem",xxl:"2.5rem"};function z(e){let o=typeof e=="string"?{name:e}:e,t=null;if(o.name&&o.name in n?t=n[o.name]:o.svg&&(t={viewBox:o.viewBox||"0 0 24 24",svg:o.svg}),!t)return o.name?console.warn(`Icon "${o.name}" not found in catalog`):console.warn("Icon configuration is invalid"),null;let r=o.size,i=typeof r=="number"?`${r}px`:g[r||"md"],s={width:i,height:i,display:"inline-block",verticalAlign:"middle",lineHeight:"1",flexShrink:"0"};return o.color&&(s.color=o.color),jsxRuntime.jsx("svg",{style:s,viewBox:t.viewBox,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",dangerouslySetInnerHTML:{__html:t.svg}})}function B(e){return e in n}function N(){return Object.keys(n)}function k(e){return c[e]||[]}function M(){return Object.keys(c)}
|
|
2
|
-
exports.Icon=
|
|
1
|
+
'use strict';var jsxRuntime=require('@minejs/jsx/jsx-runtime');var i={"arrow-down":{category:"arrows",viewBox:"0 0 384 512",svg:'<path opacity=".4" fill="currentColor" d="M160 32l0 370.7 32 32 32-32 0-370.7c0-17.7-14.3-32-32-32s-32 14.3-32 32z"/><path fill="currentColor" d="M214.6 502.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 434.7 329.4 297.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160z"/>'},"arrow-left":{category:"arrows",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M77.3 256l32 32 370.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0-32 32z"/><path fill="currentColor" d="M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L77.3 256 214.6 393.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-160-160z"/>'}};var a={"bars-filter":{category:"bars",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M96 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32z"/><path fill="currentColor" d="M512 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l448 0c17.7 0 32-14.3 32-32zM320 416c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c17.7 0 32-14.3 32-32z"/>'},"bars-sort":{category:"bars",viewBox:"0 0 448 512",svg:'<path opacity=".4" fill="currentColor" d="M0 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"/><path fill="currentColor" d="M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zM192 416c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32z"/>'},"bars-staggered":{category:"bars",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M64 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 288c-17.7 0-32-14.3-32-32z"/><path fill="currentColor" d="M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zm0 320c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32z"/>'},bars:{category:"bars",viewBox:"0 0 448 512",svg:'<path opacity=".4" fill="currentColor" d="M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"/><path fill="currentColor" d="M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zm0 320c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32z"/>'}};var p={"chevron-down":{category:"chevron",viewBox:"0 0 448 512",svg:'<path opacity=".4" fill="currentColor" d="M246.6 406.6c-12.5 12.5-32.8 12.5-45.3 0l-192-192c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 338.7 393.4 169.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-192 192z"/><path fill="currentColor" d=""/>'},"chevron-left":{category:"chevron",viewBox:"0 0 320 512",svg:'<path opacity=".4" fill="currentColor" d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"/><path fill="currentColor" d=""/>'}};var g={a:{category:"letters",viewBox:"0 0 384 512",svg:'<path opacity=".4" fill="currentColor" d="M221.5 51.7C216.6 39.8 204.9 32 192 32s-24.6 7.8-29.5 19.7c-93.3 224-146.7 352-160 384-6.8 16.3 .9 35 17.2 41.8s35-.9 41.8-17.2l31.8-76.3 197.3 0 31.8 76.3c6.8 16.3 25.5 24 41.8 17.2s24-25.5 17.2-41.8c-13.3-32-66.7-160-160-384zM264 320l-144 0 72-172.8 72 172.8z"/><path fill="currentColor" d=""/>'},ain:{category:"letters",viewBox:"0 0 384 512",svg:'<g transform="translate(49 38) scale(6)"><path opacity=".4" fill="currentColor" d="M25.833,5.083c0,0-3.918-5.083-9.084-5.083S3.999,10.167,3.999,17.417c0,4.333,6.584,7,6.584,7 S0,33.084,0,48.417S14,72.5,26.25,72.5c4.667,0,21.417-8.833,21.417-8.833v-0.75c0,0-6.666,0-15.583,0s-27.25-7.583-27.25-19.75 c0-16.479,20.666-20.75,20.666-20.75s1.334-1.334,3.584-4.917s3.083-5.833,3.083-5.833s-4,1.166-8,3.083S18.001,19,15.834,19 s-8.417-3.582-8.417-5.666s3.917-6.25,9.667-7.5S25.833,5.083,25.833,5.083z"/></g><path fill="currentColor" d=""/>'}};var f={"shield-check":{category:"shield",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.7 0 172.4-82.5 213.2-263.9 213.7-363.2 .1-26.2-16.3-47.9-38.3-57.2L269.4 2.9C265.3 1 260.7 0 256.1 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM166.8 293.5c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-9 33.9 .6 8.8 9.1 17.7 18.3 26.5 27.4 28.5-39.2 57.1-78.5 85.6-117.7 7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5c-34.1 46.9-68.3 93.9-102.4 140.8-4.2 5.7-10.7 9.4-17.8 9.8s-14-2.2-18.9-7.3c-15.5-16-30.9-32-46.4-48z"/><path fill="currentColor" d="M313.4 169.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L249.8 338.9c-4.2 5.7-10.7 9.4-17.8 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9s24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7z"/>'},"shield-exclamation":{category:"shield",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.7 0 172.3-82.5 213.2-263.9 213.7-363.2 .1-26.2-16.3-47.9-38.3-57.2L268.5 2.5c-3.8-1.6-8.1-2.5-12.2-2.5-4.4 0-8.7 .8-12.8 2.5L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM288 336a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM224.7 145.7C223.4 127.5 237.8 112 256 112s32.7 15.5 31.4 33.7l-7.4 104c-.9 12.6-11.4 22.3-23.9 22.3s-23-9.7-23.9-22.3l-7.4-104z"/><path fill="currentColor" d="M256 368a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm0-256c18.3 0 32.7 15.5 31.4 33.7l-7.4 104c-.9 12.6-11.4 22.3-23.9 22.3s-23-9.7-23.9-22.3l-7.4-104C223.4 127.5 237.8 112 256 112z"/>'},"shield-halved":{category:"shield",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M16.2 140c.5 99.2 41.3 280.7 213.6 363.2 8.3 4 17.4 6 26.4 6 9.3 .1 18.6-1.9 27.1-6 172.4-82.5 213.1-264 213.6-363.2 .1-26.2-16.3-47.9-38.3-57.2L270.3 2.9C266.1 1 261.6 0 256.9 0l-.4 0c-5.7 .2-9.9 1.2-13.7 2.9L54.5 82.8c-22 9.3-38.4 31-38.3 57.2z"/><path fill="currentColor" d="M256.2 0c-4.6 0-9.2 1-13.3 2.9L54.5 82.8c-22 9.3-38.4 31-38.3 57.2 .5 99.2 41.3 280.7 213.6 363.2 8.3 4 17.4 6 26.4 6L256.2 0z"/>'},"shield-minus":{category:"shield",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.8 0 172.4-82.5 213.2-264 213.6-363.2 .1-26.2-16.3-47.9-38.3-57.2L269.4 2.9C265.2 1 260.7 0 256 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM160 240c0-13.3 10.7-24 24-24l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24z"/><path fill="currentColor" d="M160 240c0-13.3 10.7-24 24-24l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24z"/>'},"shield-slash":{category:"shield",viewBox:"0 0 576 512",svg:'<path opacity=".4" fill="currentColor" d="M48 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.8 0 27.5-13.1 51.6-28.8 72.7-46.2L51 120.8c-2 6-3 12.4-3 19.2z"/><path fill="currentColor" d="M7-24.9c9.4-9.4 24.6-9.4 33.9 0L130.1 64.2 274.7 2.9C278.8 1 283.4 0 288 0s9.2 1 13.4 2.9L489.7 82.8c22 9.3 38.4 31 38.3 57.2-.3 64.1-17.4 162.4-75.9 246.3L569 503.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L7 9.1C-2.3-.3-2.3-15.5 7-24.9z"/>'},shield:{category:"shield",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M256 0c4.6 0 9.2 1 13.4 2.9L457.8 82.8c22 9.3 38.4 31 38.3 57.2-.5 99.2-41.3 280.7-213.6 363.2-16.7 8-36.1 8-52.8 0-172.4-82.5-213.1-264-213.6-363.2-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.9 1 251.4 0 256 0z"/><path fill="currentColor" d=""/>'}};var u={asterisk:{category:"ui",viewBox:"0 0 448 512",svg:'<path opacity=".4" fill="currentColor" d="M224 0c17.7 0 32 14.3 32 32l0 168.6 144-83.1c15.3-8.8 34.9-3.6 43.7 11.7s3.6 34.9-11.7 43.7L288 256 432 339.1c15.3 8.8 20.6 28.4 11.7 43.7s-28.4 20.6-43.7 11.7L256 311.4 256 480c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-168.6-144 83.1c-15.3 8.8-34.9 3.6-43.7-11.7S.7 348 16 339.1L160 256 16 172.9C.7 164-4.5 144.5 4.3 129.1S32.7 108.6 48 117.4L192 200.6 192 32c0-17.7 14.3-32 32-32z"/><path fill="currentColor" d=""/>'},door:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M152 216l0 272c0 13.3 10.7 24 24 24s24-10.7 24-24l0-272c0-13.3-10.7-24-24-24s-24 10.7-24 24zm80-32l0 304c0 13.3 10.7 24 24 24s24-10.7 24-24l0-304c0-13.3-10.7-24-24-24s-24 10.7-24 24zm80 32l0 272c0 13.3 10.7 24 24 24s24-10.7 24-24l0-272c0-13.3-10.7-24-24-24s-24 10.7-24 24z"/><path fill="currentColor" d="M340.5 108.6l35.1-52.6c7.1-10.7 21.5-14 31.8-6.4 20.6 15.1 38.8 33.3 54.1 53.8 7.8 10.5 4.3 25.3-6.9 32.2l-54.1 33.8c-11.4 7.1-26.3 3.3-35.1-6.9-5.5-6.4-11.5-12.3-18-17.7-10.8-8.9-14.8-24.6-7-36.2zM315.6 7c15.1 3.6 20.8 21.2 12.2 34.1l-40 60c-5.2 7.8-14.5 11.7-23.9 11.2-5.2-.3-10.6-.3-15.8 0-9.4 .5-18.7-3.4-23.9-11.2l-40-60c-8.6-12.9-2.9-30.5 12.2-34.1 19.1-4.6 39.1-7 59.6-7s40.4 2.4 59.6 7zM57.4 135.5c-11.2-7-14.7-21.7-6.9-32.2 15.3-20.5 33.5-38.6 54.1-53.8 10.4-7.6 24.7-4.3 31.8 6.4l35.1 52.6c7.8 11.6 3.8 27.3-7 36.2-6.5 5.4-12.5 11.3-18 17.7-8.7 10.2-23.6 14-35.1 6.9L57.4 135.5zM112 256l0 24c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-24c0-21.2 2.6-41.8 7.5-61.6 3.6-14.7 20.7-20.5 33.6-12.5l59.7 37.3c8.4 5.3 12.6 15.2 11.8 25.1-.3 3.8-.5 7.7-.5 11.6zm299.3-36.8L471 182c12.9-8 29.9-2.3 33.6 12.5 4.9 19.7 7.5 40.3 7.5 61.6l0 24c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-24c0-3.9-.2-7.8-.5-11.6-.8-9.9 3.3-19.9 11.8-25.1zM112 376l0 112c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24L0 376c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24zm400 0l0 112c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24z"/>'},flag:{category:"ui",viewBox:"0 0 448 512",svg:'<path opacity=".4" fill="currentColor" d="M64 48l69-17.2c38.1-9.5 78.3-5.1 113.5 12.5 46.3 23.2 100.8 23.2 147.1 0l9.6-4.8C423.8 28.1 448 43.1 448 66.1l0 247.7c0 13.3-8.3 25.3-20.8 30l-34.7 13c-46.2 17.3-97.6 14.6-141.7-7.4-37.9-19-81.4-23.7-122.5-13.4L64 352 64 48z"/><path fill="currentColor" d="M32 0C49.7 0 64 14.3 64 32l0 448c0 17.7-14.3 32-32 32S0 497.7 0 480L0 32C0 14.3 14.3 0 32 0z"/>'},gear:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M208.3 256a47.7 47.7 0 1 0 95.4 0 47.7 47.7 0 1 0 -95.4 0z"/><path fill="currentColor" d="M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 352a96 96 0 1 0 -.6-192 96 96 0 1 0 .6 192z"/>'},house:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M48 267.7c2-1.2 4-2.6 5.8-4.3L256 75.7 458.2 263.4c1.8 1.7 3.7 3.1 5.8 4.3L464 448c0 35.3-28.7 64-64 64l-80 0 0-128c0-26.5-21.5-48-48-48l-32 0c-26.5 0-48 21.5-48 48l0 128-80 0c-35.3 0-64-28.7-64-64l0-180.3z"/><path fill="currentColor" d="M277.8 8.6c-12.3-11.4-31.3-11.4-43.5 0l-224 208c-13 12-13.7 32.3-1.7 45.2s32.3 13.7 45.2 1.7L256 75.7 458.2 263.4c13 12 33.2 11.3 45.2-1.7s11.3-33.2-1.7-45.2l-224-208zM240 336c-26.5 0-48 21.5-48 48l0 128 128 0 0-128c0-26.5-21.5-48-48-48l-32 0z"/>'},"key-skeleton":{category:"ui",viewBox:"0 0 448 512",svg:'<path opacity=".4" fill="currentColor" d="M9.4 393.4c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 416 96 397.3 137.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-41.4-41.4 86.1-86.1c-18.3-11.5-33.8-27-45.3-45.3L9.4 393.4z"/><path fill="currentColor" d="M304 64a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 224a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/>'},key:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M0 408l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7L282.3 343.7 168.3 229.7 7 391c-4.5 4.5-7 10.6-7 17z"/><path fill="currentColor" d="M168.3 229.7L282.3 343.7c16.9 5.4 35 8.3 53.7 8.3 97.2 0 176-78.8 176-176S433.2 0 336 0 160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7zM336 136a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z"/>'},language:{category:"ui",viewBox:"0 0 576 512",svg:'<path opacity=".4" fill="currentColor" d="M258.8 467c58.2-131 80.2-180.5 128-288 5.1-11.6 16.6-19 29.2-19s24.1 7.4 29.2 19l128 288c7.2 16.2-.1 35.1-16.2 42.2s-35.1-.1-42.2-16.2l-20-45-157.5 0-20 45c-7.2 16.2-26.1 23.4-42.2 16.2s-23.4-26.1-16.2-42.2zm106.9-83L466.3 384 416 270.8 365.7 384z"/><path fill="currentColor" d="M160 0c17.7 0 32 14.3 32 32l0 32 128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-9.6 0-8.4 23.1c-16.4 45.2-41.1 86.5-72.2 122 14.2 8.8 29 16.6 44.4 23.5l50.4 22.4-26 58.5-50.4-22.4c-23-10.2-45-22.4-65.8-36.4-21.3 17.2-44.6 32.2-69.5 44.7L78.3 380.6c-15.8 7.9-35 1.5-42.9-14.3s-1.5-35 14.3-42.9l34.5-17.3c16.3-8.2 31.8-17.7 46.4-28.3-13.8-12.7-26.8-26.4-38.9-40.9L71.4 212.5c-11.3-13.6-9.5-33.8 4.1-45.1s33.8-9.5 45.1 4.1l20.3 24.4c11.5 13.9 24.1 26.8 37.4 38.7 27.5-30.4 49.2-66.1 63.5-105.4l.5-1.2-210.3 0C14.3 128 0 113.7 0 96S14.3 64 32 64l96 0 0-32c0-17.7 14.3-32 32-32z"/>'},"lock-keyhole":{category:"ui",viewBox:"0 0 384 512",svg:'<path opacity=".4" fill="currentColor" d="M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64s64 28.7 64 64l0 64 64 0 0-64c0-70.7-57.3-128-128-128S64 25.3 64 96z"/><path fill="currentColor" d="M64 160c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L64 160zM216 296l0 80c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24s24 10.7 24 24z"/>'},lock:{category:"ui",viewBox:"0 0 384 512",svg:'<path opacity=".4" fill="currentColor" d="M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64s64 28.7 64 64l0 64 64 0 0-64c0-70.7-57.3-128-128-128S64 25.3 64 96z"/><path fill="currentColor" d="M64 160l256 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"/>'},moon:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"/><path fill="currentColor" d=""/>'},search:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M64 208a144 144 0 1 0 288 0 144 144 0 1 0 -288 0z"/><path fill="currentColor" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/>'},sun:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24zM75 75c9.4-9.4 24.6-9.4 33.9 0l39.6 39.6c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L75 108.9c-9.4-9.4-9.4-24.6 0-33.9zm0 328.1l39.6-39.6c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L108.9 437c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zM232 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zm0 408c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zM363.5 114.6L403.1 75c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-39.6 39.6c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zm0 248.9c9.4-9.4 24.6-9.4 33.9 0L437 403.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-39.6-39.6c-9.4-9.4-9.4-24.6 0-33.9zM408 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24z"/><path fill="currentColor" d="M144 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0z"/>'},"unlock-keyhole":{category:"ui",viewBox:"0 0 384 512",svg:'<path opacity=".4" fill="currentColor" d="M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64 31.7 0 58 23 63.1 53.3 2.9 17.4 19.4 29.2 36.9 26.3s29.2-19.4 26.3-36.9C308.1 14.1 255.5-32 192-32 121.3-32 64 25.3 64 96z"/><path fill="currentColor" d="M64 160c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L64 160zM232 360l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24s-10.7 24-24 24z"/>'},unlock:{category:"ui",viewBox:"0 0 384 512",svg:'<path opacity=".4" fill="currentColor" d="M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64 31.7 0 58 23 63.1 53.3 2.9 17.4 19.4 29.2 36.9 26.3s29.2-19.4 26.3-36.9C308.1 14.1 255.5-32 192-32 121.3-32 64 25.3 64 96z"/><path fill="currentColor" d="M0 224c0-35.3 28.7-64 64-64l256 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224z"/>'},user:{category:"ui",viewBox:"0 0 448 512",svg:'<path fill="currentColor" d="M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"/>'}};var l={...i,...a,...p,...g,...f,...u},t={arrows:["arrow-down","arrow-left"],bars:["bars-filter","bars-sort","bars-staggered","bars"],chevron:["chevron-down","chevron-left"],letters:["a","ain"],shield:["shield-check","shield-exclamation","shield-halved","shield-minus","shield-slash","shield"],ui:["asterisk","door","flag","gear","house","key-skeleton","key","language","lock-keyhole","lock","moon","search","sun","unlock-keyhole","unlock","user"]};var h={xs:"0.75rem",sm:"1rem",md:"1.25rem",lg:"1.5rem",xl:"2rem",xxl:"2.5rem"};function D(c){let o=typeof c=="string"?{name:c}:c,r=null;if(o.name&&o.name in l?r=l[o.name]:o.svg&&(r={viewBox:o.viewBox||"0 0 24 24",svg:o.svg}),!r)return o.name?console.warn(`Icon "${o.name}" not found in catalog`):console.warn("Icon configuration is invalid"),null;let e=o.size,s=typeof e=="number"?`${e}px`:h[e||"md"],n={width:s,height:s,display:"inline-block",verticalAlign:"middle",lineHeight:"1",flexShrink:"0"};return o.color&&(n.color=o.color),jsxRuntime.jsx("svg",{style:n,viewBox:r.viewBox,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",dangerouslySetInnerHTML:{__html:r.svg}})}function H(c){return c in l}function J(){return Object.keys(l)}function O(c){return t[c]||[]}function X(){return Object.keys(t)}
|
|
2
|
+
exports.Icon=D;exports.getIconCategories=X;exports.getIconNames=J;exports.getIconsByCategory=O;exports.iconCatalog=l;exports.iconExists=H;exports.sizeMap=h;//# sourceMappingURL=index.cjs.map
|
|
3
3
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/kit/categories/chevron.ts","../src/kit/categories/ui.ts","../src/kit/categories/index.ts","../src/kit/icon.tsx"],"names":["chevronIcons","uiIcons","iconCatalog","iconsByCategory","sizeMap","Icon","props","cfg","iconData","sizeValue","size","style","jsx","iconExists","name","getIconNames","getIconsByCategory","category","getIconCategories"],"mappings":"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","file":"index.cjs","sourcesContent":["export const chevronIcons = {\n 'chevron-down': {\n category: 'chevron',\n viewBox: '0 0 24 24',\n svg: `<path d=\"M6 9L12 15L18 9\" stroke=\"#000000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>`,\n },\n} as const;\n\nexport type ChevronIconName = keyof typeof chevronIcons;\n","export const uiIcons = {\n 'flag': {\n category: 'ui',\n viewBox: '0 0 448 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 48l69-17.2c38.1-9.5 78.3-5.1 113.5 12.5 46.3 23.2 100.8 23.2 147.1 0l9.6-4.8C423.8 28.1 448 43.1 448 66.1l0 247.7c0 13.3-8.3 25.3-20.8 30l-34.7 13c-46.2 17.3-97.6 14.6-141.7-7.4-37.9-19-81.4-23.7-122.5-13.4L64 352 64 48z\"/><path fill=\"currentColor\" d=\"M32 0C49.7 0 64 14.3 64 32l0 448c0 17.7-14.3 32-32 32S0 497.7 0 480L0 32C0 14.3 14.3 0 32 0z\"/>`,\n },\n 'language': {\n category: 'ui',\n viewBox: '0 0 576 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M258.8 467c58.2-131 80.2-180.5 128-288 5.1-11.6 16.6-19 29.2-19s24.1 7.4 29.2 19l128 288c7.2 16.2-.1 35.1-16.2 42.2s-35.1-.1-42.2-16.2l-20-45-157.5 0-20 45c-7.2 16.2-26.1 23.4-42.2 16.2s-23.4-26.1-16.2-42.2zm106.9-83L466.3 384 416 270.8 365.7 384z\"/><path fill=\"currentColor\" d=\"M160 0c17.7 0 32 14.3 32 32l0 32 128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-9.6 0-8.4 23.1c-16.4 45.2-41.1 86.5-72.2 122 14.2 8.8 29 16.6 44.4 23.5l50.4 22.4-26 58.5-50.4-22.4c-23-10.2-45-22.4-65.8-36.4-21.3 17.2-44.6 32.2-69.5 44.7L78.3 380.6c-15.8 7.9-35 1.5-42.9-14.3s-1.5-35 14.3-42.9l34.5-17.3c16.3-8.2 31.8-17.7 46.4-28.3-13.8-12.7-26.8-26.4-38.9-40.9L71.4 212.5c-11.3-13.6-9.5-33.8 4.1-45.1s33.8-9.5 45.1 4.1l20.3 24.4c11.5 13.9 24.1 26.8 37.4 38.7 27.5-30.4 49.2-66.1 63.5-105.4l.5-1.2-210.3 0C14.3 128 0 113.7 0 96S14.3 64 32 64l96 0 0-32c0-17.7 14.3-32 32-32z\"/>`,\n },\n 'moon': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z\"/><path fill=\"currentColor\" d=\"\"/>`,\n },\n 'sun': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M0 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24zM75 75c9.4-9.4 24.6-9.4 33.9 0l39.6 39.6c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L75 108.9c-9.4-9.4-9.4-24.6 0-33.9zm0 328.1l39.6-39.6c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L108.9 437c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zM232 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zm0 408c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zM363.5 114.6L403.1 75c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-39.6 39.6c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zm0 248.9c9.4-9.4 24.6-9.4 33.9 0L437 403.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-39.6-39.6c-9.4-9.4-9.4-24.6 0-33.9zM408 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24z\"/><path fill=\"currentColor\" d=\"M144 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0z\"/>`,\n },\n 'user': {\n category: 'ui',\n viewBox: '0 0 448 512',\n svg: `<path fill=\"currentColor\" d=\"M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z\"/>`,\n },\n} as const;\n\nexport type UiIconName = keyof typeof uiIcons;\n","import { chevronIcons } from './chevron';\nimport { uiIcons } from './ui';\n\nexport const iconCatalog = {\n ...chevronIcons,\n ...uiIcons,\n} as const;\n\nexport type IconName = keyof typeof iconCatalog;\n\nexport const iconsByCategory = {\n 'chevron': ['chevron-down'],\n 'ui': ['flag', 'language', 'moon', 'sun', 'user'],\n} as const;\n","// src/kit/icon.tsx\r\n//\r\n// Made with ❤️ by Maysara.\r\n\r\n\r\n\r\n// ╔════════════════════════════════════════ PACK ════════════════════════════════════════╗\r\n\r\n import { JSXElement } from '@minejs/jsx';\r\n import { IconProps, iconCatalog, type IconName } from '../types';\r\n import { iconsByCategory } from './categories';\r\n\r\n// ╚══════════════════════════════════════════════════════════════════════════════════════╝\r\n\r\n\r\n\r\n// ╔════════════════════════════════════════ INIT ════════════════════════════════════════╗\r\n\r\n export const sizeMap: Record<string, string> = {\r\n xs : '0.75rem',\r\n sm : '1rem',\r\n md : '1.25rem',\r\n lg : '1.5rem',\r\n xl : '2rem',\r\n 'xxl' : '2.5rem'\r\n };\r\n\r\n// ╚══════════════════════════════════════════════════════════════════════════════════════╝\r\n\r\n\r\n\r\n// ╔════════════════════════════════════════ CORE ════════════════════════════════════════╗\r\n\r\n /**\r\n * Icon Component\r\n * Renders inline SVG icons with various options\r\n *\r\n * @example\r\n * Icon('check')\r\n * Icon({ name: 'spinner', spin: true, size: 'lg' })\r\n */\r\n export function Icon(props: IconProps) : JSXElement | null {\r\n\r\n interface IconLikeConfig {\r\n name? : string\r\n size? : number | string\r\n color? : string\r\n svg? : string\r\n viewBox? : string\r\n }\r\n\r\n const config = typeof props === 'string' ? { name: props } : props;\r\n const cfg = config as IconLikeConfig;\r\n\r\n let iconData: { viewBox: string; svg: string } | null = null;\r\n\r\n if (cfg.name && cfg.name in iconCatalog) {\r\n iconData = iconCatalog[cfg.name as IconName] as { viewBox: string; svg: string };\r\n } else if (cfg.svg) {\r\n iconData = {\r\n viewBox : cfg.viewBox || '0 0 24 24',\r\n svg : cfg.svg\r\n };\r\n }\r\n\r\n if (!iconData) {\r\n if (cfg.name) {\r\n console.warn(`Icon \"${cfg.name}\" not found in catalog`);\r\n } else {\r\n console.warn('Icon configuration is invalid');\r\n }\r\n return null;\r\n }\r\n\r\n const sizeValue = cfg.size;\r\n\r\n const size = typeof sizeValue === 'number'\r\n ? `${sizeValue}px`\r\n : sizeMap[sizeValue || 'md'];\r\n\r\n const style: Record<string, string> = {\r\n width : size,\r\n height : size,\r\n display : 'inline-block',\r\n verticalAlign : 'middle',\r\n lineHeight : '1',\r\n flexShrink : '0'\r\n };\r\n\r\n if (cfg.color) style.color = cfg.color;\r\n\r\n return (\r\n <svg\r\n style = {style}\r\n viewBox = {iconData.viewBox}\r\n fill = \"currentColor\"\r\n xmlns = \"http://www.w3.org/2000/svg\"\r\n aria-hidden = \"true\"\r\n role = \"img\"\r\n dangerouslySetInnerHTML = {{\r\n __html : iconData.svg\r\n }}\r\n />\r\n );\r\n }\r\n\r\n /**\r\n * Utility function to check if an icon exists\r\n */\r\n export function iconExists(name: string): name is IconName {\r\n return name in iconCatalog;\r\n }\r\n\r\n /**\r\n * Get all available icon names\r\n */\r\n export function getIconNames(): IconName[] {\r\n return Object.keys(iconCatalog) as IconName[];\r\n }\r\n\r\n /**\r\n * Get icons by category\r\n */\r\n export function getIconsByCategory(category: string): IconName[] {\r\n return (iconsByCategory[category as keyof typeof iconsByCategory] || []) as unknown as IconName[];\r\n }\r\n\r\n /**\r\n * Get all available categories\r\n */\r\n export function getIconCategories(): string[] {\r\n return Object.keys(iconsByCategory);\r\n }\r\n\r\n// ╚══════════════════════════════════════════════════════════════════════════════════════╝\r\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/kit/categories/arrows.ts","../src/kit/categories/bars.ts","../src/kit/categories/chevron.ts","../src/kit/categories/letters.ts","../src/kit/categories/shield.ts","../src/kit/categories/ui.ts","../src/kit/categories/index.ts","../src/kit/icon.tsx"],"names":["arrowsIcons","barsIcons","chevronIcons","lettersIcons","shieldIcons","uiIcons","iconCatalog","iconsByCategory","sizeMap","Icon","props","cfg","iconData","sizeValue","size","style","jsx","iconExists","name","getIconNames","getIconsByCategory","category","getIconCategories"],"mappings":"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","file":"index.cjs","sourcesContent":["export const arrowsIcons = {\n 'arrow-down': {\n category: 'arrows',\n viewBox: '0 0 384 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M160 32l0 370.7 32 32 32-32 0-370.7c0-17.7-14.3-32-32-32s-32 14.3-32 32z\"/><path fill=\"currentColor\" d=\"M214.6 502.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 434.7 329.4 297.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160z\"/>`,\n },\n 'arrow-left': {\n category: 'arrows',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M77.3 256l32 32 370.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0-32 32z\"/><path fill=\"currentColor\" d=\"M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L77.3 256 214.6 393.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-160-160z\"/>`,\n },\n} as const;\n\nexport type ArrowsIconName = keyof typeof arrowsIcons;\n","export const barsIcons = {\n 'bars-filter': {\n category: 'bars',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M96 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M512 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l448 0c17.7 0 32-14.3 32-32zM320 416c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c17.7 0 32-14.3 32-32z\"/>`,\n },\n 'bars-sort': {\n category: 'bars',\n viewBox: '0 0 448 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M0 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zM192 416c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32z\"/>`,\n },\n 'bars-staggered': {\n category: 'bars',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 288c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zm0 320c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32z\"/>`,\n },\n 'bars': {\n category: 'bars',\n viewBox: '0 0 448 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zm0 320c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32z\"/>`,\n },\n} as const;\n\nexport type BarsIconName = keyof typeof barsIcons;\n","export const chevronIcons = {\n 'chevron-down': {\n category: 'chevron',\n viewBox: '0 0 448 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M246.6 406.6c-12.5 12.5-32.8 12.5-45.3 0l-192-192c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 338.7 393.4 169.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-192 192z\"/><path fill=\"currentColor\" d=\"\"/>`,\n },\n 'chevron-left': {\n category: 'chevron',\n viewBox: '0 0 320 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/><path fill=\"currentColor\" d=\"\"/>`,\n },\n} as const;\n\nexport type ChevronIconName = keyof typeof chevronIcons;\n","export const lettersIcons = {\n 'a': {\n category: 'letters',\n viewBox: '0 0 384 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M221.5 51.7C216.6 39.8 204.9 32 192 32s-24.6 7.8-29.5 19.7c-93.3 224-146.7 352-160 384-6.8 16.3 .9 35 17.2 41.8s35-.9 41.8-17.2l31.8-76.3 197.3 0 31.8 76.3c6.8 16.3 25.5 24 41.8 17.2s24-25.5 17.2-41.8c-13.3-32-66.7-160-160-384zM264 320l-144 0 72-172.8 72 172.8z\"/><path fill=\"currentColor\" d=\"\"/>`,\n },\n 'ain': {\n category: 'letters',\n viewBox: '0 0 384 512',\n svg: `<g transform=\"translate(49 38) scale(6)\"><path opacity=\".4\" fill=\"currentColor\" d=\"M25.833,5.083c0,0-3.918-5.083-9.084-5.083S3.999,10.167,3.999,17.417c0,4.333,6.584,7,6.584,7 S0,33.084,0,48.417S14,72.5,26.25,72.5c4.667,0,21.417-8.833,21.417-8.833v-0.75c0,0-6.666,0-15.583,0s-27.25-7.583-27.25-19.75 c0-16.479,20.666-20.75,20.666-20.75s1.334-1.334,3.584-4.917s3.083-5.833,3.083-5.833s-4,1.166-8,3.083S18.001,19,15.834,19 s-8.417-3.582-8.417-5.666s3.917-6.25,9.667-7.5S25.833,5.083,25.833,5.083z\"/></g><path fill=\"currentColor\" d=\"\"/>`,\n },\n} as const;\n\nexport type LettersIconName = keyof typeof lettersIcons;\n","export const shieldIcons = {\n 'shield-check': {\n category: 'shield',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.7 0 172.4-82.5 213.2-263.9 213.7-363.2 .1-26.2-16.3-47.9-38.3-57.2L269.4 2.9C265.3 1 260.7 0 256.1 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM166.8 293.5c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-9 33.9 .6 8.8 9.1 17.7 18.3 26.5 27.4 28.5-39.2 57.1-78.5 85.6-117.7 7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5c-34.1 46.9-68.3 93.9-102.4 140.8-4.2 5.7-10.7 9.4-17.8 9.8s-14-2.2-18.9-7.3c-15.5-16-30.9-32-46.4-48z\"/><path fill=\"currentColor\" d=\"M313.4 169.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L249.8 338.9c-4.2 5.7-10.7 9.4-17.8 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9s24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7z\"/>`,\n },\n 'shield-exclamation': {\n category: 'shield',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.7 0 172.3-82.5 213.2-263.9 213.7-363.2 .1-26.2-16.3-47.9-38.3-57.2L268.5 2.5c-3.8-1.6-8.1-2.5-12.2-2.5-4.4 0-8.7 .8-12.8 2.5L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM288 336a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM224.7 145.7C223.4 127.5 237.8 112 256 112s32.7 15.5 31.4 33.7l-7.4 104c-.9 12.6-11.4 22.3-23.9 22.3s-23-9.7-23.9-22.3l-7.4-104z\"/><path fill=\"currentColor\" d=\"M256 368a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm0-256c18.3 0 32.7 15.5 31.4 33.7l-7.4 104c-.9 12.6-11.4 22.3-23.9 22.3s-23-9.7-23.9-22.3l-7.4-104C223.4 127.5 237.8 112 256 112z\"/>`,\n },\n 'shield-halved': {\n category: 'shield',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M16.2 140c.5 99.2 41.3 280.7 213.6 363.2 8.3 4 17.4 6 26.4 6 9.3 .1 18.6-1.9 27.1-6 172.4-82.5 213.1-264 213.6-363.2 .1-26.2-16.3-47.9-38.3-57.2L270.3 2.9C266.1 1 261.6 0 256.9 0l-.4 0c-5.7 .2-9.9 1.2-13.7 2.9L54.5 82.8c-22 9.3-38.4 31-38.3 57.2z\"/><path fill=\"currentColor\" d=\"M256.2 0c-4.6 0-9.2 1-13.3 2.9L54.5 82.8c-22 9.3-38.4 31-38.3 57.2 .5 99.2 41.3 280.7 213.6 363.2 8.3 4 17.4 6 26.4 6L256.2 0z\"/>`,\n },\n 'shield-minus': {\n category: 'shield',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.8 0 172.4-82.5 213.2-264 213.6-363.2 .1-26.2-16.3-47.9-38.3-57.2L269.4 2.9C265.2 1 260.7 0 256 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM160 240c0-13.3 10.7-24 24-24l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24z\"/><path fill=\"currentColor\" d=\"M160 240c0-13.3 10.7-24 24-24l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24z\"/>`,\n },\n 'shield-slash': {\n category: 'shield',\n viewBox: '0 0 576 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M48 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.8 0 27.5-13.1 51.6-28.8 72.7-46.2L51 120.8c-2 6-3 12.4-3 19.2z\"/><path fill=\"currentColor\" d=\"M7-24.9c9.4-9.4 24.6-9.4 33.9 0L130.1 64.2 274.7 2.9C278.8 1 283.4 0 288 0s9.2 1 13.4 2.9L489.7 82.8c22 9.3 38.4 31 38.3 57.2-.3 64.1-17.4 162.4-75.9 246.3L569 503.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L7 9.1C-2.3-.3-2.3-15.5 7-24.9z\"/>`,\n },\n 'shield': {\n category: 'shield',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M256 0c4.6 0 9.2 1 13.4 2.9L457.8 82.8c22 9.3 38.4 31 38.3 57.2-.5 99.2-41.3 280.7-213.6 363.2-16.7 8-36.1 8-52.8 0-172.4-82.5-213.1-264-213.6-363.2-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.9 1 251.4 0 256 0z\"/><path fill=\"currentColor\" d=\"\"/>`,\n },\n} as const;\n\nexport type ShieldIconName = keyof typeof shieldIcons;\n","export const uiIcons = {\n 'asterisk': {\n category: 'ui',\n viewBox: '0 0 448 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M224 0c17.7 0 32 14.3 32 32l0 168.6 144-83.1c15.3-8.8 34.9-3.6 43.7 11.7s3.6 34.9-11.7 43.7L288 256 432 339.1c15.3 8.8 20.6 28.4 11.7 43.7s-28.4 20.6-43.7 11.7L256 311.4 256 480c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-168.6-144 83.1c-15.3 8.8-34.9 3.6-43.7-11.7S.7 348 16 339.1L160 256 16 172.9C.7 164-4.5 144.5 4.3 129.1S32.7 108.6 48 117.4L192 200.6 192 32c0-17.7 14.3-32 32-32z\"/><path fill=\"currentColor\" d=\"\"/>`,\n },\n 'door': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M152 216l0 272c0 13.3 10.7 24 24 24s24-10.7 24-24l0-272c0-13.3-10.7-24-24-24s-24 10.7-24 24zm80-32l0 304c0 13.3 10.7 24 24 24s24-10.7 24-24l0-304c0-13.3-10.7-24-24-24s-24 10.7-24 24zm80 32l0 272c0 13.3 10.7 24 24 24s24-10.7 24-24l0-272c0-13.3-10.7-24-24-24s-24 10.7-24 24z\"/><path fill=\"currentColor\" d=\"M340.5 108.6l35.1-52.6c7.1-10.7 21.5-14 31.8-6.4 20.6 15.1 38.8 33.3 54.1 53.8 7.8 10.5 4.3 25.3-6.9 32.2l-54.1 33.8c-11.4 7.1-26.3 3.3-35.1-6.9-5.5-6.4-11.5-12.3-18-17.7-10.8-8.9-14.8-24.6-7-36.2zM315.6 7c15.1 3.6 20.8 21.2 12.2 34.1l-40 60c-5.2 7.8-14.5 11.7-23.9 11.2-5.2-.3-10.6-.3-15.8 0-9.4 .5-18.7-3.4-23.9-11.2l-40-60c-8.6-12.9-2.9-30.5 12.2-34.1 19.1-4.6 39.1-7 59.6-7s40.4 2.4 59.6 7zM57.4 135.5c-11.2-7-14.7-21.7-6.9-32.2 15.3-20.5 33.5-38.6 54.1-53.8 10.4-7.6 24.7-4.3 31.8 6.4l35.1 52.6c7.8 11.6 3.8 27.3-7 36.2-6.5 5.4-12.5 11.3-18 17.7-8.7 10.2-23.6 14-35.1 6.9L57.4 135.5zM112 256l0 24c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-24c0-21.2 2.6-41.8 7.5-61.6 3.6-14.7 20.7-20.5 33.6-12.5l59.7 37.3c8.4 5.3 12.6 15.2 11.8 25.1-.3 3.8-.5 7.7-.5 11.6zm299.3-36.8L471 182c12.9-8 29.9-2.3 33.6 12.5 4.9 19.7 7.5 40.3 7.5 61.6l0 24c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-24c0-3.9-.2-7.8-.5-11.6-.8-9.9 3.3-19.9 11.8-25.1zM112 376l0 112c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24L0 376c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24zm400 0l0 112c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24z\"/>`,\n },\n 'flag': {\n category: 'ui',\n viewBox: '0 0 448 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 48l69-17.2c38.1-9.5 78.3-5.1 113.5 12.5 46.3 23.2 100.8 23.2 147.1 0l9.6-4.8C423.8 28.1 448 43.1 448 66.1l0 247.7c0 13.3-8.3 25.3-20.8 30l-34.7 13c-46.2 17.3-97.6 14.6-141.7-7.4-37.9-19-81.4-23.7-122.5-13.4L64 352 64 48z\"/><path fill=\"currentColor\" d=\"M32 0C49.7 0 64 14.3 64 32l0 448c0 17.7-14.3 32-32 32S0 497.7 0 480L0 32C0 14.3 14.3 0 32 0z\"/>`,\n },\n 'gear': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M208.3 256a47.7 47.7 0 1 0 95.4 0 47.7 47.7 0 1 0 -95.4 0z\"/><path fill=\"currentColor\" d=\"M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 352a96 96 0 1 0 -.6-192 96 96 0 1 0 .6 192z\"/>`,\n },\n 'house': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M48 267.7c2-1.2 4-2.6 5.8-4.3L256 75.7 458.2 263.4c1.8 1.7 3.7 3.1 5.8 4.3L464 448c0 35.3-28.7 64-64 64l-80 0 0-128c0-26.5-21.5-48-48-48l-32 0c-26.5 0-48 21.5-48 48l0 128-80 0c-35.3 0-64-28.7-64-64l0-180.3z\"/><path fill=\"currentColor\" d=\"M277.8 8.6c-12.3-11.4-31.3-11.4-43.5 0l-224 208c-13 12-13.7 32.3-1.7 45.2s32.3 13.7 45.2 1.7L256 75.7 458.2 263.4c13 12 33.2 11.3 45.2-1.7s11.3-33.2-1.7-45.2l-224-208zM240 336c-26.5 0-48 21.5-48 48l0 128 128 0 0-128c0-26.5-21.5-48-48-48l-32 0z\"/>`,\n },\n 'key-skeleton': {\n category: 'ui',\n viewBox: '0 0 448 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M9.4 393.4c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 416 96 397.3 137.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-41.4-41.4 86.1-86.1c-18.3-11.5-33.8-27-45.3-45.3L9.4 393.4z\"/><path fill=\"currentColor\" d=\"M304 64a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 224a144 144 0 1 0 0-288 144 144 0 1 0 0 288z\"/>`,\n },\n 'key': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M0 408l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7L282.3 343.7 168.3 229.7 7 391c-4.5 4.5-7 10.6-7 17z\"/><path fill=\"currentColor\" d=\"M168.3 229.7L282.3 343.7c16.9 5.4 35 8.3 53.7 8.3 97.2 0 176-78.8 176-176S433.2 0 336 0 160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7zM336 136a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z\"/>`,\n },\n 'language': {\n category: 'ui',\n viewBox: '0 0 576 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M258.8 467c58.2-131 80.2-180.5 128-288 5.1-11.6 16.6-19 29.2-19s24.1 7.4 29.2 19l128 288c7.2 16.2-.1 35.1-16.2 42.2s-35.1-.1-42.2-16.2l-20-45-157.5 0-20 45c-7.2 16.2-26.1 23.4-42.2 16.2s-23.4-26.1-16.2-42.2zm106.9-83L466.3 384 416 270.8 365.7 384z\"/><path fill=\"currentColor\" d=\"M160 0c17.7 0 32 14.3 32 32l0 32 128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-9.6 0-8.4 23.1c-16.4 45.2-41.1 86.5-72.2 122 14.2 8.8 29 16.6 44.4 23.5l50.4 22.4-26 58.5-50.4-22.4c-23-10.2-45-22.4-65.8-36.4-21.3 17.2-44.6 32.2-69.5 44.7L78.3 380.6c-15.8 7.9-35 1.5-42.9-14.3s-1.5-35 14.3-42.9l34.5-17.3c16.3-8.2 31.8-17.7 46.4-28.3-13.8-12.7-26.8-26.4-38.9-40.9L71.4 212.5c-11.3-13.6-9.5-33.8 4.1-45.1s33.8-9.5 45.1 4.1l20.3 24.4c11.5 13.9 24.1 26.8 37.4 38.7 27.5-30.4 49.2-66.1 63.5-105.4l.5-1.2-210.3 0C14.3 128 0 113.7 0 96S14.3 64 32 64l96 0 0-32c0-17.7 14.3-32 32-32z\"/>`,\n },\n 'lock-keyhole': {\n category: 'ui',\n viewBox: '0 0 384 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64s64 28.7 64 64l0 64 64 0 0-64c0-70.7-57.3-128-128-128S64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M64 160c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L64 160zM216 296l0 80c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24s24 10.7 24 24z\"/>`,\n },\n 'lock': {\n category: 'ui',\n viewBox: '0 0 384 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64s64 28.7 64 64l0 64 64 0 0-64c0-70.7-57.3-128-128-128S64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M64 160l256 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z\"/>`,\n },\n 'moon': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z\"/><path fill=\"currentColor\" d=\"\"/>`,\n },\n 'search': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 208a144 144 0 1 0 288 0 144 144 0 1 0 -288 0z\"/><path fill=\"currentColor\" d=\"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z\"/>`,\n },\n 'sun': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M0 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24zM75 75c9.4-9.4 24.6-9.4 33.9 0l39.6 39.6c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L75 108.9c-9.4-9.4-9.4-24.6 0-33.9zm0 328.1l39.6-39.6c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L108.9 437c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zM232 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zm0 408c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zM363.5 114.6L403.1 75c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-39.6 39.6c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zm0 248.9c9.4-9.4 24.6-9.4 33.9 0L437 403.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-39.6-39.6c-9.4-9.4-9.4-24.6 0-33.9zM408 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24z\"/><path fill=\"currentColor\" d=\"M144 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0z\"/>`,\n },\n 'unlock-keyhole': {\n category: 'ui',\n viewBox: '0 0 384 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64 31.7 0 58 23 63.1 53.3 2.9 17.4 19.4 29.2 36.9 26.3s29.2-19.4 26.3-36.9C308.1 14.1 255.5-32 192-32 121.3-32 64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M64 160c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L64 160zM232 360l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24s-10.7 24-24 24z\"/>`,\n },\n 'unlock': {\n category: 'ui',\n viewBox: '0 0 384 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64 31.7 0 58 23 63.1 53.3 2.9 17.4 19.4 29.2 36.9 26.3s29.2-19.4 26.3-36.9C308.1 14.1 255.5-32 192-32 121.3-32 64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M0 224c0-35.3 28.7-64 64-64l256 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224z\"/>`,\n },\n 'user': {\n category: 'ui',\n viewBox: '0 0 448 512',\n svg: `<path fill=\"currentColor\" d=\"M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z\"/>`,\n },\n} as const;\n\nexport type UiIconName = keyof typeof uiIcons;\n","import { arrowsIcons } from './arrows';\nimport { barsIcons } from './bars';\nimport { chevronIcons } from './chevron';\nimport { lettersIcons } from './letters';\nimport { shieldIcons } from './shield';\nimport { uiIcons } from './ui';\n\nexport const iconCatalog = {\n ...arrowsIcons,\n ...barsIcons,\n ...chevronIcons,\n ...lettersIcons,\n ...shieldIcons,\n ...uiIcons,\n} as const;\n\nexport type IconName = keyof typeof iconCatalog;\n\nexport const iconsByCategory = {\n 'arrows': ['arrow-down', 'arrow-left'],\n 'bars': ['bars-filter', 'bars-sort', 'bars-staggered', 'bars'],\n 'chevron': ['chevron-down', 'chevron-left'],\n 'letters': ['a', 'ain'],\n 'shield': ['shield-check', 'shield-exclamation', 'shield-halved', 'shield-minus', 'shield-slash', 'shield'],\n 'ui': ['asterisk', 'door', 'flag', 'gear', 'house', 'key-skeleton', 'key', 'language', 'lock-keyhole', 'lock', 'moon', 'search', 'sun', 'unlock-keyhole', 'unlock', 'user'],\n} as const;\n","// src/kit/icon.tsx\r\n//\r\n// Made with ❤️ by Maysara.\r\n\r\n\r\n\r\n// ╔════════════════════════════════════════ PACK ════════════════════════════════════════╗\r\n\r\n import { JSXElement } from '@minejs/jsx';\r\n import { IconProps, iconCatalog, type IconName } from '../types';\r\n import { iconsByCategory } from './categories';\r\n\r\n// ╚══════════════════════════════════════════════════════════════════════════════════════╝\r\n\r\n\r\n\r\n// ╔════════════════════════════════════════ INIT ════════════════════════════════════════╗\r\n\r\n export const sizeMap: Record<string, string> = {\r\n xs : '0.75rem',\r\n sm : '1rem',\r\n md : '1.25rem',\r\n lg : '1.5rem',\r\n xl : '2rem',\r\n 'xxl' : '2.5rem'\r\n };\r\n\r\n// ╚══════════════════════════════════════════════════════════════════════════════════════╝\r\n\r\n\r\n\r\n// ╔════════════════════════════════════════ CORE ════════════════════════════════════════╗\r\n\r\n /**\r\n * Icon Component\r\n * Renders inline SVG icons with various options\r\n *\r\n * @example\r\n * Icon('check')\r\n * Icon({ name: 'spinner', spin: true, size: 'lg' })\r\n */\r\n export function Icon(props: IconProps) : JSXElement | null {\r\n\r\n interface IconLikeConfig {\r\n name? : string\r\n size? : number | string\r\n color? : string\r\n svg? : string\r\n viewBox? : string\r\n }\r\n\r\n const config = typeof props === 'string' ? { name: props } : props;\r\n const cfg = config as IconLikeConfig;\r\n\r\n let iconData: { viewBox: string; svg: string } | null = null;\r\n\r\n if (cfg.name && cfg.name in iconCatalog) {\r\n iconData = iconCatalog[cfg.name as IconName] as { viewBox: string; svg: string };\r\n } else if (cfg.svg) {\r\n iconData = {\r\n viewBox : cfg.viewBox || '0 0 24 24',\r\n svg : cfg.svg\r\n };\r\n }\r\n\r\n if (!iconData) {\r\n if (cfg.name) {\r\n console.warn(`Icon \"${cfg.name}\" not found in catalog`);\r\n } else {\r\n console.warn('Icon configuration is invalid');\r\n }\r\n return null;\r\n }\r\n\r\n const sizeValue = cfg.size;\r\n\r\n const size = typeof sizeValue === 'number'\r\n ? `${sizeValue}px`\r\n : sizeMap[sizeValue || 'md'];\r\n\r\n const style: Record<string, string> = {\r\n width : size,\r\n height : size,\r\n display : 'inline-block',\r\n verticalAlign : 'middle',\r\n lineHeight : '1',\r\n flexShrink : '0'\r\n };\r\n\r\n if (cfg.color) style.color = cfg.color;\r\n\r\n return (\r\n <svg\r\n style = {style}\r\n viewBox = {iconData.viewBox}\r\n fill = \"currentColor\"\r\n xmlns = \"http://www.w3.org/2000/svg\"\r\n aria-hidden = \"true\"\r\n role = \"img\"\r\n dangerouslySetInnerHTML = {{\r\n __html : iconData.svg\r\n }}\r\n />\r\n );\r\n }\r\n\r\n /**\r\n * Utility function to check if an icon exists\r\n */\r\n export function iconExists(name: string): name is IconName {\r\n return name in iconCatalog;\r\n }\r\n\r\n /**\r\n * Get all available icon names\r\n */\r\n export function getIconNames(): IconName[] {\r\n return Object.keys(iconCatalog) as IconName[];\r\n }\r\n\r\n /**\r\n * Get icons by category\r\n */\r\n export function getIconsByCategory(category: string): IconName[] {\r\n return (iconsByCategory[category as keyof typeof iconsByCategory] || []) as unknown as IconName[];\r\n }\r\n\r\n /**\r\n * Get all available categories\r\n */\r\n export function getIconCategories(): string[] {\r\n return Object.keys(iconsByCategory);\r\n }\r\n\r\n// ╚══════════════════════════════════════════════════════════════════════════════════════╝\r\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,35 +1,165 @@
|
|
|
1
1
|
import { JSXElement } from '@minejs/jsx';
|
|
2
2
|
|
|
3
3
|
declare const iconCatalog: {
|
|
4
|
+
readonly asterisk: {
|
|
5
|
+
readonly category: "ui";
|
|
6
|
+
readonly viewBox: "0 0 448 512";
|
|
7
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M224 0c17.7 0 32 14.3 32 32l0 168.6 144-83.1c15.3-8.8 34.9-3.6 43.7 11.7s3.6 34.9-11.7 43.7L288 256 432 339.1c15.3 8.8 20.6 28.4 11.7 43.7s-28.4 20.6-43.7 11.7L256 311.4 256 480c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-168.6-144 83.1c-15.3 8.8-34.9 3.6-43.7-11.7S.7 348 16 339.1L160 256 16 172.9C.7 164-4.5 144.5 4.3 129.1S32.7 108.6 48 117.4L192 200.6 192 32c0-17.7 14.3-32 32-32z\"/><path fill=\"currentColor\" d=\"\"/>";
|
|
8
|
+
};
|
|
9
|
+
readonly door: {
|
|
10
|
+
readonly category: "ui";
|
|
11
|
+
readonly viewBox: "0 0 512 512";
|
|
12
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M152 216l0 272c0 13.3 10.7 24 24 24s24-10.7 24-24l0-272c0-13.3-10.7-24-24-24s-24 10.7-24 24zm80-32l0 304c0 13.3 10.7 24 24 24s24-10.7 24-24l0-304c0-13.3-10.7-24-24-24s-24 10.7-24 24zm80 32l0 272c0 13.3 10.7 24 24 24s24-10.7 24-24l0-272c0-13.3-10.7-24-24-24s-24 10.7-24 24z\"/><path fill=\"currentColor\" d=\"M340.5 108.6l35.1-52.6c7.1-10.7 21.5-14 31.8-6.4 20.6 15.1 38.8 33.3 54.1 53.8 7.8 10.5 4.3 25.3-6.9 32.2l-54.1 33.8c-11.4 7.1-26.3 3.3-35.1-6.9-5.5-6.4-11.5-12.3-18-17.7-10.8-8.9-14.8-24.6-7-36.2zM315.6 7c15.1 3.6 20.8 21.2 12.2 34.1l-40 60c-5.2 7.8-14.5 11.7-23.9 11.2-5.2-.3-10.6-.3-15.8 0-9.4 .5-18.7-3.4-23.9-11.2l-40-60c-8.6-12.9-2.9-30.5 12.2-34.1 19.1-4.6 39.1-7 59.6-7s40.4 2.4 59.6 7zM57.4 135.5c-11.2-7-14.7-21.7-6.9-32.2 15.3-20.5 33.5-38.6 54.1-53.8 10.4-7.6 24.7-4.3 31.8 6.4l35.1 52.6c7.8 11.6 3.8 27.3-7 36.2-6.5 5.4-12.5 11.3-18 17.7-8.7 10.2-23.6 14-35.1 6.9L57.4 135.5zM112 256l0 24c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-24c0-21.2 2.6-41.8 7.5-61.6 3.6-14.7 20.7-20.5 33.6-12.5l59.7 37.3c8.4 5.3 12.6 15.2 11.8 25.1-.3 3.8-.5 7.7-.5 11.6zm299.3-36.8L471 182c12.9-8 29.9-2.3 33.6 12.5 4.9 19.7 7.5 40.3 7.5 61.6l0 24c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-24c0-3.9-.2-7.8-.5-11.6-.8-9.9 3.3-19.9 11.8-25.1zM112 376l0 112c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24L0 376c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24zm400 0l0 112c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24z\"/>";
|
|
13
|
+
};
|
|
4
14
|
readonly flag: {
|
|
5
15
|
readonly category: "ui";
|
|
6
16
|
readonly viewBox: "0 0 448 512";
|
|
7
17
|
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M64 48l69-17.2c38.1-9.5 78.3-5.1 113.5 12.5 46.3 23.2 100.8 23.2 147.1 0l9.6-4.8C423.8 28.1 448 43.1 448 66.1l0 247.7c0 13.3-8.3 25.3-20.8 30l-34.7 13c-46.2 17.3-97.6 14.6-141.7-7.4-37.9-19-81.4-23.7-122.5-13.4L64 352 64 48z\"/><path fill=\"currentColor\" d=\"M32 0C49.7 0 64 14.3 64 32l0 448c0 17.7-14.3 32-32 32S0 497.7 0 480L0 32C0 14.3 14.3 0 32 0z\"/>";
|
|
8
18
|
};
|
|
19
|
+
readonly gear: {
|
|
20
|
+
readonly category: "ui";
|
|
21
|
+
readonly viewBox: "0 0 512 512";
|
|
22
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M208.3 256a47.7 47.7 0 1 0 95.4 0 47.7 47.7 0 1 0 -95.4 0z\"/><path fill=\"currentColor\" d=\"M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 352a96 96 0 1 0 -.6-192 96 96 0 1 0 .6 192z\"/>";
|
|
23
|
+
};
|
|
24
|
+
readonly house: {
|
|
25
|
+
readonly category: "ui";
|
|
26
|
+
readonly viewBox: "0 0 512 512";
|
|
27
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M48 267.7c2-1.2 4-2.6 5.8-4.3L256 75.7 458.2 263.4c1.8 1.7 3.7 3.1 5.8 4.3L464 448c0 35.3-28.7 64-64 64l-80 0 0-128c0-26.5-21.5-48-48-48l-32 0c-26.5 0-48 21.5-48 48l0 128-80 0c-35.3 0-64-28.7-64-64l0-180.3z\"/><path fill=\"currentColor\" d=\"M277.8 8.6c-12.3-11.4-31.3-11.4-43.5 0l-224 208c-13 12-13.7 32.3-1.7 45.2s32.3 13.7 45.2 1.7L256 75.7 458.2 263.4c13 12 33.2 11.3 45.2-1.7s11.3-33.2-1.7-45.2l-224-208zM240 336c-26.5 0-48 21.5-48 48l0 128 128 0 0-128c0-26.5-21.5-48-48-48l-32 0z\"/>";
|
|
28
|
+
};
|
|
29
|
+
readonly 'key-skeleton': {
|
|
30
|
+
readonly category: "ui";
|
|
31
|
+
readonly viewBox: "0 0 448 512";
|
|
32
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M9.4 393.4c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 416 96 397.3 137.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-41.4-41.4 86.1-86.1c-18.3-11.5-33.8-27-45.3-45.3L9.4 393.4z\"/><path fill=\"currentColor\" d=\"M304 64a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 224a144 144 0 1 0 0-288 144 144 0 1 0 0 288z\"/>";
|
|
33
|
+
};
|
|
34
|
+
readonly key: {
|
|
35
|
+
readonly category: "ui";
|
|
36
|
+
readonly viewBox: "0 0 512 512";
|
|
37
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M0 408l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7L282.3 343.7 168.3 229.7 7 391c-4.5 4.5-7 10.6-7 17z\"/><path fill=\"currentColor\" d=\"M168.3 229.7L282.3 343.7c16.9 5.4 35 8.3 53.7 8.3 97.2 0 176-78.8 176-176S433.2 0 336 0 160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7zM336 136a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z\"/>";
|
|
38
|
+
};
|
|
9
39
|
readonly language: {
|
|
10
40
|
readonly category: "ui";
|
|
11
41
|
readonly viewBox: "0 0 576 512";
|
|
12
42
|
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M258.8 467c58.2-131 80.2-180.5 128-288 5.1-11.6 16.6-19 29.2-19s24.1 7.4 29.2 19l128 288c7.2 16.2-.1 35.1-16.2 42.2s-35.1-.1-42.2-16.2l-20-45-157.5 0-20 45c-7.2 16.2-26.1 23.4-42.2 16.2s-23.4-26.1-16.2-42.2zm106.9-83L466.3 384 416 270.8 365.7 384z\"/><path fill=\"currentColor\" d=\"M160 0c17.7 0 32 14.3 32 32l0 32 128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-9.6 0-8.4 23.1c-16.4 45.2-41.1 86.5-72.2 122 14.2 8.8 29 16.6 44.4 23.5l50.4 22.4-26 58.5-50.4-22.4c-23-10.2-45-22.4-65.8-36.4-21.3 17.2-44.6 32.2-69.5 44.7L78.3 380.6c-15.8 7.9-35 1.5-42.9-14.3s-1.5-35 14.3-42.9l34.5-17.3c16.3-8.2 31.8-17.7 46.4-28.3-13.8-12.7-26.8-26.4-38.9-40.9L71.4 212.5c-11.3-13.6-9.5-33.8 4.1-45.1s33.8-9.5 45.1 4.1l20.3 24.4c11.5 13.9 24.1 26.8 37.4 38.7 27.5-30.4 49.2-66.1 63.5-105.4l.5-1.2-210.3 0C14.3 128 0 113.7 0 96S14.3 64 32 64l96 0 0-32c0-17.7 14.3-32 32-32z\"/>";
|
|
13
43
|
};
|
|
44
|
+
readonly 'lock-keyhole': {
|
|
45
|
+
readonly category: "ui";
|
|
46
|
+
readonly viewBox: "0 0 384 512";
|
|
47
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64s64 28.7 64 64l0 64 64 0 0-64c0-70.7-57.3-128-128-128S64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M64 160c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L64 160zM216 296l0 80c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24s24 10.7 24 24z\"/>";
|
|
48
|
+
};
|
|
49
|
+
readonly lock: {
|
|
50
|
+
readonly category: "ui";
|
|
51
|
+
readonly viewBox: "0 0 384 512";
|
|
52
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64s64 28.7 64 64l0 64 64 0 0-64c0-70.7-57.3-128-128-128S64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M64 160l256 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z\"/>";
|
|
53
|
+
};
|
|
14
54
|
readonly moon: {
|
|
15
55
|
readonly category: "ui";
|
|
16
56
|
readonly viewBox: "0 0 512 512";
|
|
17
57
|
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z\"/><path fill=\"currentColor\" d=\"\"/>";
|
|
18
58
|
};
|
|
59
|
+
readonly search: {
|
|
60
|
+
readonly category: "ui";
|
|
61
|
+
readonly viewBox: "0 0 512 512";
|
|
62
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M64 208a144 144 0 1 0 288 0 144 144 0 1 0 -288 0z\"/><path fill=\"currentColor\" d=\"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z\"/>";
|
|
63
|
+
};
|
|
19
64
|
readonly sun: {
|
|
20
65
|
readonly category: "ui";
|
|
21
66
|
readonly viewBox: "0 0 512 512";
|
|
22
67
|
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M0 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24zM75 75c9.4-9.4 24.6-9.4 33.9 0l39.6 39.6c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L75 108.9c-9.4-9.4-9.4-24.6 0-33.9zm0 328.1l39.6-39.6c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L108.9 437c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zM232 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zm0 408c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zM363.5 114.6L403.1 75c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-39.6 39.6c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zm0 248.9c9.4-9.4 24.6-9.4 33.9 0L437 403.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-39.6-39.6c-9.4-9.4-9.4-24.6 0-33.9zM408 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24z\"/><path fill=\"currentColor\" d=\"M144 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0z\"/>";
|
|
23
68
|
};
|
|
69
|
+
readonly 'unlock-keyhole': {
|
|
70
|
+
readonly category: "ui";
|
|
71
|
+
readonly viewBox: "0 0 384 512";
|
|
72
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64 31.7 0 58 23 63.1 53.3 2.9 17.4 19.4 29.2 36.9 26.3s29.2-19.4 26.3-36.9C308.1 14.1 255.5-32 192-32 121.3-32 64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M64 160c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L64 160zM232 360l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24s-10.7 24-24 24z\"/>";
|
|
73
|
+
};
|
|
74
|
+
readonly unlock: {
|
|
75
|
+
readonly category: "ui";
|
|
76
|
+
readonly viewBox: "0 0 384 512";
|
|
77
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64 31.7 0 58 23 63.1 53.3 2.9 17.4 19.4 29.2 36.9 26.3s29.2-19.4 26.3-36.9C308.1 14.1 255.5-32 192-32 121.3-32 64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M0 224c0-35.3 28.7-64 64-64l256 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224z\"/>";
|
|
78
|
+
};
|
|
24
79
|
readonly user: {
|
|
25
80
|
readonly category: "ui";
|
|
26
81
|
readonly viewBox: "0 0 448 512";
|
|
27
82
|
readonly svg: "<path fill=\"currentColor\" d=\"M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z\"/>";
|
|
28
83
|
};
|
|
84
|
+
readonly 'shield-check': {
|
|
85
|
+
readonly category: "shield";
|
|
86
|
+
readonly viewBox: "0 0 512 512";
|
|
87
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.7 0 172.4-82.5 213.2-263.9 213.7-363.2 .1-26.2-16.3-47.9-38.3-57.2L269.4 2.9C265.3 1 260.7 0 256.1 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM166.8 293.5c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-9 33.9 .6 8.8 9.1 17.7 18.3 26.5 27.4 28.5-39.2 57.1-78.5 85.6-117.7 7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5c-34.1 46.9-68.3 93.9-102.4 140.8-4.2 5.7-10.7 9.4-17.8 9.8s-14-2.2-18.9-7.3c-15.5-16-30.9-32-46.4-48z\"/><path fill=\"currentColor\" d=\"M313.4 169.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L249.8 338.9c-4.2 5.7-10.7 9.4-17.8 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9s24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7z\"/>";
|
|
88
|
+
};
|
|
89
|
+
readonly 'shield-exclamation': {
|
|
90
|
+
readonly category: "shield";
|
|
91
|
+
readonly viewBox: "0 0 512 512";
|
|
92
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.7 0 172.3-82.5 213.2-263.9 213.7-363.2 .1-26.2-16.3-47.9-38.3-57.2L268.5 2.5c-3.8-1.6-8.1-2.5-12.2-2.5-4.4 0-8.7 .8-12.8 2.5L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM288 336a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM224.7 145.7C223.4 127.5 237.8 112 256 112s32.7 15.5 31.4 33.7l-7.4 104c-.9 12.6-11.4 22.3-23.9 22.3s-23-9.7-23.9-22.3l-7.4-104z\"/><path fill=\"currentColor\" d=\"M256 368a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm0-256c18.3 0 32.7 15.5 31.4 33.7l-7.4 104c-.9 12.6-11.4 22.3-23.9 22.3s-23-9.7-23.9-22.3l-7.4-104C223.4 127.5 237.8 112 256 112z\"/>";
|
|
93
|
+
};
|
|
94
|
+
readonly 'shield-halved': {
|
|
95
|
+
readonly category: "shield";
|
|
96
|
+
readonly viewBox: "0 0 512 512";
|
|
97
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M16.2 140c.5 99.2 41.3 280.7 213.6 363.2 8.3 4 17.4 6 26.4 6 9.3 .1 18.6-1.9 27.1-6 172.4-82.5 213.1-264 213.6-363.2 .1-26.2-16.3-47.9-38.3-57.2L270.3 2.9C266.1 1 261.6 0 256.9 0l-.4 0c-5.7 .2-9.9 1.2-13.7 2.9L54.5 82.8c-22 9.3-38.4 31-38.3 57.2z\"/><path fill=\"currentColor\" d=\"M256.2 0c-4.6 0-9.2 1-13.3 2.9L54.5 82.8c-22 9.3-38.4 31-38.3 57.2 .5 99.2 41.3 280.7 213.6 363.2 8.3 4 17.4 6 26.4 6L256.2 0z\"/>";
|
|
98
|
+
};
|
|
99
|
+
readonly 'shield-minus': {
|
|
100
|
+
readonly category: "shield";
|
|
101
|
+
readonly viewBox: "0 0 512 512";
|
|
102
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.8 0 172.4-82.5 213.2-264 213.6-363.2 .1-26.2-16.3-47.9-38.3-57.2L269.4 2.9C265.2 1 260.7 0 256 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM160 240c0-13.3 10.7-24 24-24l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24z\"/><path fill=\"currentColor\" d=\"M160 240c0-13.3 10.7-24 24-24l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24z\"/>";
|
|
103
|
+
};
|
|
104
|
+
readonly 'shield-slash': {
|
|
105
|
+
readonly category: "shield";
|
|
106
|
+
readonly viewBox: "0 0 576 512";
|
|
107
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M48 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.8 0 27.5-13.1 51.6-28.8 72.7-46.2L51 120.8c-2 6-3 12.4-3 19.2z\"/><path fill=\"currentColor\" d=\"M7-24.9c9.4-9.4 24.6-9.4 33.9 0L130.1 64.2 274.7 2.9C278.8 1 283.4 0 288 0s9.2 1 13.4 2.9L489.7 82.8c22 9.3 38.4 31 38.3 57.2-.3 64.1-17.4 162.4-75.9 246.3L569 503.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L7 9.1C-2.3-.3-2.3-15.5 7-24.9z\"/>";
|
|
108
|
+
};
|
|
109
|
+
readonly shield: {
|
|
110
|
+
readonly category: "shield";
|
|
111
|
+
readonly viewBox: "0 0 512 512";
|
|
112
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M256 0c4.6 0 9.2 1 13.4 2.9L457.8 82.8c22 9.3 38.4 31 38.3 57.2-.5 99.2-41.3 280.7-213.6 363.2-16.7 8-36.1 8-52.8 0-172.4-82.5-213.1-264-213.6-363.2-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.9 1 251.4 0 256 0z\"/><path fill=\"currentColor\" d=\"\"/>";
|
|
113
|
+
};
|
|
114
|
+
readonly a: {
|
|
115
|
+
readonly category: "letters";
|
|
116
|
+
readonly viewBox: "0 0 384 512";
|
|
117
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M221.5 51.7C216.6 39.8 204.9 32 192 32s-24.6 7.8-29.5 19.7c-93.3 224-146.7 352-160 384-6.8 16.3 .9 35 17.2 41.8s35-.9 41.8-17.2l31.8-76.3 197.3 0 31.8 76.3c6.8 16.3 25.5 24 41.8 17.2s24-25.5 17.2-41.8c-13.3-32-66.7-160-160-384zM264 320l-144 0 72-172.8 72 172.8z\"/><path fill=\"currentColor\" d=\"\"/>";
|
|
118
|
+
};
|
|
119
|
+
readonly ain: {
|
|
120
|
+
readonly category: "letters";
|
|
121
|
+
readonly viewBox: "0 0 384 512";
|
|
122
|
+
readonly svg: "<g transform=\"translate(49 38) scale(6)\"><path opacity=\".4\" fill=\"currentColor\" d=\"M25.833,5.083c0,0-3.918-5.083-9.084-5.083S3.999,10.167,3.999,17.417c0,4.333,6.584,7,6.584,7 S0,33.084,0,48.417S14,72.5,26.25,72.5c4.667,0,21.417-8.833,21.417-8.833v-0.75c0,0-6.666,0-15.583,0s-27.25-7.583-27.25-19.75 c0-16.479,20.666-20.75,20.666-20.75s1.334-1.334,3.584-4.917s3.083-5.833,3.083-5.833s-4,1.166-8,3.083S18.001,19,15.834,19 s-8.417-3.582-8.417-5.666s3.917-6.25,9.667-7.5S25.833,5.083,25.833,5.083z\"/></g><path fill=\"currentColor\" d=\"\"/>";
|
|
123
|
+
};
|
|
29
124
|
readonly 'chevron-down': {
|
|
30
125
|
readonly category: "chevron";
|
|
31
|
-
readonly viewBox: "0 0
|
|
32
|
-
readonly svg: "<path
|
|
126
|
+
readonly viewBox: "0 0 448 512";
|
|
127
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M246.6 406.6c-12.5 12.5-32.8 12.5-45.3 0l-192-192c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 338.7 393.4 169.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-192 192z\"/><path fill=\"currentColor\" d=\"\"/>";
|
|
128
|
+
};
|
|
129
|
+
readonly 'chevron-left': {
|
|
130
|
+
readonly category: "chevron";
|
|
131
|
+
readonly viewBox: "0 0 320 512";
|
|
132
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/><path fill=\"currentColor\" d=\"\"/>";
|
|
133
|
+
};
|
|
134
|
+
readonly 'bars-filter': {
|
|
135
|
+
readonly category: "bars";
|
|
136
|
+
readonly viewBox: "0 0 512 512";
|
|
137
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M96 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M512 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l448 0c17.7 0 32-14.3 32-32zM320 416c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c17.7 0 32-14.3 32-32z\"/>";
|
|
138
|
+
};
|
|
139
|
+
readonly 'bars-sort': {
|
|
140
|
+
readonly category: "bars";
|
|
141
|
+
readonly viewBox: "0 0 448 512";
|
|
142
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M0 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zM192 416c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32z\"/>";
|
|
143
|
+
};
|
|
144
|
+
readonly 'bars-staggered': {
|
|
145
|
+
readonly category: "bars";
|
|
146
|
+
readonly viewBox: "0 0 512 512";
|
|
147
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M64 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 288c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zm0 320c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32z\"/>";
|
|
148
|
+
};
|
|
149
|
+
readonly bars: {
|
|
150
|
+
readonly category: "bars";
|
|
151
|
+
readonly viewBox: "0 0 448 512";
|
|
152
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zm0 320c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32z\"/>";
|
|
153
|
+
};
|
|
154
|
+
readonly 'arrow-down': {
|
|
155
|
+
readonly category: "arrows";
|
|
156
|
+
readonly viewBox: "0 0 384 512";
|
|
157
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M160 32l0 370.7 32 32 32-32 0-370.7c0-17.7-14.3-32-32-32s-32 14.3-32 32z\"/><path fill=\"currentColor\" d=\"M214.6 502.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 434.7 329.4 297.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160z\"/>";
|
|
158
|
+
};
|
|
159
|
+
readonly 'arrow-left': {
|
|
160
|
+
readonly category: "arrows";
|
|
161
|
+
readonly viewBox: "0 0 512 512";
|
|
162
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M77.3 256l32 32 370.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0-32 32z\"/><path fill=\"currentColor\" d=\"M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L77.3 256 214.6 393.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-160-160z\"/>";
|
|
33
163
|
};
|
|
34
164
|
};
|
|
35
165
|
type IconName$1 = keyof typeof iconCatalog;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,35 +1,165 @@
|
|
|
1
1
|
import { JSXElement } from '@minejs/jsx';
|
|
2
2
|
|
|
3
3
|
declare const iconCatalog: {
|
|
4
|
+
readonly asterisk: {
|
|
5
|
+
readonly category: "ui";
|
|
6
|
+
readonly viewBox: "0 0 448 512";
|
|
7
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M224 0c17.7 0 32 14.3 32 32l0 168.6 144-83.1c15.3-8.8 34.9-3.6 43.7 11.7s3.6 34.9-11.7 43.7L288 256 432 339.1c15.3 8.8 20.6 28.4 11.7 43.7s-28.4 20.6-43.7 11.7L256 311.4 256 480c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-168.6-144 83.1c-15.3 8.8-34.9 3.6-43.7-11.7S.7 348 16 339.1L160 256 16 172.9C.7 164-4.5 144.5 4.3 129.1S32.7 108.6 48 117.4L192 200.6 192 32c0-17.7 14.3-32 32-32z\"/><path fill=\"currentColor\" d=\"\"/>";
|
|
8
|
+
};
|
|
9
|
+
readonly door: {
|
|
10
|
+
readonly category: "ui";
|
|
11
|
+
readonly viewBox: "0 0 512 512";
|
|
12
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M152 216l0 272c0 13.3 10.7 24 24 24s24-10.7 24-24l0-272c0-13.3-10.7-24-24-24s-24 10.7-24 24zm80-32l0 304c0 13.3 10.7 24 24 24s24-10.7 24-24l0-304c0-13.3-10.7-24-24-24s-24 10.7-24 24zm80 32l0 272c0 13.3 10.7 24 24 24s24-10.7 24-24l0-272c0-13.3-10.7-24-24-24s-24 10.7-24 24z\"/><path fill=\"currentColor\" d=\"M340.5 108.6l35.1-52.6c7.1-10.7 21.5-14 31.8-6.4 20.6 15.1 38.8 33.3 54.1 53.8 7.8 10.5 4.3 25.3-6.9 32.2l-54.1 33.8c-11.4 7.1-26.3 3.3-35.1-6.9-5.5-6.4-11.5-12.3-18-17.7-10.8-8.9-14.8-24.6-7-36.2zM315.6 7c15.1 3.6 20.8 21.2 12.2 34.1l-40 60c-5.2 7.8-14.5 11.7-23.9 11.2-5.2-.3-10.6-.3-15.8 0-9.4 .5-18.7-3.4-23.9-11.2l-40-60c-8.6-12.9-2.9-30.5 12.2-34.1 19.1-4.6 39.1-7 59.6-7s40.4 2.4 59.6 7zM57.4 135.5c-11.2-7-14.7-21.7-6.9-32.2 15.3-20.5 33.5-38.6 54.1-53.8 10.4-7.6 24.7-4.3 31.8 6.4l35.1 52.6c7.8 11.6 3.8 27.3-7 36.2-6.5 5.4-12.5 11.3-18 17.7-8.7 10.2-23.6 14-35.1 6.9L57.4 135.5zM112 256l0 24c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-24c0-21.2 2.6-41.8 7.5-61.6 3.6-14.7 20.7-20.5 33.6-12.5l59.7 37.3c8.4 5.3 12.6 15.2 11.8 25.1-.3 3.8-.5 7.7-.5 11.6zm299.3-36.8L471 182c12.9-8 29.9-2.3 33.6 12.5 4.9 19.7 7.5 40.3 7.5 61.6l0 24c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-24c0-3.9-.2-7.8-.5-11.6-.8-9.9 3.3-19.9 11.8-25.1zM112 376l0 112c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24L0 376c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24zm400 0l0 112c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24z\"/>";
|
|
13
|
+
};
|
|
4
14
|
readonly flag: {
|
|
5
15
|
readonly category: "ui";
|
|
6
16
|
readonly viewBox: "0 0 448 512";
|
|
7
17
|
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M64 48l69-17.2c38.1-9.5 78.3-5.1 113.5 12.5 46.3 23.2 100.8 23.2 147.1 0l9.6-4.8C423.8 28.1 448 43.1 448 66.1l0 247.7c0 13.3-8.3 25.3-20.8 30l-34.7 13c-46.2 17.3-97.6 14.6-141.7-7.4-37.9-19-81.4-23.7-122.5-13.4L64 352 64 48z\"/><path fill=\"currentColor\" d=\"M32 0C49.7 0 64 14.3 64 32l0 448c0 17.7-14.3 32-32 32S0 497.7 0 480L0 32C0 14.3 14.3 0 32 0z\"/>";
|
|
8
18
|
};
|
|
19
|
+
readonly gear: {
|
|
20
|
+
readonly category: "ui";
|
|
21
|
+
readonly viewBox: "0 0 512 512";
|
|
22
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M208.3 256a47.7 47.7 0 1 0 95.4 0 47.7 47.7 0 1 0 -95.4 0z\"/><path fill=\"currentColor\" d=\"M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 352a96 96 0 1 0 -.6-192 96 96 0 1 0 .6 192z\"/>";
|
|
23
|
+
};
|
|
24
|
+
readonly house: {
|
|
25
|
+
readonly category: "ui";
|
|
26
|
+
readonly viewBox: "0 0 512 512";
|
|
27
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M48 267.7c2-1.2 4-2.6 5.8-4.3L256 75.7 458.2 263.4c1.8 1.7 3.7 3.1 5.8 4.3L464 448c0 35.3-28.7 64-64 64l-80 0 0-128c0-26.5-21.5-48-48-48l-32 0c-26.5 0-48 21.5-48 48l0 128-80 0c-35.3 0-64-28.7-64-64l0-180.3z\"/><path fill=\"currentColor\" d=\"M277.8 8.6c-12.3-11.4-31.3-11.4-43.5 0l-224 208c-13 12-13.7 32.3-1.7 45.2s32.3 13.7 45.2 1.7L256 75.7 458.2 263.4c13 12 33.2 11.3 45.2-1.7s11.3-33.2-1.7-45.2l-224-208zM240 336c-26.5 0-48 21.5-48 48l0 128 128 0 0-128c0-26.5-21.5-48-48-48l-32 0z\"/>";
|
|
28
|
+
};
|
|
29
|
+
readonly 'key-skeleton': {
|
|
30
|
+
readonly category: "ui";
|
|
31
|
+
readonly viewBox: "0 0 448 512";
|
|
32
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M9.4 393.4c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 416 96 397.3 137.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-41.4-41.4 86.1-86.1c-18.3-11.5-33.8-27-45.3-45.3L9.4 393.4z\"/><path fill=\"currentColor\" d=\"M304 64a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 224a144 144 0 1 0 0-288 144 144 0 1 0 0 288z\"/>";
|
|
33
|
+
};
|
|
34
|
+
readonly key: {
|
|
35
|
+
readonly category: "ui";
|
|
36
|
+
readonly viewBox: "0 0 512 512";
|
|
37
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M0 408l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7L282.3 343.7 168.3 229.7 7 391c-4.5 4.5-7 10.6-7 17z\"/><path fill=\"currentColor\" d=\"M168.3 229.7L282.3 343.7c16.9 5.4 35 8.3 53.7 8.3 97.2 0 176-78.8 176-176S433.2 0 336 0 160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7zM336 136a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z\"/>";
|
|
38
|
+
};
|
|
9
39
|
readonly language: {
|
|
10
40
|
readonly category: "ui";
|
|
11
41
|
readonly viewBox: "0 0 576 512";
|
|
12
42
|
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M258.8 467c58.2-131 80.2-180.5 128-288 5.1-11.6 16.6-19 29.2-19s24.1 7.4 29.2 19l128 288c7.2 16.2-.1 35.1-16.2 42.2s-35.1-.1-42.2-16.2l-20-45-157.5 0-20 45c-7.2 16.2-26.1 23.4-42.2 16.2s-23.4-26.1-16.2-42.2zm106.9-83L466.3 384 416 270.8 365.7 384z\"/><path fill=\"currentColor\" d=\"M160 0c17.7 0 32 14.3 32 32l0 32 128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-9.6 0-8.4 23.1c-16.4 45.2-41.1 86.5-72.2 122 14.2 8.8 29 16.6 44.4 23.5l50.4 22.4-26 58.5-50.4-22.4c-23-10.2-45-22.4-65.8-36.4-21.3 17.2-44.6 32.2-69.5 44.7L78.3 380.6c-15.8 7.9-35 1.5-42.9-14.3s-1.5-35 14.3-42.9l34.5-17.3c16.3-8.2 31.8-17.7 46.4-28.3-13.8-12.7-26.8-26.4-38.9-40.9L71.4 212.5c-11.3-13.6-9.5-33.8 4.1-45.1s33.8-9.5 45.1 4.1l20.3 24.4c11.5 13.9 24.1 26.8 37.4 38.7 27.5-30.4 49.2-66.1 63.5-105.4l.5-1.2-210.3 0C14.3 128 0 113.7 0 96S14.3 64 32 64l96 0 0-32c0-17.7 14.3-32 32-32z\"/>";
|
|
13
43
|
};
|
|
44
|
+
readonly 'lock-keyhole': {
|
|
45
|
+
readonly category: "ui";
|
|
46
|
+
readonly viewBox: "0 0 384 512";
|
|
47
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64s64 28.7 64 64l0 64 64 0 0-64c0-70.7-57.3-128-128-128S64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M64 160c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L64 160zM216 296l0 80c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24s24 10.7 24 24z\"/>";
|
|
48
|
+
};
|
|
49
|
+
readonly lock: {
|
|
50
|
+
readonly category: "ui";
|
|
51
|
+
readonly viewBox: "0 0 384 512";
|
|
52
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64s64 28.7 64 64l0 64 64 0 0-64c0-70.7-57.3-128-128-128S64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M64 160l256 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z\"/>";
|
|
53
|
+
};
|
|
14
54
|
readonly moon: {
|
|
15
55
|
readonly category: "ui";
|
|
16
56
|
readonly viewBox: "0 0 512 512";
|
|
17
57
|
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z\"/><path fill=\"currentColor\" d=\"\"/>";
|
|
18
58
|
};
|
|
59
|
+
readonly search: {
|
|
60
|
+
readonly category: "ui";
|
|
61
|
+
readonly viewBox: "0 0 512 512";
|
|
62
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M64 208a144 144 0 1 0 288 0 144 144 0 1 0 -288 0z\"/><path fill=\"currentColor\" d=\"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z\"/>";
|
|
63
|
+
};
|
|
19
64
|
readonly sun: {
|
|
20
65
|
readonly category: "ui";
|
|
21
66
|
readonly viewBox: "0 0 512 512";
|
|
22
67
|
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M0 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24zM75 75c9.4-9.4 24.6-9.4 33.9 0l39.6 39.6c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L75 108.9c-9.4-9.4-9.4-24.6 0-33.9zm0 328.1l39.6-39.6c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L108.9 437c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zM232 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zm0 408c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zM363.5 114.6L403.1 75c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-39.6 39.6c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zm0 248.9c9.4-9.4 24.6-9.4 33.9 0L437 403.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-39.6-39.6c-9.4-9.4-9.4-24.6 0-33.9zM408 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24z\"/><path fill=\"currentColor\" d=\"M144 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0z\"/>";
|
|
23
68
|
};
|
|
69
|
+
readonly 'unlock-keyhole': {
|
|
70
|
+
readonly category: "ui";
|
|
71
|
+
readonly viewBox: "0 0 384 512";
|
|
72
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64 31.7 0 58 23 63.1 53.3 2.9 17.4 19.4 29.2 36.9 26.3s29.2-19.4 26.3-36.9C308.1 14.1 255.5-32 192-32 121.3-32 64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M64 160c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L64 160zM232 360l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24s-10.7 24-24 24z\"/>";
|
|
73
|
+
};
|
|
74
|
+
readonly unlock: {
|
|
75
|
+
readonly category: "ui";
|
|
76
|
+
readonly viewBox: "0 0 384 512";
|
|
77
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64 31.7 0 58 23 63.1 53.3 2.9 17.4 19.4 29.2 36.9 26.3s29.2-19.4 26.3-36.9C308.1 14.1 255.5-32 192-32 121.3-32 64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M0 224c0-35.3 28.7-64 64-64l256 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224z\"/>";
|
|
78
|
+
};
|
|
24
79
|
readonly user: {
|
|
25
80
|
readonly category: "ui";
|
|
26
81
|
readonly viewBox: "0 0 448 512";
|
|
27
82
|
readonly svg: "<path fill=\"currentColor\" d=\"M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z\"/>";
|
|
28
83
|
};
|
|
84
|
+
readonly 'shield-check': {
|
|
85
|
+
readonly category: "shield";
|
|
86
|
+
readonly viewBox: "0 0 512 512";
|
|
87
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.7 0 172.4-82.5 213.2-263.9 213.7-363.2 .1-26.2-16.3-47.9-38.3-57.2L269.4 2.9C265.3 1 260.7 0 256.1 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM166.8 293.5c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-9 33.9 .6 8.8 9.1 17.7 18.3 26.5 27.4 28.5-39.2 57.1-78.5 85.6-117.7 7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5c-34.1 46.9-68.3 93.9-102.4 140.8-4.2 5.7-10.7 9.4-17.8 9.8s-14-2.2-18.9-7.3c-15.5-16-30.9-32-46.4-48z\"/><path fill=\"currentColor\" d=\"M313.4 169.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L249.8 338.9c-4.2 5.7-10.7 9.4-17.8 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9s24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7z\"/>";
|
|
88
|
+
};
|
|
89
|
+
readonly 'shield-exclamation': {
|
|
90
|
+
readonly category: "shield";
|
|
91
|
+
readonly viewBox: "0 0 512 512";
|
|
92
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.7 0 172.3-82.5 213.2-263.9 213.7-363.2 .1-26.2-16.3-47.9-38.3-57.2L268.5 2.5c-3.8-1.6-8.1-2.5-12.2-2.5-4.4 0-8.7 .8-12.8 2.5L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM288 336a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM224.7 145.7C223.4 127.5 237.8 112 256 112s32.7 15.5 31.4 33.7l-7.4 104c-.9 12.6-11.4 22.3-23.9 22.3s-23-9.7-23.9-22.3l-7.4-104z\"/><path fill=\"currentColor\" d=\"M256 368a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm0-256c18.3 0 32.7 15.5 31.4 33.7l-7.4 104c-.9 12.6-11.4 22.3-23.9 22.3s-23-9.7-23.9-22.3l-7.4-104C223.4 127.5 237.8 112 256 112z\"/>";
|
|
93
|
+
};
|
|
94
|
+
readonly 'shield-halved': {
|
|
95
|
+
readonly category: "shield";
|
|
96
|
+
readonly viewBox: "0 0 512 512";
|
|
97
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M16.2 140c.5 99.2 41.3 280.7 213.6 363.2 8.3 4 17.4 6 26.4 6 9.3 .1 18.6-1.9 27.1-6 172.4-82.5 213.1-264 213.6-363.2 .1-26.2-16.3-47.9-38.3-57.2L270.3 2.9C266.1 1 261.6 0 256.9 0l-.4 0c-5.7 .2-9.9 1.2-13.7 2.9L54.5 82.8c-22 9.3-38.4 31-38.3 57.2z\"/><path fill=\"currentColor\" d=\"M256.2 0c-4.6 0-9.2 1-13.3 2.9L54.5 82.8c-22 9.3-38.4 31-38.3 57.2 .5 99.2 41.3 280.7 213.6 363.2 8.3 4 17.4 6 26.4 6L256.2 0z\"/>";
|
|
98
|
+
};
|
|
99
|
+
readonly 'shield-minus': {
|
|
100
|
+
readonly category: "shield";
|
|
101
|
+
readonly viewBox: "0 0 512 512";
|
|
102
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.8 0 172.4-82.5 213.2-264 213.6-363.2 .1-26.2-16.3-47.9-38.3-57.2L269.4 2.9C265.2 1 260.7 0 256 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM160 240c0-13.3 10.7-24 24-24l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24z\"/><path fill=\"currentColor\" d=\"M160 240c0-13.3 10.7-24 24-24l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24z\"/>";
|
|
103
|
+
};
|
|
104
|
+
readonly 'shield-slash': {
|
|
105
|
+
readonly category: "shield";
|
|
106
|
+
readonly viewBox: "0 0 576 512";
|
|
107
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M48 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.8 0 27.5-13.1 51.6-28.8 72.7-46.2L51 120.8c-2 6-3 12.4-3 19.2z\"/><path fill=\"currentColor\" d=\"M7-24.9c9.4-9.4 24.6-9.4 33.9 0L130.1 64.2 274.7 2.9C278.8 1 283.4 0 288 0s9.2 1 13.4 2.9L489.7 82.8c22 9.3 38.4 31 38.3 57.2-.3 64.1-17.4 162.4-75.9 246.3L569 503.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L7 9.1C-2.3-.3-2.3-15.5 7-24.9z\"/>";
|
|
108
|
+
};
|
|
109
|
+
readonly shield: {
|
|
110
|
+
readonly category: "shield";
|
|
111
|
+
readonly viewBox: "0 0 512 512";
|
|
112
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M256 0c4.6 0 9.2 1 13.4 2.9L457.8 82.8c22 9.3 38.4 31 38.3 57.2-.5 99.2-41.3 280.7-213.6 363.2-16.7 8-36.1 8-52.8 0-172.4-82.5-213.1-264-213.6-363.2-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.9 1 251.4 0 256 0z\"/><path fill=\"currentColor\" d=\"\"/>";
|
|
113
|
+
};
|
|
114
|
+
readonly a: {
|
|
115
|
+
readonly category: "letters";
|
|
116
|
+
readonly viewBox: "0 0 384 512";
|
|
117
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M221.5 51.7C216.6 39.8 204.9 32 192 32s-24.6 7.8-29.5 19.7c-93.3 224-146.7 352-160 384-6.8 16.3 .9 35 17.2 41.8s35-.9 41.8-17.2l31.8-76.3 197.3 0 31.8 76.3c6.8 16.3 25.5 24 41.8 17.2s24-25.5 17.2-41.8c-13.3-32-66.7-160-160-384zM264 320l-144 0 72-172.8 72 172.8z\"/><path fill=\"currentColor\" d=\"\"/>";
|
|
118
|
+
};
|
|
119
|
+
readonly ain: {
|
|
120
|
+
readonly category: "letters";
|
|
121
|
+
readonly viewBox: "0 0 384 512";
|
|
122
|
+
readonly svg: "<g transform=\"translate(49 38) scale(6)\"><path opacity=\".4\" fill=\"currentColor\" d=\"M25.833,5.083c0,0-3.918-5.083-9.084-5.083S3.999,10.167,3.999,17.417c0,4.333,6.584,7,6.584,7 S0,33.084,0,48.417S14,72.5,26.25,72.5c4.667,0,21.417-8.833,21.417-8.833v-0.75c0,0-6.666,0-15.583,0s-27.25-7.583-27.25-19.75 c0-16.479,20.666-20.75,20.666-20.75s1.334-1.334,3.584-4.917s3.083-5.833,3.083-5.833s-4,1.166-8,3.083S18.001,19,15.834,19 s-8.417-3.582-8.417-5.666s3.917-6.25,9.667-7.5S25.833,5.083,25.833,5.083z\"/></g><path fill=\"currentColor\" d=\"\"/>";
|
|
123
|
+
};
|
|
29
124
|
readonly 'chevron-down': {
|
|
30
125
|
readonly category: "chevron";
|
|
31
|
-
readonly viewBox: "0 0
|
|
32
|
-
readonly svg: "<path
|
|
126
|
+
readonly viewBox: "0 0 448 512";
|
|
127
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M246.6 406.6c-12.5 12.5-32.8 12.5-45.3 0l-192-192c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 338.7 393.4 169.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-192 192z\"/><path fill=\"currentColor\" d=\"\"/>";
|
|
128
|
+
};
|
|
129
|
+
readonly 'chevron-left': {
|
|
130
|
+
readonly category: "chevron";
|
|
131
|
+
readonly viewBox: "0 0 320 512";
|
|
132
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/><path fill=\"currentColor\" d=\"\"/>";
|
|
133
|
+
};
|
|
134
|
+
readonly 'bars-filter': {
|
|
135
|
+
readonly category: "bars";
|
|
136
|
+
readonly viewBox: "0 0 512 512";
|
|
137
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M96 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M512 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l448 0c17.7 0 32-14.3 32-32zM320 416c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c17.7 0 32-14.3 32-32z\"/>";
|
|
138
|
+
};
|
|
139
|
+
readonly 'bars-sort': {
|
|
140
|
+
readonly category: "bars";
|
|
141
|
+
readonly viewBox: "0 0 448 512";
|
|
142
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M0 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zM192 416c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32z\"/>";
|
|
143
|
+
};
|
|
144
|
+
readonly 'bars-staggered': {
|
|
145
|
+
readonly category: "bars";
|
|
146
|
+
readonly viewBox: "0 0 512 512";
|
|
147
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M64 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 288c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zm0 320c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32z\"/>";
|
|
148
|
+
};
|
|
149
|
+
readonly bars: {
|
|
150
|
+
readonly category: "bars";
|
|
151
|
+
readonly viewBox: "0 0 448 512";
|
|
152
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zm0 320c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32z\"/>";
|
|
153
|
+
};
|
|
154
|
+
readonly 'arrow-down': {
|
|
155
|
+
readonly category: "arrows";
|
|
156
|
+
readonly viewBox: "0 0 384 512";
|
|
157
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M160 32l0 370.7 32 32 32-32 0-370.7c0-17.7-14.3-32-32-32s-32 14.3-32 32z\"/><path fill=\"currentColor\" d=\"M214.6 502.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 434.7 329.4 297.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160z\"/>";
|
|
158
|
+
};
|
|
159
|
+
readonly 'arrow-left': {
|
|
160
|
+
readonly category: "arrows";
|
|
161
|
+
readonly viewBox: "0 0 512 512";
|
|
162
|
+
readonly svg: "<path opacity=\".4\" fill=\"currentColor\" d=\"M77.3 256l32 32 370.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0-32 32z\"/><path fill=\"currentColor\" d=\"M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L77.3 256 214.6 393.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-160-160z\"/>";
|
|
33
163
|
};
|
|
34
164
|
};
|
|
35
165
|
type IconName$1 = keyof typeof iconCatalog;
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {jsx}from'@minejs/jsx/jsx-runtime';var l={"chevron-down":{category:"chevron",viewBox:"0 0 24 24",svg:'<path d="M6 9L12 15L18 9" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>'}};var a={flag:{category:"ui",viewBox:"0 0 448 512",svg:'<path opacity=".4" fill="currentColor" d="M64 48l69-17.2c38.1-9.5 78.3-5.1 113.5 12.5 46.3 23.2 100.8 23.2 147.1 0l9.6-4.8C423.8 28.1 448 43.1 448 66.1l0 247.7c0 13.3-8.3 25.3-20.8 30l-34.7 13c-46.2 17.3-97.6 14.6-141.7-7.4-37.9-19-81.4-23.7-122.5-13.4L64 352 64 48z"/><path fill="currentColor" d="M32 0C49.7 0 64 14.3 64 32l0 448c0 17.7-14.3 32-32 32S0 497.7 0 480L0 32C0 14.3 14.3 0 32 0z"/>'},language:{category:"ui",viewBox:"0 0 576 512",svg:'<path opacity=".4" fill="currentColor" d="M258.8 467c58.2-131 80.2-180.5 128-288 5.1-11.6 16.6-19 29.2-19s24.1 7.4 29.2 19l128 288c7.2 16.2-.1 35.1-16.2 42.2s-35.1-.1-42.2-16.2l-20-45-157.5 0-20 45c-7.2 16.2-26.1 23.4-42.2 16.2s-23.4-26.1-16.2-42.2zm106.9-83L466.3 384 416 270.8 365.7 384z"/><path fill="currentColor" d="M160 0c17.7 0 32 14.3 32 32l0 32 128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-9.6 0-8.4 23.1c-16.4 45.2-41.1 86.5-72.2 122 14.2 8.8 29 16.6 44.4 23.5l50.4 22.4-26 58.5-50.4-22.4c-23-10.2-45-22.4-65.8-36.4-21.3 17.2-44.6 32.2-69.5 44.7L78.3 380.6c-15.8 7.9-35 1.5-42.9-14.3s-1.5-35 14.3-42.9l34.5-17.3c16.3-8.2 31.8-17.7 46.4-28.3-13.8-12.7-26.8-26.4-38.9-40.9L71.4 212.5c-11.3-13.6-9.5-33.8 4.1-45.1s33.8-9.5 45.1 4.1l20.3 24.4c11.5 13.9 24.1 26.8 37.4 38.7 27.5-30.4 49.2-66.1 63.5-105.4l.5-1.2-210.3 0C14.3 128 0 113.7 0 96S14.3 64 32 64l96 0 0-32c0-17.7 14.3-32 32-32z"/>'},moon:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"/><path fill="currentColor" d=""/>'},sun:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24zM75 75c9.4-9.4 24.6-9.4 33.9 0l39.6 39.6c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L75 108.9c-9.4-9.4-9.4-24.6 0-33.9zm0 328.1l39.6-39.6c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L108.9 437c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zM232 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zm0 408c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zM363.5 114.6L403.1 75c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-39.6 39.6c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zm0 248.9c9.4-9.4 24.6-9.4 33.9 0L437 403.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-39.6-39.6c-9.4-9.4-9.4-24.6 0-33.9zM408 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24z"/><path fill="currentColor" d="M144 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0z"/>'},user:{category:"ui",viewBox:"0 0 448 512",svg:'<path fill="currentColor" d="M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"/>'}};var n={...l,...a},c={chevron:["chevron-down"],ui:["flag","language","moon","sun","user"]};var g={xs:"0.75rem",sm:"1rem",md:"1.25rem",lg:"1.5rem",xl:"2rem",xxl:"2.5rem"};function z(e){let o=typeof e=="string"?{name:e}:e,t=null;if(o.name&&o.name in n?t=n[o.name]:o.svg&&(t={viewBox:o.viewBox||"0 0 24 24",svg:o.svg}),!t)return o.name?console.warn(`Icon "${o.name}" not found in catalog`):console.warn("Icon configuration is invalid"),null;let r=o.size,i=typeof r=="number"?`${r}px`:g[r||"md"],s={width:i,height:i,display:"inline-block",verticalAlign:"middle",lineHeight:"1",flexShrink:"0"};return o.color&&(s.color=o.color),jsx("svg",{style:s,viewBox:t.viewBox,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",dangerouslySetInnerHTML:{__html:t.svg}})}function B(e){return e in n}function N(){return Object.keys(n)}function k(e){return c[e]||[]}function M(){return Object.keys(c)}
|
|
2
|
-
export{
|
|
1
|
+
import {jsx}from'@minejs/jsx/jsx-runtime';var i={"arrow-down":{category:"arrows",viewBox:"0 0 384 512",svg:'<path opacity=".4" fill="currentColor" d="M160 32l0 370.7 32 32 32-32 0-370.7c0-17.7-14.3-32-32-32s-32 14.3-32 32z"/><path fill="currentColor" d="M214.6 502.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 434.7 329.4 297.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160z"/>'},"arrow-left":{category:"arrows",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M77.3 256l32 32 370.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0-32 32z"/><path fill="currentColor" d="M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L77.3 256 214.6 393.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-160-160z"/>'}};var a={"bars-filter":{category:"bars",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M96 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32z"/><path fill="currentColor" d="M512 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l448 0c17.7 0 32-14.3 32-32zM320 416c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c17.7 0 32-14.3 32-32z"/>'},"bars-sort":{category:"bars",viewBox:"0 0 448 512",svg:'<path opacity=".4" fill="currentColor" d="M0 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"/><path fill="currentColor" d="M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zM192 416c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32z"/>'},"bars-staggered":{category:"bars",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M64 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 288c-17.7 0-32-14.3-32-32z"/><path fill="currentColor" d="M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zm0 320c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32z"/>'},bars:{category:"bars",viewBox:"0 0 448 512",svg:'<path opacity=".4" fill="currentColor" d="M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"/><path fill="currentColor" d="M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zm0 320c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32z"/>'}};var p={"chevron-down":{category:"chevron",viewBox:"0 0 448 512",svg:'<path opacity=".4" fill="currentColor" d="M246.6 406.6c-12.5 12.5-32.8 12.5-45.3 0l-192-192c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 338.7 393.4 169.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-192 192z"/><path fill="currentColor" d=""/>'},"chevron-left":{category:"chevron",viewBox:"0 0 320 512",svg:'<path opacity=".4" fill="currentColor" d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"/><path fill="currentColor" d=""/>'}};var g={a:{category:"letters",viewBox:"0 0 384 512",svg:'<path opacity=".4" fill="currentColor" d="M221.5 51.7C216.6 39.8 204.9 32 192 32s-24.6 7.8-29.5 19.7c-93.3 224-146.7 352-160 384-6.8 16.3 .9 35 17.2 41.8s35-.9 41.8-17.2l31.8-76.3 197.3 0 31.8 76.3c6.8 16.3 25.5 24 41.8 17.2s24-25.5 17.2-41.8c-13.3-32-66.7-160-160-384zM264 320l-144 0 72-172.8 72 172.8z"/><path fill="currentColor" d=""/>'},ain:{category:"letters",viewBox:"0 0 384 512",svg:'<g transform="translate(49 38) scale(6)"><path opacity=".4" fill="currentColor" d="M25.833,5.083c0,0-3.918-5.083-9.084-5.083S3.999,10.167,3.999,17.417c0,4.333,6.584,7,6.584,7 S0,33.084,0,48.417S14,72.5,26.25,72.5c4.667,0,21.417-8.833,21.417-8.833v-0.75c0,0-6.666,0-15.583,0s-27.25-7.583-27.25-19.75 c0-16.479,20.666-20.75,20.666-20.75s1.334-1.334,3.584-4.917s3.083-5.833,3.083-5.833s-4,1.166-8,3.083S18.001,19,15.834,19 s-8.417-3.582-8.417-5.666s3.917-6.25,9.667-7.5S25.833,5.083,25.833,5.083z"/></g><path fill="currentColor" d=""/>'}};var f={"shield-check":{category:"shield",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.7 0 172.4-82.5 213.2-263.9 213.7-363.2 .1-26.2-16.3-47.9-38.3-57.2L269.4 2.9C265.3 1 260.7 0 256.1 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM166.8 293.5c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-9 33.9 .6 8.8 9.1 17.7 18.3 26.5 27.4 28.5-39.2 57.1-78.5 85.6-117.7 7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5c-34.1 46.9-68.3 93.9-102.4 140.8-4.2 5.7-10.7 9.4-17.8 9.8s-14-2.2-18.9-7.3c-15.5-16-30.9-32-46.4-48z"/><path fill="currentColor" d="M313.4 169.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L249.8 338.9c-4.2 5.7-10.7 9.4-17.8 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9s24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7z"/>'},"shield-exclamation":{category:"shield",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.7 0 172.3-82.5 213.2-263.9 213.7-363.2 .1-26.2-16.3-47.9-38.3-57.2L268.5 2.5c-3.8-1.6-8.1-2.5-12.2-2.5-4.4 0-8.7 .8-12.8 2.5L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM288 336a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM224.7 145.7C223.4 127.5 237.8 112 256 112s32.7 15.5 31.4 33.7l-7.4 104c-.9 12.6-11.4 22.3-23.9 22.3s-23-9.7-23.9-22.3l-7.4-104z"/><path fill="currentColor" d="M256 368a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm0-256c18.3 0 32.7 15.5 31.4 33.7l-7.4 104c-.9 12.6-11.4 22.3-23.9 22.3s-23-9.7-23.9-22.3l-7.4-104C223.4 127.5 237.8 112 256 112z"/>'},"shield-halved":{category:"shield",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M16.2 140c.5 99.2 41.3 280.7 213.6 363.2 8.3 4 17.4 6 26.4 6 9.3 .1 18.6-1.9 27.1-6 172.4-82.5 213.1-264 213.6-363.2 .1-26.2-16.3-47.9-38.3-57.2L270.3 2.9C266.1 1 261.6 0 256.9 0l-.4 0c-5.7 .2-9.9 1.2-13.7 2.9L54.5 82.8c-22 9.3-38.4 31-38.3 57.2z"/><path fill="currentColor" d="M256.2 0c-4.6 0-9.2 1-13.3 2.9L54.5 82.8c-22 9.3-38.4 31-38.3 57.2 .5 99.2 41.3 280.7 213.6 363.2 8.3 4 17.4 6 26.4 6L256.2 0z"/>'},"shield-minus":{category:"shield",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.8 0 172.4-82.5 213.2-264 213.6-363.2 .1-26.2-16.3-47.9-38.3-57.2L269.4 2.9C265.2 1 260.7 0 256 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM160 240c0-13.3 10.7-24 24-24l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24z"/><path fill="currentColor" d="M160 240c0-13.3 10.7-24 24-24l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24z"/>'},"shield-slash":{category:"shield",viewBox:"0 0 576 512",svg:'<path opacity=".4" fill="currentColor" d="M48 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.8 0 27.5-13.1 51.6-28.8 72.7-46.2L51 120.8c-2 6-3 12.4-3 19.2z"/><path fill="currentColor" d="M7-24.9c9.4-9.4 24.6-9.4 33.9 0L130.1 64.2 274.7 2.9C278.8 1 283.4 0 288 0s9.2 1 13.4 2.9L489.7 82.8c22 9.3 38.4 31 38.3 57.2-.3 64.1-17.4 162.4-75.9 246.3L569 503.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L7 9.1C-2.3-.3-2.3-15.5 7-24.9z"/>'},shield:{category:"shield",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M256 0c4.6 0 9.2 1 13.4 2.9L457.8 82.8c22 9.3 38.4 31 38.3 57.2-.5 99.2-41.3 280.7-213.6 363.2-16.7 8-36.1 8-52.8 0-172.4-82.5-213.1-264-213.6-363.2-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.9 1 251.4 0 256 0z"/><path fill="currentColor" d=""/>'}};var u={asterisk:{category:"ui",viewBox:"0 0 448 512",svg:'<path opacity=".4" fill="currentColor" d="M224 0c17.7 0 32 14.3 32 32l0 168.6 144-83.1c15.3-8.8 34.9-3.6 43.7 11.7s3.6 34.9-11.7 43.7L288 256 432 339.1c15.3 8.8 20.6 28.4 11.7 43.7s-28.4 20.6-43.7 11.7L256 311.4 256 480c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-168.6-144 83.1c-15.3 8.8-34.9 3.6-43.7-11.7S.7 348 16 339.1L160 256 16 172.9C.7 164-4.5 144.5 4.3 129.1S32.7 108.6 48 117.4L192 200.6 192 32c0-17.7 14.3-32 32-32z"/><path fill="currentColor" d=""/>'},door:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M152 216l0 272c0 13.3 10.7 24 24 24s24-10.7 24-24l0-272c0-13.3-10.7-24-24-24s-24 10.7-24 24zm80-32l0 304c0 13.3 10.7 24 24 24s24-10.7 24-24l0-304c0-13.3-10.7-24-24-24s-24 10.7-24 24zm80 32l0 272c0 13.3 10.7 24 24 24s24-10.7 24-24l0-272c0-13.3-10.7-24-24-24s-24 10.7-24 24z"/><path fill="currentColor" d="M340.5 108.6l35.1-52.6c7.1-10.7 21.5-14 31.8-6.4 20.6 15.1 38.8 33.3 54.1 53.8 7.8 10.5 4.3 25.3-6.9 32.2l-54.1 33.8c-11.4 7.1-26.3 3.3-35.1-6.9-5.5-6.4-11.5-12.3-18-17.7-10.8-8.9-14.8-24.6-7-36.2zM315.6 7c15.1 3.6 20.8 21.2 12.2 34.1l-40 60c-5.2 7.8-14.5 11.7-23.9 11.2-5.2-.3-10.6-.3-15.8 0-9.4 .5-18.7-3.4-23.9-11.2l-40-60c-8.6-12.9-2.9-30.5 12.2-34.1 19.1-4.6 39.1-7 59.6-7s40.4 2.4 59.6 7zM57.4 135.5c-11.2-7-14.7-21.7-6.9-32.2 15.3-20.5 33.5-38.6 54.1-53.8 10.4-7.6 24.7-4.3 31.8 6.4l35.1 52.6c7.8 11.6 3.8 27.3-7 36.2-6.5 5.4-12.5 11.3-18 17.7-8.7 10.2-23.6 14-35.1 6.9L57.4 135.5zM112 256l0 24c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-24c0-21.2 2.6-41.8 7.5-61.6 3.6-14.7 20.7-20.5 33.6-12.5l59.7 37.3c8.4 5.3 12.6 15.2 11.8 25.1-.3 3.8-.5 7.7-.5 11.6zm299.3-36.8L471 182c12.9-8 29.9-2.3 33.6 12.5 4.9 19.7 7.5 40.3 7.5 61.6l0 24c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-24c0-3.9-.2-7.8-.5-11.6-.8-9.9 3.3-19.9 11.8-25.1zM112 376l0 112c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24L0 376c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24zm400 0l0 112c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24z"/>'},flag:{category:"ui",viewBox:"0 0 448 512",svg:'<path opacity=".4" fill="currentColor" d="M64 48l69-17.2c38.1-9.5 78.3-5.1 113.5 12.5 46.3 23.2 100.8 23.2 147.1 0l9.6-4.8C423.8 28.1 448 43.1 448 66.1l0 247.7c0 13.3-8.3 25.3-20.8 30l-34.7 13c-46.2 17.3-97.6 14.6-141.7-7.4-37.9-19-81.4-23.7-122.5-13.4L64 352 64 48z"/><path fill="currentColor" d="M32 0C49.7 0 64 14.3 64 32l0 448c0 17.7-14.3 32-32 32S0 497.7 0 480L0 32C0 14.3 14.3 0 32 0z"/>'},gear:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M208.3 256a47.7 47.7 0 1 0 95.4 0 47.7 47.7 0 1 0 -95.4 0z"/><path fill="currentColor" d="M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 352a96 96 0 1 0 -.6-192 96 96 0 1 0 .6 192z"/>'},house:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M48 267.7c2-1.2 4-2.6 5.8-4.3L256 75.7 458.2 263.4c1.8 1.7 3.7 3.1 5.8 4.3L464 448c0 35.3-28.7 64-64 64l-80 0 0-128c0-26.5-21.5-48-48-48l-32 0c-26.5 0-48 21.5-48 48l0 128-80 0c-35.3 0-64-28.7-64-64l0-180.3z"/><path fill="currentColor" d="M277.8 8.6c-12.3-11.4-31.3-11.4-43.5 0l-224 208c-13 12-13.7 32.3-1.7 45.2s32.3 13.7 45.2 1.7L256 75.7 458.2 263.4c13 12 33.2 11.3 45.2-1.7s11.3-33.2-1.7-45.2l-224-208zM240 336c-26.5 0-48 21.5-48 48l0 128 128 0 0-128c0-26.5-21.5-48-48-48l-32 0z"/>'},"key-skeleton":{category:"ui",viewBox:"0 0 448 512",svg:'<path opacity=".4" fill="currentColor" d="M9.4 393.4c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 416 96 397.3 137.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-41.4-41.4 86.1-86.1c-18.3-11.5-33.8-27-45.3-45.3L9.4 393.4z"/><path fill="currentColor" d="M304 64a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 224a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/>'},key:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M0 408l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7L282.3 343.7 168.3 229.7 7 391c-4.5 4.5-7 10.6-7 17z"/><path fill="currentColor" d="M168.3 229.7L282.3 343.7c16.9 5.4 35 8.3 53.7 8.3 97.2 0 176-78.8 176-176S433.2 0 336 0 160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7zM336 136a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z"/>'},language:{category:"ui",viewBox:"0 0 576 512",svg:'<path opacity=".4" fill="currentColor" d="M258.8 467c58.2-131 80.2-180.5 128-288 5.1-11.6 16.6-19 29.2-19s24.1 7.4 29.2 19l128 288c7.2 16.2-.1 35.1-16.2 42.2s-35.1-.1-42.2-16.2l-20-45-157.5 0-20 45c-7.2 16.2-26.1 23.4-42.2 16.2s-23.4-26.1-16.2-42.2zm106.9-83L466.3 384 416 270.8 365.7 384z"/><path fill="currentColor" d="M160 0c17.7 0 32 14.3 32 32l0 32 128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-9.6 0-8.4 23.1c-16.4 45.2-41.1 86.5-72.2 122 14.2 8.8 29 16.6 44.4 23.5l50.4 22.4-26 58.5-50.4-22.4c-23-10.2-45-22.4-65.8-36.4-21.3 17.2-44.6 32.2-69.5 44.7L78.3 380.6c-15.8 7.9-35 1.5-42.9-14.3s-1.5-35 14.3-42.9l34.5-17.3c16.3-8.2 31.8-17.7 46.4-28.3-13.8-12.7-26.8-26.4-38.9-40.9L71.4 212.5c-11.3-13.6-9.5-33.8 4.1-45.1s33.8-9.5 45.1 4.1l20.3 24.4c11.5 13.9 24.1 26.8 37.4 38.7 27.5-30.4 49.2-66.1 63.5-105.4l.5-1.2-210.3 0C14.3 128 0 113.7 0 96S14.3 64 32 64l96 0 0-32c0-17.7 14.3-32 32-32z"/>'},"lock-keyhole":{category:"ui",viewBox:"0 0 384 512",svg:'<path opacity=".4" fill="currentColor" d="M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64s64 28.7 64 64l0 64 64 0 0-64c0-70.7-57.3-128-128-128S64 25.3 64 96z"/><path fill="currentColor" d="M64 160c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L64 160zM216 296l0 80c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24s24 10.7 24 24z"/>'},lock:{category:"ui",viewBox:"0 0 384 512",svg:'<path opacity=".4" fill="currentColor" d="M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64s64 28.7 64 64l0 64 64 0 0-64c0-70.7-57.3-128-128-128S64 25.3 64 96z"/><path fill="currentColor" d="M64 160l256 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"/>'},moon:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"/><path fill="currentColor" d=""/>'},search:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M64 208a144 144 0 1 0 288 0 144 144 0 1 0 -288 0z"/><path fill="currentColor" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/>'},sun:{category:"ui",viewBox:"0 0 512 512",svg:'<path opacity=".4" fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24zM75 75c9.4-9.4 24.6-9.4 33.9 0l39.6 39.6c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L75 108.9c-9.4-9.4-9.4-24.6 0-33.9zm0 328.1l39.6-39.6c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L108.9 437c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zM232 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zm0 408c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zM363.5 114.6L403.1 75c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-39.6 39.6c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zm0 248.9c9.4-9.4 24.6-9.4 33.9 0L437 403.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-39.6-39.6c-9.4-9.4-9.4-24.6 0-33.9zM408 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24z"/><path fill="currentColor" d="M144 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0z"/>'},"unlock-keyhole":{category:"ui",viewBox:"0 0 384 512",svg:'<path opacity=".4" fill="currentColor" d="M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64 31.7 0 58 23 63.1 53.3 2.9 17.4 19.4 29.2 36.9 26.3s29.2-19.4 26.3-36.9C308.1 14.1 255.5-32 192-32 121.3-32 64 25.3 64 96z"/><path fill="currentColor" d="M64 160c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L64 160zM232 360l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24s-10.7 24-24 24z"/>'},unlock:{category:"ui",viewBox:"0 0 384 512",svg:'<path opacity=".4" fill="currentColor" d="M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64 31.7 0 58 23 63.1 53.3 2.9 17.4 19.4 29.2 36.9 26.3s29.2-19.4 26.3-36.9C308.1 14.1 255.5-32 192-32 121.3-32 64 25.3 64 96z"/><path fill="currentColor" d="M0 224c0-35.3 28.7-64 64-64l256 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224z"/>'},user:{category:"ui",viewBox:"0 0 448 512",svg:'<path fill="currentColor" d="M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"/>'}};var l={...i,...a,...p,...g,...f,...u},t={arrows:["arrow-down","arrow-left"],bars:["bars-filter","bars-sort","bars-staggered","bars"],chevron:["chevron-down","chevron-left"],letters:["a","ain"],shield:["shield-check","shield-exclamation","shield-halved","shield-minus","shield-slash","shield"],ui:["asterisk","door","flag","gear","house","key-skeleton","key","language","lock-keyhole","lock","moon","search","sun","unlock-keyhole","unlock","user"]};var h={xs:"0.75rem",sm:"1rem",md:"1.25rem",lg:"1.5rem",xl:"2rem",xxl:"2.5rem"};function D(c){let o=typeof c=="string"?{name:c}:c,r=null;if(o.name&&o.name in l?r=l[o.name]:o.svg&&(r={viewBox:o.viewBox||"0 0 24 24",svg:o.svg}),!r)return o.name?console.warn(`Icon "${o.name}" not found in catalog`):console.warn("Icon configuration is invalid"),null;let e=o.size,s=typeof e=="number"?`${e}px`:h[e||"md"],n={width:s,height:s,display:"inline-block",verticalAlign:"middle",lineHeight:"1",flexShrink:"0"};return o.color&&(n.color=o.color),jsx("svg",{style:n,viewBox:r.viewBox,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",dangerouslySetInnerHTML:{__html:r.svg}})}function H(c){return c in l}function J(){return Object.keys(l)}function O(c){return t[c]||[]}function X(){return Object.keys(t)}
|
|
2
|
+
export{D as Icon,X as getIconCategories,J as getIconNames,O as getIconsByCategory,l as iconCatalog,H as iconExists,h as sizeMap};//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/kit/categories/chevron.ts","../src/kit/categories/ui.ts","../src/kit/categories/index.ts","../src/kit/icon.tsx"],"names":["chevronIcons","uiIcons","iconCatalog","iconsByCategory","sizeMap","Icon","props","cfg","iconData","sizeValue","size","style","jsx","iconExists","name","getIconNames","getIconsByCategory","category","getIconCategories"],"mappings":"0CAAO,IAAMA,CAAAA,CAAe,CAC1B,cAAA,CAAgB,CACd,QAAA,CAAU,SAAA,CACV,OAAA,CAAS,WAAA,CACT,GAAA,CAAK,8GACP,CACF,CAAA,CCNO,IAAMC,CAAAA,CAAU,CACrB,IAAA,CAAQ,CACN,QAAA,CAAU,IAAA,CACV,OAAA,CAAS,aAAA,CACT,GAAA,CAAK,2YACP,CAAA,CACA,QAAA,CAAY,CACV,QAAA,CAAU,IAAA,CACV,OAAA,CAAS,aAAA,CACT,GAAA,CAAK,+3BACP,CAAA,CACA,IAAA,CAAQ,CACN,QAAA,CAAU,IAAA,CACV,OAAA,CAAS,aAAA,CACT,GAAA,CAAK,8VACP,CAAA,CACA,GAAA,CAAO,CACL,QAAA,CAAU,IAAA,CACV,OAAA,CAAS,aAAA,CACT,GAAA,CAAK,o8BACP,CAAA,CACA,IAAA,CAAQ,CACN,QAAA,CAAU,IAAA,CACV,OAAA,CAAS,aAAA,CACT,GAAA,CAAK,4NACP,CACF,CAAA,CCvBO,IAAMC,CAAAA,CAAc,CACzB,GAAGF,CAAAA,CACH,GAAGC,CACL,CAAA,CAIaE,CAAAA,CAAkB,CAC7B,OAAA,CAAW,CAAC,cAAc,CAAA,CAC1B,EAAA,CAAM,CAAC,MAAA,CAAQ,UAAA,CAAY,MAAA,CAAQ,KAAA,CAAO,MAAM,CAClD,ECKW,IAAMC,CAAAA,CAAkC,CAC3C,EAAA,CAAU,SAAA,CACV,EAAA,CAAU,MAAA,CACV,EAAA,CAAU,SAAA,CACV,EAAA,CAAU,QAAA,CACV,EAAA,CAAU,MAAA,CACV,GAAA,CAAU,QACd,EAgBO,SAASC,CAAAA,CAAKC,CAAAA,CAAsC,CAWvD,IAAMC,CAAAA,CADS,OAAOD,CAAAA,EAAU,QAAA,CAAW,CAAE,IAAA,CAAMA,CAAM,CAAA,CAAIA,CAAAA,CAGzDE,CAAAA,CAAoD,IAAA,CAWxD,GATID,CAAAA,CAAI,IAAA,EAAQA,CAAAA,CAAI,IAAA,IAAQL,EACxBM,CAAAA,CAAWN,CAAAA,CAAYK,CAAAA,CAAI,IAAgB,CAAA,CACpCA,CAAAA,CAAI,GAAA,GACXC,CAAAA,CAAW,CACP,OAAA,CAAUD,CAAAA,CAAI,OAAA,EAAW,WAAA,CACzB,GAAA,CAAUA,CAAAA,CAAI,GAClB,CAAA,CAAA,CAGA,CAACC,CAAAA,CACD,OAAID,CAAAA,CAAI,IAAA,CACJ,OAAA,CAAQ,IAAA,CAAK,CAAA,MAAA,EAASA,CAAAA,CAAI,IAAI,CAAA,sBAAA,CAAwB,CAAA,CAEtD,OAAA,CAAQ,IAAA,CAAK,+BAA+B,CAAA,CAEzC,IAAA,CAGX,IAAME,CAAAA,CAAYF,CAAAA,CAAI,IAAA,CAEhBG,CAAAA,CAAO,OAAOD,CAAAA,EAAc,QAAA,CAC5B,CAAA,EAAGA,CAAS,CAAA,EAAA,CAAA,CACZL,CAAAA,CAAQK,CAAAA,EAAa,IAAI,CAAA,CAEzBE,CAAAA,CAAgC,CAClC,KAAA,CAA0BD,CAAAA,CAC1B,MAAA,CAA0BA,CAAAA,CAC1B,OAAA,CAA0B,cAAA,CAC1B,aAAA,CAA0B,QAAA,CAC1B,UAAA,CAA0B,GAAA,CAC1B,UAAA,CAA0B,GAC9B,CAAA,CAEA,OAAIH,CAAAA,CAAI,KAAA,GAAOI,CAAAA,CAAM,KAAA,CAAQJ,CAAAA,CAAI,KAAA,CAAA,CAG7BK,GAAAA,CAAC,KAAA,CAAA,CACG,KAAA,CAAuBD,CAAAA,CACvB,OAAA,CAAuBH,CAAAA,CAAS,OAAA,CAChC,IAAA,CAAsB,cAAA,CACtB,KAAA,CAAsB,4BAAA,CACtB,aAAA,CAAsB,MAAA,CACtB,IAAA,CAAsB,KAAA,CACtB,uBAAA,CAA2B,CACvB,MAAA,CAAkBA,CAAAA,CAAS,GAC/B,CAAA,CACJ,CAER,CAKO,SAASK,CAAAA,CAAWC,CAAAA,CAAgC,CACvD,OAAOA,CAAAA,IAAQZ,CACnB,CAKO,SAASa,CAAAA,EAA2B,CACvC,OAAO,MAAA,CAAO,IAAA,CAAKb,CAAW,CAClC,CAKO,SAASc,CAAAA,CAAmBC,CAAAA,CAA8B,CAC7D,OAAQd,CAAAA,CAAgBc,CAAwC,CAAA,EAAK,EACzE,CAKO,SAASC,CAAAA,EAA8B,CAC1C,OAAO,MAAA,CAAO,IAAA,CAAKf,CAAe,CACtC","file":"index.js","sourcesContent":["export const chevronIcons = {\n 'chevron-down': {\n category: 'chevron',\n viewBox: '0 0 24 24',\n svg: `<path d=\"M6 9L12 15L18 9\" stroke=\"#000000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>`,\n },\n} as const;\n\nexport type ChevronIconName = keyof typeof chevronIcons;\n","export const uiIcons = {\n 'flag': {\n category: 'ui',\n viewBox: '0 0 448 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 48l69-17.2c38.1-9.5 78.3-5.1 113.5 12.5 46.3 23.2 100.8 23.2 147.1 0l9.6-4.8C423.8 28.1 448 43.1 448 66.1l0 247.7c0 13.3-8.3 25.3-20.8 30l-34.7 13c-46.2 17.3-97.6 14.6-141.7-7.4-37.9-19-81.4-23.7-122.5-13.4L64 352 64 48z\"/><path fill=\"currentColor\" d=\"M32 0C49.7 0 64 14.3 64 32l0 448c0 17.7-14.3 32-32 32S0 497.7 0 480L0 32C0 14.3 14.3 0 32 0z\"/>`,\n },\n 'language': {\n category: 'ui',\n viewBox: '0 0 576 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M258.8 467c58.2-131 80.2-180.5 128-288 5.1-11.6 16.6-19 29.2-19s24.1 7.4 29.2 19l128 288c7.2 16.2-.1 35.1-16.2 42.2s-35.1-.1-42.2-16.2l-20-45-157.5 0-20 45c-7.2 16.2-26.1 23.4-42.2 16.2s-23.4-26.1-16.2-42.2zm106.9-83L466.3 384 416 270.8 365.7 384z\"/><path fill=\"currentColor\" d=\"M160 0c17.7 0 32 14.3 32 32l0 32 128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-9.6 0-8.4 23.1c-16.4 45.2-41.1 86.5-72.2 122 14.2 8.8 29 16.6 44.4 23.5l50.4 22.4-26 58.5-50.4-22.4c-23-10.2-45-22.4-65.8-36.4-21.3 17.2-44.6 32.2-69.5 44.7L78.3 380.6c-15.8 7.9-35 1.5-42.9-14.3s-1.5-35 14.3-42.9l34.5-17.3c16.3-8.2 31.8-17.7 46.4-28.3-13.8-12.7-26.8-26.4-38.9-40.9L71.4 212.5c-11.3-13.6-9.5-33.8 4.1-45.1s33.8-9.5 45.1 4.1l20.3 24.4c11.5 13.9 24.1 26.8 37.4 38.7 27.5-30.4 49.2-66.1 63.5-105.4l.5-1.2-210.3 0C14.3 128 0 113.7 0 96S14.3 64 32 64l96 0 0-32c0-17.7 14.3-32 32-32z\"/>`,\n },\n 'moon': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z\"/><path fill=\"currentColor\" d=\"\"/>`,\n },\n 'sun': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M0 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24zM75 75c9.4-9.4 24.6-9.4 33.9 0l39.6 39.6c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L75 108.9c-9.4-9.4-9.4-24.6 0-33.9zm0 328.1l39.6-39.6c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L108.9 437c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zM232 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zm0 408c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zM363.5 114.6L403.1 75c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-39.6 39.6c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zm0 248.9c9.4-9.4 24.6-9.4 33.9 0L437 403.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-39.6-39.6c-9.4-9.4-9.4-24.6 0-33.9zM408 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24z\"/><path fill=\"currentColor\" d=\"M144 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0z\"/>`,\n },\n 'user': {\n category: 'ui',\n viewBox: '0 0 448 512',\n svg: `<path fill=\"currentColor\" d=\"M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z\"/>`,\n },\n} as const;\n\nexport type UiIconName = keyof typeof uiIcons;\n","import { chevronIcons } from './chevron';\nimport { uiIcons } from './ui';\n\nexport const iconCatalog = {\n ...chevronIcons,\n ...uiIcons,\n} as const;\n\nexport type IconName = keyof typeof iconCatalog;\n\nexport const iconsByCategory = {\n 'chevron': ['chevron-down'],\n 'ui': ['flag', 'language', 'moon', 'sun', 'user'],\n} as const;\n","// src/kit/icon.tsx\r\n//\r\n// Made with ❤️ by Maysara.\r\n\r\n\r\n\r\n// ╔════════════════════════════════════════ PACK ════════════════════════════════════════╗\r\n\r\n import { JSXElement } from '@minejs/jsx';\r\n import { IconProps, iconCatalog, type IconName } from '../types';\r\n import { iconsByCategory } from './categories';\r\n\r\n// ╚══════════════════════════════════════════════════════════════════════════════════════╝\r\n\r\n\r\n\r\n// ╔════════════════════════════════════════ INIT ════════════════════════════════════════╗\r\n\r\n export const sizeMap: Record<string, string> = {\r\n xs : '0.75rem',\r\n sm : '1rem',\r\n md : '1.25rem',\r\n lg : '1.5rem',\r\n xl : '2rem',\r\n 'xxl' : '2.5rem'\r\n };\r\n\r\n// ╚══════════════════════════════════════════════════════════════════════════════════════╝\r\n\r\n\r\n\r\n// ╔════════════════════════════════════════ CORE ════════════════════════════════════════╗\r\n\r\n /**\r\n * Icon Component\r\n * Renders inline SVG icons with various options\r\n *\r\n * @example\r\n * Icon('check')\r\n * Icon({ name: 'spinner', spin: true, size: 'lg' })\r\n */\r\n export function Icon(props: IconProps) : JSXElement | null {\r\n\r\n interface IconLikeConfig {\r\n name? : string\r\n size? : number | string\r\n color? : string\r\n svg? : string\r\n viewBox? : string\r\n }\r\n\r\n const config = typeof props === 'string' ? { name: props } : props;\r\n const cfg = config as IconLikeConfig;\r\n\r\n let iconData: { viewBox: string; svg: string } | null = null;\r\n\r\n if (cfg.name && cfg.name in iconCatalog) {\r\n iconData = iconCatalog[cfg.name as IconName] as { viewBox: string; svg: string };\r\n } else if (cfg.svg) {\r\n iconData = {\r\n viewBox : cfg.viewBox || '0 0 24 24',\r\n svg : cfg.svg\r\n };\r\n }\r\n\r\n if (!iconData) {\r\n if (cfg.name) {\r\n console.warn(`Icon \"${cfg.name}\" not found in catalog`);\r\n } else {\r\n console.warn('Icon configuration is invalid');\r\n }\r\n return null;\r\n }\r\n\r\n const sizeValue = cfg.size;\r\n\r\n const size = typeof sizeValue === 'number'\r\n ? `${sizeValue}px`\r\n : sizeMap[sizeValue || 'md'];\r\n\r\n const style: Record<string, string> = {\r\n width : size,\r\n height : size,\r\n display : 'inline-block',\r\n verticalAlign : 'middle',\r\n lineHeight : '1',\r\n flexShrink : '0'\r\n };\r\n\r\n if (cfg.color) style.color = cfg.color;\r\n\r\n return (\r\n <svg\r\n style = {style}\r\n viewBox = {iconData.viewBox}\r\n fill = \"currentColor\"\r\n xmlns = \"http://www.w3.org/2000/svg\"\r\n aria-hidden = \"true\"\r\n role = \"img\"\r\n dangerouslySetInnerHTML = {{\r\n __html : iconData.svg\r\n }}\r\n />\r\n );\r\n }\r\n\r\n /**\r\n * Utility function to check if an icon exists\r\n */\r\n export function iconExists(name: string): name is IconName {\r\n return name in iconCatalog;\r\n }\r\n\r\n /**\r\n * Get all available icon names\r\n */\r\n export function getIconNames(): IconName[] {\r\n return Object.keys(iconCatalog) as IconName[];\r\n }\r\n\r\n /**\r\n * Get icons by category\r\n */\r\n export function getIconsByCategory(category: string): IconName[] {\r\n return (iconsByCategory[category as keyof typeof iconsByCategory] || []) as unknown as IconName[];\r\n }\r\n\r\n /**\r\n * Get all available categories\r\n */\r\n export function getIconCategories(): string[] {\r\n return Object.keys(iconsByCategory);\r\n }\r\n\r\n// ╚══════════════════════════════════════════════════════════════════════════════════════╝\r\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/kit/categories/arrows.ts","../src/kit/categories/bars.ts","../src/kit/categories/chevron.ts","../src/kit/categories/letters.ts","../src/kit/categories/shield.ts","../src/kit/categories/ui.ts","../src/kit/categories/index.ts","../src/kit/icon.tsx"],"names":["arrowsIcons","barsIcons","chevronIcons","lettersIcons","shieldIcons","uiIcons","iconCatalog","iconsByCategory","sizeMap","Icon","props","cfg","iconData","sizeValue","size","style","jsx","iconExists","name","getIconNames","getIconsByCategory","category","getIconCategories"],"mappings":"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","file":"index.js","sourcesContent":["export const arrowsIcons = {\n 'arrow-down': {\n category: 'arrows',\n viewBox: '0 0 384 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M160 32l0 370.7 32 32 32-32 0-370.7c0-17.7-14.3-32-32-32s-32 14.3-32 32z\"/><path fill=\"currentColor\" d=\"M214.6 502.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 434.7 329.4 297.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160z\"/>`,\n },\n 'arrow-left': {\n category: 'arrows',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M77.3 256l32 32 370.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0-32 32z\"/><path fill=\"currentColor\" d=\"M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L77.3 256 214.6 393.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-160-160z\"/>`,\n },\n} as const;\n\nexport type ArrowsIconName = keyof typeof arrowsIcons;\n","export const barsIcons = {\n 'bars-filter': {\n category: 'bars',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M96 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M512 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l448 0c17.7 0 32-14.3 32-32zM320 416c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c17.7 0 32-14.3 32-32z\"/>`,\n },\n 'bars-sort': {\n category: 'bars',\n viewBox: '0 0 448 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M0 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zM192 416c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32z\"/>`,\n },\n 'bars-staggered': {\n category: 'bars',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 288c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zm0 320c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32z\"/>`,\n },\n 'bars': {\n category: 'bars',\n viewBox: '0 0 448 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z\"/><path fill=\"currentColor\" d=\"M448 96c0-17.7-14.3-32-32-32L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zm0 320c0-17.7-14.3-32-32-32L32 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32z\"/>`,\n },\n} as const;\n\nexport type BarsIconName = keyof typeof barsIcons;\n","export const chevronIcons = {\n 'chevron-down': {\n category: 'chevron',\n viewBox: '0 0 448 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M246.6 406.6c-12.5 12.5-32.8 12.5-45.3 0l-192-192c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 338.7 393.4 169.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-192 192z\"/><path fill=\"currentColor\" d=\"\"/>`,\n },\n 'chevron-left': {\n category: 'chevron',\n viewBox: '0 0 320 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/><path fill=\"currentColor\" d=\"\"/>`,\n },\n} as const;\n\nexport type ChevronIconName = keyof typeof chevronIcons;\n","export const lettersIcons = {\n 'a': {\n category: 'letters',\n viewBox: '0 0 384 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M221.5 51.7C216.6 39.8 204.9 32 192 32s-24.6 7.8-29.5 19.7c-93.3 224-146.7 352-160 384-6.8 16.3 .9 35 17.2 41.8s35-.9 41.8-17.2l31.8-76.3 197.3 0 31.8 76.3c6.8 16.3 25.5 24 41.8 17.2s24-25.5 17.2-41.8c-13.3-32-66.7-160-160-384zM264 320l-144 0 72-172.8 72 172.8z\"/><path fill=\"currentColor\" d=\"\"/>`,\n },\n 'ain': {\n category: 'letters',\n viewBox: '0 0 384 512',\n svg: `<g transform=\"translate(49 38) scale(6)\"><path opacity=\".4\" fill=\"currentColor\" d=\"M25.833,5.083c0,0-3.918-5.083-9.084-5.083S3.999,10.167,3.999,17.417c0,4.333,6.584,7,6.584,7 S0,33.084,0,48.417S14,72.5,26.25,72.5c4.667,0,21.417-8.833,21.417-8.833v-0.75c0,0-6.666,0-15.583,0s-27.25-7.583-27.25-19.75 c0-16.479,20.666-20.75,20.666-20.75s1.334-1.334,3.584-4.917s3.083-5.833,3.083-5.833s-4,1.166-8,3.083S18.001,19,15.834,19 s-8.417-3.582-8.417-5.666s3.917-6.25,9.667-7.5S25.833,5.083,25.833,5.083z\"/></g><path fill=\"currentColor\" d=\"\"/>`,\n },\n} as const;\n\nexport type LettersIconName = keyof typeof lettersIcons;\n","export const shieldIcons = {\n 'shield-check': {\n category: 'shield',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.7 0 172.4-82.5 213.2-263.9 213.7-363.2 .1-26.2-16.3-47.9-38.3-57.2L269.4 2.9C265.3 1 260.7 0 256.1 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM166.8 293.5c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-9 33.9 .6 8.8 9.1 17.7 18.3 26.5 27.4 28.5-39.2 57.1-78.5 85.6-117.7 7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5c-34.1 46.9-68.3 93.9-102.4 140.8-4.2 5.7-10.7 9.4-17.8 9.8s-14-2.2-18.9-7.3c-15.5-16-30.9-32-46.4-48z\"/><path fill=\"currentColor\" d=\"M313.4 169.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L249.8 338.9c-4.2 5.7-10.7 9.4-17.8 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9s24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7z\"/>`,\n },\n 'shield-exclamation': {\n category: 'shield',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.7 0 172.3-82.5 213.2-263.9 213.7-363.2 .1-26.2-16.3-47.9-38.3-57.2L268.5 2.5c-3.8-1.6-8.1-2.5-12.2-2.5-4.4 0-8.7 .8-12.8 2.5L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM288 336a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM224.7 145.7C223.4 127.5 237.8 112 256 112s32.7 15.5 31.4 33.7l-7.4 104c-.9 12.6-11.4 22.3-23.9 22.3s-23-9.7-23.9-22.3l-7.4-104z\"/><path fill=\"currentColor\" d=\"M256 368a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm0-256c18.3 0 32.7 15.5 31.4 33.7l-7.4 104c-.9 12.6-11.4 22.3-23.9 22.3s-23-9.7-23.9-22.3l-7.4-104C223.4 127.5 237.8 112 256 112z\"/>`,\n },\n 'shield-halved': {\n category: 'shield',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M16.2 140c.5 99.2 41.3 280.7 213.6 363.2 8.3 4 17.4 6 26.4 6 9.3 .1 18.6-1.9 27.1-6 172.4-82.5 213.1-264 213.6-363.2 .1-26.2-16.3-47.9-38.3-57.2L270.3 2.9C266.1 1 261.6 0 256.9 0l-.4 0c-5.7 .2-9.9 1.2-13.7 2.9L54.5 82.8c-22 9.3-38.4 31-38.3 57.2z\"/><path fill=\"currentColor\" d=\"M256.2 0c-4.6 0-9.2 1-13.3 2.9L54.5 82.8c-22 9.3-38.4 31-38.3 57.2 .5 99.2 41.3 280.7 213.6 363.2 8.3 4 17.4 6 26.4 6L256.2 0z\"/>`,\n },\n 'shield-minus': {\n category: 'shield',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M16 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.8 0 172.4-82.5 213.2-264 213.6-363.2 .1-26.2-16.3-47.9-38.3-57.2L269.4 2.9C265.2 1 260.7 0 256 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2zM160 240c0-13.3 10.7-24 24-24l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24z\"/><path fill=\"currentColor\" d=\"M160 240c0-13.3 10.7-24 24-24l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24z\"/>`,\n },\n 'shield-slash': {\n category: 'shield',\n viewBox: '0 0 576 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M48 140c.5 99.2 41.3 280.7 213.6 363.2 16.7 8 36.1 8 52.8 0 27.5-13.1 51.6-28.8 72.7-46.2L51 120.8c-2 6-3 12.4-3 19.2z\"/><path fill=\"currentColor\" d=\"M7-24.9c9.4-9.4 24.6-9.4 33.9 0L130.1 64.2 274.7 2.9C278.8 1 283.4 0 288 0s9.2 1 13.4 2.9L489.7 82.8c22 9.3 38.4 31 38.3 57.2-.3 64.1-17.4 162.4-75.9 246.3L569 503.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L7 9.1C-2.3-.3-2.3-15.5 7-24.9z\"/>`,\n },\n 'shield': {\n category: 'shield',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M256 0c4.6 0 9.2 1 13.4 2.9L457.8 82.8c22 9.3 38.4 31 38.3 57.2-.5 99.2-41.3 280.7-213.6 363.2-16.7 8-36.1 8-52.8 0-172.4-82.5-213.1-264-213.6-363.2-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.9 1 251.4 0 256 0z\"/><path fill=\"currentColor\" d=\"\"/>`,\n },\n} as const;\n\nexport type ShieldIconName = keyof typeof shieldIcons;\n","export const uiIcons = {\n 'asterisk': {\n category: 'ui',\n viewBox: '0 0 448 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M224 0c17.7 0 32 14.3 32 32l0 168.6 144-83.1c15.3-8.8 34.9-3.6 43.7 11.7s3.6 34.9-11.7 43.7L288 256 432 339.1c15.3 8.8 20.6 28.4 11.7 43.7s-28.4 20.6-43.7 11.7L256 311.4 256 480c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-168.6-144 83.1c-15.3 8.8-34.9 3.6-43.7-11.7S.7 348 16 339.1L160 256 16 172.9C.7 164-4.5 144.5 4.3 129.1S32.7 108.6 48 117.4L192 200.6 192 32c0-17.7 14.3-32 32-32z\"/><path fill=\"currentColor\" d=\"\"/>`,\n },\n 'door': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M152 216l0 272c0 13.3 10.7 24 24 24s24-10.7 24-24l0-272c0-13.3-10.7-24-24-24s-24 10.7-24 24zm80-32l0 304c0 13.3 10.7 24 24 24s24-10.7 24-24l0-304c0-13.3-10.7-24-24-24s-24 10.7-24 24zm80 32l0 272c0 13.3 10.7 24 24 24s24-10.7 24-24l0-272c0-13.3-10.7-24-24-24s-24 10.7-24 24z\"/><path fill=\"currentColor\" d=\"M340.5 108.6l35.1-52.6c7.1-10.7 21.5-14 31.8-6.4 20.6 15.1 38.8 33.3 54.1 53.8 7.8 10.5 4.3 25.3-6.9 32.2l-54.1 33.8c-11.4 7.1-26.3 3.3-35.1-6.9-5.5-6.4-11.5-12.3-18-17.7-10.8-8.9-14.8-24.6-7-36.2zM315.6 7c15.1 3.6 20.8 21.2 12.2 34.1l-40 60c-5.2 7.8-14.5 11.7-23.9 11.2-5.2-.3-10.6-.3-15.8 0-9.4 .5-18.7-3.4-23.9-11.2l-40-60c-8.6-12.9-2.9-30.5 12.2-34.1 19.1-4.6 39.1-7 59.6-7s40.4 2.4 59.6 7zM57.4 135.5c-11.2-7-14.7-21.7-6.9-32.2 15.3-20.5 33.5-38.6 54.1-53.8 10.4-7.6 24.7-4.3 31.8 6.4l35.1 52.6c7.8 11.6 3.8 27.3-7 36.2-6.5 5.4-12.5 11.3-18 17.7-8.7 10.2-23.6 14-35.1 6.9L57.4 135.5zM112 256l0 24c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-24c0-21.2 2.6-41.8 7.5-61.6 3.6-14.7 20.7-20.5 33.6-12.5l59.7 37.3c8.4 5.3 12.6 15.2 11.8 25.1-.3 3.8-.5 7.7-.5 11.6zm299.3-36.8L471 182c12.9-8 29.9-2.3 33.6 12.5 4.9 19.7 7.5 40.3 7.5 61.6l0 24c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-24c0-3.9-.2-7.8-.5-11.6-.8-9.9 3.3-19.9 11.8-25.1zM112 376l0 112c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24L0 376c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24zm400 0l0 112c0 13.3-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24z\"/>`,\n },\n 'flag': {\n category: 'ui',\n viewBox: '0 0 448 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 48l69-17.2c38.1-9.5 78.3-5.1 113.5 12.5 46.3 23.2 100.8 23.2 147.1 0l9.6-4.8C423.8 28.1 448 43.1 448 66.1l0 247.7c0 13.3-8.3 25.3-20.8 30l-34.7 13c-46.2 17.3-97.6 14.6-141.7-7.4-37.9-19-81.4-23.7-122.5-13.4L64 352 64 48z\"/><path fill=\"currentColor\" d=\"M32 0C49.7 0 64 14.3 64 32l0 448c0 17.7-14.3 32-32 32S0 497.7 0 480L0 32C0 14.3 14.3 0 32 0z\"/>`,\n },\n 'gear': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M208.3 256a47.7 47.7 0 1 0 95.4 0 47.7 47.7 0 1 0 -95.4 0z\"/><path fill=\"currentColor\" d=\"M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 352a96 96 0 1 0 -.6-192 96 96 0 1 0 .6 192z\"/>`,\n },\n 'house': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M48 267.7c2-1.2 4-2.6 5.8-4.3L256 75.7 458.2 263.4c1.8 1.7 3.7 3.1 5.8 4.3L464 448c0 35.3-28.7 64-64 64l-80 0 0-128c0-26.5-21.5-48-48-48l-32 0c-26.5 0-48 21.5-48 48l0 128-80 0c-35.3 0-64-28.7-64-64l0-180.3z\"/><path fill=\"currentColor\" d=\"M277.8 8.6c-12.3-11.4-31.3-11.4-43.5 0l-224 208c-13 12-13.7 32.3-1.7 45.2s32.3 13.7 45.2 1.7L256 75.7 458.2 263.4c13 12 33.2 11.3 45.2-1.7s11.3-33.2-1.7-45.2l-224-208zM240 336c-26.5 0-48 21.5-48 48l0 128 128 0 0-128c0-26.5-21.5-48-48-48l-32 0z\"/>`,\n },\n 'key-skeleton': {\n category: 'ui',\n viewBox: '0 0 448 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M9.4 393.4c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 416 96 397.3 137.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-41.4-41.4 86.1-86.1c-18.3-11.5-33.8-27-45.3-45.3L9.4 393.4z\"/><path fill=\"currentColor\" d=\"M304 64a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 224a144 144 0 1 0 0-288 144 144 0 1 0 0 288z\"/>`,\n },\n 'key': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M0 408l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7L282.3 343.7 168.3 229.7 7 391c-4.5 4.5-7 10.6-7 17z\"/><path fill=\"currentColor\" d=\"M168.3 229.7L282.3 343.7c16.9 5.4 35 8.3 53.7 8.3 97.2 0 176-78.8 176-176S433.2 0 336 0 160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7zM336 136a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z\"/>`,\n },\n 'language': {\n category: 'ui',\n viewBox: '0 0 576 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M258.8 467c58.2-131 80.2-180.5 128-288 5.1-11.6 16.6-19 29.2-19s24.1 7.4 29.2 19l128 288c7.2 16.2-.1 35.1-16.2 42.2s-35.1-.1-42.2-16.2l-20-45-157.5 0-20 45c-7.2 16.2-26.1 23.4-42.2 16.2s-23.4-26.1-16.2-42.2zm106.9-83L466.3 384 416 270.8 365.7 384z\"/><path fill=\"currentColor\" d=\"M160 0c17.7 0 32 14.3 32 32l0 32 128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-9.6 0-8.4 23.1c-16.4 45.2-41.1 86.5-72.2 122 14.2 8.8 29 16.6 44.4 23.5l50.4 22.4-26 58.5-50.4-22.4c-23-10.2-45-22.4-65.8-36.4-21.3 17.2-44.6 32.2-69.5 44.7L78.3 380.6c-15.8 7.9-35 1.5-42.9-14.3s-1.5-35 14.3-42.9l34.5-17.3c16.3-8.2 31.8-17.7 46.4-28.3-13.8-12.7-26.8-26.4-38.9-40.9L71.4 212.5c-11.3-13.6-9.5-33.8 4.1-45.1s33.8-9.5 45.1 4.1l20.3 24.4c11.5 13.9 24.1 26.8 37.4 38.7 27.5-30.4 49.2-66.1 63.5-105.4l.5-1.2-210.3 0C14.3 128 0 113.7 0 96S14.3 64 32 64l96 0 0-32c0-17.7 14.3-32 32-32z\"/>`,\n },\n 'lock-keyhole': {\n category: 'ui',\n viewBox: '0 0 384 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64s64 28.7 64 64l0 64 64 0 0-64c0-70.7-57.3-128-128-128S64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M64 160c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L64 160zM216 296l0 80c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24s24 10.7 24 24z\"/>`,\n },\n 'lock': {\n category: 'ui',\n viewBox: '0 0 384 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64s64 28.7 64 64l0 64 64 0 0-64c0-70.7-57.3-128-128-128S64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M64 160l256 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z\"/>`,\n },\n 'moon': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z\"/><path fill=\"currentColor\" d=\"\"/>`,\n },\n 'search': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 208a144 144 0 1 0 288 0 144 144 0 1 0 -288 0z\"/><path fill=\"currentColor\" d=\"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z\"/>`,\n },\n 'sun': {\n category: 'ui',\n viewBox: '0 0 512 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M0 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24zM75 75c9.4-9.4 24.6-9.4 33.9 0l39.6 39.6c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L75 108.9c-9.4-9.4-9.4-24.6 0-33.9zm0 328.1l39.6-39.6c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L108.9 437c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zM232 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zm0 408c0-13.3 10.7-24 24-24s24 10.7 24 24l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56zM363.5 114.6L403.1 75c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-39.6 39.6c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zm0 248.9c9.4-9.4 24.6-9.4 33.9 0L437 403.1c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-39.6-39.6c-9.4-9.4-9.4-24.6 0-33.9zM408 256c0-13.3 10.7-24 24-24l56 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-56 0c-13.3 0-24-10.7-24-24z\"/><path fill=\"currentColor\" d=\"M144 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0z\"/>`,\n },\n 'unlock-keyhole': {\n category: 'ui',\n viewBox: '0 0 384 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64 31.7 0 58 23 63.1 53.3 2.9 17.4 19.4 29.2 36.9 26.3s29.2-19.4 26.3-36.9C308.1 14.1 255.5-32 192-32 121.3-32 64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M64 160c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L64 160zM232 360l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24s-10.7 24-24 24z\"/>`,\n },\n 'unlock': {\n category: 'ui',\n viewBox: '0 0 384 512',\n svg: `<path opacity=\".4\" fill=\"currentColor\" d=\"M64 96l0 64 64 0 0-64c0-35.3 28.7-64 64-64 31.7 0 58 23 63.1 53.3 2.9 17.4 19.4 29.2 36.9 26.3s29.2-19.4 26.3-36.9C308.1 14.1 255.5-32 192-32 121.3-32 64 25.3 64 96z\"/><path fill=\"currentColor\" d=\"M0 224c0-35.3 28.7-64 64-64l256 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224z\"/>`,\n },\n 'user': {\n category: 'ui',\n viewBox: '0 0 448 512',\n svg: `<path fill=\"currentColor\" d=\"M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z\"/>`,\n },\n} as const;\n\nexport type UiIconName = keyof typeof uiIcons;\n","import { arrowsIcons } from './arrows';\nimport { barsIcons } from './bars';\nimport { chevronIcons } from './chevron';\nimport { lettersIcons } from './letters';\nimport { shieldIcons } from './shield';\nimport { uiIcons } from './ui';\n\nexport const iconCatalog = {\n ...arrowsIcons,\n ...barsIcons,\n ...chevronIcons,\n ...lettersIcons,\n ...shieldIcons,\n ...uiIcons,\n} as const;\n\nexport type IconName = keyof typeof iconCatalog;\n\nexport const iconsByCategory = {\n 'arrows': ['arrow-down', 'arrow-left'],\n 'bars': ['bars-filter', 'bars-sort', 'bars-staggered', 'bars'],\n 'chevron': ['chevron-down', 'chevron-left'],\n 'letters': ['a', 'ain'],\n 'shield': ['shield-check', 'shield-exclamation', 'shield-halved', 'shield-minus', 'shield-slash', 'shield'],\n 'ui': ['asterisk', 'door', 'flag', 'gear', 'house', 'key-skeleton', 'key', 'language', 'lock-keyhole', 'lock', 'moon', 'search', 'sun', 'unlock-keyhole', 'unlock', 'user'],\n} as const;\n","// src/kit/icon.tsx\r\n//\r\n// Made with ❤️ by Maysara.\r\n\r\n\r\n\r\n// ╔════════════════════════════════════════ PACK ════════════════════════════════════════╗\r\n\r\n import { JSXElement } from '@minejs/jsx';\r\n import { IconProps, iconCatalog, type IconName } from '../types';\r\n import { iconsByCategory } from './categories';\r\n\r\n// ╚══════════════════════════════════════════════════════════════════════════════════════╝\r\n\r\n\r\n\r\n// ╔════════════════════════════════════════ INIT ════════════════════════════════════════╗\r\n\r\n export const sizeMap: Record<string, string> = {\r\n xs : '0.75rem',\r\n sm : '1rem',\r\n md : '1.25rem',\r\n lg : '1.5rem',\r\n xl : '2rem',\r\n 'xxl' : '2.5rem'\r\n };\r\n\r\n// ╚══════════════════════════════════════════════════════════════════════════════════════╝\r\n\r\n\r\n\r\n// ╔════════════════════════════════════════ CORE ════════════════════════════════════════╗\r\n\r\n /**\r\n * Icon Component\r\n * Renders inline SVG icons with various options\r\n *\r\n * @example\r\n * Icon('check')\r\n * Icon({ name: 'spinner', spin: true, size: 'lg' })\r\n */\r\n export function Icon(props: IconProps) : JSXElement | null {\r\n\r\n interface IconLikeConfig {\r\n name? : string\r\n size? : number | string\r\n color? : string\r\n svg? : string\r\n viewBox? : string\r\n }\r\n\r\n const config = typeof props === 'string' ? { name: props } : props;\r\n const cfg = config as IconLikeConfig;\r\n\r\n let iconData: { viewBox: string; svg: string } | null = null;\r\n\r\n if (cfg.name && cfg.name in iconCatalog) {\r\n iconData = iconCatalog[cfg.name as IconName] as { viewBox: string; svg: string };\r\n } else if (cfg.svg) {\r\n iconData = {\r\n viewBox : cfg.viewBox || '0 0 24 24',\r\n svg : cfg.svg\r\n };\r\n }\r\n\r\n if (!iconData) {\r\n if (cfg.name) {\r\n console.warn(`Icon \"${cfg.name}\" not found in catalog`);\r\n } else {\r\n console.warn('Icon configuration is invalid');\r\n }\r\n return null;\r\n }\r\n\r\n const sizeValue = cfg.size;\r\n\r\n const size = typeof sizeValue === 'number'\r\n ? `${sizeValue}px`\r\n : sizeMap[sizeValue || 'md'];\r\n\r\n const style: Record<string, string> = {\r\n width : size,\r\n height : size,\r\n display : 'inline-block',\r\n verticalAlign : 'middle',\r\n lineHeight : '1',\r\n flexShrink : '0'\r\n };\r\n\r\n if (cfg.color) style.color = cfg.color;\r\n\r\n return (\r\n <svg\r\n style = {style}\r\n viewBox = {iconData.viewBox}\r\n fill = \"currentColor\"\r\n xmlns = \"http://www.w3.org/2000/svg\"\r\n aria-hidden = \"true\"\r\n role = \"img\"\r\n dangerouslySetInnerHTML = {{\r\n __html : iconData.svg\r\n }}\r\n />\r\n );\r\n }\r\n\r\n /**\r\n * Utility function to check if an icon exists\r\n */\r\n export function iconExists(name: string): name is IconName {\r\n return name in iconCatalog;\r\n }\r\n\r\n /**\r\n * Get all available icon names\r\n */\r\n export function getIconNames(): IconName[] {\r\n return Object.keys(iconCatalog) as IconName[];\r\n }\r\n\r\n /**\r\n * Get icons by category\r\n */\r\n export function getIconsByCategory(category: string): IconName[] {\r\n return (iconsByCategory[category as keyof typeof iconsByCategory] || []) as unknown as IconName[];\r\n }\r\n\r\n /**\r\n * Get all available categories\r\n */\r\n export function getIconCategories(): string[] {\r\n return Object.keys(iconsByCategory);\r\n }\r\n\r\n// ╚══════════════════════════════════════════════════════════════════════════════════════╝\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cruxkit/icon",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "A lightweight, type-safe icon library offering full TypeScript support and effortless customization.",
|
|
5
5
|
"keywords": ["crux", "kit", "icon"],
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"bun": "^1.3.3"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@minejs/jsx": "^0.1.
|
|
43
|
+
"@minejs/jsx": "^0.1.4"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@eslint/js": "^9.39.2",
|
|
47
|
-
"@stylistic/eslint-plugin": "^5.
|
|
48
|
-
"@types/bun": "^1.3.
|
|
47
|
+
"@stylistic/eslint-plugin": "^5.7.0",
|
|
48
|
+
"@types/bun": "^1.3.6",
|
|
49
49
|
"@types/jsdom": "^27.0.0",
|
|
50
|
-
"@types/node": "^20.19.
|
|
51
|
-
"@types/react": "^19.2.
|
|
50
|
+
"@types/node": "^20.19.30",
|
|
51
|
+
"@types/react": "^19.2.9",
|
|
52
52
|
"bun-plugin-dts": "^0.3.0",
|
|
53
|
-
"bun-types": "^1.3.
|
|
53
|
+
"bun-types": "^1.3.6",
|
|
54
54
|
"jsdom": "^27.4.0",
|
|
55
55
|
"ts-node": "^10.9.2",
|
|
56
56
|
"tsup": "^8.5.1",
|
|
57
57
|
"typescript": "^5.9.3",
|
|
58
|
-
"typescript-eslint": "^8.
|
|
58
|
+
"typescript-eslint": "^8.53.1"
|
|
59
59
|
}
|
|
60
60
|
}
|