@lukso/web-components 1.76.0 → 1.77.0

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.
@@ -145,6 +145,22 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
145
145
  }
146
146
  ]
147
147
  });
148
+ this.loadingStyles = index.ce({
149
+ slots: {
150
+ icon: "animate-spin",
151
+ text: ""
152
+ },
153
+ variants: {
154
+ size: {
155
+ small: {
156
+ text: "ml-1"
157
+ },
158
+ medium: {
159
+ text: "ml-2"
160
+ }
161
+ }
162
+ }
163
+ });
148
164
  }
149
165
  handleMouseDown() {
150
166
  if (this.variant !== "primary" && this.variant !== "landing" && this.isLongPress) {
@@ -176,12 +192,16 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
176
192
  this.timer && clearTimeout(this.timer);
177
193
  }
178
194
  loadingTemplate() {
195
+ const { icon, text } = this.loadingStyles({
196
+ size: this.size
197
+ });
179
198
  return shared_tailwindElement_index.x`<lukso-icon
180
199
  name="spinner"
200
+ size=${this.size}
181
201
  color=${this.variant === "secondary" || this.variant === "text" ? "neutral-20" : "neutral-100"}
182
- class="animate-spin"
202
+ class=${icon()}
183
203
  ></lukso-icon>
184
- ${this.loadingText ? shared_tailwindElement_index.x`<span class="ml-2">${this.loadingText}</span>` : shared_tailwindElement_index.A}`;
204
+ ${this.loadingText ? shared_tailwindElement_index.x`<span class=${text()}>${this.loadingText}</span>` : shared_tailwindElement_index.A}`;
185
205
  }
186
206
  counterTemplate() {
187
207
  const counterStyles = this.counterStyles({
@@ -25,6 +25,7 @@ export declare class LuksoButton extends LuksoButton_base {
25
25
  private timer;
26
26
  private counterStyles;
27
27
  private buttonStyles;
28
+ private loadingStyles;
28
29
  private handleMouseDown;
29
30
  private handleMouseUp;
30
31
  loadingTemplate(): import("lit-html").TemplateResult<1>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/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AAM,gBAAgB,CAAA;AAE/C,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,WAAW,GACX,SAAS,GACT,MAAM,GACN,YAAY,GACZ,UAAU,GACV,MAAM,CAAA;AACV,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;AACtD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;;AAIhE,qBACa,WAAY,SAAQ,gBAA4B;IAE3D,OAAO,EAAE,aAAa,CAAY;IAGlC,IAAI,EAAE,SAAS,CAAW;IAG1B,QAAQ,UAAQ;IAGhB,WAAW,UAAQ;IAGnB,WAAW,UAAQ;IAGnB,MAAM,UAAQ;IAGd,SAAS,UAAQ;IAGjB,IAAI,EAAE,UAAU,CAAW;IAG3B,IAAI,SAAK;IAGT,MAAM,EAAE,UAAU,CAAW;IAG7B,GAAG,SAAK;IAGR,WAAW,SAAK;IAGhB,WAAW,SAAK;IAGhB,QAAQ,UAAQ;IAGhB,KAAK,SAAK;IAGV,MAAM,UAAQ;IAGd,OAAO,CAAC,SAAS,CAAQ;IAGzB,OAAO,CAAC,YAAY,CAAQ;IAG5B,OAAO,CAAC,KAAK,CAAI;IAEjB,OAAO,CAAC,aAAa,CAOnB;IAEF,OAAO,CAAC,YAAY,CA+FlB;IAEF,OAAO,CAAC,aAAa,CAenB;IAEF,OAAO,CAAC,eAAe;IA2BvB,OAAO,CAAC,aAAa;IAcrB,eAAe;IAkBf,eAAe;IAQf,cAAc;IA8Bd,YAAY;IAuBZ,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
@@ -141,6 +141,22 @@ let LuksoButton = class extends TailwindStyledElement(style) {
141
141
  }
142
142
  ]
143
143
  });
144
+ this.loadingStyles = ce({
145
+ slots: {
146
+ icon: "animate-spin",
147
+ text: ""
148
+ },
149
+ variants: {
150
+ size: {
151
+ small: {
152
+ text: "ml-1"
153
+ },
154
+ medium: {
155
+ text: "ml-2"
156
+ }
157
+ }
158
+ }
159
+ });
144
160
  }
145
161
  handleMouseDown() {
146
162
  if (this.variant !== "primary" && this.variant !== "landing" && this.isLongPress) {
@@ -172,12 +188,16 @@ let LuksoButton = class extends TailwindStyledElement(style) {
172
188
  this.timer && clearTimeout(this.timer);
173
189
  }
174
190
  loadingTemplate() {
191
+ const { icon, text } = this.loadingStyles({
192
+ size: this.size
193
+ });
175
194
  return x`<lukso-icon
176
195
  name="spinner"
196
+ size=${this.size}
177
197
  color=${this.variant === "secondary" || this.variant === "text" ? "neutral-20" : "neutral-100"}
178
- class="animate-spin"
198
+ class=${icon()}
179
199
  ></lukso-icon>
180
- ${this.loadingText ? x`<span class="ml-2">${this.loadingText}</span>` : A}`;
200
+ ${this.loadingText ? x`<span class=${text()}>${this.loadingText}</span>` : A}`;
181
201
  }
182
202
  counterTemplate() {
183
203
  const counterStyles = this.counterStyles({
@@ -1 +1 @@
1
- {"version":3,"file":"lukso-button.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-button/lukso-button.stories.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,SAAS,CAAA;AAChB,OAAO,eAAe,CAAA;AAEtB,+DAA+D;AAC/D,QAAA,MAAM,IAAI,EAAE,IAgNX,CAAA;AAED,eAAe,IAAI,CAAA;AA2CnB,oDAAoD;AACpD,eAAO,MAAM,OAAO,KAAoB,CAAA;AAexC,sCAAsC;AACtC,eAAO,MAAM,SAAS,KAAoB,CAAA;AAW1C,qCAAqC;AACrC,eAAO,MAAM,OAAO,KAAoB,CAAA;AAWxC,kCAAkC;AAClC,eAAO,MAAM,IAAI,KAAoB,CAAA;AAWrC,wCAAwC;AACxC,eAAO,MAAM,SAAS,KAAoB,CAAA;AAK1C,sCAAsC;AACtC,eAAO,MAAM,OAAO,KAAoB,CAAA;AAKxC,kCAAkC;AAClC,eAAO,MAAM,WAAW,KAAoB,CAAA;AAK5C,uCAAuC;AACvC,eAAO,MAAM,SAAS,KAAoB,CAAA;AAK1C,gGAAgG;AAChG,eAAO,MAAM,SAAS,KAAoB,CAAA;AAW1C,gEAAgE;AAChE,eAAO,MAAM,cAAc,KAAoB,CAAA;AAa/C,6GAA6G;AAC7G,eAAO,MAAM,UAAU,KAAoB,CAAA;AAe3C;;GAEG;AACH,eAAO,MAAM,eAAe,KAAoB,CAAA;AAahD;4FAC4F;AAC5F,eAAO,MAAM,IAAI,KAAoB,CAAA;AAerC;GACG;AACH,eAAO,MAAM,aAAa,KAAoB,CAAA;AAc9C,uEAAuE;AACvE,eAAO,MAAM,iBAAiB,KAAoB,CAAA;AAalD,iDAAiD;AACjD,eAAO,MAAM,aAAa,KAAoB,CAAA"}
1
+ {"version":3,"file":"lukso-button.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-button/lukso-button.stories.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,SAAS,CAAA;AAChB,OAAO,eAAe,CAAA;AAEtB,+DAA+D;AAC/D,QAAA,MAAM,IAAI,EAAE,IAiNX,CAAA;AAED,eAAe,IAAI,CAAA;AA2CnB,oDAAoD;AACpD,eAAO,MAAM,OAAO,KAAoB,CAAA;AAexC,sCAAsC;AACtC,eAAO,MAAM,SAAS,KAAoB,CAAA;AAW1C,qCAAqC;AACrC,eAAO,MAAM,OAAO,KAAoB,CAAA;AAWxC,kCAAkC;AAClC,eAAO,MAAM,IAAI,KAAoB,CAAA;AAWrC,wCAAwC;AACxC,eAAO,MAAM,SAAS,KAAoB,CAAA;AAK1C,sCAAsC;AACtC,eAAO,MAAM,OAAO,KAAoB,CAAA;AAKxC,kCAAkC;AAClC,eAAO,MAAM,WAAW,KAAoB,CAAA;AAK5C,uCAAuC;AACvC,eAAO,MAAM,SAAS,KAAoB,CAAA;AAK1C,gGAAgG;AAChG,eAAO,MAAM,SAAS,KAAoB,CAAA;AAW1C,gEAAgE;AAChE,eAAO,MAAM,cAAc,KAAoB,CAAA;AAa/C,6GAA6G;AAC7G,eAAO,MAAM,UAAU,KAAoB,CAAA;AAe3C;;GAEG;AACH,eAAO,MAAM,eAAe,KAAoB,CAAA;AAahD;4FAC4F;AAC5F,eAAO,MAAM,IAAI,KAAoB,CAAA;AAerC;GACG;AACH,eAAO,MAAM,aAAa,KAAoB,CAAA;AAc9C,uEAAuE;AACvE,eAAO,MAAM,iBAAiB,KAAoB,CAAA;AAalD,iDAAiD;AACjD,eAAO,MAAM,aAAa,KAAoB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { IconOptions } from '../../../components/lukso-icon/index.js';
2
+ export declare const profileRemove: (options: IconOptions) => import("lit-html").TemplateResult<1>;
3
+ //# sourceMappingURL=profile-remove.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-remove.d.ts","sourceRoot":"","sources":["../../../../../../src/components/lukso-icon/icons/profile-remove.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE,eAAO,MAAM,aAAa,YAAa,WAAW,yCA8BjD,CAAA"}
@@ -6264,6 +6264,38 @@ const emptyOutline = (options) => {
6264
6264
  </svg>`;
6265
6265
  };
6266
6266
 
6267
+ const profileRemove = (options) => {
6268
+ return shared_tailwindElement_index.x`<svg
6269
+ width="24"
6270
+ height="24"
6271
+ viewBox="0 0 24 24"
6272
+ fill="none"
6273
+ xmlns="http://www.w3.org/2000/svg"
6274
+ style=${styleMap.o({
6275
+ width: `${options.width}px`,
6276
+ height: `${options.height}px`
6277
+ })}
6278
+ >
6279
+ <path
6280
+ d="M6.75 10.875H1.5"
6281
+ stroke="var(--${options.color})"
6282
+ stroke-width="${options.strokeWidth}"
6283
+ stroke-linecap="round"
6284
+ stroke-linejoin="round"
6285
+ />
6286
+ <path
6287
+ d="M18.25 6C18.25 8.34721 16.3472 10.25 14 10.25C11.6528 10.25 9.75 8.34721 9.75 6C9.75 3.65279 11.6528 1.75 14 1.75C16.3472 1.75 18.25 3.65279 18.25 6Z"
6288
+ stroke="var(--${options.color})"
6289
+ stroke-width="${options.strokeWidth}"
6290
+ />
6291
+ <path
6292
+ d="M4.75 18.6667C4.75 16.8725 6.09998 15.4016 8.10179 14.3324C10.0797 13.2759 12.4587 12.75 14 12.75C15.5413 12.75 17.9203 13.2759 19.8982 14.3324C21.9 15.4016 23.25 16.8725 23.25 18.6667V21.25H4.75V18.6667Z"
6293
+ stroke="var(--${options.color})"
6294
+ stroke-width="${options.strokeWidth}"
6295
+ />
6296
+ </svg> `;
6297
+ };
6298
+
6267
6299
  var __defProp = Object.defineProperty;
6268
6300
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6269
6301
  var __decorateClass = (decorators, target, key, kind) => {
@@ -6435,7 +6467,8 @@ const iconMap = {
6435
6467
  "logo-github-mono": logoGithubMono,
6436
6468
  "logo-universal-page-mono": logoUniversalPageMono,
6437
6469
  database,
6438
- "empty-outline": emptyOutline
6470
+ "empty-outline": emptyOutline,
6471
+ "profile-remove": profileRemove
6439
6472
  };
6440
6473
  exports.LuksoIcon = class LuksoIcon extends shared_tailwindElement_index.TailwindStyledElement(style) {
6441
6474
  constructor() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-icon/index.ts"],"names":[],"mappings":"AAsKA,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;;AA2K5E,qBACa,SAAU,SAAQ,cAA4B;IAEzD,IAAI,SAAK;IAGT,IAAI,SAAW;IAGf,KAAK,SAAe;IAGpB,cAAc,SAAK;IAEnB,OAAO,CAAC,KAAK,CA0BZ;IAED,MAAM;CAyBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-icon/index.ts"],"names":[],"mappings":"AAuKA,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;;AA4K5E,qBACa,SAAU,SAAQ,cAA4B;IAEzD,IAAI,SAAK;IAGT,IAAI,SAAW;IAGf,KAAK,SAAe;IAGpB,cAAc,SAAK;IAEnB,OAAO,CAAC,KAAK,CA0BZ;IAED,MAAM;CAyBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
@@ -6260,6 +6260,38 @@ const emptyOutline = (options) => {
6260
6260
  </svg>`;
6261
6261
  };
6262
6262
 
6263
+ const profileRemove = (options) => {
6264
+ return x`<svg
6265
+ width="24"
6266
+ height="24"
6267
+ viewBox="0 0 24 24"
6268
+ fill="none"
6269
+ xmlns="http://www.w3.org/2000/svg"
6270
+ style=${o({
6271
+ width: `${options.width}px`,
6272
+ height: `${options.height}px`
6273
+ })}
6274
+ >
6275
+ <path
6276
+ d="M6.75 10.875H1.5"
6277
+ stroke="var(--${options.color})"
6278
+ stroke-width="${options.strokeWidth}"
6279
+ stroke-linecap="round"
6280
+ stroke-linejoin="round"
6281
+ />
6282
+ <path
6283
+ d="M18.25 6C18.25 8.34721 16.3472 10.25 14 10.25C11.6528 10.25 9.75 8.34721 9.75 6C9.75 3.65279 11.6528 1.75 14 1.75C16.3472 1.75 18.25 3.65279 18.25 6Z"
6284
+ stroke="var(--${options.color})"
6285
+ stroke-width="${options.strokeWidth}"
6286
+ />
6287
+ <path
6288
+ d="M4.75 18.6667C4.75 16.8725 6.09998 15.4016 8.10179 14.3324C10.0797 13.2759 12.4587 12.75 14 12.75C15.5413 12.75 17.9203 13.2759 19.8982 14.3324C21.9 15.4016 23.25 16.8725 23.25 18.6667V21.25H4.75V18.6667Z"
6289
+ stroke="var(--${options.color})"
6290
+ stroke-width="${options.strokeWidth}"
6291
+ />
6292
+ </svg> `;
6293
+ };
6294
+
6263
6295
  var __defProp = Object.defineProperty;
6264
6296
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6265
6297
  var __decorateClass = (decorators, target, key, kind) => {
@@ -6431,7 +6463,8 @@ const iconMap = {
6431
6463
  "logo-github-mono": logoGithubMono,
6432
6464
  "logo-universal-page-mono": logoUniversalPageMono,
6433
6465
  database,
6434
- "empty-outline": emptyOutline
6466
+ "empty-outline": emptyOutline,
6467
+ "profile-remove": profileRemove
6435
6468
  };
6436
6469
  let LuksoIcon = class extends TailwindStyledElement(style) {
6437
6470
  constructor() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukso/web-components",
3
- "version": "1.76.0",
3
+ "version": "1.77.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",