import{hh as l,hi as h,hj as p,hk as b,hl as y}from"./BC4hLSsA.js";import{n as r,c as f}from"./3Z1LeTmD.js";const v=l` :host { position: relative; } button { display: flex; justify-content: center; align-items: center; background-color: transparent; padding: ${({spacing:t})=>t[1]}; } /* -- Colors --------------------------------------------------- */ button[data-type='accent'] wui-icon { color: ${({tokens:t})=>t.core.iconAccentPrimary}; } button[data-type='neutral'][data-variant='primary'] wui-icon { color: ${({tokens:t})=>t.theme.iconInverse}; } button[data-type='neutral'][data-variant='secondary'] wui-icon { color: ${({tokens:t})=>t.theme.iconDefault}; } button[data-type='success'] wui-icon { color: ${({tokens:t})=>t.core.iconSuccess}; } button[data-type='error'] wui-icon { color: ${({tokens:t})=>t.core.iconError}; } /* -- Sizes --------------------------------------------------- */ button[data-size='xs'] { width: 16px; height: 16px; border-radius: ${({borderRadius:t})=>t[1]}; } button[data-size='sm'] { width: 20px; height: 20px; border-radius: ${({borderRadius:t})=>t[1]}; } button[data-size='md'] { width: 24px; height: 24px; border-radius: ${({borderRadius:t})=>t[2]}; } button[data-size='lg'] { width: 28px; height: 28px; border-radius: ${({borderRadius:t})=>t[2]}; } button[data-size='xs'] wui-icon { width: 8px; height: 8px; } button[data-size='sm'] wui-icon { width: 12px; height: 12px; } button[data-size='md'] wui-icon { width: 16px; height: 16px; } button[data-size='lg'] wui-icon { width: 20px; height: 20px; } /* -- Hover --------------------------------------------------- */ @media (hover: hover) { button[data-type='accent']:hover:enabled { background-color: ${({tokens:t})=>t.core.foregroundAccent010}; } button[data-variant='primary'][data-type='neutral']:hover:enabled { background-color: ${({tokens:t})=>t.theme.foregroundSecondary}; } button[data-variant='secondary'][data-type='neutral']:hover:enabled { background-color: ${({tokens:t})=>t.theme.foregroundSecondary}; } button[data-type='success']:hover:enabled { background-color: ${({tokens:t})=>t.core.backgroundSuccess}; } button[data-type='error']:hover:enabled { background-color: ${({tokens:t})=>t.core.backgroundError}; } } /* -- Focus --------------------------------------------------- */ button:focus-visible { box-shadow: 0 0 0 4px ${({tokens:t})=>t.core.foregroundAccent020}; } /* -- Properties --------------------------------------------------- */ button[data-full-width='true'] { width: 100%; } :host([fullWidth]) { width: 100%; } button[disabled] { opacity: 0.5; cursor: not-allowed; } `;var i=function(t,a,n,d){var c=arguments.length,o=c<3?a:d===null?d=Object.getOwnPropertyDescriptor(a,n):d,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,a,n,d);else for(var s=t.length-1;s>=0;s--)(u=t[s])&&(o=(c<3?u(o):c>3?u(a,n,o):u(a,n))||o);return c>3&&o&&Object.defineProperty(a,n,o),o};let e=class extends b{constructor(){super(...arguments),this.icon="card",this.variant="primary",this.type="accent",this.size="md",this.fullWidth=!1,this.disabled=!1}render(){return y``}};e.styles=[h,p,v];i([r()],e.prototype,"icon",void 0);i([r()],e.prototype,"variant",void 0);i([r()],e.prototype,"type",void 0);i([r()],e.prototype,"size",void 0);i([r({type:Boolean})],e.prototype,"fullWidth",void 0);i([r({type:Boolean})],e.prototype,"disabled",void 0);e=i([f("wui-icon-button")],e);