@lukso/web-components 1.34.1 → 1.35.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 (61) hide show
  1. package/dist/components/index.cjs +8 -3
  2. package/dist/components/index.d.ts +1 -0
  3. package/dist/components/index.d.ts.map +1 -1
  4. package/dist/components/index.js +4 -3
  5. package/dist/components/lukso-button/index.cjs +1 -1
  6. package/dist/components/lukso-button/index.js +1 -1
  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-checkbox/index.cjs +1 -1
  10. package/dist/components/lukso-checkbox/index.js +1 -1
  11. package/dist/components/lukso-footer/index.cjs +1 -1
  12. package/dist/components/lukso-footer/index.js +1 -1
  13. package/dist/components/lukso-icon/index.cjs +2 -2
  14. package/dist/components/lukso-icon/index.js +2 -2
  15. package/dist/components/lukso-input/index.cjs +1 -1
  16. package/dist/components/lukso-input/index.js +1 -1
  17. package/dist/components/lukso-modal/index.cjs +1 -1
  18. package/dist/components/lukso-modal/index.js +1 -1
  19. package/dist/components/lukso-navbar/index.cjs +2 -2
  20. package/dist/components/lukso-navbar/index.js +2 -2
  21. package/dist/components/lukso-profile/index.cjs +2 -2
  22. package/dist/components/lukso-profile/index.js +2 -2
  23. package/dist/components/lukso-progress/index.cjs +2 -2
  24. package/dist/components/lukso-progress/index.js +2 -2
  25. package/dist/components/lukso-sanitize/index.cjs +1 -1
  26. package/dist/components/lukso-sanitize/index.js +1 -1
  27. package/dist/components/lukso-search/index.cjs +295 -0
  28. package/dist/components/lukso-search/index.d.ts +56 -0
  29. package/dist/components/lukso-search/index.d.ts.map +1 -0
  30. package/dist/components/lukso-search/index.js +293 -0
  31. package/dist/components/lukso-search/lukso-search.stories.d.ts +9 -0
  32. package/dist/components/lukso-search/lukso-search.stories.d.ts.map +1 -0
  33. package/dist/components/lukso-share/index.cjs +1 -1
  34. package/dist/components/lukso-share/index.js +1 -1
  35. package/dist/components/lukso-switch/index.cjs +2 -2
  36. package/dist/components/lukso-switch/index.js +2 -2
  37. package/dist/components/lukso-tag/index.cjs +2 -2
  38. package/dist/components/lukso-tag/index.js +2 -2
  39. package/dist/components/lukso-terms/index.cjs +2 -2
  40. package/dist/components/lukso-terms/index.js +2 -2
  41. package/dist/components/lukso-test/index.cjs +2 -2
  42. package/dist/components/lukso-test/index.js +2 -2
  43. package/dist/components/lukso-username/index.cjs +6 -3
  44. package/dist/components/lukso-username/index.d.ts +4 -3
  45. package/dist/components/lukso-username/index.d.ts.map +1 -1
  46. package/dist/components/lukso-username/index.js +6 -3
  47. package/dist/components/lukso-wizard/index.cjs +2 -2
  48. package/dist/components/lukso-wizard/index.js +2 -2
  49. package/dist/{directive-helpers-37d4e781.js → directive-helpers-2de20c85.js} +1 -1
  50. package/dist/{directive-helpers-68634886.cjs → directive-helpers-ac1c0bc1.cjs} +1 -1
  51. package/dist/index-3027d420.cjs +67 -0
  52. package/dist/index-e65ce6e8.js +59 -0
  53. package/dist/index.cjs +8 -3
  54. package/dist/index.js +4 -3
  55. package/dist/shared/tailwind-element/index.cjs +1 -1
  56. package/dist/shared/tailwind-element/index.js +1 -1
  57. package/dist/{style-map-ecda466c.js → style-map-0a64ef32.js} +1 -1
  58. package/dist/{style-map-13efc961.cjs → style-map-52b1e12c.cjs} +1 -1
  59. package/package.json +6 -1
  60. package/dist/index-62273515.cjs +0 -67
  61. package/dist/index-9362dc77.js +0 -59
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-search/index.ts"],"names":[],"mappings":"AAMA,OAAO,yBAAyB,CAAA;AAChC,OAAO,4BAA4B,CAAA;AACnC,OAAO,6BAA6B,CAAA;AAEpC,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;;AAED,qBACa,WAAY,SAAQ,gBAA4B;IAE3D,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,IAAI,SAAS;IAGb,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,YAAY,SAAQ;IAGpB,EAAE,SAAK;IAGP,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,WAAW,SAAK;IAGhB,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,UAAU,UAAQ;IAGlB,SAAS,UAAQ;IAGjB,UAAU,UAAQ;IAGlB,OAAO,SAAK;IAGZ,QAAQ,SAAM;IAGd,OAAO,CAAC,QAAQ,CAAQ;IAGxB,OAAO,CAAC,YAAY,CAAQ;IAG5B,OAAO,CAAC,WAAW,CAAQ;IAG3B,OAAO,CAAC,aAAa,CAAgB;IAErC,OAAO,CAAC,kBAAkB,CAEuD;IAEjF,aAAa;IAoCb,aAAa;IAUb,mBAAmB;IAQnB,aAAa;IAMb,eAAe;IA2Bf,oBAAoB,CAAC,MAAM,EAAE,YAAY;IAUzC,qBAAqB,CAAC,MAAM,EAAE,aAAa;IAqB3C,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,cAAc;IAetB,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,cAAc;IAMtB,MAAM;CAoBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
@@ -0,0 +1,293 @@
1
+ import { T as TailwindStyledElement, x, A } from '../../index-e65ce6e8.js';
2
+ import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
+ import { t } from '../../state-7fde94d1.js';
4
+ import { c as customClassMap } from '../../index-714323c9.js';
5
+ import '../lukso-icon/index.js';
6
+ import '../lukso-profile/index.js';
7
+ import '../lukso-username/index.js';
8
+ import '../../style-map-0a64ef32.js';
9
+
10
+ const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
11
+
12
+ var __defProp = Object.defineProperty;
13
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
14
+ var __decorateClass = (decorators, target, key, kind) => {
15
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
16
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
17
+ if (decorator = decorators[i])
18
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
19
+ if (kind && result)
20
+ __defProp(target, key, result);
21
+ return result;
22
+ };
23
+ let LuksoSearch = class extends TailwindStyledElement(style) {
24
+ constructor() {
25
+ super(...arguments);
26
+ this.value = "";
27
+ this.name = "";
28
+ this.type = "text";
29
+ this.placeholder = "";
30
+ this.label = "";
31
+ this.autocomplete = "off";
32
+ this.id = "";
33
+ this.description = "";
34
+ this.error = "";
35
+ this.customClass = "";
36
+ this.isFullWidth = false;
37
+ this.isReadonly = false;
38
+ this.isDisabled = false;
39
+ this.autofocus = false;
40
+ this.borderless = false;
41
+ this.results = "";
42
+ this.debounce = 700;
43
+ this.hasHocus = false;
44
+ this.hasHighlight = false;
45
+ this.isSearching = false;
46
+ this.defaultInputStyles = `bg-neutral-100 paragraph-inter-14-regular px-4 py-3 pr-10
47
+ border-solid h-[48px] placeholder:text-neutral-70
48
+ outline-none transition transition-all duration-150 appearance-none rounded-12`;
49
+ }
50
+ inputTemplate() {
51
+ return x`
52
+ <input
53
+ name=${this.name}
54
+ type=${this.type}
55
+ .value=${this.value}
56
+ placeholder=${this.placeholder}
57
+ ?autofocus=${this.autofocus}
58
+ autocomplete=${this.autocomplete}
59
+ id=${this.id || this.name}
60
+ data-testid=${this.name ? `input-${this.name}` : "input"}
61
+ ?readonly=${this.isReadonly ? true : void 0}
62
+ ?disabled=${this.isDisabled ? true : void 0}
63
+ class=${customClassMap({
64
+ [this.defaultInputStyles]: true,
65
+ [this.error === "" ? "border-neutral-90" : "border-red-85"]: !this.hasHighlight,
66
+ [this.error === "" ? "border-neutral-35" : "border-red-65"]: this.hasHighlight,
67
+ ["w-full"]: this.isFullWidth,
68
+ ["w-[350px]"]: !this.isFullWidth,
69
+ ["cursor-not-allowed text-neutral-60"]: this.isDisabled,
70
+ ["text-neutral-20"]: !this.isDisabled,
71
+ ["cursor-not-allowed"]: this.isReadonly,
72
+ [this.customClass]: !!this.customClass,
73
+ [this.borderless ? "border-0" : "border"]: true
74
+ })}
75
+ @focus=${this.handleFocus}
76
+ @input=${this.handleSearch}
77
+ @blur=${this.handleBlur}
78
+ @mouseenter=${this.handleMouseOver}
79
+ @mouseleave=${this.handleMouseOut}
80
+ />
81
+ `;
82
+ }
83
+ labelTemplate() {
84
+ return x`
85
+ <label
86
+ for=${this.name}
87
+ class="heading-inter-14-bold text-neutral-20 pb-2 block"
88
+ >${this.label}</label
89
+ >
90
+ `;
91
+ }
92
+ descriptionTemplate() {
93
+ return x`
94
+ <div class="paragraph-inter-12-regular text-neutral-20 pb-2">
95
+ ${this.description ?? A}
96
+ </div>
97
+ `;
98
+ }
99
+ errorTemplate() {
100
+ return x`<div class="paragraph-inter-12-regular text-red-65 pt-2">
101
+ ${this.error}
102
+ </div>`;
103
+ }
104
+ resultsTemplate() {
105
+ if (this.results === "") {
106
+ return x``;
107
+ }
108
+ const resultTemplates = [];
109
+ const results = JSON.parse(this.results);
110
+ for (const result of Object.entries(results)) {
111
+ if ("value" in result[1]) {
112
+ resultTemplates.push(this.resultStringTemplate(result[1]));
113
+ } else if ("address" in result[1]) {
114
+ resultTemplates.push(this.resultProfileTemplate(result[1]));
115
+ } else {
116
+ console.error("Unknown result type", result);
117
+ }
118
+ }
119
+ return x`<div
120
+ class="bg-neutral-100 border border-neutral-90 shadow-1xl rounded-12 p-3 mt-2 z-50 flex absolute w-full flex-col gap-1"
121
+ >
122
+ ${resultTemplates}
123
+ </div>`;
124
+ }
125
+ resultStringTemplate(result) {
126
+ return x`<div
127
+ data-id="${result.id}"
128
+ class="paragraph-inter-14-regular text-neutral-20 cursor-pointer hover:bg-neutral-98 rounded-8 p-2"
129
+ @click=${() => this.handleSelect(result)}
130
+ >
131
+ ${result.value}
132
+ </div>`;
133
+ }
134
+ resultProfileTemplate(result) {
135
+ return x`<div
136
+ data-id="${result.address}"
137
+ class="cursor-pointer hover:bg-neutral-98 rounded-8 p-2 flex gap-2 items-center"
138
+ @click=${() => this.handleSelect(result)}
139
+ >
140
+ <lukso-profile
141
+ profile-address="${result.address}"
142
+ profile-url="${result.image}"
143
+ size="x-small"
144
+ ></lukso-profile>
145
+ <lukso-username
146
+ name="${result.name}"
147
+ address="${result.address}"
148
+ name-color="neutral-20"
149
+ max-width="300"
150
+ size="medium"
151
+ ></lukso-username>
152
+ </div>`;
153
+ }
154
+ handleSelect(result) {
155
+ const selectEvent = new CustomEvent("on-select", {
156
+ detail: {
157
+ value: result
158
+ },
159
+ bubbles: false,
160
+ composed: true
161
+ });
162
+ this.dispatchEvent(selectEvent);
163
+ }
164
+ handleFocus() {
165
+ if (!this.isReadonly && !this.isDisabled) {
166
+ this.hasHocus = true;
167
+ this.hasHighlight = true;
168
+ }
169
+ }
170
+ handleBlur() {
171
+ this.hasHocus = false;
172
+ this.hasHighlight = false;
173
+ }
174
+ searchDebounce(searchTerm) {
175
+ this.debounceTimer = setTimeout(() => {
176
+ const changeEvent = new CustomEvent("on-search", {
177
+ detail: {
178
+ value: searchTerm
179
+ },
180
+ bubbles: false,
181
+ composed: true
182
+ });
183
+ this.dispatchEvent(changeEvent);
184
+ this.isSearching = false;
185
+ }, this.debounce);
186
+ }
187
+ handleSearch(event) {
188
+ if (this.isSearching) {
189
+ clearTimeout(this.debounceTimer);
190
+ }
191
+ this.isSearching = true;
192
+ const target = event.target;
193
+ this.searchDebounce(target.value);
194
+ }
195
+ handleMouseOver() {
196
+ if (!this.isReadonly && !this.isDisabled) {
197
+ this.hasHighlight = true;
198
+ }
199
+ }
200
+ handleMouseOut() {
201
+ if (!this.hasHocus) {
202
+ this.hasHighlight = false;
203
+ }
204
+ }
205
+ render() {
206
+ return x`
207
+ <div class="relative w-full">
208
+ ${this.label ? this.labelTemplate() : A}
209
+ ${this.description ? this.descriptionTemplate() : A}
210
+ <div class="flex relative items-center">
211
+ ${this.inputTemplate()}
212
+ <lukso-icon
213
+ name="search"
214
+ class="absolute right-0 mr-3 ${customClassMap({
215
+ ["opacity-60 cursor-not-allowed"]: this.isDisabled,
216
+ ["cursor-not-allowed"]: this.isReadonly
217
+ })}"
218
+ @mouseenter=${this.handleMouseOver}
219
+ ></lukso-icon>
220
+ </div>
221
+ ${this.resultsTemplate()} ${this.error ? this.errorTemplate() : A}
222
+ </div>
223
+ `;
224
+ }
225
+ };
226
+ __decorateClass([
227
+ e({ type: String })
228
+ ], LuksoSearch.prototype, "value", 2);
229
+ __decorateClass([
230
+ e({ type: String })
231
+ ], LuksoSearch.prototype, "name", 2);
232
+ __decorateClass([
233
+ e({ type: String })
234
+ ], LuksoSearch.prototype, "type", 2);
235
+ __decorateClass([
236
+ e({ type: String })
237
+ ], LuksoSearch.prototype, "placeholder", 2);
238
+ __decorateClass([
239
+ e({ type: String })
240
+ ], LuksoSearch.prototype, "label", 2);
241
+ __decorateClass([
242
+ e({ type: String })
243
+ ], LuksoSearch.prototype, "autocomplete", 2);
244
+ __decorateClass([
245
+ e({ type: String })
246
+ ], LuksoSearch.prototype, "id", 2);
247
+ __decorateClass([
248
+ e({ type: String })
249
+ ], LuksoSearch.prototype, "description", 2);
250
+ __decorateClass([
251
+ e({ type: String })
252
+ ], LuksoSearch.prototype, "error", 2);
253
+ __decorateClass([
254
+ e({ type: String, attribute: "custom-class" })
255
+ ], LuksoSearch.prototype, "customClass", 2);
256
+ __decorateClass([
257
+ e({ type: Boolean, attribute: "is-full-width" })
258
+ ], LuksoSearch.prototype, "isFullWidth", 2);
259
+ __decorateClass([
260
+ e({ type: Boolean, attribute: "is-readonly" })
261
+ ], LuksoSearch.prototype, "isReadonly", 2);
262
+ __decorateClass([
263
+ e({ type: Boolean, attribute: "is-disabled" })
264
+ ], LuksoSearch.prototype, "isDisabled", 2);
265
+ __decorateClass([
266
+ e({ type: Boolean })
267
+ ], LuksoSearch.prototype, "autofocus", 2);
268
+ __decorateClass([
269
+ e({ type: Boolean })
270
+ ], LuksoSearch.prototype, "borderless", 2);
271
+ __decorateClass([
272
+ e({ type: String })
273
+ ], LuksoSearch.prototype, "results", 2);
274
+ __decorateClass([
275
+ e({ type: Number })
276
+ ], LuksoSearch.prototype, "debounce", 2);
277
+ __decorateClass([
278
+ t()
279
+ ], LuksoSearch.prototype, "hasHocus", 2);
280
+ __decorateClass([
281
+ t()
282
+ ], LuksoSearch.prototype, "hasHighlight", 2);
283
+ __decorateClass([
284
+ t()
285
+ ], LuksoSearch.prototype, "isSearching", 2);
286
+ __decorateClass([
287
+ t()
288
+ ], LuksoSearch.prototype, "debounceTimer", 2);
289
+ LuksoSearch = __decorateClass([
290
+ e$1("lukso-search")
291
+ ], LuksoSearch);
292
+
293
+ export { LuksoSearch };
@@ -0,0 +1,9 @@
1
+ import { Meta } from '@storybook/web-components';
2
+ /** Documentation and examples of `lukso-search` component. Components share most of `lukso-input` attributes. */
3
+ declare const meta: Meta;
4
+ export default meta;
5
+ /** */
6
+ export declare const DefaultSearch: any;
7
+ /** */
8
+ export declare const ProfileSearch: any;
9
+ //# sourceMappingURL=lukso-search.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lukso-search.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-search/lukso-search.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAGhD,OAAO,SAAS,CAAA;AAEhB,mHAAmH;AACnH,QAAA,MAAM,IAAI,EAAE,IAyLX,CAAA;AAED,eAAe,IAAI,CAAA;AAmEnB,QAAQ;AACR,eAAO,MAAM,aAAa,KAAoB,CAAA;AAK9C,QAAQ;AACR,eAAO,MAAM,aAAa,KAAoB,CAAA"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-62273515.cjs');
5
+ const shared_tailwindElement_index = require('../../index-3027d420.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-9362dc77.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-e65ce6e8.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-62273515.cjs');
5
+ const shared_tailwindElement_index = require('../../index-3027d420.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-13efc961.cjs');
7
+ const styleMap = require('../../style-map-52b1e12c.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-9362dc77.js';
1
+ import { a as TailwindElement, x } from '../../index-e65ce6e8.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-ecda466c.js';
3
+ import { o } from '../../style-map-0a64ef32.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
 
6
6
  var __defProp = Object.defineProperty;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-62273515.cjs');
5
+ const shared_tailwindElement_index = require('../../index-3027d420.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-13efc961.cjs');
7
+ const styleMap = require('../../style-map-52b1e12c.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
 
10
10
  const style = ":host {\n display: inline-flex\n}";
@@ -1,6 +1,6 @@
1
- import { T as TailwindStyledElement, x } from '../../index-9362dc77.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-e65ce6e8.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-ecda466c.js';
3
+ import { o } from '../../style-map-0a64ef32.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
 
6
6
  const style = ":host {\n display: inline-flex\n}";
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-62273515.cjs');
5
+ const shared_tailwindElement_index = require('../../index-3027d420.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-13efc961.cjs');
11
+ require('../../style-map-52b1e12c.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-9362dc77.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-e65ce6e8.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-ecda466c.js';
7
+ import '../../style-map-0a64ef32.js';
8
8
 
9
9
  const style = ":host {\n display: flex;\n height: 100%\n}";
10
10
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-62273515.cjs');
5
+ const shared_tailwindElement_index = require('../../index-3027d420.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const directiveHelpers = require('../../directive-helpers-68634886.cjs');
7
+ const directiveHelpers = require('../../directive-helpers-ac1c0bc1.cjs');
8
8
 
9
9
  /**
10
10
  * @license
@@ -1,6 +1,6 @@
1
- import { c as A$1, b as T, T as TailwindStyledElement, x as x$1 } from '../../index-9362dc77.js';
1
+ import { c as A$1, b as T, T as TailwindStyledElement, x as x$1 } from '../../index-e65ce6e8.js';
2
2
  import { i as i$1, t as t$1, b as e$1, e as e$2, a as e$3 } from '../../directive-9ec64c08.js';
3
- import { e } from '../../directive-helpers-37d4e781.js';
3
+ import { e } from '../../directive-helpers-2de20c85.js';
4
4
 
5
5
  /**
6
6
  * @license
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-62273515.cjs');
5
+ const shared_tailwindElement_index = require('../../index-3027d420.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-13efc961.cjs');
7
+ const styleMap = require('../../style-map-52b1e12c.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
 
10
10
  const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
@@ -20,6 +20,8 @@ const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
20
20
  return sliceAddress2;
21
21
  };
22
22
 
23
+ const style = ":host {\n display: inline-flex\n}";
24
+
23
25
  var __defProp = Object.defineProperty;
24
26
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
25
27
  var __decorateClass = (decorators, target, key, kind) => {
@@ -31,7 +33,7 @@ var __decorateClass = (decorators, target, key, kind) => {
31
33
  __defProp(target, key, result);
32
34
  return result;
33
35
  };
34
- exports.LuksoUsername = class LuksoUsername extends shared_tailwindElement_index.TailwindElement {
36
+ exports.LuksoUsername = class LuksoUsername extends shared_tailwindElement_index.TailwindStyledElement(style) {
35
37
  constructor() {
36
38
  super(...arguments);
37
39
  this.name = "";
@@ -109,6 +111,7 @@ exports.LuksoUsername = class LuksoUsername extends shared_tailwindElement_index
109
111
  [this.customClass]: true,
110
112
  "paragraph-ptmono-10-bold": this.size === "x-small",
111
113
  "paragraph-ptmono-12-bold": this.size === "small",
114
+ "paragraph-ptmono-14-bold": this.size === "medium",
112
115
  "paragraph-ptmono-16-bold": this.size === "large"
113
116
  })}"
114
117
  >
@@ -1,6 +1,6 @@
1
- import { TailwindElement } from '../../shared/tailwind-element';
2
- export type UsernameSize = 'x-small' | 'small' | 'large';
3
- export declare class LuksoUsername extends TailwindElement {
1
+ export type UsernameSize = 'x-small' | 'small' | 'medium' | 'large';
2
+ declare const LuksoUsername_base: typeof import("lit").LitElement;
3
+ export declare class LuksoUsername extends LuksoUsername_base {
4
4
  name: string;
5
5
  address: string;
6
6
  maxWidth: number;
@@ -33,4 +33,5 @@ declare global {
33
33
  'lukso-username': LuksoUsername;
34
34
  }
35
35
  }
36
+ export {};
36
37
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-username/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAA;AAExD,qBACa,aAAc,SAAQ,eAAe;IAEhD,IAAI,SAAK;IAGT,OAAO,SAAK;IAGZ,QAAQ,SAAM;IAGd,IAAI,EAAE,YAAY,CAAU;IAG5B,OAAO,SAAI;IAGX,YAAY,SAAK;IAGjB,SAAS,SAAK;IAGd,WAAW,SAAK;IAEhB,gDAAgD;IAChD,OAAO,CAAC,UAAU,CAAK;IAEvB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAW5B;;;OAGG;IACH,OAAO,CAAC,YAAY;IAiBpB;;;OAGG;IACH,OAAO,CAAC,eAAe;IAWvB,MAAM;CA0BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-username/index.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;;AAEnE,qBACa,aAAc,SAAQ,kBAA4B;IAE7D,IAAI,SAAK;IAGT,OAAO,SAAK;IAGZ,QAAQ,SAAM;IAGd,IAAI,EAAE,YAAY,CAAU;IAG5B,OAAO,SAAI;IAGX,YAAY,SAAK;IAGjB,SAAS,SAAK;IAGd,WAAW,SAAK;IAEhB,gDAAgD;IAChD,OAAO,CAAC,UAAU,CAAK;IAEvB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAW5B;;;OAGG;IACH,OAAO,CAAC,YAAY;IAiBpB;;;OAGG;IACH,OAAO,CAAC,eAAe;IAWvB,MAAM;CA2BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x } from '../../index-9362dc77.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-e65ce6e8.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-ecda466c.js';
3
+ import { o } from '../../style-map-0a64ef32.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
 
6
6
  const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
@@ -16,6 +16,8 @@ const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
16
16
  return sliceAddress2;
17
17
  };
18
18
 
19
+ const style = ":host {\n display: inline-flex\n}";
20
+
19
21
  var __defProp = Object.defineProperty;
20
22
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
21
23
  var __decorateClass = (decorators, target, key, kind) => {
@@ -27,7 +29,7 @@ var __decorateClass = (decorators, target, key, kind) => {
27
29
  __defProp(target, key, result);
28
30
  return result;
29
31
  };
30
- let LuksoUsername = class extends TailwindElement {
32
+ let LuksoUsername = class extends TailwindStyledElement(style) {
31
33
  constructor() {
32
34
  super(...arguments);
33
35
  this.name = "";
@@ -105,6 +107,7 @@ let LuksoUsername = class extends TailwindElement {
105
107
  [this.customClass]: true,
106
108
  "paragraph-ptmono-10-bold": this.size === "x-small",
107
109
  "paragraph-ptmono-12-bold": this.size === "small",
110
+ "paragraph-ptmono-14-bold": this.size === "medium",
108
111
  "paragraph-ptmono-16-bold": this.size === "large"
109
112
  })}"
110
113
  >
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-62273515.cjs');
5
+ const shared_tailwindElement_index = require('../../index-3027d420.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const directiveHelpers = require('../../directive-helpers-68634886.cjs');
7
+ const directiveHelpers = require('../../directive-helpers-ac1c0bc1.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
 
10
10
  /**
@@ -1,6 +1,6 @@
1
- import { b as T, T as TailwindStyledElement, x } from '../../index-9362dc77.js';
1
+ import { b as T, T as TailwindStyledElement, x } from '../../index-e65ce6e8.js';
2
2
  import { b as e, i, t, e as e$1, a as e$2 } from '../../directive-9ec64c08.js';
3
- import { m, f, c as c$1, p, a } from '../../directive-helpers-37d4e781.js';
3
+ import { m, f, c as c$1, p, a } from '../../directive-helpers-2de20c85.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
 
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { j } from './index-9362dc77.js';
1
+ import { j } from './index-e65ce6e8.js';
2
2
 
3
3
  /**
4
4
  * @license
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const shared_tailwindElement_index = require('./index-62273515.cjs');
3
+ const shared_tailwindElement_index = require('./index-3027d420.cjs');
4
4
 
5
5
  /**
6
6
  * @license