@lukso/web-components 1.23.0 → 1.24.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 (44) hide show
  1. package/dist/components/index.cjs +2 -2
  2. package/dist/components/index.js +2 -2
  3. package/dist/components/lukso-button/index.cjs +3 -3
  4. package/dist/components/lukso-button/index.js +3 -3
  5. package/dist/components/lukso-card/index.cjs +2 -2
  6. package/dist/components/lukso-card/index.js +2 -2
  7. package/dist/components/lukso-icon/index.cjs +2 -2
  8. package/dist/components/lukso-icon/index.js +2 -2
  9. package/dist/components/lukso-input/index.cjs +1 -1
  10. package/dist/components/lukso-input/index.js +1 -1
  11. package/dist/components/lukso-modal/index.cjs +1 -1
  12. package/dist/components/lukso-modal/index.js +1 -1
  13. package/dist/components/lukso-navbar/index.cjs +1 -1
  14. package/dist/components/lukso-navbar/index.js +1 -1
  15. package/dist/components/lukso-profile/index.cjs +2 -2
  16. package/dist/components/lukso-profile/index.js +2 -2
  17. package/dist/components/lukso-progress/index.cjs +2 -2
  18. package/dist/components/lukso-progress/index.js +2 -2
  19. package/dist/components/lukso-sanitize/index.cjs +1 -1
  20. package/dist/components/lukso-sanitize/index.js +1 -1
  21. package/dist/components/lukso-share/index.cjs +1 -1
  22. package/dist/components/lukso-share/index.js +1 -1
  23. package/dist/components/lukso-tag/index.cjs +2 -2
  24. package/dist/components/lukso-tag/index.js +2 -2
  25. package/dist/components/lukso-terms/index.cjs +2 -2
  26. package/dist/components/lukso-terms/index.js +2 -2
  27. package/dist/components/lukso-test/index.cjs +1 -1
  28. package/dist/components/lukso-test/index.js +1 -1
  29. package/dist/components/lukso-username/index.cjs +2 -2
  30. package/dist/components/lukso-username/index.js +2 -2
  31. package/dist/components/lukso-wizard/index.cjs +31 -9
  32. package/dist/components/lukso-wizard/index.d.ts +5 -2
  33. package/dist/components/lukso-wizard/index.d.ts.map +1 -1
  34. package/dist/components/lukso-wizard/index.js +31 -9
  35. package/dist/{index-e3189942.js → index-3e7edd92.js} +1 -1
  36. package/dist/{index-2ead6ca2.cjs → index-f0ca98d2.cjs} +1 -1
  37. package/dist/index.cjs +2 -2
  38. package/dist/index.js +2 -2
  39. package/dist/shared/tailwind-element/index.cjs +1 -1
  40. package/dist/shared/tailwind-element/index.js +1 -1
  41. package/dist/{style-map-3dc9363d.cjs → style-map-4458ae5f.cjs} +1 -1
  42. package/dist/{style-map-e2dd0466.js → style-map-928073dd.js} +1 -1
  43. package/package.json +1 -1
  44. package/tailwind.config.cjs +4 -0
@@ -17,11 +17,11 @@ const components_luksoTerms_index = require('./lukso-terms/index.cjs');
17
17
  const components_luksoTest_index = require('./lukso-test/index.cjs');
18
18
  const components_luksoUsername_index = require('./lukso-username/index.cjs');
19
19
  const components_luksoWizard_index = require('./lukso-wizard/index.cjs');
20
- const shared_tailwindElement_index = require('../index-2ead6ca2.cjs');
20
+ const shared_tailwindElement_index = require('../index-f0ca98d2.cjs');
21
21
  require('../directive-db00f5fb.cjs');
22
22
  require('../state-a62a7d5d.cjs');
23
23
  require('../index-7dc05ee5.cjs');
24
- require('../style-map-3dc9363d.cjs');
24
+ require('../style-map-4458ae5f.cjs');
25
25
 
26
26
 
27
27
 
@@ -13,8 +13,8 @@ export { LuksoTerms } from './lukso-terms/index.js';
13
13
  export { LuksoTest } from './lukso-test/index.js';
14
14
  export { LuksoUsername } from './lukso-username/index.js';
15
15
  export { LuksoWizard } from './lukso-wizard/index.js';
16
- export { a as TailwindElement, T as TailwindStyledElement } from '../index-e3189942.js';
16
+ export { a as TailwindElement, T as TailwindStyledElement } from '../index-3e7edd92.js';
17
17
  import '../directive-9ec64c08.js';
18
18
  import '../state-7fde94d1.js';
19
19
  import '../index-714323c9.js';
20
- import '../style-map-e2dd0466.js';
20
+ import '../style-map-928073dd.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const state = require('../../state-a62a7d5d.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
@@ -41,8 +41,8 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
41
41
  this.noTransition = false;
42
42
  this.timer = 0;
43
43
  this.defaultStyles = `flex justify-center items-center relative text-center
44
- border border-solid cursor-pointer transition duration-0
45
- hover:duration-250 active:scale-98 active:duration-25
44
+ border border-solid cursor-pointer transition
45
+ duration-250 active:scale-98 active:duration-25
46
46
  disabled:shadow-none disabled:cursor-not-allowed disabled:scale-100 disabled:opacity-50`;
47
47
  this.secondaryStyles = `bg-neutral-100 border-neutral-90 text-neutral-20
48
48
  hover:shadow-button-hover-secondary active:shadow-button-press-secondary`;
@@ -1,4 +1,4 @@
1
- import { T as TailwindStyledElement, x } from '../../index-e3189942.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-3e7edd92.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { t } from '../../state-7fde94d1.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
@@ -37,8 +37,8 @@ let LuksoButton = class extends TailwindStyledElement(style) {
37
37
  this.noTransition = false;
38
38
  this.timer = 0;
39
39
  this.defaultStyles = `flex justify-center items-center relative text-center
40
- border border-solid cursor-pointer transition duration-0
41
- hover:duration-250 active:scale-98 active:duration-25
40
+ border border-solid cursor-pointer transition
41
+ duration-250 active:scale-98 active:duration-25
42
42
  disabled:shadow-none disabled:cursor-not-allowed disabled:scale-100 disabled:opacity-50`;
43
43
  this.secondaryStyles = `bg-neutral-100 border-neutral-90 text-neutral-20
44
44
  hover:shadow-button-hover-secondary active:shadow-button-press-secondary`;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-3dc9363d.cjs');
7
+ const styleMap = require('../../style-map-4458ae5f.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
  require('../lukso-profile/index.cjs');
10
10
 
@@ -1,6 +1,6 @@
1
- import { T as TailwindStyledElement, x } from '../../index-e3189942.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-3e7edd92.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-e2dd0466.js';
3
+ import { o } from '../../style-map-928073dd.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
  import '../lukso-profile/index.js';
6
6
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-3dc9363d.cjs');
7
+ const styleMap = require('../../style-map-4458ae5f.cjs');
8
8
 
9
9
  const style = ":host {\n display: inline-flex\n}";
10
10
 
@@ -1,6 +1,6 @@
1
- import { x, T as TailwindStyledElement } from '../../index-e3189942.js';
1
+ import { x, T as TailwindStyledElement } from '../../index-3e7edd92.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-e2dd0466.js';
3
+ import { o } from '../../style-map-928073dd.js';
4
4
 
5
5
  const style = ":host {\n display: inline-flex\n}";
6
6
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const state = require('../../state-a62a7d5d.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, x, A } from '../../index-e3189942.js';
1
+ import { a as TailwindElement, x, A } from '../../index-3e7edd92.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { t } from '../../state-7fde94d1.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const index = require('../../index-7dc05ee5.cjs');
8
8
 
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, x } from '../../index-e3189942.js';
1
+ import { a as TailwindElement, x } from '../../index-3e7edd92.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { c as customClassMap } from '../../index-714323c9.js';
4
4
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const state = require('../../state-a62a7d5d.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, x } from '../../index-e3189942.js';
1
+ import { a as TailwindElement, x } from '../../index-3e7edd92.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { t } from '../../state-7fde94d1.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-3dc9363d.cjs');
7
+ const styleMap = require('../../style-map-4458ae5f.cjs');
8
8
 
9
9
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
10
 
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x } from '../../index-e3189942.js';
1
+ import { a as TailwindElement, x } from '../../index-3e7edd92.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-e2dd0466.js';
3
+ import { o } from '../../style-map-928073dd.js';
4
4
 
5
5
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
6
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-3dc9363d.cjs');
7
+ const styleMap = require('../../style-map-4458ae5f.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
 
10
10
  var __defProp = Object.defineProperty;
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x } from '../../index-e3189942.js';
1
+ import { a as TailwindElement, x } from '../../index-3e7edd92.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-e2dd0466.js';
3
+ import { o } from '../../style-map-928073dd.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
 
6
6
  var __defProp = Object.defineProperty;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { A, b as T, a as TailwindElement, x } from '../../index-e3189942.js';
1
+ import { A, b as T, a as TailwindElement, x } from '../../index-3e7edd92.js';
2
2
  import { i, t, b as e$1, e as e$2, a as e$3 } from '../../directive-9ec64c08.js';
3
3
 
4
4
  /**
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const index = require('../../index-7dc05ee5.cjs');
8
8
 
@@ -1,4 +1,4 @@
1
- import { T as TailwindStyledElement, x } from '../../index-e3189942.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-3e7edd92.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { c as customClassMap } from '../../index-714323c9.js';
4
4
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-3dc9363d.cjs');
7
+ const styleMap = require('../../style-map-4458ae5f.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
 
10
10
  var __defProp = Object.defineProperty;
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x } from '../../index-e3189942.js';
1
+ import { a as TailwindElement, x } from '../../index-3e7edd92.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-e2dd0466.js';
3
+ import { o } from '../../style-map-928073dd.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
 
6
6
  var __defProp = Object.defineProperty;
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const state = require('../../state-a62a7d5d.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
  require('../lukso-icon/index.cjs');
10
10
  require('../lukso-sanitize/index.cjs');
11
- require('../../style-map-3dc9363d.cjs');
11
+ require('../../style-map-4458ae5f.cjs');
12
12
 
13
13
  const style = ":host {\n display: flex;\n height: 100%\n}";
14
14
 
@@ -1,10 +1,10 @@
1
- import { T as TailwindStyledElement, x } from '../../index-e3189942.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-3e7edd92.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { t } from '../../state-7fde94d1.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
  import '../lukso-icon/index.js';
6
6
  import '../lukso-sanitize/index.js';
7
- import '../../style-map-e2dd0466.js';
7
+ import '../../style-map-928073dd.js';
8
8
 
9
9
  const style = ":host {\n display: flex;\n height: 100%\n}";
10
10
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { b as T$1, T as TailwindStyledElement, x as x$2 } from '../../index-e3189942.js';
1
+ import { b as T$1, T as TailwindStyledElement, x as x$2 } from '../../index-3e7edd92.js';
2
2
  import { b as e$3, i as i$3, t as t$3, e as e$4, a as e$5 } from '../../directive-9ec64c08.js';
3
3
 
4
4
  /**
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-3dc9363d.cjs');
7
+ const styleMap = require('../../style-map-4458ae5f.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
 
10
10
  const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x } from '../../index-e3189942.js';
1
+ import { a as TailwindElement, x } from '../../index-3e7edd92.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-e2dd0466.js';
3
+ import { o } from '../../style-map-928073dd.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
 
6
6
  const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-2ead6ca2.cjs');
5
+ const shared_tailwindElement_index = require('../../index-f0ca98d2.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const index = require('../../index-7dc05ee5.cjs');
8
8
 
@@ -19,6 +19,8 @@ const index = require('../../index-7dc05ee5.cjs');
19
19
  */
20
20
  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")}dt(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.dt(e,s,t).values}update(s$1,[t,r$1,c]){var d;const a=m(s$1),{values:p$1,keys:v}=this.dt(t,r$1,c);if(!Array.isArray(a))return this.ht=v,p$1;const h=null!==(d=this.ht)&&void 0!==d?d:this.ht=[],m$1=[];let y,x,j=0,k=a.length-1,w=0,A=p$1.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$1[w]=u$1(a[j],p$1[w]),j++,w++;else if(h[k]===v[A])m$1[A]=u$1(a[k],p$1[A]),k--,A--;else if(h[j]===v[A])m$1[A]=u$1(a[j],p$1[A]),r(s$1,m$1[A+1],a[j]),j++,A--;else if(h[k]===v[w])m$1[w]=u$1(a[k],p$1[w]),r(s$1,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=r(s$1,a[j]);u$1(e,p$1[w]),m$1[w]=e;}else m$1[w]=u$1(t,p$1[w]),r(s$1,a[j],t),a[e]=null;w++;}else p(a[k]),k--;else p(a[j]),j++;for(;w<=A;){const e=r(s$1,m$1[A+1]);u$1(e,p$1[w]),m$1[w++]=e;}for(;j<=k;){const e=a[j++];null!==e&&p(e);}return this.ht=v,s(s$1,m$1),shared_tailwindElement_index.T}});
21
21
 
22
+ 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}";
23
+
22
24
  var __defProp = Object.defineProperty;
23
25
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
24
26
  var __decorateClass = (decorators, target, key, kind) => {
@@ -30,11 +32,12 @@ var __decorateClass = (decorators, target, key, kind) => {
30
32
  __defProp(target, key, result);
31
33
  return result;
32
34
  };
33
- exports.LuksoWizard = class LuksoWizard extends shared_tailwindElement_index.TailwindElement {
35
+ exports.LuksoWizard = class LuksoWizard extends shared_tailwindElement_index.TailwindStyledElement(style) {
34
36
  constructor() {
35
37
  super(...arguments);
36
38
  this.steps = [];
37
39
  this.activeStep = 1;
40
+ this.isFullWidth = false;
38
41
  this.activeStepStyles = `[&_.lukso-wizard-circle-inner]:border-2 [&_.lukso-wizard-circle-inner]:border-purple-51`;
39
42
  this.completedStepStyles = `[&>.lukso-wizard-circle]:after:bg-purple-51
40
43
  [&_.lukso-wizard-circle-inner]:bg-gradient-to-t
@@ -43,11 +46,15 @@ exports.LuksoWizard = class LuksoWizard extends shared_tailwindElement_index.Tai
43
46
  }
44
47
  stepTemplate(step, index$1) {
45
48
  return shared_tailwindElement_index.x`<li
46
- class="inline-flex flex-col items-center justify-end w-[121px] first:-ml-12 last:-mr-12 relative
47
- [&>.lukso-wizard-circle]:after:last:hidden ${index.customClassMap({
48
- [this.completedStepStyles]: index$1 + 1 < this.activeStep,
49
- [this.activeStepStyles]: index$1 + 1 === this.activeStep
50
- })}"
49
+ class="inline-flex flex-col items-center justify-end first:-ml-12 last:-mr-12 relative
50
+ [&>.lukso-wizard-circle]:after:last:hidden [&>.lukso-wizard-circle]:before:last:hidden ${index.customClassMap(
51
+ {
52
+ [this.completedStepStyles]: index$1 + 1 < this.activeStep,
53
+ [this.activeStepStyles]: index$1 + 1 === this.activeStep,
54
+ ["w-full"]: this.isFullWidth,
55
+ ["w-[121px]"]: !this.isFullWidth
56
+ }
57
+ )}"
51
58
  >
52
59
  <div
53
60
  class="text-purple-51 nav-apax-8-medium-uppercase whitespace-pre-line flex text-center break-words uppercase"
@@ -57,8 +64,14 @@ exports.LuksoWizard = class LuksoWizard extends shared_tailwindElement_index.Tai
57
64
  <div
58
65
  class="lukso-wizard-circle bg-neutral-90 w-4 h-4 rounded-full shadow-wizard-step mt-2 flex items-center
59
66
  border-[1px] border-solid border-[rgba(255,255,255,0.8)]
60
- after:block after:absolute after:bottom-[7px] after:w-[calc(100%-16px)] after:ml-[15px] after:h-[2px]
61
- after:content:'' after:bg-neutral-90 after:shadow-wizard-line"
67
+ after:block after:absolute after:bottom-[7px] after:ml-[15px] after:h-[2px]
68
+ after:content:'' after:bg-transparent after:transition-width after:duration-300
69
+ before:block before:absolute before:bottom-[7px] before:ml-[15px] before:h-[2px]
70
+ before:content:'' before:bg-neutral-90 before:shadow-wizard-line before:w-[calc(100%-16px)]
71
+ ${index.customClassMap({
72
+ ["completed"]: index$1 + 1 < this.activeStep,
73
+ ["current"]: index$1 === this.activeStep - 2
74
+ })}"
62
75
  >
63
76
  <div
64
77
  class="lukso-wizard-circle-inner rounded-full w-[10px] h-[10px] ml-[2px] ${index.customClassMap(
@@ -81,6 +94,12 @@ exports.LuksoWizard = class LuksoWizard extends shared_tailwindElement_index.Tai
81
94
  </ul>
82
95
  `;
83
96
  }
97
+ updated() {
98
+ setTimeout(() => {
99
+ const currentStep = this.shadowRoot.querySelectorAll(".current");
100
+ currentStep[0]?.classList.add("animated-step");
101
+ }, 10);
102
+ }
84
103
  };
85
104
  __decorateClass([
86
105
  directive.e({ type: Array })
@@ -88,6 +107,9 @@ __decorateClass([
88
107
  __decorateClass([
89
108
  directive.e({ type: Number, attribute: "active-step" })
90
109
  ], exports.LuksoWizard.prototype, "activeStep", 2);
110
+ __decorateClass([
111
+ directive.e({ type: Boolean, attribute: "is-full-width" })
112
+ ], exports.LuksoWizard.prototype, "isFullWidth", 2);
91
113
  exports.LuksoWizard = __decorateClass([
92
114
  directive.e$1("lukso-wizard")
93
115
  ], exports.LuksoWizard);
@@ -1,18 +1,21 @@
1
- import { TailwindElement } from '../../shared/tailwind-element';
2
1
  export type WizardStep = {
3
2
  label: string;
4
3
  };
5
- export declare class LuksoWizard extends TailwindElement {
4
+ declare const LuksoWizard_base: typeof import("lit").LitElement;
5
+ export declare class LuksoWizard extends LuksoWizard_base {
6
6
  steps: WizardStep[];
7
7
  activeStep: number;
8
+ isFullWidth: boolean;
8
9
  private activeStepStyles;
9
10
  private completedStepStyles;
10
11
  stepTemplate(step: WizardStep, index: number): import("lit-html").TemplateResult<1>;
11
12
  render(): import("lit-html").TemplateResult<1>;
13
+ updated(): void;
12
14
  }
13
15
  declare global {
14
16
  interface HTMLElementTagNameMap {
15
17
  'lukso-wizard': LuksoWizard;
16
18
  }
17
19
  }
20
+ export {};
18
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-wizard/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,qBACa,WAAY,SAAQ,eAAe;IAE9C,KAAK,EAAE,UAAU,EAAE,CAAK;IAGxB,UAAU,SAAI;IAEd,OAAO,CAAC,gBAAgB,CAA4F;IAEpH,OAAO,CAAC,mBAAmB,CAGwB;IAEnD,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM;IA8B5C,MAAM;CAWP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-wizard/index.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;;AAED,qBACa,WAAY,SAAQ,gBAA4B;IAE3D,KAAK,EAAE,UAAU,EAAE,CAAK;IAGxB,UAAU,SAAI;IAGd,WAAW,UAAQ;IAEnB,OAAO,CAAC,gBAAgB,CAA4F;IAEpH,OAAO,CAAC,mBAAmB,CAGwB;IAEnD,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM;IAwC5C,MAAM;IAYN,OAAO;CAOR;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
@@ -1,4 +1,4 @@
1
- import { Z, b as T, a as TailwindElement, x } from '../../index-e3189942.js';
1
+ import { Z, b as T, T as TailwindStyledElement, x } from '../../index-3e7edd92.js';
2
2
  import { b as e, i, t, e as e$1, a as e$2 } from '../../directive-9ec64c08.js';
3
3
  import { c as customClassMap } from '../../index-714323c9.js';
4
4
 
@@ -15,6 +15,8 @@ import { c as customClassMap } from '../../index-714323c9.js';
15
15
  */
16
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=e(class extends i{constructor(e){if(super(e),e.type!==t.CHILD)throw Error("repeat() can only be used in text expressions")}dt(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.dt(e,s,t).values}update(s$1,[t,r$1,c]){var d;const a=m(s$1),{values:p$1,keys:v}=this.dt(t,r$1,c);if(!Array.isArray(a))return this.ht=v,p$1;const h=null!==(d=this.ht)&&void 0!==d?d:this.ht=[],m$1=[];let y,x,j=0,k=a.length-1,w=0,A=p$1.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$1[w]=u$1(a[j],p$1[w]),j++,w++;else if(h[k]===v[A])m$1[A]=u$1(a[k],p$1[A]),k--,A--;else if(h[j]===v[A])m$1[A]=u$1(a[j],p$1[A]),r(s$1,m$1[A+1],a[j]),j++,A--;else if(h[k]===v[w])m$1[w]=u$1(a[k],p$1[w]),r(s$1,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=r(s$1,a[j]);u$1(e,p$1[w]),m$1[w]=e;}else m$1[w]=u$1(t,p$1[w]),r(s$1,a[j],t),a[e]=null;w++;}else p(a[k]),k--;else p(a[j]),j++;for(;w<=A;){const e=r(s$1,m$1[A+1]);u$1(e,p$1[w]),m$1[w++]=e;}for(;j<=k;){const e=a[j++];null!==e&&p(e);}return this.ht=v,s(s$1,m$1),T}});
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}";
19
+
18
20
  var __defProp = Object.defineProperty;
19
21
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
20
22
  var __decorateClass = (decorators, target, key, kind) => {
@@ -26,11 +28,12 @@ var __decorateClass = (decorators, target, key, kind) => {
26
28
  __defProp(target, key, result);
27
29
  return result;
28
30
  };
29
- let LuksoWizard = class extends TailwindElement {
31
+ let LuksoWizard = class extends TailwindStyledElement(style) {
30
32
  constructor() {
31
33
  super(...arguments);
32
34
  this.steps = [];
33
35
  this.activeStep = 1;
36
+ this.isFullWidth = false;
34
37
  this.activeStepStyles = `[&_.lukso-wizard-circle-inner]:border-2 [&_.lukso-wizard-circle-inner]:border-purple-51`;
35
38
  this.completedStepStyles = `[&>.lukso-wizard-circle]:after:bg-purple-51
36
39
  [&_.lukso-wizard-circle-inner]:bg-gradient-to-t
@@ -39,11 +42,15 @@ let LuksoWizard = class extends TailwindElement {
39
42
  }
40
43
  stepTemplate(step, index) {
41
44
  return x`<li
42
- class="inline-flex flex-col items-center justify-end w-[121px] first:-ml-12 last:-mr-12 relative
43
- [&>.lukso-wizard-circle]:after:last:hidden ${customClassMap({
44
- [this.completedStepStyles]: index + 1 < this.activeStep,
45
- [this.activeStepStyles]: index + 1 === this.activeStep
46
- })}"
45
+ class="inline-flex flex-col items-center justify-end first:-ml-12 last:-mr-12 relative
46
+ [&>.lukso-wizard-circle]:after:last:hidden [&>.lukso-wizard-circle]:before:last:hidden ${customClassMap(
47
+ {
48
+ [this.completedStepStyles]: index + 1 < this.activeStep,
49
+ [this.activeStepStyles]: index + 1 === this.activeStep,
50
+ ["w-full"]: this.isFullWidth,
51
+ ["w-[121px]"]: !this.isFullWidth
52
+ }
53
+ )}"
47
54
  >
48
55
  <div
49
56
  class="text-purple-51 nav-apax-8-medium-uppercase whitespace-pre-line flex text-center break-words uppercase"
@@ -53,8 +60,14 @@ let LuksoWizard = class extends TailwindElement {
53
60
  <div
54
61
  class="lukso-wizard-circle bg-neutral-90 w-4 h-4 rounded-full shadow-wizard-step mt-2 flex items-center
55
62
  border-[1px] border-solid border-[rgba(255,255,255,0.8)]
56
- after:block after:absolute after:bottom-[7px] after:w-[calc(100%-16px)] after:ml-[15px] after:h-[2px]
57
- after:content:'' after:bg-neutral-90 after:shadow-wizard-line"
63
+ after:block after:absolute after:bottom-[7px] after:ml-[15px] after:h-[2px]
64
+ after:content:'' after:bg-transparent after:transition-width after:duration-300
65
+ before:block before:absolute before:bottom-[7px] before:ml-[15px] before:h-[2px]
66
+ before:content:'' before:bg-neutral-90 before:shadow-wizard-line before:w-[calc(100%-16px)]
67
+ ${customClassMap({
68
+ ["completed"]: index + 1 < this.activeStep,
69
+ ["current"]: index === this.activeStep - 2
70
+ })}"
58
71
  >
59
72
  <div
60
73
  class="lukso-wizard-circle-inner rounded-full w-[10px] h-[10px] ml-[2px] ${customClassMap(
@@ -77,6 +90,12 @@ let LuksoWizard = class extends TailwindElement {
77
90
  </ul>
78
91
  `;
79
92
  }
93
+ updated() {
94
+ setTimeout(() => {
95
+ const currentStep = this.shadowRoot.querySelectorAll(".current");
96
+ currentStep[0]?.classList.add("animated-step");
97
+ }, 10);
98
+ }
80
99
  };
81
100
  __decorateClass([
82
101
  e$1({ type: Array })
@@ -84,6 +103,9 @@ __decorateClass([
84
103
  __decorateClass([
85
104
  e$1({ type: Number, attribute: "active-step" })
86
105
  ], LuksoWizard.prototype, "activeStep", 2);
106
+ __decorateClass([
107
+ e$1({ type: Boolean, attribute: "is-full-width" })
108
+ ], LuksoWizard.prototype, "isFullWidth", 2);
87
109
  LuksoWizard = __decorateClass([
88
110
  e$2("lukso-wizard")
89
111
  ], LuksoWizard);