@lukso/web-components 1.26.0 → 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.
- package/dist/components/index.cjs +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/lukso-button/index.cjs +1 -1
- package/dist/components/lukso-button/index.js +1 -1
- package/dist/components/lukso-card/index.cjs +2 -2
- package/dist/components/lukso-card/index.js +2 -2
- package/dist/components/lukso-icon/index.cjs +2 -2
- package/dist/components/lukso-icon/index.js +2 -2
- package/dist/components/lukso-input/index.cjs +12 -5
- package/dist/components/lukso-input/index.d.ts.map +1 -1
- package/dist/components/lukso-input/index.js +12 -5
- package/dist/components/lukso-modal/index.cjs +1 -1
- package/dist/components/lukso-modal/index.js +1 -1
- package/dist/components/lukso-navbar/index.cjs +1 -1
- package/dist/components/lukso-navbar/index.js +1 -1
- package/dist/components/lukso-profile/index.cjs +2 -2
- package/dist/components/lukso-profile/index.js +2 -2
- package/dist/components/lukso-progress/index.cjs +2 -2
- package/dist/components/lukso-progress/index.js +2 -2
- package/dist/components/lukso-sanitize/index.cjs +1 -1
- package/dist/components/lukso-sanitize/index.js +1 -1
- package/dist/components/lukso-share/index.cjs +1 -1
- package/dist/components/lukso-share/index.js +1 -1
- package/dist/components/lukso-tag/index.cjs +2 -2
- package/dist/components/lukso-tag/index.js +2 -2
- package/dist/components/lukso-terms/index.cjs +2 -2
- package/dist/components/lukso-terms/index.js +2 -2
- package/dist/components/lukso-test/index.cjs +1 -1
- package/dist/components/lukso-test/index.js +1 -1
- package/dist/components/lukso-username/index.cjs +2 -2
- package/dist/components/lukso-username/index.js +2 -2
- package/dist/components/lukso-wizard/index.cjs +6 -5
- package/dist/components/lukso-wizard/index.d.ts +1 -1
- package/dist/components/lukso-wizard/index.d.ts.map +1 -1
- package/dist/components/lukso-wizard/index.js +6 -5
- package/dist/{index-abd9e6cb.cjs → index-53f01760.cjs} +1 -1
- package/dist/{index-77a39149.js → index-b0a06427.js} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{style-map-ed9dd89c.js → style-map-21c35bc6.js} +1 -1
- package/dist/{style-map-65541c2d.cjs → style-map-9b6875c8.cjs} +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
20
|
+
const shared_tailwindElement_index = require('../index-53f01760.cjs');
|
|
21
21
|
require('../directive-db00f5fb.cjs');
|
|
22
22
|
require('../state-a62a7d5d.cjs');
|
|
23
23
|
require('../index-7dc05ee5.cjs');
|
|
24
|
-
require('../style-map-
|
|
24
|
+
require('../style-map-9b6875c8.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
package/dist/components/index.js
CHANGED
|
@@ -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-
|
|
16
|
+
export { a as TailwindElement, T as TailwindStyledElement } from '../index-b0a06427.js';
|
|
17
17
|
import '../directive-9ec64c08.js';
|
|
18
18
|
import '../state-7fde94d1.js';
|
|
19
19
|
import '../index-714323c9.js';
|
|
20
|
-
import '../style-map-
|
|
20
|
+
import '../style-map-21c35bc6.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-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.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 { T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-b0a06427.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-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9b6875c8.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-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-21c35bc6.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-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9b6875c8.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-
|
|
1
|
+
import { x, T as TailwindStyledElement } from '../../index-b0a06427.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-21c35bc6.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-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.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');
|
|
@@ -42,7 +42,7 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
42
42
|
this.min = void 0;
|
|
43
43
|
this.hasHocus = false;
|
|
44
44
|
this.hasHighlight = false;
|
|
45
|
-
this.defaultInputStyles = `bg-neutral-100
|
|
45
|
+
this.defaultInputStyles = `bg-neutral-100 paragraph-inter-14-regular px-4 py-3
|
|
46
46
|
border border-solid h-[48px] placeholder:text-neutral-70
|
|
47
47
|
outline-none transition transition-all duration-150 appearance-none`;
|
|
48
48
|
this.defaultUnitStyles = `paragraph-inter-12-regular text-neutral-60 flex px-3.5 items-center relative
|
|
@@ -77,6 +77,9 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
77
77
|
["w-full"]: this.isFullWidth,
|
|
78
78
|
["w-[350px]"]: !this.isFullWidth && this.unit === "",
|
|
79
79
|
["w-[300px]"]: !this.isFullWidth && this.unit !== "",
|
|
80
|
+
["cursor-not-allowed text-neutral-60"]: this.isDisabled,
|
|
81
|
+
["text-neutral-20"]: !this.isDisabled,
|
|
82
|
+
["cursor-not-allowed"]: this.isReadonly,
|
|
80
83
|
[this.customClass]: !!this.customClass
|
|
81
84
|
})}
|
|
82
85
|
@focus=${this.handleFocus}
|
|
@@ -126,8 +129,10 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
126
129
|
</div>`;
|
|
127
130
|
}
|
|
128
131
|
handleFocus() {
|
|
129
|
-
this.
|
|
130
|
-
|
|
132
|
+
if (!this.isReadonly && !this.isDisabled) {
|
|
133
|
+
this.hasHocus = true;
|
|
134
|
+
this.hasHighlight = true;
|
|
135
|
+
}
|
|
131
136
|
}
|
|
132
137
|
handleBlur(event) {
|
|
133
138
|
this.hasHocus = false;
|
|
@@ -204,7 +209,9 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
204
209
|
this.dispatchEvent(keyEvent);
|
|
205
210
|
}
|
|
206
211
|
handleMouseOver() {
|
|
207
|
-
this.
|
|
212
|
+
if (!this.isReadonly && !this.isDisabled) {
|
|
213
|
+
this.hasHighlight = true;
|
|
214
|
+
}
|
|
208
215
|
}
|
|
209
216
|
handleMouseOut() {
|
|
210
217
|
if (!this.hasHocus) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-input/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,UAAW,SAAQ,eAAe;IAE7C,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,IAAI,SAAS;IAGb,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,YAAY,SAAO;IAGnB,EAAE,SAAK;IAGP,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAY;IAGtC,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,WAAW,SAAK;IAGhB,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,UAAU,UAAQ;IAGlB,SAAS,UAAQ;IAGjB,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,OAAO,CAAC,QAAQ,CAAQ;IAGxB,OAAO,CAAC,YAAY,CAAQ;IAE5B,OAAO,CAAC,kBAAkB,CAE4C;IAEtE,OAAO,CAAC,iBAAiB,CAG0B;IAGnD,aAAa;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-input/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,UAAW,SAAQ,eAAe;IAE7C,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,IAAI,SAAS;IAGb,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,YAAY,SAAO;IAGnB,EAAE,SAAK;IAGP,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAY;IAGtC,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,WAAW,SAAK;IAGhB,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,UAAU,UAAQ;IAGlB,SAAS,UAAQ;IAGjB,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,OAAO,CAAC,QAAQ,CAAQ;IAGxB,OAAO,CAAC,YAAY,CAAQ;IAE5B,OAAO,CAAC,kBAAkB,CAE4C;IAEtE,OAAO,CAAC,iBAAiB,CAG0B;IAGnD,aAAa;IA8Cb,aAAa;IAUb,mBAAmB;IAQnB,aAAa;IAMb,YAAY;IAgBZ,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,UAAU;IAelB,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,cAAc;IAMtB,MAAM;CAYP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAA;KAC1B;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TailwindElement, x, A } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x, A } from '../../index-b0a06427.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';
|
|
@@ -38,7 +38,7 @@ let LuksoInput = class extends TailwindElement {
|
|
|
38
38
|
this.min = void 0;
|
|
39
39
|
this.hasHocus = false;
|
|
40
40
|
this.hasHighlight = false;
|
|
41
|
-
this.defaultInputStyles = `bg-neutral-100
|
|
41
|
+
this.defaultInputStyles = `bg-neutral-100 paragraph-inter-14-regular px-4 py-3
|
|
42
42
|
border border-solid h-[48px] placeholder:text-neutral-70
|
|
43
43
|
outline-none transition transition-all duration-150 appearance-none`;
|
|
44
44
|
this.defaultUnitStyles = `paragraph-inter-12-regular text-neutral-60 flex px-3.5 items-center relative
|
|
@@ -73,6 +73,9 @@ let LuksoInput = class extends TailwindElement {
|
|
|
73
73
|
["w-full"]: this.isFullWidth,
|
|
74
74
|
["w-[350px]"]: !this.isFullWidth && this.unit === "",
|
|
75
75
|
["w-[300px]"]: !this.isFullWidth && this.unit !== "",
|
|
76
|
+
["cursor-not-allowed text-neutral-60"]: this.isDisabled,
|
|
77
|
+
["text-neutral-20"]: !this.isDisabled,
|
|
78
|
+
["cursor-not-allowed"]: this.isReadonly,
|
|
76
79
|
[this.customClass]: !!this.customClass
|
|
77
80
|
})}
|
|
78
81
|
@focus=${this.handleFocus}
|
|
@@ -122,8 +125,10 @@ let LuksoInput = class extends TailwindElement {
|
|
|
122
125
|
</div>`;
|
|
123
126
|
}
|
|
124
127
|
handleFocus() {
|
|
125
|
-
this.
|
|
126
|
-
|
|
128
|
+
if (!this.isReadonly && !this.isDisabled) {
|
|
129
|
+
this.hasHocus = true;
|
|
130
|
+
this.hasHighlight = true;
|
|
131
|
+
}
|
|
127
132
|
}
|
|
128
133
|
handleBlur(event) {
|
|
129
134
|
this.hasHocus = false;
|
|
@@ -200,7 +205,9 @@ let LuksoInput = class extends TailwindElement {
|
|
|
200
205
|
this.dispatchEvent(keyEvent);
|
|
201
206
|
}
|
|
202
207
|
handleMouseOver() {
|
|
203
|
-
this.
|
|
208
|
+
if (!this.isReadonly && !this.isDisabled) {
|
|
209
|
+
this.hasHighlight = true;
|
|
210
|
+
}
|
|
204
211
|
}
|
|
205
212
|
handleMouseOut() {
|
|
206
213
|
if (!this.hasHocus) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const index = require('../../index-7dc05ee5.cjs');
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.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-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-b0a06427.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-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9b6875c8.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-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-21c35bc6.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-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9b6875c8.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-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-21c35bc6.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-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.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-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-b0a06427.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-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9b6875c8.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-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-21c35bc6.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-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.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-
|
|
11
|
+
require('../../style-map-9b6875c8.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-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-b0a06427.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-
|
|
7
|
+
import '../../style-map-21c35bc6.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-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.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-
|
|
1
|
+
import { b as T$1, T as TailwindStyledElement, x as x$2 } from '../../index-b0a06427.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-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9b6875c8.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-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-21c35bc6.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-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const index = require('../../index-7dc05ee5.cjs');
|
|
8
8
|
|
|
@@ -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
|
-
|
|
91
|
-
(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:
|
|
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:
|
|
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,
|
|
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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z, b as T, T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { Z, b as T, T as TailwindStyledElement, x } from '../../index-b0a06427.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
|
|
|
@@ -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
|
-
|
|
87
|
-
(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:
|
|
102
|
+
e$1({ type: String })
|
|
102
103
|
], LuksoWizard.prototype, "steps", 2);
|
|
103
104
|
__decorateClass([
|
|
104
105
|
e$1({ type: Number, attribute: "active-step" })
|