@lukso/web-components 1.40.0 → 1.42.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 -6
- package/dist/components/index.js +7 -6
- package/dist/components/lukso-button/index.cjs +21 -20
- package/dist/components/lukso-button/index.js +5 -4
- package/dist/components/lukso-card/index.cjs +15 -14
- package/dist/components/lukso-card/index.js +5 -4
- package/dist/components/lukso-checkbox/index.cjs +16 -15
- package/dist/components/lukso-checkbox/index.js +5 -4
- package/dist/components/lukso-footer/index.cjs +39 -27
- package/dist/components/lukso-footer/index.d.ts +2 -0
- package/dist/components/lukso-footer/index.d.ts.map +1 -1
- package/dist/components/lukso-footer/index.js +39 -27
- package/dist/components/lukso-footer/lukso-footer.stories.d.ts +2 -0
- package/dist/components/lukso-footer/lukso-footer.stories.d.ts.map +1 -1
- package/dist/components/lukso-icon/index.cjs +9 -8
- package/dist/components/lukso-icon/index.js +4 -3
- package/dist/components/lukso-input/index.cjs +26 -25
- package/dist/components/lukso-input/index.js +5 -4
- package/dist/components/lukso-modal/index.cjs +7 -6
- package/dist/components/lukso-modal/index.js +4 -3
- package/dist/components/lukso-navbar/index.cjs +15 -14
- package/dist/components/lukso-navbar/index.js +6 -5
- package/dist/components/lukso-profile/index.cjs +10 -9
- package/dist/components/lukso-profile/index.js +5 -4
- package/dist/components/lukso-progress/index.cjs +10 -9
- package/dist/components/lukso-progress/index.js +5 -4
- package/dist/components/lukso-sanitize/index.cjs +7 -6
- package/dist/components/lukso-sanitize/index.js +3 -2
- package/dist/components/lukso-search/index.cjs +71 -47
- package/dist/components/lukso-search/index.d.ts +6 -2
- package/dist/components/lukso-search/index.d.ts.map +1 -1
- package/dist/components/lukso-search/index.js +53 -29
- package/dist/components/lukso-search/lukso-search.stories.d.ts +6 -2
- package/dist/components/lukso-search/lukso-search.stories.d.ts.map +1 -1
- package/dist/components/lukso-share/index.cjs +24 -15
- package/dist/components/lukso-share/index.d.ts +8 -2
- package/dist/components/lukso-share/index.d.ts.map +1 -1
- package/dist/components/lukso-share/index.js +23 -14
- package/dist/components/lukso-share/lukso-share.stories.d.ts +5 -1
- package/dist/components/lukso-share/lukso-share.stories.d.ts.map +1 -1
- package/dist/components/lukso-switch/index.cjs +9 -8
- package/dist/components/lukso-switch/index.js +5 -4
- package/dist/components/lukso-tag/index.cjs +10 -9
- package/dist/components/lukso-tag/index.js +5 -4
- package/dist/components/lukso-terms/index.cjs +9 -7
- package/dist/components/lukso-terms/index.d.ts.map +1 -1
- package/dist/components/lukso-terms/index.js +7 -5
- package/dist/components/lukso-test/index.cjs +10 -9
- package/dist/components/lukso-test/index.js +4 -3
- package/dist/components/lukso-username/index.cjs +16 -15
- package/dist/components/lukso-username/index.js +5 -4
- package/dist/components/lukso-wizard/index.cjs +10 -9
- package/dist/components/lukso-wizard/index.js +5 -4
- package/dist/directive-2bb7789e.js +8 -0
- package/dist/directive-8278ab14.cjs +12 -0
- package/dist/{directive-helpers-38cb10eb.cjs → directive-helpers-01f1c3b1.cjs} +1 -1
- package/dist/{directive-helpers-294cf70c.js → directive-helpers-8f79cbe5.js} +1 -1
- package/dist/{index-714323c9.js → index-5e194caf.js} +1 -1
- package/dist/{index-b3762a1f.cjs → index-930f6cf2.cjs} +1 -1
- package/dist/{index-7dc05ee5.cjs → index-e9668573.cjs} +2 -2
- package/dist/{index-211c8050.js → index-ed87f41b.js} +1 -1
- package/dist/index.cjs +7 -6
- package/dist/index.js +7 -6
- package/dist/query-assigned-elements-5200f974.cjs +24 -0
- package/dist/query-assigned-elements-e36df787.js +21 -0
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{state-7fde94d1.js → state-02a92ffa.js} +1 -1
- package/dist/state-51b50a6b.cjs +11 -0
- package/dist/style-map-3b9af808.cjs +12 -0
- package/dist/{style-map-1398bfd6.js → style-map-5daca6c4.js} +2 -2
- package/package.json +1 -1
- package/tools/assets/images/social-discord.svg +4 -1
- package/tools/assets/images/social-github.svg +11 -1
- package/tools/assets/images/social-instagram.svg +6 -1
- package/tools/assets/images/social-linkedin.svg +4 -1
- package/tools/assets/images/social-medium.svg +6 -1
- package/tools/assets/images/social-reddit.svg +11 -1
- package/tools/assets/images/social-telegram.svg +4 -1
- package/tools/assets/images/social-twitter.svg +4 -1
- package/tools/sass/component.scss +4 -0
- package/dist/directive-9ec64c08.js +0 -28
- package/dist/directive-db00f5fb.cjs +0 -34
- package/dist/state-a62a7d5d.cjs +0 -11
- package/dist/style-map-cc5b37cd.cjs +0 -12
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const
|
|
7
|
-
const state = require('../../state-
|
|
8
|
-
const index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-930f6cf2.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-5200f974.cjs');
|
|
7
|
+
const state = require('../../state-51b50a6b.cjs');
|
|
8
|
+
const index = require('../../index-e9668573.cjs');
|
|
9
|
+
require('../../directive-8278ab14.cjs');
|
|
9
10
|
|
|
10
11
|
var __defProp = Object.defineProperty;
|
|
11
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -248,64 +249,64 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
248
249
|
}
|
|
249
250
|
};
|
|
250
251
|
__decorateClass([
|
|
251
|
-
|
|
252
|
+
queryAssignedElements.e({ type: String })
|
|
252
253
|
], exports.LuksoInput.prototype, "value", 2);
|
|
253
254
|
__decorateClass([
|
|
254
|
-
|
|
255
|
+
queryAssignedElements.e({ type: String })
|
|
255
256
|
], exports.LuksoInput.prototype, "name", 2);
|
|
256
257
|
__decorateClass([
|
|
257
|
-
|
|
258
|
+
queryAssignedElements.e({ type: String })
|
|
258
259
|
], exports.LuksoInput.prototype, "type", 2);
|
|
259
260
|
__decorateClass([
|
|
260
|
-
|
|
261
|
+
queryAssignedElements.e({ type: String })
|
|
261
262
|
], exports.LuksoInput.prototype, "placeholder", 2);
|
|
262
263
|
__decorateClass([
|
|
263
|
-
|
|
264
|
+
queryAssignedElements.e({ type: String })
|
|
264
265
|
], exports.LuksoInput.prototype, "label", 2);
|
|
265
266
|
__decorateClass([
|
|
266
|
-
|
|
267
|
+
queryAssignedElements.e({ type: String })
|
|
267
268
|
], exports.LuksoInput.prototype, "autocomplete", 2);
|
|
268
269
|
__decorateClass([
|
|
269
|
-
|
|
270
|
+
queryAssignedElements.e({ type: String })
|
|
270
271
|
], exports.LuksoInput.prototype, "id", 2);
|
|
271
272
|
__decorateClass([
|
|
272
|
-
|
|
273
|
+
queryAssignedElements.e({ type: String })
|
|
273
274
|
], exports.LuksoInput.prototype, "ref", 2);
|
|
274
275
|
__decorateClass([
|
|
275
|
-
|
|
276
|
+
queryAssignedElements.e({ type: String })
|
|
276
277
|
], exports.LuksoInput.prototype, "accept", 2);
|
|
277
278
|
__decorateClass([
|
|
278
|
-
|
|
279
|
+
queryAssignedElements.e({ type: String })
|
|
279
280
|
], exports.LuksoInput.prototype, "description", 2);
|
|
280
281
|
__decorateClass([
|
|
281
|
-
|
|
282
|
+
queryAssignedElements.e({ type: String })
|
|
282
283
|
], exports.LuksoInput.prototype, "error", 2);
|
|
283
284
|
__decorateClass([
|
|
284
|
-
|
|
285
|
+
queryAssignedElements.e({ type: String })
|
|
285
286
|
], exports.LuksoInput.prototype, "unit", 2);
|
|
286
287
|
__decorateClass([
|
|
287
|
-
|
|
288
|
+
queryAssignedElements.e({ type: String, attribute: "custom-class" })
|
|
288
289
|
], exports.LuksoInput.prototype, "customClass", 2);
|
|
289
290
|
__decorateClass([
|
|
290
|
-
|
|
291
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-full-width" })
|
|
291
292
|
], exports.LuksoInput.prototype, "isFullWidth", 2);
|
|
292
293
|
__decorateClass([
|
|
293
|
-
|
|
294
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-readonly" })
|
|
294
295
|
], exports.LuksoInput.prototype, "isReadonly", 2);
|
|
295
296
|
__decorateClass([
|
|
296
|
-
|
|
297
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-disabled" })
|
|
297
298
|
], exports.LuksoInput.prototype, "isDisabled", 2);
|
|
298
299
|
__decorateClass([
|
|
299
|
-
|
|
300
|
+
queryAssignedElements.e({ type: Boolean })
|
|
300
301
|
], exports.LuksoInput.prototype, "autofocus", 2);
|
|
301
302
|
__decorateClass([
|
|
302
|
-
|
|
303
|
+
queryAssignedElements.e({ type: Number })
|
|
303
304
|
], exports.LuksoInput.prototype, "max", 2);
|
|
304
305
|
__decorateClass([
|
|
305
|
-
|
|
306
|
+
queryAssignedElements.e({ type: Number })
|
|
306
307
|
], exports.LuksoInput.prototype, "min", 2);
|
|
307
308
|
__decorateClass([
|
|
308
|
-
|
|
309
|
+
queryAssignedElements.e({ type: Boolean })
|
|
309
310
|
], exports.LuksoInput.prototype, "borderless", 2);
|
|
310
311
|
__decorateClass([
|
|
311
312
|
state.t()
|
|
@@ -314,5 +315,5 @@ __decorateClass([
|
|
|
314
315
|
state.t()
|
|
315
316
|
], exports.LuksoInput.prototype, "hasHighlight", 2);
|
|
316
317
|
exports.LuksoInput = __decorateClass([
|
|
317
|
-
|
|
318
|
+
queryAssignedElements.e$1("lukso-input")
|
|
318
319
|
], exports.LuksoInput);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { a as TailwindElement, x, A } from '../../index-
|
|
2
|
-
import { e, a as e$1 } from '../../
|
|
3
|
-
import { t } from '../../state-
|
|
4
|
-
import { c as customClassMap } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x, A } from '../../index-ed87f41b.js';
|
|
2
|
+
import { e, a as e$1 } from '../../query-assigned-elements-e36df787.js';
|
|
3
|
+
import { t } from '../../state-02a92ffa.js';
|
|
4
|
+
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
|
+
import '../../directive-2bb7789e.js';
|
|
5
6
|
|
|
6
7
|
var __defProp = Object.defineProperty;
|
|
7
8
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const
|
|
7
|
-
const index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-930f6cf2.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-5200f974.cjs');
|
|
7
|
+
const index = require('../../index-e9668573.cjs');
|
|
8
|
+
require('../../directive-8278ab14.cjs');
|
|
8
9
|
|
|
9
10
|
var __defProp = Object.defineProperty;
|
|
10
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -60,11 +61,11 @@ exports.LuksoModal = class LuksoModal extends shared_tailwindElement_index.Tailw
|
|
|
60
61
|
}
|
|
61
62
|
};
|
|
62
63
|
__decorateClass([
|
|
63
|
-
|
|
64
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-open" })
|
|
64
65
|
], exports.LuksoModal.prototype, "isOpen", 2);
|
|
65
66
|
__decorateClass([
|
|
66
|
-
|
|
67
|
+
queryAssignedElements.e({ type: String })
|
|
67
68
|
], exports.LuksoModal.prototype, "size", 2);
|
|
68
69
|
exports.LuksoModal = __decorateClass([
|
|
69
|
-
|
|
70
|
+
queryAssignedElements.e$1("lukso-modal")
|
|
70
71
|
], exports.LuksoModal);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
2
|
-
import { e, a as e$1 } from '../../
|
|
3
|
-
import { c as customClassMap } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-ed87f41b.js';
|
|
2
|
+
import { e, a as e$1 } from '../../query-assigned-elements-e36df787.js';
|
|
3
|
+
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
4
|
+
import '../../directive-2bb7789e.js';
|
|
4
5
|
|
|
5
6
|
var __defProp = Object.defineProperty;
|
|
6
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const
|
|
7
|
-
const state = require('../../state-
|
|
8
|
-
const index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-930f6cf2.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-5200f974.cjs');
|
|
7
|
+
const state = require('../../state-51b50a6b.cjs');
|
|
8
|
+
const index = require('../../index-e9668573.cjs');
|
|
9
9
|
require('../lukso-icon/index.cjs');
|
|
10
10
|
require('../lukso-tag/index.cjs');
|
|
11
|
-
require('../../
|
|
11
|
+
require('../../directive-8278ab14.cjs');
|
|
12
|
+
require('../../style-map-3b9af808.cjs');
|
|
12
13
|
|
|
13
14
|
var __defProp = Object.defineProperty;
|
|
14
15
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -125,32 +126,32 @@ exports.LuksoNavbar = class LuksoNavbar extends shared_tailwindElement_index.Tai
|
|
|
125
126
|
}
|
|
126
127
|
};
|
|
127
128
|
__decorateClass([
|
|
128
|
-
|
|
129
|
+
queryAssignedElements.e({ type: String })
|
|
129
130
|
], exports.LuksoNavbar.prototype, "title", 2);
|
|
130
131
|
__decorateClass([
|
|
131
|
-
|
|
132
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-center" })
|
|
132
133
|
], exports.LuksoNavbar.prototype, "isCenter", 2);
|
|
133
134
|
__decorateClass([
|
|
134
|
-
|
|
135
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-sticky" })
|
|
135
136
|
], exports.LuksoNavbar.prototype, "isSticky", 2);
|
|
136
137
|
__decorateClass([
|
|
137
|
-
|
|
138
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-transparent" })
|
|
138
139
|
], exports.LuksoNavbar.prototype, "isTransparent", 2);
|
|
139
140
|
__decorateClass([
|
|
140
|
-
|
|
141
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-testnet" })
|
|
141
142
|
], exports.LuksoNavbar.prototype, "isTestnet", 2);
|
|
142
143
|
__decorateClass([
|
|
143
|
-
|
|
144
|
+
queryAssignedElements.e({ type: String })
|
|
144
145
|
], exports.LuksoNavbar.prototype, "icon", 2);
|
|
145
146
|
__decorateClass([
|
|
146
|
-
|
|
147
|
+
queryAssignedElements.e({ type: Boolean, attribute: "has-menu" })
|
|
147
148
|
], exports.LuksoNavbar.prototype, "hasMenu", 2);
|
|
148
149
|
__decorateClass([
|
|
149
|
-
|
|
150
|
+
queryAssignedElements.e({ type: String, attribute: "logo-url" })
|
|
150
151
|
], exports.LuksoNavbar.prototype, "logoUrl", 2);
|
|
151
152
|
__decorateClass([
|
|
152
153
|
state.t()
|
|
153
154
|
], exports.LuksoNavbar.prototype, "isMenuOpen", 2);
|
|
154
155
|
exports.LuksoNavbar = __decorateClass([
|
|
155
|
-
|
|
156
|
+
queryAssignedElements.e$1("lukso-navbar")
|
|
156
157
|
], exports.LuksoNavbar);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
2
|
-
import { e, a as e$1 } from '../../
|
|
3
|
-
import { t } from '../../state-
|
|
4
|
-
import { c as customClassMap } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-ed87f41b.js';
|
|
2
|
+
import { e, a as e$1 } from '../../query-assigned-elements-e36df787.js';
|
|
3
|
+
import { t } from '../../state-02a92ffa.js';
|
|
4
|
+
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
5
|
import '../lukso-icon/index.js';
|
|
6
6
|
import '../lukso-tag/index.js';
|
|
7
|
-
import '../../
|
|
7
|
+
import '../../directive-2bb7789e.js';
|
|
8
|
+
import '../../style-map-5daca6c4.js';
|
|
8
9
|
|
|
9
10
|
var __defProp = Object.defineProperty;
|
|
10
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
8
|
-
const index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-930f6cf2.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-5200f974.cjs');
|
|
7
|
+
const styleMap = require('../../style-map-3b9af808.cjs');
|
|
8
|
+
const index = require('../../index-e9668573.cjs');
|
|
9
|
+
require('../../directive-8278ab14.cjs');
|
|
9
10
|
|
|
10
11
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
11
12
|
|
|
@@ -540,17 +541,17 @@ exports.LuksoProfile = class LuksoProfile extends shared_tailwindElement_index.T
|
|
|
540
541
|
}
|
|
541
542
|
};
|
|
542
543
|
__decorateClass([
|
|
543
|
-
|
|
544
|
+
queryAssignedElements.e({ type: String, attribute: "profile-url" })
|
|
544
545
|
], exports.LuksoProfile.prototype, "profileUrl", 2);
|
|
545
546
|
__decorateClass([
|
|
546
|
-
|
|
547
|
+
queryAssignedElements.e({ type: String, attribute: "profile-address" })
|
|
547
548
|
], exports.LuksoProfile.prototype, "profileAddress", 2);
|
|
548
549
|
__decorateClass([
|
|
549
|
-
|
|
550
|
+
queryAssignedElements.e({ type: Boolean, attribute: "has-identicon" })
|
|
550
551
|
], exports.LuksoProfile.prototype, "hasIdenticon", 2);
|
|
551
552
|
__decorateClass([
|
|
552
|
-
|
|
553
|
+
queryAssignedElements.e({ type: String })
|
|
553
554
|
], exports.LuksoProfile.prototype, "size", 2);
|
|
554
555
|
exports.LuksoProfile = __decorateClass([
|
|
555
|
-
|
|
556
|
+
queryAssignedElements.e$1("lukso-profile")
|
|
556
557
|
], exports.LuksoProfile);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
2
|
-
import { e, a as e$1 } from '../../
|
|
3
|
-
import { o } from '../../style-map-
|
|
4
|
-
import { c as customClassMap } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-ed87f41b.js';
|
|
2
|
+
import { e, a as e$1 } from '../../query-assigned-elements-e36df787.js';
|
|
3
|
+
import { o } from '../../style-map-5daca6c4.js';
|
|
4
|
+
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
|
+
import '../../directive-2bb7789e.js';
|
|
5
6
|
|
|
6
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
7
8
|
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
8
|
-
const index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-930f6cf2.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-5200f974.cjs');
|
|
7
|
+
const styleMap = require('../../style-map-3b9af808.cjs');
|
|
8
|
+
const index = require('../../index-e9668573.cjs');
|
|
9
|
+
require('../../directive-8278ab14.cjs');
|
|
9
10
|
|
|
10
11
|
var __defProp = Object.defineProperty;
|
|
11
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -53,17 +54,17 @@ exports.LuksoProgress = class LuksoProgress extends shared_tailwindElement_index
|
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
56
|
__decorateClass([
|
|
56
|
-
|
|
57
|
+
queryAssignedElements.e({ type: Number })
|
|
57
58
|
], exports.LuksoProgress.prototype, "min", 2);
|
|
58
59
|
__decorateClass([
|
|
59
|
-
|
|
60
|
+
queryAssignedElements.e({ type: Number })
|
|
60
61
|
], exports.LuksoProgress.prototype, "max", 2);
|
|
61
62
|
__decorateClass([
|
|
62
|
-
|
|
63
|
+
queryAssignedElements.e({ type: Number })
|
|
63
64
|
], exports.LuksoProgress.prototype, "current", 2);
|
|
64
65
|
__decorateClass([
|
|
65
|
-
|
|
66
|
+
queryAssignedElements.e({ type: String })
|
|
66
67
|
], exports.LuksoProgress.prototype, "variant", 2);
|
|
67
68
|
exports.LuksoProgress = __decorateClass([
|
|
68
|
-
|
|
69
|
+
queryAssignedElements.e$1("lukso-progress")
|
|
69
70
|
], exports.LuksoProgress);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
2
|
-
import { e, a as e$1 } from '../../
|
|
3
|
-
import { o } from '../../style-map-
|
|
4
|
-
import { c as customClassMap } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-ed87f41b.js';
|
|
2
|
+
import { e, a as e$1 } from '../../query-assigned-elements-e36df787.js';
|
|
3
|
+
import { o } from '../../style-map-5daca6c4.js';
|
|
4
|
+
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
|
+
import '../../directive-2bb7789e.js';
|
|
5
6
|
|
|
6
7
|
var __defProp = Object.defineProperty;
|
|
7
8
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-930f6cf2.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-5200f974.cjs');
|
|
7
|
+
const directive = require('../../directive-8278ab14.cjs');
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* @license
|
|
10
11
|
* Copyright 2017 Google LLC
|
|
11
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/class e extends directive.i{constructor(i){if(super(i),this.et=shared_tailwindElement_index.A$1,i.type!==directive.t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===shared_tailwindElement_index.A$1||null==r)return this.ft=void 0,this.et=r;if(r===shared_tailwindElement_index.T)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.et)return this.ft;this.et=r;const s=[r];return s.raw=s,this.ft={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const o=directive.e
|
|
13
|
+
*/class e extends directive.i{constructor(i){if(super(i),this.et=shared_tailwindElement_index.A$1,i.type!==directive.t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===shared_tailwindElement_index.A$1||null==r)return this.ft=void 0,this.et=r;if(r===shared_tailwindElement_index.T)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.et)return this.ft;this.et=r;const s=[r];return s.raw=s,this.ft={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const o=directive.e(e);
|
|
13
14
|
|
|
14
15
|
/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */
|
|
15
16
|
|
|
@@ -1667,11 +1668,11 @@ exports.LuksoSanitize = class LuksoSanitize extends shared_tailwindElement_index
|
|
|
1667
1668
|
}
|
|
1668
1669
|
};
|
|
1669
1670
|
__decorateClass([
|
|
1670
|
-
|
|
1671
|
+
queryAssignedElements.e({ type: String, attribute: "html-content" })
|
|
1671
1672
|
], exports.LuksoSanitize.prototype, "htmlContent", 2);
|
|
1672
1673
|
__decorateClass([
|
|
1673
|
-
|
|
1674
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-pre" })
|
|
1674
1675
|
], exports.LuksoSanitize.prototype, "isPre", 2);
|
|
1675
1676
|
exports.LuksoSanitize = __decorateClass([
|
|
1676
|
-
|
|
1677
|
+
queryAssignedElements.e$1("lukso-sanitize")
|
|
1677
1678
|
], exports.LuksoSanitize);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { c as A, b as T, a as TailwindElement, x } from '../../index-
|
|
2
|
-
import {
|
|
1
|
+
import { c as A, b as T, a as TailwindElement, x } from '../../index-ed87f41b.js';
|
|
2
|
+
import { e as e$2, a as e$3 } from '../../query-assigned-elements-e36df787.js';
|
|
3
|
+
import { i, t, e as e$1 } from '../../directive-2bb7789e.js';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* @license
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const
|
|
7
|
-
const state = require('../../state-
|
|
8
|
-
const index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-930f6cf2.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-5200f974.cjs');
|
|
7
|
+
const state = require('../../state-51b50a6b.cjs');
|
|
8
|
+
const index = require('../../index-e9668573.cjs');
|
|
9
9
|
require('../lukso-icon/index.cjs');
|
|
10
10
|
require('../lukso-profile/index.cjs');
|
|
11
11
|
require('../lukso-username/index.cjs');
|
|
12
|
-
require('../../
|
|
12
|
+
require('../../directive-8278ab14.cjs');
|
|
13
|
+
require('../../style-map-3b9af808.cjs');
|
|
13
14
|
|
|
14
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}";
|
|
15
16
|
|
|
@@ -44,9 +45,12 @@ exports.LuksoSearch = class LuksoSearch extends shared_tailwindElement_index.Tai
|
|
|
44
45
|
this.borderless = false;
|
|
45
46
|
this.results = "";
|
|
46
47
|
this.debounce = 700;
|
|
47
|
-
this.hasHocus = false;
|
|
48
|
-
this.hasHighlight = false;
|
|
49
48
|
this.isSearching = false;
|
|
49
|
+
this.noResultsText = "";
|
|
50
|
+
this.showNoResults = false;
|
|
51
|
+
this.hasFocus = false;
|
|
52
|
+
this.hasHighlight = false;
|
|
53
|
+
this.isDebouncing = false;
|
|
50
54
|
this.defaultInputStyles = `bg-neutral-100 paragraph-inter-14-regular px-4 py-3 pr-10
|
|
51
55
|
border-solid h-[48px] placeholder:text-neutral-70
|
|
52
56
|
outline-none transition transition-all duration-150 appearance-none rounded-12`;
|
|
@@ -106,26 +110,35 @@ exports.LuksoSearch = class LuksoSearch extends shared_tailwindElement_index.Tai
|
|
|
106
110
|
</div>`;
|
|
107
111
|
}
|
|
108
112
|
resultsTemplate() {
|
|
109
|
-
|
|
113
|
+
const resultTemplates = [];
|
|
114
|
+
if (this.results === "" && !this.showNoResults || this.showNoResults && !this.noResultsText) {
|
|
110
115
|
return shared_tailwindElement_index.x``;
|
|
111
116
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
117
|
+
if (this.showNoResults) {
|
|
118
|
+
resultTemplates.push(this.resultEmptyTemplate());
|
|
119
|
+
} else {
|
|
120
|
+
const results = JSON.parse(this.results);
|
|
121
|
+
for (const result of Object.entries(results)) {
|
|
122
|
+
if ("value" in result[1]) {
|
|
123
|
+
resultTemplates.push(this.resultStringTemplate(result[1]));
|
|
124
|
+
} else if ("address" in result[1]) {
|
|
125
|
+
resultTemplates.push(this.resultProfileTemplate(result[1]));
|
|
126
|
+
} else {
|
|
127
|
+
console.error("Unknown result type", result);
|
|
128
|
+
}
|
|
121
129
|
}
|
|
122
130
|
}
|
|
123
131
|
return shared_tailwindElement_index.x`<div
|
|
124
|
-
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 overflow-y-auto max-h-
|
|
132
|
+
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 overflow-y-auto max-h-64"
|
|
125
133
|
>
|
|
126
134
|
${resultTemplates}
|
|
127
135
|
</div>`;
|
|
128
136
|
}
|
|
137
|
+
resultEmptyTemplate() {
|
|
138
|
+
return shared_tailwindElement_index.x`<div class="paragraph-inter-14-semi-bold text-neutral-20 pl-1">
|
|
139
|
+
${this.noResultsText}
|
|
140
|
+
</div>`;
|
|
141
|
+
}
|
|
129
142
|
resultStringTemplate(result) {
|
|
130
143
|
return shared_tailwindElement_index.x`<div
|
|
131
144
|
data-id="${result.id}"
|
|
@@ -168,12 +181,12 @@ exports.LuksoSearch = class LuksoSearch extends shared_tailwindElement_index.Tai
|
|
|
168
181
|
}
|
|
169
182
|
handleFocus() {
|
|
170
183
|
if (!this.isReadonly && !this.isDisabled) {
|
|
171
|
-
this.
|
|
184
|
+
this.hasFocus = true;
|
|
172
185
|
this.hasHighlight = true;
|
|
173
186
|
}
|
|
174
187
|
}
|
|
175
188
|
handleBlur() {
|
|
176
|
-
this.
|
|
189
|
+
this.hasFocus = false;
|
|
177
190
|
this.hasHighlight = false;
|
|
178
191
|
}
|
|
179
192
|
searchDebounce(searchTerm) {
|
|
@@ -186,14 +199,14 @@ exports.LuksoSearch = class LuksoSearch extends shared_tailwindElement_index.Tai
|
|
|
186
199
|
composed: true
|
|
187
200
|
});
|
|
188
201
|
this.dispatchEvent(changeEvent);
|
|
189
|
-
this.
|
|
202
|
+
this.isDebouncing = false;
|
|
190
203
|
}, this.debounce);
|
|
191
204
|
}
|
|
192
205
|
handleSearch(event) {
|
|
193
|
-
if (this.
|
|
206
|
+
if (this.isDebouncing) {
|
|
194
207
|
clearTimeout(this.debounceTimer);
|
|
195
208
|
}
|
|
196
|
-
this.
|
|
209
|
+
this.isDebouncing = true;
|
|
197
210
|
const target = event.target;
|
|
198
211
|
this.searchDebounce(target.value);
|
|
199
212
|
}
|
|
@@ -203,7 +216,7 @@ exports.LuksoSearch = class LuksoSearch extends shared_tailwindElement_index.Tai
|
|
|
203
216
|
}
|
|
204
217
|
}
|
|
205
218
|
handleMouseOut() {
|
|
206
|
-
if (!this.
|
|
219
|
+
if (!this.hasFocus) {
|
|
207
220
|
this.hasHighlight = false;
|
|
208
221
|
}
|
|
209
222
|
}
|
|
@@ -215,82 +228,93 @@ exports.LuksoSearch = class LuksoSearch extends shared_tailwindElement_index.Tai
|
|
|
215
228
|
<div class="flex relative items-center">
|
|
216
229
|
${this.inputTemplate()}
|
|
217
230
|
<lukso-icon
|
|
218
|
-
name="search"
|
|
231
|
+
name="${this.isSearching || this.isDebouncing ? "spinner" : "search"}"
|
|
219
232
|
class="absolute right-0 mr-3 ${index.customClassMap({
|
|
220
233
|
["opacity-60 cursor-not-allowed"]: this.isDisabled,
|
|
221
|
-
["cursor-not-allowed"]: this.isReadonly
|
|
234
|
+
["cursor-not-allowed"]: this.isReadonly,
|
|
235
|
+
["animate-spin"]: this.isSearching || this.isDebouncing
|
|
222
236
|
})}"
|
|
223
237
|
@mouseenter=${this.handleMouseOver}
|
|
224
238
|
></lukso-icon>
|
|
225
239
|
</div>
|
|
226
|
-
${this.
|
|
240
|
+
${this.results || this.showNoResults && this.hasFocus ? this.resultsTemplate() : shared_tailwindElement_index.A}
|
|
241
|
+
${this.error ? this.errorTemplate() : shared_tailwindElement_index.A}
|
|
227
242
|
</div>
|
|
228
243
|
`;
|
|
229
244
|
}
|
|
230
245
|
};
|
|
231
246
|
__decorateClass([
|
|
232
|
-
|
|
247
|
+
queryAssignedElements.e({ type: String })
|
|
233
248
|
], exports.LuksoSearch.prototype, "value", 2);
|
|
234
249
|
__decorateClass([
|
|
235
|
-
|
|
250
|
+
queryAssignedElements.e({ type: String })
|
|
236
251
|
], exports.LuksoSearch.prototype, "name", 2);
|
|
237
252
|
__decorateClass([
|
|
238
|
-
|
|
253
|
+
queryAssignedElements.e({ type: String })
|
|
239
254
|
], exports.LuksoSearch.prototype, "type", 2);
|
|
240
255
|
__decorateClass([
|
|
241
|
-
|
|
256
|
+
queryAssignedElements.e({ type: String })
|
|
242
257
|
], exports.LuksoSearch.prototype, "placeholder", 2);
|
|
243
258
|
__decorateClass([
|
|
244
|
-
|
|
259
|
+
queryAssignedElements.e({ type: String })
|
|
245
260
|
], exports.LuksoSearch.prototype, "label", 2);
|
|
246
261
|
__decorateClass([
|
|
247
|
-
|
|
262
|
+
queryAssignedElements.e({ type: String })
|
|
248
263
|
], exports.LuksoSearch.prototype, "autocomplete", 2);
|
|
249
264
|
__decorateClass([
|
|
250
|
-
|
|
265
|
+
queryAssignedElements.e({ type: String })
|
|
251
266
|
], exports.LuksoSearch.prototype, "id", 2);
|
|
252
267
|
__decorateClass([
|
|
253
|
-
|
|
268
|
+
queryAssignedElements.e({ type: String })
|
|
254
269
|
], exports.LuksoSearch.prototype, "description", 2);
|
|
255
270
|
__decorateClass([
|
|
256
|
-
|
|
271
|
+
queryAssignedElements.e({ type: String })
|
|
257
272
|
], exports.LuksoSearch.prototype, "error", 2);
|
|
258
273
|
__decorateClass([
|
|
259
|
-
|
|
274
|
+
queryAssignedElements.e({ type: String, attribute: "custom-class" })
|
|
260
275
|
], exports.LuksoSearch.prototype, "customClass", 2);
|
|
261
276
|
__decorateClass([
|
|
262
|
-
|
|
277
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-full-width" })
|
|
263
278
|
], exports.LuksoSearch.prototype, "isFullWidth", 2);
|
|
264
279
|
__decorateClass([
|
|
265
|
-
|
|
280
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-readonly" })
|
|
266
281
|
], exports.LuksoSearch.prototype, "isReadonly", 2);
|
|
267
282
|
__decorateClass([
|
|
268
|
-
|
|
283
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-disabled" })
|
|
269
284
|
], exports.LuksoSearch.prototype, "isDisabled", 2);
|
|
270
285
|
__decorateClass([
|
|
271
|
-
|
|
286
|
+
queryAssignedElements.e({ type: Boolean })
|
|
272
287
|
], exports.LuksoSearch.prototype, "autofocus", 2);
|
|
273
288
|
__decorateClass([
|
|
274
|
-
|
|
289
|
+
queryAssignedElements.e({ type: Boolean })
|
|
275
290
|
], exports.LuksoSearch.prototype, "borderless", 2);
|
|
276
291
|
__decorateClass([
|
|
277
|
-
|
|
292
|
+
queryAssignedElements.e({ type: String })
|
|
278
293
|
], exports.LuksoSearch.prototype, "results", 2);
|
|
279
294
|
__decorateClass([
|
|
280
|
-
|
|
295
|
+
queryAssignedElements.e({ type: Number })
|
|
281
296
|
], exports.LuksoSearch.prototype, "debounce", 2);
|
|
297
|
+
__decorateClass([
|
|
298
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-searching" })
|
|
299
|
+
], exports.LuksoSearch.prototype, "isSearching", 2);
|
|
300
|
+
__decorateClass([
|
|
301
|
+
queryAssignedElements.e({ type: String, attribute: "no-results-text" })
|
|
302
|
+
], exports.LuksoSearch.prototype, "noResultsText", 2);
|
|
303
|
+
__decorateClass([
|
|
304
|
+
queryAssignedElements.e({ type: Boolean, attribute: "show-no-results" })
|
|
305
|
+
], exports.LuksoSearch.prototype, "showNoResults", 2);
|
|
282
306
|
__decorateClass([
|
|
283
307
|
state.t()
|
|
284
|
-
], exports.LuksoSearch.prototype, "
|
|
308
|
+
], exports.LuksoSearch.prototype, "hasFocus", 2);
|
|
285
309
|
__decorateClass([
|
|
286
310
|
state.t()
|
|
287
311
|
], exports.LuksoSearch.prototype, "hasHighlight", 2);
|
|
288
312
|
__decorateClass([
|
|
289
313
|
state.t()
|
|
290
|
-
], exports.LuksoSearch.prototype, "
|
|
314
|
+
], exports.LuksoSearch.prototype, "isDebouncing", 2);
|
|
291
315
|
__decorateClass([
|
|
292
316
|
state.t()
|
|
293
317
|
], exports.LuksoSearch.prototype, "debounceTimer", 2);
|
|
294
318
|
exports.LuksoSearch = __decorateClass([
|
|
295
|
-
|
|
319
|
+
queryAssignedElements.e$1("lukso-search")
|
|
296
320
|
], exports.LuksoSearch);
|