@randstad-uca/design-system 1.0.14 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,7 @@ export declare class RandstadButton extends LitElement {
9
9
  iconPosition: 'left' | 'right';
10
10
  disabled: boolean;
11
11
  iconName: string | null;
12
+ type: 'button' | 'submit' | 'reset';
12
13
  static styles: import("lit").CSSResult;
13
14
  private handleClick;
14
15
  render(): import("lit-html").TemplateResult<1>;
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ const T={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:P},O=(t=T,e,
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
38
  */
39
- function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o))(e,o,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let z=class extends t{constructor(){super(...arguments),this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.disabled=!1,this.iconName=null}static{this.styles=e`
39
+ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o))(e,o,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let z=class extends t{constructor(){super(...arguments),this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.disabled=!1,this.iconName=null,this.type="button"}static{this.styles=e`
40
40
  :host {
41
41
  display: inline-block;
42
42
  }
@@ -229,7 +229,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
229
229
  }
230
230
  `}handleClick(t){this.disabled||this.dispatchEvent(new CustomEvent("button-click",{bubbles:!0,composed:!0}))}render(){const t=`button ${"button-round"===this.variant?"":`button-${this.size}`} ${this.variant} ${this.loader?"loader":""}`,e="button-tertiary"===this.variant?"#2175D9":"white";return o`
231
231
  <button
232
- type="button"
232
+ type=${this.type}
233
233
  class=${t}
234
234
  ?disabled=${this.disabled}
235
235
  @click=${this.handleClick}
@@ -247,7 +247,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
247
247
  ${this.iconName&&"button-round"!==this.variant&&"right"===this.iconPosition?o`<randstad-icon name=${this.iconName} size="24px"></randstad-icon>`:""}
248
248
  `}
249
249
  </button>
250
- `}};n([I({type:String}),a("design:type",String)],z.prototype,"variant",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"size",void 0),n([I({type:String}),a("design:type",Object)],z.prototype,"label",void 0),n([I({type:Boolean}),a("design:type",Object)],z.prototype,"loader",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"iconSrc",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"iconPosition",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Boolean)],z.prototype,"disabled",void 0),n([I({type:String}),a("design:type",Object)],z.prototype,"iconName",void 0),z=n([l("randstad-button")],z);let M=class extends t{constructor(){super(...arguments),this.prefix="Acepto los",this.clause1Text="términos y condiciones",this.connector="y los",this.clause2Text="avisos de privacidad del sitio",this.checked=!1}static{this.styles=e`
250
+ `}};n([I({type:String}),a("design:type",String)],z.prototype,"variant",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"size",void 0),n([I({type:String}),a("design:type",Object)],z.prototype,"label",void 0),n([I({type:Boolean}),a("design:type",Object)],z.prototype,"loader",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"iconSrc",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"iconPosition",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Boolean)],z.prototype,"disabled",void 0),n([I({type:String}),a("design:type",Object)],z.prototype,"iconName",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"type",void 0),z=n([l("randstad-button")],z);let M=class extends t{constructor(){super(...arguments),this.prefix="Acepto los",this.clause1Text="términos y condiciones",this.connector="y los",this.clause2Text="avisos de privacidad del sitio",this.checked=!1}static{this.styles=e`
251
251
  :host {
252
252
  display: block;
253
253
  max-width: 100%;