@lukso/web-components 1.172.13 → 1.172.14

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 (126) hide show
  1. package/dist/chunks/cn-LM_JlZIN.js +36 -0
  2. package/dist/chunks/cn-zamUNFMe.js +39 -0
  3. package/dist/chunks/directive-CY66atYi.js +22 -0
  4. package/dist/chunks/directive-DUHAbymA.js +15 -0
  5. package/dist/chunks/index-BNt_JinF.js +212 -0
  6. package/dist/chunks/{index-DG4rMUh3.js → index-BOEPqh0N.js} +1 -1
  7. package/dist/chunks/{index-F8ll4iy2.js → index-C5S-_QDF.js} +1 -1
  8. package/dist/chunks/{index-B_H2eYG_.js → index-CA6SrfZ-.js} +9 -8
  9. package/dist/chunks/{index-CZGvLdJ0.js → index-CqZm8OfY.js} +1 -2
  10. package/dist/chunks/index-Cy2_2lFt.js +214 -0
  11. package/dist/chunks/{index-Dn2DJhID.js → index-Ds-r8fCt.js} +77 -74
  12. package/dist/chunks/{index-C5YyB6ug.js → index-DvLZWpq9.js} +2 -3
  13. package/dist/chunks/{index-D_5wz2k1.js → index-UVrFZqIM.js} +79 -76
  14. package/dist/chunks/{index-BHAtoIlu.js → index-cakeic-M.js} +9 -8
  15. package/dist/chunks/{style-map-B7XFhSOK.js → style-map-AEeBQfPb.js} +2 -3
  16. package/dist/chunks/{style-map-BPljJihp.js → style-map-auscxO0L.js} +1 -2
  17. package/dist/components/index.cjs +4 -5
  18. package/dist/components/index.js +4 -5
  19. package/dist/components/lukso-alert/index.cjs +16 -15
  20. package/dist/components/lukso-alert/index.js +16 -15
  21. package/dist/components/lukso-button/index.cjs +42 -40
  22. package/dist/components/lukso-button/index.js +39 -37
  23. package/dist/components/lukso-card/index.cjs +66 -71
  24. package/dist/components/lukso-card/index.js +48 -53
  25. package/dist/components/lukso-checkbox/index.cjs +27 -26
  26. package/dist/components/lukso-checkbox/index.js +27 -26
  27. package/dist/components/lukso-collapse/index.cjs +27 -26
  28. package/dist/components/lukso-collapse/index.js +26 -25
  29. package/dist/components/lukso-color-picker/index.cjs +33 -31
  30. package/dist/components/lukso-color-picker/index.js +32 -30
  31. package/dist/components/lukso-dropdown/index.cjs +20 -19
  32. package/dist/components/lukso-dropdown/index.js +20 -19
  33. package/dist/components/lukso-dropdown-option/index.cjs +12 -11
  34. package/dist/components/lukso-dropdown-option/index.js +12 -11
  35. package/dist/components/lukso-footer/index.cjs +5 -4
  36. package/dist/components/lukso-footer/index.js +5 -4
  37. package/dist/components/lukso-form-description/index.cjs +7 -6
  38. package/dist/components/lukso-form-description/index.js +7 -6
  39. package/dist/components/lukso-form-error/index.cjs +7 -6
  40. package/dist/components/lukso-form-error/index.js +7 -6
  41. package/dist/components/lukso-form-label/index.cjs +8 -7
  42. package/dist/components/lukso-form-label/index.js +8 -7
  43. package/dist/components/lukso-icon/index.cjs +268 -267
  44. package/dist/components/lukso-icon/index.js +268 -267
  45. package/dist/components/lukso-image/index.cjs +12 -12
  46. package/dist/components/lukso-image/index.js +12 -12
  47. package/dist/components/lukso-input/index.cjs +49 -47
  48. package/dist/components/lukso-input/index.js +48 -46
  49. package/dist/components/lukso-markdown/index.cjs +13 -83
  50. package/dist/components/lukso-markdown/index.js +13 -83
  51. package/dist/components/lukso-markdown-editor/index.cjs +68 -67
  52. package/dist/components/lukso-markdown-editor/index.js +67 -66
  53. package/dist/components/lukso-modal/index.cjs +12 -11
  54. package/dist/components/lukso-modal/index.js +11 -10
  55. package/dist/components/lukso-navbar/index.cjs +30 -30
  56. package/dist/components/lukso-navbar/index.js +30 -30
  57. package/dist/components/lukso-pagination/index.cjs +16 -16
  58. package/dist/components/lukso-pagination/index.js +16 -16
  59. package/dist/components/lukso-profile/index.cjs +162 -11
  60. package/dist/components/lukso-profile/index.js +165 -5
  61. package/dist/components/lukso-progress/index.cjs +16 -13
  62. package/dist/components/lukso-progress/index.js +13 -10
  63. package/dist/components/lukso-qr-code/index.cjs +17 -34
  64. package/dist/components/lukso-qr-code/index.js +16 -33
  65. package/dist/components/lukso-radio/index.cjs +27 -25
  66. package/dist/components/lukso-radio/index.js +25 -23
  67. package/dist/components/lukso-radio-group/index.cjs +9 -9
  68. package/dist/components/lukso-radio-group/index.js +9 -9
  69. package/dist/components/lukso-sanitize/index.cjs +5 -4
  70. package/dist/components/lukso-sanitize/index.js +5 -4
  71. package/dist/components/lukso-search/index.cjs +11 -8
  72. package/dist/components/lukso-search/index.js +11 -8
  73. package/dist/components/lukso-select/index.cjs +47 -46
  74. package/dist/components/lukso-select/index.js +46 -45
  75. package/dist/components/lukso-share/index.cjs +7 -6
  76. package/dist/components/lukso-share/index.js +7 -6
  77. package/dist/components/lukso-switch/index.cjs +16 -15
  78. package/dist/components/lukso-switch/index.js +16 -15
  79. package/dist/components/lukso-tag/index.cjs +13 -12
  80. package/dist/components/lukso-tag/index.js +12 -11
  81. package/dist/components/lukso-terms/index.cjs +9 -8
  82. package/dist/components/lukso-terms/index.js +9 -8
  83. package/dist/components/lukso-textarea/index.cjs +36 -34
  84. package/dist/components/lukso-textarea/index.js +35 -33
  85. package/dist/components/lukso-tooltip/index.cjs +27 -3461
  86. package/dist/components/lukso-tooltip/index.js +27 -3461
  87. package/dist/components/lukso-username/index.cjs +11 -7
  88. package/dist/components/lukso-username/index.js +11 -7
  89. package/dist/components/lukso-wizard/index.cjs +13 -12
  90. package/dist/components/lukso-wizard/index.js +11 -10
  91. package/dist/index.cjs +6 -6
  92. package/dist/index.js +5 -5
  93. package/dist/shared/tailwind-element/index.cjs +15 -3
  94. package/dist/shared/tailwind-element/index.js +17 -1
  95. package/dist/vite.full.config.d.ts.map +1 -1
  96. package/package.json +7 -1
  97. package/dist/chunks/_commonjsHelpers-B85MJLTf.js +0 -5
  98. package/dist/chunks/_commonjsHelpers-CFO10eej.js +0 -7
  99. package/dist/chunks/axe-DJKac19y.js +0 -35093
  100. package/dist/chunks/axe-MHuN9KU0.js +0 -35097
  101. package/dist/chunks/base-Bn-zDNuZ.js +0 -93
  102. package/dist/chunks/base-Cl6v8-BZ.js +0 -8
  103. package/dist/chunks/base-KJhhKWYy.js +0 -91
  104. package/dist/chunks/base-NFGX42U4.js +0 -10
  105. package/dist/chunks/chunk-LQIOVPBE-CGhQ79Di.js +0 -370
  106. package/dist/chunks/chunk-LQIOVPBE-kQFZF_OS.js +0 -372
  107. package/dist/chunks/directive-BKuZRRPO.js +0 -8
  108. package/dist/chunks/directive-DT5Y-Nw0.js +0 -12
  109. package/dist/chunks/index-5X9ujrWL.js +0 -41
  110. package/dist/chunks/index-B9iart53.js +0 -2545
  111. package/dist/chunks/index-BAf8Hzhe.js +0 -611
  112. package/dist/chunks/index-BBFSnMaE.js +0 -1345
  113. package/dist/chunks/index-BDyLu6M0.js +0 -609
  114. package/dist/chunks/index-BxQ_0s_1.js +0 -50
  115. package/dist/chunks/index-CaJky2qL.js +0 -2547
  116. package/dist/chunks/index-glHBylgQ.js +0 -1347
  117. package/dist/chunks/isAddress-B1R_6-uN.js +0 -745
  118. package/dist/chunks/isAddress-BUdSrCaY.js +0 -743
  119. package/dist/chunks/property-D6IL6zax.js +0 -11
  120. package/dist/chunks/property-DfumgIL6.js +0 -9
  121. package/dist/chunks/query-CHb9Ft_d.js +0 -9
  122. package/dist/chunks/query-D3HF7Pde.js +0 -11
  123. package/dist/chunks/state-CFjY89m3.js +0 -11
  124. package/dist/chunks/state-CaelFSbE.js +0 -9
  125. package/dist/chunks/unsafe-html-BHBLEMoa.js +0 -10
  126. package/dist/chunks/unsafe-html-DiwkOQlV.js +0 -12
@@ -2,31 +2,26 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const components_luksoProfile_index = require('../../chunks/index-BAf8Hzhe.js');
6
- const shared_tailwindElement_index = require('../../chunks/index-BxQ_0s_1.js');
7
- const property = require('../../chunks/property-D6IL6zax.js');
8
- const state = require('../../chunks/state-CFjY89m3.js');
9
- const base = require('../../chunks/base-NFGX42U4.js');
10
- const styleMap = require('../../chunks/style-map-B7XFhSOK.js');
11
- const index = require('../../chunks/index-CaJky2qL.js');
5
+ const makeBlockie = require('ethereum-blockies-base64');
6
+ const lit = require('lit');
7
+ const decorators_js = require('lit/decorators.js');
8
+ const styleMap = require('../../chunks/style-map-AEeBQfPb.js');
9
+ const tailwindVariants = require('tailwind-variants');
12
10
  const safeCustomElement = require('../../chunks/safe-custom-element-tQ-epw6h.js');
11
+ const shared_tailwindElement_index = require('../../shared/tailwind-element/index.cjs');
12
+ require('../lukso-profile/index.cjs');
13
13
  require('../../tailwind-config.cjs');
14
- const axe = require('../../chunks/axe-MHuN9KU0.js');
15
- const isAddress = require('../../chunks/isAddress-B1R_6-uN.js');
16
- const index$1 = require('../../chunks/index-C5YyB6ug.js');
14
+ const cn = require('../../chunks/cn-zamUNFMe.js');
15
+ const viem = require('viem');
16
+ require('axe-core');
17
+ const index = require('../../chunks/index-DvLZWpq9.js');
17
18
  require('../lukso-image/index.cjs');
18
19
 
19
- /**
20
- * @license
21
- * Copyright 2021 Google LLC
22
- * SPDX-License-Identifier: BSD-3-Clause
23
- */function o(o){return (e,n)=>{const{slot:r,selector:s}=o??{},c="slot"+(r?`[name=${r}]`:":not([name])");return base.e(e,n,{get(){const t=this.renderRoot?.querySelector(c),e=t?.assignedElements(o)??[];return void 0===s?e:e.filter((t=>t.matches(s)))}})}}
24
-
25
20
  const backgroundGradient = (address) => {
26
21
  let gradientStart = "#24354210";
27
22
  let gradientEnd = "#24354220";
28
23
  const opacity = "80";
29
- if (address && isAddress.isAddress(address)) {
24
+ if (address && viem.isAddress(address)) {
30
25
  gradientStart = `#${address.slice(2, 8)}${opacity}`;
31
26
  gradientEnd = `#${address.slice(36, 42)}${opacity}`;
32
27
  }
@@ -60,7 +55,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
60
55
  this.hasOverlay = false;
61
56
  this.isEoa = false;
62
57
  this.hasBottom = false;
63
- this.cardStyles = index.ce({
58
+ this.cardStyles = tailwindVariants.tv({
64
59
  base: "bg-neutral-100",
65
60
  variants: {
66
61
  borderRadius: {
@@ -109,14 +104,14 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
109
104
  isHoverable: this.isHoverable,
110
105
  hasNoWidth: !this.width
111
106
  });
112
- return shared_tailwindElement_index.x`
107
+ return lit.html`
113
108
  <div
114
109
  data-testid="card"
115
- style=${index$1.customStyleMap({
110
+ style=${index.customStyleMap({
116
111
  [`min-height: ${this.height}px`]: !!this.height,
117
112
  [`width: ${this.width}px`]: !!this.width
118
113
  })}
119
- class=${axe.cn(cardStyles, this.customClass)}
114
+ class=${cn.cn(cardStyles, this.customClass)}
120
115
  >
121
116
  <slot name="content"></slot>
122
117
  </div>
@@ -130,14 +125,14 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
130
125
  hasNoWidth: !this.width,
131
126
  class: "grid grid-rows-[auto,1fr] overflow-hidden"
132
127
  });
133
- return shared_tailwindElement_index.x`
128
+ return lit.html`
134
129
  <div
135
130
  data-testid="card"
136
131
  style=${styleMap.o({
137
132
  minHeight: `${this.height}px`,
138
133
  width: `${this.width}px`
139
134
  })}
140
- class=${axe.cn(cardStyles, this.customClass)}
135
+ class=${cn.cn(cardStyles, this.customClass)}
141
136
  >
142
137
  <div class=${this.headerClass}>
143
138
  <slot name="header"></slot>
@@ -158,45 +153,45 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
158
153
  hasNoWidth: !this.width,
159
154
  class: "grid grid-rows-[1fr,auto]"
160
155
  });
161
- return shared_tailwindElement_index.x`
156
+ return lit.html`
162
157
  <div
163
158
  data-testid="card"
164
- style=${index$1.customStyleMap({
159
+ style=${index.customStyleMap({
165
160
  [`min-height: ${this.height}px`]: !!this.height,
166
161
  [`width: ${this.width}px`]: !!this.width
167
162
  })}
168
- class=${axe.cn(cardStyles, this.customClass)}
163
+ class=${cn.cn(cardStyles, this.customClass)}
169
164
  >
170
165
  <div
171
166
  style=${styleMap.o({
172
167
  backgroundImage: backgroundGradient(this.profileAddress)
173
168
  })}
174
- class=${axe.cn(
169
+ class=${cn.cn(
175
170
  "min-h-[92px] -mb-6 w-full rounded-t-[inherit] rounded-b-0 relative",
176
171
  this.headerClass
177
172
  )}
178
173
  >
179
- ${this.backgroundUrl && shared_tailwindElement_index.x`<div
174
+ ${this.backgroundUrl && lit.html`<div
180
175
  class="rounded-t-[inherit] overflow-hidden absolute inset-0"
181
176
  >
182
177
  <lukso-image src=${this.backgroundUrl}></lukso-image>
183
178
  </div>`}
184
- ${this.hasOverlay ? shared_tailwindElement_index.x`<div
179
+ ${this.hasOverlay ? lit.html`<div
185
180
  class="h-full full rounded-t-[inherit] rounded-b-0 bg-neutral-20/10 absolute"
186
- ></div>` : shared_tailwindElement_index.E}
181
+ ></div>` : lit.nothing}
187
182
  <div class="relative h-full">
188
183
  <slot name="header"></slot>
189
184
  </div>
190
185
  </div>
191
186
 
192
187
  <div
193
- style=${index$1.customStyleMap({
188
+ style=${index.customStyleMap({
194
189
  [`width: ${this.width}px`]: !!this.width
195
190
  })}
196
191
  class="bg-neutral-100 rounded-[inherit] relative break-normal"
197
192
  >
198
193
  <lukso-profile
199
- profile-url=${this.isEoa ? components_luksoProfile_index.makeBlockie(this.profileAddress) : this.profileUrl}
194
+ profile-url=${this.isEoa ? makeBlockie(this.profileAddress) : this.profileUrl}
200
195
  borderRadius="large"
201
196
  profile-address=${this.profileAddress}
202
197
  ?has-identicon=${!this.isEoa}
@@ -222,25 +217,25 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
222
217
  hasNoWidth: !this.width,
223
218
  class: "grid grid-rows-[auto,1fr]"
224
219
  });
225
- return shared_tailwindElement_index.x`
220
+ return lit.html`
226
221
  <div
227
222
  data-testid="card"
228
- style=${index$1.customStyleMap({
223
+ style=${index.customStyleMap({
229
224
  [`min-height: ${this.height}px`]: !!this.height,
230
225
  [`width: ${this.width}px`]: !!this.width
231
226
  })}
232
- class=${axe.cn(cardStyles, this.customClass)}
227
+ class=${cn.cn(cardStyles, this.customClass)}
233
228
  >
234
229
  <div
235
230
  style=${styleMap.o({
236
231
  backgroundImage: backgroundGradient(this.profileAddress)
237
232
  })}
238
- class=${axe.cn(
233
+ class=${cn.cn(
239
234
  "min-h-[129px] -mb-6 bg-center bg-cover rounded-t-[inherit] rounded-b-0 relative bg-neutral-100",
240
235
  this.headerClass
241
236
  )}
242
237
  >
243
- ${this.backgroundUrl && shared_tailwindElement_index.x`<div
238
+ ${this.backgroundUrl && lit.html`<div
244
239
  class="rounded-t-[inherit] overflow-hidden absolute inset-0"
245
240
  >
246
241
  <lukso-image src=${this.backgroundUrl}></lukso-image>
@@ -254,12 +249,12 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
254
249
  </div>
255
250
  <div class="grid grid-rows-[max-content,auto] rounded-b-[inherit]">
256
251
  <div
257
- class=${axe.cn("bg-neutral-100 relative", {
252
+ class=${cn.cn("bg-neutral-100 relative", {
258
253
  "rounded-b-[inherit]": !this.hasBottom
259
254
  })}
260
255
  >
261
256
  <lukso-profile
262
- profile-url=${this.isEoa ? components_luksoProfile_index.makeBlockie(this.profileAddress) : this.profileUrl}
257
+ profile-url=${this.isEoa ? makeBlockie(this.profileAddress) : this.profileUrl}
263
258
  borderRadius="large"
264
259
  profile-address=${this.profileAddress}
265
260
  ?has-identicon=${!this.isEoa}
@@ -291,25 +286,25 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
291
286
  hasNoWidth: !this.width,
292
287
  class: "grid grid-rows-[auto,1fr]"
293
288
  });
294
- return shared_tailwindElement_index.x`
289
+ return lit.html`
295
290
  <div
296
291
  data-testid="card"
297
- style=${index$1.customStyleMap({
292
+ style=${index.customStyleMap({
298
293
  [`min-height: ${this.height}px`]: !!this.height,
299
294
  [`width: ${this.width}px`]: !!this.width
300
295
  })}
301
- class=${axe.cn(cardStyles, this.customClass)}
296
+ class=${cn.cn(cardStyles, this.customClass)}
302
297
  >
303
298
  <div
304
299
  style=${styleMap.o({
305
300
  backgroundImage: backgroundGradient(this.profileAddress)
306
301
  })}
307
- class=${axe.cn(
302
+ class=${cn.cn(
308
303
  "min-h-10 bg-center bg-cover rounded-t-[inherit] rounded-b-0 relative bg-neutral-100",
309
304
  this.headerClass
310
305
  )}
311
306
  >
312
- ${this.backgroundUrl && shared_tailwindElement_index.x`<div
307
+ ${this.backgroundUrl && lit.html`<div
313
308
  class="rounded-t-[inherit] overflow-hidden absolute inset-0"
314
309
  >
315
310
  <lukso-image src=${this.backgroundUrl}></lukso-image>
@@ -324,7 +319,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
324
319
  <div class="grid grid-rows-[max-content] rounded-b-[inherit]">
325
320
  <div class="bg-neutral-100 relative pt-5 rounded-b-[inherit]">
326
321
  <lukso-profile
327
- profile-url=${this.isEoa ? components_luksoProfile_index.makeBlockie(this.profileAddress) : this.profileUrl}
322
+ profile-url=${this.isEoa ? makeBlockie(this.profileAddress) : this.profileUrl}
328
323
  borderRadius="large"
329
324
  profile-address=${this.profileAddress}
330
325
  ?has-identicon=${!this.isEoa}
@@ -346,25 +341,25 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
346
341
  hasNoWidth: !this.width,
347
342
  class: "flex"
348
343
  });
349
- return shared_tailwindElement_index.x`
344
+ return lit.html`
350
345
  <div
351
346
  data-testid="card"
352
- style=${index$1.customStyleMap({
347
+ style=${index.customStyleMap({
353
348
  [`min-height: ${this.height}px`]: !!this.height,
354
349
  "min-height: 240px": !this.height,
355
350
  [`width: ${this.width}px`]: !!this.width
356
351
  })}
357
- class=${axe.cn(cardStyles, this.customClass)}
352
+ class=${cn.cn(cardStyles, this.customClass)}
358
353
  >
359
354
  <div
360
355
  class="h-full w-full -mb-6 bg-center bg-cover rounded-[inherit] relative"
361
356
  >
362
- ${this.backgroundUrl && shared_tailwindElement_index.x`<div class="rounded-[inherit] overflow-hidden absolute inset-0">
357
+ ${this.backgroundUrl && lit.html`<div class="rounded-[inherit] overflow-hidden absolute inset-0">
363
358
  <lukso-image src=${this.backgroundUrl}></lukso-image>
364
359
  </div>`}
365
- ${this.hasOverlay && this.backgroundUrl ? shared_tailwindElement_index.x`<div
360
+ ${this.hasOverlay && this.backgroundUrl ? lit.html`<div
366
361
  class="h-full w-full rounded-[inherit] bg-neutral-20/10 absolute"
367
- ></div>` : shared_tailwindElement_index.E}
362
+ ></div>` : lit.nothing}
368
363
  <div
369
364
  class="h-full w-full flex flex-col items-center justify-center absolute"
370
365
  >
@@ -382,25 +377,25 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
382
377
  hasNoWidth: !this.width,
383
378
  class: "grid grid-rows-[auto,1fr]"
384
379
  });
385
- return shared_tailwindElement_index.x`
380
+ return lit.html`
386
381
  <div
387
382
  data-testid="card"
388
- style=${index$1.customStyleMap({
383
+ style=${index.customStyleMap({
389
384
  [`min-height: ${this.height}px`]: !!this.height,
390
385
  [`width: ${this.width}px`]: !!this.width
391
386
  })}
392
- class=${axe.cn(cardStyles, this.customClass)}
387
+ class=${cn.cn(cardStyles, this.customClass)}
393
388
  >
394
389
  <div
395
390
  style=${styleMap.o({
396
391
  backgroundImage: backgroundGradient(this.profileAddress)
397
392
  })}
398
- class=${axe.cn(
393
+ class=${cn.cn(
399
394
  "min-h-[inherit] bg-center bg-cover rounded-t-[inherit] rounded-b-0 relative",
400
395
  this.headerClass
401
396
  )}
402
397
  >
403
- ${this.backgroundUrl && shared_tailwindElement_index.x`
398
+ ${this.backgroundUrl && lit.html`
404
399
  <div class="rounded-t-[inherit] overflow-hidden absolute inset-0">
405
400
  <lukso-image src=${this.backgroundUrl}></lukso-image>
406
401
  </div>
@@ -435,49 +430,49 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
435
430
  }
436
431
  };
437
432
  __decorateClass([
438
- property.n({ type: String })
433
+ decorators_js.property({ type: String })
439
434
  ], exports.LuksoCard.prototype, "variant", 2);
440
435
  __decorateClass([
441
- property.n({ type: String, attribute: "background-url" })
436
+ decorators_js.property({ type: String, attribute: "background-url" })
442
437
  ], exports.LuksoCard.prototype, "backgroundUrl", 2);
443
438
  __decorateClass([
444
- property.n({ type: String, attribute: "profile-url" })
439
+ decorators_js.property({ type: String, attribute: "profile-url" })
445
440
  ], exports.LuksoCard.prototype, "profileUrl", 2);
446
441
  __decorateClass([
447
- property.n({ type: String, attribute: "profile-address" })
442
+ decorators_js.property({ type: String, attribute: "profile-address" })
448
443
  ], exports.LuksoCard.prototype, "profileAddress", 2);
449
444
  __decorateClass([
450
- property.n({ type: Number })
445
+ decorators_js.property({ type: Number })
451
446
  ], exports.LuksoCard.prototype, "width", 2);
452
447
  __decorateClass([
453
- property.n({ type: Number })
448
+ decorators_js.property({ type: Number })
454
449
  ], exports.LuksoCard.prototype, "height", 2);
455
450
  __decorateClass([
456
- property.n({ type: String, attribute: "custom-class" })
451
+ decorators_js.property({ type: String, attribute: "custom-class" })
457
452
  ], exports.LuksoCard.prototype, "customClass", 2);
458
453
  __decorateClass([
459
- property.n({ type: String, attribute: "header-class" })
454
+ decorators_js.property({ type: String, attribute: "header-class" })
460
455
  ], exports.LuksoCard.prototype, "headerClass", 2);
461
456
  __decorateClass([
462
- property.n({ type: String, attribute: "border-radius" })
457
+ decorators_js.property({ type: String, attribute: "border-radius" })
463
458
  ], exports.LuksoCard.prototype, "borderRadius", 2);
464
459
  __decorateClass([
465
- property.n({ type: String })
460
+ decorators_js.property({ type: String })
466
461
  ], exports.LuksoCard.prototype, "shadow", 2);
467
462
  __decorateClass([
468
- property.n({ type: Boolean, attribute: "is-hoverable" })
463
+ decorators_js.property({ type: Boolean, attribute: "is-hoverable" })
469
464
  ], exports.LuksoCard.prototype, "isHoverable", 2);
470
465
  __decorateClass([
471
- property.n({ type: Boolean, attribute: "has-overlay" })
466
+ decorators_js.property({ type: Boolean, attribute: "has-overlay" })
472
467
  ], exports.LuksoCard.prototype, "hasOverlay", 2);
473
468
  __decorateClass([
474
- property.n({ type: Boolean, attribute: "is-eoa" })
469
+ decorators_js.property({ type: Boolean, attribute: "is-eoa" })
475
470
  ], exports.LuksoCard.prototype, "isEoa", 2);
476
471
  __decorateClass([
477
- o({ slot: "bottom", flatten: true })
472
+ decorators_js.queryAssignedElements({ slot: "bottom", flatten: true })
478
473
  ], exports.LuksoCard.prototype, "bottomNodes", 2);
479
474
  __decorateClass([
480
- state.r()
475
+ decorators_js.state()
481
476
  ], exports.LuksoCard.prototype, "hasBottom", 2);
482
477
  exports.LuksoCard = __decorateClass([
483
478
  safeCustomElement.safeCustomElement("lukso-card")
@@ -1,23 +1,18 @@
1
- import { m as makeBlockie } from '../../chunks/index-BDyLu6M0.js';
2
- import { b as TailwindStyledElement, x, E } from '../../chunks/index-5X9ujrWL.js';
3
- import { n } from '../../chunks/property-DfumgIL6.js';
4
- import { r } from '../../chunks/state-CaelFSbE.js';
5
- import { e } from '../../chunks/base-Cl6v8-BZ.js';
6
- import { o as o$1 } from '../../chunks/style-map-BPljJihp.js';
7
- import { c as ce } from '../../chunks/index-B9iart53.js';
1
+ import makeBlockie from 'ethereum-blockies-base64';
2
+ import { html, nothing } from 'lit';
3
+ import { property, queryAssignedElements, state } from 'lit/decorators.js';
4
+ import { o } from '../../chunks/style-map-auscxO0L.js';
5
+ import { tv } from 'tailwind-variants';
8
6
  import { s as safeCustomElement } from '../../chunks/safe-custom-element-qdGIR_v6.js';
7
+ import { TailwindStyledElement } from '../../shared/tailwind-element/index.js';
8
+ import '../lukso-profile/index.js';
9
9
  import '../../tailwind-config.js';
10
- import { c as cn } from '../../chunks/axe-DJKac19y.js';
11
- import { i as isAddress } from '../../chunks/isAddress-BUdSrCaY.js';
12
- import { c as customStyleMap } from '../../chunks/index-CZGvLdJ0.js';
10
+ import { c as cn } from '../../chunks/cn-LM_JlZIN.js';
11
+ import { isAddress } from 'viem';
12
+ import 'axe-core';
13
+ import { c as customStyleMap } from '../../chunks/index-CqZm8OfY.js';
13
14
  import '../lukso-image/index.js';
14
15
 
15
- /**
16
- * @license
17
- * Copyright 2021 Google LLC
18
- * SPDX-License-Identifier: BSD-3-Clause
19
- */function o(o){return (e$1,n)=>{const{slot:r,selector:s}=o??{},c="slot"+(r?`[name=${r}]`:":not([name])");return e(e$1,n,{get(){const t=this.renderRoot?.querySelector(c),e=t?.assignedElements(o)??[];return void 0===s?e:e.filter((t=>t.matches(s)))}})}}
20
-
21
16
  const backgroundGradient = (address) => {
22
17
  let gradientStart = "#24354210";
23
18
  let gradientEnd = "#24354220";
@@ -56,7 +51,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
56
51
  this.hasOverlay = false;
57
52
  this.isEoa = false;
58
53
  this.hasBottom = false;
59
- this.cardStyles = ce({
54
+ this.cardStyles = tv({
60
55
  base: "bg-neutral-100",
61
56
  variants: {
62
57
  borderRadius: {
@@ -105,7 +100,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
105
100
  isHoverable: this.isHoverable,
106
101
  hasNoWidth: !this.width
107
102
  });
108
- return x`
103
+ return html`
109
104
  <div
110
105
  data-testid="card"
111
106
  style=${customStyleMap({
@@ -126,10 +121,10 @@ let LuksoCard = class extends TailwindStyledElement(style) {
126
121
  hasNoWidth: !this.width,
127
122
  class: "grid grid-rows-[auto,1fr] overflow-hidden"
128
123
  });
129
- return x`
124
+ return html`
130
125
  <div
131
126
  data-testid="card"
132
- style=${o$1({
127
+ style=${o({
133
128
  minHeight: `${this.height}px`,
134
129
  width: `${this.width}px`
135
130
  })}
@@ -154,7 +149,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
154
149
  hasNoWidth: !this.width,
155
150
  class: "grid grid-rows-[1fr,auto]"
156
151
  });
157
- return x`
152
+ return html`
158
153
  <div
159
154
  data-testid="card"
160
155
  style=${customStyleMap({
@@ -164,7 +159,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
164
159
  class=${cn(cardStyles, this.customClass)}
165
160
  >
166
161
  <div
167
- style=${o$1({
162
+ style=${o({
168
163
  backgroundImage: backgroundGradient(this.profileAddress)
169
164
  })}
170
165
  class=${cn(
@@ -172,14 +167,14 @@ let LuksoCard = class extends TailwindStyledElement(style) {
172
167
  this.headerClass
173
168
  )}
174
169
  >
175
- ${this.backgroundUrl && x`<div
170
+ ${this.backgroundUrl && html`<div
176
171
  class="rounded-t-[inherit] overflow-hidden absolute inset-0"
177
172
  >
178
173
  <lukso-image src=${this.backgroundUrl}></lukso-image>
179
174
  </div>`}
180
- ${this.hasOverlay ? x`<div
175
+ ${this.hasOverlay ? html`<div
181
176
  class="h-full full rounded-t-[inherit] rounded-b-0 bg-neutral-20/10 absolute"
182
- ></div>` : E}
177
+ ></div>` : nothing}
183
178
  <div class="relative h-full">
184
179
  <slot name="header"></slot>
185
180
  </div>
@@ -218,7 +213,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
218
213
  hasNoWidth: !this.width,
219
214
  class: "grid grid-rows-[auto,1fr]"
220
215
  });
221
- return x`
216
+ return html`
222
217
  <div
223
218
  data-testid="card"
224
219
  style=${customStyleMap({
@@ -228,7 +223,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
228
223
  class=${cn(cardStyles, this.customClass)}
229
224
  >
230
225
  <div
231
- style=${o$1({
226
+ style=${o({
232
227
  backgroundImage: backgroundGradient(this.profileAddress)
233
228
  })}
234
229
  class=${cn(
@@ -236,7 +231,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
236
231
  this.headerClass
237
232
  )}
238
233
  >
239
- ${this.backgroundUrl && x`<div
234
+ ${this.backgroundUrl && html`<div
240
235
  class="rounded-t-[inherit] overflow-hidden absolute inset-0"
241
236
  >
242
237
  <lukso-image src=${this.backgroundUrl}></lukso-image>
@@ -287,7 +282,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
287
282
  hasNoWidth: !this.width,
288
283
  class: "grid grid-rows-[auto,1fr]"
289
284
  });
290
- return x`
285
+ return html`
291
286
  <div
292
287
  data-testid="card"
293
288
  style=${customStyleMap({
@@ -297,7 +292,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
297
292
  class=${cn(cardStyles, this.customClass)}
298
293
  >
299
294
  <div
300
- style=${o$1({
295
+ style=${o({
301
296
  backgroundImage: backgroundGradient(this.profileAddress)
302
297
  })}
303
298
  class=${cn(
@@ -305,7 +300,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
305
300
  this.headerClass
306
301
  )}
307
302
  >
308
- ${this.backgroundUrl && x`<div
303
+ ${this.backgroundUrl && html`<div
309
304
  class="rounded-t-[inherit] overflow-hidden absolute inset-0"
310
305
  >
311
306
  <lukso-image src=${this.backgroundUrl}></lukso-image>
@@ -342,7 +337,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
342
337
  hasNoWidth: !this.width,
343
338
  class: "flex"
344
339
  });
345
- return x`
340
+ return html`
346
341
  <div
347
342
  data-testid="card"
348
343
  style=${customStyleMap({
@@ -355,12 +350,12 @@ let LuksoCard = class extends TailwindStyledElement(style) {
355
350
  <div
356
351
  class="h-full w-full -mb-6 bg-center bg-cover rounded-[inherit] relative"
357
352
  >
358
- ${this.backgroundUrl && x`<div class="rounded-[inherit] overflow-hidden absolute inset-0">
353
+ ${this.backgroundUrl && html`<div class="rounded-[inherit] overflow-hidden absolute inset-0">
359
354
  <lukso-image src=${this.backgroundUrl}></lukso-image>
360
355
  </div>`}
361
- ${this.hasOverlay && this.backgroundUrl ? x`<div
356
+ ${this.hasOverlay && this.backgroundUrl ? html`<div
362
357
  class="h-full w-full rounded-[inherit] bg-neutral-20/10 absolute"
363
- ></div>` : E}
358
+ ></div>` : nothing}
364
359
  <div
365
360
  class="h-full w-full flex flex-col items-center justify-center absolute"
366
361
  >
@@ -378,7 +373,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
378
373
  hasNoWidth: !this.width,
379
374
  class: "grid grid-rows-[auto,1fr]"
380
375
  });
381
- return x`
376
+ return html`
382
377
  <div
383
378
  data-testid="card"
384
379
  style=${customStyleMap({
@@ -388,7 +383,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
388
383
  class=${cn(cardStyles, this.customClass)}
389
384
  >
390
385
  <div
391
- style=${o$1({
386
+ style=${o({
392
387
  backgroundImage: backgroundGradient(this.profileAddress)
393
388
  })}
394
389
  class=${cn(
@@ -396,7 +391,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
396
391
  this.headerClass
397
392
  )}
398
393
  >
399
- ${this.backgroundUrl && x`
394
+ ${this.backgroundUrl && html`
400
395
  <div class="rounded-t-[inherit] overflow-hidden absolute inset-0">
401
396
  <lukso-image src=${this.backgroundUrl}></lukso-image>
402
397
  </div>
@@ -431,49 +426,49 @@ let LuksoCard = class extends TailwindStyledElement(style) {
431
426
  }
432
427
  };
433
428
  __decorateClass([
434
- n({ type: String })
429
+ property({ type: String })
435
430
  ], LuksoCard.prototype, "variant", 2);
436
431
  __decorateClass([
437
- n({ type: String, attribute: "background-url" })
432
+ property({ type: String, attribute: "background-url" })
438
433
  ], LuksoCard.prototype, "backgroundUrl", 2);
439
434
  __decorateClass([
440
- n({ type: String, attribute: "profile-url" })
435
+ property({ type: String, attribute: "profile-url" })
441
436
  ], LuksoCard.prototype, "profileUrl", 2);
442
437
  __decorateClass([
443
- n({ type: String, attribute: "profile-address" })
438
+ property({ type: String, attribute: "profile-address" })
444
439
  ], LuksoCard.prototype, "profileAddress", 2);
445
440
  __decorateClass([
446
- n({ type: Number })
441
+ property({ type: Number })
447
442
  ], LuksoCard.prototype, "width", 2);
448
443
  __decorateClass([
449
- n({ type: Number })
444
+ property({ type: Number })
450
445
  ], LuksoCard.prototype, "height", 2);
451
446
  __decorateClass([
452
- n({ type: String, attribute: "custom-class" })
447
+ property({ type: String, attribute: "custom-class" })
453
448
  ], LuksoCard.prototype, "customClass", 2);
454
449
  __decorateClass([
455
- n({ type: String, attribute: "header-class" })
450
+ property({ type: String, attribute: "header-class" })
456
451
  ], LuksoCard.prototype, "headerClass", 2);
457
452
  __decorateClass([
458
- n({ type: String, attribute: "border-radius" })
453
+ property({ type: String, attribute: "border-radius" })
459
454
  ], LuksoCard.prototype, "borderRadius", 2);
460
455
  __decorateClass([
461
- n({ type: String })
456
+ property({ type: String })
462
457
  ], LuksoCard.prototype, "shadow", 2);
463
458
  __decorateClass([
464
- n({ type: Boolean, attribute: "is-hoverable" })
459
+ property({ type: Boolean, attribute: "is-hoverable" })
465
460
  ], LuksoCard.prototype, "isHoverable", 2);
466
461
  __decorateClass([
467
- n({ type: Boolean, attribute: "has-overlay" })
462
+ property({ type: Boolean, attribute: "has-overlay" })
468
463
  ], LuksoCard.prototype, "hasOverlay", 2);
469
464
  __decorateClass([
470
- n({ type: Boolean, attribute: "is-eoa" })
465
+ property({ type: Boolean, attribute: "is-eoa" })
471
466
  ], LuksoCard.prototype, "isEoa", 2);
472
467
  __decorateClass([
473
- o({ slot: "bottom", flatten: true })
468
+ queryAssignedElements({ slot: "bottom", flatten: true })
474
469
  ], LuksoCard.prototype, "bottomNodes", 2);
475
470
  __decorateClass([
476
- r()
471
+ state()
477
472
  ], LuksoCard.prototype, "hasBottom", 2);
478
473
  LuksoCard = __decorateClass([
479
474
  safeCustomElement("lukso-card")