@lukso/web-components 1.22.2 → 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 (47) 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 +4 -4
  6. package/dist/components/lukso-card/index.js +4 -4
  7. package/dist/components/lukso-icon/icons/switched.d.ts +3 -0
  8. package/dist/components/lukso-icon/icons/switched.d.ts.map +1 -0
  9. package/dist/components/lukso-icon/index.cjs +47 -3
  10. package/dist/components/lukso-icon/index.d.ts.map +1 -1
  11. package/dist/components/lukso-icon/index.js +47 -3
  12. package/dist/components/lukso-input/index.cjs +1 -1
  13. package/dist/components/lukso-input/index.js +1 -1
  14. package/dist/components/lukso-modal/index.cjs +1 -1
  15. package/dist/components/lukso-modal/index.js +1 -1
  16. package/dist/components/lukso-navbar/index.cjs +1 -1
  17. package/dist/components/lukso-navbar/index.js +1 -1
  18. package/dist/components/lukso-profile/index.cjs +2 -2
  19. package/dist/components/lukso-profile/index.js +2 -2
  20. package/dist/components/lukso-progress/index.cjs +2 -2
  21. package/dist/components/lukso-progress/index.js +2 -2
  22. package/dist/components/lukso-sanitize/index.cjs +1 -1
  23. package/dist/components/lukso-sanitize/index.js +1 -1
  24. package/dist/components/lukso-share/index.cjs +1 -1
  25. package/dist/components/lukso-share/index.js +1 -1
  26. package/dist/components/lukso-tag/index.cjs +2 -2
  27. package/dist/components/lukso-tag/index.js +2 -2
  28. package/dist/components/lukso-terms/index.cjs +2 -2
  29. package/dist/components/lukso-terms/index.js +2 -2
  30. package/dist/components/lukso-test/index.cjs +1 -1
  31. package/dist/components/lukso-test/index.js +1 -1
  32. package/dist/components/lukso-username/index.cjs +2 -2
  33. package/dist/components/lukso-username/index.js +2 -2
  34. package/dist/components/lukso-wizard/index.cjs +31 -9
  35. package/dist/components/lukso-wizard/index.d.ts +5 -2
  36. package/dist/components/lukso-wizard/index.d.ts.map +1 -1
  37. package/dist/components/lukso-wizard/index.js +31 -9
  38. package/dist/{index-e3189942.js → index-3e7edd92.js} +1 -1
  39. package/dist/{index-2ead6ca2.cjs → index-f0ca98d2.cjs} +1 -1
  40. package/dist/index.cjs +2 -2
  41. package/dist/index.js +2 -2
  42. package/dist/shared/tailwind-element/index.cjs +1 -1
  43. package/dist/shared/tailwind-element/index.js +1 -1
  44. package/dist/{style-map-3dc9363d.cjs → style-map-4458ae5f.cjs} +1 -1
  45. package/dist/{style-map-e2dd0466.js → style-map-928073dd.js} +1 -1
  46. package/package.json +1 -1
  47. 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
 
@@ -54,7 +54,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
54
54
  return shared_tailwindElement_index.x`
55
55
  <div
56
56
  data-testid="card"
57
- class="bg-neutral-98 grid grid-rows-[auto,1fr] ${index.customClassMap({
57
+ class="bg-neutral-100 grid grid-rows-[auto,1fr] ${index.customClassMap({
58
58
  [this.defaultStyles]: !this.customClass,
59
59
  [this.customClass]: !!this.customClass,
60
60
  ["w-[362px]"]: this.isFixedWidth,
@@ -75,7 +75,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
75
75
  return shared_tailwindElement_index.x`
76
76
  <div
77
77
  data-testid="card"
78
- class="bg-neutral-98 grid grid-rows-[auto,1fr] ${index.customClassMap({
78
+ class="bg-neutral-100 grid grid-rows-[auto,1fr] ${index.customClassMap({
79
79
  [this.defaultStyles]: !this.customClass,
80
80
  [this.customClass]: !!this.customClass,
81
81
  ["w-[362px]"]: this.isFixedWidth,
@@ -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
 
@@ -50,7 +50,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
50
50
  return x`
51
51
  <div
52
52
  data-testid="card"
53
- class="bg-neutral-98 grid grid-rows-[auto,1fr] ${customClassMap({
53
+ class="bg-neutral-100 grid grid-rows-[auto,1fr] ${customClassMap({
54
54
  [this.defaultStyles]: !this.customClass,
55
55
  [this.customClass]: !!this.customClass,
56
56
  ["w-[362px]"]: this.isFixedWidth,
@@ -71,7 +71,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
71
71
  return x`
72
72
  <div
73
73
  data-testid="card"
74
- class="bg-neutral-98 grid grid-rows-[auto,1fr] ${customClassMap({
74
+ class="bg-neutral-100 grid grid-rows-[auto,1fr] ${customClassMap({
75
75
  [this.defaultStyles]: !this.customClass,
76
76
  [this.customClass]: !!this.customClass,
77
77
  ["w-[362px]"]: this.isFixedWidth,
@@ -0,0 +1,3 @@
1
+ import { IconOptions } from '../../../components/lukso-icon/index.js';
2
+ export declare const switched: (options: IconOptions) => import("lit-html").TemplateResult<1>;
3
+ //# sourceMappingURL=switched.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switched.d.ts","sourceRoot":"","sources":["../../../../../../src/components/lukso-icon/icons/switched.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,eAAO,MAAM,QAAQ,YAAa,WAAW,yCAyC5C,CAAA"}
@@ -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
 
@@ -4424,6 +4424,49 @@ const desktopSharp = (options) => {
4424
4424
  </svg> `;
4425
4425
  };
4426
4426
 
4427
+ const switched = (options) => {
4428
+ return shared_tailwindElement_index.x`<svg
4429
+ width="24"
4430
+ height="24"
4431
+ viewBox="0 0 24 24"
4432
+ fill="none"
4433
+ xmlns="http://www.w3.org/2000/svg"
4434
+ style=${styleMap.o({
4435
+ width: `${options.width}px`,
4436
+ height: `${options.height}px`
4437
+ })}
4438
+ >
4439
+ <path
4440
+ d="M7.82847 15.1716C6.53981 16.4603 5 18 5 18L7.82843 20.8284"
4441
+ stroke="var(--${options.color})"
4442
+ stroke-width="${options.strokeWidth}"
4443
+ stroke-linecap="round"
4444
+ stroke-linejoin="round"
4445
+ />
4446
+ <path
4447
+ d="M16.1715 8.82838C17.4602 7.53972 19 6 19 6L16.1716 3.17157"
4448
+ stroke="var(--${options.color})"
4449
+ stroke-width="${options.strokeWidth}"
4450
+ stroke-linecap="round"
4451
+ stroke-linejoin="round"
4452
+ />
4453
+ <path
4454
+ d="M12.1176 12H16C17.6569 12 19 13.3431 19 15V15C19 16.6569 17.6569 18 16 18H6"
4455
+ stroke="var(--${options.color})"
4456
+ stroke-width="${options.strokeWidth}"
4457
+ stroke-linecap="round"
4458
+ stroke-linejoin="round"
4459
+ />
4460
+ <path
4461
+ d="M18 6H9C7.34315 6 6 7.34315 6 9V9C6 10.6569 7.34315 12 9 12H13"
4462
+ stroke="var(--${options.color})"
4463
+ stroke-width="${options.strokeWidth}"
4464
+ stroke-linecap="round"
4465
+ stroke-linejoin="round"
4466
+ />
4467
+ </svg> `;
4468
+ };
4469
+
4427
4470
  var __defProp = Object.defineProperty;
4428
4471
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4429
4472
  var __decorateClass = (decorators, target, key, kind) => {
@@ -4552,7 +4595,8 @@ const iconMap = {
4552
4595
  "pulse-dot": pulseDot,
4553
4596
  "progress-complete": progressComplete,
4554
4597
  "complete-filled-fade-in": completeFilledFadeIn,
4555
- "desktop-sharp": desktopSharp
4598
+ "desktop-sharp": desktopSharp,
4599
+ switched
4556
4600
  };
4557
4601
  exports.LuksoIcon = class LuksoIcon extends shared_tailwindElement_index.TailwindStyledElement(style) {
4558
4602
  constructor() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-icon/index.ts"],"names":[],"mappings":"AA2HA,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;;AAgI5E,qBACa,SAAU,SAAQ,cAA4B;IAEzD,IAAI,SAAK;IAGT,IAAI,SAAW;IAGf,KAAK,SAAe;IAGpB,cAAc,SAAK;IAEnB,OAAO,CAAC,KAAK,CA0BZ;IAED,MAAM;CAuBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-icon/index.ts"],"names":[],"mappings":"AA4HA,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;;AAiI5E,qBACa,SAAU,SAAQ,cAA4B;IAEzD,IAAI,SAAK;IAGT,IAAI,SAAW;IAGf,KAAK,SAAe;IAGpB,cAAc,SAAK;IAEnB,OAAO,CAAC,KAAK,CA0BZ;IAED,MAAM;CAuBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
@@ -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
 
@@ -4420,6 +4420,49 @@ const desktopSharp = (options) => {
4420
4420
  </svg> `;
4421
4421
  };
4422
4422
 
4423
+ const switched = (options) => {
4424
+ return x`<svg
4425
+ width="24"
4426
+ height="24"
4427
+ viewBox="0 0 24 24"
4428
+ fill="none"
4429
+ xmlns="http://www.w3.org/2000/svg"
4430
+ style=${o({
4431
+ width: `${options.width}px`,
4432
+ height: `${options.height}px`
4433
+ })}
4434
+ >
4435
+ <path
4436
+ d="M7.82847 15.1716C6.53981 16.4603 5 18 5 18L7.82843 20.8284"
4437
+ stroke="var(--${options.color})"
4438
+ stroke-width="${options.strokeWidth}"
4439
+ stroke-linecap="round"
4440
+ stroke-linejoin="round"
4441
+ />
4442
+ <path
4443
+ d="M16.1715 8.82838C17.4602 7.53972 19 6 19 6L16.1716 3.17157"
4444
+ stroke="var(--${options.color})"
4445
+ stroke-width="${options.strokeWidth}"
4446
+ stroke-linecap="round"
4447
+ stroke-linejoin="round"
4448
+ />
4449
+ <path
4450
+ d="M12.1176 12H16C17.6569 12 19 13.3431 19 15V15C19 16.6569 17.6569 18 16 18H6"
4451
+ stroke="var(--${options.color})"
4452
+ stroke-width="${options.strokeWidth}"
4453
+ stroke-linecap="round"
4454
+ stroke-linejoin="round"
4455
+ />
4456
+ <path
4457
+ d="M18 6H9C7.34315 6 6 7.34315 6 9V9C6 10.6569 7.34315 12 9 12H13"
4458
+ stroke="var(--${options.color})"
4459
+ stroke-width="${options.strokeWidth}"
4460
+ stroke-linecap="round"
4461
+ stroke-linejoin="round"
4462
+ />
4463
+ </svg> `;
4464
+ };
4465
+
4423
4466
  var __defProp = Object.defineProperty;
4424
4467
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4425
4468
  var __decorateClass = (decorators, target, key, kind) => {
@@ -4548,7 +4591,8 @@ const iconMap = {
4548
4591
  "pulse-dot": pulseDot,
4549
4592
  "progress-complete": progressComplete,
4550
4593
  "complete-filled-fade-in": completeFilledFadeIn,
4551
- "desktop-sharp": desktopSharp
4594
+ "desktop-sharp": desktopSharp,
4595
+ switched
4552
4596
  };
4553
4597
  let LuksoIcon = class extends TailwindStyledElement(style) {
4554
4598
  constructor() {
@@ -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"}