UNPKG

@sandlada/mdc

Version:

@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.

8 lines 1.24 kB
import{customElement as e}from"../../node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as t}from"../../node_modules/@lit/reactive-element/decorators/property.js";import"../../node_modules/lit/decorators.js";import{internals as n}from"../../utils/behaviors/element-internals.js";import r from"../../_virtual/_@oxc-project_runtime@0.144.0/helpers/esm/decorate.js";import{setupFormSubmitter as i}from"../../utils/controller/form-submitter.js";import{BaseButton as a}from"./internal/base-button.js"; /** * @license * Copyright 2025 Kai-Orion & Sandlada * SPDX-License-Identifier: MIT */ var o;let s=class extends a{static{o=this}constructor(...e){super(...e),this.variant=`filled`,this.type=`submit`,this.value=``,this.disabled=!1}static{this.formAssociated=!0}static{i(o)}get name(){return this.getAttribute(`name`)??``}set name(e){this.setAttribute(`name`,e)}get form(){return this[n].form}};r([t({type:String,reflect:!1})],s.prototype,`variant`,void 0),r([t({type:String})],s.prototype,`type`,void 0),r([t({type:String,reflect:!0})],s.prototype,`value`,void 0),r([t({type:Boolean,reflect:!0})],s.prototype,`disabled`,void 0),s=o=r([e(`mdc-button`)],s);export{s as MDCButton}; //# sourceMappingURL=button.js.map