@safe-stars/components
Version:
React component library for buying Telegram Stars in Telegram Mini Apps via Safe Stars.
27 lines (24 loc) • 1.48 kB
JavaScript
;const n=require("./index-CtZaCMo8.cjs"),i=require("./if-defined-MmHKu2JE.cjs"),b=n.i`
button {
padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs);
border-radius: var(--wui-border-radius-3xs);
background-color: transparent;
color: var(--wui-color-accent-100);
}
button:disabled {
background-color: transparent;
color: var(--wui-color-gray-glass-015);
}
button:hover {
background-color: var(--wui-color-gray-glass-005);
}
`;var d=function(s,e,r,l){var a=arguments.length,t=a<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,r):l,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(s,e,r,l);else for(var u=s.length-1;u>=0;u--)(c=s[u])&&(t=(a<3?c(t):a>3?c(e,r,t):c(e,r))||t);return a>3&&t&&Object.defineProperty(e,r,t),t};let o=class extends n.i$1{constructor(){super(...arguments),this.tabIdx=void 0,this.disabled=!1,this.color="inherit"}render(){return n.x`
<button ?disabled=${this.disabled} tabindex=${i.o(this.tabIdx)}>
<slot name="iconLeft"></slot>
<wui-text variant="small-600" color=${this.color}>
<slot></slot>
</wui-text>
<slot name="iconRight"></slot>
</button>
`}};o.styles=[n.resetStyles,n.elementStyles,b];d([i.n()],o.prototype,"tabIdx",void 0);d([i.n({type:Boolean})],o.prototype,"disabled",void 0);d([i.n()],o.prototype,"color",void 0);o=d([i.customElement("wui-link")],o);
//# sourceMappingURL=index-tmdyqLVs.cjs.map