@lukso/web-components 1.26.1 → 1.26.2

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.
@@ -35,7 +35,7 @@ var __decorateClass = (decorators, target, key, kind) => {
35
35
  exports.LuksoWizard = class LuksoWizard extends shared_tailwindElement_index.TailwindStyledElement(style) {
36
36
  constructor() {
37
37
  super(...arguments);
38
- this.steps = [];
38
+ this.steps = "";
39
39
  this.activeStep = 1;
40
40
  this.isFullWidth = false;
41
41
  this.activeStepStyles = `[&_.lukso-wizard-circle-inner]:border-2 [&_.lukso-wizard-circle-inner]:border-purple-51`;
@@ -84,11 +84,12 @@ exports.LuksoWizard = class LuksoWizard extends shared_tailwindElement_index.Tai
84
84
  </li>`;
85
85
  }
86
86
  render() {
87
+ const steps = JSON.parse(this.steps);
87
88
  return shared_tailwindElement_index.x`
88
89
  <ul class="flex justify-center" data-testid="wizard">
89
90
  ${c(
90
- this.steps || [],
91
- (step) => this.steps.indexOf(step),
91
+ steps || [],
92
+ (step) => steps.indexOf(step),
92
93
  (step, index) => this.stepTemplate(step, index)
93
94
  )}
94
95
  </ul>
@@ -102,7 +103,7 @@ exports.LuksoWizard = class LuksoWizard extends shared_tailwindElement_index.Tai
102
103
  }
103
104
  };
104
105
  __decorateClass([
105
- directive.e({ type: Array })
106
+ directive.e({ type: String })
106
107
  ], exports.LuksoWizard.prototype, "steps", 2);
107
108
  __decorateClass([
108
109
  directive.e({ type: Number, attribute: "active-step" })
@@ -3,7 +3,7 @@ export type WizardStep = {
3
3
  };
4
4
  declare const LuksoWizard_base: typeof import("lit").LitElement;
5
5
  export declare class LuksoWizard extends LuksoWizard_base {
6
- steps: WizardStep[];
6
+ steps: string;
7
7
  activeStep: number;
8
8
  isFullWidth: boolean;
9
9
  private activeStepStyles;
@@ -1 +1 @@
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
+ {"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,SAAK;IAGV,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;IAcN,OAAO;CAOR;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
@@ -31,7 +31,7 @@ var __decorateClass = (decorators, target, key, kind) => {
31
31
  let LuksoWizard = class extends TailwindStyledElement(style) {
32
32
  constructor() {
33
33
  super(...arguments);
34
- this.steps = [];
34
+ this.steps = "";
35
35
  this.activeStep = 1;
36
36
  this.isFullWidth = false;
37
37
  this.activeStepStyles = `[&_.lukso-wizard-circle-inner]:border-2 [&_.lukso-wizard-circle-inner]:border-purple-51`;
@@ -80,11 +80,12 @@ let LuksoWizard = class extends TailwindStyledElement(style) {
80
80
  </li>`;
81
81
  }
82
82
  render() {
83
+ const steps = JSON.parse(this.steps);
83
84
  return x`
84
85
  <ul class="flex justify-center" data-testid="wizard">
85
86
  ${c(
86
- this.steps || [],
87
- (step) => this.steps.indexOf(step),
87
+ steps || [],
88
+ (step) => steps.indexOf(step),
88
89
  (step, index) => this.stepTemplate(step, index)
89
90
  )}
90
91
  </ul>
@@ -98,7 +99,7 @@ let LuksoWizard = class extends TailwindStyledElement(style) {
98
99
  }
99
100
  };
100
101
  __decorateClass([
101
- e$1({ type: Array })
102
+ e$1({ type: String })
102
103
  ], LuksoWizard.prototype, "steps", 2);
103
104
  __decorateClass([
104
105
  e$1({ type: Number, attribute: "active-step" })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukso/web-components",
3
- "version": "1.26.1",
3
+ "version": "1.26.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",