@lukso/web-components 1.14.0 → 1.14.1

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.
@@ -31,6 +31,7 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
31
31
  this.isLongPress = false;
32
32
  this.isLink = false;
33
33
  this.isLoading = false;
34
+ this.type = "button";
34
35
  this.href = "";
35
36
  this.target = "_blank";
36
37
  this.rel = "";
@@ -113,6 +114,7 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
113
114
  <button
114
115
  data-testid="button"
115
116
  ?disabled=${this.disabled || this.isLoading}
117
+ type=${this.type}
116
118
  class=${index.customClassMap({
117
119
  [this.defaultStyles]: true,
118
120
  [this.mediumSize]: this.size === "medium",
@@ -184,6 +186,9 @@ __decorateClass([
184
186
  __decorateClass([
185
187
  directive.e({ type: Boolean, attribute: "is-loading" })
186
188
  ], exports.LuksoButton.prototype, "isLoading", 2);
189
+ __decorateClass([
190
+ directive.e({ type: String })
191
+ ], exports.LuksoButton.prototype, "type", 2);
187
192
  __decorateClass([
188
193
  directive.e({ type: String })
189
194
  ], exports.LuksoButton.prototype, "href", 2);
@@ -1,5 +1,6 @@
1
1
  export declare type ButtonVariant = 'primary' | 'secondary' | 'landing' | 'text';
2
2
  export declare type ButtonSize = 'small' | 'medium';
3
+ export declare type ButtonType = 'submit' | 'reset' | 'button';
3
4
  export declare type LinkTarget = '_blank' | '_self' | '_parent' | '_top';
4
5
  declare const LuksoButton_base: typeof import("lit").LitElement;
5
6
  export declare class LuksoButton extends LuksoButton_base {
@@ -10,6 +11,7 @@ export declare class LuksoButton extends LuksoButton_base {
10
11
  isLongPress: boolean;
11
12
  isLink: boolean;
12
13
  isLoading: boolean;
14
+ type: ButtonType;
13
15
  href: string;
14
16
  target: LinkTarget;
15
17
  rel: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"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cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
@@ -27,6 +27,7 @@ let LuksoButton = class extends TailwindStyledElement(style) {
27
27
  this.isLongPress = false;
28
28
  this.isLink = false;
29
29
  this.isLoading = false;
30
+ this.type = "button";
30
31
  this.href = "";
31
32
  this.target = "_blank";
32
33
  this.rel = "";
@@ -109,6 +110,7 @@ let LuksoButton = class extends TailwindStyledElement(style) {
109
110
  <button
110
111
  data-testid="button"
111
112
  ?disabled=${this.disabled || this.isLoading}
113
+ type=${this.type}
112
114
  class=${customClassMap({
113
115
  [this.defaultStyles]: true,
114
116
  [this.mediumSize]: this.size === "medium",
@@ -180,6 +182,9 @@ __decorateClass([
180
182
  __decorateClass([
181
183
  e({ type: Boolean, attribute: "is-loading" })
182
184
  ], LuksoButton.prototype, "isLoading", 2);
185
+ __decorateClass([
186
+ e({ type: String })
187
+ ], LuksoButton.prototype, "type", 2);
183
188
  __decorateClass([
184
189
  e({ type: String })
185
190
  ], LuksoButton.prototype, "href", 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukso/web-components",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",