@lukso/web-components 1.29.0 → 1.30.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 (54) 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 +1 -1
  4. package/dist/components/lukso-button/index.js +1 -1
  5. package/dist/components/lukso-card/index.cjs +22 -6
  6. package/dist/components/lukso-card/index.js +22 -6
  7. package/dist/components/lukso-icon/index.cjs +2 -2
  8. package/dist/components/lukso-icon/index.js +2 -2
  9. package/dist/components/lukso-input/index.cjs +1 -1
  10. package/dist/components/lukso-input/index.js +1 -1
  11. package/dist/components/lukso-modal/index.cjs +1 -1
  12. package/dist/components/lukso-modal/index.js +1 -1
  13. package/dist/components/lukso-navbar/index.cjs +1 -1
  14. package/dist/components/lukso-navbar/index.js +1 -1
  15. package/dist/components/lukso-profile/index.cjs +2 -2
  16. package/dist/components/lukso-profile/index.js +2 -2
  17. package/dist/components/lukso-progress/index.cjs +1 -1
  18. package/dist/components/lukso-progress/index.js +1 -1
  19. package/dist/components/lukso-sanitize/index.cjs +1 -1
  20. package/dist/components/lukso-sanitize/index.js +1 -1
  21. package/dist/components/lukso-share/index.cjs +1 -1
  22. package/dist/components/lukso-share/index.js +1 -1
  23. package/dist/components/lukso-switch/index.cjs +2 -2
  24. package/dist/components/lukso-switch/index.js +2 -2
  25. package/dist/components/lukso-tag/index.cjs +12 -4
  26. package/dist/components/lukso-tag/index.js +12 -4
  27. package/dist/components/lukso-terms/index.cjs +2 -2
  28. package/dist/components/lukso-terms/index.js +2 -2
  29. package/dist/components/lukso-test/index.cjs +1 -1
  30. package/dist/components/lukso-test/index.js +1 -1
  31. package/dist/components/lukso-username/index.cjs +20 -6
  32. package/dist/components/lukso-username/index.js +20 -6
  33. package/dist/components/lukso-wizard/index.cjs +1 -1
  34. package/dist/components/lukso-wizard/index.js +1 -1
  35. package/dist/index-c193b106.cjs +61 -0
  36. package/dist/index-f4ba403b.js +54 -0
  37. package/dist/index.cjs +2 -2
  38. package/dist/index.js +2 -2
  39. package/dist/shared/tailwind-element/index.cjs +1 -1
  40. package/dist/shared/tailwind-element/index.js +1 -1
  41. package/dist/src/components/lukso-card/index.d.ts +6 -1
  42. package/dist/src/components/lukso-card/lukso-card.stories.d.ts +4 -0
  43. package/dist/src/components/lukso-card/lukso-card.stories.d.ts.map +1 -1
  44. package/dist/src/components/lukso-tag/index.d.ts +5 -3
  45. package/dist/src/components/lukso-tag/lukso-tag.stories.d.ts +2 -0
  46. package/dist/src/components/lukso-tag/lukso-tag.stories.d.ts.map +1 -1
  47. package/dist/src/components/lukso-username/index.d.ts +2 -1
  48. package/dist/src/components/lukso-username/lukso-username.stories.d.ts +2 -2
  49. package/dist/src/components/lukso-username/lukso-username.stories.d.ts.map +1 -1
  50. package/dist/{style-map-09c2cd24.cjs → style-map-a3b7dea7.cjs} +1 -1
  51. package/dist/{style-map-105316ca.js → style-map-d2ea2813.js} +1 -1
  52. package/package.json +1 -1
  53. package/dist/index-90c43338.js +0 -54
  54. package/dist/index-c600bfd6.cjs +0 -61
@@ -18,11 +18,11 @@ const components_luksoTerms_index = require('./lukso-terms/index.cjs');
18
18
  const components_luksoTest_index = require('./lukso-test/index.cjs');
19
19
  const components_luksoUsername_index = require('./lukso-username/index.cjs');
20
20
  const components_luksoWizard_index = require('./lukso-wizard/index.cjs');
21
- const shared_tailwindElement_index = require('../index-c600bfd6.cjs');
21
+ const shared_tailwindElement_index = require('../index-c193b106.cjs');
22
22
  require('../directive-db00f5fb.cjs');
23
23
  require('../state-a62a7d5d.cjs');
24
24
  require('../index-7dc05ee5.cjs');
25
- require('../style-map-09c2cd24.cjs');
25
+ require('../style-map-a3b7dea7.cjs');
26
26
  require('../style-map-ce3031bc.cjs');
27
27
 
28
28
 
@@ -14,9 +14,9 @@ export { LuksoTerms } from './lukso-terms/index.js';
14
14
  export { LuksoTest } from './lukso-test/index.js';
15
15
  export { LuksoUsername } from './lukso-username/index.js';
16
16
  export { LuksoWizard } from './lukso-wizard/index.js';
17
- export { a as TailwindElement, T as TailwindStyledElement } from '../index-90c43338.js';
17
+ export { a as TailwindElement, T as TailwindStyledElement } from '../index-f4ba403b.js';
18
18
  import '../directive-9ec64c08.js';
19
19
  import '../state-7fde94d1.js';
20
20
  import '../index-714323c9.js';
21
- import '../style-map-105316ca.js';
21
+ import '../style-map-d2ea2813.js';
22
22
  import '../style-map-06219dec.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-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.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 { T as TailwindStyledElement, x } from '../../index-90c43338.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-f4ba403b.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,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-09c2cd24.cjs');
7
+ const styleMap = require('../../style-map-a3b7dea7.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
  require('../lukso-profile/index.cjs');
10
10
 
@@ -32,14 +32,20 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
32
32
  this.isFixedHeight = false;
33
33
  this.isFullWidth = false;
34
34
  this.customClass = "";
35
- this.defaultStyles = `rounded-24 shadow-neutral-drop-shadow-2xl`;
35
+ this.size = "medium";
36
+ this.isHoverable = false;
37
+ this.mediumStyles = `rounded-24 shadow-neutral-drop-shadow-2xl`;
38
+ this.smallStyles = `rounded-12 shadow-neutral-drop-shadow`;
39
+ this.smallHoverStyles = `hover:shadow-neutral-drop-shadow-1xl cursor-pointer transition`;
36
40
  }
37
41
  basicTemplate() {
38
42
  return shared_tailwindElement_index.x`
39
43
  <div
40
44
  data-testid="card"
41
45
  class="bg-neutral-100 ${index.customClassMap({
42
- [this.defaultStyles]: !this.customClass,
46
+ [this.mediumStyles]: !this.customClass && this.size === "medium",
47
+ [this.smallStyles]: !this.customClass && this.size === "small",
48
+ [this.smallHoverStyles]: this.isHoverable && this.size === "small",
43
49
  [this.customClass]: !!this.customClass,
44
50
  ["w-[362px]"]: this.isFixedWidth,
45
51
  ["min-h-[534px]"]: this.isFixedHeight,
@@ -55,7 +61,9 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
55
61
  <div
56
62
  data-testid="card"
57
63
  class="bg-neutral-100 grid grid-rows-[auto,1fr] ${index.customClassMap({
58
- [this.defaultStyles]: !this.customClass,
64
+ [this.mediumStyles]: !this.customClass && this.size === "medium",
65
+ [this.smallStyles]: !this.customClass && this.size === "small",
66
+ [this.smallHoverStyles]: this.isHoverable && this.size === "small",
59
67
  [this.customClass]: !!this.customClass,
60
68
  ["w-[362px]"]: this.isFixedWidth,
61
69
  ["min-h-[534px]"]: this.isFixedHeight,
@@ -76,7 +84,9 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
76
84
  <div
77
85
  data-testid="card"
78
86
  class="bg-neutral-100 grid grid-rows-[auto,1fr] ${index.customClassMap({
79
- [this.defaultStyles]: !this.customClass,
87
+ [this.mediumStyles]: !this.customClass && this.size === "medium",
88
+ [this.smallStyles]: !this.customClass && this.size === "small",
89
+ [this.smallHoverStyles]: this.isHoverable && this.size === "small",
80
90
  [this.customClass]: !!this.customClass,
81
91
  ["w-[362px]"]: this.isFixedWidth,
82
92
  ["min-h-[534px]"]: this.isFixedHeight,
@@ -154,6 +164,12 @@ __decorateClass([
154
164
  __decorateClass([
155
165
  directive.e({ type: String, attribute: "custom-class" })
156
166
  ], exports.LuksoCard.prototype, "customClass", 2);
167
+ __decorateClass([
168
+ directive.e({ type: String })
169
+ ], exports.LuksoCard.prototype, "size", 2);
170
+ __decorateClass([
171
+ directive.e({ type: Boolean, attribute: "is-hoverable" })
172
+ ], exports.LuksoCard.prototype, "isHoverable", 2);
157
173
  exports.LuksoCard = __decorateClass([
158
174
  directive.e$1("lukso-card")
159
175
  ], exports.LuksoCard);
@@ -1,6 +1,6 @@
1
- import { T as TailwindStyledElement, x } from '../../index-90c43338.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-f4ba403b.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-105316ca.js';
3
+ import { o } from '../../style-map-d2ea2813.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
  import '../lukso-profile/index.js';
6
6
 
@@ -28,14 +28,20 @@ let LuksoCard = class extends TailwindStyledElement(style) {
28
28
  this.isFixedHeight = false;
29
29
  this.isFullWidth = false;
30
30
  this.customClass = "";
31
- this.defaultStyles = `rounded-24 shadow-neutral-drop-shadow-2xl`;
31
+ this.size = "medium";
32
+ this.isHoverable = false;
33
+ this.mediumStyles = `rounded-24 shadow-neutral-drop-shadow-2xl`;
34
+ this.smallStyles = `rounded-12 shadow-neutral-drop-shadow`;
35
+ this.smallHoverStyles = `hover:shadow-neutral-drop-shadow-1xl cursor-pointer transition`;
32
36
  }
33
37
  basicTemplate() {
34
38
  return x`
35
39
  <div
36
40
  data-testid="card"
37
41
  class="bg-neutral-100 ${customClassMap({
38
- [this.defaultStyles]: !this.customClass,
42
+ [this.mediumStyles]: !this.customClass && this.size === "medium",
43
+ [this.smallStyles]: !this.customClass && this.size === "small",
44
+ [this.smallHoverStyles]: this.isHoverable && this.size === "small",
39
45
  [this.customClass]: !!this.customClass,
40
46
  ["w-[362px]"]: this.isFixedWidth,
41
47
  ["min-h-[534px]"]: this.isFixedHeight,
@@ -51,7 +57,9 @@ let LuksoCard = class extends TailwindStyledElement(style) {
51
57
  <div
52
58
  data-testid="card"
53
59
  class="bg-neutral-100 grid grid-rows-[auto,1fr] ${customClassMap({
54
- [this.defaultStyles]: !this.customClass,
60
+ [this.mediumStyles]: !this.customClass && this.size === "medium",
61
+ [this.smallStyles]: !this.customClass && this.size === "small",
62
+ [this.smallHoverStyles]: this.isHoverable && this.size === "small",
55
63
  [this.customClass]: !!this.customClass,
56
64
  ["w-[362px]"]: this.isFixedWidth,
57
65
  ["min-h-[534px]"]: this.isFixedHeight,
@@ -72,7 +80,9 @@ let LuksoCard = class extends TailwindStyledElement(style) {
72
80
  <div
73
81
  data-testid="card"
74
82
  class="bg-neutral-100 grid grid-rows-[auto,1fr] ${customClassMap({
75
- [this.defaultStyles]: !this.customClass,
83
+ [this.mediumStyles]: !this.customClass && this.size === "medium",
84
+ [this.smallStyles]: !this.customClass && this.size === "small",
85
+ [this.smallHoverStyles]: this.isHoverable && this.size === "small",
76
86
  [this.customClass]: !!this.customClass,
77
87
  ["w-[362px]"]: this.isFixedWidth,
78
88
  ["min-h-[534px]"]: this.isFixedHeight,
@@ -150,6 +160,12 @@ __decorateClass([
150
160
  __decorateClass([
151
161
  e({ type: String, attribute: "custom-class" })
152
162
  ], LuksoCard.prototype, "customClass", 2);
163
+ __decorateClass([
164
+ e({ type: String })
165
+ ], LuksoCard.prototype, "size", 2);
166
+ __decorateClass([
167
+ e({ type: Boolean, attribute: "is-hoverable" })
168
+ ], LuksoCard.prototype, "isHoverable", 2);
153
169
  LuksoCard = __decorateClass([
154
170
  e$1("lukso-card")
155
171
  ], LuksoCard);
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-09c2cd24.cjs');
7
+ const styleMap = require('../../style-map-a3b7dea7.cjs');
8
8
 
9
9
  const style = ":host {\n display: inline-flex\n}";
10
10
 
@@ -1,6 +1,6 @@
1
- import { x, T as TailwindStyledElement } from '../../index-90c43338.js';
1
+ import { x, T as TailwindStyledElement } from '../../index-f4ba403b.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-105316ca.js';
3
+ import { o } from '../../style-map-d2ea2813.js';
4
4
 
5
5
  const style = ":host {\n display: inline-flex\n}";
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-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.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, x, A } from '../../index-90c43338.js';
1
+ import { a as TailwindElement, x, A } from '../../index-f4ba403b.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-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.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, x } from '../../index-90c43338.js';
1
+ import { a as TailwindElement, x } from '../../index-f4ba403b.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-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.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, x } from '../../index-90c43338.js';
1
+ import { a as TailwindElement, x } from '../../index-f4ba403b.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,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-09c2cd24.cjs');
7
+ const styleMap = require('../../style-map-a3b7dea7.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, x } from '../../index-90c43338.js';
1
+ import { a as TailwindElement, x } from '../../index-f4ba403b.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-105316ca.js';
3
+ import { o } from '../../style-map-d2ea2813.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-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const styleMap = require('../../style-map-ce3031bc.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, x } from '../../index-90c43338.js';
1
+ import { a as TailwindElement, x } from '../../index-f4ba403b.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { o } from '../../style-map-06219dec.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-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { A, b as T, a as TailwindElement, x } from '../../index-90c43338.js';
1
+ import { A, b as T, a as TailwindElement, x } from '../../index-f4ba403b.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,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.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 { T as TailwindStyledElement, x } from '../../index-90c43338.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-f4ba403b.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,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-09c2cd24.cjs');
7
+ const styleMap = require('../../style-map-a3b7dea7.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, x } from '../../index-90c43338.js';
1
+ import { a as TailwindElement, x } from '../../index-f4ba403b.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-105316ca.js';
3
+ import { o } from '../../style-map-d2ea2813.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
 
6
6
  var __defProp = Object.defineProperty;
@@ -2,11 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-09c2cd24.cjs');
7
+ const styleMap = require('../../style-map-a3b7dea7.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
 
10
+ const style = ":host {\n display: inline-flex\n}";
11
+
10
12
  var __defProp = Object.defineProperty;
11
13
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
14
  var __decorateClass = (decorators, target, key, kind) => {
@@ -18,7 +20,7 @@ var __decorateClass = (decorators, target, key, kind) => {
18
20
  __defProp(target, key, result);
19
21
  return result;
20
22
  };
21
- exports.LuksoTag = class LuksoTag extends shared_tailwindElement_index.TailwindElement {
23
+ exports.LuksoTag = class LuksoTag extends shared_tailwindElement_index.TailwindStyledElement(style) {
22
24
  constructor() {
23
25
  super(...arguments);
24
26
  this.size = "small";
@@ -26,10 +28,14 @@ exports.LuksoTag = class LuksoTag extends shared_tailwindElement_index.TailwindE
26
28
  this.backgroundColor = "";
27
29
  this.textColor = "";
28
30
  this.defaultStyles = `inline-flex items-center justify-center border border-neutral-20 text-neutral-20`;
31
+ this.extraSmallStyles = `font-inter text-8 font-500 leading-20 h-[20px]`;
29
32
  this.smallStyles = `paragraph-inter-12-medium h-[28px]`;
30
33
  this.largeStyles = `paragraph-inter-14-medium h-[34px]`;
31
34
  }
32
35
  padding() {
36
+ if (this.size === "x-small" && !this.isRounded) {
37
+ return "px-1";
38
+ }
33
39
  if (this.size === "small" && this.isRounded) {
34
40
  return "px-3";
35
41
  }
@@ -46,7 +52,9 @@ exports.LuksoTag = class LuksoTag extends shared_tailwindElement_index.TailwindE
46
52
  [this.defaultStyles]: true,
47
53
  [this.padding()]: true,
48
54
  ["rounded-[56px]"]: this.isRounded,
49
- ["rounded-8"]: !this.isRounded,
55
+ ["rounded-8"]: !this.isRounded && this.size !== "x-small",
56
+ ["rounded-4"]: !this.isRounded && this.size === "x-small",
57
+ [this.extraSmallStyles]: this.size === "x-small",
50
58
  [this.smallStyles]: this.size === "small",
51
59
  [this.largeStyles]: this.size === "large"
52
60
  })}
@@ -1,8 +1,10 @@
1
- import { a as TailwindElement, x } from '../../index-90c43338.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-f4ba403b.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-105316ca.js';
3
+ import { o } from '../../style-map-d2ea2813.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
 
6
+ const style = ":host {\n display: inline-flex\n}";
7
+
6
8
  var __defProp = Object.defineProperty;
7
9
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
10
  var __decorateClass = (decorators, target, key, kind) => {
@@ -14,7 +16,7 @@ var __decorateClass = (decorators, target, key, kind) => {
14
16
  __defProp(target, key, result);
15
17
  return result;
16
18
  };
17
- let LuksoTag = class extends TailwindElement {
19
+ let LuksoTag = class extends TailwindStyledElement(style) {
18
20
  constructor() {
19
21
  super(...arguments);
20
22
  this.size = "small";
@@ -22,10 +24,14 @@ let LuksoTag = class extends TailwindElement {
22
24
  this.backgroundColor = "";
23
25
  this.textColor = "";
24
26
  this.defaultStyles = `inline-flex items-center justify-center border border-neutral-20 text-neutral-20`;
27
+ this.extraSmallStyles = `font-inter text-8 font-500 leading-20 h-[20px]`;
25
28
  this.smallStyles = `paragraph-inter-12-medium h-[28px]`;
26
29
  this.largeStyles = `paragraph-inter-14-medium h-[34px]`;
27
30
  }
28
31
  padding() {
32
+ if (this.size === "x-small" && !this.isRounded) {
33
+ return "px-1";
34
+ }
29
35
  if (this.size === "small" && this.isRounded) {
30
36
  return "px-3";
31
37
  }
@@ -42,7 +48,9 @@ let LuksoTag = class extends TailwindElement {
42
48
  [this.defaultStyles]: true,
43
49
  [this.padding()]: true,
44
50
  ["rounded-[56px]"]: this.isRounded,
45
- ["rounded-8"]: !this.isRounded,
51
+ ["rounded-8"]: !this.isRounded && this.size !== "x-small",
52
+ ["rounded-4"]: !this.isRounded && this.size === "x-small",
53
+ [this.extraSmallStyles]: this.size === "x-small",
46
54
  [this.smallStyles]: this.size === "small",
47
55
  [this.largeStyles]: this.size === "large"
48
56
  })}
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.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-09c2cd24.cjs');
11
+ require('../../style-map-a3b7dea7.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, x } from '../../index-90c43338.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-f4ba403b.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-105316ca.js';
7
+ import '../../style-map-d2ea2813.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-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { b as T$1, T as TailwindStyledElement, x as x$2 } from '../../index-90c43338.js';
1
+ import { b as T$1, T as TailwindStyledElement, x as x$2 } from '../../index-f4ba403b.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,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c600bfd6.cjs');
5
+ const shared_tailwindElement_index = require('../../index-c193b106.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const styleMap = require('../../style-map-ce3031bc.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
@@ -39,7 +39,8 @@ exports.LuksoUsername = class LuksoUsername extends shared_tailwindElement_index
39
39
  this.maxWidth = 200;
40
40
  this.size = "large";
41
41
  this.sliceBy = 8;
42
- this.addressColor = "neutral-20";
42
+ this.addressColor = "";
43
+ this.nameColor = "";
43
44
  /** Width of the first 4 bytes of the address */
44
45
  this.bytesWidth = 52;
45
46
  }
@@ -48,7 +49,12 @@ exports.LuksoUsername = class LuksoUsername extends shared_tailwindElement_index
48
49
  * e.g: #1234
49
50
  */
50
51
  addressBytesTemplate() {
51
- return shared_tailwindElement_index.x`<div class="inline-block text-neutral-60">
52
+ return shared_tailwindElement_index.x`<div
53
+ class="inline-block text-neutral-60 "
54
+ style=${styleMap.o({
55
+ color: `var(--${this.addressColor})`
56
+ })}
57
+ >
52
58
  #${this.address.slice(2, 6)}
53
59
  </div>`;
54
60
  }
@@ -58,10 +64,14 @@ exports.LuksoUsername = class LuksoUsername extends shared_tailwindElement_index
58
64
  */
59
65
  nameTemplate() {
60
66
  return shared_tailwindElement_index.x`<div
61
- class="inline-block whitespace-nowrap overflow-hidden text-ellipsis text-transparent
62
- bg-clip-text bg-gradient-to-r from-gradient-1-start to-gradient-1-end"
67
+ class="inline-block whitespace-nowrap overflow-hidden text-ellipsis ${index.customClassMap(
68
+ {
69
+ ["text-transparent bg-clip-text bg-gradient-to-r from-gradient-1-start to-gradient-1-end"]: this.nameColor === ""
70
+ }
71
+ )}"
63
72
  style=${styleMap.o({
64
- maxWidth: `${this.maxWidth - this.bytesWidth}px`
73
+ maxWidth: `${this.maxWidth - this.bytesWidth}px`,
74
+ color: `var(--${this.nameColor})`
65
75
  })}
66
76
  >
67
77
  @${this.name}
@@ -95,6 +105,7 @@ exports.LuksoUsername = class LuksoUsername extends shared_tailwindElement_index
95
105
  })();
96
106
  return shared_tailwindElement_index.x`<div
97
107
  class="inline-flex ${index.customClassMap({
108
+ "paragraph-ptmono-10-bold": this.size === "x-small",
98
109
  "paragraph-ptmono-12-bold": this.size === "small",
99
110
  "paragraph-ptmono-16-bold": this.size === "large"
100
111
  })}"
@@ -121,6 +132,9 @@ __decorateClass([
121
132
  __decorateClass([
122
133
  directive.e({ type: String, attribute: "address-color" })
123
134
  ], exports.LuksoUsername.prototype, "addressColor", 2);
135
+ __decorateClass([
136
+ directive.e({ type: String, attribute: "name-color" })
137
+ ], exports.LuksoUsername.prototype, "nameColor", 2);
124
138
  exports.LuksoUsername = __decorateClass([
125
139
  directive.e$1("lukso-username")
126
140
  ], exports.LuksoUsername);
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, x } from '../../index-90c43338.js';
1
+ import { a as TailwindElement, x } from '../../index-f4ba403b.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { o } from '../../style-map-06219dec.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
@@ -35,7 +35,8 @@ let LuksoUsername = class extends TailwindElement {
35
35
  this.maxWidth = 200;
36
36
  this.size = "large";
37
37
  this.sliceBy = 8;
38
- this.addressColor = "neutral-20";
38
+ this.addressColor = "";
39
+ this.nameColor = "";
39
40
  /** Width of the first 4 bytes of the address */
40
41
  this.bytesWidth = 52;
41
42
  }
@@ -44,7 +45,12 @@ let LuksoUsername = class extends TailwindElement {
44
45
  * e.g: #1234
45
46
  */
46
47
  addressBytesTemplate() {
47
- return x`<div class="inline-block text-neutral-60">
48
+ return x`<div
49
+ class="inline-block text-neutral-60 "
50
+ style=${o({
51
+ color: `var(--${this.addressColor})`
52
+ })}
53
+ >
48
54
  #${this.address.slice(2, 6)}
49
55
  </div>`;
50
56
  }
@@ -54,10 +60,14 @@ let LuksoUsername = class extends TailwindElement {
54
60
  */
55
61
  nameTemplate() {
56
62
  return x`<div
57
- class="inline-block whitespace-nowrap overflow-hidden text-ellipsis text-transparent
58
- bg-clip-text bg-gradient-to-r from-gradient-1-start to-gradient-1-end"
63
+ class="inline-block whitespace-nowrap overflow-hidden text-ellipsis ${customClassMap(
64
+ {
65
+ ["text-transparent bg-clip-text bg-gradient-to-r from-gradient-1-start to-gradient-1-end"]: this.nameColor === ""
66
+ }
67
+ )}"
59
68
  style=${o({
60
- maxWidth: `${this.maxWidth - this.bytesWidth}px`
69
+ maxWidth: `${this.maxWidth - this.bytesWidth}px`,
70
+ color: `var(--${this.nameColor})`
61
71
  })}
62
72
  >
63
73
  @${this.name}
@@ -91,6 +101,7 @@ let LuksoUsername = class extends TailwindElement {
91
101
  })();
92
102
  return x`<div
93
103
  class="inline-flex ${customClassMap({
104
+ "paragraph-ptmono-10-bold": this.size === "x-small",
94
105
  "paragraph-ptmono-12-bold": this.size === "small",
95
106
  "paragraph-ptmono-16-bold": this.size === "large"
96
107
  })}"
@@ -117,6 +128,9 @@ __decorateClass([
117
128
  __decorateClass([
118
129
  e({ type: String, attribute: "address-color" })
119
130
  ], LuksoUsername.prototype, "addressColor", 2);
131
+ __decorateClass([
132
+ e({ type: String, attribute: "name-color" })
133
+ ], LuksoUsername.prototype, "nameColor", 2);
120
134
  LuksoUsername = __decorateClass([
121
135
  e$1("lukso-username")
122
136
  ], LuksoUsername);