PageSourceSearch

https://iconited.com/assets/button-Bdxvk8Nf.js

js iconited.com collected 2026-10-10 02:34:10 UTC 5,800 bytes, 2 lines download raw bytes

1import{j as r,r as h}from"./chunk-OIYGIGL5-gwPc8tBz.js";import{$ as _,c as b,s as j}from"./cx-JWMrrZN5.js";import{$ as w,i as f}from"./is-react-component-CT1NlcGF.js";const e=j({common:{root:["group relative inline-flex h-max cursor-pointer items-center justify-center whitespace-nowrap outline-brand transition duration-100 ease-linear before:absolute focus-visible:outline-2 focus-visible:outline-offset-2","disabled:cursor-not-allowed disabled:text-fg-disabled","disabled:*:data-icon:text-fg-disabled_subtle","*:data-icon:pointer-events-none *:data-icon:size-5 *:data-icon:shrink-0 *:data-icon:transition-inherit-all"].join(" "),icon:"pointer-events-none size-5 shrink-0 transition-inherit-all"},sizes:{sm:{root:"gap-1 rounded-lg px-3 py-2 text-sm font-semibold before:rounded-[7px] data-icon-only:p-2",linkRoot:"gap-1"},md:{root:"gap-1 rounded-lg px-3.5 py-2.5 text-sm font-semibold before:rounded-[7px] data-icon-only:p-2.5",linkRoot:"gap-1"},lg:{root:"gap-1.5 rounded-lg px-4 py-2.5 text-md font-semibold before:rounded-[7px] data-icon-only:p-3",linkRoot:"gap-1.5"},xl:{root:"gap-1.5 rounded-lg px-4.5 py-3 text-md font-semibold before:rounded-[7px] data-icon-only:p-3.5",linkRoot:"gap-1.5"}},colors:{primary:{root:["bg-brand-solid text-white shadow-xs-skeumorphic ring-1 ring-transparent ring-inset hover:bg-brand-solid_hover data-loading:bg-brand-solid_hover","before:absolute before:inset-px before:border before:border-white/12 before:mask-b-from-0%","disabled:bg-disabled disabled:shadow-xs disabled:ring-border-disabled_subtle","*:data-icon:text-button-primary-icon hover:*:data-icon:text-button-primary-icon_hover"].join(" ")},secondary:{root:["bg-primary text-secondary shadow-xs-skeumorphic ring-1 ring-border-primary ring-inset hover:bg-primary_hover hover:text-secondary_hover data-loading:bg-primary_hover","disabled:shadow-xs disabled:ring-border-disabled_subtle","*:data-icon:text-fg-quaternary hover:*:data-icon:text-fg-quaternary_hover"].join(" ")},tertiary:{root:["text-tertiary hover:bg-primary_hover hover:text-tertiary_hover data-loading:bg-primary_hover","*:data-icon:text-fg-quaternary hover:*:data-icon:text-fg-quaternary_hover"].join(" ")},"link-gray":{root:["justify-normal rounded-xs p-0! text-tertiary hover:text-tertiary_hover","*:data-text:underline *:data-text:decoration-transparent *:data-text:underline-offset-2 hover:*:data-text:decoration-current","*:data-icon:text-fg-quaternary hover:*:data-icon:text-fg-quaternary_hover"].join(" ")},"link-color":{root:["justify-normal rounded-xs p-0! text-brand-secondary hover:text-brand-secondary_hover","*:data-text:underline *:data-text:decoration-transparent *:data-text:underline-offset-2 hover:*:data-text:decoration-current","*:data-icon:text-fg-brand-secondary_alt hover:*:data-icon:text-fg-brand-secondary_hover"].join(" ")},"primary-destructive":{root:["bg-error-solid text-white shadow-xs-skeumorphic ring-1 ring-transparent outline-error ring-inset","before:absolute before:inset-px before:border before:border-white/12 before:mask-b-from-0%","disabled:bg-disabled disabled:shadow-xs disabled:ring-border-disabled_subtle","*:data-icon:text-button-destructive-primary-icon hover:*:data-icon:text-button-destructive-primary-icon_hover"].join(" ")},"secondary-destructive":{root:["bg-primary text-error-primary shadow-xs-skeumorphic ring-1 ring-border-error_subtle outline-error ring-inset hover:bg-error-primary hover:text-error-primary_hover data-loading:bg-error-primary","disabled:bg-primary disabled:shadow-xs disabled:ring-border-disabled_subtle","*:data-icon:text-fg-error-secondary hover:*:data-icon:text-fg-error-primary"].join(" ")},"tertiary-destructive":{root:["text-error-primary outline-error hover:bg-error-primary hover:text-error-primary_hover data-loading:bg-error-primary","*:data-icon:text-fg-error-secondary hover:*:data-icon:text-fg-error-primary"].join(" ")},"link-destructive":{root:["justify-normal rounded-xs p-0! text-error-primary outline-error hover:text-error-primary_hover","*:data-text:underline *:data-text:decoration-transparent *:data-text:underline-offset-2 hover:*:data-text:decoration-current","*:data-icon:text-fg-error-secondary hover:*:data-icon:text-fg-error-primary"].join(" ")}}}),q=({size:p="sm",color:x="primary",children:s,className:g,noTextPadding:l,iconLeading:o,iconTrailing:a,isDisabled:i,isExternal:m,isLoading:t,showTextWhileLoading:u,...n})=>{const d="href"in n?n.href:void 0,v=d?w:_,k=(o||a)&&!s,y=["link-gray","link-color","link-destructive"].includes(x);l=y||l;
1let c={};return d?c={href:i?void 0:d,target:m?"_blank":void 0,rel:m?"noopener noreferrer":void 0,...i?{"data-rac":!0,"data-disabled":!0}:{}}:c={type:n.type||"button",isPending:t,isDisabled:i},r.jsxs(v,{"data-loading":t?!0:void 0,"data-icon-only":k?!0:void 0,...n,...c,className:b(e.common.root,e.sizes[p].root,e.colors[x].root,y&&e.sizes[p].linkRoot,(t||d&&(i||t))&&"pointer-events-none",t&&(u?"[&>*:not([data-icon=loading]):not([data-text])]:hidden":"[&>*:not([data-icon=loading])]:invisible"),g),children:[h.isValidElement(o)&&o,f(o)&&r.jsx(o,{"data-icon":"leading",className:e.common.icon}),t&&r.jsxs("svg",{fill:"none","data-icon":"loading",viewBox:"0 0 20 20",className:b(e.common.icon,!u&&"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"),children:[r.jsx("circle",{className:"stroke-current opacity-30",cx:"10",cy:"10",r:"8",fill:"none",strokeWidth:"2"}),r.jsx("circle",{className:"origin-center animate-spin stroke-current",cx:"10",cy:"10",r:"8",fill:"none",strokeWidth:"2",strokeDasharray:"12.5 50",strokeLinecap:"round"})]}),s&&r.jsx("span",{"data-text":!0,className:b("transition-inherit-all",!l&&"px-0.5"),children:s}),h.isValidElement(a)&&a,f(a)&&r.jsx(a,{"data-icon":"trailing",className:e.common.icon})]})};export{q as B};
2//# sourceMappingURL=button-Bdxvk8Nf.js.map

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.