PageSourceSearch

https://appmaker.xyz/assets/button-C4r3oOYR.js

js appmaker.xyz collected 2026-09-24 17:42:53 UTC 2,243 bytes, 1 lines download raw bytes

1import{r as N,j as c}from"./chunk-PVWAREVJ-Bsq69dW_.js";import{a as j,c as p}from"./utils-D-KgF5mV.js";import{C as V}from"./chevron-right-Bb7DDQHv.js";const x=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,b=j,w=(a,n)=>e=>{var i;if((n==null?void 0:n.variants)==null)return b(a,e==null?void 0:e.class,e==null?void 0:e.className);const{variants:r,defaultVariants:s}=n,v=Object.keys(r).map(t=>{const o=e==null?void 0:e[t],d=s==null?void 0:s[t];if(o===null)return null;const l=x(o)||x(d);return r[t][l]}),u=e&&Object.entries(e).reduce((t,o)=>{let[d,l]=o;return l===void 0||(t[d]=l),t},{}),m=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((t,o)=>{let{class:d,className:l,...y}=o;return Object.entries(y).every(g=>{let[h,f]=g;return Array.isArray(f)?f.includes({...s,...u}[h]):{...s,...u}[h]===f})?[...t,d,l]:t},[]);return b(a,v,m,e==null?void 0:e.class,e==null?void 0:e.className)},C=w("group relative inline-flex items-center cursor-pointer justify-center whitespace-nowrap rounded font-regular transition-colors focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-black text-white hover:opacity-90",outline:"border border-input bg-transparent text-foreground hover:bg-black hover:text-white",ghost:"hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-10 py-2.5 text-base leading-none",sm:"h-8 rounded-md px-4 text-sm leading-none",lg:"h-12 rounded-md px-10 text-base leading-none",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),k=N.forwardRef(({className:a,variant:n="default",size:e,children:i,onClick:r,...s},v)=>{const u=n==="default"&&e!=="icon",m=C({variant:n,size:e}),t=o=>{typeof r=="function"&&(r.length===0?r():r(o))};return c.jsx("button",{className:p(m,a),ref:v,onClick:t,...s,children:u?c.jsxs("span",{className:"inline-flex items-center",children:[c.jsx("span",{className:"transition-transform duration-200 group-hover:-translate-x-1",children:i}),c.jsx(V,{className:"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 -translate-x-1 opacity-0 transition-all duration-200 group-hover:translate-x-0 group-hover:opacity-100","aria-hidden":"true"})]}):i})});k.displayName="Button";export{k as B,C as b};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.