tailwind-variants 0.1.8 → 0.1.10

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/config.d.ts CHANGED
@@ -14,7 +14,7 @@ export type TWMConfig = {
14
14
  * The config object for `tailwind-merge` library.
15
15
  * @see https://github.com/dcastil/tailwind-merge/blob/v1.8.1/docs/configuration.md
16
16
  */
17
- twMergeConfig?: TwMergeConfig;
17
+ twMergeConfig?: Partial<TwMergeConfig>;
18
18
  };
19
19
 
20
20
  export type TVConfig<
package/dist/index.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  var tailwindMerge = require('tailwind-merge');
4
4
 
5
- var S=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,m=e=>!e||typeof e!="object"||Object.keys(e).length===0,H=(...e)=>[...e].flat().filter(Boolean),E=(e,s)=>{let y={};for(let u in e)s!=null&&s.hasOwnProperty(u)?y[u]=typeof e[u]=="object"?E(e[u],s[u]):s[u]+" "+e[u]:y[u]=e[u];for(let u in s)y.hasOwnProperty(u)||(y[u]=s[u]);return y},B=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();var L={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Q=e=>e||void 0,j=(...e)=>Q(e.flat(1/0).filter(Boolean).join(" ")),C=(...e)=>(s=L)=>{if(!s.twMerge)return j(e);let y=m(s.twMergeConfig)?tailwindMerge.twMerge:tailwindMerge.extendTailwindMerge(s.twMergeConfig);return Q(y(j(e)))},J=(e,s)=>{let y={...e};for(let u in s)y.hasOwnProperty(u)?y[u]=j(y[u],s[u]):y[u]=s[u];return y},ce=(e,s=L)=>{var k,N,T,P,F;let{slots:y={},variants:u={},compoundVariants:x=[],compoundSlots:O=[],defaultVariants:X={}}=e,M=j((k=e==null?void 0:e.extend)==null?void 0:k.base,e==null?void 0:e.base),d=E(u,(N=e==null?void 0:e.extend)==null?void 0:N.variants),h=Object.assign({},(T=e==null?void 0:e.extend)==null?void 0:T.defaultVariants,X),$=m(y)?{}:{base:e==null?void 0:e.base,...y},Y=Array.isArray(s.responsiveVariants)&&s.responsiveVariants.length>0||s.responsiveVariants===!0,A=m((P=e==null?void 0:e.extend)==null?void 0:P.slots)?$:J((F=e==null?void 0:e.extend)==null?void 0:F.slots,m($)?{base:e==null?void 0:e.base}:$),b=c=>{var o,q,z,D;if(m(d)&&m(y)&&m((o=e==null?void 0:e.extend)==null?void 0:o.slots))return C(M,c==null?void 0:c.class,c==null?void 0:c.className)(s);if(x&&!Array.isArray(x))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof x}`);if(O&&!Array.isArray(O))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof O}`);let _=(t,r,n=[],l)=>{let f=n;if(typeof r=="string")f.push(B(r).split(" ").map(a=>`${t}:${a}`));else if(Array.isArray(r))f.push(r.flatMap(a=>`${t}:${a}`));else if(typeof r=="object"&&typeof l=="string"){let a=r==null?void 0:r[l];if(a&&typeof a=="string"){let i=B(a);f[l]=f[l]?[...f[l],...i.split(" ").map(g=>`${t}:${g}`)]:i.split(" ").map(g=>`${t}:${g}`);}else Array.isArray(a)&&a.length>0&&(f[l]=a.flatMap(i=>`${t}:${i}`));}return f},R=(t,r=d,n=null)=>{let l=r==null?void 0:r[t];if(typeof l!="object"||m(l))return null;let f=c==null?void 0:c[t],a=h==null?void 0:h[t],i=[];if(f===null)return null;let g=S(f);typeof g=="object"&&Y&&(i=Object.keys(g).reduce((v,w)=>{let G=g[w],ae=l==null?void 0:l[G];return w==="initial"?(a=G,v):Array.isArray(s.responsiveVariants)&&!s.responsiveVariants.includes(w)?v:_(w,ae,v,n)},[]));let V=l[g]||l[S(a)];return typeof i=="object"&&typeof n=="string"&&i[n]?J(i,V):i.length>0?[V,...i]:V},K=()=>d?Object.keys(d).map(t=>R(t,d)):null,p=t=>!d||typeof d!="object"?null:Object.keys(d).map(r=>{let n=R(r,d,t);return t==="base"&&typeof n=="string"?n:n&&n[t]}).filter(Boolean),ee=c&&Object.fromEntries(Object.entries(c).filter(([,t])=>t!==void 0)),I=t=>{var n;let r=typeof(c==null?void 0:c[t])=="object"?{[t]:(n=c[t])==null?void 0:n.initial}:{};return {...h,...ee,...r}},U=(t=[])=>t==null?void 0:t.filter(({class:r,className:n,...l})=>Object.entries(l).every(([f,a])=>{let i=I(f);return Array.isArray(a)?a.includes(i[f]):i[f]===a})).flatMap(({class:r,className:n})=>[r,n]),W=()=>{var n;let t=U(x),r=U((n=e==null?void 0:e.extend)==null?void 0:n.compoundVariants);return H(r,t)},te=()=>{let t=W();return Array.isArray(t)?t.reduce((r,n)=>(typeof n=="string"&&(r.base=C(r.base,n)(s)),typeof n=="object"&&Object.entries(n).forEach(([l,f])=>{r[l]=C(r[l],f)(s);}),r),{}):t},re=()=>O.length<1?null:O.reduce((t,r)=>{let{slots:n=[],class:l,className:f,...a}=r;if(!m(a)){let i=Object.keys(a);for(let g of i){let V=I(g)[g];if(!V||V!==a[g])return t}}return n.forEach(i=>{t[i]||(t[i]=[]),t[i].push([l,f]);}),t},{});if(!m(y)||!m((q=e==null?void 0:e.extend)==null?void 0:q.slots)){let t=(z=te())!=null?z:[],r=(D=re())!=null?D:[];return {...typeof A=="object"&&!m(A)?Object.keys(A).reduce((l,f)=>(l[f]=a=>C(A[f],p(f),t==null?void 0:t[f],r==null?void 0:r[f],a==null?void 0:a.class,a==null?void 0:a.className)(s),l),{}):{}}}return C(M,K(),W(),c==null?void 0:c.class,c==null?void 0:c.className)(s)},Z=()=>{if(!(!d||typeof d!="object"))return Object.keys(d)};return b.variantKeys=Z(),b.base=M,b.slots=A,b.variants=d,b.defaultVariants=h,b.compoundSlots=O,b.compoundVariants=x,b};
5
+ var o=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,d=e=>!e||typeof e!="object"||Object.keys(e).length===0,J=(...e)=>[...e].flat().filter(Boolean),E=(e,y)=>{let u={};for(let c in e)y!=null&&y.hasOwnProperty(c)?u[c]=typeof e[c]=="object"?E(e[c],y[c]):y[c]+" "+e[c]:u[c]=e[c];for(let c in y)u.hasOwnProperty(c)||(u[c]=y[c]);return u},B=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();var fe={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Q=e=>e||void 0,M=(...e)=>Q(e.flat(1/0).filter(Boolean).join(" ")),w=(...e)=>y=>{if(!y.twMerge)return M(e);let u=d(y.twMergeConfig)?tailwindMerge.twMerge:tailwindMerge.extendTailwindMerge(y.twMergeConfig);return Q(u(M(e)))},L=(e,y)=>{let u={...e};for(let c in y)u.hasOwnProperty(c)?u[c]=M(u[c],y[c]):u[c]=y[c];return u},ue=(e,y)=>{var k,N,T,P,F;let{slots:u={},variants:c={},compoundVariants:O=[],compoundSlots:V=[],defaultVariants:X={}}=e,b=Object.assign({},fe,y),$=M((k=e==null?void 0:e.extend)==null?void 0:k.base,e==null?void 0:e.base),g=E(c,(N=e==null?void 0:e.extend)==null?void 0:N.variants),A=Object.assign({},(T=e==null?void 0:e.extend)==null?void 0:T.defaultVariants,X),v=d(u)?{}:{base:e==null?void 0:e.base,...u},Y=Array.isArray(b.responsiveVariants)&&b.responsiveVariants.length>0||b.responsiveVariants===!0,C=d((P=e==null?void 0:e.extend)==null?void 0:P.slots)?v:L((F=e==null?void 0:e.extend)==null?void 0:F.slots,d(v)?{base:e==null?void 0:e.base}:v),x=l=>{var q,z,D,G;if(d(g)&&d(u)&&d((q=e==null?void 0:e.extend)==null?void 0:q.slots))return w($,l==null?void 0:l.class,l==null?void 0:l.className)(b);if(O&&!Array.isArray(O))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof O}`);if(V&&!Array.isArray(V))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof V}`);let _=(t,r,a=[],s)=>{let f=a;if(typeof r=="string")f.push(B(r).split(" ").map(n=>`${t}:${n}`));else if(Array.isArray(r))f.push(r.flatMap(n=>`${t}:${n}`));else if(typeof r=="object"&&typeof s=="string"){let n=r==null?void 0:r[s];if(n&&typeof n=="string"){let i=B(n);f[s]=f[s]?[...f[s],...i.split(" ").map(m=>`${t}:${m}`)]:i.split(" ").map(m=>`${t}:${m}`);}else Array.isArray(n)&&n.length>0&&(f[s]=n.flatMap(i=>`${t}:${i}`));}return f},R=(t,r=g,a=null)=>{let s=r==null?void 0:r[t];if(typeof s!="object"||d(s))return null;let f=l==null?void 0:l[t],n=A==null?void 0:A[t],i=[];if(f===null)return null;let m=o(f);typeof m=="object"&&Y&&(i=Object.keys(m).reduce((S,j)=>{let H=m[j],ne=s==null?void 0:s[H];return j==="initial"?(n=H,S):Array.isArray(b.responsiveVariants)&&!b.responsiveVariants.includes(j)?S:_(j,ne,S,a)},[]));let h=s[m]||s[o(n)];return typeof i=="object"&&typeof a=="string"&&i[a]?L(i,h):i.length>0?[h,...i]:h},K=()=>g?Object.keys(g).map(t=>R(t,g)):null,p=t=>!g||typeof g!="object"?null:Object.keys(g).map(r=>{let a=R(r,g,t);return t==="base"&&typeof a=="string"?a:a&&a[t]}).filter(Boolean),ee=l&&Object.fromEntries(Object.entries(l).filter(([,t])=>t!==void 0)),I=t=>{var a;let r=typeof(l==null?void 0:l[t])=="object"?{[t]:(a=l[t])==null?void 0:a.initial}:{};return {...A,...ee,...r}},U=(t=[])=>t==null?void 0:t.filter(({class:r,className:a,...s})=>Object.entries(s).every(([f,n])=>{let i=I(f);return Array.isArray(n)?n.includes(i[f]):i[f]===n})).flatMap(({class:r,className:a})=>[r,a]),W=()=>{var a;let t=U(O),r=U((a=e==null?void 0:e.extend)==null?void 0:a.compoundVariants);return J(r,t)},te=()=>{let t=W();return Array.isArray(t)?t.reduce((r,a)=>(typeof a=="string"&&(r.base=w(r.base,a)(b)),typeof a=="object"&&Object.entries(a).forEach(([s,f])=>{r[s]=w(r[s],f)(b);}),r),{}):t},re=()=>V.length<1?null:V.reduce((t,r)=>{let{slots:a=[],class:s,className:f,...n}=r;if(!d(n)){let i=Object.keys(n);for(let m of i){let h=I(m)[m];if(!h||h!==n[m])return t}}return a.forEach(i=>{t[i]||(t[i]=[]),t[i].push([s,f]);}),t},{});if(!d(u)||!d((z=e==null?void 0:e.extend)==null?void 0:z.slots)){let t=(D=te())!=null?D:[],r=(G=re())!=null?G:[];return {...typeof C=="object"&&!d(C)?Object.keys(C).reduce((s,f)=>(s[f]=n=>w(C[f],p(f),t==null?void 0:t[f],r==null?void 0:r[f],n==null?void 0:n.class,n==null?void 0:n.className)(b),s),{}):{}}}return w($,K(),W(),l==null?void 0:l.class,l==null?void 0:l.className)(b)},Z=()=>{if(!(!g||typeof g!="object"))return Object.keys(g)};return x.variantKeys=Z(),x.base=$,x.slots=C,x.variants=g,x.defaultVariants=A,x.compoundSlots=V,x.compoundVariants=O,x};
6
6
 
7
- exports.cn = C;
8
- exports.cnBase = j;
9
- exports.defaultConfig = L;
10
- exports.tv = ce;
7
+ exports.cn = w;
8
+ exports.cnBase = M;
9
+ exports.defaultConfig = fe;
10
+ exports.tv = ue;
11
11
  exports.voidEmpty = Q;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { b, d, c, a, e } from './chunk-X3I5ASPE.js';
2
2
  import { twMerge, extendTailwindMerge } from 'tailwind-merge';
3
3
 
4
- var Q={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},X=e=>e||void 0,v=(...e)=>X(e.flat(1/0).filter(Boolean).join(" ")),h=(...e)=>(c=Q)=>{if(!c.twMerge)return v(e);let d=b(c.twMergeConfig)?twMerge:extendTailwindMerge(c.twMergeConfig);return X(d(v(e)))},L=(e,c)=>{let d={...e};for(let b in c)d.hasOwnProperty(b)?d[b]=v(d[b],c[b]):d[b]=c[b];return d},fe=(e$1,c$1=Q)=>{var B,N,T,k,F;let{slots:d$1={},variants:b$1={},compoundVariants:j=[],compoundSlots:V=[],defaultVariants:Y={}}=e$1,w=v((B=e$1==null?void 0:e$1.extend)==null?void 0:B.base,e$1==null?void 0:e$1.base),i=d(b$1,(N=e$1==null?void 0:e$1.extend)==null?void 0:N.variants),C=Object.assign({},(T=e$1==null?void 0:e$1.extend)==null?void 0:T.defaultVariants,Y),M=b(d$1)?{}:{base:e$1==null?void 0:e$1.base,...d$1},Z=Array.isArray(c$1.responsiveVariants)&&c$1.responsiveVariants.length>0||c$1.responsiveVariants===!0,x=b((k=e$1==null?void 0:e$1.extend)==null?void 0:k.slots)?M:L((F=e$1==null?void 0:e$1.extend)==null?void 0:F.slots,b(M)?{base:e$1==null?void 0:e$1.base}:M),g=u=>{var W,q,z,D;if(b(i)&&b(d$1)&&b((W=e$1==null?void 0:e$1.extend)==null?void 0:W.slots))return h(w,u==null?void 0:u.class,u==null?void 0:u.className)(c$1);if(j&&!Array.isArray(j))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof j}`);if(V&&!Array.isArray(V))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof V}`);let K=(t,r,n=[],s)=>{let l=n;if(typeof r=="string")l.push(e(r).split(" ").map(a=>`${t}:${a}`));else if(Array.isArray(r))l.push(r.flatMap(a=>`${t}:${a}`));else if(typeof r=="object"&&typeof s=="string"){let a=r==null?void 0:r[s];if(a&&typeof a=="string"){let f=e(a);l[s]=l[s]?[...l[s],...f.split(" ").map(m=>`${t}:${m}`)]:f.split(" ").map(m=>`${t}:${m}`);}else Array.isArray(a)&&a.length>0&&(l[s]=a.flatMap(f=>`${t}:${f}`));}return l},R=(t,r=i,n=null)=>{let s=r==null?void 0:r[t];if(typeof s!="object"||b(s))return null;let l=u==null?void 0:u[t],a$1=C==null?void 0:C[t],f=[];if(l===null)return null;let m=a(l);typeof m=="object"&&Z&&(f=Object.keys(m).reduce(($,O)=>{let G=m[O],ae=s==null?void 0:s[G];return O==="initial"?(a$1=G,$):Array.isArray(c$1.responsiveVariants)&&!c$1.responsiveVariants.includes(O)?$:K(O,ae,$,n)},[]));let A=s[m]||s[a(a$1)];return typeof f=="object"&&typeof n=="string"&&f[n]?L(f,A):f.length>0?[A,...f]:A},o=()=>i?Object.keys(i).map(t=>R(t,i)):null,p=t=>!i||typeof i!="object"?null:Object.keys(i).map(r=>{let n=R(r,i,t);return t==="base"&&typeof n=="string"?n:n&&n[t]}).filter(Boolean),ee=u&&Object.fromEntries(Object.entries(u).filter(([,t])=>t!==void 0)),I=t=>{var n;let r=typeof(u==null?void 0:u[t])=="object"?{[t]:(n=u[t])==null?void 0:n.initial}:{};return {...C,...ee,...r}},P=(t=[])=>t==null?void 0:t.filter(({class:r,className:n,...s})=>Object.entries(s).every(([l,a])=>{let f=I(l);return Array.isArray(a)?a.includes(f[l]):f[l]===a})).flatMap(({class:r,className:n})=>[r,n]),U=()=>{var n;let t=P(j),r=P((n=e$1==null?void 0:e$1.extend)==null?void 0:n.compoundVariants);return c(r,t)},te=()=>{let t=U();return Array.isArray(t)?t.reduce((r,n)=>(typeof n=="string"&&(r.base=h(r.base,n)(c$1)),typeof n=="object"&&Object.entries(n).forEach(([s,l])=>{r[s]=h(r[s],l)(c$1);}),r),{}):t},re=()=>V.length<1?null:V.reduce((t,r)=>{let{slots:n=[],class:s,className:l,...a}=r;if(!b(a)){let f=Object.keys(a);for(let m of f){let A=I(m)[m];if(!A||A!==a[m])return t}}return n.forEach(f=>{t[f]||(t[f]=[]),t[f].push([s,l]);}),t},{});if(!b(d$1)||!b((q=e$1==null?void 0:e$1.extend)==null?void 0:q.slots)){let t=(z=te())!=null?z:[],r=(D=re())!=null?D:[];return {...typeof x=="object"&&!b(x)?Object.keys(x).reduce((s,l)=>(s[l]=a=>h(x[l],p(l),t==null?void 0:t[l],r==null?void 0:r[l],a==null?void 0:a.class,a==null?void 0:a.className)(c$1),s),{}):{}}}return h(w,o(),U(),u==null?void 0:u.class,u==null?void 0:u.className)(c$1)},_=()=>{if(!(!i||typeof i!="object"))return Object.keys(i)};return g.variantKeys=_(),g.base=w,g.slots=x,g.variants=i,g.defaultVariants=C,g.compoundSlots=V,g.compoundVariants=j,g};
4
+ var fe={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},X=e=>e||void 0,w=(...e)=>X(e.flat(1/0).filter(Boolean).join(" ")),h=(...e)=>g=>{if(!g.twMerge)return w(e);let y=b(g.twMergeConfig)?twMerge:extendTailwindMerge(g.twMergeConfig);return X(y(w(e)))},Q=(e,g)=>{let y={...e};for(let b in g)y.hasOwnProperty(b)?y[b]=w(y[b],g[b]):y[b]=g[b];return y},ce=(e$1,g)=>{var N,T,k,F,R;let{slots:y={},variants:b$1={},compoundVariants:V=[],compoundSlots:A=[],defaultVariants:Y={}}=e$1,m=Object.assign({},fe,g),M=w((N=e$1==null?void 0:e$1.extend)==null?void 0:N.base,e$1==null?void 0:e$1.base),c$1=d(b$1,(T=e$1==null?void 0:e$1.extend)==null?void 0:T.variants),x=Object.assign({},(k=e$1==null?void 0:e$1.extend)==null?void 0:k.defaultVariants,Y),$=b(y)?{}:{base:e$1==null?void 0:e$1.base,...y},Z=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,O=b((F=e$1==null?void 0:e$1.extend)==null?void 0:F.slots)?$:Q((R=e$1==null?void 0:e$1.extend)==null?void 0:R.slots,b($)?{base:e$1==null?void 0:e$1.base}:$),j=l=>{var q,z,D,G;if(b(c$1)&&b(y)&&b((q=e$1==null?void 0:e$1.extend)==null?void 0:q.slots))return h(M,l==null?void 0:l.class,l==null?void 0:l.className)(m);if(V&&!Array.isArray(V))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof V}`);if(A&&!Array.isArray(A))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof A}`);let o=(t,r,n=[],s)=>{let f=n;if(typeof r=="string")f.push(e(r).split(" ").map(a=>`${t}:${a}`));else if(Array.isArray(r))f.push(r.flatMap(a=>`${t}:${a}`));else if(typeof r=="object"&&typeof s=="string"){let a=r==null?void 0:r[s];if(a&&typeof a=="string"){let u=e(a);f[s]=f[s]?[...f[s],...u.split(" ").map(d=>`${t}:${d}`)]:u.split(" ").map(d=>`${t}:${d}`);}else Array.isArray(a)&&a.length>0&&(f[s]=a.flatMap(u=>`${t}:${u}`));}return f},I=(t,r=c$1,n=null)=>{let s=r==null?void 0:r[t];if(typeof s!="object"||b(s))return null;let f=l==null?void 0:l[t],a$1=x==null?void 0:x[t],u=[];if(f===null)return null;let d=a(f);typeof d=="object"&&Z&&(u=Object.keys(d).reduce((S,v)=>{let H=d[v],ae=s==null?void 0:s[H];return v==="initial"?(a$1=H,S):Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(v)?S:o(v,ae,S,n)},[]));let C=s[d]||s[a(a$1)];return typeof u=="object"&&typeof n=="string"&&u[n]?Q(u,C):u.length>0?[C,...u]:C},K=()=>c$1?Object.keys(c$1).map(t=>I(t,c$1)):null,p=t=>!c$1||typeof c$1!="object"?null:Object.keys(c$1).map(r=>{let n=I(r,c$1,t);return t==="base"&&typeof n=="string"?n:n&&n[t]}).filter(Boolean),ee=l&&Object.fromEntries(Object.entries(l).filter(([,t])=>t!==void 0)),P=t=>{var n;let r=typeof(l==null?void 0:l[t])=="object"?{[t]:(n=l[t])==null?void 0:n.initial}:{};return {...x,...ee,...r}},U=(t=[])=>t==null?void 0:t.filter(({class:r,className:n,...s})=>Object.entries(s).every(([f,a])=>{let u=P(f);return Array.isArray(a)?a.includes(u[f]):u[f]===a})).flatMap(({class:r,className:n})=>[r,n]),W=()=>{var n;let t=U(V),r=U((n=e$1==null?void 0:e$1.extend)==null?void 0:n.compoundVariants);return c(r,t)},te=()=>{let t=W();return Array.isArray(t)?t.reduce((r,n)=>(typeof n=="string"&&(r.base=h(r.base,n)(m)),typeof n=="object"&&Object.entries(n).forEach(([s,f])=>{r[s]=h(r[s],f)(m);}),r),{}):t},re=()=>A.length<1?null:A.reduce((t,r)=>{let{slots:n=[],class:s,className:f,...a}=r;if(!b(a)){let u=Object.keys(a);for(let d of u){let C=P(d)[d];if(!C||C!==a[d])return t}}return n.forEach(u=>{t[u]||(t[u]=[]),t[u].push([s,f]);}),t},{});if(!b(y)||!b((z=e$1==null?void 0:e$1.extend)==null?void 0:z.slots)){let t=(D=te())!=null?D:[],r=(G=re())!=null?G:[];return {...typeof O=="object"&&!b(O)?Object.keys(O).reduce((s,f)=>(s[f]=a=>h(O[f],p(f),t==null?void 0:t[f],r==null?void 0:r[f],a==null?void 0:a.class,a==null?void 0:a.className)(m),s),{}):{}}}return h(M,K(),W(),l==null?void 0:l.class,l==null?void 0:l.className)(m)},_=()=>{if(!(!c$1||typeof c$1!="object"))return Object.keys(c$1)};return j.variantKeys=_(),j.base=M,j.slots=O,j.variants=c$1,j.defaultVariants=x,j.compoundSlots=A,j.compoundVariants=V,j};
5
5
 
6
- export { h as cn, v as cnBase, Q as defaultConfig, fe as tv, X as voidEmpty };
6
+ export { h as cn, w as cnBase, fe as defaultConfig, ce as tv, X as voidEmpty };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwind-variants",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "🦄 Tailwindcss first-class variant API",
5
5
  "author": "Junior Garcia <jrgarciadev@gmail.com>",
6
6
  "license": "MIT",