PageSourceSearch

https://host.com.ni/assets/Buttons-BhY2pt4Q.js

js host.com.ni collected 2026-10-03 00:37:21 UTC 2,871 bytes, 1 lines download raw bytes

1import{D as e,S as t,x as n}from"./reactQuery-Bwgpc3BK.js";import{t as r}from"./Link-CDuwxLvU.js";import{c as i,t as a}from"./useRenderElement-YvmFQZQL.js";import{t as o}from"./classNames-BpxDin4P.js";var s=e(t(),1).forwardRef(function(e,t){let{render:n,className:r,disabled:o=!1,focusableWhenDisabled:s=!1,nativeButton:c=!0,style:l,...u}=e,{getButtonProps:d,buttonRef:f}=i({disabled:o,focusableWhenDisabled:s,native:c});return a(`button`,e,{state:{disabled:o},ref:[t,f],props:[u,d]})}),c=n(),l={xl:`p-3.5 text-xl`,lg:`p-3 text-lg`,base:`p-2.5 text-base`,sm:`p-3 text-sm`,xs:`p-2 text-xs`,default:`p-2`},u=`disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer`,d={light:`btn-light bg-white border-b-3 border border-slate-200 text-slate-600 shadow-sm hover:bg-slate-50 hover:border-slate-300 ${u}`,lightNoBorder:`btn-lightNoBorder border-b-3 border-b border-slate-300 bg-slate-200 text-slate-900 hover:bg-slate-300 ${u}`,neutral:`btn-neutral border-b-3 border-b border-slate-600 bg-slate-500 text-white shadow-sm hover:bg-slate-600 hover:border-slate-900 focus-visible:outline-blue-600 ${u}`,dark:`btn-dark border-b-3 border-b border-slate-700 bg-slate-600 text-white shadow-sm hover:bg-slate-500 focus-visible:outline-blue-600 ${u}`,primary:`btn-primary border-b-3 border-b border-cyan-700 bg-cyan-500 text-white shadow-sm hover:bg-cyan-400 focus-visible:outline-cyan-600 ${u}`,secondary:`btn-secondary border-b-3 border-b border-emerald-600 bg-emerald-500 text-white hover:bg-emerald-400 active:active:border-b active:border-emerald-700 active:bg-emerald-500 focus-visible:outline-blue-600 ${u}`,terciary:`btn-terciary border-b-3 border-b border-sky-800 bg-sky-700 text-white shadow-sm hover:bg-sky-600 focus-visible:outline-sky-600 ${u}`,danger:`btn-danger border-b-3 border-b border-rose-700 bg-rose-500 text-white shadow-sm hover:bg-rose-400 focus-visible:outline-blue-600 ${u}`},f=e=>{let{iconPosition:t,icon:n,label:r,children:i}=e,a=r??i;return(0,c.jsxs)(c.Fragment,{children:[n&&(!t||t===`left`)&&n,a&&(0,c.jsx)(`span`,{className:n?``:`w-full text-center`,children:a}),t===`right`&&n]})},p=e=>{let{icon:t,iconPosition:n,label:i,onClick:a,children:u,className:d,size:p,href:m,disabled:h,type:g}=e,_=(0,c.jsx)(f,{iconPosition:n,icon:t,label:i,children:u}),v=o(`inline-flex items-center justify-center gap-2 rounded-md text-center transition-all duration-150`,l[p||`default`],d);return m?(0,c.jsx)(r,{href:m,className:v,children:_}):(0,c.jsx)(s,{type:g||`button`,onClick:a,disabled:h,className:`${h?`cursor-not-allowed`:``} ${v}`,children:_})},m=e=>t=>(0,c.jsx)(p,{...t,className:o(d[e],`focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2`,t.className)}),h=m(`light`),g=m(`lightNoBorder`),_=m(`neutral`),v=m(`primary`),y=m(`terciary`),b=m(`secondary`),x=m(`danger`);export{v as a,s as c,_ as i,h as n,b as o,g as r,y as s,x as t};

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.