@yuktishaalaa/yuktai 5.3.1 → 5.3.2
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 +8 -5
- package/dist/chunk-LV252EOY.mjs +1 -0
- package/dist/icons.d.mts +100 -1
- package/dist/icons.d.ts +100 -1
- package/dist/icons.js +1 -1
- package/dist/icons.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +62 -62
- package/dist/index.mjs +17 -17
- package/package.json +1 -1
- package/vanilla/index.js +35 -1
- package/vanilla/index.min.js +14 -14
- package/dist/chunk-RQKKMYGR.mjs +0 -1
package/README.md
CHANGED
|
@@ -735,12 +735,12 @@ Needed only for Gemini Nano features on desktop Chrome. Mobile and other browser
|
|
|
735
735
|
|
|
736
736
|
## Icons
|
|
737
737
|
|
|
738
|
-
|
|
738
|
+
74 yuktai SVG icons for Next.js and React, with no icon library needed. They are the same icons the vanilla build draws with `yuktai.icon()`.
|
|
739
739
|
|
|
740
740
|
### Next.js setup
|
|
741
741
|
|
|
742
742
|
```bash
|
|
743
|
-
npm install @yuktishaalaa/yuktai@5.3.
|
|
743
|
+
npm install @yuktishaalaa/yuktai@5.3.2
|
|
744
744
|
```
|
|
745
745
|
|
|
746
746
|
Import from **`@yuktishaalaa/yuktai/icons`**. This entry has no hooks and no browser code, so the icons work in **Server Components** (no `"use client"` needed), in Client Components, and in the Pages Router.
|
|
@@ -768,7 +768,7 @@ export default function Page() {
|
|
|
768
768
|
}
|
|
769
769
|
```
|
|
770
770
|
|
|
771
|
-
Importing from the main entry (`@yuktishaalaa/yuktai`) still works, but the `/icons` entry is smaller (about
|
|
771
|
+
Importing from the main entry (`@yuktishaalaa/yuktai`) still works, but the `/icons` entry is smaller (about 20 KB) and safe on the server.
|
|
772
772
|
|
|
773
773
|
### Props
|
|
774
774
|
|
|
@@ -784,7 +784,7 @@ Importing from the main entry (`@yuktishaalaa/yuktai`) still works, but the `/ic
|
|
|
784
784
|
|
|
785
785
|
Any other SVG attribute (`className`, `style`, `id`) is passed through.
|
|
786
786
|
|
|
787
|
-
### All
|
|
787
|
+
### All 74 icons
|
|
788
788
|
|
|
789
789
|
| Component | `name` | Component | `name` |
|
|
790
790
|
|---|---|---|---|
|
|
@@ -810,6 +810,8 @@ Any other SVG attribute (`className`, `style`, `id`) is passed through.
|
|
|
810
810
|
| `MicIcon` | mic | `StopIcon` | stop |
|
|
811
811
|
| `DownloadIcon` | download | | |
|
|
812
812
|
|
|
813
|
+
**New in v5.3.2 (33):** `HomeIcon` (home), `MenuIcon` (menu), `BookIcon` (book), `CalendarIcon` (calendar), `ClockIcon` (clock), `PersonIcon` (person), `UsersIcon` (users), `GlobeIcon` (globe), `LampIcon` (lamp), `PlayIcon` (play), `PauseIcon` (pause), `SendIcon` (send), `ShareIcon` (share), `GiftIcon` (gift), `ImageIcon` (image), `FileIcon` (file), `ExternalIcon` (external), `ArrowUpIcon` (arrowUp), `ArrowLeftIcon` (arrowLeft), `ArrowRightIcon` (arrowRight), `HeadphonesIcon` (headphones), `MusicIcon` (music), `PinIcon` (pin), `MapIcon` (map), `PenIcon` (pen), `WalletIcon` (wallet), `InstallIcon` (install), `HelpIcon` (help), `TempleIcon` (temple), `MeditateIcon` (meditate), `TrophyIcon` (trophy), `BulbIcon` (bulb), `SunIcon` (sun).
|
|
814
|
+
|
|
813
815
|
`ICON_NAMES` lists every name, and the `IconName` type checks it, so `<YuktaiIcon name="mike" />` is a type error.
|
|
814
816
|
|
|
815
817
|
### WCAG built in
|
|
@@ -863,7 +865,8 @@ Helpers: `iconContrast(fg, bg)` returns the contrast ratio, `pickGlyphColor(bg)`
|
|
|
863
865
|
|
|
864
866
|
| Version | What shipped |
|
|
865
867
|
|---|---|
|
|
866
|
-
| **v5.3.
|
|
868
|
+
| **v5.3.2** | 33 more icons (home, menu, book, calendar, sun, lamp, temple, meditate, share, play, pause and more), first used on the Sri Yagnavalkya Jayanti site in place of Font Awesome and Material Icons |
|
|
869
|
+
| **v5.3.1** | **74 icons for Next.js and React** (41 in 5.3.1, 33 more in 5.3.2) from the new `@yuktishaalaa/yuktai/icons` entry, safe in Server Components; outline and filled variants with WCAG 1.4.11 contrast checks; same icons in the vanilla build |
|
|
867
870
|
| | Yuktisárathi brand on the demo: navy and gold logo, W3C blue `#005A9C` for links and controls |
|
|
868
871
|
| **v5.3** | **Vanilla JS build:** every module for plain HTML with one script tag, built from the same source as the npm package |
|
|
869
872
|
| | Vanilla grid: themes, card view, Telugu UI, ARIA grid keyboard navigation, question bar, assistant with custom rules and voice, WebMCP |
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var F="[data-yuktai-panel]";function L(){return typeof window<"u"&&typeof document<"u"}function bt(o){return typeof o=="object"&&o!==null&&o.nodeType===9}function vt(o){return o||(L()?document:null)}function wt(o,t,r={}){return Array.from(o.querySelectorAll(t)).filter(a=>!a.closest(F)&&(r.includeHidden||D(a)))}function D(o){if(!L()||o.closest("[hidden],[aria-hidden='true']"))return!1;let t=o;for(;t;){let r=window.getComputedStyle(t);if(r.display==="none"||r.visibility==="hidden")return!1;t=t.parentElement}return!0}function I(o){return(o??"").replace(/\s+/g," ").trim()}function Ct(o,t=60){let r=I(o);return r.length>t?`${r.slice(0,t-1)}\u2026`:r}function St(o){let t=[],r=o;for(;r&&r.nodeType===1&&t.length<4;){let a=r.tagName.toLowerCase();if(r.id&&/^[A-Za-z][\w-]*$/.test(r.id)){t.unshift(`${a}#${r.id}`);break}let c=r.parentElement;if(!c){t.unshift(a);break}let s=Array.from(c.children).filter(i=>i.tagName===r.tagName);t.unshift(s.length>1?`${a}:nth-of-type(${s.indexOf(r)+1})`:a),r=c}return t.join(" > ")}function U(o,t){return o.split(/\s+/).map(r=>I(t.getElementById(r)?.textContent)).filter(Boolean).join(" ")}function At(o){let t=o.ownerDocument,r=o.getAttribute("aria-labelledby");if(r){let s=U(r,t);if(s)return s}let a=I(o.getAttribute("aria-label"));if(a)return a;let c=o.tagName.toLowerCase();if(c==="input"||c==="select"||c==="textarea"){let s=o.getAttribute("id");if(s){let h=t.querySelector(`label[for="${W(s)}"]`),m=I(h?.textContent);if(m)return m}let i=o.closest("label");if(i){let h=I(i.textContent);if(h)return h}let p=(o.getAttribute("type")??"").toLowerCase();if(p==="submit"||p==="button"||p==="reset")return I(o.getAttribute("value"))||(p==="submit"?"Submit":"");if(p==="image")return I(o.getAttribute("alt"))}if(c==="img")return I(o.getAttribute("alt"));if(c==="button"||c==="a"||o.getAttribute("role")){let s=I(o.textContent);if(s)return s;let i=Array.from(o.querySelectorAll("img[alt], svg[aria-label]")).map(p=>I(p.getAttribute("alt")??p.getAttribute("aria-label"))).filter(Boolean).join(" ");if(i)return i}return I(o.getAttribute("title"))}function W(o){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(o):o.replace(/["\\]/g,"\\$&")}function M(o){if(!o)return null;let t=o.trim().toLowerCase();if(t==="transparent")return{r:0,g:0,b:0,a:0};let r=t.match(/^rgba?\(([^)]+)\)$/);if(r){let c=r[1].split(/[\s,/]+/).filter(Boolean),[s,i,p]=c.slice(0,3).map(Number),h=c[3],m=h===void 0?1:h.endsWith("%")?Number(h.slice(0,-1))/100:Number(h);return[s,i,p,m].some(u=>!Number.isFinite(u))?null:{r:s,g:i,b:p,a:m}}let a=t.match(/^#([0-9a-f]{3,8})$/);if(a){let c=a[1];return(c.length===3||c.length===4)&&(c=c.split("").map(s=>s+s).join("")),c.length!==6&&c.length!==8?null:{r:parseInt(c.slice(0,2),16),g:parseInt(c.slice(2,4),16),b:parseInt(c.slice(4,6),16),a:c.length===8?parseInt(c.slice(6,8),16)/255:1}}return null}function v(o,t){let r=o.a+t.a*(1-o.a);if(r===0)return{r:0,g:0,b:0,a:0};let a=(c,s)=>(c*o.a+s*t.a*(1-o.a))/r;return{r:a(o.r,t.r),g:a(o.g,t.g),b:a(o.b,t.b),a:r}}function k(o){let t=r=>{let a=r/255;return a<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)};return .2126*t(o.r)+.7152*t(o.g)+.0722*t(o.b)}function B(o,t){let r=t.a<1?v(t,{r:255,g:255,b:255,a:1}):t,a=o.a<1?v(o,r):o,c=k(a),s=k(r),[i,p]=c>s?[c,s]:[s,c];return Math.round((i+.05)/(p+.05)*100)/100}function kt(o){let t=[],r=o;for(;r;){let c=window.getComputedStyle(r);if(c.backgroundImage&&c.backgroundImage!=="none")return null;let s=M(c.backgroundColor);if(s&&s.a>0&&(t.push(s),s.a>=1))break;r=r.parentElement}let a={r:255,g:255,b:255,a:1};for(let c=t.length-1;c>=0;c--)a=v(t[c],a);return a}function Lt(o){let t=window.getComputedStyle(o),r=parseFloat(t.fontSize)||16,a=parseInt(t.fontWeight,10)||400;return r>=24||r>=18.66&&a>=700}function Bt(o){return Array.from(o.childNodes).some(t=>t.nodeType===3&&I(t.textContent).length>0)}var Rt="a[href],button,input:not([type='hidden']),select,textarea,summary,[tabindex]:not([tabindex='-1']),[contenteditable='true']",Nt="a[href],button,input:not([type='hidden']),select,textarea,summary,[role='button'],[role='link'],[role='checkbox'],[role='tab'],[role='menuitem']";var x={accessibility:'<circle cx="12" cy="4" r="2"/><path d="M4 8l8-1 8 1M12 7v5m-5 9 5-8 5 8M7 12l-2 5m12-5 2 5"/>',contrast:'<circle cx="12" cy="12" r="9"/><path d="M12 3a9 9 0 0 0 0 18z"/>',moon:'<path d="M20 14.5A8.5 8.5 0 0 1 9.5 4 8.5 8.5 0 1 0 20 14.5z"/>',motion:'<path d="M4 12h12m-5-5 5 5-5 5M20 5v14"/>',reading:'<path d="M4 5h16M4 10h12M4 15h16M4 20h10"/>',target:'<circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="4"/>',speaker:'<path d="M4 9v6h4l5 4V5L8 9H4z"/><path d="M16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11"/>',palette:'<circle cx="12" cy="12" r="9"/><circle cx="8" cy="10" r="1.3"/><circle cx="12" cy="7.5" r="1.3"/><circle cx="16" cy="10" r="1.3"/><path d="M12 21a3 3 0 0 1 0-6h2"/>',skip:'<path d="M5 5l7 7-7 7M13 5l7 7-7 7"/>',close:'<path d="m18 6-12 12M6 6l12 12"/>',plus:'<path d="M12 5v14M5 12h14"/>',minus:'<path d="M5 12h14"/>',reset:'<path d="M3 12a9 9 0 1 0 3-6.7L3 8"/><path d="M3 3v5h5"/>',search:'<circle cx="11" cy="11" r="6.5"/><path d="m16 16 5 5"/>',sort:'<path d="m8 9 4-4 4 4m-8 6 4 4 4-4"/>',sortUp:'<path d="m6 15 6-6 6 6"/>',sortDown:'<path d="m6 9 6 6 6-6"/>',chevrons:'<path d="m8 9 4-4 4 4m-8 6 4 4 4-4"/>',grid:'<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/>',cards:'<rect x="3" y="4" width="18" height="7" rx="1.5"/><rect x="3" y="13" width="18" height="7" rx="1.5"/>',chat:'<path d="M21 11.5a8.5 8.5 0 0 1-8.5 8.5 9 9 0 0 1-4-.9L3 21l1.9-5.5a9 9 0 0 1-.9-4A8.5 8.5 0 0 1 12.5 3H13a8.5 8.5 0 0 1 8 8z"/>',mic:'<rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10a7 7 0 0 0 14 0M12 17v5m-4 0h8"/>',stop:'<rect x="6" y="6" width="12" height="12" rx="2"/>',download:'<path d="M12 3v12m-5-5 5 5 5-5M4 21h16"/>',copy:'<rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/>',filter:'<path d="M4 5h16l-6 7v6l-4 2v-8z"/>',check:'<path d="m5 12 4 4L19 6"/>',left:'<path d="m15 18-6-6 6-6"/>',right:'<path d="m9 18 6-6-6-6"/>',first:'<path d="m11 18-6-6 6-6M19 18l-6-6 6-6"/>',last:'<path d="m13 18 6-6-6-6M5 18l6-6-6-6"/>',spark:'<path d="m12 3 1.9 5.8L20 11l-6.1 2.2L12 19l-1.9-5.8L4 11l6.1-2.2zM19 14l1.2 2.8L23 18l-2.8 1.2L19 22l-1.2-2.8L15 18l2.8-1.2z"/>',alert:'<path d="m12 3 10 18H2L12 3z"/><path d="M12 9v5m0 3h.01"/>',info:'<circle cx="12" cy="12" r="9"/><path d="M12 11v6m0-9h.01"/>',form:'<rect x="5" y="3" width="14" height="18" rx="2"/><path d="M9 8h6M9 12h6M9 16h3"/>',eye:'<path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/>',layout:'<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M9 21V9"/>',wand:'<path d="m15 4 5 5L9 20H4v-5z"/><path d="m13 6 5 5"/>',undo:'<path d="M9 14 4 9l5-5"/><path d="M4 9h10a6 6 0 0 1 0 12h-3"/>',tools:'<path d="M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4z"/>',plug:'<path d="M9 2v6M15 2v6M6 8h12v4a6 6 0 0 1-12 0zM12 18v4"/>',home:'<path d="M3 11 12 4l9 7"/><path d="M5 10v10h5v-6h4v6h5V10"/>',menu:'<path d="M4 6h16M4 12h16M4 18h16"/>',book:'<path d="M12 6c-2-1.5-5-2-8-2v14c3 0 6 .5 8 2 2-1.5 5-2 8-2V4c-3 0-6 .5-8 2zM12 6v14"/>',calendar:'<rect x="3" y="5" width="18" height="16" rx="2"/><path d="M3 10h18M8 3v4M16 3v4M7.5 14h2M14.5 14h2M7.5 17.5h2"/>',clock:'<circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/>',person:'<circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/>',users:'<circle cx="9" cy="8" r="3.5"/><path d="M2 20a7 7 0 0 1 14 0"/><path d="M16 4.5a3.5 3.5 0 0 1 0 7M18 13.5a7 7 0 0 1 4 6.5"/>',globe:'<circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"/>',lamp:'<path d="M12 3c2 2.6 3 4.3 3 6a3 3 0 0 1-6 0c0-1.7 1-3.4 3-6z"/><path d="M3 14h18c0 3.5-4 6-9 6s-9-2.5-9-6z"/><path d="M12 12v2"/>',play:'<circle cx="12" cy="12" r="9"/><path d="M10 8.5v7l6-3.5z"/>',pause:'<circle cx="12" cy="12" r="9"/><path d="M10 9v6M14 9v6"/>',send:'<path d="M21 3 3 10.5l7 3 3 7.5z"/><path d="m10 13.5 4.5-4.5"/>',share:'<circle cx="18" cy="5" r="2.5"/><circle cx="6" cy="12" r="2.5"/><circle cx="18" cy="19" r="2.5"/><path d="m8.2 10.8 7.6-4.6M8.2 13.2l7.6 4.6"/>',gift:'<rect x="3" y="8" width="18" height="4" rx="1"/><path d="M5 12v9h14v-9M12 8v13M12 8C10.5 5 7 4 7 6.5S10 8 12 8zm0 0c1.5-3 5-4 5-1.5S14 8 12 8z"/>',image:'<rect x="3" y="4" width="18" height="16" rx="2"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="m21 15-5-5-10 10"/>',file:'<path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5M9 13h6M9 17h6"/>',external:'<path d="M14 4h6v6M20 4l-9 9"/><path d="M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"/>',arrowUp:'<path d="M12 19V5m-6 6 6-6 6 6"/>',arrowLeft:'<path d="M19 12H5m6-6-6 6 6 6"/>',arrowRight:'<path d="M5 12h14m-6-6 6 6-6 6"/>',headphones:'<path d="M4 15v-3a8 8 0 0 1 16 0v3"/><rect x="3" y="14" width="4" height="7" rx="1.5"/><rect x="17" y="14" width="4" height="7" rx="1.5"/>',music:'<path d="M9 18V5l11-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="17" cy="16" r="3"/>',pin:'<path d="M12 21s7-6.2 7-11.5a7 7 0 0 0-14 0C5 14.8 12 21 12 21z"/><circle cx="12" cy="9.5" r="2.5"/>',map:'<path d="M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z"/><path d="M9 3v15M15 6v15"/>',pen:'<path d="M12 3 6 9l1.5 8h9L18 9z"/><path d="M12 3v7.5"/><circle cx="12" cy="12" r="1.5"/><path d="M8 21h8"/>',wallet:'<rect x="3" y="7" width="18" height="13" rx="2"/><path d="M16 13.5h2M6 7l9-4 2 4"/>',install:'<rect x="6" y="2" width="12" height="20" rx="2"/><path d="M12 6v8m-3-3 3 3 3-3M10 18h4"/>',help:'<circle cx="12" cy="12" r="9"/><path d="M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6v.6M12 17h.01"/>',temple:'<path d="M12 2v2M10 4h4l1 3H9zM8 7h8l1.5 4h-11zM6.5 11h11L19 15H5zM4 15h16v6H4z"/><path d="M10 21v-3a2 2 0 0 1 4 0v3"/>',meditate:'<circle cx="12" cy="4.5" r="2.2"/><path d="M12 8c-2.2 0-3.3 1.3-3.7 3.2L7.5 16M12 8c2.2 0 3.3 1.3 3.7 3.2l.8 4.8"/><path d="M4 18c3 2 5.5 2.4 8 1.2 2.5 1.2 5 .8 8-1.2"/><path d="M7.5 16c1.4 1.4 3 2 4.5 2s3.1-.6 4.5-2"/>',trophy:'<path d="M8 4h8v5a4 4 0 0 1-8 0z"/><path d="M8 6H5a3 3 0 0 0 3 4M16 6h3a3 3 0 0 1-3 4M12 13v4M8 21h8M9 17h6"/>',bulb:'<path d="M9 18h6M10 21h4"/><path d="M12 3a6 6 0 0 0-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0 0 12 3z"/>',sun:'<circle cx="12" cy="12" r="4"/><path d="M12 2v2.5M12 19.5V22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M2 12h2.5M19.5 12H22M4.9 19.1l1.8-1.8M17.3 6.7l1.8-1.8"/>'},Y=Object.keys(x);var z=3,w="#ffffff",R="#111827";function P(o,t){let r=M(o),a=M(t);return r&&a?B(r,a):null}function E(o){let t=P(w,o),r=P(R,o);return t===null||r===null||t>=r?w:R}var N=new Set;function q(o,t){N.has(o)||(N.add(o),typeof console<"u"&&console.warn(`[yuktai icons] ${t}`))}function b(o={}){let t=o.variant==="filled"?"filled":"outline",r=o.color||"currentColor";if(t==="outline")return{variant:t,color:r,glyph:r,contrast:null};let a=o.glyphColor||E(r),c=P(a,r);return c!==null&&c<z&&q(`${a}|${r}`,`glyph ${a} on ${r} is ${c}:1. WCAG 1.4.11 needs at least 3:1 for icons.`),{variant:t,color:r,glyph:a,contrast:c}}var C="translate(3.6 3.6) scale(0.7)",S="@media (forced-colors: active){.yi-bg{fill:CanvasText}.yi-glyph{stroke:Canvas}}",f=o=>String(o).replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t]);function K(o,t={}){let r=x[o]??x.spark,a=t.size??20,{variant:c,color:s,glyph:i}=b(t),p=t.strokeWidth??(c==="filled"?2.4:1.9),m=`<svg xmlns="http://www.w3.org/2000/svg" ${t.label?`role="img" aria-label="${f(t.label)}"`:'aria-hidden="true"'} focusable="false" width="${f(a)}" height="${f(a)}" viewBox="0 0 24 24" fill="none" stroke-linecap="round" stroke-linejoin="round" data-variant="${c}">`;if(c==="outline")return`${m}<g stroke="${f(s)}" stroke-width="${p}">${r}</g></svg>`;let u=t.shape==="circle"?`<circle class="yi-bg" cx="12" cy="12" r="12" fill="${f(s)}"/>`:`<rect class="yi-bg" width="24" height="24" rx="6" fill="${f(s)}"/>`;return`${m}<style>${S}</style>${u}<g class="yi-glyph" stroke="${f(i)}" stroke-width="${p}" transform="${C}">${r}</g></svg>`}import{Fragment as Z,jsx as g,jsxs as J}from"react/jsx-runtime";function l({size:o=20,color:t,strokeWidth:r,label:a,variant:c,glyphColor:s,shape:i,children:p,...h}){let m=!a,u=b({variant:c,color:t,glyphColor:s,shape:i}),y=u.variant==="filled",A=r??(y?2.6:2.5);return g("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:y?void 0:u.color,strokeWidth:y?void 0:A,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":m?"true":void 0,"aria-label":a,role:a?"img":void 0,focusable:"false","data-variant":u.variant,...h,children:y?J(Z,{children:[g("style",{children:S}),i==="circle"?g("circle",{className:"yi-bg",cx:"12",cy:"12",r:"12",fill:u.color}):g("rect",{className:"yi-bg",width:"24",height:"24",rx:"6",fill:u.color}),g("g",{className:"yi-glyph",stroke:u.glyph,strokeWidth:A,transform:C,children:p})]}):p})}import{jsx as T,jsxs as X}from"react/jsx-runtime";function Q(o){return X(l,{...o,children:[T("circle",{cx:"11",cy:"11",r:"7"}),T("path",{d:"m20 20-4-4"})]})}import{jsx as $,jsxs as oo}from"react/jsx-runtime";function j(o){return oo(l,{...o,children:[$("path",{d:"M12 19V5"}),$("path",{d:"m5 12 7-7 7 7"})]})}import{jsx as O,jsxs as no}from"react/jsx-runtime";function to(o){return no(l,{...o,children:[O("path",{d:"M12 5v14"}),O("path",{d:"m5 12 7 7 7-7"})]})}import{jsx as H}from"react/jsx-runtime";function eo(o){return H(l,{...o,children:H("path",{d:"m15 18-6-6 6-6"})})}import{jsx as G}from"react/jsx-runtime";function ro(o){return G(l,{...o,children:G("path",{d:"m9 18 6-6-6-6"})})}import{jsx as V}from"react/jsx-runtime";function co(o){return V(l,{...o,children:V("path",{d:"M5 12.5 10 17.5 19.5 7"})})}import{jsx as _,jsxs as so}from"react/jsx-runtime";function ao(o){return so(l,{...o,children:[_("path",{d:"M18 6 6 18"}),_("path",{d:"m6 6 12 12"})]})}import{jsx as n}from"react/jsx-runtime";function e({name:o,...t}){let r=x[o]??x.spark;return n(l,{...t,children:n("g",{dangerouslySetInnerHTML:{__html:r}})})}var po=o=>n(e,{...o,name:"accessibility"}),io=o=>n(e,{...o,name:"contrast"}),lo=o=>n(e,{...o,name:"moon"}),ho=o=>n(e,{...o,name:"motion"}),Io=o=>n(e,{...o,name:"reading"}),mo=o=>n(e,{...o,name:"target"}),uo=o=>n(e,{...o,name:"speaker"}),xo=o=>n(e,{...o,name:"palette"}),fo=o=>n(e,{...o,name:"skip"}),go=o=>n(e,{...o,name:"plus"}),yo=o=>n(e,{...o,name:"minus"}),Mo=o=>n(e,{...o,name:"reset"}),Po=o=>n(e,{...o,name:"sort"}),bo=o=>n(e,{...o,name:"chevrons"}),vo=o=>n(e,{...o,name:"grid"}),wo=o=>n(e,{...o,name:"cards"}),Co=o=>n(e,{...o,name:"chat"}),So=o=>n(e,{...o,name:"mic"}),Ao=o=>n(e,{...o,name:"stop"}),ko=o=>n(e,{...o,name:"download"}),Lo=o=>n(e,{...o,name:"copy"}),Bo=o=>n(e,{...o,name:"filter"}),Ro=o=>n(e,{...o,name:"first"}),No=o=>n(e,{...o,name:"last"}),zo=o=>n(e,{...o,name:"spark"}),Eo=o=>n(e,{...o,name:"alert"}),To=o=>n(e,{...o,name:"info"}),$o=o=>n(e,{...o,name:"form"}),Oo=o=>n(e,{...o,name:"eye"}),Ho=o=>n(e,{...o,name:"layout"}),Go=o=>n(e,{...o,name:"wand"}),Vo=o=>n(e,{...o,name:"undo"}),_o=o=>n(e,{...o,name:"tools"}),Fo=o=>n(e,{...o,name:"plug"}),Do=o=>n(e,{...o,name:"home"}),Uo=o=>n(e,{...o,name:"menu"}),Wo=o=>n(e,{...o,name:"book"}),Yo=o=>n(e,{...o,name:"calendar"}),qo=o=>n(e,{...o,name:"clock"}),Ko=o=>n(e,{...o,name:"person"}),Zo=o=>n(e,{...o,name:"users"}),Jo=o=>n(e,{...o,name:"globe"}),Qo=o=>n(e,{...o,name:"lamp"}),Xo=o=>n(e,{...o,name:"play"}),jo=o=>n(e,{...o,name:"pause"}),ot=o=>n(e,{...o,name:"send"}),tt=o=>n(e,{...o,name:"share"}),nt=o=>n(e,{...o,name:"gift"}),et=o=>n(e,{...o,name:"image"}),rt=o=>n(e,{...o,name:"file"}),ct=o=>n(e,{...o,name:"external"}),at=o=>n(e,{...o,name:"arrowUp"}),st=o=>n(e,{...o,name:"arrowLeft"}),pt=o=>n(e,{...o,name:"arrowRight"}),it=o=>n(e,{...o,name:"headphones"}),lt=o=>n(e,{...o,name:"music"}),ht=o=>n(e,{...o,name:"pin"}),It=o=>n(e,{...o,name:"map"}),dt=o=>n(e,{...o,name:"pen"}),mt=o=>n(e,{...o,name:"wallet"}),ut=o=>n(e,{...o,name:"install"}),xt=o=>n(e,{...o,name:"help"}),ft=o=>n(e,{...o,name:"temple"}),gt=o=>n(e,{...o,name:"meditate"}),yt=o=>n(e,{...o,name:"trophy"}),Mt=o=>n(e,{...o,name:"bulb"}),Pt=o=>n(e,{...o,name:"sun"});export{L as a,bt as b,vt as c,wt as d,I as e,Ct as f,St as g,At as h,M as i,k as j,B as k,kt as l,Lt as m,Bt as n,Rt as o,Nt as p,x as q,Y as r,z as s,P as t,E as u,b as v,K as w,l as x,Q as y,j as z,to as A,eo as B,ro as C,co as D,ao as E,e as F,po as G,io as H,lo as I,ho as J,Io as K,mo as L,uo as M,xo as N,fo as O,go as P,yo as Q,Mo as R,Po as S,bo as T,vo as U,wo as V,Co as W,So as X,Ao as Y,ko as Z,Lo as _,Bo as $,Ro as aa,No as ba,zo as ca,Eo as da,To as ea,$o as fa,Oo as ga,Ho as ha,Go as ia,Vo as ja,_o as ka,Fo as la,Do as ma,Uo as na,Wo as oa,Yo as pa,qo as qa,Ko as ra,Zo as sa,Jo as ta,Qo as ua,Xo as va,jo as wa,ot as xa,tt as ya,nt as za,et as Aa,rt as Ba,ct as Ca,at as Da,st as Ea,pt as Fa,it as Ga,lt as Ha,ht as Ia,It as Ja,dt as Ka,mt as La,ut as Ma,xt as Na,ft as Oa,gt as Pa,yt as Qa,Mt as Ra,Pt as Sa};
|
package/dist/icons.d.mts
CHANGED
|
@@ -43,6 +43,39 @@ declare const ICON_PATHS: {
|
|
|
43
43
|
readonly undo: "<path d=\"M9 14 4 9l5-5\"/><path d=\"M4 9h10a6 6 0 0 1 0 12h-3\"/>";
|
|
44
44
|
readonly tools: "<path d=\"M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4z\"/>";
|
|
45
45
|
readonly plug: "<path d=\"M9 2v6M15 2v6M6 8h12v4a6 6 0 0 1-12 0zM12 18v4\"/>";
|
|
46
|
+
readonly home: "<path d=\"M3 11 12 4l9 7\"/><path d=\"M5 10v10h5v-6h4v6h5V10\"/>";
|
|
47
|
+
readonly menu: "<path d=\"M4 6h16M4 12h16M4 18h16\"/>";
|
|
48
|
+
readonly book: "<path d=\"M12 6c-2-1.5-5-2-8-2v14c3 0 6 .5 8 2 2-1.5 5-2 8-2V4c-3 0-6 .5-8 2zM12 6v14\"/>";
|
|
49
|
+
readonly calendar: "<rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M3 10h18M8 3v4M16 3v4M7.5 14h2M14.5 14h2M7.5 17.5h2\"/>";
|
|
50
|
+
readonly clock: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M12 7v5l3 2\"/>";
|
|
51
|
+
readonly person: "<circle cx=\"12\" cy=\"8\" r=\"4\"/><path d=\"M4 21a8 8 0 0 1 16 0\"/>";
|
|
52
|
+
readonly users: "<circle cx=\"9\" cy=\"8\" r=\"3.5\"/><path d=\"M2 20a7 7 0 0 1 14 0\"/><path d=\"M16 4.5a3.5 3.5 0 0 1 0 7M18 13.5a7 7 0 0 1 4 6.5\"/>";
|
|
53
|
+
readonly globe: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\"/>";
|
|
54
|
+
readonly lamp: "<path d=\"M12 3c2 2.6 3 4.3 3 6a3 3 0 0 1-6 0c0-1.7 1-3.4 3-6z\"/><path d=\"M3 14h18c0 3.5-4 6-9 6s-9-2.5-9-6z\"/><path d=\"M12 12v2\"/>";
|
|
55
|
+
readonly play: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M10 8.5v7l6-3.5z\"/>";
|
|
56
|
+
readonly pause: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M10 9v6M14 9v6\"/>";
|
|
57
|
+
readonly send: "<path d=\"M21 3 3 10.5l7 3 3 7.5z\"/><path d=\"m10 13.5 4.5-4.5\"/>";
|
|
58
|
+
readonly share: "<circle cx=\"18\" cy=\"5\" r=\"2.5\"/><circle cx=\"6\" cy=\"12\" r=\"2.5\"/><circle cx=\"18\" cy=\"19\" r=\"2.5\"/><path d=\"m8.2 10.8 7.6-4.6M8.2 13.2l7.6 4.6\"/>";
|
|
59
|
+
readonly gift: "<rect x=\"3\" y=\"8\" width=\"18\" height=\"4\" rx=\"1\"/><path d=\"M5 12v9h14v-9M12 8v13M12 8C10.5 5 7 4 7 6.5S10 8 12 8zm0 0c1.5-3 5-4 5-1.5S14 8 12 8z\"/>";
|
|
60
|
+
readonly image: "<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><circle cx=\"8.5\" cy=\"9.5\" r=\"1.5\"/><path d=\"m21 15-5-5-10 10\"/>";
|
|
61
|
+
readonly file: "<path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z\"/><path d=\"M14 3v5h5M9 13h6M9 17h6\"/>";
|
|
62
|
+
readonly external: "<path d=\"M14 4h6v6M20 4l-9 9\"/><path d=\"M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5\"/>";
|
|
63
|
+
readonly arrowUp: "<path d=\"M12 19V5m-6 6 6-6 6 6\"/>";
|
|
64
|
+
readonly arrowLeft: "<path d=\"M19 12H5m6-6-6 6 6 6\"/>";
|
|
65
|
+
readonly arrowRight: "<path d=\"M5 12h14m-6-6 6 6-6 6\"/>";
|
|
66
|
+
readonly headphones: "<path d=\"M4 15v-3a8 8 0 0 1 16 0v3\"/><rect x=\"3\" y=\"14\" width=\"4\" height=\"7\" rx=\"1.5\"/><rect x=\"17\" y=\"14\" width=\"4\" height=\"7\" rx=\"1.5\"/>";
|
|
67
|
+
readonly music: "<path d=\"M9 18V5l11-2v13\"/><circle cx=\"6\" cy=\"18\" r=\"3\"/><circle cx=\"17\" cy=\"16\" r=\"3\"/>";
|
|
68
|
+
readonly pin: "<path d=\"M12 21s7-6.2 7-11.5a7 7 0 0 0-14 0C5 14.8 12 21 12 21z\"/><circle cx=\"12\" cy=\"9.5\" r=\"2.5\"/>";
|
|
69
|
+
readonly map: "<path d=\"M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z\"/><path d=\"M9 3v15M15 6v15\"/>";
|
|
70
|
+
readonly pen: "<path d=\"M12 3 6 9l1.5 8h9L18 9z\"/><path d=\"M12 3v7.5\"/><circle cx=\"12\" cy=\"12\" r=\"1.5\"/><path d=\"M8 21h8\"/>";
|
|
71
|
+
readonly wallet: "<rect x=\"3\" y=\"7\" width=\"18\" height=\"13\" rx=\"2\"/><path d=\"M16 13.5h2M6 7l9-4 2 4\"/>";
|
|
72
|
+
readonly install: "<rect x=\"6\" y=\"2\" width=\"12\" height=\"20\" rx=\"2\"/><path d=\"M12 6v8m-3-3 3 3 3-3M10 18h4\"/>";
|
|
73
|
+
readonly help: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6v.6M12 17h.01\"/>";
|
|
74
|
+
readonly temple: "<path d=\"M12 2v2M10 4h4l1 3H9zM8 7h8l1.5 4h-11zM6.5 11h11L19 15H5zM4 15h16v6H4z\"/><path d=\"M10 21v-3a2 2 0 0 1 4 0v3\"/>";
|
|
75
|
+
readonly meditate: "<circle cx=\"12\" cy=\"4.5\" r=\"2.2\"/><path d=\"M12 8c-2.2 0-3.3 1.3-3.7 3.2L7.5 16M12 8c2.2 0 3.3 1.3 3.7 3.2l.8 4.8\"/><path d=\"M4 18c3 2 5.5 2.4 8 1.2 2.5 1.2 5 .8 8-1.2\"/><path d=\"M7.5 16c1.4 1.4 3 2 4.5 2s3.1-.6 4.5-2\"/>";
|
|
76
|
+
readonly trophy: "<path d=\"M8 4h8v5a4 4 0 0 1-8 0z\"/><path d=\"M8 6H5a3 3 0 0 0 3 4M16 6h3a3 3 0 0 1-3 4M12 13v4M8 21h8M9 17h6\"/>";
|
|
77
|
+
readonly bulb: "<path d=\"M9 18h6M10 21h4\"/><path d=\"M12 3a6 6 0 0 0-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0 0 12 3z\"/>";
|
|
78
|
+
readonly sun: "<circle cx=\"12\" cy=\"12\" r=\"4\"/><path d=\"M12 2v2.5M12 19.5V22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M2 12h2.5M19.5 12H22M4.9 19.1l1.8-1.8M17.3 6.7l1.8-1.8\"/>";
|
|
46
79
|
};
|
|
47
80
|
type IconName = keyof typeof ICON_PATHS;
|
|
48
81
|
declare const ICON_NAMES: IconName[];
|
|
@@ -197,5 +230,71 @@ declare const UndoIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
|
197
230
|
declare const ToolsIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
198
231
|
/** WebMCP / integrations */
|
|
199
232
|
declare const PlugIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
233
|
+
/** Home */
|
|
234
|
+
declare const HomeIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
235
|
+
/** Menu */
|
|
236
|
+
declare const MenuIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
237
|
+
/** Book */
|
|
238
|
+
declare const BookIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
239
|
+
/** Calendar */
|
|
240
|
+
declare const CalendarIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
241
|
+
/** Clock */
|
|
242
|
+
declare const ClockIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
243
|
+
/** Person */
|
|
244
|
+
declare const PersonIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
245
|
+
/** Group of people */
|
|
246
|
+
declare const UsersIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
247
|
+
/** Language / world */
|
|
248
|
+
declare const GlobeIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
249
|
+
/** Oil lamp (deepam) */
|
|
250
|
+
declare const LampIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
251
|
+
/** Play */
|
|
252
|
+
declare const PlayIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
253
|
+
/** Pause */
|
|
254
|
+
declare const PauseIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
255
|
+
/** Send */
|
|
256
|
+
declare const SendIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
257
|
+
/** Share */
|
|
258
|
+
declare const ShareIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
259
|
+
/** Gift */
|
|
260
|
+
declare const GiftIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
261
|
+
/** Image */
|
|
262
|
+
declare const ImageIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
263
|
+
/** File / document */
|
|
264
|
+
declare const FileIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
265
|
+
/** Opens in a new tab */
|
|
266
|
+
declare const ExternalIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
267
|
+
/** Arrow up */
|
|
268
|
+
declare const ArrowUpIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
269
|
+
/** Arrow left */
|
|
270
|
+
declare const ArrowLeftIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
271
|
+
/** Arrow right */
|
|
272
|
+
declare const ArrowRightIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
273
|
+
/** Headphones / listen */
|
|
274
|
+
declare const HeadphonesIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
275
|
+
/** Music / audio */
|
|
276
|
+
declare const MusicIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
277
|
+
/** Location pin */
|
|
278
|
+
declare const PinIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
279
|
+
/** Map / directions */
|
|
280
|
+
declare const MapIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
281
|
+
/** Pen / write */
|
|
282
|
+
declare const PenIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
283
|
+
/** Wallet / money */
|
|
284
|
+
declare const WalletIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
285
|
+
/** Install app */
|
|
286
|
+
declare const InstallIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
287
|
+
/** Help */
|
|
288
|
+
declare const HelpIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
289
|
+
/** Temple */
|
|
290
|
+
declare const TempleIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
291
|
+
/** Meditation */
|
|
292
|
+
declare const MeditateIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
293
|
+
/** Trophy / result */
|
|
294
|
+
declare const TrophyIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
295
|
+
/** Idea / tip */
|
|
296
|
+
declare const BulbIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
297
|
+
/** Sun / light mode */
|
|
298
|
+
declare const SunIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
200
299
|
|
|
201
|
-
export { AccessibilityIcon, AlertIcon, CardsIcon, ChatIcon, CheckIcon, ChevronLeftIcon, ChevronRightIcon, ChevronsIcon, CloseIcon, ContrastIcon, CopyIcon, DownloadIcon, EyeIcon, FilterIcon, FirstIcon, FormIcon, GridIcon, ICON_MIN_CONTRAST, ICON_NAMES, ICON_PATHS, IconBase, type IconName, type IconProps, type IconShape, type IconSvgOptions, type IconVariant, InfoIcon, LastIcon, LayoutIcon, MicIcon, MinusIcon, MoonIcon, MotionIcon, PaletteIcon, PlugIcon, PlusIcon, ReadingIcon, ResetIcon, SearchIcon, SkipIcon, SortDownIcon, SortIcon, SortUpIcon, SparkIcon, SpeakerIcon, StopIcon, TargetIcon, ToolsIcon, UndoIcon, WandIcon, YuktaiIcon, type YuktaiIconProps, iconContrast, iconSvg, pickGlyphColor, resolveIconColours };
|
|
300
|
+
export { AccessibilityIcon, AlertIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BookIcon, BulbIcon, CalendarIcon, CardsIcon, ChatIcon, CheckIcon, ChevronLeftIcon, ChevronRightIcon, ChevronsIcon, ClockIcon, CloseIcon, ContrastIcon, CopyIcon, DownloadIcon, ExternalIcon, EyeIcon, FileIcon, FilterIcon, FirstIcon, FormIcon, GiftIcon, GlobeIcon, GridIcon, HeadphonesIcon, HelpIcon, HomeIcon, ICON_MIN_CONTRAST, ICON_NAMES, ICON_PATHS, IconBase, type IconName, type IconProps, type IconShape, type IconSvgOptions, type IconVariant, ImageIcon, InfoIcon, InstallIcon, LampIcon, LastIcon, LayoutIcon, MapIcon, MeditateIcon, MenuIcon, MicIcon, MinusIcon, MoonIcon, MotionIcon, MusicIcon, PaletteIcon, PauseIcon, PenIcon, PersonIcon, PinIcon, PlayIcon, PlugIcon, PlusIcon, ReadingIcon, ResetIcon, SearchIcon, SendIcon, ShareIcon, SkipIcon, SortDownIcon, SortIcon, SortUpIcon, SparkIcon, SpeakerIcon, StopIcon, SunIcon, TargetIcon, TempleIcon, ToolsIcon, TrophyIcon, UndoIcon, UsersIcon, WalletIcon, WandIcon, YuktaiIcon, type YuktaiIconProps, iconContrast, iconSvg, pickGlyphColor, resolveIconColours };
|
package/dist/icons.d.ts
CHANGED
|
@@ -43,6 +43,39 @@ declare const ICON_PATHS: {
|
|
|
43
43
|
readonly undo: "<path d=\"M9 14 4 9l5-5\"/><path d=\"M4 9h10a6 6 0 0 1 0 12h-3\"/>";
|
|
44
44
|
readonly tools: "<path d=\"M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4z\"/>";
|
|
45
45
|
readonly plug: "<path d=\"M9 2v6M15 2v6M6 8h12v4a6 6 0 0 1-12 0zM12 18v4\"/>";
|
|
46
|
+
readonly home: "<path d=\"M3 11 12 4l9 7\"/><path d=\"M5 10v10h5v-6h4v6h5V10\"/>";
|
|
47
|
+
readonly menu: "<path d=\"M4 6h16M4 12h16M4 18h16\"/>";
|
|
48
|
+
readonly book: "<path d=\"M12 6c-2-1.5-5-2-8-2v14c3 0 6 .5 8 2 2-1.5 5-2 8-2V4c-3 0-6 .5-8 2zM12 6v14\"/>";
|
|
49
|
+
readonly calendar: "<rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M3 10h18M8 3v4M16 3v4M7.5 14h2M14.5 14h2M7.5 17.5h2\"/>";
|
|
50
|
+
readonly clock: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M12 7v5l3 2\"/>";
|
|
51
|
+
readonly person: "<circle cx=\"12\" cy=\"8\" r=\"4\"/><path d=\"M4 21a8 8 0 0 1 16 0\"/>";
|
|
52
|
+
readonly users: "<circle cx=\"9\" cy=\"8\" r=\"3.5\"/><path d=\"M2 20a7 7 0 0 1 14 0\"/><path d=\"M16 4.5a3.5 3.5 0 0 1 0 7M18 13.5a7 7 0 0 1 4 6.5\"/>";
|
|
53
|
+
readonly globe: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\"/>";
|
|
54
|
+
readonly lamp: "<path d=\"M12 3c2 2.6 3 4.3 3 6a3 3 0 0 1-6 0c0-1.7 1-3.4 3-6z\"/><path d=\"M3 14h18c0 3.5-4 6-9 6s-9-2.5-9-6z\"/><path d=\"M12 12v2\"/>";
|
|
55
|
+
readonly play: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M10 8.5v7l6-3.5z\"/>";
|
|
56
|
+
readonly pause: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M10 9v6M14 9v6\"/>";
|
|
57
|
+
readonly send: "<path d=\"M21 3 3 10.5l7 3 3 7.5z\"/><path d=\"m10 13.5 4.5-4.5\"/>";
|
|
58
|
+
readonly share: "<circle cx=\"18\" cy=\"5\" r=\"2.5\"/><circle cx=\"6\" cy=\"12\" r=\"2.5\"/><circle cx=\"18\" cy=\"19\" r=\"2.5\"/><path d=\"m8.2 10.8 7.6-4.6M8.2 13.2l7.6 4.6\"/>";
|
|
59
|
+
readonly gift: "<rect x=\"3\" y=\"8\" width=\"18\" height=\"4\" rx=\"1\"/><path d=\"M5 12v9h14v-9M12 8v13M12 8C10.5 5 7 4 7 6.5S10 8 12 8zm0 0c1.5-3 5-4 5-1.5S14 8 12 8z\"/>";
|
|
60
|
+
readonly image: "<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><circle cx=\"8.5\" cy=\"9.5\" r=\"1.5\"/><path d=\"m21 15-5-5-10 10\"/>";
|
|
61
|
+
readonly file: "<path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z\"/><path d=\"M14 3v5h5M9 13h6M9 17h6\"/>";
|
|
62
|
+
readonly external: "<path d=\"M14 4h6v6M20 4l-9 9\"/><path d=\"M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5\"/>";
|
|
63
|
+
readonly arrowUp: "<path d=\"M12 19V5m-6 6 6-6 6 6\"/>";
|
|
64
|
+
readonly arrowLeft: "<path d=\"M19 12H5m6-6-6 6 6 6\"/>";
|
|
65
|
+
readonly arrowRight: "<path d=\"M5 12h14m-6-6 6 6-6 6\"/>";
|
|
66
|
+
readonly headphones: "<path d=\"M4 15v-3a8 8 0 0 1 16 0v3\"/><rect x=\"3\" y=\"14\" width=\"4\" height=\"7\" rx=\"1.5\"/><rect x=\"17\" y=\"14\" width=\"4\" height=\"7\" rx=\"1.5\"/>";
|
|
67
|
+
readonly music: "<path d=\"M9 18V5l11-2v13\"/><circle cx=\"6\" cy=\"18\" r=\"3\"/><circle cx=\"17\" cy=\"16\" r=\"3\"/>";
|
|
68
|
+
readonly pin: "<path d=\"M12 21s7-6.2 7-11.5a7 7 0 0 0-14 0C5 14.8 12 21 12 21z\"/><circle cx=\"12\" cy=\"9.5\" r=\"2.5\"/>";
|
|
69
|
+
readonly map: "<path d=\"M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z\"/><path d=\"M9 3v15M15 6v15\"/>";
|
|
70
|
+
readonly pen: "<path d=\"M12 3 6 9l1.5 8h9L18 9z\"/><path d=\"M12 3v7.5\"/><circle cx=\"12\" cy=\"12\" r=\"1.5\"/><path d=\"M8 21h8\"/>";
|
|
71
|
+
readonly wallet: "<rect x=\"3\" y=\"7\" width=\"18\" height=\"13\" rx=\"2\"/><path d=\"M16 13.5h2M6 7l9-4 2 4\"/>";
|
|
72
|
+
readonly install: "<rect x=\"6\" y=\"2\" width=\"12\" height=\"20\" rx=\"2\"/><path d=\"M12 6v8m-3-3 3 3 3-3M10 18h4\"/>";
|
|
73
|
+
readonly help: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6v.6M12 17h.01\"/>";
|
|
74
|
+
readonly temple: "<path d=\"M12 2v2M10 4h4l1 3H9zM8 7h8l1.5 4h-11zM6.5 11h11L19 15H5zM4 15h16v6H4z\"/><path d=\"M10 21v-3a2 2 0 0 1 4 0v3\"/>";
|
|
75
|
+
readonly meditate: "<circle cx=\"12\" cy=\"4.5\" r=\"2.2\"/><path d=\"M12 8c-2.2 0-3.3 1.3-3.7 3.2L7.5 16M12 8c2.2 0 3.3 1.3 3.7 3.2l.8 4.8\"/><path d=\"M4 18c3 2 5.5 2.4 8 1.2 2.5 1.2 5 .8 8-1.2\"/><path d=\"M7.5 16c1.4 1.4 3 2 4.5 2s3.1-.6 4.5-2\"/>";
|
|
76
|
+
readonly trophy: "<path d=\"M8 4h8v5a4 4 0 0 1-8 0z\"/><path d=\"M8 6H5a3 3 0 0 0 3 4M16 6h3a3 3 0 0 1-3 4M12 13v4M8 21h8M9 17h6\"/>";
|
|
77
|
+
readonly bulb: "<path d=\"M9 18h6M10 21h4\"/><path d=\"M12 3a6 6 0 0 0-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0 0 12 3z\"/>";
|
|
78
|
+
readonly sun: "<circle cx=\"12\" cy=\"12\" r=\"4\"/><path d=\"M12 2v2.5M12 19.5V22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M2 12h2.5M19.5 12H22M4.9 19.1l1.8-1.8M17.3 6.7l1.8-1.8\"/>";
|
|
46
79
|
};
|
|
47
80
|
type IconName = keyof typeof ICON_PATHS;
|
|
48
81
|
declare const ICON_NAMES: IconName[];
|
|
@@ -197,5 +230,71 @@ declare const UndoIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
|
197
230
|
declare const ToolsIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
198
231
|
/** WebMCP / integrations */
|
|
199
232
|
declare const PlugIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
233
|
+
/** Home */
|
|
234
|
+
declare const HomeIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
235
|
+
/** Menu */
|
|
236
|
+
declare const MenuIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
237
|
+
/** Book */
|
|
238
|
+
declare const BookIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
239
|
+
/** Calendar */
|
|
240
|
+
declare const CalendarIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
241
|
+
/** Clock */
|
|
242
|
+
declare const ClockIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
243
|
+
/** Person */
|
|
244
|
+
declare const PersonIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
245
|
+
/** Group of people */
|
|
246
|
+
declare const UsersIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
247
|
+
/** Language / world */
|
|
248
|
+
declare const GlobeIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
249
|
+
/** Oil lamp (deepam) */
|
|
250
|
+
declare const LampIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
251
|
+
/** Play */
|
|
252
|
+
declare const PlayIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
253
|
+
/** Pause */
|
|
254
|
+
declare const PauseIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
255
|
+
/** Send */
|
|
256
|
+
declare const SendIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
257
|
+
/** Share */
|
|
258
|
+
declare const ShareIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
259
|
+
/** Gift */
|
|
260
|
+
declare const GiftIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
261
|
+
/** Image */
|
|
262
|
+
declare const ImageIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
263
|
+
/** File / document */
|
|
264
|
+
declare const FileIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
265
|
+
/** Opens in a new tab */
|
|
266
|
+
declare const ExternalIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
267
|
+
/** Arrow up */
|
|
268
|
+
declare const ArrowUpIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
269
|
+
/** Arrow left */
|
|
270
|
+
declare const ArrowLeftIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
271
|
+
/** Arrow right */
|
|
272
|
+
declare const ArrowRightIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
273
|
+
/** Headphones / listen */
|
|
274
|
+
declare const HeadphonesIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
275
|
+
/** Music / audio */
|
|
276
|
+
declare const MusicIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
277
|
+
/** Location pin */
|
|
278
|
+
declare const PinIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
279
|
+
/** Map / directions */
|
|
280
|
+
declare const MapIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
281
|
+
/** Pen / write */
|
|
282
|
+
declare const PenIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
283
|
+
/** Wallet / money */
|
|
284
|
+
declare const WalletIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
285
|
+
/** Install app */
|
|
286
|
+
declare const InstallIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
287
|
+
/** Help */
|
|
288
|
+
declare const HelpIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
289
|
+
/** Temple */
|
|
290
|
+
declare const TempleIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
291
|
+
/** Meditation */
|
|
292
|
+
declare const MeditateIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
293
|
+
/** Trophy / result */
|
|
294
|
+
declare const TrophyIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
295
|
+
/** Idea / tip */
|
|
296
|
+
declare const BulbIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
297
|
+
/** Sun / light mode */
|
|
298
|
+
declare const SunIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
200
299
|
|
|
201
|
-
export { AccessibilityIcon, AlertIcon, CardsIcon, ChatIcon, CheckIcon, ChevronLeftIcon, ChevronRightIcon, ChevronsIcon, CloseIcon, ContrastIcon, CopyIcon, DownloadIcon, EyeIcon, FilterIcon, FirstIcon, FormIcon, GridIcon, ICON_MIN_CONTRAST, ICON_NAMES, ICON_PATHS, IconBase, type IconName, type IconProps, type IconShape, type IconSvgOptions, type IconVariant, InfoIcon, LastIcon, LayoutIcon, MicIcon, MinusIcon, MoonIcon, MotionIcon, PaletteIcon, PlugIcon, PlusIcon, ReadingIcon, ResetIcon, SearchIcon, SkipIcon, SortDownIcon, SortIcon, SortUpIcon, SparkIcon, SpeakerIcon, StopIcon, TargetIcon, ToolsIcon, UndoIcon, WandIcon, YuktaiIcon, type YuktaiIconProps, iconContrast, iconSvg, pickGlyphColor, resolveIconColours };
|
|
300
|
+
export { AccessibilityIcon, AlertIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BookIcon, BulbIcon, CalendarIcon, CardsIcon, ChatIcon, CheckIcon, ChevronLeftIcon, ChevronRightIcon, ChevronsIcon, ClockIcon, CloseIcon, ContrastIcon, CopyIcon, DownloadIcon, ExternalIcon, EyeIcon, FileIcon, FilterIcon, FirstIcon, FormIcon, GiftIcon, GlobeIcon, GridIcon, HeadphonesIcon, HelpIcon, HomeIcon, ICON_MIN_CONTRAST, ICON_NAMES, ICON_PATHS, IconBase, type IconName, type IconProps, type IconShape, type IconSvgOptions, type IconVariant, ImageIcon, InfoIcon, InstallIcon, LampIcon, LastIcon, LayoutIcon, MapIcon, MeditateIcon, MenuIcon, MicIcon, MinusIcon, MoonIcon, MotionIcon, MusicIcon, PaletteIcon, PauseIcon, PenIcon, PersonIcon, PinIcon, PlayIcon, PlugIcon, PlusIcon, ReadingIcon, ResetIcon, SearchIcon, SendIcon, ShareIcon, SkipIcon, SortDownIcon, SortIcon, SortUpIcon, SparkIcon, SpeakerIcon, StopIcon, SunIcon, TargetIcon, TempleIcon, ToolsIcon, TrophyIcon, UndoIcon, UsersIcon, WalletIcon, WandIcon, YuktaiIcon, type YuktaiIconProps, iconContrast, iconSvg, pickGlyphColor, resolveIconColours };
|
package/dist/icons.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var S=Object.defineProperty;var Nt=Object.getOwnPropertyDescriptor;var Rt=Object.getOwnPropertyNames;var Lt=Object.prototype.hasOwnProperty;var $t=(t,o)=>{for(var n in o)S(t,n,{get:o[n],enumerable:!0})},Et=(t,o,n,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of Rt(o))!Lt.call(t,e)&&e!==n&&S(t,e,{get:()=>o[e],enumerable:!(s=Nt(o,e))||s.enumerable});return t};var Ot=t=>Et(S({},"__esModule",{value:!0}),t);var Gt={};$t(Gt,{AccessibilityIcon:()=>J,AlertIcon:()=>Ct,CardsIcon:()=>ut,ChatIcon:()=>ht,CheckIcon:()=>K,ChevronLeftIcon:()=>q,ChevronRightIcon:()=>U,ChevronsIcon:()=>lt,CloseIcon:()=>Z,ContrastIcon:()=>Q,CopyIcon:()=>ft,DownloadIcon:()=>mt,EyeIcon:()=>wt,FilterIcon:()=>gt,FirstIcon:()=>xt,FormIcon:()=>Pt,GridIcon:()=>pt,ICON_MIN_CONTRAST:()=>k,ICON_NAMES:()=>z,ICON_PATHS:()=>d,IconBase:()=>a,InfoIcon:()=>Mt,LastIcon:()=>yt,LayoutIcon:()=>St,MicIcon:()=>It,MinusIcon:()=>st,MoonIcon:()=>X,MotionIcon:()=>j,PaletteIcon:()=>et,PlugIcon:()=>Bt,PlusIcon:()=>ct,ReadingIcon:()=>tt,ResetIcon:()=>at,SearchIcon:()=>V,SkipIcon:()=>rt,SortDownIcon:()=>Y,SortIcon:()=>it,SortUpIcon:()=>W,SparkIcon:()=>bt,SpeakerIcon:()=>nt,StopIcon:()=>dt,TargetIcon:()=>ot,ToolsIcon:()=>kt,UndoIcon:()=>At,WandIcon:()=>vt,YuktaiIcon:()=>c,iconContrast:()=>x,iconSvg:()=>H,pickGlyphColor:()=>B,resolveIconColours:()=>y});module.exports=Ot(Gt);function v(t){if(!t)return null;let o=t.trim().toLowerCase();if(o==="transparent")return{r:0,g:0,b:0,a:0};let n=o.match(/^rgba?\(([^)]+)\)$/);if(n){let e=n[1].split(/[\s,/]+/).filter(Boolean),[i,I,p]=e.slice(0,3).map(Number),m=e[3],f=m===void 0?1:m.endsWith("%")?Number(m.slice(0,-1))/100:Number(m);return[i,I,p,f].some(u=>!Number.isFinite(u))?null:{r:i,g:I,b:p,a:f}}let s=o.match(/^#([0-9a-f]{3,8})$/);if(s){let e=s[1];return(e.length===3||e.length===4)&&(e=e.split("").map(i=>i+i).join("")),e.length!==6&&e.length!==8?null:{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16),a:e.length===8?parseInt(e.slice(6,8),16)/255:1}}return null}function T(t,o){let n=t.a+o.a*(1-t.a);if(n===0)return{r:0,g:0,b:0,a:0};let s=(e,i)=>(e*t.a+i*o.a*(1-t.a))/n;return{r:s(t.r,o.r),g:s(t.g,o.g),b:s(t.b,o.b),a:n}}function G(t){let o=n=>{let s=n/255;return s<=.04045?s/12.92:Math.pow((s+.055)/1.055,2.4)};return .2126*o(t.r)+.7152*o(t.g)+.0722*o(t.b)}function _(t,o){let n=o.a<1?T(o,{r:255,g:255,b:255,a:1}):o,s=t.a<1?T(t,n):t,e=G(s),i=G(n),[I,p]=e>i?[e,i]:[i,e];return Math.round((I+.05)/(p+.05)*100)/100}var d={accessibility:'<circle cx="12" cy="4" r="2"/><path d="M4 8l8-1 8 1M12 7v5m-5 9 5-8 5 8M7 12l-2 5m12-5 2 5"/>',contrast:'<circle cx="12" cy="12" r="9"/><path d="M12 3a9 9 0 0 0 0 18z"/>',moon:'<path d="M20 14.5A8.5 8.5 0 0 1 9.5 4 8.5 8.5 0 1 0 20 14.5z"/>',motion:'<path d="M4 12h12m-5-5 5 5-5 5M20 5v14"/>',reading:'<path d="M4 5h16M4 10h12M4 15h16M4 20h10"/>',target:'<circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="4"/>',speaker:'<path d="M4 9v6h4l5 4V5L8 9H4z"/><path d="M16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11"/>',palette:'<circle cx="12" cy="12" r="9"/><circle cx="8" cy="10" r="1.3"/><circle cx="12" cy="7.5" r="1.3"/><circle cx="16" cy="10" r="1.3"/><path d="M12 21a3 3 0 0 1 0-6h2"/>',skip:'<path d="M5 5l7 7-7 7M13 5l7 7-7 7"/>',close:'<path d="m18 6-12 12M6 6l12 12"/>',plus:'<path d="M12 5v14M5 12h14"/>',minus:'<path d="M5 12h14"/>',reset:'<path d="M3 12a9 9 0 1 0 3-6.7L3 8"/><path d="M3 3v5h5"/>',search:'<circle cx="11" cy="11" r="6.5"/><path d="m16 16 5 5"/>',sort:'<path d="m8 9 4-4 4 4m-8 6 4 4 4-4"/>',sortUp:'<path d="m6 15 6-6 6 6"/>',sortDown:'<path d="m6 9 6 6 6-6"/>',chevrons:'<path d="m8 9 4-4 4 4m-8 6 4 4 4-4"/>',grid:'<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/>',cards:'<rect x="3" y="4" width="18" height="7" rx="1.5"/><rect x="3" y="13" width="18" height="7" rx="1.5"/>',chat:'<path d="M21 11.5a8.5 8.5 0 0 1-8.5 8.5 9 9 0 0 1-4-.9L3 21l1.9-5.5a9 9 0 0 1-.9-4A8.5 8.5 0 0 1 12.5 3H13a8.5 8.5 0 0 1 8 8z"/>',mic:'<rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10a7 7 0 0 0 14 0M12 17v5m-4 0h8"/>',stop:'<rect x="6" y="6" width="12" height="12" rx="2"/>',download:'<path d="M12 3v12m-5-5 5 5 5-5M4 21h16"/>',copy:'<rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/>',filter:'<path d="M4 5h16l-6 7v6l-4 2v-8z"/>',check:'<path d="m5 12 4 4L19 6"/>',left:'<path d="m15 18-6-6 6-6"/>',right:'<path d="m9 18 6-6-6-6"/>',first:'<path d="m11 18-6-6 6-6M19 18l-6-6 6-6"/>',last:'<path d="m13 18 6-6-6-6M5 18l6-6-6-6"/>',spark:'<path d="m12 3 1.9 5.8L20 11l-6.1 2.2L12 19l-1.9-5.8L4 11l6.1-2.2zM19 14l1.2 2.8L23 18l-2.8 1.2L19 22l-1.2-2.8L15 18l2.8-1.2z"/>',alert:'<path d="m12 3 10 18H2L12 3z"/><path d="M12 9v5m0 3h.01"/>',info:'<circle cx="12" cy="12" r="9"/><path d="M12 11v6m0-9h.01"/>',form:'<rect x="5" y="3" width="14" height="18" rx="2"/><path d="M9 8h6M9 12h6M9 16h3"/>',eye:'<path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/>',layout:'<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M9 21V9"/>',wand:'<path d="m15 4 5 5L9 20H4v-5z"/><path d="m13 6 5 5"/>',undo:'<path d="M9 14 4 9l5-5"/><path d="M4 9h10a6 6 0 0 1 0 12h-3"/>',tools:'<path d="M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4z"/>',plug:'<path d="M9 2v6M15 2v6M6 8h12v4a6 6 0 0 1-12 0zM12 18v4"/>'},z=Object.keys(d);var k=3,A="#ffffff",F="#111827";function x(t,o){let n=v(t),s=v(o);return n&&s?_(n,s):null}function B(t){let o=x(A,t),n=x(F,t);return o===null||n===null||o>=n?A:F}var D=new Set;function Tt(t,o){D.has(t)||(D.add(t),typeof console<"u"&&console.warn(`[yuktai icons] ${o}`))}function y(t={}){let o=t.variant==="filled"?"filled":"outline",n=t.color||"currentColor";if(o==="outline")return{variant:o,color:n,glyph:n,contrast:null};let s=t.glyphColor||B(n),e=x(s,n);return e!==null&&e<k&&Tt(`${s}|${n}`,`glyph ${s} on ${n} is ${e}:1. WCAG 1.4.11 needs at least 3:1 for icons.`),{variant:o,color:n,glyph:s,contrast:e}}var N="translate(3.6 3.6) scale(0.7)",R="@media (forced-colors: active){.yi-bg{fill:CanvasText}.yi-glyph{stroke:Canvas}}",g=t=>String(t).replace(/[&<>"']/g,o=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[o]);function H(t,o={}){let n=d[t]??d.spark,s=o.size??20,{variant:e,color:i,glyph:I}=y(o),p=o.strokeWidth??(e==="filled"?2.4:1.9),f=`<svg xmlns="http://www.w3.org/2000/svg" ${o.label?`role="img" aria-label="${g(o.label)}"`:'aria-hidden="true"'} focusable="false" width="${g(s)}" height="${g(s)}" viewBox="0 0 24 24" fill="none" stroke-linecap="round" stroke-linejoin="round" data-variant="${e}">`;if(e==="outline")return`${f}<g stroke="${g(i)}" stroke-width="${p}">${n}</g></svg>`;let u=o.shape==="circle"?`<circle class="yi-bg" cx="12" cy="12" r="12" fill="${g(i)}"/>`:`<rect class="yi-bg" width="24" height="24" rx="6" fill="${g(i)}"/>`;return`${f}<style>${R}</style>${u}<g class="yi-glyph" stroke="${g(I)}" stroke-width="${p}" transform="${N}">${n}</g></svg>`}var h=require("react/jsx-runtime");function a({size:t=20,color:o,strokeWidth:n,label:s,variant:e,glyphColor:i,shape:I,children:p,...m}){let f=!s,u=y({variant:e,color:o,glyphColor:i,shape:I}),w=u.variant==="filled",O=n??(w?2.6:2.5);return(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:w?void 0:u.color,strokeWidth:w?void 0:O,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":f?"true":void 0,"aria-label":s,role:s?"img":void 0,focusable:"false","data-variant":u.variant,...m,children:w?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("style",{children:R}),I==="circle"?(0,h.jsx)("circle",{className:"yi-bg",cx:"12",cy:"12",r:"12",fill:u.color}):(0,h.jsx)("rect",{className:"yi-bg",width:"24",height:"24",rx:"6",fill:u.color}),(0,h.jsx)("g",{className:"yi-glyph",stroke:u.glyph,strokeWidth:O,transform:N,children:p})]}):p})}var b=require("react/jsx-runtime");function V(t){return(0,b.jsxs)(a,{...t,children:[(0,b.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,b.jsx)("path",{d:"m20 20-4-4"})]})}var C=require("react/jsx-runtime");function W(t){return(0,C.jsxs)(a,{...t,children:[(0,C.jsx)("path",{d:"M12 19V5"}),(0,C.jsx)("path",{d:"m5 12 7-7 7 7"})]})}var M=require("react/jsx-runtime");function Y(t){return(0,M.jsxs)(a,{...t,children:[(0,M.jsx)("path",{d:"M12 5v14"}),(0,M.jsx)("path",{d:"m5 12 7 7 7-7"})]})}var L=require("react/jsx-runtime");function q(t){return(0,L.jsx)(a,{...t,children:(0,L.jsx)("path",{d:"m15 18-6-6 6-6"})})}var $=require("react/jsx-runtime");function U(t){return(0,$.jsx)(a,{...t,children:(0,$.jsx)("path",{d:"m9 18 6-6-6-6"})})}var E=require("react/jsx-runtime");function K(t){return(0,E.jsx)(a,{...t,children:(0,E.jsx)("path",{d:"M5 12.5 10 17.5 19.5 7"})})}var P=require("react/jsx-runtime");function Z(t){return(0,P.jsxs)(a,{...t,children:[(0,P.jsx)("path",{d:"M18 6 6 18"}),(0,P.jsx)("path",{d:"m6 6 12 12"})]})}var r=require("react/jsx-runtime");function c({name:t,...o}){let n=d[t]??d.spark;return(0,r.jsx)(a,{...o,children:(0,r.jsx)("g",{dangerouslySetInnerHTML:{__html:n}})})}var J=t=>(0,r.jsx)(c,{...t,name:"accessibility"}),Q=t=>(0,r.jsx)(c,{...t,name:"contrast"}),X=t=>(0,r.jsx)(c,{...t,name:"moon"}),j=t=>(0,r.jsx)(c,{...t,name:"motion"}),tt=t=>(0,r.jsx)(c,{...t,name:"reading"}),ot=t=>(0,r.jsx)(c,{...t,name:"target"}),nt=t=>(0,r.jsx)(c,{...t,name:"speaker"}),et=t=>(0,r.jsx)(c,{...t,name:"palette"}),rt=t=>(0,r.jsx)(c,{...t,name:"skip"}),ct=t=>(0,r.jsx)(c,{...t,name:"plus"}),st=t=>(0,r.jsx)(c,{...t,name:"minus"}),at=t=>(0,r.jsx)(c,{...t,name:"reset"}),it=t=>(0,r.jsx)(c,{...t,name:"sort"}),lt=t=>(0,r.jsx)(c,{...t,name:"chevrons"}),pt=t=>(0,r.jsx)(c,{...t,name:"grid"}),ut=t=>(0,r.jsx)(c,{...t,name:"cards"}),ht=t=>(0,r.jsx)(c,{...t,name:"chat"}),It=t=>(0,r.jsx)(c,{...t,name:"mic"}),dt=t=>(0,r.jsx)(c,{...t,name:"stop"}),mt=t=>(0,r.jsx)(c,{...t,name:"download"}),ft=t=>(0,r.jsx)(c,{...t,name:"copy"}),gt=t=>(0,r.jsx)(c,{...t,name:"filter"}),xt=t=>(0,r.jsx)(c,{...t,name:"first"}),yt=t=>(0,r.jsx)(c,{...t,name:"last"}),bt=t=>(0,r.jsx)(c,{...t,name:"spark"}),Ct=t=>(0,r.jsx)(c,{...t,name:"alert"}),Mt=t=>(0,r.jsx)(c,{...t,name:"info"}),Pt=t=>(0,r.jsx)(c,{...t,name:"form"}),wt=t=>(0,r.jsx)(c,{...t,name:"eye"}),St=t=>(0,r.jsx)(c,{...t,name:"layout"}),vt=t=>(0,r.jsx)(c,{...t,name:"wand"}),At=t=>(0,r.jsx)(c,{...t,name:"undo"}),kt=t=>(0,r.jsx)(c,{...t,name:"tools"}),Bt=t=>(0,r.jsx)(c,{...t,name:"plug"});
|
|
1
|
+
"use strict";var C=Object.defineProperty;var lt=Object.getOwnPropertyDescriptor;var ht=Object.getOwnPropertyNames;var It=Object.prototype.hasOwnProperty;var dt=(o,e)=>{for(var r in e)C(o,r,{get:e[r],enumerable:!0})},mt=(o,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of ht(e))!It.call(o,c)&&c!==r&&C(o,c,{get:()=>e[c],enumerable:!(a=lt(e,c))||a.enumerable});return o};var ut=o=>mt(C({},"__esModule",{value:!0}),o);var ft={};dt(ft,{AccessibilityIcon:()=>J,AlertIcon:()=>bo,ArrowLeftIcon:()=>Zo,ArrowRightIcon:()=>Jo,ArrowUpIcon:()=>Ko,BookIcon:()=>zo,BulbIcon:()=>pt,CalendarIcon:()=>Eo,CardsIcon:()=>ho,ChatIcon:()=>Io,CheckIcon:()=>K,ChevronLeftIcon:()=>Y,ChevronRightIcon:()=>q,ChevronsIcon:()=>io,ClockIcon:()=>To,CloseIcon:()=>Z,ContrastIcon:()=>Q,CopyIcon:()=>fo,DownloadIcon:()=>xo,ExternalIcon:()=>qo,EyeIcon:()=>Co,FileIcon:()=>Yo,FilterIcon:()=>go,FirstIcon:()=>yo,FormIcon:()=>wo,GiftIcon:()=>Uo,GlobeIcon:()=>Ho,GridIcon:()=>lo,HeadphonesIcon:()=>Qo,HelpIcon:()=>rt,HomeIcon:()=>Ro,ICON_MIN_CONTRAST:()=>k,ICON_NAMES:()=>G,ICON_PATHS:()=>m,IconBase:()=>s,ImageIcon:()=>Wo,InfoIcon:()=>vo,InstallIcon:()=>et,LampIcon:()=>Go,LastIcon:()=>Mo,LayoutIcon:()=>So,MapIcon:()=>ot,MeditateIcon:()=>at,MenuIcon:()=>No,MicIcon:()=>mo,MinusIcon:()=>ao,MoonIcon:()=>X,MotionIcon:()=>j,MusicIcon:()=>Xo,PaletteIcon:()=>eo,PauseIcon:()=>_o,PenIcon:()=>tt,PersonIcon:()=>$o,PinIcon:()=>jo,PlayIcon:()=>Vo,PlugIcon:()=>Bo,PlusIcon:()=>co,ReadingIcon:()=>oo,ResetIcon:()=>so,SearchIcon:()=>D,SendIcon:()=>Fo,ShareIcon:()=>Do,SkipIcon:()=>ro,SortDownIcon:()=>W,SortIcon:()=>po,SortUpIcon:()=>U,SparkIcon:()=>Po,SpeakerIcon:()=>no,StopIcon:()=>uo,SunIcon:()=>it,TargetIcon:()=>to,TempleIcon:()=>ct,ToolsIcon:()=>Lo,TrophyIcon:()=>st,UndoIcon:()=>ko,UsersIcon:()=>Oo,WalletIcon:()=>nt,WandIcon:()=>Ao,YuktaiIcon:()=>n,iconContrast:()=>g,iconSvg:()=>F,pickGlyphColor:()=>L,resolveIconColours:()=>y});module.exports=ut(ft);function S(o){if(!o)return null;let e=o.trim().toLowerCase();if(e==="transparent")return{r:0,g:0,b:0,a:0};let r=e.match(/^rgba?\(([^)]+)\)$/);if(r){let c=r[1].split(/[\s,/]+/).filter(Boolean),[p,d,l]=c.slice(0,3).map(Number),u=c[3],x=u===void 0?1:u.endsWith("%")?Number(u.slice(0,-1))/100:Number(u);return[p,d,l,x].some(h=>!Number.isFinite(h))?null:{r:p,g:d,b:l,a:x}}let a=e.match(/^#([0-9a-f]{3,8})$/);if(a){let c=a[1];return(c.length===3||c.length===4)&&(c=c.split("").map(p=>p+p).join("")),c.length!==6&&c.length!==8?null:{r:parseInt(c.slice(0,2),16),g:parseInt(c.slice(2,4),16),b:parseInt(c.slice(4,6),16),a:c.length===8?parseInt(c.slice(6,8),16)/255:1}}return null}function $(o,e){let r=o.a+e.a*(1-o.a);if(r===0)return{r:0,g:0,b:0,a:0};let a=(c,p)=>(c*o.a+p*e.a*(1-o.a))/r;return{r:a(o.r,e.r),g:a(o.g,e.g),b:a(o.b,e.b),a:r}}function O(o){let e=r=>{let a=r/255;return a<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)};return .2126*e(o.r)+.7152*e(o.g)+.0722*e(o.b)}function H(o,e){let r=e.a<1?$(e,{r:255,g:255,b:255,a:1}):e,a=o.a<1?$(o,r):o,c=O(a),p=O(r),[d,l]=c>p?[c,p]:[p,c];return Math.round((d+.05)/(l+.05)*100)/100}var m={accessibility:'<circle cx="12" cy="4" r="2"/><path d="M4 8l8-1 8 1M12 7v5m-5 9 5-8 5 8M7 12l-2 5m12-5 2 5"/>',contrast:'<circle cx="12" cy="12" r="9"/><path d="M12 3a9 9 0 0 0 0 18z"/>',moon:'<path d="M20 14.5A8.5 8.5 0 0 1 9.5 4 8.5 8.5 0 1 0 20 14.5z"/>',motion:'<path d="M4 12h12m-5-5 5 5-5 5M20 5v14"/>',reading:'<path d="M4 5h16M4 10h12M4 15h16M4 20h10"/>',target:'<circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="4"/>',speaker:'<path d="M4 9v6h4l5 4V5L8 9H4z"/><path d="M16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11"/>',palette:'<circle cx="12" cy="12" r="9"/><circle cx="8" cy="10" r="1.3"/><circle cx="12" cy="7.5" r="1.3"/><circle cx="16" cy="10" r="1.3"/><path d="M12 21a3 3 0 0 1 0-6h2"/>',skip:'<path d="M5 5l7 7-7 7M13 5l7 7-7 7"/>',close:'<path d="m18 6-12 12M6 6l12 12"/>',plus:'<path d="M12 5v14M5 12h14"/>',minus:'<path d="M5 12h14"/>',reset:'<path d="M3 12a9 9 0 1 0 3-6.7L3 8"/><path d="M3 3v5h5"/>',search:'<circle cx="11" cy="11" r="6.5"/><path d="m16 16 5 5"/>',sort:'<path d="m8 9 4-4 4 4m-8 6 4 4 4-4"/>',sortUp:'<path d="m6 15 6-6 6 6"/>',sortDown:'<path d="m6 9 6 6 6-6"/>',chevrons:'<path d="m8 9 4-4 4 4m-8 6 4 4 4-4"/>',grid:'<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/>',cards:'<rect x="3" y="4" width="18" height="7" rx="1.5"/><rect x="3" y="13" width="18" height="7" rx="1.5"/>',chat:'<path d="M21 11.5a8.5 8.5 0 0 1-8.5 8.5 9 9 0 0 1-4-.9L3 21l1.9-5.5a9 9 0 0 1-.9-4A8.5 8.5 0 0 1 12.5 3H13a8.5 8.5 0 0 1 8 8z"/>',mic:'<rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10a7 7 0 0 0 14 0M12 17v5m-4 0h8"/>',stop:'<rect x="6" y="6" width="12" height="12" rx="2"/>',download:'<path d="M12 3v12m-5-5 5 5 5-5M4 21h16"/>',copy:'<rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/>',filter:'<path d="M4 5h16l-6 7v6l-4 2v-8z"/>',check:'<path d="m5 12 4 4L19 6"/>',left:'<path d="m15 18-6-6 6-6"/>',right:'<path d="m9 18 6-6-6-6"/>',first:'<path d="m11 18-6-6 6-6M19 18l-6-6 6-6"/>',last:'<path d="m13 18 6-6-6-6M5 18l6-6-6-6"/>',spark:'<path d="m12 3 1.9 5.8L20 11l-6.1 2.2L12 19l-1.9-5.8L4 11l6.1-2.2zM19 14l1.2 2.8L23 18l-2.8 1.2L19 22l-1.2-2.8L15 18l2.8-1.2z"/>',alert:'<path d="m12 3 10 18H2L12 3z"/><path d="M12 9v5m0 3h.01"/>',info:'<circle cx="12" cy="12" r="9"/><path d="M12 11v6m0-9h.01"/>',form:'<rect x="5" y="3" width="14" height="18" rx="2"/><path d="M9 8h6M9 12h6M9 16h3"/>',eye:'<path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/>',layout:'<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M9 21V9"/>',wand:'<path d="m15 4 5 5L9 20H4v-5z"/><path d="m13 6 5 5"/>',undo:'<path d="M9 14 4 9l5-5"/><path d="M4 9h10a6 6 0 0 1 0 12h-3"/>',tools:'<path d="M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4z"/>',plug:'<path d="M9 2v6M15 2v6M6 8h12v4a6 6 0 0 1-12 0zM12 18v4"/>',home:'<path d="M3 11 12 4l9 7"/><path d="M5 10v10h5v-6h4v6h5V10"/>',menu:'<path d="M4 6h16M4 12h16M4 18h16"/>',book:'<path d="M12 6c-2-1.5-5-2-8-2v14c3 0 6 .5 8 2 2-1.5 5-2 8-2V4c-3 0-6 .5-8 2zM12 6v14"/>',calendar:'<rect x="3" y="5" width="18" height="16" rx="2"/><path d="M3 10h18M8 3v4M16 3v4M7.5 14h2M14.5 14h2M7.5 17.5h2"/>',clock:'<circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/>',person:'<circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/>',users:'<circle cx="9" cy="8" r="3.5"/><path d="M2 20a7 7 0 0 1 14 0"/><path d="M16 4.5a3.5 3.5 0 0 1 0 7M18 13.5a7 7 0 0 1 4 6.5"/>',globe:'<circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"/>',lamp:'<path d="M12 3c2 2.6 3 4.3 3 6a3 3 0 0 1-6 0c0-1.7 1-3.4 3-6z"/><path d="M3 14h18c0 3.5-4 6-9 6s-9-2.5-9-6z"/><path d="M12 12v2"/>',play:'<circle cx="12" cy="12" r="9"/><path d="M10 8.5v7l6-3.5z"/>',pause:'<circle cx="12" cy="12" r="9"/><path d="M10 9v6M14 9v6"/>',send:'<path d="M21 3 3 10.5l7 3 3 7.5z"/><path d="m10 13.5 4.5-4.5"/>',share:'<circle cx="18" cy="5" r="2.5"/><circle cx="6" cy="12" r="2.5"/><circle cx="18" cy="19" r="2.5"/><path d="m8.2 10.8 7.6-4.6M8.2 13.2l7.6 4.6"/>',gift:'<rect x="3" y="8" width="18" height="4" rx="1"/><path d="M5 12v9h14v-9M12 8v13M12 8C10.5 5 7 4 7 6.5S10 8 12 8zm0 0c1.5-3 5-4 5-1.5S14 8 12 8z"/>',image:'<rect x="3" y="4" width="18" height="16" rx="2"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="m21 15-5-5-10 10"/>',file:'<path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5M9 13h6M9 17h6"/>',external:'<path d="M14 4h6v6M20 4l-9 9"/><path d="M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"/>',arrowUp:'<path d="M12 19V5m-6 6 6-6 6 6"/>',arrowLeft:'<path d="M19 12H5m6-6-6 6 6 6"/>',arrowRight:'<path d="M5 12h14m-6-6 6 6-6 6"/>',headphones:'<path d="M4 15v-3a8 8 0 0 1 16 0v3"/><rect x="3" y="14" width="4" height="7" rx="1.5"/><rect x="17" y="14" width="4" height="7" rx="1.5"/>',music:'<path d="M9 18V5l11-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="17" cy="16" r="3"/>',pin:'<path d="M12 21s7-6.2 7-11.5a7 7 0 0 0-14 0C5 14.8 12 21 12 21z"/><circle cx="12" cy="9.5" r="2.5"/>',map:'<path d="M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z"/><path d="M9 3v15M15 6v15"/>',pen:'<path d="M12 3 6 9l1.5 8h9L18 9z"/><path d="M12 3v7.5"/><circle cx="12" cy="12" r="1.5"/><path d="M8 21h8"/>',wallet:'<rect x="3" y="7" width="18" height="13" rx="2"/><path d="M16 13.5h2M6 7l9-4 2 4"/>',install:'<rect x="6" y="2" width="12" height="20" rx="2"/><path d="M12 6v8m-3-3 3 3 3-3M10 18h4"/>',help:'<circle cx="12" cy="12" r="9"/><path d="M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6v.6M12 17h.01"/>',temple:'<path d="M12 2v2M10 4h4l1 3H9zM8 7h8l1.5 4h-11zM6.5 11h11L19 15H5zM4 15h16v6H4z"/><path d="M10 21v-3a2 2 0 0 1 4 0v3"/>',meditate:'<circle cx="12" cy="4.5" r="2.2"/><path d="M12 8c-2.2 0-3.3 1.3-3.7 3.2L7.5 16M12 8c2.2 0 3.3 1.3 3.7 3.2l.8 4.8"/><path d="M4 18c3 2 5.5 2.4 8 1.2 2.5 1.2 5 .8 8-1.2"/><path d="M7.5 16c1.4 1.4 3 2 4.5 2s3.1-.6 4.5-2"/>',trophy:'<path d="M8 4h8v5a4 4 0 0 1-8 0z"/><path d="M8 6H5a3 3 0 0 0 3 4M16 6h3a3 3 0 0 1-3 4M12 13v4M8 21h8M9 17h6"/>',bulb:'<path d="M9 18h6M10 21h4"/><path d="M12 3a6 6 0 0 0-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0 0 12 3z"/>',sun:'<circle cx="12" cy="12" r="4"/><path d="M12 2v2.5M12 19.5V22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M2 12h2.5M19.5 12H22M4.9 19.1l1.8-1.8M17.3 6.7l1.8-1.8"/>'},G=Object.keys(m);var k=3,A="#ffffff",V="#111827";function g(o,e){let r=S(o),a=S(e);return r&&a?H(r,a):null}function L(o){let e=g(A,o),r=g(V,o);return e===null||r===null||e>=r?A:V}var _=new Set;function xt(o,e){_.has(o)||(_.add(o),typeof console<"u"&&console.warn(`[yuktai icons] ${e}`))}function y(o={}){let e=o.variant==="filled"?"filled":"outline",r=o.color||"currentColor";if(e==="outline")return{variant:e,color:r,glyph:r,contrast:null};let a=o.glyphColor||L(r),c=g(a,r);return c!==null&&c<k&&xt(`${a}|${r}`,`glyph ${a} on ${r} is ${c}:1. WCAG 1.4.11 needs at least 3:1 for icons.`),{variant:e,color:r,glyph:a,contrast:c}}var B="translate(3.6 3.6) scale(0.7)",R="@media (forced-colors: active){.yi-bg{fill:CanvasText}.yi-glyph{stroke:Canvas}}",f=o=>String(o).replace(/[&<>"']/g,e=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[e]);function F(o,e={}){let r=m[o]??m.spark,a=e.size??20,{variant:c,color:p,glyph:d}=y(e),l=e.strokeWidth??(c==="filled"?2.4:1.9),x=`<svg xmlns="http://www.w3.org/2000/svg" ${e.label?`role="img" aria-label="${f(e.label)}"`:'aria-hidden="true"'} focusable="false" width="${f(a)}" height="${f(a)}" viewBox="0 0 24 24" fill="none" stroke-linecap="round" stroke-linejoin="round" data-variant="${c}">`;if(c==="outline")return`${x}<g stroke="${f(p)}" stroke-width="${l}">${r}</g></svg>`;let h=e.shape==="circle"?`<circle class="yi-bg" cx="12" cy="12" r="12" fill="${f(p)}"/>`:`<rect class="yi-bg" width="24" height="24" rx="6" fill="${f(p)}"/>`;return`${x}<style>${R}</style>${h}<g class="yi-glyph" stroke="${f(d)}" stroke-width="${l}" transform="${B}">${r}</g></svg>`}var I=require("react/jsx-runtime");function s({size:o=20,color:e,strokeWidth:r,label:a,variant:c,glyphColor:p,shape:d,children:l,...u}){let x=!a,h=y({variant:c,color:e,glyphColor:p,shape:d}),w=h.variant==="filled",T=r??(w?2.6:2.5);return(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:w?void 0:h.color,strokeWidth:w?void 0:T,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":x?"true":void 0,"aria-label":a,role:a?"img":void 0,focusable:"false","data-variant":h.variant,...u,children:w?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:R}),d==="circle"?(0,I.jsx)("circle",{className:"yi-bg",cx:"12",cy:"12",r:"12",fill:h.color}):(0,I.jsx)("rect",{className:"yi-bg",width:"24",height:"24",rx:"6",fill:h.color}),(0,I.jsx)("g",{className:"yi-glyph",stroke:h.glyph,strokeWidth:T,transform:B,children:l})]}):l})}var M=require("react/jsx-runtime");function D(o){return(0,M.jsxs)(s,{...o,children:[(0,M.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,M.jsx)("path",{d:"m20 20-4-4"})]})}var P=require("react/jsx-runtime");function U(o){return(0,P.jsxs)(s,{...o,children:[(0,P.jsx)("path",{d:"M12 19V5"}),(0,P.jsx)("path",{d:"m5 12 7-7 7 7"})]})}var b=require("react/jsx-runtime");function W(o){return(0,b.jsxs)(s,{...o,children:[(0,b.jsx)("path",{d:"M12 5v14"}),(0,b.jsx)("path",{d:"m5 12 7 7 7-7"})]})}var N=require("react/jsx-runtime");function Y(o){return(0,N.jsx)(s,{...o,children:(0,N.jsx)("path",{d:"m15 18-6-6 6-6"})})}var z=require("react/jsx-runtime");function q(o){return(0,z.jsx)(s,{...o,children:(0,z.jsx)("path",{d:"m9 18 6-6-6-6"})})}var E=require("react/jsx-runtime");function K(o){return(0,E.jsx)(s,{...o,children:(0,E.jsx)("path",{d:"M5 12.5 10 17.5 19.5 7"})})}var v=require("react/jsx-runtime");function Z(o){return(0,v.jsxs)(s,{...o,children:[(0,v.jsx)("path",{d:"M18 6 6 18"}),(0,v.jsx)("path",{d:"m6 6 12 12"})]})}var t=require("react/jsx-runtime");function n({name:o,...e}){let r=m[o]??m.spark;return(0,t.jsx)(s,{...e,children:(0,t.jsx)("g",{dangerouslySetInnerHTML:{__html:r}})})}var J=o=>(0,t.jsx)(n,{...o,name:"accessibility"}),Q=o=>(0,t.jsx)(n,{...o,name:"contrast"}),X=o=>(0,t.jsx)(n,{...o,name:"moon"}),j=o=>(0,t.jsx)(n,{...o,name:"motion"}),oo=o=>(0,t.jsx)(n,{...o,name:"reading"}),to=o=>(0,t.jsx)(n,{...o,name:"target"}),no=o=>(0,t.jsx)(n,{...o,name:"speaker"}),eo=o=>(0,t.jsx)(n,{...o,name:"palette"}),ro=o=>(0,t.jsx)(n,{...o,name:"skip"}),co=o=>(0,t.jsx)(n,{...o,name:"plus"}),ao=o=>(0,t.jsx)(n,{...o,name:"minus"}),so=o=>(0,t.jsx)(n,{...o,name:"reset"}),po=o=>(0,t.jsx)(n,{...o,name:"sort"}),io=o=>(0,t.jsx)(n,{...o,name:"chevrons"}),lo=o=>(0,t.jsx)(n,{...o,name:"grid"}),ho=o=>(0,t.jsx)(n,{...o,name:"cards"}),Io=o=>(0,t.jsx)(n,{...o,name:"chat"}),mo=o=>(0,t.jsx)(n,{...o,name:"mic"}),uo=o=>(0,t.jsx)(n,{...o,name:"stop"}),xo=o=>(0,t.jsx)(n,{...o,name:"download"}),fo=o=>(0,t.jsx)(n,{...o,name:"copy"}),go=o=>(0,t.jsx)(n,{...o,name:"filter"}),yo=o=>(0,t.jsx)(n,{...o,name:"first"}),Mo=o=>(0,t.jsx)(n,{...o,name:"last"}),Po=o=>(0,t.jsx)(n,{...o,name:"spark"}),bo=o=>(0,t.jsx)(n,{...o,name:"alert"}),vo=o=>(0,t.jsx)(n,{...o,name:"info"}),wo=o=>(0,t.jsx)(n,{...o,name:"form"}),Co=o=>(0,t.jsx)(n,{...o,name:"eye"}),So=o=>(0,t.jsx)(n,{...o,name:"layout"}),Ao=o=>(0,t.jsx)(n,{...o,name:"wand"}),ko=o=>(0,t.jsx)(n,{...o,name:"undo"}),Lo=o=>(0,t.jsx)(n,{...o,name:"tools"}),Bo=o=>(0,t.jsx)(n,{...o,name:"plug"}),Ro=o=>(0,t.jsx)(n,{...o,name:"home"}),No=o=>(0,t.jsx)(n,{...o,name:"menu"}),zo=o=>(0,t.jsx)(n,{...o,name:"book"}),Eo=o=>(0,t.jsx)(n,{...o,name:"calendar"}),To=o=>(0,t.jsx)(n,{...o,name:"clock"}),$o=o=>(0,t.jsx)(n,{...o,name:"person"}),Oo=o=>(0,t.jsx)(n,{...o,name:"users"}),Ho=o=>(0,t.jsx)(n,{...o,name:"globe"}),Go=o=>(0,t.jsx)(n,{...o,name:"lamp"}),Vo=o=>(0,t.jsx)(n,{...o,name:"play"}),_o=o=>(0,t.jsx)(n,{...o,name:"pause"}),Fo=o=>(0,t.jsx)(n,{...o,name:"send"}),Do=o=>(0,t.jsx)(n,{...o,name:"share"}),Uo=o=>(0,t.jsx)(n,{...o,name:"gift"}),Wo=o=>(0,t.jsx)(n,{...o,name:"image"}),Yo=o=>(0,t.jsx)(n,{...o,name:"file"}),qo=o=>(0,t.jsx)(n,{...o,name:"external"}),Ko=o=>(0,t.jsx)(n,{...o,name:"arrowUp"}),Zo=o=>(0,t.jsx)(n,{...o,name:"arrowLeft"}),Jo=o=>(0,t.jsx)(n,{...o,name:"arrowRight"}),Qo=o=>(0,t.jsx)(n,{...o,name:"headphones"}),Xo=o=>(0,t.jsx)(n,{...o,name:"music"}),jo=o=>(0,t.jsx)(n,{...o,name:"pin"}),ot=o=>(0,t.jsx)(n,{...o,name:"map"}),tt=o=>(0,t.jsx)(n,{...o,name:"pen"}),nt=o=>(0,t.jsx)(n,{...o,name:"wallet"}),et=o=>(0,t.jsx)(n,{...o,name:"install"}),rt=o=>(0,t.jsx)(n,{...o,name:"help"}),ct=o=>(0,t.jsx)(n,{...o,name:"temple"}),at=o=>(0,t.jsx)(n,{...o,name:"meditate"}),st=o=>(0,t.jsx)(n,{...o,name:"trophy"}),pt=o=>(0,t.jsx)(n,{...o,name:"bulb"}),it=o=>(0,t.jsx)(n,{...o,name:"sun"});
|
package/dist/icons.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as L,A as k,B as l,C as m,D as n,E as o,F as p,G as q,H as r,I as s,J as t,K as u,L as v,M as w,N as x,O as y,P as z,Q as A,R as B,S as C,T as D,U as E,V as F,W as G,X as H,Y as I,Z as J,_ as K,aa as M,ba as N,ca as O,da as P,ea as Q,fa as R,ga as S,ha as T,ia as U,ja as V,ka as W,la as X,q as a,r as b,s as c,t as d,u as e,v as f,w as g,x as h,y as i,z as j}from"./chunk-
|
|
1
|
+
import{$ as L,A as k,Aa as ka,B as l,Ba as la,C as m,Ca as ma,D as n,Da as na,E as o,Ea as oa,F as p,Fa as pa,G as q,Ga as qa,H as r,Ha as ra,I as s,Ia as sa,J as t,Ja as ta,K as u,Ka as ua,L as v,La as va,M as w,Ma as wa,N as x,Na as xa,O as y,Oa as ya,P as z,Pa as za,Q as A,Qa as Aa,R as B,Ra as Ba,S as C,Sa as Ca,T as D,U as E,V as F,W as G,X as H,Y as I,Z as J,_ as K,aa as M,ba as N,ca as O,da as P,ea as Q,fa as R,ga as S,ha as T,ia as U,ja as V,ka as W,la as X,ma as Y,na as Z,oa as _,pa as $,q as a,qa as aa,r as b,ra as ba,s as c,sa as ca,t as d,ta as da,u as e,ua as ea,v as f,va as fa,w as g,wa as ga,x as h,xa as ha,y as i,ya as ia,z as j,za as ja}from"./chunk-LV252EOY.mjs";export{q as AccessibilityIcon,P as AlertIcon,oa as ArrowLeftIcon,pa as ArrowRightIcon,na as ArrowUpIcon,_ as BookIcon,Ba as BulbIcon,$ as CalendarIcon,F as CardsIcon,G as ChatIcon,n as CheckIcon,l as ChevronLeftIcon,m as ChevronRightIcon,D as ChevronsIcon,aa as ClockIcon,o as CloseIcon,r as ContrastIcon,K as CopyIcon,J as DownloadIcon,ma as ExternalIcon,S as EyeIcon,la as FileIcon,L as FilterIcon,M as FirstIcon,R as FormIcon,ja as GiftIcon,da as GlobeIcon,E as GridIcon,qa as HeadphonesIcon,xa as HelpIcon,Y as HomeIcon,c as ICON_MIN_CONTRAST,b as ICON_NAMES,a as ICON_PATHS,h as IconBase,ka as ImageIcon,Q as InfoIcon,wa as InstallIcon,ea as LampIcon,N as LastIcon,T as LayoutIcon,ta as MapIcon,za as MeditateIcon,Z as MenuIcon,H as MicIcon,A as MinusIcon,s as MoonIcon,t as MotionIcon,ra as MusicIcon,x as PaletteIcon,ga as PauseIcon,ua as PenIcon,ba as PersonIcon,sa as PinIcon,fa as PlayIcon,X as PlugIcon,z as PlusIcon,u as ReadingIcon,B as ResetIcon,i as SearchIcon,ha as SendIcon,ia as ShareIcon,y as SkipIcon,k as SortDownIcon,C as SortIcon,j as SortUpIcon,O as SparkIcon,w as SpeakerIcon,I as StopIcon,Ca as SunIcon,v as TargetIcon,ya as TempleIcon,W as ToolsIcon,Aa as TrophyIcon,V as UndoIcon,ca as UsersIcon,va as WalletIcon,U as WandIcon,p as YuktaiIcon,d as iconContrast,g as iconSvg,e as pickGlyphColor,f as resolveIconColours};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, CSSProperties } from 'react';
|
|
3
|
-
export { AccessibilityIcon, AlertIcon, CardsIcon, ChatIcon, CheckIcon, ChevronLeftIcon, ChevronRightIcon, ChevronsIcon, CloseIcon, ContrastIcon, CopyIcon, DownloadIcon, EyeIcon, FilterIcon, FirstIcon, FormIcon, GridIcon, ICON_MIN_CONTRAST, ICON_NAMES, ICON_PATHS, IconBase, IconName, IconProps, IconShape, IconSvgOptions, IconVariant, InfoIcon, LastIcon, LayoutIcon, MicIcon, MinusIcon, MoonIcon, MotionIcon, PaletteIcon, PlugIcon, PlusIcon, ReadingIcon, ResetIcon, SearchIcon, SkipIcon, SortDownIcon, SortIcon, SortUpIcon, SparkIcon, SpeakerIcon, StopIcon, TargetIcon, ToolsIcon, UndoIcon, WandIcon, YuktaiIcon, YuktaiIconProps, iconContrast, iconSvg, pickGlyphColor } from './icons.mjs';
|
|
3
|
+
export { AccessibilityIcon, AlertIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BookIcon, BulbIcon, CalendarIcon, CardsIcon, ChatIcon, CheckIcon, ChevronLeftIcon, ChevronRightIcon, ChevronsIcon, ClockIcon, CloseIcon, ContrastIcon, CopyIcon, DownloadIcon, ExternalIcon, EyeIcon, FileIcon, FilterIcon, FirstIcon, FormIcon, GiftIcon, GlobeIcon, GridIcon, HeadphonesIcon, HelpIcon, HomeIcon, ICON_MIN_CONTRAST, ICON_NAMES, ICON_PATHS, IconBase, IconName, IconProps, IconShape, IconSvgOptions, IconVariant, ImageIcon, InfoIcon, InstallIcon, LampIcon, LastIcon, LayoutIcon, MapIcon, MeditateIcon, MenuIcon, MicIcon, MinusIcon, MoonIcon, MotionIcon, MusicIcon, PaletteIcon, PauseIcon, PenIcon, PersonIcon, PinIcon, PlayIcon, PlugIcon, PlusIcon, ReadingIcon, ResetIcon, SearchIcon, SendIcon, ShareIcon, SkipIcon, SortDownIcon, SortIcon, SortUpIcon, SparkIcon, SpeakerIcon, StopIcon, SunIcon, TargetIcon, TempleIcon, ToolsIcon, TrophyIcon, UndoIcon, UsersIcon, WalletIcon, WandIcon, YuktaiIcon, YuktaiIconProps, iconContrast, iconSvg, pickGlyphColor } from './icons.mjs';
|
|
4
4
|
|
|
5
5
|
interface Plugin {
|
|
6
6
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, CSSProperties } from 'react';
|
|
3
|
-
export { AccessibilityIcon, AlertIcon, CardsIcon, ChatIcon, CheckIcon, ChevronLeftIcon, ChevronRightIcon, ChevronsIcon, CloseIcon, ContrastIcon, CopyIcon, DownloadIcon, EyeIcon, FilterIcon, FirstIcon, FormIcon, GridIcon, ICON_MIN_CONTRAST, ICON_NAMES, ICON_PATHS, IconBase, IconName, IconProps, IconShape, IconSvgOptions, IconVariant, InfoIcon, LastIcon, LayoutIcon, MicIcon, MinusIcon, MoonIcon, MotionIcon, PaletteIcon, PlugIcon, PlusIcon, ReadingIcon, ResetIcon, SearchIcon, SkipIcon, SortDownIcon, SortIcon, SortUpIcon, SparkIcon, SpeakerIcon, StopIcon, TargetIcon, ToolsIcon, UndoIcon, WandIcon, YuktaiIcon, YuktaiIconProps, iconContrast, iconSvg, pickGlyphColor } from './icons.js';
|
|
3
|
+
export { AccessibilityIcon, AlertIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BookIcon, BulbIcon, CalendarIcon, CardsIcon, ChatIcon, CheckIcon, ChevronLeftIcon, ChevronRightIcon, ChevronsIcon, ClockIcon, CloseIcon, ContrastIcon, CopyIcon, DownloadIcon, ExternalIcon, EyeIcon, FileIcon, FilterIcon, FirstIcon, FormIcon, GiftIcon, GlobeIcon, GridIcon, HeadphonesIcon, HelpIcon, HomeIcon, ICON_MIN_CONTRAST, ICON_NAMES, ICON_PATHS, IconBase, IconName, IconProps, IconShape, IconSvgOptions, IconVariant, ImageIcon, InfoIcon, InstallIcon, LampIcon, LastIcon, LayoutIcon, MapIcon, MeditateIcon, MenuIcon, MicIcon, MinusIcon, MoonIcon, MotionIcon, MusicIcon, PaletteIcon, PauseIcon, PenIcon, PersonIcon, PinIcon, PlayIcon, PlugIcon, PlusIcon, ReadingIcon, ResetIcon, SearchIcon, SendIcon, ShareIcon, SkipIcon, SortDownIcon, SortIcon, SortUpIcon, SparkIcon, SpeakerIcon, StopIcon, SunIcon, TargetIcon, TempleIcon, ToolsIcon, TrophyIcon, UndoIcon, UsersIcon, WalletIcon, WandIcon, YuktaiIcon, YuktaiIconProps, iconContrast, iconSvg, pickGlyphColor } from './icons.js';
|
|
4
4
|
|
|
5
5
|
interface Plugin {
|
|
6
6
|
name: string;
|