@safe-stars/components
Version:
React component library for buying Telegram Stars in Telegram Mini Apps via Safe Stars.
24 lines (22 loc) • 1.48 kB
JavaScript
;const o=require("./index-CtZaCMo8.cjs"),r=require("./if-defined-MmHKu2JE.cjs");require("./index-BQl9E2h4.cjs");const c=o.i`
:host {
position: relative;
display: inline-block;
}
wui-text {
margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m);
}
`;var s=function(a,i,n,l){var u=arguments.length,e=u<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,n):l,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,i,n,l);else for(var d=a.length-1;d>=0;d--)(p=a[d])&&(e=(u<3?p(e):u>3?p(i,n,e):p(i,n))||e);return u>3&&e&&Object.defineProperty(i,n,e),e};let t=class extends o.i$1{constructor(){super(...arguments),this.disabled=!1}render(){return o.x`
<wui-input-text
type="email"
placeholder="Email"
icon="mail"
size="mdl"
.disabled=${this.disabled}
.value=${this.value}
data-testid="wui-email-input"
tabIdx=${r.o(this.tabIdx)}
></wui-input-text>
${this.templateError()}
`}templateError(){return this.errorMessage?o.x`<wui-text variant="tiny-500" color="error-100">${this.errorMessage}</wui-text>`:null}};t.styles=[o.resetStyles,c];s([r.n()],t.prototype,"errorMessage",void 0);s([r.n({type:Boolean})],t.prototype,"disabled",void 0);s([r.n()],t.prototype,"value",void 0);s([r.n()],t.prototype,"tabIdx",void 0);t=s([r.customElement("wui-email-input")],t);
//# sourceMappingURL=index-U45FbwY2.cjs.map