@lukso/web-components 1.116.2 → 1.117.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.
- package/dist/components/index.cjs +7 -7
- package/dist/components/index.js +7 -7
- package/dist/components/lukso-button/index.cjs +3 -3
- package/dist/components/lukso-button/index.js +3 -3
- package/dist/components/lukso-card/index.cjs +6 -6
- package/dist/components/lukso-card/index.js +6 -6
- package/dist/components/lukso-checkbox/index.cjs +3 -3
- package/dist/components/lukso-checkbox/index.js +3 -3
- package/dist/components/lukso-color-picker/index.cjs +4 -4
- package/dist/components/lukso-color-picker/index.js +4 -4
- package/dist/components/lukso-dropdown/index.cjs +7 -7
- package/dist/components/lukso-dropdown/index.js +7 -7
- package/dist/components/lukso-dropdown-option/index.cjs +2 -2
- package/dist/components/lukso-dropdown-option/index.js +2 -2
- package/dist/components/lukso-footer/index.cjs +2 -2
- package/dist/components/lukso-footer/index.js +2 -2
- package/dist/components/lukso-icon/index.cjs +3 -3
- package/dist/components/lukso-icon/index.js +3 -3
- package/dist/components/lukso-image/index.cjs +4 -4
- package/dist/components/lukso-image/index.js +4 -4
- package/dist/components/lukso-input/index.cjs +4 -4
- package/dist/components/lukso-input/index.js +4 -4
- package/dist/components/lukso-modal/index.cjs +2 -2
- package/dist/components/lukso-modal/index.js +2 -2
- package/dist/components/lukso-navbar/index.cjs +5 -5
- package/dist/components/lukso-navbar/index.js +5 -5
- package/dist/components/lukso-pagination/index.cjs +4 -4
- package/dist/components/lukso-pagination/index.js +4 -4
- package/dist/components/lukso-profile/index.cjs +5 -5
- package/dist/components/lukso-profile/index.js +5 -5
- package/dist/components/lukso-progress/index.cjs +3 -3
- package/dist/components/lukso-progress/index.js +3 -3
- package/dist/components/lukso-sanitize/index.cjs +2 -2
- package/dist/components/lukso-sanitize/index.js +2 -2
- package/dist/components/lukso-search/index.cjs +22 -14
- package/dist/components/lukso-search/index.d.ts +1 -0
- package/dist/components/lukso-search/index.d.ts.map +1 -1
- package/dist/components/lukso-search/index.js +22 -14
- package/dist/components/lukso-search/lukso-search.stories.d.ts.map +1 -1
- package/dist/components/lukso-select/index.cjs +22 -15
- package/dist/components/lukso-select/index.d.ts +1 -0
- package/dist/components/lukso-select/index.d.ts.map +1 -1
- package/dist/components/lukso-select/index.js +22 -15
- package/dist/components/lukso-select/lukso-select.stories.d.ts.map +1 -1
- package/dist/components/lukso-share/index.cjs +27 -24
- package/dist/components/lukso-share/index.js +27 -24
- package/dist/components/lukso-switch/index.cjs +11 -8
- package/dist/components/lukso-switch/index.js +11 -8
- package/dist/components/lukso-tag/index.cjs +35 -32
- package/dist/components/lukso-tag/index.js +35 -32
- package/dist/components/lukso-terms/index.cjs +10 -7
- package/dist/components/lukso-terms/index.js +10 -7
- package/dist/components/lukso-test/index.cjs +16 -13
- package/dist/components/lukso-test/index.js +16 -13
- package/dist/components/lukso-textarea/index.cjs +86 -83
- package/dist/components/lukso-textarea/index.js +86 -83
- package/dist/components/lukso-tooltip/index.cjs +38 -35
- package/dist/components/lukso-tooltip/index.js +38 -35
- package/dist/components/lukso-username/index.cjs +53 -50
- package/dist/components/lukso-username/index.js +53 -50
- package/dist/components/lukso-wizard/index.cjs +45 -42
- package/dist/components/lukso-wizard/index.js +45 -42
- package/dist/{index-dbfb7d50.cjs → index-104cf124.cjs} +3 -3
- package/dist/{index-40811e43.js → index-12775596.js} +3 -3
- package/dist/{index-f564f46f.cjs → index-3926da18.cjs} +1 -1
- package/dist/{index-9f282d35.cjs → index-67915f32.cjs} +2 -2
- package/dist/{index-dda1809d.cjs → index-68c61387.cjs} +5 -3
- package/dist/{index-eb08047e.js → index-7bb28a79.js} +1 -1
- package/dist/{index-86a3fdc1.js → index-92dc158d.js} +5 -3
- package/dist/{index-30c74dfe.js → index-ff8d75cd.js} +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.js +7 -7
- package/dist/{property-46482bf7.cjs → property-bf2eee83.cjs} +1 -1
- package/dist/{property-140ef335.js → property-eaa52bd9.js} +1 -1
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{state-876605e4.js → state-1fc9a224.js} +1 -1
- package/dist/{state-94c1d585.cjs → state-375dfffc.cjs} +1 -1
- package/dist/{style-map-15dde65e.js → style-map-5aef4b6f.js} +1 -1
- package/dist/{style-map-552ab28f.cjs → style-map-8e54f508.cjs} +1 -1
- package/package.json +1 -1
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const property = require('../../property-
|
|
7
|
-
const state = require('../../state-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-68c61387.cjs');
|
|
6
|
+
const property = require('../../property-bf2eee83.cjs');
|
|
7
|
+
const state = require('../../state-375dfffc.cjs');
|
|
8
8
|
const index = require('../../index-2b104ecb.cjs');
|
|
9
|
+
const components_luksoProfile_index = require('../../index-67915f32.cjs');
|
|
9
10
|
require('../lukso-icon/index.cjs');
|
|
10
|
-
require('../../index-9f282d35.cjs');
|
|
11
11
|
require('../lukso-username/index.cjs');
|
|
12
12
|
require('../lukso-input/index.cjs');
|
|
13
|
-
require('../../index-
|
|
13
|
+
require('../../index-104cf124.cjs');
|
|
14
14
|
require('../lukso-dropdown-option/index.cjs');
|
|
15
|
-
require('../../style-map-552ab28f.cjs');
|
|
16
|
-
require('../../directive-8278ab14.cjs');
|
|
17
15
|
require('../lukso-image/index.cjs');
|
|
18
|
-
require('../../
|
|
16
|
+
require('../../style-map-8e54f508.cjs');
|
|
17
|
+
require('../../directive-8278ab14.cjs');
|
|
18
|
+
require('../../index-3926da18.cjs');
|
|
19
19
|
require('../../tailwind-config.cjs');
|
|
20
20
|
require('../../cn-b6daa995.cjs');
|
|
21
21
|
|
|
@@ -191,6 +191,18 @@ exports.LuksoSearch = class LuksoSearch extends shared_tailwindElement_index.Tai
|
|
|
191
191
|
</lukso-dropdown-option>`;
|
|
192
192
|
}
|
|
193
193
|
resultProfileTemplate(result, index) {
|
|
194
|
+
const eoaProfilePicture = shared_tailwindElement_index.x`<lukso-profile
|
|
195
|
+
profile-address="${result.address}"
|
|
196
|
+
profile-url="${result.address ? components_luksoProfile_index.makeBlockie(result.address) : ""}"
|
|
197
|
+
size="x-small"
|
|
198
|
+
></lukso-profile>`;
|
|
199
|
+
const lsp3ProfilePicture = shared_tailwindElement_index.x`<lukso-profile
|
|
200
|
+
profile-address="${result.address}"
|
|
201
|
+
profile-url="${result.image}"
|
|
202
|
+
size="x-small"
|
|
203
|
+
has-identicon
|
|
204
|
+
></lukso-profile>`;
|
|
205
|
+
const profilePicture = result.isEOA ? eoaProfilePicture : lsp3ProfilePicture;
|
|
194
206
|
return shared_tailwindElement_index.x`<lukso-dropdown-option
|
|
195
207
|
data-id="${result.address}"
|
|
196
208
|
data-index="${index + 1}"
|
|
@@ -198,18 +210,14 @@ exports.LuksoSearch = class LuksoSearch extends shared_tailwindElement_index.Tai
|
|
|
198
210
|
size=${this.size}
|
|
199
211
|
@click=${() => this.handleSelect(result)}
|
|
200
212
|
>
|
|
201
|
-
|
|
202
|
-
profile-address="${result.address}"
|
|
203
|
-
profile-url="${result.image}"
|
|
204
|
-
size="x-small"
|
|
205
|
-
has-identicon
|
|
206
|
-
></lukso-profile>
|
|
213
|
+
${profilePicture}
|
|
207
214
|
<lukso-username
|
|
208
215
|
name="${result.name?.toLowerCase()}"
|
|
209
216
|
address="${result.address}"
|
|
210
217
|
name-color="neutral-20"
|
|
211
218
|
max-width="300"
|
|
212
219
|
size="medium"
|
|
220
|
+
class="ml-1"
|
|
213
221
|
></lukso-username>
|
|
214
222
|
</lukso-dropdown-option>`;
|
|
215
223
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-search/index.ts"],"names":[],"mappings":"AAAA,OAAO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,QAAQ,UAAQ;IAGhB,oBAAoB,UAAQ;IAG5B,QAAQ,MAAY;IAGpB,IAAI,EAAE,SAAS,CAAW;IAG1B,OAAO,CAAC,YAAY,CAAQ;IAG5B,OAAO,CAAC,aAAa,CAAgB;IAGrC,OAAO,CAAC,aAAa,CAAqB;IAG1C,OAAO,CAAC,UAAU,CAAK;IAEvB,OAAO,CAAC,MAAM,CAcZ;IAEF,iBAAiB;IAMjB,oBAAoB;IAMpB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAwBlD,eAAe;IA2Bf,iBAAiB;IAYjB,eAAe;IAiDf,oBAAoB,CAAC,MAAM,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM;IAY9D,qBAAqB,CAAC,MAAM,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM;YAmClD,0BAA0B;YAU1B,qBAAqB;YAiCrB,YAAY;YAYZ,UAAU;YAeV,gBAAgB;YAehB,WAAW;YAuBX,WAAW;YAmBX,cAAc;IAiB5B,OAAO,CAAC,YAAY;IAUpB,MAAM;CA8CP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x, E } from '../../index-
|
|
2
|
-
import { n, t } from '../../property-
|
|
3
|
-
import { r } from '../../state-
|
|
1
|
+
import { T as TailwindStyledElement, x, E } from '../../index-92dc158d.js';
|
|
2
|
+
import { n, t } from '../../property-eaa52bd9.js';
|
|
3
|
+
import { r } from '../../state-1fc9a224.js';
|
|
4
4
|
import { c as ce } from '../../index-d14b6a34.js';
|
|
5
|
+
import { m as makeBlockie } from '../../index-ff8d75cd.js';
|
|
5
6
|
import '../lukso-icon/index.js';
|
|
6
|
-
import '../../index-30c74dfe.js';
|
|
7
7
|
import '../lukso-username/index.js';
|
|
8
8
|
import '../lukso-input/index.js';
|
|
9
|
-
import '../../index-
|
|
9
|
+
import '../../index-12775596.js';
|
|
10
10
|
import '../lukso-dropdown-option/index.js';
|
|
11
|
-
import '../../style-map-15dde65e.js';
|
|
12
|
-
import '../../directive-2bb7789e.js';
|
|
13
11
|
import '../lukso-image/index.js';
|
|
14
|
-
import '../../
|
|
12
|
+
import '../../style-map-5aef4b6f.js';
|
|
13
|
+
import '../../directive-2bb7789e.js';
|
|
14
|
+
import '../../index-7bb28a79.js';
|
|
15
15
|
import '../../tailwind-config.js';
|
|
16
16
|
import '../../cn-90c03edf.js';
|
|
17
17
|
|
|
@@ -187,6 +187,18 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
187
187
|
</lukso-dropdown-option>`;
|
|
188
188
|
}
|
|
189
189
|
resultProfileTemplate(result, index) {
|
|
190
|
+
const eoaProfilePicture = x`<lukso-profile
|
|
191
|
+
profile-address="${result.address}"
|
|
192
|
+
profile-url="${result.address ? makeBlockie(result.address) : ""}"
|
|
193
|
+
size="x-small"
|
|
194
|
+
></lukso-profile>`;
|
|
195
|
+
const lsp3ProfilePicture = x`<lukso-profile
|
|
196
|
+
profile-address="${result.address}"
|
|
197
|
+
profile-url="${result.image}"
|
|
198
|
+
size="x-small"
|
|
199
|
+
has-identicon
|
|
200
|
+
></lukso-profile>`;
|
|
201
|
+
const profilePicture = result.isEOA ? eoaProfilePicture : lsp3ProfilePicture;
|
|
190
202
|
return x`<lukso-dropdown-option
|
|
191
203
|
data-id="${result.address}"
|
|
192
204
|
data-index="${index + 1}"
|
|
@@ -194,18 +206,14 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
194
206
|
size=${this.size}
|
|
195
207
|
@click=${() => this.handleSelect(result)}
|
|
196
208
|
>
|
|
197
|
-
|
|
198
|
-
profile-address="${result.address}"
|
|
199
|
-
profile-url="${result.image}"
|
|
200
|
-
size="x-small"
|
|
201
|
-
has-identicon
|
|
202
|
-
></lukso-profile>
|
|
209
|
+
${profilePicture}
|
|
203
210
|
<lukso-username
|
|
204
211
|
name="${result.name?.toLowerCase()}"
|
|
205
212
|
address="${result.address}"
|
|
206
213
|
name-color="neutral-20"
|
|
207
214
|
max-width="300"
|
|
208
215
|
size="medium"
|
|
216
|
+
class="ml-1"
|
|
209
217
|
></lukso-username>
|
|
210
218
|
</lukso-dropdown-option>`;
|
|
211
219
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lukso-search.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-search/lukso-search.stories.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,SAAS,CAAA;AAEhB,mHAAmH;AACnH,QAAA,MAAM,IAAI,EAAE,IAiTX,CAAA;AAED,eAAe,IAAI,CAAA;AA4FnB,+CAA+C;AAC/C,eAAO,MAAM,aAAa,KAAoB,CAAA;AAM9C,gDAAgD;AAChD,eAAO,MAAM,aAAa,KAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"lukso-search.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-search/lukso-search.stories.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,SAAS,CAAA;AAEhB,mHAAmH;AACnH,QAAA,MAAM,IAAI,EAAE,IAiTX,CAAA;AAED,eAAe,IAAI,CAAA;AA4FnB,+CAA+C;AAC/C,eAAO,MAAM,aAAa,KAAoB,CAAA;AAM9C,gDAAgD;AAChD,eAAO,MAAM,aAAa,KAAoB,CAAA;AA0B9C,0FAA0F;AAC1F,eAAO,MAAM,cAAc,KAAoB,CAAA;AAQ/C,mJAAmJ;AACnJ,eAAO,MAAM,SAAS,KAAoB,CAAA;AAQ1C,mCAAmC;AACnC,eAAO,MAAM,cAAc,KAAoB,CAAA;AAM/C,gCAAgC;AAChC,eAAO,MAAM,KAAK,KAAoB,CAAA"}
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const property = require('../../property-
|
|
7
|
-
const state = require('../../state-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-68c61387.cjs');
|
|
6
|
+
const property = require('../../property-bf2eee83.cjs');
|
|
7
|
+
const state = require('../../state-375dfffc.cjs');
|
|
8
8
|
const index = require('../../index-2b104ecb.cjs');
|
|
9
|
+
const components_luksoProfile_index = require('../../index-67915f32.cjs');
|
|
9
10
|
require('../lukso-icon/index.cjs');
|
|
10
|
-
require('../../index-9f282d35.cjs');
|
|
11
11
|
require('../lukso-username/index.cjs');
|
|
12
|
-
const components_luksoDropdown_index = require('../../index-
|
|
12
|
+
const components_luksoDropdown_index = require('../../index-104cf124.cjs');
|
|
13
13
|
require('../lukso-dropdown-option/index.cjs');
|
|
14
|
-
require('../../style-map-552ab28f.cjs');
|
|
15
|
-
require('../../directive-8278ab14.cjs');
|
|
16
14
|
require('../lukso-image/index.cjs');
|
|
17
|
-
require('../../
|
|
15
|
+
require('../../style-map-8e54f508.cjs');
|
|
16
|
+
require('../../directive-8278ab14.cjs');
|
|
17
|
+
require('../../index-3926da18.cjs');
|
|
18
18
|
require('../../tailwind-config.cjs');
|
|
19
19
|
require('../../cn-b6daa995.cjs');
|
|
20
20
|
|
|
@@ -270,13 +270,19 @@ exports.LuksoSelect = class LuksoSelect extends shared_tailwindElement_index.Tai
|
|
|
270
270
|
return option.value;
|
|
271
271
|
}
|
|
272
272
|
optionProfileValue(option) {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
273
|
+
const eoaProfilePicture = shared_tailwindElement_index.x`<lukso-profile
|
|
274
|
+
profile-address="${option.address}"
|
|
275
|
+
profile-url="${option.address ? components_luksoProfile_index.makeBlockie(option.address) : ""}"
|
|
276
|
+
size="x-small"
|
|
277
|
+
></lukso-profile>`;
|
|
278
|
+
const lsp3ProfilePicture = shared_tailwindElement_index.x`<lukso-profile
|
|
279
|
+
profile-address="${option.address}"
|
|
280
|
+
profile-url="${option.image}"
|
|
281
|
+
size="x-small"
|
|
282
|
+
has-identicon
|
|
283
|
+
></lukso-profile>`;
|
|
284
|
+
const profilePicture = option.isEOA ? eoaProfilePicture : lsp3ProfilePicture;
|
|
285
|
+
return shared_tailwindElement_index.x`${profilePicture}
|
|
280
286
|
<lukso-username
|
|
281
287
|
name="${option.name?.toLowerCase()}"
|
|
282
288
|
address="${option.address}"
|
|
@@ -284,6 +290,7 @@ exports.LuksoSelect = class LuksoSelect extends shared_tailwindElement_index.Tai
|
|
|
284
290
|
max-width="150"
|
|
285
291
|
slice-by="4"
|
|
286
292
|
size=${this.size}
|
|
293
|
+
class="ml-1"
|
|
287
294
|
></lukso-username>`;
|
|
288
295
|
}
|
|
289
296
|
selectedValueTemplate() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAiB,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAiB,MAAM,KAAK,CAAA;AAM7E,OAAO,yBAAyB,CAAA;AAChC,OAAO,4BAA4B,CAAA;AACnC,OAAO,6BAA6B,CAAA;AACpC,OAAO,6BAA6B,CAAA;AACpC,OAAO,oCAAoC,CAAA;AAI3C,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAExD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX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;IA2Bf,2BAA2B,CACzB,MAAM,EAAE,yBAAyB,EACjC,KAAK,EAAE,MAAM;IAef,oBAAoB,CAAC,MAAM,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM;IAiB9D,qBAAqB,CAAC,MAAM,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM;IAgBhE,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,kBAAkB;IA4B1B,OAAO,CAAC,qBAAqB;IA2D7B,OAAO,CAAC,0BAA0B;YAUpB,qBAAqB;YAqCrB,YAAY;YAiBZ,UAAU;IAcxB,OAAO,CAAC,WAAW;IAQnB,MAAM;CA6BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x, E } from '../../index-
|
|
2
|
-
import { n, t } from '../../property-
|
|
3
|
-
import { r } from '../../state-
|
|
1
|
+
import { T as TailwindStyledElement, x, E } from '../../index-92dc158d.js';
|
|
2
|
+
import { n, t } from '../../property-eaa52bd9.js';
|
|
3
|
+
import { r } from '../../state-1fc9a224.js';
|
|
4
4
|
import { c as ce } from '../../index-d14b6a34.js';
|
|
5
|
+
import { m as makeBlockie } from '../../index-ff8d75cd.js';
|
|
5
6
|
import '../lukso-icon/index.js';
|
|
6
|
-
import '../../index-30c74dfe.js';
|
|
7
7
|
import '../lukso-username/index.js';
|
|
8
|
-
import { u as uniqId } from '../../index-
|
|
8
|
+
import { u as uniqId } from '../../index-12775596.js';
|
|
9
9
|
import '../lukso-dropdown-option/index.js';
|
|
10
|
-
import '../../style-map-15dde65e.js';
|
|
11
|
-
import '../../directive-2bb7789e.js';
|
|
12
10
|
import '../lukso-image/index.js';
|
|
13
|
-
import '../../
|
|
11
|
+
import '../../style-map-5aef4b6f.js';
|
|
12
|
+
import '../../directive-2bb7789e.js';
|
|
13
|
+
import '../../index-7bb28a79.js';
|
|
14
14
|
import '../../tailwind-config.js';
|
|
15
15
|
import '../../cn-90c03edf.js';
|
|
16
16
|
|
|
@@ -266,13 +266,19 @@ let LuksoSelect = class extends TailwindStyledElement(style) {
|
|
|
266
266
|
return option.value;
|
|
267
267
|
}
|
|
268
268
|
optionProfileValue(option) {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
269
|
+
const eoaProfilePicture = x`<lukso-profile
|
|
270
|
+
profile-address="${option.address}"
|
|
271
|
+
profile-url="${option.address ? makeBlockie(option.address) : ""}"
|
|
272
|
+
size="x-small"
|
|
273
|
+
></lukso-profile>`;
|
|
274
|
+
const lsp3ProfilePicture = x`<lukso-profile
|
|
275
|
+
profile-address="${option.address}"
|
|
276
|
+
profile-url="${option.image}"
|
|
277
|
+
size="x-small"
|
|
278
|
+
has-identicon
|
|
279
|
+
></lukso-profile>`;
|
|
280
|
+
const profilePicture = option.isEOA ? eoaProfilePicture : lsp3ProfilePicture;
|
|
281
|
+
return x`${profilePicture}
|
|
276
282
|
<lukso-username
|
|
277
283
|
name="${option.name?.toLowerCase()}"
|
|
278
284
|
address="${option.address}"
|
|
@@ -280,6 +286,7 @@ let LuksoSelect = class extends TailwindStyledElement(style) {
|
|
|
280
286
|
max-width="150"
|
|
281
287
|
slice-by="4"
|
|
282
288
|
size=${this.size}
|
|
289
|
+
class="ml-1"
|
|
283
290
|
></lukso-username>`;
|
|
284
291
|
}
|
|
285
292
|
selectedValueTemplate() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lukso-select.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-select/lukso-select.stories.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,SAAS,CAAA;AAEhB,+DAA+D;AAC/D,QAAA,MAAM,IAAI,EAAE,IAuOX,CAAA;AAED,eAAe,IAAI,CAAA;AAyDnB,+CAA+C;AAC/C,eAAO,MAAM,aAAa,KAAoB,CAAA;AAK9C,6EAA6E;AAC7E,eAAO,MAAM,WAAW,KAAoB,CAAA;AAM5C,wCAAwC;AACxC,eAAO,MAAM,OAAO,KAAoB,CAAA;AAMxC,gDAAgD;AAChD,eAAO,MAAM,aAAa,KAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"lukso-select.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-select/lukso-select.stories.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,SAAS,CAAA;AAEhB,+DAA+D;AAC/D,QAAA,MAAM,IAAI,EAAE,IAuOX,CAAA;AAED,eAAe,IAAI,CAAA;AAyDnB,+CAA+C;AAC/C,eAAO,MAAM,aAAa,KAAoB,CAAA;AAK9C,6EAA6E;AAC7E,eAAO,MAAM,WAAW,KAAoB,CAAA;AAM5C,wCAAwC;AACxC,eAAO,MAAM,OAAO,KAAoB,CAAA;AAMxC,gDAAgD;AAChD,eAAO,MAAM,aAAa,KAAoB,CAAA;AAmC9C,kCAAkC;AAClC,eAAO,MAAM,WAAW,KAAoB,CAAA;AAM5C,gCAAgC;AAChC,eAAO,MAAM,WAAW,KAAoB,CAAA;AAe5C,uCAAuC;AACvC,eAAO,MAAM,iBAAiB,KAAoB,CAAA;AAOlD,kCAAkC;AAClC,eAAO,MAAM,aAAa,KAAoB,CAAA;AA2B9C,qCAAqC;AACrC,eAAO,MAAM,eAAe,KAAoB,CAAA"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const property = require('../../property-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-68c61387.cjs');
|
|
6
|
+
const property = require('../../property-bf2eee83.cjs');
|
|
7
7
|
|
|
8
8
|
const style = ":host {\n display: inline-flex\n}";
|
|
9
9
|
|
|
@@ -19,28 +19,31 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
exports.LuksoShare = class LuksoShare extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.customStyle = "";
|
|
25
|
+
this.providers = "";
|
|
26
|
+
this.defaultProviders = [
|
|
27
|
+
"twitter",
|
|
28
|
+
"instagram",
|
|
29
|
+
"linkedin",
|
|
30
|
+
"telegram",
|
|
31
|
+
"discord",
|
|
32
|
+
"reddit",
|
|
33
|
+
"medium",
|
|
34
|
+
"github"
|
|
35
|
+
];
|
|
36
|
+
this.defaultProviderLinks = {
|
|
37
|
+
twitter: "https://twitter.com/ERC725Account",
|
|
38
|
+
instagram: "https://www.instagram.com/lukso",
|
|
39
|
+
linkedin: "https://linkedin.com/company/lukso",
|
|
40
|
+
telegram: "https://t.me/LUKSO_News",
|
|
41
|
+
discord: "https://discord.gg/lukso",
|
|
42
|
+
reddit: "https://www.reddit.com/r/lukso",
|
|
43
|
+
medium: "https://medium.com/lukso",
|
|
44
|
+
github: "https://github.com/lukso-network"
|
|
45
|
+
};
|
|
46
|
+
}
|
|
44
47
|
linkTemplate(name, url) {
|
|
45
48
|
return shared_tailwindElement_index.x`<a
|
|
46
49
|
href=${url}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
2
|
-
import { n, t } from '../../property-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-92dc158d.js';
|
|
2
|
+
import { n, t } from '../../property-eaa52bd9.js';
|
|
3
3
|
|
|
4
4
|
const style = ":host {\n display: inline-flex\n}";
|
|
5
5
|
|
|
@@ -15,28 +15,31 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
15
15
|
return result;
|
|
16
16
|
};
|
|
17
17
|
let LuksoShare = class extends TailwindStyledElement(style) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.customStyle = "";
|
|
21
|
+
this.providers = "";
|
|
22
|
+
this.defaultProviders = [
|
|
23
|
+
"twitter",
|
|
24
|
+
"instagram",
|
|
25
|
+
"linkedin",
|
|
26
|
+
"telegram",
|
|
27
|
+
"discord",
|
|
28
|
+
"reddit",
|
|
29
|
+
"medium",
|
|
30
|
+
"github"
|
|
31
|
+
];
|
|
32
|
+
this.defaultProviderLinks = {
|
|
33
|
+
twitter: "https://twitter.com/ERC725Account",
|
|
34
|
+
instagram: "https://www.instagram.com/lukso",
|
|
35
|
+
linkedin: "https://linkedin.com/company/lukso",
|
|
36
|
+
telegram: "https://t.me/LUKSO_News",
|
|
37
|
+
discord: "https://discord.gg/lukso",
|
|
38
|
+
reddit: "https://www.reddit.com/r/lukso",
|
|
39
|
+
medium: "https://medium.com/lukso",
|
|
40
|
+
github: "https://github.com/lukso-network"
|
|
41
|
+
};
|
|
42
|
+
}
|
|
40
43
|
linkTemplate(name, url) {
|
|
41
44
|
return x`<a
|
|
42
45
|
href=${url}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const property = require('../../property-
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-68c61387.cjs');
|
|
6
|
+
const property = require('../../property-bf2eee83.cjs');
|
|
7
|
+
const styleMap = require('../../style-map-8e54f508.cjs');
|
|
8
8
|
const index = require('../../index-e9668573.cjs');
|
|
9
9
|
require('../../directive-8278ab14.cjs');
|
|
10
10
|
|
|
@@ -20,9 +20,14 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
20
20
|
return result;
|
|
21
21
|
};
|
|
22
22
|
exports.LuksoSwitch = class LuksoSwitch extends shared_tailwindElement_index.TailwindElement {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
this.color = "green-54";
|
|
26
|
+
this.isChecked = false;
|
|
27
|
+
this.isDisabled = false;
|
|
28
|
+
this.defaultLabelStyles = `transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10`;
|
|
29
|
+
this.defaultInputStyles = `absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in`;
|
|
30
|
+
}
|
|
26
31
|
async handleChange(event) {
|
|
27
32
|
const target = event.target;
|
|
28
33
|
this.isChecked = target.checked;
|
|
@@ -37,8 +42,6 @@ exports.LuksoSwitch = class LuksoSwitch extends shared_tailwindElement_index.Tai
|
|
|
37
42
|
});
|
|
38
43
|
this.dispatchEvent(changeEvent);
|
|
39
44
|
}
|
|
40
|
-
defaultLabelStyles = `transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10`;
|
|
41
|
-
defaultInputStyles = `absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in`;
|
|
42
45
|
render() {
|
|
43
46
|
return shared_tailwindElement_index.x`
|
|
44
47
|
<label
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
2
|
-
import { n, t } from '../../property-
|
|
3
|
-
import { o } from '../../style-map-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-92dc158d.js';
|
|
2
|
+
import { n, t } from '../../property-eaa52bd9.js';
|
|
3
|
+
import { o } from '../../style-map-5aef4b6f.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
5
|
import '../../directive-2bb7789e.js';
|
|
6
6
|
|
|
@@ -16,9 +16,14 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
16
16
|
return result;
|
|
17
17
|
};
|
|
18
18
|
let LuksoSwitch = class extends TailwindElement {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.color = "green-54";
|
|
22
|
+
this.isChecked = false;
|
|
23
|
+
this.isDisabled = false;
|
|
24
|
+
this.defaultLabelStyles = `transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10`;
|
|
25
|
+
this.defaultInputStyles = `absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in`;
|
|
26
|
+
}
|
|
22
27
|
async handleChange(event) {
|
|
23
28
|
const target = event.target;
|
|
24
29
|
this.isChecked = target.checked;
|
|
@@ -33,8 +38,6 @@ let LuksoSwitch = class extends TailwindElement {
|
|
|
33
38
|
});
|
|
34
39
|
this.dispatchEvent(changeEvent);
|
|
35
40
|
}
|
|
36
|
-
defaultLabelStyles = `transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10`;
|
|
37
|
-
defaultInputStyles = `absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in`;
|
|
38
41
|
render() {
|
|
39
42
|
return x`
|
|
40
43
|
<label
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const property = require('../../property-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-68c61387.cjs');
|
|
6
|
+
const property = require('../../property-bf2eee83.cjs');
|
|
7
7
|
const index = require('../../index-2b104ecb.cjs');
|
|
8
|
-
const index$1 = require('../../index-
|
|
8
|
+
const index$1 = require('../../index-3926da18.cjs');
|
|
9
9
|
require('../../directive-8278ab14.cjs');
|
|
10
10
|
|
|
11
11
|
const style = ":host {\n display: inline-flex\n}";
|
|
@@ -22,36 +22,39 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
22
22
|
return result;
|
|
23
23
|
};
|
|
24
24
|
exports.LuksoTag = class LuksoTag extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.size = "small";
|
|
28
|
+
this.isRounded = false;
|
|
29
|
+
this.backgroundColor = "";
|
|
30
|
+
this.borderColor = "";
|
|
31
|
+
this.textColor = "";
|
|
32
|
+
this.tagStyles = index.ce({
|
|
33
|
+
base: "inline-flex items-center justify-center border border-neutral-20 text-neutral-20 px-2 whitespace-nowrap",
|
|
34
|
+
variants: {
|
|
35
|
+
size: {
|
|
36
|
+
"x-small": "font-inter text-8 font-500 leading-20 h-[20px] px-1 rounded-4",
|
|
37
|
+
small: "paragraph-inter-12-medium h-[28px] px-2 rounded-8",
|
|
38
|
+
large: "paragraph-inter-14-medium h-[34px] px-4 rounded-8"
|
|
39
|
+
},
|
|
40
|
+
isRounded: {
|
|
41
|
+
true: "rounded-[56px]"
|
|
42
|
+
}
|
|
37
43
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
});
|
|
44
|
+
compoundVariants: [
|
|
45
|
+
{
|
|
46
|
+
size: "small",
|
|
47
|
+
isRounded: true,
|
|
48
|
+
class: "px-3"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
size: "x-small",
|
|
52
|
+
isRounded: true,
|
|
53
|
+
class: "px-2"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
55
58
|
resolveBorderColor() {
|
|
56
59
|
if (this.borderColor) {
|
|
57
60
|
return this.borderColor;
|