@lukso/web-components 1.49.2 → 1.51.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 (74) hide show
  1. package/dist/components/index.cjs +9 -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 +5 -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 +11 -296
  8. package/dist/components/lukso-card/index.d.ts +1 -0
  9. package/dist/components/lukso-card/index.d.ts.map +1 -1
  10. package/dist/components/lukso-card/index.js +6 -300
  11. package/dist/components/lukso-card/lukso-card.stories.d.ts.map +1 -1
  12. package/dist/components/lukso-checkbox/index.cjs +1 -1
  13. package/dist/components/lukso-checkbox/index.js +1 -1
  14. package/dist/components/lukso-footer/index.cjs +1 -2
  15. package/dist/components/lukso-footer/index.d.ts.map +1 -1
  16. package/dist/components/lukso-footer/index.js +1 -2
  17. package/dist/components/lukso-icon/index.cjs +2 -2
  18. package/dist/components/lukso-icon/index.js +2 -2
  19. package/dist/components/lukso-input/index.cjs +1 -1
  20. package/dist/components/lukso-input/index.js +1 -1
  21. package/dist/components/lukso-modal/index.cjs +1 -1
  22. package/dist/components/lukso-modal/index.js +1 -1
  23. package/dist/components/lukso-navbar/index.cjs +2 -2
  24. package/dist/components/lukso-navbar/index.js +2 -2
  25. package/dist/components/lukso-profile/index.cjs +2 -2
  26. package/dist/components/lukso-profile/index.js +2 -2
  27. package/dist/components/lukso-progress/index.cjs +2 -2
  28. package/dist/components/lukso-progress/index.js +2 -2
  29. package/dist/components/lukso-sanitize/index.cjs +1 -1
  30. package/dist/components/lukso-sanitize/index.js +1 -1
  31. package/dist/components/lukso-search/index.cjs +10 -7
  32. package/dist/components/lukso-search/index.d.ts.map +1 -1
  33. package/dist/components/lukso-search/index.js +10 -7
  34. package/dist/components/lukso-select/index.cjs +12 -8
  35. package/dist/components/lukso-select/index.d.ts.map +1 -1
  36. package/dist/components/lukso-select/index.js +12 -8
  37. package/dist/components/lukso-share/index.cjs +1 -1
  38. package/dist/components/lukso-share/index.js +1 -1
  39. package/dist/components/lukso-switch/index.cjs +2 -2
  40. package/dist/components/lukso-switch/index.js +2 -2
  41. package/dist/components/lukso-tag/index.cjs +2 -2
  42. package/dist/components/lukso-tag/index.js +2 -2
  43. package/dist/components/lukso-terms/index.cjs +2 -2
  44. package/dist/components/lukso-terms/index.js +2 -2
  45. package/dist/components/lukso-test/index.cjs +1 -1
  46. package/dist/components/lukso-test/index.js +1 -1
  47. package/dist/components/lukso-tooltip/index.cjs +3614 -0
  48. package/dist/components/lukso-tooltip/index.d.ts +35 -0
  49. package/dist/components/lukso-tooltip/index.d.ts.map +1 -0
  50. package/dist/components/lukso-tooltip/index.js +3612 -0
  51. package/dist/components/lukso-tooltip/lukso-tooltip.stories.d.ts +27 -0
  52. package/dist/components/lukso-tooltip/lukso-tooltip.stories.d.ts.map +1 -0
  53. package/dist/components/lukso-username/index.cjs +1 -1
  54. package/dist/components/lukso-username/index.js +1 -1
  55. package/dist/components/lukso-wizard/index.cjs +1 -1
  56. package/dist/components/lukso-wizard/index.js +1 -1
  57. package/dist/index-2f5488b6.js +39 -0
  58. package/dist/index-87e624a1.cjs +2849 -0
  59. package/dist/index-aaa67d55.cjs +46 -0
  60. package/dist/index-d0d67b5f.js +2846 -0
  61. package/dist/index.cjs +50 -2567
  62. package/dist/index.js +5 -2530
  63. package/dist/shared/tailwind-element/index.cjs +1 -1
  64. package/dist/shared/tailwind-element/index.js +1 -1
  65. package/dist/{style-map-ea2513e4.cjs → style-map-74906707.cjs} +1 -1
  66. package/dist/{style-map-b2a337a1.js → style-map-88b4d8ad.js} +1 -1
  67. package/dist/styles/main.css +230 -0
  68. package/dist/styles/main.css.map +1 -1
  69. package/package.json +8 -2
  70. package/tools/sass/main.scss +1 -0
  71. package/tools/sass/tippy.scss +275 -0
  72. package/tools/styles/main.css +230 -0
  73. package/dist/index-c04e4744.cjs +0 -46
  74. package/dist/index-cfea1b58.js +0 -39
@@ -1,302 +1,8 @@
1
- import { T as TailwindStyledElement, x } from '../../index-cfea1b58.js';
2
- import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
- import { o } from '../../style-map-b2a337a1.js';
4
- import { c as customClassMap } from '../../index-5e194caf.js';
1
+ import '../../index-2f5488b6.js';
2
+ import '../../query-assigned-elements-5d94572f.js';
3
+ import '../../style-map-88b4d8ad.js';
4
+ import '../../index-5e194caf.js';
5
+ export { L as LuksoCard } from '../../index-d0d67b5f.js';
5
6
  import '../lukso-profile/index.js';
7
+ import '../../color-palette.js';
6
8
  import '../../directive-2bb7789e.js';
7
-
8
- const style = ":host {\n display: flex;\n width: 100%;\n}\n\n:host([is-fixed-width]) {\n width: inherit;\n}";
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __decorateClass = (decorators, target, key, kind) => {
13
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
14
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
15
- if (decorator = decorators[i])
16
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
17
- if (kind && result)
18
- __defProp(target, key, result);
19
- return result;
20
- };
21
- let LuksoCard = class extends TailwindStyledElement(style) {
22
- constructor() {
23
- super(...arguments);
24
- this.variant = "basic";
25
- this.backgroundUrl = "";
26
- this.profileUrl = "";
27
- this.profileAddress = "";
28
- this.isFixedWidth = false;
29
- this.isFixedHeight = false;
30
- this.customClass = "";
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`;
36
- }
37
- backgroundImageOrGradient() {
38
- const opacity = "80";
39
- const gradientStart = `#${this.profileAddress.slice(2, 8)}${opacity}`;
40
- const gradientEnd = `#${this.profileAddress.slice(36, 42)}${opacity}`;
41
- if (this.backgroundUrl) {
42
- return `url(${this.backgroundUrl})`;
43
- }
44
- return `linear-gradient(90deg, ${gradientStart}, ${gradientEnd})`;
45
- }
46
- basicTemplate() {
47
- return x`
48
- <div
49
- data-testid="card"
50
- class="bg-neutral-100 ${customClassMap({
51
- [this.mediumStyles]: !this.customClass && this.size === "medium",
52
- [this.smallStyles]: !this.customClass && this.size === "small",
53
- [this.smallHoverStyles]: this.isHoverable && this.size === "small",
54
- [this.customClass]: !!this.customClass,
55
- ["w-[362px]"]: this.isFixedWidth,
56
- ["w-full"]: !this.isFixedWidth,
57
- ["min-h-[534px]"]: this.isFixedHeight
58
- })}"
59
- >
60
- <slot name="content"></slot>
61
- </div>
62
- `;
63
- }
64
- withHeaderTemplate() {
65
- return x`
66
- <div
67
- data-testid="card"
68
- class="bg-neutral-100 grid grid-rows-[auto,1fr] overflow-hidden ${customClassMap(
69
- {
70
- [this.mediumStyles]: !this.customClass && this.size === "medium",
71
- [this.smallStyles]: !this.customClass && this.size === "small",
72
- [this.smallHoverStyles]: this.isHoverable && this.size === "small",
73
- [this.customClass]: !!this.customClass,
74
- ["w-[362px]"]: this.isFixedWidth,
75
- ["w-full"]: !this.isFixedWidth,
76
- ["min-h-[534px]"]: this.isFixedHeight
77
- }
78
- )}"
79
- >
80
- <div>
81
- <slot name="header"></slot>
82
- </div>
83
- <div class="bg-neutral-100 shadow-neutral-above-shadow-1xl rounded-24">
84
- <slot name="content"></slot>
85
- </div>
86
- </div>
87
- `;
88
- }
89
- profileTemplate() {
90
- return x`
91
- <div
92
- data-testid="card"
93
- class="bg-neutral-100 grid grid-rows-[auto,1fr] ${customClassMap({
94
- [this.mediumStyles]: !this.customClass && this.size === "medium",
95
- [this.smallStyles]: !this.customClass && this.size === "small",
96
- [this.smallHoverStyles]: this.isHoverable && this.size === "small",
97
- [this.customClass]: !!this.customClass,
98
- ["w-[362px]"]: this.isFixedWidth,
99
- ["w-full"]: !this.isFixedWidth,
100
- ["min-h-[534px]"]: this.isFixedHeight
101
- })}"
102
- >
103
- <div
104
- style=${o({
105
- backgroundImage: this.backgroundImageOrGradient()
106
- })}
107
- class="min-h-[129px] -mb-6 bg-center bg-cover rounded-[24px_24px_0_0] relative"
108
- >
109
- ${this.backgroundUrl && x` <div
110
- class="min-h-full min-w-full rounded-[24px_24px_0_0] bg-neutral-20/10 absolute"
111
- ></div>`}
112
- <div>
113
- <slot name="header"></slot>
114
- </div>
115
- </div>
116
- <div class="bg-neutral-100 rounded-24 relative">
117
- <lukso-profile
118
- profile-url=${this.profileUrl}
119
- size="large"
120
- profile-address=${this.profileAddress}
121
- has-identicon
122
- class="absolute -top-[40px] left-[calc(50%_-_40px)] z-10"
123
- ></lukso-profile>
124
- <div
125
- class="overflow-hidden w-[153px] h-[70px] -top-[70px] relative mx-auto flex items-end justify-center -mb-2"
126
- >
127
- <div
128
- class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]"
129
- ></div>
130
- </div>
131
- <slot name="content"></slot>
132
- </div>
133
- </div>
134
- `;
135
- }
136
- profile2Template() {
137
- return x`
138
- <div
139
- data-testid="card"
140
- class="bg-neutral-100 grid grid-rows-[auto,1fr] ${customClassMap({
141
- [this.mediumStyles]: !this.customClass && this.size === "medium",
142
- [this.smallStyles]: !this.customClass && this.size === "small",
143
- [this.smallHoverStyles]: this.isHoverable && this.size === "small",
144
- [this.customClass]: !!this.customClass,
145
- ["w-[362px]"]: this.isFixedWidth,
146
- ["w-full"]: !this.isFixedWidth,
147
- ["min-h-[534px]"]: this.isFixedHeight
148
- })}"
149
- >
150
- <div
151
- style=${o({
152
- backgroundImage: this.backgroundImageOrGradient()
153
- })}
154
- class="min-h-[129px] -mb-6 bg-center bg-cover rounded-[24px_24px_0_0] relative bg-neutral-100"
155
- >
156
- ${this.backgroundUrl && x`<div
157
- class="min-h-full min-w-full rounded-[24px_24px_0_0] bg-neutral-10/10 absolute"
158
- ></div>`}
159
- <div>
160
- <slot name="header"></slot>
161
- </div>
162
- </div>
163
- <div class="grid grid-rows-[max-content,auto]">
164
- <div class="bg-neutral-100 relative">
165
- <lukso-profile
166
- profile-url=${this.profileUrl}
167
- size="large"
168
- profile-address=${this.profileAddress}
169
- has-identicon
170
- class="absolute -top-[40px] left-[calc(50%_-_40px)] z-10"
171
- ></lukso-profile>
172
- <div
173
- class="overflow-hidden w-[153px] h-[70px] -top-[70px] relative mx-auto flex items-end justify-center -mb-2"
174
- >
175
- <div
176
- class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]"
177
- ></div>
178
- </div>
179
- <slot name="content"></slot>
180
- </div>
181
- <div
182
- class="bg-neutral-97 rounded-b-24 shadow-neutral-inner-shadow-top"
183
- >
184
- <slot name="bottom"></slot>
185
- </div>
186
- </div>
187
- </div>
188
- `;
189
- }
190
- heroTemplate() {
191
- return x`
192
- <div
193
- data-testid="card"
194
- class="h-[240px] flex bg-neutral-100 ${customClassMap({
195
- [this.mediumStyles]: !this.customClass && this.size === "medium",
196
- [this.smallStyles]: !this.customClass && this.size === "small",
197
- [this.smallHoverStyles]: this.isHoverable && this.size === "small",
198
- [this.customClass]: !!this.customClass,
199
- ["w-[362px]"]: this.isFixedWidth,
200
- ["w-full"]: !this.isFixedWidth,
201
- ["min-h-[534px]"]: this.isFixedHeight
202
- })}"
203
- >
204
- <div
205
- style=${o({
206
- backgroundImage: `url(${this.backgroundUrl})`
207
- })}
208
- class="h-full w-full -mb-6 bg-center bg-cover rounded-24 relative"
209
- >
210
- ${this.backgroundUrl && x`<div
211
- class="h-full w-full rounded-24 bg-neutral-20/10 absolute"
212
- ></div>`}
213
- <div
214
- class="h-full w-full flex flex-col items-center justify-center absolute"
215
- >
216
- <slot name="content"></slot>
217
- </div>
218
- </div>
219
- </div>
220
- `;
221
- }
222
- dappTemplate() {
223
- return x`
224
- <div
225
- data-testid="card"
226
- class="bg-neutral-100 grid grid-rows-[auto,1fr] ${customClassMap({
227
- [this.mediumStyles]: !this.customClass && this.size === "medium",
228
- [this.smallStyles]: !this.customClass && this.size === "small",
229
- [this.smallHoverStyles]: this.isHoverable && this.size === "small",
230
- [this.customClass]: !!this.customClass,
231
- ["w-[362px]"]: this.isFixedWidth,
232
- ["w-full"]: !this.isFixedWidth,
233
- ["min-h-[534px]"]: this.isFixedHeight
234
- })}"
235
- >
236
- <div
237
- style=${o({
238
- backgroundImage: this.backgroundImageOrGradient()
239
- })}
240
- class="min-h-[240px] bg-center bg-cover rounded-[24px_24px_0_0] relative"
241
- >
242
- <div>
243
- <slot name="header"></slot>
244
- </div>
245
- </div>
246
- <div
247
- class="bg-neutral-100 shadow-neutral-above-shadow-1xl rounded-[0_0_24px_24px] relative"
248
- >
249
- <slot name="content"></slot>
250
- </div>
251
- </div>
252
- `;
253
- }
254
- render() {
255
- switch (this.variant) {
256
- case "with-header":
257
- return this.withHeaderTemplate();
258
- case "profile":
259
- return this.profileTemplate();
260
- case "profile-2":
261
- return this.profile2Template();
262
- case "hero":
263
- return this.heroTemplate();
264
- case "dapp":
265
- return this.dappTemplate();
266
- default:
267
- return this.basicTemplate();
268
- }
269
- }
270
- };
271
- __decorateClass([
272
- n({ type: String })
273
- ], LuksoCard.prototype, "variant", 2);
274
- __decorateClass([
275
- n({ type: String, attribute: "background-url" })
276
- ], LuksoCard.prototype, "backgroundUrl", 2);
277
- __decorateClass([
278
- n({ type: String, attribute: "profile-url" })
279
- ], LuksoCard.prototype, "profileUrl", 2);
280
- __decorateClass([
281
- n({ type: String, attribute: "profile-address" })
282
- ], LuksoCard.prototype, "profileAddress", 2);
283
- __decorateClass([
284
- n({ type: Boolean, attribute: "is-fixed-width" })
285
- ], LuksoCard.prototype, "isFixedWidth", 2);
286
- __decorateClass([
287
- n({ type: Boolean, attribute: "is-fixed-height" })
288
- ], LuksoCard.prototype, "isFixedHeight", 2);
289
- __decorateClass([
290
- n({ type: String, attribute: "custom-class" })
291
- ], LuksoCard.prototype, "customClass", 2);
292
- __decorateClass([
293
- n({ type: String })
294
- ], LuksoCard.prototype, "size", 2);
295
- __decorateClass([
296
- n({ type: Boolean, attribute: "is-hoverable" })
297
- ], LuksoCard.prototype, "isHoverable", 2);
298
- LuksoCard = __decorateClass([
299
- e("lukso-card")
300
- ], LuksoCard);
301
-
302
- export { LuksoCard };
@@ -1 +1 @@
1
- {"version":3,"file":"lukso-card.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-card/lukso-card.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAEhD,OAAO,SAAS,CAAA;AAChB,OAAO,kBAAkB,CAAA;AACzB,OAAO,mBAAmB,CAAA;AAE1B,qJAAqJ;AACrJ,QAAA,MAAM,IAAI,EAAE,IA8HX,CAAA;AAED,eAAe,IAAI,CAAA;AAsInB,iDAAiD;AACjD,eAAO,MAAM,WAAW,KAA2B,CAAA;AAQnD,0HAA0H;AAC1H,eAAO,MAAM,SAAS,KAA2B,CAAA;AAYjD,wCAAwC;AACxC,eAAO,MAAM,cAAc,KAA2B,CAAA;AAatD,+EAA+E;AAC/E,eAAO,MAAM,oBAAoB,KAAgC,CAAA;AAajE,sIAAsI;AACtI,eAAO,MAAM,WAAW,KAA2B,CAAA;AAmBnD,uCAAuC;AACvC,eAAO,MAAM,YAAY,KAA2B,CAAA;AAOpD,kCAAkC;AAClC,eAAO,MAAM,QAAQ,KAAwB,CAAA;AAK7C,kCAAkC;AAClC,eAAO,MAAM,QAAQ,KAA2B,CAAA;AAKhD,uGAAuG;AACvG,eAAO,MAAM,UAAU,KAA2B,CAAA;AAalD,sDAAsD;AACtD,eAAO,MAAM,SAAS,KAA2B,CAAA;AAKjD,sEAAsE;AACtE,eAAO,MAAM,aAAa,KAA2B,CAAA"}
1
+ {"version":3,"file":"lukso-card.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-card/lukso-card.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAEhD,OAAO,SAAS,CAAA;AAChB,OAAO,kBAAkB,CAAA;AACzB,OAAO,mBAAmB,CAAA;AAE1B,qJAAqJ;AACrJ,QAAA,MAAM,IAAI,EAAE,IAyIX,CAAA;AAED,eAAe,IAAI,CAAA;AAwInB,iDAAiD;AACjD,eAAO,MAAM,WAAW,KAA2B,CAAA;AAQnD,0HAA0H;AAC1H,eAAO,MAAM,SAAS,KAA2B,CAAA;AAYjD,wCAAwC;AACxC,eAAO,MAAM,cAAc,KAA2B,CAAA;AAatD,+EAA+E;AAC/E,eAAO,MAAM,oBAAoB,KAAgC,CAAA;AAajE,sIAAsI;AACtI,eAAO,MAAM,WAAW,KAA2B,CAAA;AAmBnD,uCAAuC;AACvC,eAAO,MAAM,YAAY,KAA2B,CAAA;AAOpD,kCAAkC;AAClC,eAAO,MAAM,QAAQ,KAAwB,CAAA;AAK7C,kCAAkC;AAClC,eAAO,MAAM,QAAQ,KAA2B,CAAA;AAKhD,uGAAuG;AACvG,eAAO,MAAM,UAAU,KAA2B,CAAA;AAalD,sDAAsD;AACtD,eAAO,MAAM,SAAS,KAA2B,CAAA;AAKjD,sEAAsE;AACtE,eAAO,MAAM,aAAa,KAA2B,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-c04e4744.cjs');
5
+ const shared_tailwindElement_index = require('../../index-aaa67d55.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
  const state = require('../../state-f73a8b4f.cjs');
8
8
  const index = require('../../index-e9668573.cjs');
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, x, A } from '../../index-cfea1b58.js';
1
+ import { a as TailwindElement, x, A } from '../../index-2f5488b6.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
3
  import { t } from '../../state-0a779257.js';
4
4
  import { c as customClassMap } from '../../index-5e194caf.js';
@@ -2,9 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c04e4744.cjs');
5
+ const shared_tailwindElement_index = require('../../index-aaa67d55.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
- require('../lukso-share/index.cjs');
8
7
 
9
8
  var __defProp = Object.defineProperty;
10
9
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-footer/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,0BAA0B,CAAA;AAEjC,qBACa,WAAY,SAAQ,eAAe;IAE9C,SAAS,SAAK;IAEd,OAAO,CAAC,gBAAgB,CASvB;IAED,MAAM;CAuCP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-footer/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,WAAY,SAAQ,eAAe;IAE9C,SAAS,SAAK;IAEd,OAAO,CAAC,gBAAgB,CASvB;IAED,MAAM;CAuCP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
@@ -1,6 +1,5 @@
1
- import { a as TailwindElement, x } from '../../index-cfea1b58.js';
1
+ import { a as TailwindElement, x } from '../../index-2f5488b6.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
- import '../lukso-share/index.js';
4
3
 
5
4
  var __defProp = Object.defineProperty;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c04e4744.cjs');
5
+ const shared_tailwindElement_index = require('../../index-aaa67d55.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
- const styleMap = require('../../style-map-ea2513e4.cjs');
7
+ const styleMap = require('../../style-map-74906707.cjs');
8
8
  require('../../directive-8278ab14.cjs');
9
9
 
10
10
  const style = ":host {\n display: inline-flex\n}";
@@ -1,6 +1,6 @@
1
- import { x, T as TailwindStyledElement } from '../../index-cfea1b58.js';
1
+ import { x, T as TailwindStyledElement } from '../../index-2f5488b6.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
- import { o } from '../../style-map-b2a337a1.js';
3
+ import { o } from '../../style-map-88b4d8ad.js';
4
4
  import '../../directive-2bb7789e.js';
5
5
 
6
6
  const style = ":host {\n display: inline-flex\n}";
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c04e4744.cjs');
5
+ const shared_tailwindElement_index = require('../../index-aaa67d55.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
  const state = require('../../state-f73a8b4f.cjs');
8
8
  const index = require('../../index-e9668573.cjs');
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, x, A } from '../../index-cfea1b58.js';
1
+ import { a as TailwindElement, x, A } from '../../index-2f5488b6.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
3
  import { t } from '../../state-0a779257.js';
4
4
  import { c as customClassMap } from '../../index-5e194caf.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-c04e4744.cjs');
5
+ const shared_tailwindElement_index = require('../../index-aaa67d55.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
  const index = require('../../index-e9668573.cjs');
8
8
  require('../../directive-8278ab14.cjs');
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, x } from '../../index-cfea1b58.js';
1
+ import { a as TailwindElement, x } from '../../index-2f5488b6.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
3
  import { c as customClassMap } from '../../index-5e194caf.js';
4
4
  import '../../directive-2bb7789e.js';
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c04e4744.cjs');
5
+ const shared_tailwindElement_index = require('../../index-aaa67d55.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
  const state = require('../../state-f73a8b4f.cjs');
8
8
  const index = require('../../index-e9668573.cjs');
9
9
  require('../lukso-icon/index.cjs');
10
10
  require('../lukso-tag/index.cjs');
11
11
  require('../../directive-8278ab14.cjs');
12
- require('../../style-map-ea2513e4.cjs');
12
+ require('../../style-map-74906707.cjs');
13
13
 
14
14
  var __defProp = Object.defineProperty;
15
15
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,11 +1,11 @@
1
- import { a as TailwindElement, x } from '../../index-cfea1b58.js';
1
+ import { a as TailwindElement, x } from '../../index-2f5488b6.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
3
  import { t } from '../../state-0a779257.js';
4
4
  import { c as customClassMap } from '../../index-5e194caf.js';
5
5
  import '../lukso-icon/index.js';
6
6
  import '../lukso-tag/index.js';
7
7
  import '../../directive-2bb7789e.js';
8
- import '../../style-map-b2a337a1.js';
8
+ import '../../style-map-88b4d8ad.js';
9
9
 
10
10
  var __defProp = Object.defineProperty;
11
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c04e4744.cjs');
5
+ const shared_tailwindElement_index = require('../../index-aaa67d55.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
- const styleMap = require('../../style-map-ea2513e4.cjs');
7
+ const styleMap = require('../../style-map-74906707.cjs');
8
8
  const index = require('../../index-e9668573.cjs');
9
9
  require('../../directive-8278ab14.cjs');
10
10
 
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x } from '../../index-cfea1b58.js';
1
+ import { a as TailwindElement, x } from '../../index-2f5488b6.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
- import { o } from '../../style-map-b2a337a1.js';
3
+ import { o } from '../../style-map-88b4d8ad.js';
4
4
  import { c as customClassMap } from '../../index-5e194caf.js';
5
5
  import '../../directive-2bb7789e.js';
6
6
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c04e4744.cjs');
5
+ const shared_tailwindElement_index = require('../../index-aaa67d55.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
- const styleMap = require('../../style-map-ea2513e4.cjs');
7
+ const styleMap = require('../../style-map-74906707.cjs');
8
8
  const index = require('../../index-e9668573.cjs');
9
9
  require('../../directive-8278ab14.cjs');
10
10
 
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x } from '../../index-cfea1b58.js';
1
+ import { a as TailwindElement, x } from '../../index-2f5488b6.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
- import { o } from '../../style-map-b2a337a1.js';
3
+ import { o } from '../../style-map-88b4d8ad.js';
4
4
  import { c as customClassMap } from '../../index-5e194caf.js';
5
5
  import '../../directive-2bb7789e.js';
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-c04e4744.cjs');
5
+ const shared_tailwindElement_index = require('../../index-aaa67d55.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
  const directive = require('../../directive-8278ab14.cjs');
8
8
 
@@ -1,4 +1,4 @@
1
- import { A, b as T, a as TailwindElement, x } from '../../index-cfea1b58.js';
1
+ import { A, b as T, a as TailwindElement, x } from '../../index-2f5488b6.js';
2
2
  import { n, e as e$2 } from '../../query-assigned-elements-5d94572f.js';
3
3
  import { i, t, e as e$1 } from '../../directive-2bb7789e.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-c04e4744.cjs');
5
+ const shared_tailwindElement_index = require('../../index-aaa67d55.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
  const state = require('../../state-f73a8b4f.cjs');
8
8
  const index = require('../../index-e9668573.cjs');
@@ -10,7 +10,7 @@ require('../lukso-icon/index.cjs');
10
10
  require('../lukso-profile/index.cjs');
11
11
  require('../lukso-username/index.cjs');
12
12
  require('../../directive-8278ab14.cjs');
13
- require('../../style-map-ea2513e4.cjs');
13
+ require('../../style-map-74906707.cjs');
14
14
 
15
15
  const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
16
16
 
@@ -63,11 +63,14 @@ exports.LuksoSearch = class LuksoSearch extends shared_tailwindElement_index.Tai
63
63
  `[data-index="${changedProperties.get("selected")}"`
64
64
  );
65
65
  if (selectedOption) {
66
- selectedOption.scrollIntoView({
67
- behavior: "smooth",
68
- block: "center",
69
- inline: "nearest"
70
- });
66
+ if ("scrollIntoViewIfNeeded" in selectedOption && typeof selectedOption.scrollIntoViewIfNeeded === "function") {
67
+ selectedOption.scrollIntoViewIfNeeded();
68
+ } else {
69
+ selectedOption.scrollIntoView({
70
+ behavior: "smooth",
71
+ block: "center"
72
+ });
73
+ }
71
74
  }
72
75
  }
73
76
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-search/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAiB,MAAM,KAAK,CAAA;AAMnE,OAAO,yBAAyB,CAAA;AAChC,OAAO,4BAA4B,CAAA;AACnC,OAAO,6BAA6B,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,CAAA;;AAEnE,qBACa,WAAY,SAAQ,gBAA4B;IAE3D,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,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,WAAW,UAAQ;IAGnB,aAAa,SAAK;IAGlB,aAAa,UAAQ;IAGrB,QAAQ,MAAY;IAGpB,OAAO,CAAC,Q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EAAE,MAAM;YA2BlD,YAAY;IAY1B,OAAO,CAAC,WAAW;YAOL,UAAU;YAgBV,gBAAgB;YAchB,cAAc;IAiB5B,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,cAAc;IAMtB,MAAM;CAiCP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
@@ -1,4 +1,4 @@
1
- import { T as TailwindStyledElement, x, A } from '../../index-cfea1b58.js';
1
+ import { T as TailwindStyledElement, x, A } from '../../index-2f5488b6.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
3
  import { t } from '../../state-0a779257.js';
4
4
  import { c as customClassMap } from '../../index-5e194caf.js';
@@ -6,7 +6,7 @@ import '../lukso-icon/index.js';
6
6
  import '../lukso-profile/index.js';
7
7
  import '../lukso-username/index.js';
8
8
  import '../../directive-2bb7789e.js';
9
- import '../../style-map-b2a337a1.js';
9
+ import '../../style-map-88b4d8ad.js';
10
10
 
11
11
  const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
12
12
 
@@ -59,11 +59,14 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
59
59
  `[data-index="${changedProperties.get("selected")}"`
60
60
  );
61
61
  if (selectedOption) {
62
- selectedOption.scrollIntoView({
63
- behavior: "smooth",
64
- block: "center",
65
- inline: "nearest"
66
- });
62
+ if ("scrollIntoViewIfNeeded" in selectedOption && typeof selectedOption.scrollIntoViewIfNeeded === "function") {
63
+ selectedOption.scrollIntoViewIfNeeded();
64
+ } else {
65
+ selectedOption.scrollIntoView({
66
+ behavior: "smooth",
67
+ block: "center"
68
+ });
69
+ }
67
70
  }
68
71
  }
69
72
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c04e4744.cjs');
5
+ const shared_tailwindElement_index = require('../../index-aaa67d55.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
  const state = require('../../state-f73a8b4f.cjs');
8
8
  const index = require('../../index-e9668573.cjs');
@@ -10,7 +10,7 @@ require('../lukso-icon/index.cjs');
10
10
  require('../lukso-profile/index.cjs');
11
11
  require('../lukso-username/index.cjs');
12
12
  require('../../directive-8278ab14.cjs');
13
- require('../../style-map-ea2513e4.cjs');
13
+ require('../../style-map-74906707.cjs');
14
14
 
15
15
  const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
16
16
 
@@ -64,20 +64,24 @@ exports.LuksoSelect = class LuksoSelect extends shared_tailwindElement_index.Tai
64
64
  `[data-index="${changedProperties.get("selected")}"`
65
65
  );
66
66
  if (selectedOption) {
67
- selectedOption.scrollIntoView({
68
- behavior: "smooth",
69
- block: "center"
70
- });
67
+ if ("scrollIntoViewIfNeeded" in selectedOption && typeof selectedOption.scrollIntoViewIfNeeded === "function") {
68
+ selectedOption.scrollIntoViewIfNeeded();
69
+ } else {
70
+ selectedOption.scrollIntoView({
71
+ behavior: "smooth",
72
+ block: "center"
73
+ });
74
+ }
71
75
  }
72
76
  }
73
- if (changedProperties.has("options")) {
77
+ if (changedProperties.has("options") && !!this.options) {
74
78
  try {
75
79
  this.optionsParsed = JSON.parse(this.options);
76
80
  } catch (error) {
77
81
  console.warn("Could not parse options", error);
78
82
  }
79
83
  }
80
- if (changedProperties.has("value")) {
84
+ if (changedProperties.has("value") && !!this.value) {
81
85
  try {
82
86
  this.valueParsed = JSON.parse(this.value);
83
87
  } catch (error) {