@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.
Files changed (85) 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 +71 -47
  30. package/dist/components/lukso-search/index.d.ts +6 -2
  31. package/dist/components/lukso-search/index.d.ts.map +1 -1
  32. package/dist/components/lukso-search/index.js +53 -29
  33. package/dist/components/lukso-search/lukso-search.stories.d.ts +6 -2
  34. package/dist/components/lukso-search/lukso-search.stories.d.ts.map +1 -1
  35. package/dist/components/lukso-share/index.cjs +24 -15
  36. package/dist/components/lukso-share/index.d.ts +8 -2
  37. package/dist/components/lukso-share/index.d.ts.map +1 -1
  38. package/dist/components/lukso-share/index.js +23 -14
  39. package/dist/components/lukso-share/lukso-share.stories.d.ts +5 -1
  40. package/dist/components/lukso-share/lukso-share.stories.d.ts.map +1 -1
  41. package/dist/components/lukso-switch/index.cjs +9 -8
  42. package/dist/components/lukso-switch/index.js +5 -4
  43. package/dist/components/lukso-tag/index.cjs +10 -9
  44. package/dist/components/lukso-tag/index.js +5 -4
  45. package/dist/components/lukso-terms/index.cjs +9 -7
  46. package/dist/components/lukso-terms/index.d.ts.map +1 -1
  47. package/dist/components/lukso-terms/index.js +7 -5
  48. package/dist/components/lukso-test/index.cjs +10 -9
  49. package/dist/components/lukso-test/index.js +4 -3
  50. package/dist/components/lukso-username/index.cjs +16 -15
  51. package/dist/components/lukso-username/index.js +5 -4
  52. package/dist/components/lukso-wizard/index.cjs +10 -9
  53. package/dist/components/lukso-wizard/index.js +5 -4
  54. package/dist/directive-2bb7789e.js +8 -0
  55. package/dist/directive-8278ab14.cjs +12 -0
  56. package/dist/{directive-helpers-38cb10eb.cjs → directive-helpers-01f1c3b1.cjs} +1 -1
  57. package/dist/{directive-helpers-294cf70c.js → directive-helpers-8f79cbe5.js} +1 -1
  58. package/dist/{index-714323c9.js → index-5e194caf.js} +1 -1
  59. package/dist/{index-b3762a1f.cjs → index-930f6cf2.cjs} +1 -1
  60. package/dist/{index-7dc05ee5.cjs → index-e9668573.cjs} +2 -2
  61. package/dist/{index-211c8050.js → index-ed87f41b.js} +1 -1
  62. package/dist/index.cjs +7 -6
  63. package/dist/index.js +7 -6
  64. package/dist/query-assigned-elements-5200f974.cjs +24 -0
  65. package/dist/query-assigned-elements-e36df787.js +21 -0
  66. package/dist/shared/tailwind-element/index.cjs +1 -1
  67. package/dist/shared/tailwind-element/index.js +1 -1
  68. package/dist/{state-7fde94d1.js → state-02a92ffa.js} +1 -1
  69. package/dist/state-51b50a6b.cjs +11 -0
  70. package/dist/style-map-3b9af808.cjs +12 -0
  71. package/dist/{style-map-1398bfd6.js → style-map-5daca6c4.js} +2 -2
  72. package/package.json +1 -1
  73. package/tools/assets/images/social-discord.svg +4 -1
  74. package/tools/assets/images/social-github.svg +11 -1
  75. package/tools/assets/images/social-instagram.svg +6 -1
  76. package/tools/assets/images/social-linkedin.svg +4 -1
  77. package/tools/assets/images/social-medium.svg +6 -1
  78. package/tools/assets/images/social-reddit.svg +11 -1
  79. package/tools/assets/images/social-telegram.svg +4 -1
  80. package/tools/assets/images/social-twitter.svg +4 -1
  81. package/tools/sass/component.scss +4 -0
  82. package/dist/directive-9ec64c08.js +0 -28
  83. package/dist/directive-db00f5fb.cjs +0 -34
  84. package/dist/state-a62a7d5d.cjs +0 -11
  85. package/dist/style-map-cc5b37cd.cjs +0 -12
@@ -2,9 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-b3762a1f.cjs');
6
- const directive = require('../../directive-db00f5fb.cjs');
7
- const directiveHelpers = require('../../directive-helpers-38cb10eb.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');
8
+ const directiveHelpers = require('../../directive-helpers-01f1c3b1.cjs');
8
9
 
9
10
  /**
10
11
  * @license
@@ -14,13 +15,13 @@ const directiveHelpers = require('../../directive-helpers-38cb10eb.cjs');
14
15
 
15
16
  const i=new WeakMap;class t{constructor(t,s){this.startPaused=!1,this.disabled=!1,this.clients=new Set,this.pendingComplete=!1,this.host=t,this.defaultOptions=s.defaultOptions||{},this.startPaused=!!s.startPaused,this.disabled=!!s.disabled,this.onComplete=s.onComplete,i.set(this.host,this);}async add(i){var t,s;this.clients.add(i),this.startPaused&&(null===(t=i.webAnimation)||void 0===t||t.pause()),this.pendingComplete=!0,await i.finished,this.pendingComplete&&!this.isAnimating&&(this.pendingComplete=!1,null===(s=this.onComplete)||void 0===s||s.call(this));}remove(i){this.clients.delete(i);}pause(){this.clients.forEach((i=>{var t;return null===(t=i.webAnimation)||void 0===t?void 0:t.pause()}));}play(){this.clients.forEach((i=>{var t;return null===(t=i.webAnimation)||void 0===t?void 0:t.play()}));}cancel(){this.clients.forEach((i=>{var t;return null===(t=i.webAnimation)||void 0===t?void 0:t.cancel()})),this.clients.clear();}finish(){this.clients.forEach((i=>{var t;return null===(t=i.webAnimation)||void 0===t?void 0:t.finish()})),this.clients.clear();}togglePlay(){this.isPlaying?this.pause():this.play();}get isAnimating(){return this.clients.size>0}get isPlaying(){return Array.from(this.clients).some((i=>{var t;return "running"===(null===(t=i.webAnimation)||void 0===t?void 0:t.playState)}))}async finished(){await Promise.all(Array.from(this.clients).map((i=>i.finished)));}}
16
17
 
17
- let h=0;const r=new Map,n=new WeakSet,a=()=>new Promise((t=>requestAnimationFrame(t))),g=(t,i)=>{const s=t-i;return 0===s?void 0:s},w=(t,i)=>{const s=t/i;return 1===s?void 0:s},N={left:(t,i)=>{const s=g(t,i);return {value:s,transform:null==s||isNaN(s)?void 0:`translateX(${s}px)`}},top:(t,i)=>{const s=g(t,i);return {value:s,transform:null==s||isNaN(s)?void 0:`translateY(${s}px)`}},width:(t,i)=>{let s;0===i&&(i=1,s={width:"1px"});const e=w(t,i);return {value:e,overrideFrom:s,transform:null==e||isNaN(e)?void 0:`scaleX(${e})`}},height:(t,i)=>{let s;0===i&&(i=1,s={height:"1px"});const e=w(t,i);return {value:e,overrideFrom:s,transform:null==e||isNaN(e)?void 0:`scaleY(${e})`}}},A={duration:333,easing:"ease-in-out"},b=["left","top","width","height","opacity","color","background"],j=new WeakMap;class x extends c{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===directive.t.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished();}createFinished(){var t;null===(t=this.resolveFinished)||void 0===t||t.call(this),this.finished=new Promise((t=>{this.h=t;}));}async resolveFinished(){var t;null===(t=this.h)||void 0===t||t.call(this),this.h=void 0;}render(i){return shared_tailwindElement_index.A$1}getController(){return i.get(this.l)}isDisabled(){var t;return this.options.disabled||(null===(t=this.getController())||void 0===t?void 0:t.disabled)}update(t,[i]){var s;const e=void 0===this.l;return e&&(this.l=null===(s=t.options)||void 0===s?void 0:s.host,this.l.addController(this),this.element=t.element,j.set(this.element,this)),this.optionsOrCallback=i,(e||"function"!=typeof i)&&this.u(i),this.render(i)}u(t){var i,s;t=null!=t?t:{};const e=this.getController();void 0!==e&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),null!==(i=(s=t).properties)&&void 0!==i||(s.properties=b),this.options=t;}v(){const t={},i=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach((e=>{var o;const h=null!==(o=i[e])&&void 0!==o?o:N[e]?void 0:s[e],r=Number(h);t[e]=isNaN(r)?h+"":r;})),t}p(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((t,i)=>{if(Array.isArray(t)){if(Array.isArray(i)&&i.length===t.length&&t.every(((t,s)=>t===i[s])))return !1}else if(i===t)return !1;return !0})(t,this.m)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.o&&(this.m=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){var t;"function"==typeof this.optionsOrCallback&&this.u(this.optionsOrCallback()),this.p()&&(this.g=this.v(),this.t=null!==(t=this.t)&&void 0!==t?t:this.element.parentNode,this.i=this.element.nextSibling);}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await a;const i=this._(),s=this.A(this.options.keyframeOptions,i),e=this.v();if(void 0!==this.g){const{from:s,to:o}=this.O(this.g,e,i);this.log("measured",[this.g,e,s,o]),t=this.calculateKeyframes(s,o);}else {const s=r.get(this.options.inId);if(s){r.delete(this.options.inId);const{from:o,to:n}=this.O(s,e,i);t=this.calculateKeyframes(o,n),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,h++,t.forEach((t=>t.zIndex=h));}else this.options.in&&(t=[...this.options.in,{}]);}this.animate(t,s);}resetStyles(){var t;void 0!==this.j&&(this.element.setAttribute("style",null!==(t=this.j)&&void 0!==t?t:""),this.j=void 0);}commitStyles(){var t,i;this.j=this.element.getAttribute("style"),null===(t=this.webAnimation)||void 0===t||t.commitStyles(),null===(i=this.webAnimation)||void 0===i||i.cancel();}reconnected(){}async disconnected(){var t;if(!this.o)return;if(void 0!==this.options.id&&r.set(this.options.id,this.g),void 0===this.options.out)return;if(this.prepare(),await a(),null===(t=this.t)||void 0===t?void 0:t.isConnected){const t=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,t),this.options.stabilizeOut){const t=this.v();this.log("stabilizing out");const i=this.g.left-t.left,s=this.g.top-t.top;!("static"===getComputedStyle(this.element).position)||0===i&&0===s||(this.element.style.position="relative"),0!==i&&(this.element.style.left=i+"px"),0!==s&&(this.element.style.top=s+"px");}}const i=this.A(this.options.keyframeOptions);await this.animate(this.options.out,i),this.element.remove();}prepare(){this.createFinished();}start(){var t,i;null===(i=(t=this.options).onStart)||void 0===i||i.call(t,this);}didFinish(t){var i,s;t&&(null===(s=(i=this.options).onComplete)||void 0===s||s.call(i,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished();}_(){const t=[];for(let i=this.element.parentNode;i;i=null==i?void 0:i.parentNode){const s=j.get(i);s&&!s.isDisabled()&&s&&t.push(s);}return t}get isHostRendered(){const t=n.has(this.l);return t||this.l.updateComplete.then((()=>{n.add(this.l);})),t}A(t,i=this._()){const s={...A};return i.forEach((t=>Object.assign(s,t.options.keyframeOptions))),Object.assign(s,t),s}O(t,i,s){t={...t},i={...i};const e=s.map((t=>t.animatingProperties)).filter((t=>void 0!==t));let o=1,h=1;return void 0!==e&&(e.forEach((t=>{t.width&&(o/=t.width),t.height&&(h/=t.height);})),void 0!==t.left&&void 0!==i.left&&(t.left=o*t.left,i.left=o*i.left),void 0!==t.top&&void 0!==i.top&&(t.top=h*t.top,i.top=h*i.top)),{from:t,to:i}}calculateKeyframes(t,i,s=!1){var e;const o={},h={};let r=!1;const n={};for(const s in i){const a=t[s],l=i[s];if(s in N){const t=N[s];if(void 0===a||void 0===l)continue;const i=t(a,l);void 0!==i.transform&&(n[s]=i.value,r=!0,o.transform=`${null!==(e=o.transform)&&void 0!==e?e:""} ${i.transform}`,void 0!==i.overrideFrom&&Object.assign(o,i.overrideFrom));}else a!==l&&void 0!==a&&void 0!==l&&(r=!0,o[s]=a,h[s]=l);}return o.transformOrigin=h.transformOrigin=s?"center center":"top left",this.animatingProperties=n,r?[o,h]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),void 0!==t)){this.log("animate",[t,i]),s=!0,this.webAnimation=this.element.animate(t,i);const e=this.getController();null==e||e.add(this);try{await this.webAnimation.finished;}catch(t){}null==e||e.remove(this);}return this.didFinish(s),s}isAnimating(){var t,i;return "running"===(null===(t=this.webAnimation)||void 0===t?void 0:t.playState)||(null===(i=this.webAnimation)||void 0===i?void 0:i.pending)}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i);}}const F=directive.e$2(x);
18
+ let h=0;const r=new Map,n=new WeakSet,a=()=>new Promise((t=>requestAnimationFrame(t))),g=(t,i)=>{const s=t-i;return 0===s?void 0:s},w=(t,i)=>{const s=t/i;return 1===s?void 0:s},N={left:(t,i)=>{const s=g(t,i);return {value:s,transform:null==s||isNaN(s)?void 0:`translateX(${s}px)`}},top:(t,i)=>{const s=g(t,i);return {value:s,transform:null==s||isNaN(s)?void 0:`translateY(${s}px)`}},width:(t,i)=>{let s;0===i&&(i=1,s={width:"1px"});const e=w(t,i);return {value:e,overrideFrom:s,transform:null==e||isNaN(e)?void 0:`scaleX(${e})`}},height:(t,i)=>{let s;0===i&&(i=1,s={height:"1px"});const e=w(t,i);return {value:e,overrideFrom:s,transform:null==e||isNaN(e)?void 0:`scaleY(${e})`}}},A={duration:333,easing:"ease-in-out"},b=["left","top","width","height","opacity","color","background"],j=new WeakMap;class x extends c{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===directive.t.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished();}createFinished(){var t;null===(t=this.resolveFinished)||void 0===t||t.call(this),this.finished=new Promise((t=>{this.h=t;}));}async resolveFinished(){var t;null===(t=this.h)||void 0===t||t.call(this),this.h=void 0;}render(i){return shared_tailwindElement_index.A$1}getController(){return i.get(this.l)}isDisabled(){var t;return this.options.disabled||(null===(t=this.getController())||void 0===t?void 0:t.disabled)}update(t,[i]){var s;const e=void 0===this.l;return e&&(this.l=null===(s=t.options)||void 0===s?void 0:s.host,this.l.addController(this),this.element=t.element,j.set(this.element,this)),this.optionsOrCallback=i,(e||"function"!=typeof i)&&this.u(i),this.render(i)}u(t){var i,s;t=null!=t?t:{};const e=this.getController();void 0!==e&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),null!==(i=(s=t).properties)&&void 0!==i||(s.properties=b),this.options=t;}v(){const t={},i=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach((e=>{var o;const h=null!==(o=i[e])&&void 0!==o?o:N[e]?void 0:s[e],r=Number(h);t[e]=isNaN(r)?h+"":r;})),t}p(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((t,i)=>{if(Array.isArray(t)){if(Array.isArray(i)&&i.length===t.length&&t.every(((t,s)=>t===i[s])))return !1}else if(i===t)return !1;return !0})(t,this.m)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.o&&(this.m=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){var t;"function"==typeof this.optionsOrCallback&&this.u(this.optionsOrCallback()),this.p()&&(this.g=this.v(),this.t=null!==(t=this.t)&&void 0!==t?t:this.element.parentNode,this.i=this.element.nextSibling);}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await a;const i=this._(),s=this.A(this.options.keyframeOptions,i),e=this.v();if(void 0!==this.g){const{from:s,to:o}=this.O(this.g,e,i);this.log("measured",[this.g,e,s,o]),t=this.calculateKeyframes(s,o);}else {const s=r.get(this.options.inId);if(s){r.delete(this.options.inId);const{from:o,to:n}=this.O(s,e,i);t=this.calculateKeyframes(o,n),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,h++,t.forEach((t=>t.zIndex=h));}else this.options.in&&(t=[...this.options.in,{}]);}this.animate(t,s);}resetStyles(){var t;void 0!==this.j&&(this.element.setAttribute("style",null!==(t=this.j)&&void 0!==t?t:""),this.j=void 0);}commitStyles(){var t,i;this.j=this.element.getAttribute("style"),null===(t=this.webAnimation)||void 0===t||t.commitStyles(),null===(i=this.webAnimation)||void 0===i||i.cancel();}reconnected(){}async disconnected(){var t;if(!this.o)return;if(void 0!==this.options.id&&r.set(this.options.id,this.g),void 0===this.options.out)return;if(this.prepare(),await a(),null===(t=this.t)||void 0===t?void 0:t.isConnected){const t=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,t),this.options.stabilizeOut){const t=this.v();this.log("stabilizing out");const i=this.g.left-t.left,s=this.g.top-t.top;!("static"===getComputedStyle(this.element).position)||0===i&&0===s||(this.element.style.position="relative"),0!==i&&(this.element.style.left=i+"px"),0!==s&&(this.element.style.top=s+"px");}}const i=this.A(this.options.keyframeOptions);await this.animate(this.options.out,i),this.element.remove();}prepare(){this.createFinished();}start(){var t,i;null===(i=(t=this.options).onStart)||void 0===i||i.call(t,this);}didFinish(t){var i,s;t&&(null===(s=(i=this.options).onComplete)||void 0===s||s.call(i,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished();}_(){const t=[];for(let i=this.element.parentNode;i;i=null==i?void 0:i.parentNode){const s=j.get(i);s&&!s.isDisabled()&&s&&t.push(s);}return t}get isHostRendered(){const t=n.has(this.l);return t||this.l.updateComplete.then((()=>{n.add(this.l);})),t}A(t,i=this._()){const s={...A};return i.forEach((t=>Object.assign(s,t.options.keyframeOptions))),Object.assign(s,t),s}O(t,i,s){t={...t},i={...i};const e=s.map((t=>t.animatingProperties)).filter((t=>void 0!==t));let o=1,h=1;return void 0!==e&&(e.forEach((t=>{t.width&&(o/=t.width),t.height&&(h/=t.height);})),void 0!==t.left&&void 0!==i.left&&(t.left=o*t.left,i.left=o*i.left),void 0!==t.top&&void 0!==i.top&&(t.top=h*t.top,i.top=h*i.top)),{from:t,to:i}}calculateKeyframes(t,i,s=!1){var e;const o={},h={};let r=!1;const n={};for(const s in i){const a=t[s],l=i[s];if(s in N){const t=N[s];if(void 0===a||void 0===l)continue;const i=t(a,l);void 0!==i.transform&&(n[s]=i.value,r=!0,o.transform=`${null!==(e=o.transform)&&void 0!==e?e:""} ${i.transform}`,void 0!==i.overrideFrom&&Object.assign(o,i.overrideFrom));}else a!==l&&void 0!==a&&void 0!==l&&(r=!0,o[s]=a,h[s]=l);}return o.transformOrigin=h.transformOrigin=s?"center center":"top left",this.animatingProperties=n,r?[o,h]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),void 0!==t)){this.log("animate",[t,i]),s=!0,this.webAnimation=this.element.animate(t,i);const e=this.getController();null==e||e.add(this);try{await this.webAnimation.finished;}catch(t){}null==e||e.remove(this);}return this.didFinish(s),s}isAnimating(){var t,i;return "running"===(null===(t=this.webAnimation)||void 0===t?void 0:t.playState)||(null===(i=this.webAnimation)||void 0===i?void 0:i.pending)}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i);}}const F=directive.e(x);
18
19
 
19
20
  /**
20
21
  * @license
21
22
  * Copyright 2018 Google LLC
22
23
  * SPDX-License-Identifier: BSD-3-Clause
23
- */const o=directive.e$2(class extends directive.i{constructor(t){var i;if(super(t),t.type!==directive.t.ATTRIBUTE||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(i,[s]){var r,o;if(void 0===this.it){this.it=new Set,void 0!==i.strings&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in s)s[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(s)}const e=i.element.classList;this.it.forEach((t=>{t in s||(e.remove(t),this.it.delete(t));}));for(const t in s){const i=!!s[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)));}return shared_tailwindElement_index.T}});
24
+ */const o=directive.e(class extends directive.i{constructor(t){var i;if(super(t),t.type!==directive.t.ATTRIBUTE||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(i,[s]){var r,o;if(void 0===this.it){this.it=new Set,void 0!==i.strings&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in s)s[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(s)}const e=i.element.classList;this.it.forEach((t=>{t in s||(e.remove(t),this.it.delete(t));}));for(const t in s){const i=!!s[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)));}return shared_tailwindElement_index.T}});
24
25
 
25
26
  const style = "p {\n --tw-bg-opacity: 1;\n background-color: rgb(254 202 202 / var(--tw-bg-opacity))\n}\np b {\n --tw-text-opacity: 1;\n color: rgb(249 115 22 / var(--tw-text-opacity))\n}";
26
27
 
@@ -88,14 +89,14 @@ exports.LuksoTest = class LuksoTest extends shared_tailwindElement_index.Tailwin
88
89
  }
89
90
  };
90
91
  __decorateClass([
91
- directive.e()
92
+ queryAssignedElements.e()
92
93
  ], exports.LuksoTest.prototype, "name", 2);
93
94
  __decorateClass([
94
- directive.e()
95
+ queryAssignedElements.e()
95
96
  ], exports.LuksoTest.prototype, "clicked", 2);
96
97
  __decorateClass([
97
- directive.e({ type: Boolean })
98
+ queryAssignedElements.e({ type: Boolean })
98
99
  ], exports.LuksoTest.prototype, "disabled", 2);
99
100
  exports.LuksoTest = __decorateClass([
100
- directive.e$1("lukso-test")
101
+ queryAssignedElements.e$1("lukso-test")
101
102
  ], exports.LuksoTest);
@@ -1,6 +1,7 @@
1
- import { c as A$1, b as T, T as TailwindStyledElement, x as x$1 } from '../../index-211c8050.js';
2
- import { i as i$1, t as t$1, b as e$1, e as e$2, a as e$3 } from '../../directive-9ec64c08.js';
3
- import { e } from '../../directive-helpers-294cf70c.js';
1
+ import { c as A$1, b as T, T as TailwindStyledElement, x as x$1 } from '../../index-ed87f41b.js';
2
+ import { e as e$2, a as e$3 } from '../../query-assigned-elements-e36df787.js';
3
+ import { i as i$1, t as t$1, e as e$1 } from '../../directive-2bb7789e.js';
4
+ import { e } from '../../directive-helpers-8f79cbe5.js';
4
5
 
5
6
  /**
6
7
  * @license
@@ -2,10 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-b3762a1f.cjs');
6
- const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-cc5b37cd.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
  const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
11
12
  if (!address) {
@@ -122,35 +123,35 @@ exports.LuksoUsername = class LuksoUsername extends shared_tailwindElement_index
122
123
  }
123
124
  };
124
125
  __decorateClass([
125
- directive.e({ type: String })
126
+ queryAssignedElements.e({ type: String })
126
127
  ], exports.LuksoUsername.prototype, "name", 2);
127
128
  __decorateClass([
128
- directive.e({ type: String })
129
+ queryAssignedElements.e({ type: String })
129
130
  ], exports.LuksoUsername.prototype, "address", 2);
130
131
  __decorateClass([
131
- directive.e({ type: Number, attribute: "max-width" })
132
+ queryAssignedElements.e({ type: Number, attribute: "max-width" })
132
133
  ], exports.LuksoUsername.prototype, "maxWidth", 2);
133
134
  __decorateClass([
134
- directive.e({ type: "string" })
135
+ queryAssignedElements.e({ type: "string" })
135
136
  ], exports.LuksoUsername.prototype, "size", 2);
136
137
  __decorateClass([
137
- directive.e({ type: Number, attribute: "slice-by" })
138
+ queryAssignedElements.e({ type: Number, attribute: "slice-by" })
138
139
  ], exports.LuksoUsername.prototype, "sliceBy", 2);
139
140
  __decorateClass([
140
- directive.e({ type: String, attribute: "address-color" })
141
+ queryAssignedElements.e({ type: String, attribute: "address-color" })
141
142
  ], exports.LuksoUsername.prototype, "addressColor", 2);
142
143
  __decorateClass([
143
- directive.e({ type: String, attribute: "name-color" })
144
+ queryAssignedElements.e({ type: String, attribute: "name-color" })
144
145
  ], exports.LuksoUsername.prototype, "nameColor", 2);
145
146
  __decorateClass([
146
- directive.e({ type: String, attribute: "custom-class" })
147
+ queryAssignedElements.e({ type: String, attribute: "custom-class" })
147
148
  ], exports.LuksoUsername.prototype, "customClass", 2);
148
149
  __decorateClass([
149
- directive.e({ type: Boolean, attribute: "hide-prefix" })
150
+ queryAssignedElements.e({ type: Boolean, attribute: "hide-prefix" })
150
151
  ], exports.LuksoUsername.prototype, "hidePrefix", 2);
151
152
  __decorateClass([
152
- directive.e({ type: String })
153
+ queryAssignedElements.e({ type: String })
153
154
  ], exports.LuksoUsername.prototype, "prefix", 2);
154
155
  exports.LuksoUsername = __decorateClass([
155
- directive.e$1("lukso-username")
156
+ queryAssignedElements.e$1("lukso-username")
156
157
  ], exports.LuksoUsername);
@@ -1,7 +1,8 @@
1
- import { T as TailwindStyledElement, x, c as A } from '../../index-211c8050.js';
2
- import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-1398bfd6.js';
4
- import { c as customClassMap } from '../../index-714323c9.js';
1
+ import { T as TailwindStyledElement, x, c as A } 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
  const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
7
8
  if (!address) {
@@ -2,17 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-b3762a1f.cjs');
6
- const directive = require('../../directive-db00f5fb.cjs');
7
- const directiveHelpers = require('../../directive-helpers-38cb10eb.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 directive = require('../../directive-8278ab14.cjs');
8
+ const directiveHelpers = require('../../directive-helpers-01f1c3b1.cjs');
9
+ const index = require('../../index-e9668573.cjs');
9
10
 
10
11
  /**
11
12
  * @license
12
13
  * Copyright 2017 Google LLC
13
14
  * SPDX-License-Identifier: BSD-3-Clause
14
15
  */
15
- const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=directive.e$2(class extends directive.i{constructor(e){if(super(e),e.type!==directive.t.CHILD)throw Error("repeat() can only be used in text expressions")}ct(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.ct(e,s,t).values}update(s,[t,r,c]){var d;const a=directiveHelpers.m(s),{values:p,keys:v}=this.ct(t,r,c);if(!Array.isArray(a))return this.ut=v,p;const h=null!==(d=this.ut)&&void 0!==d?d:this.ut=[],m=[];let y,x,j=0,k=a.length-1,w=0,A=p.length-1;for(;j<=k&&w<=A;)if(null===a[j])j++;else if(null===a[k])k--;else if(h[j]===v[w])m[w]=directiveHelpers.f(a[j],p[w]),j++,w++;else if(h[k]===v[A])m[A]=directiveHelpers.f(a[k],p[A]),k--,A--;else if(h[j]===v[A])m[A]=directiveHelpers.f(a[j],p[A]),directiveHelpers.c(s,m[A+1],a[j]),j++,A--;else if(h[k]===v[w])m[w]=directiveHelpers.f(a[k],p[w]),directiveHelpers.c(s,a[j],a[k]),k--,w++;else if(void 0===y&&(y=u(v,w,A),x=u(h,j,k)),y.has(h[j]))if(y.has(h[k])){const e=x.get(v[w]),t=void 0!==e?a[e]:null;if(null===t){const e=directiveHelpers.c(s,a[j]);directiveHelpers.f(e,p[w]),m[w]=e;}else m[w]=directiveHelpers.f(t,p[w]),directiveHelpers.c(s,a[j],t),a[e]=null;w++;}else directiveHelpers.p(a[k]),k--;else directiveHelpers.p(a[j]),j++;for(;w<=A;){const e=directiveHelpers.c(s,m[A+1]);directiveHelpers.f(e,p[w]),m[w++]=e;}for(;j<=k;){const e=a[j++];null!==e&&directiveHelpers.p(e);}return this.ut=v,directiveHelpers.a(s,m),shared_tailwindElement_index.T}});
16
+ const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=directive.e(class extends directive.i{constructor(e){if(super(e),e.type!==directive.t.CHILD)throw Error("repeat() can only be used in text expressions")}ct(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.ct(e,s,t).values}update(s,[t,r,c]){var d;const a=directiveHelpers.m(s),{values:p,keys:v}=this.ct(t,r,c);if(!Array.isArray(a))return this.ut=v,p;const h=null!==(d=this.ut)&&void 0!==d?d:this.ut=[],m=[];let y,x,j=0,k=a.length-1,w=0,A=p.length-1;for(;j<=k&&w<=A;)if(null===a[j])j++;else if(null===a[k])k--;else if(h[j]===v[w])m[w]=directiveHelpers.f(a[j],p[w]),j++,w++;else if(h[k]===v[A])m[A]=directiveHelpers.f(a[k],p[A]),k--,A--;else if(h[j]===v[A])m[A]=directiveHelpers.f(a[j],p[A]),directiveHelpers.c(s,m[A+1],a[j]),j++,A--;else if(h[k]===v[w])m[w]=directiveHelpers.f(a[k],p[w]),directiveHelpers.c(s,a[j],a[k]),k--,w++;else if(void 0===y&&(y=u(v,w,A),x=u(h,j,k)),y.has(h[j]))if(y.has(h[k])){const e=x.get(v[w]),t=void 0!==e?a[e]:null;if(null===t){const e=directiveHelpers.c(s,a[j]);directiveHelpers.f(e,p[w]),m[w]=e;}else m[w]=directiveHelpers.f(t,p[w]),directiveHelpers.c(s,a[j],t),a[e]=null;w++;}else directiveHelpers.p(a[k]),k--;else directiveHelpers.p(a[j]),j++;for(;w<=A;){const e=directiveHelpers.c(s,m[A+1]);directiveHelpers.f(e,p[w]),m[w++]=e;}for(;j<=k;){const e=a[j++];null!==e&&directiveHelpers.p(e);}return this.ut=v,directiveHelpers.a(s,m),shared_tailwindElement_index.T}});
16
17
 
17
18
  const style = ".lukso-wizard-circle::after {\n width: 0;\n}\n.lukso-wizard-circle.completed::after {\n width: calc(100% - 16px);\n}\n.lukso-wizard-circle.current::after {\n width: 0;\n}\n.lukso-wizard-circle.current.animated-step::after {\n width: calc(100% - 16px);\n}";
18
19
 
@@ -98,14 +99,14 @@ exports.LuksoWizard = class LuksoWizard extends shared_tailwindElement_index.Tai
98
99
  }
99
100
  };
100
101
  __decorateClass([
101
- directive.e({ type: String })
102
+ queryAssignedElements.e({ type: String })
102
103
  ], exports.LuksoWizard.prototype, "steps", 2);
103
104
  __decorateClass([
104
- directive.e({ type: Number, attribute: "active-step" })
105
+ queryAssignedElements.e({ type: Number, attribute: "active-step" })
105
106
  ], exports.LuksoWizard.prototype, "activeStep", 2);
106
107
  __decorateClass([
107
- directive.e({ type: Boolean, attribute: "is-full-width" })
108
+ queryAssignedElements.e({ type: Boolean, attribute: "is-full-width" })
108
109
  ], exports.LuksoWizard.prototype, "isFullWidth", 2);
109
110
  exports.LuksoWizard = __decorateClass([
110
- directive.e$1("lukso-wizard")
111
+ queryAssignedElements.e$1("lukso-wizard")
111
112
  ], exports.LuksoWizard);
@@ -1,7 +1,8 @@
1
- import { b as T, T as TailwindStyledElement, x } from '../../index-211c8050.js';
2
- import { b as e, i, t, e as e$1, a as e$2 } from '../../directive-9ec64c08.js';
3
- import { m, f, c as c$1, p, a } from '../../directive-helpers-294cf70c.js';
4
- import { c as customClassMap } from '../../index-714323c9.js';
1
+ import { b as T, T as TailwindStyledElement, x } from '../../index-ed87f41b.js';
2
+ import { e as e$1, a as e$2 } from '../../query-assigned-elements-e36df787.js';
3
+ import { e, i, t } from '../../directive-2bb7789e.js';
4
+ import { m, f, c as c$1, p, a } from '../../directive-helpers-8f79cbe5.js';
5
+ import { c as customClassMap } from '../../index-5e194caf.js';
5
6
 
6
7
  /**
7
8
  * @license
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
7
+
8
+ export { e, i, t };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @license
5
+ * Copyright 2017 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */
8
+ const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
9
+
10
+ exports.e = e;
11
+ exports.i = i;
12
+ exports.t = t;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const shared_tailwindElement_index = require('./index-b3762a1f.cjs');
3
+ const shared_tailwindElement_index = require('./index-930f6cf2.cjs');
4
4
 
5
5
  /**
6
6
  * @license
@@ -1,4 +1,4 @@
1
- import { j } from './index-211c8050.js';
1
+ import { j } from './index-ed87f41b.js';
2
2
 
3
3
  /**
4
4
  * @license
@@ -1,4 +1,4 @@
1
- import { b as e, i, t } from './directive-9ec64c08.js';
1
+ import { e, i, t } from './directive-2bb7789e.js';
2
2
 
3
3
  class CustomClassMapDirective extends i {
4
4
  constructor(partInfo) {