@lukso/web-components 1.11.0 → 1.12.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.
Files changed (44) hide show
  1. package/dist/components/index.cjs +2 -2
  2. package/dist/components/index.js +2 -2
  3. package/dist/components/lukso-button/index.cjs +22 -3
  4. package/dist/components/lukso-button/index.d.ts +3 -0
  5. package/dist/components/lukso-button/index.d.ts.map +1 -1
  6. package/dist/components/lukso-button/index.js +22 -3
  7. package/dist/components/lukso-card/index.cjs +2 -2
  8. package/dist/components/lukso-card/index.js +2 -2
  9. package/dist/components/lukso-icon/icons/spinner.d.ts +3 -0
  10. package/dist/components/lukso-icon/icons/spinner.d.ts.map +1 -0
  11. package/dist/components/lukso-icon/index.cjs +24 -2
  12. package/dist/components/lukso-icon/index.d.ts.map +1 -1
  13. package/dist/components/lukso-icon/index.js +24 -2
  14. package/dist/components/lukso-input/index.cjs +1 -1
  15. package/dist/components/lukso-input/index.js +1 -1
  16. package/dist/components/lukso-modal/index.cjs +1 -1
  17. package/dist/components/lukso-modal/index.js +1 -1
  18. package/dist/components/lukso-navbar/index.cjs +8 -2
  19. package/dist/components/lukso-navbar/index.d.ts +2 -0
  20. package/dist/components/lukso-navbar/index.d.ts.map +1 -1
  21. package/dist/components/lukso-navbar/index.js +8 -2
  22. package/dist/components/lukso-profile/index.cjs +2 -2
  23. package/dist/components/lukso-profile/index.js +2 -2
  24. package/dist/components/lukso-sanitize/index.cjs +1 -1
  25. package/dist/components/lukso-sanitize/index.js +1 -1
  26. package/dist/components/lukso-tag/index.cjs +2 -2
  27. package/dist/components/lukso-tag/index.js +2 -2
  28. package/dist/components/lukso-terms/index.cjs +2 -2
  29. package/dist/components/lukso-terms/index.js +2 -2
  30. package/dist/components/lukso-test/index.cjs +1 -1
  31. package/dist/components/lukso-test/index.js +1 -1
  32. package/dist/components/lukso-username/index.cjs +2 -2
  33. package/dist/components/lukso-username/index.js +2 -2
  34. package/dist/components/lukso-wizard/index.cjs +1 -1
  35. package/dist/components/lukso-wizard/index.js +1 -1
  36. package/dist/{index-d6d4e98e.cjs → index-65ac952c.cjs} +1 -1
  37. package/dist/{index-29538039.js → index-bd97c2c3.js} +1 -1
  38. package/dist/index.cjs +2 -2
  39. package/dist/index.js +2 -2
  40. package/dist/shared/tailwind-element/index.cjs +1 -1
  41. package/dist/shared/tailwind-element/index.js +1 -1
  42. package/dist/{style-map-6fd59df5.js → style-map-8b1b8545.js} +1 -1
  43. package/dist/{style-map-1d5d29da.cjs → style-map-9f53097b.cjs} +1 -1
  44. package/package.json +1 -1
@@ -15,11 +15,11 @@ const components_luksoTerms_index = require('./lukso-terms/index.cjs');
15
15
  const components_luksoTest_index = require('./lukso-test/index.cjs');
16
16
  const components_luksoUsername_index = require('./lukso-username/index.cjs');
17
17
  const components_luksoWizard_index = require('./lukso-wizard/index.cjs');
18
- const shared_tailwindElement_index = require('../index-d6d4e98e.cjs');
18
+ const shared_tailwindElement_index = require('../index-65ac952c.cjs');
19
19
  require('../directive-db00f5fb.cjs');
20
20
  require('../state-a62a7d5d.cjs');
21
21
  require('../index-7dc05ee5.cjs');
22
- require('../style-map-1d5d29da.cjs');
22
+ require('../style-map-9f53097b.cjs');
23
23
 
24
24
 
25
25
 
@@ -11,8 +11,8 @@ export { LuksoTerms } from './lukso-terms/index.js';
11
11
  export { LuksoTest } from './lukso-test/index.js';
12
12
  export { LuksoUsername } from './lukso-username/index.js';
13
13
  export { LuksoWizard } from './lukso-wizard/index.js';
14
- export { a as TailwindElement, T as TailwindStyledElement } from '../index-29538039.js';
14
+ export { a as TailwindElement, T as TailwindStyledElement } from '../index-bd97c2c3.js';
15
15
  import '../directive-9ec64c08.js';
16
16
  import '../state-7fde94d1.js';
17
17
  import '../index-714323c9.js';
18
- import '../style-map-6fd59df5.js';
18
+ import '../style-map-8b1b8545.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
5
+ const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const state = require('../../state-a62a7d5d.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
@@ -30,9 +30,11 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
30
30
  this.isFullWidth = false;
31
31
  this.isLongPress = false;
32
32
  this.isLink = false;
33
+ this.isLoading = false;
33
34
  this.href = "";
34
35
  this.target = "_blank";
35
36
  this.rel = "";
37
+ this.loadingText = "";
36
38
  this.isPressed = false;
37
39
  this.noTransition = false;
38
40
  this.timer = 0;
@@ -94,11 +96,22 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
94
96
  }, 100);
95
97
  this.timer && clearTimeout(this.timer);
96
98
  }
99
+ loadingTemplate() {
100
+ return shared_tailwindElement_index.y`<lukso-icon
101
+ name="spinner"
102
+ color=${this.variant === "secondary" || this.variant === "text" ? "neutral-20" : "neutral-100"}
103
+ class=${index.customClassMap({
104
+ "animate-spin": true,
105
+ "mr-2": !!this.loadingText
106
+ })}
107
+ ></lukso-icon>
108
+ ${this.loadingText}`;
109
+ }
97
110
  buttonTemplate() {
98
111
  return shared_tailwindElement_index.y`
99
112
  <button
100
113
  data-testid="button"
101
- ?disabled=${this.disabled}
114
+ ?disabled=${this.disabled || this.isLoading}
102
115
  class=${index.customClassMap({
103
116
  [this.defaultStyles]: true,
104
117
  [this.mediumSize]: this.size === "medium",
@@ -116,7 +129,7 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
116
129
  @mouseup=${this.handleMouseUp}
117
130
  @mouseleave=${this.handleMouseUp}
118
131
  >
119
- <slot></slot>
132
+ ${this.isLoading ? this.loadingTemplate() : shared_tailwindElement_index.y`<slot></slot>`}
120
133
  </button>
121
134
  `;
122
135
  }
@@ -165,6 +178,9 @@ __decorateClass([
165
178
  __decorateClass([
166
179
  directive.e({ type: Boolean, attribute: "is-link" })
167
180
  ], exports.LuksoButton.prototype, "isLink", 2);
181
+ __decorateClass([
182
+ directive.e({ type: Boolean, attribute: "is-loading" })
183
+ ], exports.LuksoButton.prototype, "isLoading", 2);
168
184
  __decorateClass([
169
185
  directive.e({ type: String })
170
186
  ], exports.LuksoButton.prototype, "href", 2);
@@ -174,6 +190,9 @@ __decorateClass([
174
190
  __decorateClass([
175
191
  directive.e({ type: String })
176
192
  ], exports.LuksoButton.prototype, "rel", 2);
193
+ __decorateClass([
194
+ directive.e({ type: String, attribute: "loading-text" })
195
+ ], exports.LuksoButton.prototype, "loadingText", 2);
177
196
  __decorateClass([
178
197
  state.t()
179
198
  ], exports.LuksoButton.prototype, "isPressed", 2);
@@ -9,9 +9,11 @@ export declare class LuksoButton extends LuksoButton_base {
9
9
  isFullWidth: boolean;
10
10
  isLongPress: boolean;
11
11
  isLink: boolean;
12
+ isLoading: boolean;
12
13
  href: string;
13
14
  target: LinkTarget;
14
15
  rel: string;
16
+ loadingText: string;
15
17
  private isPressed;
16
18
  private noTransition;
17
19
  private timer;
@@ -28,6 +30,7 @@ export declare class LuksoButton extends LuksoButton_base {
28
30
  private smallSize;
29
31
  private handleMouseDown;
30
32
  private handleMouseUp;
33
+ loadingTemplate(): unknown;
31
34
  buttonTemplate(): import("lit").TemplateResult<1>;
32
35
  linkTemplate(): import("lit").TemplateResult<1>;
33
36
  render(): import("lit").TemplateResult<1>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAOA,oBAAY,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAA;AACxE,oBAAY,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAA;AAC3C,oBAAY,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;;AAIhE,qBACa,WAAY,SAAQ,gBAA4B;IAE3D,OAAO,EAAE,aAAa,CAAY;IAGlC,IAAI,EAAE,UAAU,CAAW;IAG3B,QAAQ,UAAQ;IAGhB,WAAW,UAAQ;IAGnB,WAAW,UAAQ;IAGnB,MAAM,UAAQ;IAGd,IAAI,SAAK;IAGT,MAAM,EAAE,UAAU,CAAW;IAG7B,GAAG,SAAK;IAGR,OAAO,CAAC,SAAS,CAAQ;IAGzB,OAAO,CAAC,YAAY,CAAQ;IAG5B,OAAO,CAAC,KAAK,CAAI;IAEjB,OAAO,CAAC,aAAa,CAGqE;IAE1F,OAAO,CAAC,eAAe,CACoD;IAE3E,OAAO,CAAC,aAAa,CAIE;IAEvB,OAAO,CAAC,aAAa,CAIC;IAEtB,OAAO,CAAC,UAAU,CAGS;IAE3B,OAAO,CAAC,UAAU,CAAyE;IAE3F,OAAO,CAAC,eAAe,CAEyD;IAEhF,OAAO,CAAC,aAAa,CAAgC;IAErD,OAAO,CAAC,kBAAkB,CAA2B;IAErD,OAAO,CAAC,UAAU,CAAsD;IAExE,OAAO,CAAC,SAAS,CAAwF;IAEzG,OAAO,CAAC,eAAe;IA2BvB,OAAO,CAAC,aAAa;IAcrB,cAAc;IA2Bd,YAAY;IAwBZ,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAOA,oBAAY,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAA;AACxE,oBAAY,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAA;AAC3C,oBAAY,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;;AAIhE,qBACa,WAAY,SAAQ,gBAA4B;IAE3D,OAAO,EAAE,aAAa,CAAY;IAGlC,IAAI,EAAE,UAAU,CAAW;IAG3B,QAAQ,UAAQ;IAGhB,WAAW,UAAQ;IAGnB,WAAW,UAAQ;IAGnB,MAAM,UAAQ;IAGd,SAAS,UAAQ;IAGjB,IAAI,SAAK;IAGT,MAAM,EAAE,UAAU,CAAW;IAG7B,GAAG,SAAK;IAGR,WAAW,SAAK;IAGhB,OAAO,CAAC,SAAS,CAAQ;IAGzB,OAAO,CAAC,YAAY,CAAQ;IAG5B,OAAO,CAAC,KAAK,CAAI;IAEjB,OAAO,CAAC,aAAa,CAGqE;IAE1F,OAAO,CAAC,eAAe,CACoD;IAE3E,OAAO,CAAC,aAAa,CAIE;IAEvB,OAAO,CAAC,aAAa,CAIC;IAEtB,OAAO,CAAC,UAAU,CAGS;IAE3B,OAAO,CAAC,UAAU,CAAyE;IAE3F,OAAO,CAAC,eAAe,CAEyD;IAEhF,OAAO,CAAC,aAAa,CAAgC;IAErD,OAAO,CAAC,kBAAkB,CAA2B;IAErD,OAAO,CAAC,UAAU,CAAsD;IAExE,OAAO,CAAC,SAAS,CAAwF;IAEzG,OAAO,CAAC,eAAe;IA2BvB,OAAO,CAAC,aAAa;IAcrB,eAAe,IAAI,OAAO;IAc1B,cAAc;IA2Bd,YAAY;IAwBZ,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
@@ -1,4 +1,4 @@
1
- import { T as TailwindStyledElement, y } from '../../index-29538039.js';
1
+ import { T as TailwindStyledElement, y } from '../../index-bd97c2c3.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { t } from '../../state-7fde94d1.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
@@ -26,9 +26,11 @@ let LuksoButton = class extends TailwindStyledElement(style) {
26
26
  this.isFullWidth = false;
27
27
  this.isLongPress = false;
28
28
  this.isLink = false;
29
+ this.isLoading = false;
29
30
  this.href = "";
30
31
  this.target = "_blank";
31
32
  this.rel = "";
33
+ this.loadingText = "";
32
34
  this.isPressed = false;
33
35
  this.noTransition = false;
34
36
  this.timer = 0;
@@ -90,11 +92,22 @@ let LuksoButton = class extends TailwindStyledElement(style) {
90
92
  }, 100);
91
93
  this.timer && clearTimeout(this.timer);
92
94
  }
95
+ loadingTemplate() {
96
+ return y`<lukso-icon
97
+ name="spinner"
98
+ color=${this.variant === "secondary" || this.variant === "text" ? "neutral-20" : "neutral-100"}
99
+ class=${customClassMap({
100
+ "animate-spin": true,
101
+ "mr-2": !!this.loadingText
102
+ })}
103
+ ></lukso-icon>
104
+ ${this.loadingText}`;
105
+ }
93
106
  buttonTemplate() {
94
107
  return y`
95
108
  <button
96
109
  data-testid="button"
97
- ?disabled=${this.disabled}
110
+ ?disabled=${this.disabled || this.isLoading}
98
111
  class=${customClassMap({
99
112
  [this.defaultStyles]: true,
100
113
  [this.mediumSize]: this.size === "medium",
@@ -112,7 +125,7 @@ let LuksoButton = class extends TailwindStyledElement(style) {
112
125
  @mouseup=${this.handleMouseUp}
113
126
  @mouseleave=${this.handleMouseUp}
114
127
  >
115
- <slot></slot>
128
+ ${this.isLoading ? this.loadingTemplate() : y`<slot></slot>`}
116
129
  </button>
117
130
  `;
118
131
  }
@@ -161,6 +174,9 @@ __decorateClass([
161
174
  __decorateClass([
162
175
  e({ type: Boolean, attribute: "is-link" })
163
176
  ], LuksoButton.prototype, "isLink", 2);
177
+ __decorateClass([
178
+ e({ type: Boolean, attribute: "is-loading" })
179
+ ], LuksoButton.prototype, "isLoading", 2);
164
180
  __decorateClass([
165
181
  e({ type: String })
166
182
  ], LuksoButton.prototype, "href", 2);
@@ -170,6 +186,9 @@ __decorateClass([
170
186
  __decorateClass([
171
187
  e({ type: String })
172
188
  ], LuksoButton.prototype, "rel", 2);
189
+ __decorateClass([
190
+ e({ type: String, attribute: "loading-text" })
191
+ ], LuksoButton.prototype, "loadingText", 2);
173
192
  __decorateClass([
174
193
  t()
175
194
  ], LuksoButton.prototype, "isPressed", 2);
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
5
+ const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-1d5d29da.cjs');
7
+ const styleMap = require('../../style-map-9f53097b.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
  require('../lukso-profile/index.cjs');
10
10
 
@@ -1,6 +1,6 @@
1
- import { T as TailwindStyledElement, y } from '../../index-29538039.js';
1
+ import { T as TailwindStyledElement, y } from '../../index-bd97c2c3.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-6fd59df5.js';
3
+ import { i } from '../../style-map-8b1b8545.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
  import '../lukso-profile/index.js';
6
6
 
@@ -0,0 +1,3 @@
1
+ import { IconOptions } from '../../../components/lukso-icon/index.js';
2
+ export declare const spinner: (options: IconOptions) => import("lit").TemplateResult<1>;
3
+ //# sourceMappingURL=spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["spinner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,eAAO,MAAM,OAAO,YAAa,WAAW,oCAmB3C,CAAA"}
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
5
+ const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-1d5d29da.cjs');
7
+ const styleMap = require('../../style-map-9f53097b.cjs');
8
8
 
9
9
  const style = ":host {\n display: inline-flex\n}";
10
10
 
@@ -3057,6 +3057,27 @@ const smartContract = (options) => {
3057
3057
  </svg> `;
3058
3058
  };
3059
3059
 
3060
+ const spinner = (options) => {
3061
+ return shared_tailwindElement_index.y`<svg
3062
+ width="24"
3063
+ height="24"
3064
+ viewBox="0 0 24 24"
3065
+ fill="none"
3066
+ xmlns="http://www.w3.org/2000/svg"
3067
+ style=${styleMap.i({
3068
+ width: `${options.width}px`,
3069
+ height: `${options.height}px`
3070
+ })}
3071
+ >
3072
+ <path
3073
+ d="M20.25 12C20.25 13.6317 19.7661 15.2267 18.8596 16.5835C17.9531 17.9402 16.6646 18.9976 15.1571 19.622C13.6496 20.2464 11.9908 20.4098 10.3905 20.0915C8.79016 19.7732 7.32015 18.9874 6.16637 17.8336C5.01259 16.6798 4.22685 15.2098 3.90852 13.6095C3.59019 12.0092 3.75357 10.3504 4.37799 8.84286C5.00242 7.33537 6.05984 6.0469 7.41655 5.14038C8.77325 4.23385 10.3683 3.75 12 3.75"
3074
+ stroke="var(--${options.color})"
3075
+ stroke-width="${options.strokeWidth}"
3076
+ stroke-linecap="round"
3077
+ />
3078
+ </svg> `;
3079
+ };
3080
+
3060
3081
  const starFilled = (options) => {
3061
3082
  return shared_tailwindElement_index.y`<svg
3062
3083
  width="24"
@@ -4441,6 +4462,7 @@ const iconMap = {
4441
4462
  settings,
4442
4463
  "smart-contract-doc": smartContractDoc,
4443
4464
  "smart-contract": smartContract,
4465
+ spinner,
4444
4466
  "star-filled": starFilled,
4445
4467
  "star-outline": starOutline,
4446
4468
  "step-dot": stepDot,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAyHA,oBAAY,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,oBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;;AA8H5E,qBACa,SAAU,SAAQ,cAA4B;IAEzD,IAAI,SAAK;IAGT,IAAI,SAAW;IAGf,KAAK,SAAe;IAGpB,cAAc,SAAK;IAEnB,OAAO,CAAC,KAAK,CA0BZ;IAED,MAAM;CAuBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AA0HA,oBAAY,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,oBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;;AA+H5E,qBACa,SAAU,SAAQ,cAA4B;IAEzD,IAAI,SAAK;IAGT,IAAI,SAAW;IAGf,KAAK,SAAe;IAGpB,cAAc,SAAK;IAEnB,OAAO,CAAC,KAAK,CA0BZ;IAED,MAAM;CAuBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
@@ -1,6 +1,6 @@
1
- import { y, T as TailwindStyledElement } from '../../index-29538039.js';
1
+ import { y, T as TailwindStyledElement } from '../../index-bd97c2c3.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-6fd59df5.js';
3
+ import { i } from '../../style-map-8b1b8545.js';
4
4
 
5
5
  const style = ":host {\n display: inline-flex\n}";
6
6
 
@@ -3053,6 +3053,27 @@ const smartContract = (options) => {
3053
3053
  </svg> `;
3054
3054
  };
3055
3055
 
3056
+ const spinner = (options) => {
3057
+ return y`<svg
3058
+ width="24"
3059
+ height="24"
3060
+ viewBox="0 0 24 24"
3061
+ fill="none"
3062
+ xmlns="http://www.w3.org/2000/svg"
3063
+ style=${i({
3064
+ width: `${options.width}px`,
3065
+ height: `${options.height}px`
3066
+ })}
3067
+ >
3068
+ <path
3069
+ d="M20.25 12C20.25 13.6317 19.7661 15.2267 18.8596 16.5835C17.9531 17.9402 16.6646 18.9976 15.1571 19.622C13.6496 20.2464 11.9908 20.4098 10.3905 20.0915C8.79016 19.7732 7.32015 18.9874 6.16637 17.8336C5.01259 16.6798 4.22685 15.2098 3.90852 13.6095C3.59019 12.0092 3.75357 10.3504 4.37799 8.84286C5.00242 7.33537 6.05984 6.0469 7.41655 5.14038C8.77325 4.23385 10.3683 3.75 12 3.75"
3070
+ stroke="var(--${options.color})"
3071
+ stroke-width="${options.strokeWidth}"
3072
+ stroke-linecap="round"
3073
+ />
3074
+ </svg> `;
3075
+ };
3076
+
3056
3077
  const starFilled = (options) => {
3057
3078
  return y`<svg
3058
3079
  width="24"
@@ -4437,6 +4458,7 @@ const iconMap = {
4437
4458
  settings,
4438
4459
  "smart-contract-doc": smartContractDoc,
4439
4460
  "smart-contract": smartContract,
4461
+ spinner,
4440
4462
  "star-filled": starFilled,
4441
4463
  "star-outline": starOutline,
4442
4464
  "step-dot": stepDot,
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
5
+ const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const state = require('../../state-a62a7d5d.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, y, b } from '../../index-29538039.js';
1
+ import { a as TailwindElement, y, b } from '../../index-bd97c2c3.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { t } from '../../state-7fde94d1.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
5
+ const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const index = require('../../index-7dc05ee5.cjs');
8
8
 
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, y } from '../../index-29538039.js';
1
+ import { a as TailwindElement, y } from '../../index-bd97c2c3.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { c as customClassMap } from '../../index-714323c9.js';
4
4
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
5
+ const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const index = require('../../index-7dc05ee5.cjs');
8
8
 
@@ -23,9 +23,11 @@ exports.LuksoNavbar = class LuksoNavbar extends shared_tailwindElement_index.Tai
23
23
  this.title = "";
24
24
  this.isCenter = false;
25
25
  this.isSticky = false;
26
+ this.isTransparent = false;
26
27
  this.defaultStyles = `bg-neutral-100 shadow-pink-drop-shadow h-78 flex`;
27
28
  this.centerStyles = `justify-center`;
28
29
  this.stickyStyles = `sticky top-0 z-[1000]`;
30
+ this.transparentStyles = `!bg-transparent !shadow-none`;
29
31
  }
30
32
  handleBrandClick() {
31
33
  const event = new CustomEvent("on-brand-click", {
@@ -41,7 +43,8 @@ exports.LuksoNavbar = class LuksoNavbar extends shared_tailwindElement_index.Tai
41
43
  class=${index.customClassMap({
42
44
  [this.defaultStyles]: true,
43
45
  [this.centerStyles]: this.isCenter,
44
- [this.stickyStyles]: this.isSticky
46
+ [this.stickyStyles]: this.isSticky,
47
+ [this.transparentStyles]: this.isTransparent
45
48
  })}
46
49
  >
47
50
  <div
@@ -70,6 +73,9 @@ __decorateClass([
70
73
  __decorateClass([
71
74
  directive.e({ type: Boolean, attribute: "is-sticky" })
72
75
  ], exports.LuksoNavbar.prototype, "isSticky", 2);
76
+ __decorateClass([
77
+ directive.e({ type: Boolean, attribute: "is-transparent" })
78
+ ], exports.LuksoNavbar.prototype, "isTransparent", 2);
73
79
  exports.LuksoNavbar = __decorateClass([
74
80
  directive.e$1("lukso-navbar")
75
81
  ], exports.LuksoNavbar);
@@ -3,9 +3,11 @@ export declare class LuksoNavbar extends TailwindElement {
3
3
  title: string;
4
4
  isCenter: boolean;
5
5
  isSticky: boolean;
6
+ isTransparent: boolean;
6
7
  private defaultStyles;
7
8
  private centerStyles;
8
9
  private stickyStyles;
10
+ private transparentStyles;
9
11
  private handleBrandClick;
10
12
  render(): import("lit").TemplateResult<1>;
11
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,WAAY,SAAQ,eAAe;IAE9C,KAAK,SAAK;IAGV,QAAQ,UAAQ;IAGhB,QAAQ,UAAQ;IAEhB,OAAO,CAAC,aAAa,CAAqD;IAE1E,OAAO,CAAC,YAAY,CAAmB;IAEvC,OAAO,CAAC,YAAY,CAA0B;IAE9C,OAAO,CAAC,gBAAgB;IAQxB,MAAM;CA0BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,WAAY,SAAQ,eAAe;IAE9C,KAAK,SAAK;IAGV,QAAQ,UAAQ;IAGhB,QAAQ,UAAQ;IAGhB,aAAa,UAAQ;IAErB,OAAO,CAAC,aAAa,CAAqD;IAE1E,OAAO,CAAC,YAAY,CAAmB;IAEvC,OAAO,CAAC,YAAY,CAA0B;IAE9C,OAAO,CAAC,iBAAiB,CAAiC;IAE1D,OAAO,CAAC,gBAAgB;IAQxB,MAAM;CA2BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, y } from '../../index-29538039.js';
1
+ import { a as TailwindElement, y } from '../../index-bd97c2c3.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { c as customClassMap } from '../../index-714323c9.js';
4
4
 
@@ -19,9 +19,11 @@ let LuksoNavbar = class extends TailwindElement {
19
19
  this.title = "";
20
20
  this.isCenter = false;
21
21
  this.isSticky = false;
22
+ this.isTransparent = false;
22
23
  this.defaultStyles = `bg-neutral-100 shadow-pink-drop-shadow h-78 flex`;
23
24
  this.centerStyles = `justify-center`;
24
25
  this.stickyStyles = `sticky top-0 z-[1000]`;
26
+ this.transparentStyles = `!bg-transparent !shadow-none`;
25
27
  }
26
28
  handleBrandClick() {
27
29
  const event = new CustomEvent("on-brand-click", {
@@ -37,7 +39,8 @@ let LuksoNavbar = class extends TailwindElement {
37
39
  class=${customClassMap({
38
40
  [this.defaultStyles]: true,
39
41
  [this.centerStyles]: this.isCenter,
40
- [this.stickyStyles]: this.isSticky
42
+ [this.stickyStyles]: this.isSticky,
43
+ [this.transparentStyles]: this.isTransparent
41
44
  })}
42
45
  >
43
46
  <div
@@ -66,6 +69,9 @@ __decorateClass([
66
69
  __decorateClass([
67
70
  e({ type: Boolean, attribute: "is-sticky" })
68
71
  ], LuksoNavbar.prototype, "isSticky", 2);
72
+ __decorateClass([
73
+ e({ type: Boolean, attribute: "is-transparent" })
74
+ ], LuksoNavbar.prototype, "isTransparent", 2);
69
75
  LuksoNavbar = __decorateClass([
70
76
  e$1("lukso-navbar")
71
77
  ], LuksoNavbar);
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
5
+ const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-1d5d29da.cjs');
7
+ const styleMap = require('../../style-map-9f53097b.cjs');
8
8
 
9
9
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
10
 
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, y } from '../../index-29538039.js';
1
+ import { a as TailwindElement, y } from '../../index-bd97c2c3.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-6fd59df5.js';
3
+ import { i } from '../../style-map-8b1b8545.js';
4
4
 
5
5
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
6
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
5
+ const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { c as b, x, a as TailwindElement, y } from '../../index-29538039.js';
1
+ import { c as b, x, a as TailwindElement, y } from '../../index-bd97c2c3.js';
2
2
  import { i, t, b as e$1, e as e$2, a as e$3 } from '../../directive-9ec64c08.js';
3
3
 
4
4
  /**
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
5
+ const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-1d5d29da.cjs');
7
+ const styleMap = require('../../style-map-9f53097b.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
 
10
10
  var __defProp = Object.defineProperty;
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, y } from '../../index-29538039.js';
1
+ import { a as TailwindElement, y } from '../../index-bd97c2c3.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-6fd59df5.js';
3
+ import { i } from '../../style-map-8b1b8545.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
 
6
6
  var __defProp = Object.defineProperty;
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
5
+ const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const state = require('../../state-a62a7d5d.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
  require('../lukso-icon/index.cjs');
10
10
  require('../lukso-sanitize/index.cjs');
11
- require('../../style-map-1d5d29da.cjs');
11
+ require('../../style-map-9f53097b.cjs');
12
12
 
13
13
  const style = ":host {\n display: flex;\n height: 100%\n}";
14
14
 
@@ -1,10 +1,10 @@
1
- import { T as TailwindStyledElement, y } from '../../index-29538039.js';
1
+ import { T as TailwindStyledElement, y } from '../../index-bd97c2c3.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { t } from '../../state-7fde94d1.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
  import '../lukso-icon/index.js';
6
6
  import '../lukso-sanitize/index.js';
7
- import '../../style-map-6fd59df5.js';
7
+ import '../../style-map-8b1b8545.js';
8
8
 
9
9
  const style = ":host {\n display: flex;\n height: 100%\n}";
10
10
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
5
+ const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { x as x$2, T as TailwindStyledElement, y } from '../../index-29538039.js';
1
+ import { x as x$2, T as TailwindStyledElement, y } from '../../index-bd97c2c3.js';
2
2
  import { b as e$3, i as i$3, t as t$3, e as e$4, a as e$5 } from '../../directive-9ec64c08.js';
3
3
 
4
4
  /**
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
5
+ const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-1d5d29da.cjs');
7
+ const styleMap = require('../../style-map-9f53097b.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
 
10
10
  const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, y } from '../../index-29538039.js';
1
+ import { a as TailwindElement, y } from '../../index-bd97c2c3.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-6fd59df5.js';
3
+ import { i } from '../../style-map-8b1b8545.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
 
6
6
  const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
5
+ const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const index = require('../../index-7dc05ee5.cjs');
8
8
 
@@ -1,4 +1,4 @@
1
- import { L, x, a as TailwindElement, y } from '../../index-29538039.js';
1
+ import { L, x, a as TailwindElement, y } from '../../index-bd97c2c3.js';
2
2
  import { b as e, i, t, e as e$1, a as e$2 } from '../../directive-9ec64c08.js';
3
3
  import { c as customClassMap } from '../../index-714323c9.js';
4
4