@lukso/web-components 1.116.2 → 1.118.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/lukso-icon/icons/document-text.d.ts +3 -0
- package/dist/components/lukso-icon/icons/document-text.d.ts.map +1 -0
- package/dist/components/lukso-icon/index.cjs +24 -0
- package/dist/components/lukso-icon/index.d.ts.map +1 -1
- package/dist/components/lukso-icon/index.js +24 -0
- package/dist/components/lukso-search/index.cjs +16 -8
- 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 +16 -8
- package/dist/components/lukso-search/lukso-search.stories.d.ts.map +1 -1
- package/dist/components/lukso-select/index.cjs +84 -77
- 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 +84 -77
- package/dist/components/lukso-select/lukso-select.stories.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-text.d.ts","sourceRoot":"","sources":["../../../../../../src/components/lukso-icon/icons/document-text.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE,eAAO,MAAM,YAAY,YAAa,WAAW,yCAqBhD,CAAA"}
|
|
@@ -7488,6 +7488,29 @@ const minusFilled = (options) => {
|
|
|
7488
7488
|
</svg> `;
|
|
7489
7489
|
};
|
|
7490
7490
|
|
|
7491
|
+
const documentText = (options) => {
|
|
7492
|
+
return shared_tailwindElement_index.x`<svg
|
|
7493
|
+
width="24"
|
|
7494
|
+
height="24"
|
|
7495
|
+
viewBox="0 0 25 24"
|
|
7496
|
+
fill="none"
|
|
7497
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7498
|
+
style=${styleMap.o({
|
|
7499
|
+
width: `${options.width}px`,
|
|
7500
|
+
height: `${options.height}px`
|
|
7501
|
+
})}
|
|
7502
|
+
>
|
|
7503
|
+
<path
|
|
7504
|
+
d="M16.417 22.75h-8c-3.65 0-5.75-2.1-5.75-5.75V7c0-3.65 2.1-5.75 5.75-5.75h8c3.65 0 5.75 2.1 5.75 5.75v10c0 3.65-2.1 5.75-5.75 5.75m-8-20c-2.86 0-4.25 1.39-4.25 4.25v10c0 2.86 1.39 4.25 4.25 4.25h8c2.86 0 4.25-1.39 4.25-4.25V7c0-2.86-1.39-4.25-4.25-4.25z"
|
|
7505
|
+
fill="var(--${options.color})"
|
|
7506
|
+
/>
|
|
7507
|
+
<path
|
|
7508
|
+
d="M18.917 9.25h-2c-1.52 0-2.75-1.23-2.75-2.75v-2c0-.41.34-.75.75-.75s.75.34.75.75v2c0 .69.56 1.25 1.25 1.25h2c.41 0 .75.34.75.75s-.34.75-.75.75m-6.5 4.5h-4c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h4c.41 0 .75.34.75.75s-.34.75-.75.75m4 4h-8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75"
|
|
7509
|
+
fill="var(--${options.color})"
|
|
7510
|
+
/>
|
|
7511
|
+
</svg> `;
|
|
7512
|
+
};
|
|
7513
|
+
|
|
7491
7514
|
var __defProp = Object.defineProperty;
|
|
7492
7515
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7493
7516
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -7643,6 +7666,7 @@ const iconMap = {
|
|
|
7643
7666
|
"extension-outline": extensionOutline,
|
|
7644
7667
|
"lukso-logo": luksoLogo,
|
|
7645
7668
|
"document-outline": documentOutline,
|
|
7669
|
+
"document-text": documentText,
|
|
7646
7670
|
"headset-outline": headsetOutline,
|
|
7647
7671
|
"cube-outline": cubeOutline,
|
|
7648
7672
|
"film-outline": filmOutline,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-icon/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-icon/index.ts"],"names":[],"mappings":"AAuMA,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;;AA6M5E,qBACa,SAAU,SAAQ,cAA4B;IAEzD,IAAI,SAAK;IAGT,IAAI,SAAW;IAGf,KAAK,SAAe;IAGpB,cAAc,SAAK;IAEnB,OAAO,CAAC,KAAK,CA0BZ;IAED,MAAM;CAyBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
|
|
@@ -7484,6 +7484,29 @@ const minusFilled = (options) => {
|
|
|
7484
7484
|
</svg> `;
|
|
7485
7485
|
};
|
|
7486
7486
|
|
|
7487
|
+
const documentText = (options) => {
|
|
7488
|
+
return x`<svg
|
|
7489
|
+
width="24"
|
|
7490
|
+
height="24"
|
|
7491
|
+
viewBox="0 0 25 24"
|
|
7492
|
+
fill="none"
|
|
7493
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7494
|
+
style=${o({
|
|
7495
|
+
width: `${options.width}px`,
|
|
7496
|
+
height: `${options.height}px`
|
|
7497
|
+
})}
|
|
7498
|
+
>
|
|
7499
|
+
<path
|
|
7500
|
+
d="M16.417 22.75h-8c-3.65 0-5.75-2.1-5.75-5.75V7c0-3.65 2.1-5.75 5.75-5.75h8c3.65 0 5.75 2.1 5.75 5.75v10c0 3.65-2.1 5.75-5.75 5.75m-8-20c-2.86 0-4.25 1.39-4.25 4.25v10c0 2.86 1.39 4.25 4.25 4.25h8c2.86 0 4.25-1.39 4.25-4.25V7c0-2.86-1.39-4.25-4.25-4.25z"
|
|
7501
|
+
fill="var(--${options.color})"
|
|
7502
|
+
/>
|
|
7503
|
+
<path
|
|
7504
|
+
d="M18.917 9.25h-2c-1.52 0-2.75-1.23-2.75-2.75v-2c0-.41.34-.75.75-.75s.75.34.75.75v2c0 .69.56 1.25 1.25 1.25h2c.41 0 .75.34.75.75s-.34.75-.75.75m-6.5 4.5h-4c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h4c.41 0 .75.34.75.75s-.34.75-.75.75m4 4h-8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75"
|
|
7505
|
+
fill="var(--${options.color})"
|
|
7506
|
+
/>
|
|
7507
|
+
</svg> `;
|
|
7508
|
+
};
|
|
7509
|
+
|
|
7487
7510
|
var __defProp = Object.defineProperty;
|
|
7488
7511
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7489
7512
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -7639,6 +7662,7 @@ const iconMap = {
|
|
|
7639
7662
|
"extension-outline": extensionOutline,
|
|
7640
7663
|
"lukso-logo": luksoLogo,
|
|
7641
7664
|
"document-outline": documentOutline,
|
|
7665
|
+
"document-text": documentText,
|
|
7642
7666
|
"headset-outline": headsetOutline,
|
|
7643
7667
|
"cube-outline": cubeOutline,
|
|
7644
7668
|
"film-outline": filmOutline,
|
|
@@ -6,15 +6,15 @@ const shared_tailwindElement_index = require('../../index-dda1809d.cjs');
|
|
|
6
6
|
const property = require('../../property-46482bf7.cjs');
|
|
7
7
|
const state = require('../../state-94c1d585.cjs');
|
|
8
8
|
const index = require('../../index-2b104ecb.cjs');
|
|
9
|
+
const components_luksoProfile_index = require('../../index-9f282d35.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
13
|
require('../../index-dbfb7d50.cjs');
|
|
14
14
|
require('../lukso-dropdown-option/index.cjs');
|
|
15
|
+
require('../lukso-image/index.cjs');
|
|
15
16
|
require('../../style-map-552ab28f.cjs');
|
|
16
17
|
require('../../directive-8278ab14.cjs');
|
|
17
|
-
require('../lukso-image/index.cjs');
|
|
18
18
|
require('../../index-f564f46f.cjs');
|
|
19
19
|
require('../../tailwind-config.cjs');
|
|
20
20
|
require('../../cn-b6daa995.cjs');
|
|
@@ -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,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAiB,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-search/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,0BAA0B,CAAA;AACjC,OAAO,6BAA6B,CAAA;AACpC,OAAO,oCAAoC,CAAA;AAG3C,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAExD,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;IACb,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,CAAA;;AA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yledElement, x, E } from '../../index-86a3fdc1.js';
|
|
|
2
2
|
import { n, t } from '../../property-140ef335.js';
|
|
3
3
|
import { r } from '../../state-876605e4.js';
|
|
4
4
|
import { c as ce } from '../../index-d14b6a34.js';
|
|
5
|
+
import { m as makeBlockie } from '../../index-30c74dfe.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
9
|
import '../../index-40811e43.js';
|
|
10
10
|
import '../lukso-dropdown-option/index.js';
|
|
11
|
+
import '../lukso-image/index.js';
|
|
11
12
|
import '../../style-map-15dde65e.js';
|
|
12
13
|
import '../../directive-2bb7789e.js';
|
|
13
|
-
import '../lukso-image/index.js';
|
|
14
14
|
import '../../index-eb08047e.js';
|
|
15
15
|
import '../../tailwind-config.js';
|
|
16
16
|
import '../../cn-90c03edf.js';
|
|
@@ -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"}
|
|
@@ -6,14 +6,14 @@ const shared_tailwindElement_index = require('../../index-dda1809d.cjs');
|
|
|
6
6
|
const property = require('../../property-46482bf7.cjs');
|
|
7
7
|
const state = require('../../state-94c1d585.cjs');
|
|
8
8
|
const index = require('../../index-2b104ecb.cjs');
|
|
9
|
+
const components_luksoProfile_index = require('../../index-9f282d35.cjs');
|
|
9
10
|
require('../lukso-icon/index.cjs');
|
|
10
|
-
require('../../index-9f282d35.cjs');
|
|
11
11
|
require('../lukso-username/index.cjs');
|
|
12
12
|
const components_luksoDropdown_index = require('../../index-dbfb7d50.cjs');
|
|
13
13
|
require('../lukso-dropdown-option/index.cjs');
|
|
14
|
+
require('../lukso-image/index.cjs');
|
|
14
15
|
require('../../style-map-552ab28f.cjs');
|
|
15
16
|
require('../../directive-8278ab14.cjs');
|
|
16
|
-
require('../lukso-image/index.cjs');
|
|
17
17
|
require('../../index-f564f46f.cjs');
|
|
18
18
|
require('../../tailwind-config.cjs');
|
|
19
19
|
require('../../cn-b6daa995.cjs');
|
|
@@ -32,84 +32,84 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
exports.LuksoSelect = class LuksoSelect extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
35
|
+
value = "";
|
|
36
|
+
placeholder = "";
|
|
37
|
+
label = "";
|
|
38
|
+
id = "";
|
|
39
|
+
description = "";
|
|
40
|
+
error = "";
|
|
41
|
+
isFullWidth = false;
|
|
42
|
+
isReadonly = false;
|
|
43
|
+
isDisabled = false;
|
|
44
|
+
borderless = false;
|
|
45
|
+
options = "";
|
|
46
|
+
selected = void 0;
|
|
47
|
+
isOpen = false;
|
|
48
|
+
openTop = false;
|
|
49
|
+
isLargeIcon = false;
|
|
50
|
+
isRight = false;
|
|
51
|
+
size = "medium";
|
|
52
|
+
showSelectionCounter = false;
|
|
53
|
+
optionsParsed = [];
|
|
54
|
+
valueParsed = void 0;
|
|
35
55
|
constructor() {
|
|
36
56
|
super();
|
|
37
|
-
this.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
this.isFullWidth = false;
|
|
44
|
-
this.isReadonly = false;
|
|
45
|
-
this.isDisabled = false;
|
|
46
|
-
this.borderless = false;
|
|
47
|
-
this.options = "";
|
|
48
|
-
this.selected = void 0;
|
|
49
|
-
this.isOpen = false;
|
|
50
|
-
this.openTop = false;
|
|
51
|
-
this.isLargeIcon = false;
|
|
52
|
-
this.isRight = false;
|
|
53
|
-
this.size = "medium";
|
|
54
|
-
this.showSelectionCounter = false;
|
|
55
|
-
this.optionsParsed = [];
|
|
56
|
-
this.valueParsed = void 0;
|
|
57
|
-
this.inputStyles = index.ce({
|
|
58
|
-
base: `bg-neutral-100
|
|
57
|
+
if (!this.id) {
|
|
58
|
+
this.id = components_luksoDropdown_index.uniqId();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
inputStyles = index.ce({
|
|
62
|
+
base: `bg-neutral-100
|
|
59
63
|
border border-solid placeholder:text-neutral-70 select-none whitespace-nowrap
|
|
60
64
|
outline-none transition transition-all duration-150 appearance-none
|
|
61
65
|
text-neutral-20 cursor-pointer border-neutral-90 group-hover:border-neutral-35
|
|
62
66
|
flex items-center`,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
67
|
+
variants: {
|
|
68
|
+
isFullWidth: {
|
|
69
|
+
true: "w-full"
|
|
70
|
+
},
|
|
71
|
+
isDisabled: {
|
|
72
|
+
true: "cursor-not-allowed text-neutral-60 group-hover:border-neutral-90"
|
|
73
|
+
},
|
|
74
|
+
hasError: {
|
|
75
|
+
true: "border-red-85 group-hover:border-red-65"
|
|
76
|
+
},
|
|
77
|
+
borderless: {
|
|
78
|
+
true: "border-0"
|
|
79
|
+
},
|
|
80
|
+
size: {
|
|
81
|
+
small: "h-[28px] px-3 py-2 pr-8 paragraph-inter-12-regular rounded-8",
|
|
82
|
+
medium: "h-[48px] px-4 py-3 pr-11 paragraph-inter-14-regular rounded-12"
|
|
80
83
|
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
counterStyles = index.ce({
|
|
87
|
+
base: "border border-neutral-20",
|
|
88
|
+
variants: {
|
|
89
|
+
isDisabled: {
|
|
90
|
+
true: "opacity-60 cursor-not-allowed"
|
|
91
|
+
},
|
|
92
|
+
size: {
|
|
93
|
+
small: "paragraph-inter-10-semi-bold rounded-4 py-[1px] px-[5px] ml-1.5",
|
|
94
|
+
medium: "paragraph-inter-14-semi-bold rounded-8 py-[2px] px-[10px] ml-3"
|
|
92
95
|
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
iconStyles = index.ce({
|
|
99
|
+
base: "absolute right-0 transition cursor-pointer",
|
|
100
|
+
variants: {
|
|
101
|
+
isDisabled: {
|
|
102
|
+
true: "opacity-60 cursor-not-allowed"
|
|
103
|
+
},
|
|
104
|
+
isOpen: {
|
|
105
|
+
true: "rotate-180"
|
|
106
|
+
},
|
|
107
|
+
size: {
|
|
108
|
+
small: "mr-2",
|
|
109
|
+
medium: "mr-3"
|
|
107
110
|
}
|
|
108
|
-
});
|
|
109
|
-
if (!this.id) {
|
|
110
|
-
this.id = components_luksoDropdown_index.uniqId();
|
|
111
111
|
}
|
|
112
|
-
}
|
|
112
|
+
});
|
|
113
113
|
connectedCallback() {
|
|
114
114
|
super.connectedCallback();
|
|
115
115
|
window.addEventListener("click", this.handleOutsideDropdownClick.bind(this));
|
|
@@ -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,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,YAAY,GACpB,kBAAkB,GAClB,mBAAmB,GACnB,yBAAyB,CAAA;;AAE7B,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,14 +2,14 @@ import { T as TailwindStyledElement, x, E } from '../../index-86a3fdc1.js';
|
|
|
2
2
|
import { n, t } from '../../property-140ef335.js';
|
|
3
3
|
import { r } from '../../state-876605e4.js';
|
|
4
4
|
import { c as ce } from '../../index-d14b6a34.js';
|
|
5
|
+
import { m as makeBlockie } from '../../index-30c74dfe.js';
|
|
5
6
|
import '../lukso-icon/index.js';
|
|
6
|
-
import '../../index-30c74dfe.js';
|
|
7
7
|
import '../lukso-username/index.js';
|
|
8
8
|
import { u as uniqId } from '../../index-40811e43.js';
|
|
9
9
|
import '../lukso-dropdown-option/index.js';
|
|
10
|
+
import '../lukso-image/index.js';
|
|
10
11
|
import '../../style-map-15dde65e.js';
|
|
11
12
|
import '../../directive-2bb7789e.js';
|
|
12
|
-
import '../lukso-image/index.js';
|
|
13
13
|
import '../../index-eb08047e.js';
|
|
14
14
|
import '../../tailwind-config.js';
|
|
15
15
|
import '../../cn-90c03edf.js';
|
|
@@ -28,84 +28,84 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
28
28
|
return result;
|
|
29
29
|
};
|
|
30
30
|
let LuksoSelect = class extends TailwindStyledElement(style) {
|
|
31
|
+
value = "";
|
|
32
|
+
placeholder = "";
|
|
33
|
+
label = "";
|
|
34
|
+
id = "";
|
|
35
|
+
description = "";
|
|
36
|
+
error = "";
|
|
37
|
+
isFullWidth = false;
|
|
38
|
+
isReadonly = false;
|
|
39
|
+
isDisabled = false;
|
|
40
|
+
borderless = false;
|
|
41
|
+
options = "";
|
|
42
|
+
selected = void 0;
|
|
43
|
+
isOpen = false;
|
|
44
|
+
openTop = false;
|
|
45
|
+
isLargeIcon = false;
|
|
46
|
+
isRight = false;
|
|
47
|
+
size = "medium";
|
|
48
|
+
showSelectionCounter = false;
|
|
49
|
+
optionsParsed = [];
|
|
50
|
+
valueParsed = void 0;
|
|
31
51
|
constructor() {
|
|
32
52
|
super();
|
|
33
|
-
this.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
this.isFullWidth = false;
|
|
40
|
-
this.isReadonly = false;
|
|
41
|
-
this.isDisabled = false;
|
|
42
|
-
this.borderless = false;
|
|
43
|
-
this.options = "";
|
|
44
|
-
this.selected = void 0;
|
|
45
|
-
this.isOpen = false;
|
|
46
|
-
this.openTop = false;
|
|
47
|
-
this.isLargeIcon = false;
|
|
48
|
-
this.isRight = false;
|
|
49
|
-
this.size = "medium";
|
|
50
|
-
this.showSelectionCounter = false;
|
|
51
|
-
this.optionsParsed = [];
|
|
52
|
-
this.valueParsed = void 0;
|
|
53
|
-
this.inputStyles = ce({
|
|
54
|
-
base: `bg-neutral-100
|
|
53
|
+
if (!this.id) {
|
|
54
|
+
this.id = uniqId();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
inputStyles = ce({
|
|
58
|
+
base: `bg-neutral-100
|
|
55
59
|
border border-solid placeholder:text-neutral-70 select-none whitespace-nowrap
|
|
56
60
|
outline-none transition transition-all duration-150 appearance-none
|
|
57
61
|
text-neutral-20 cursor-pointer border-neutral-90 group-hover:border-neutral-35
|
|
58
62
|
flex items-center`,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
63
|
+
variants: {
|
|
64
|
+
isFullWidth: {
|
|
65
|
+
true: "w-full"
|
|
66
|
+
},
|
|
67
|
+
isDisabled: {
|
|
68
|
+
true: "cursor-not-allowed text-neutral-60 group-hover:border-neutral-90"
|
|
69
|
+
},
|
|
70
|
+
hasError: {
|
|
71
|
+
true: "border-red-85 group-hover:border-red-65"
|
|
72
|
+
},
|
|
73
|
+
borderless: {
|
|
74
|
+
true: "border-0"
|
|
75
|
+
},
|
|
76
|
+
size: {
|
|
77
|
+
small: "h-[28px] px-3 py-2 pr-8 paragraph-inter-12-regular rounded-8",
|
|
78
|
+
medium: "h-[48px] px-4 py-3 pr-11 paragraph-inter-14-regular rounded-12"
|
|
76
79
|
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
counterStyles = ce({
|
|
83
|
+
base: "border border-neutral-20",
|
|
84
|
+
variants: {
|
|
85
|
+
isDisabled: {
|
|
86
|
+
true: "opacity-60 cursor-not-allowed"
|
|
87
|
+
},
|
|
88
|
+
size: {
|
|
89
|
+
small: "paragraph-inter-10-semi-bold rounded-4 py-[1px] px-[5px] ml-1.5",
|
|
90
|
+
medium: "paragraph-inter-14-semi-bold rounded-8 py-[2px] px-[10px] ml-3"
|
|
88
91
|
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
iconStyles = ce({
|
|
95
|
+
base: "absolute right-0 transition cursor-pointer",
|
|
96
|
+
variants: {
|
|
97
|
+
isDisabled: {
|
|
98
|
+
true: "opacity-60 cursor-not-allowed"
|
|
99
|
+
},
|
|
100
|
+
isOpen: {
|
|
101
|
+
true: "rotate-180"
|
|
102
|
+
},
|
|
103
|
+
size: {
|
|
104
|
+
small: "mr-2",
|
|
105
|
+
medium: "mr-3"
|
|
103
106
|
}
|
|
104
|
-
});
|
|
105
|
-
if (!this.id) {
|
|
106
|
-
this.id = uniqId();
|
|
107
107
|
}
|
|
108
|
-
}
|
|
108
|
+
});
|
|
109
109
|
connectedCallback() {
|
|
110
110
|
super.connectedCallback();
|
|
111
111
|
window.addEventListener("click", this.handleOutsideDropdownClick.bind(this));
|
|
@@ -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"}
|