shadcn 4.13.0 → 4.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2XFBGS5K.js +1 -0
- package/dist/chunk-3W6BGJGE.js +2 -0
- package/dist/{chunk-G7PLOKI6.js → chunk-JHQYUTIO.js} +40 -40
- package/dist/{chunk-AHVD7OOC.js → chunk-NIZPOFIN.js} +1 -1
- package/dist/icons/index.d.ts +14 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.js +87 -87
- package/dist/mcp/index.js +1 -1
- package/dist/preset/index.d.ts +4 -2
- package/dist/preset/index.js +1 -1
- package/dist/registry/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-NUMOKWW5.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c=["radix","base","aria"];function I(e){return c.includes(e)}function k(e){let t=e?c.find(n=>e.startsWith(`${n}-`)):void 0;return {base:t,style:t?e?.slice(t.length+1):e}}var p=["nova","vega","maia","lyra","mira","luma","sera","rhea"],b=["neutral","stone","zinc","gray","mauve","olive","mist","taupe"],f=["neutral","stone","zinc","gray","amber","blue","cyan","emerald","fuchsia","green","indigo","lime","orange","pink","purple","red","rose","sky","teal","violet","yellow","mauve","olive","mist","taupe"],R=f,N={neutral:"blue",stone:"lime",zinc:"amber",mauve:"emerald",olive:"violet",mist:"rose",taupe:"cyan"},d=["lucide","hugeicons","tabler","phosphor","remixicon"],E=["inter","noto-sans","nunito-sans","figtree","roboto","raleway","dm-sans","public-sans","outfit","jetbrains-mono","geist","geist-mono","lora","merriweather","playfair-display","noto-serif","roboto-slab","oxanium","manrope","space-grotesk","montserrat","ibm-plex-sans","source-sans-3","instrument-sans","eb-garamond","instrument-serif"],g=["inherit",...E],P=["default","none","small","medium","large"],_=["subtle","bold"],y=["default","inverted","default-translucent","inverted-translucent"],S=[{key:"menuColor",values:y,bits:3},{key:"menuAccent",values:_,bits:3},{key:"radius",values:P,bits:4},{key:"font",values:E,bits:6},{key:"iconLibrary",values:d,bits:6},{key:"theme",values:f,bits:6},{key:"baseColor",values:b,bits:6},{key:"style",values:p,bits:6}],a=[...S,{key:"chartColor",values:R,bits:6},{key:"fontHeading",values:g,bits:5}],T=Object.fromEntries(a.map(e=>[e.key,e.values[0]])),l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",x="b",m=["a","b"];function C(e){if(e===0)return "0";let t="",n=e;for(;n>0;)t=l[n%62]+t,n=Math.floor(n/62);return t}function O(e){let t=0;for(let n=0;n<e.length;n++){let s=l.indexOf(e[n]);if(s===-1)return -1;t=t*62+s;}return t}function h(e){let t={...T,...e},n=0,s=0;for(let r of a){let i=r.values.indexOf(t[r.key]);n+=(i===-1?0:i)*2**s,s+=r.bits;}return x+C(n)}function v(e){if(!e||e.length<2)return null;let t=e[0];if(!m.includes(t))return null;let n=t==="a"?S:a,s=O(e.slice(1));if(s<0)return null;let r={},i=0;for(let o of n){let u=Math.floor(s/2**i)%2**o.bits;r[o.key]=u<o.values.length?o.values[u]:o.values[0],i+=o.bits;}return t==="a"&&(r.fontHeading="inherit"),r}function L(e){if(!e||e.length<2||e.length>10||!m.includes(e[0]))return false;for(let t=1;t<e.length;t++)if(l.indexOf(e[t])===-1)return false;return true}function B(e){return v(e)!==null}function A(){let e=t=>t[Math.floor(Math.random()*t.length)];return Object.fromEntries(a.map(t=>[t.key,e(t.values)]))}function M(){return h(A())}export{c as a,I as b,k as c,p as d,b as e,f,R as g,N as h,d as i,E as j,g as k,P as l,_ as m,y as n,T as o,C as p,O as q,h as r,v as s,L as t,B as u,A as v,M as w};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var f=/^import\s+{([^}]+)}\s+from\s+['"]([^'"]+)['"]/;function d(e){let n=[];for(let t of e.split(`
|
|
2
|
+
`)){let i=t.trim().match(f);i&&n.push({moduleSpecifier:i[2],namedImports:i[1].split(",").map(r=>r.trim())});}return n}function g(e){return d(e).find(n=>n.namedImports.includes("ICON"))?.moduleSpecifier}function I(e){let n=e.indexOf("<"),t=e.indexOf("/>",n);if(n===-1||t===-1)return {componentName:"ICON",attributes:{}};let i=e.slice(n+1,t).trim(),r=i.search(/[^\w]/),s=r===-1?i:i.slice(0,r),c=r===-1?"":i.slice(r);if(!s)return {componentName:"ICON",attributes:{}};let o={},m;for(let[p,a]of l(c)){if(a==="{ICON}"){m=p;continue}o[p]=a;}return {componentName:s,iconAttribute:m,attributes:o}}var u=/[\w-]/;function l(e){let n=[],t=0;for(;t<e.length;){if(!u.test(e[t])){t++;continue}let i=t;for(;t<e.length&&u.test(e[t]);)t++;let r=e.slice(i,t);if(e[t]!=="=")continue;t++;let s=e[t],c=s==="{"?"}":s==='"'||s==="'"?s:"";if(!c)continue;let o=e.indexOf(c,t+1);if(o===-1)break;n.push([r,e.slice(t,o+1)]),t=o+1;}return n}export{d as a,g as b,I as c};
|