@lukso/web-components 1.41.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.
Files changed (80) hide show
  1. package/dist/components/index.cjs +7 -6
  2. package/dist/components/index.js +7 -6
  3. package/dist/components/lukso-button/index.cjs +21 -20
  4. package/dist/components/lukso-button/index.js +5 -4
  5. package/dist/components/lukso-card/index.cjs +15 -14
  6. package/dist/components/lukso-card/index.js +5 -4
  7. package/dist/components/lukso-checkbox/index.cjs +16 -15
  8. package/dist/components/lukso-checkbox/index.js +5 -4
  9. package/dist/components/lukso-footer/index.cjs +39 -27
  10. package/dist/components/lukso-footer/index.d.ts +2 -0
  11. package/dist/components/lukso-footer/index.d.ts.map +1 -1
  12. package/dist/components/lukso-footer/index.js +39 -27
  13. package/dist/components/lukso-footer/lukso-footer.stories.d.ts +2 -0
  14. package/dist/components/lukso-footer/lukso-footer.stories.d.ts.map +1 -1
  15. package/dist/components/lukso-icon/index.cjs +9 -8
  16. package/dist/components/lukso-icon/index.js +4 -3
  17. package/dist/components/lukso-input/index.cjs +26 -25
  18. package/dist/components/lukso-input/index.js +5 -4
  19. package/dist/components/lukso-modal/index.cjs +7 -6
  20. package/dist/components/lukso-modal/index.js +4 -3
  21. package/dist/components/lukso-navbar/index.cjs +15 -14
  22. package/dist/components/lukso-navbar/index.js +6 -5
  23. package/dist/components/lukso-profile/index.cjs +10 -9
  24. package/dist/components/lukso-profile/index.js +5 -4
  25. package/dist/components/lukso-progress/index.cjs +10 -9
  26. package/dist/components/lukso-progress/index.js +5 -4
  27. package/dist/components/lukso-sanitize/index.cjs +7 -6
  28. package/dist/components/lukso-sanitize/index.js +3 -2
  29. package/dist/components/lukso-search/index.cjs +27 -26
  30. package/dist/components/lukso-search/index.js +6 -5
  31. package/dist/components/lukso-share/index.cjs +24 -15
  32. package/dist/components/lukso-share/index.d.ts +8 -2
  33. package/dist/components/lukso-share/index.d.ts.map +1 -1
  34. package/dist/components/lukso-share/index.js +23 -14
  35. package/dist/components/lukso-share/lukso-share.stories.d.ts +5 -1
  36. package/dist/components/lukso-share/lukso-share.stories.d.ts.map +1 -1
  37. package/dist/components/lukso-switch/index.cjs +9 -8
  38. package/dist/components/lukso-switch/index.js +5 -4
  39. package/dist/components/lukso-tag/index.cjs +10 -9
  40. package/dist/components/lukso-tag/index.js +5 -4
  41. package/dist/components/lukso-terms/index.cjs +9 -7
  42. package/dist/components/lukso-terms/index.d.ts.map +1 -1
  43. package/dist/components/lukso-terms/index.js +7 -5
  44. package/dist/components/lukso-test/index.cjs +10 -9
  45. package/dist/components/lukso-test/index.js +4 -3
  46. package/dist/components/lukso-username/index.cjs +16 -15
  47. package/dist/components/lukso-username/index.js +5 -4
  48. package/dist/components/lukso-wizard/index.cjs +10 -9
  49. package/dist/components/lukso-wizard/index.js +5 -4
  50. package/dist/directive-2bb7789e.js +8 -0
  51. package/dist/directive-8278ab14.cjs +12 -0
  52. package/dist/{directive-helpers-e70702eb.cjs → directive-helpers-01f1c3b1.cjs} +1 -1
  53. package/dist/{directive-helpers-1affe406.js → directive-helpers-8f79cbe5.js} +1 -1
  54. package/dist/{index-714323c9.js → index-5e194caf.js} +1 -1
  55. package/dist/{index-e765f94b.cjs → index-930f6cf2.cjs} +1 -1
  56. package/dist/{index-7dc05ee5.cjs → index-e9668573.cjs} +2 -2
  57. package/dist/{index-9dfdafd2.js → index-ed87f41b.js} +1 -1
  58. package/dist/index.cjs +7 -6
  59. package/dist/index.js +7 -6
  60. package/dist/query-assigned-elements-5200f974.cjs +24 -0
  61. package/dist/query-assigned-elements-e36df787.js +21 -0
  62. package/dist/shared/tailwind-element/index.cjs +1 -1
  63. package/dist/shared/tailwind-element/index.js +1 -1
  64. package/dist/{state-7fde94d1.js → state-02a92ffa.js} +1 -1
  65. package/dist/state-51b50a6b.cjs +11 -0
  66. package/dist/style-map-3b9af808.cjs +12 -0
  67. package/dist/{style-map-5173bb70.js → style-map-5daca6c4.js} +2 -2
  68. package/package.json +1 -1
  69. package/tools/assets/images/social-discord.svg +4 -1
  70. package/tools/assets/images/social-github.svg +11 -1
  71. package/tools/assets/images/social-instagram.svg +6 -1
  72. package/tools/assets/images/social-linkedin.svg +4 -1
  73. package/tools/assets/images/social-medium.svg +6 -1
  74. package/tools/assets/images/social-reddit.svg +11 -1
  75. package/tools/assets/images/social-telegram.svg +4 -1
  76. package/tools/assets/images/social-twitter.svg +4 -1
  77. package/dist/directive-9ec64c08.js +0 -28
  78. package/dist/directive-db00f5fb.cjs +0 -34
  79. package/dist/state-a62a7d5d.cjs +0 -11
  80. package/dist/style-map-3a049df9.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-e765f94b.cjs');
6
- const directive = require('../../directive-db00f5fb.cjs');
7
- const state = require('../../state-a62a7d5d.cjs');
8
- const index = require('../../index-7dc05ee5.cjs');
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
- directive.e({ type: String })
252
+ queryAssignedElements.e({ type: String })
252
253
  ], exports.LuksoInput.prototype, "value", 2);
253
254
  __decorateClass([
254
- directive.e({ type: String })
255
+ queryAssignedElements.e({ type: String })
255
256
  ], exports.LuksoInput.prototype, "name", 2);
256
257
  __decorateClass([
257
- directive.e({ type: String })
258
+ queryAssignedElements.e({ type: String })
258
259
  ], exports.LuksoInput.prototype, "type", 2);
259
260
  __decorateClass([
260
- directive.e({ type: String })
261
+ queryAssignedElements.e({ type: String })
261
262
  ], exports.LuksoInput.prototype, "placeholder", 2);
262
263
  __decorateClass([
263
- directive.e({ type: String })
264
+ queryAssignedElements.e({ type: String })
264
265
  ], exports.LuksoInput.prototype, "label", 2);
265
266
  __decorateClass([
266
- directive.e({ type: String })
267
+ queryAssignedElements.e({ type: String })
267
268
  ], exports.LuksoInput.prototype, "autocomplete", 2);
268
269
  __decorateClass([
269
- directive.e({ type: String })
270
+ queryAssignedElements.e({ type: String })
270
271
  ], exports.LuksoInput.prototype, "id", 2);
271
272
  __decorateClass([
272
- directive.e({ type: String })
273
+ queryAssignedElements.e({ type: String })
273
274
  ], exports.LuksoInput.prototype, "ref", 2);
274
275
  __decorateClass([
275
- directive.e({ type: String })
276
+ queryAssignedElements.e({ type: String })
276
277
  ], exports.LuksoInput.prototype, "accept", 2);
277
278
  __decorateClass([
278
- directive.e({ type: String })
279
+ queryAssignedElements.e({ type: String })
279
280
  ], exports.LuksoInput.prototype, "description", 2);
280
281
  __decorateClass([
281
- directive.e({ type: String })
282
+ queryAssignedElements.e({ type: String })
282
283
  ], exports.LuksoInput.prototype, "error", 2);
283
284
  __decorateClass([
284
- directive.e({ type: String })
285
+ queryAssignedElements.e({ type: String })
285
286
  ], exports.LuksoInput.prototype, "unit", 2);
286
287
  __decorateClass([
287
- directive.e({ type: String, attribute: "custom-class" })
288
+ queryAssignedElements.e({ type: String, attribute: "custom-class" })
288
289
  ], exports.LuksoInput.prototype, "customClass", 2);
289
290
  __decorateClass([
290
- directive.e({ type: Boolean, attribute: "is-full-width" })
291
+ queryAssignedElements.e({ type: Boolean, attribute: "is-full-width" })
291
292
  ], exports.LuksoInput.prototype, "isFullWidth", 2);
292
293
  __decorateClass([
293
- directive.e({ type: Boolean, attribute: "is-readonly" })
294
+ queryAssignedElements.e({ type: Boolean, attribute: "is-readonly" })
294
295
  ], exports.LuksoInput.prototype, "isReadonly", 2);
295
296
  __decorateClass([
296
- directive.e({ type: Boolean, attribute: "is-disabled" })
297
+ queryAssignedElements.e({ type: Boolean, attribute: "is-disabled" })
297
298
  ], exports.LuksoInput.prototype, "isDisabled", 2);
298
299
  __decorateClass([
299
- directive.e({ type: Boolean })
300
+ queryAssignedElements.e({ type: Boolean })
300
301
  ], exports.LuksoInput.prototype, "autofocus", 2);
301
302
  __decorateClass([
302
- directive.e({ type: Number })
303
+ queryAssignedElements.e({ type: Number })
303
304
  ], exports.LuksoInput.prototype, "max", 2);
304
305
  __decorateClass([
305
- directive.e({ type: Number })
306
+ queryAssignedElements.e({ type: Number })
306
307
  ], exports.LuksoInput.prototype, "min", 2);
307
308
  __decorateClass([
308
- directive.e({ type: Boolean })
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
- directive.e$1("lukso-input")
318
+ queryAssignedElements.e$1("lukso-input")
318
319
  ], exports.LuksoInput);
@@ -1,7 +1,8 @@
1
- import { a as TailwindElement, x, A } from '../../index-9dfdafd2.js';
2
- import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { t } from '../../state-7fde94d1.js';
4
- import { c as customClassMap } from '../../index-714323c9.js';
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-e765f94b.cjs');
6
- const directive = require('../../directive-db00f5fb.cjs');
7
- const index = require('../../index-7dc05ee5.cjs');
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
- directive.e({ type: Boolean, attribute: "is-open" })
64
+ queryAssignedElements.e({ type: Boolean, attribute: "is-open" })
64
65
  ], exports.LuksoModal.prototype, "isOpen", 2);
65
66
  __decorateClass([
66
- directive.e({ type: String })
67
+ queryAssignedElements.e({ type: String })
67
68
  ], exports.LuksoModal.prototype, "size", 2);
68
69
  exports.LuksoModal = __decorateClass([
69
- directive.e$1("lukso-modal")
70
+ queryAssignedElements.e$1("lukso-modal")
70
71
  ], exports.LuksoModal);
@@ -1,6 +1,7 @@
1
- import { a as TailwindElement, x } from '../../index-9dfdafd2.js';
2
- import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { c as customClassMap } from '../../index-714323c9.js';
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-e765f94b.cjs');
6
- const directive = require('../../directive-db00f5fb.cjs');
7
- const state = require('../../state-a62a7d5d.cjs');
8
- const index = require('../../index-7dc05ee5.cjs');
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('../../style-map-3a049df9.cjs');
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
- directive.e({ type: String })
129
+ queryAssignedElements.e({ type: String })
129
130
  ], exports.LuksoNavbar.prototype, "title", 2);
130
131
  __decorateClass([
131
- directive.e({ type: Boolean, attribute: "is-center" })
132
+ queryAssignedElements.e({ type: Boolean, attribute: "is-center" })
132
133
  ], exports.LuksoNavbar.prototype, "isCenter", 2);
133
134
  __decorateClass([
134
- directive.e({ type: Boolean, attribute: "is-sticky" })
135
+ queryAssignedElements.e({ type: Boolean, attribute: "is-sticky" })
135
136
  ], exports.LuksoNavbar.prototype, "isSticky", 2);
136
137
  __decorateClass([
137
- directive.e({ type: Boolean, attribute: "is-transparent" })
138
+ queryAssignedElements.e({ type: Boolean, attribute: "is-transparent" })
138
139
  ], exports.LuksoNavbar.prototype, "isTransparent", 2);
139
140
  __decorateClass([
140
- directive.e({ type: Boolean, attribute: "is-testnet" })
141
+ queryAssignedElements.e({ type: Boolean, attribute: "is-testnet" })
141
142
  ], exports.LuksoNavbar.prototype, "isTestnet", 2);
142
143
  __decorateClass([
143
- directive.e({ type: String })
144
+ queryAssignedElements.e({ type: String })
144
145
  ], exports.LuksoNavbar.prototype, "icon", 2);
145
146
  __decorateClass([
146
- directive.e({ type: Boolean, attribute: "has-menu" })
147
+ queryAssignedElements.e({ type: Boolean, attribute: "has-menu" })
147
148
  ], exports.LuksoNavbar.prototype, "hasMenu", 2);
148
149
  __decorateClass([
149
- directive.e({ type: String, attribute: "logo-url" })
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
- directive.e$1("lukso-navbar")
156
+ queryAssignedElements.e$1("lukso-navbar")
156
157
  ], exports.LuksoNavbar);
@@ -1,10 +1,11 @@
1
- import { a as TailwindElement, x } from '../../index-9dfdafd2.js';
2
- import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { t } from '../../state-7fde94d1.js';
4
- import { c as customClassMap } from '../../index-714323c9.js';
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 '../../style-map-5173bb70.js';
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-e765f94b.cjs');
6
- const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-3a049df9.cjs');
8
- const index = require('../../index-7dc05ee5.cjs');
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
- directive.e({ type: String, attribute: "profile-url" })
544
+ queryAssignedElements.e({ type: String, attribute: "profile-url" })
544
545
  ], exports.LuksoProfile.prototype, "profileUrl", 2);
545
546
  __decorateClass([
546
- directive.e({ type: String, attribute: "profile-address" })
547
+ queryAssignedElements.e({ type: String, attribute: "profile-address" })
547
548
  ], exports.LuksoProfile.prototype, "profileAddress", 2);
548
549
  __decorateClass([
549
- directive.e({ type: Boolean, attribute: "has-identicon" })
550
+ queryAssignedElements.e({ type: Boolean, attribute: "has-identicon" })
550
551
  ], exports.LuksoProfile.prototype, "hasIdenticon", 2);
551
552
  __decorateClass([
552
- directive.e({ type: String })
553
+ queryAssignedElements.e({ type: String })
553
554
  ], exports.LuksoProfile.prototype, "size", 2);
554
555
  exports.LuksoProfile = __decorateClass([
555
- directive.e$1("lukso-profile")
556
+ queryAssignedElements.e$1("lukso-profile")
556
557
  ], exports.LuksoProfile);
@@ -1,7 +1,8 @@
1
- import { a as TailwindElement, x } from '../../index-9dfdafd2.js';
2
- import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-5173bb70.js';
4
- import { c as customClassMap } from '../../index-714323c9.js';
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-e765f94b.cjs');
6
- const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-3a049df9.cjs');
8
- const index = require('../../index-7dc05ee5.cjs');
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
- directive.e({ type: Number })
57
+ queryAssignedElements.e({ type: Number })
57
58
  ], exports.LuksoProgress.prototype, "min", 2);
58
59
  __decorateClass([
59
- directive.e({ type: Number })
60
+ queryAssignedElements.e({ type: Number })
60
61
  ], exports.LuksoProgress.prototype, "max", 2);
61
62
  __decorateClass([
62
- directive.e({ type: Number })
63
+ queryAssignedElements.e({ type: Number })
63
64
  ], exports.LuksoProgress.prototype, "current", 2);
64
65
  __decorateClass([
65
- directive.e({ type: String })
66
+ queryAssignedElements.e({ type: String })
66
67
  ], exports.LuksoProgress.prototype, "variant", 2);
67
68
  exports.LuksoProgress = __decorateClass([
68
- directive.e$1("lukso-progress")
69
+ queryAssignedElements.e$1("lukso-progress")
69
70
  ], exports.LuksoProgress);
@@ -1,7 +1,8 @@
1
- import { a as TailwindElement, x } from '../../index-9dfdafd2.js';
2
- import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-5173bb70.js';
4
- import { c as customClassMap } from '../../index-714323c9.js';
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-e765f94b.cjs');
6
- const directive = require('../../directive-db00f5fb.cjs');
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$2(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
- directive.e({ type: String, attribute: "html-content" })
1671
+ queryAssignedElements.e({ type: String, attribute: "html-content" })
1671
1672
  ], exports.LuksoSanitize.prototype, "htmlContent", 2);
1672
1673
  __decorateClass([
1673
- directive.e({ type: Boolean, attribute: "is-pre" })
1674
+ queryAssignedElements.e({ type: Boolean, attribute: "is-pre" })
1674
1675
  ], exports.LuksoSanitize.prototype, "isPre", 2);
1675
1676
  exports.LuksoSanitize = __decorateClass([
1676
- directive.e$1("lukso-sanitize")
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-9dfdafd2.js';
2
- import { i, t, b as e$1, e as e$2, a as e$3 } from '../../directive-9ec64c08.js';
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-e765f94b.cjs');
6
- const directive = require('../../directive-db00f5fb.cjs');
7
- const state = require('../../state-a62a7d5d.cjs');
8
- const index = require('../../index-7dc05ee5.cjs');
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('../../style-map-3a049df9.cjs');
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
 
@@ -243,64 +244,64 @@ exports.LuksoSearch = class LuksoSearch extends shared_tailwindElement_index.Tai
243
244
  }
244
245
  };
245
246
  __decorateClass([
246
- directive.e({ type: String })
247
+ queryAssignedElements.e({ type: String })
247
248
  ], exports.LuksoSearch.prototype, "value", 2);
248
249
  __decorateClass([
249
- directive.e({ type: String })
250
+ queryAssignedElements.e({ type: String })
250
251
  ], exports.LuksoSearch.prototype, "name", 2);
251
252
  __decorateClass([
252
- directive.e({ type: String })
253
+ queryAssignedElements.e({ type: String })
253
254
  ], exports.LuksoSearch.prototype, "type", 2);
254
255
  __decorateClass([
255
- directive.e({ type: String })
256
+ queryAssignedElements.e({ type: String })
256
257
  ], exports.LuksoSearch.prototype, "placeholder", 2);
257
258
  __decorateClass([
258
- directive.e({ type: String })
259
+ queryAssignedElements.e({ type: String })
259
260
  ], exports.LuksoSearch.prototype, "label", 2);
260
261
  __decorateClass([
261
- directive.e({ type: String })
262
+ queryAssignedElements.e({ type: String })
262
263
  ], exports.LuksoSearch.prototype, "autocomplete", 2);
263
264
  __decorateClass([
264
- directive.e({ type: String })
265
+ queryAssignedElements.e({ type: String })
265
266
  ], exports.LuksoSearch.prototype, "id", 2);
266
267
  __decorateClass([
267
- directive.e({ type: String })
268
+ queryAssignedElements.e({ type: String })
268
269
  ], exports.LuksoSearch.prototype, "description", 2);
269
270
  __decorateClass([
270
- directive.e({ type: String })
271
+ queryAssignedElements.e({ type: String })
271
272
  ], exports.LuksoSearch.prototype, "error", 2);
272
273
  __decorateClass([
273
- directive.e({ type: String, attribute: "custom-class" })
274
+ queryAssignedElements.e({ type: String, attribute: "custom-class" })
274
275
  ], exports.LuksoSearch.prototype, "customClass", 2);
275
276
  __decorateClass([
276
- directive.e({ type: Boolean, attribute: "is-full-width" })
277
+ queryAssignedElements.e({ type: Boolean, attribute: "is-full-width" })
277
278
  ], exports.LuksoSearch.prototype, "isFullWidth", 2);
278
279
  __decorateClass([
279
- directive.e({ type: Boolean, attribute: "is-readonly" })
280
+ queryAssignedElements.e({ type: Boolean, attribute: "is-readonly" })
280
281
  ], exports.LuksoSearch.prototype, "isReadonly", 2);
281
282
  __decorateClass([
282
- directive.e({ type: Boolean, attribute: "is-disabled" })
283
+ queryAssignedElements.e({ type: Boolean, attribute: "is-disabled" })
283
284
  ], exports.LuksoSearch.prototype, "isDisabled", 2);
284
285
  __decorateClass([
285
- directive.e({ type: Boolean })
286
+ queryAssignedElements.e({ type: Boolean })
286
287
  ], exports.LuksoSearch.prototype, "autofocus", 2);
287
288
  __decorateClass([
288
- directive.e({ type: Boolean })
289
+ queryAssignedElements.e({ type: Boolean })
289
290
  ], exports.LuksoSearch.prototype, "borderless", 2);
290
291
  __decorateClass([
291
- directive.e({ type: String })
292
+ queryAssignedElements.e({ type: String })
292
293
  ], exports.LuksoSearch.prototype, "results", 2);
293
294
  __decorateClass([
294
- directive.e({ type: Number })
295
+ queryAssignedElements.e({ type: Number })
295
296
  ], exports.LuksoSearch.prototype, "debounce", 2);
296
297
  __decorateClass([
297
- directive.e({ type: Boolean, attribute: "is-searching" })
298
+ queryAssignedElements.e({ type: Boolean, attribute: "is-searching" })
298
299
  ], exports.LuksoSearch.prototype, "isSearching", 2);
299
300
  __decorateClass([
300
- directive.e({ type: String, attribute: "no-results-text" })
301
+ queryAssignedElements.e({ type: String, attribute: "no-results-text" })
301
302
  ], exports.LuksoSearch.prototype, "noResultsText", 2);
302
303
  __decorateClass([
303
- directive.e({ type: Boolean, attribute: "show-no-results" })
304
+ queryAssignedElements.e({ type: Boolean, attribute: "show-no-results" })
304
305
  ], exports.LuksoSearch.prototype, "showNoResults", 2);
305
306
  __decorateClass([
306
307
  state.t()
@@ -315,5 +316,5 @@ __decorateClass([
315
316
  state.t()
316
317
  ], exports.LuksoSearch.prototype, "debounceTimer", 2);
317
318
  exports.LuksoSearch = __decorateClass([
318
- directive.e$1("lukso-search")
319
+ queryAssignedElements.e$1("lukso-search")
319
320
  ], exports.LuksoSearch);
@@ -1,11 +1,12 @@
1
- import { T as TailwindStyledElement, x, A } from '../../index-9dfdafd2.js';
2
- import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { t } from '../../state-7fde94d1.js';
4
- import { c as customClassMap } from '../../index-714323c9.js';
1
+ import { T as TailwindStyledElement, 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
5
  import '../lukso-icon/index.js';
6
6
  import '../lukso-profile/index.js';
7
7
  import '../lukso-username/index.js';
8
- import '../../style-map-5173bb70.js';
8
+ import '../../directive-2bb7789e.js';
9
+ import '../../style-map-5daca6c4.js';
9
10
 
10
11
  const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
11
12
 
@@ -2,9 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-e765f94b.cjs');
6
- const directive = require('../../directive-db00f5fb.cjs');
7
- const index = require('../../index-7dc05ee5.cjs');
5
+ const shared_tailwindElement_index = require('../../index-930f6cf2.cjs');
6
+ const queryAssignedElements = require('../../query-assigned-elements-5200f974.cjs');
8
7
 
9
8
  const style = ":host {\n display: inline-flex\n}";
10
9
 
@@ -22,7 +21,17 @@ var __decorateClass = (decorators, target, key, kind) => {
22
21
  exports.LuksoShare = class LuksoShare extends shared_tailwindElement_index.TailwindStyledElement(style) {
23
22
  constructor() {
24
23
  super(...arguments);
25
- this.customClass = "";
24
+ this.customStyle = "";
25
+ this.providers = [
26
+ "twitter",
27
+ "instagram",
28
+ "linkedin",
29
+ "telegram",
30
+ "discord",
31
+ "reddit",
32
+ "medium",
33
+ "github"
34
+ ];
26
35
  this.urls = {
27
36
  twitter: "https://twitter.com/lukso_io",
28
37
  instagram: "https://www.instagram.com/lukso",
@@ -38,29 +47,29 @@ exports.LuksoShare = class LuksoShare extends shared_tailwindElement_index.Tailw
38
47
  return shared_tailwindElement_index.x`<a
39
48
  href=${url}
40
49
  target="_blank"
41
- class="transition-all duration-300 rounded-full hover:opacity-80 hover:shadow-button-hover-primary"
50
+ class="transition-all duration-300 rounded-full opacity-50 hover:opacity-80 hover:shadow-button-hover-primary h-7 w-7"
42
51
  ><img src="/assets/images/social-${name}.svg" alt=""
43
52
  /></a>`;
44
53
  }
45
54
  render() {
46
55
  const linkTemplates = [];
47
- for (const i of Object.keys(this.urls)) {
48
- linkTemplates.push(this.linkTemplate(i, this.urls[i]));
56
+ for (const provider of this.providers) {
57
+ linkTemplates.push(this.linkTemplate(provider, this.urls[provider]));
49
58
  }
50
59
  return shared_tailwindElement_index.x`<div
51
- class="grid gap-4 grid-cols-[repeat(4,max-content)] sm:grid-cols-[repeat(8,max-content)] ${index.customClassMap(
52
- {
53
- [this.customClass]: !!this.customClass
54
- }
55
- )}"
60
+ class="grid gap-2 sm:gap-4"
61
+ style="grid-template-columns: repeat(${this.providers.length}, max-content); ${this.customStyle}"
56
62
  >
57
63
  ${linkTemplates}
58
64
  </div>`;
59
65
  }
60
66
  };
61
67
  __decorateClass([
62
- directive.e({ type: String, attribute: "custom-class" })
63
- ], exports.LuksoShare.prototype, "customClass", 2);
68
+ queryAssignedElements.e({ type: String, attribute: "custom-style" })
69
+ ], exports.LuksoShare.prototype, "customStyle", 2);
70
+ __decorateClass([
71
+ queryAssignedElements.e({ type: Array })
72
+ ], exports.LuksoShare.prototype, "providers", 2);
64
73
  exports.LuksoShare = __decorateClass([
65
- directive.e$1("lukso-share")
74
+ queryAssignedElements.e$1("lukso-share")
66
75
  ], exports.LuksoShare);
@@ -1,8 +1,14 @@
1
+ export type Provider = 'twitter' | 'instagram' | 'linkedin' | 'telegram' | 'discord' | 'reddit' | 'medium' | 'github';
2
+ export type Url = `https://${string}`;
3
+ export type ProviderLinks = {
4
+ [key in Provider]: Url;
5
+ };
1
6
  declare const LuksoShare_base: typeof import("lit").LitElement;
2
7
  export declare class LuksoShare extends LuksoShare_base {
3
- customClass: string;
8
+ customStyle: string;
9
+ providers: Provider[];
4
10
  private urls;
5
- linkTemplate(name: string, url: string): import("lit").TemplateResult<1>;
11
+ linkTemplate(name: Provider, url: Url): import("lit").TemplateResult<1>;
6
12
  render(): import("lit").TemplateResult<1>;
7
13
  }
8
14
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-share/index.ts"],"names":[],"mappings":";AAOA,qBACa,UAAW,SAAQ,eAA4B;IAE1D,WAAW,SAAK;IAEhB,OAAO,CAAC,IAAI,CASX;IAED,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAStC,MAAM;CAgBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAA;KAC1B;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-share/index.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,GACV,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,QAAQ,CAAA;AAEZ,MAAM,MAAM,GAAG,GAAG,WAAW,MAAM,EAAE,CAAA;AAErC,MAAM,MAAM,aAAa,GAAG;KACzB,GAAG,IAAI,QAAQ,GAAG,GAAG;CACvB,CAAA;;AAED,qBACa,UAAW,SAAQ,eAA4B;IAE1D,WAAW,SAAK;IAGhB,SAAS,EAAE,QAAQ,EAAE,CASpB;IAED,OAAO,CAAC,IAAI,CASX;IAED,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG;IASrC,MAAM;CAeP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAA;KAC1B;CACF"}