@lukso/web-components 1.16.0 → 1.17.1
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 +3 -3
- package/dist/components/lukso-card/index.d.ts.map +1 -1
- package/dist/components/lukso-card/index.js +3 -3
- 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 -2
- package/dist/components/lukso-input/index.d.ts +2 -0
- package/dist/components/lukso-input/index.d.ts.map +1 -1
- package/dist/components/lukso-input/index.js +12 -2
- 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 +51 -6
- package/dist/components/lukso-navbar/index.d.ts +4 -1
- package/dist/components/lukso-navbar/index.d.ts.map +1 -1
- package/dist/components/lukso-navbar/index.js +51 -6
- 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 +9 -12
- package/dist/components/lukso-progress/index.d.ts.map +1 -1
- package/dist/components/lukso-progress/index.js +9 -12
- package/dist/components/lukso-sanitize/index.cjs +1 -1
- package/dist/components/lukso-sanitize/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 +3 -3
- package/dist/components/lukso-wizard/index.js +3 -3
- package/dist/{index-3597c5ae.cjs → index-17cdeaed.cjs} +1 -1
- package/dist/{index-21210d1c.js → index-84bddb70.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-a69052e6.js → style-map-290d218c.js} +1 -1
- package/dist/{style-map-b0a755bb.cjs → style-map-b44b10d1.cjs} +1 -1
- package/package.json +1 -1
|
@@ -16,11 +16,11 @@ const components_luksoTerms_index = require('./lukso-terms/index.cjs');
|
|
|
16
16
|
const components_luksoTest_index = require('./lukso-test/index.cjs');
|
|
17
17
|
const components_luksoUsername_index = require('./lukso-username/index.cjs');
|
|
18
18
|
const components_luksoWizard_index = require('./lukso-wizard/index.cjs');
|
|
19
|
-
const shared_tailwindElement_index = require('../index-
|
|
19
|
+
const shared_tailwindElement_index = require('../index-17cdeaed.cjs');
|
|
20
20
|
require('../directive-db00f5fb.cjs');
|
|
21
21
|
require('../state-a62a7d5d.cjs');
|
|
22
22
|
require('../index-7dc05ee5.cjs');
|
|
23
|
-
require('../style-map-
|
|
23
|
+
require('../style-map-b44b10d1.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
package/dist/components/index.js
CHANGED
|
@@ -12,8 +12,8 @@ export { LuksoTerms } from './lukso-terms/index.js';
|
|
|
12
12
|
export { LuksoTest } from './lukso-test/index.js';
|
|
13
13
|
export { LuksoUsername } from './lukso-username/index.js';
|
|
14
14
|
export { LuksoWizard } from './lukso-wizard/index.js';
|
|
15
|
-
export { a as TailwindElement, T as TailwindStyledElement } from '../index-
|
|
15
|
+
export { a as TailwindElement, T as TailwindStyledElement } from '../index-84bddb70.js';
|
|
16
16
|
import '../directive-9ec64c08.js';
|
|
17
17
|
import '../state-7fde94d1.js';
|
|
18
18
|
import '../index-714323c9.js';
|
|
19
|
-
import '../style-map-
|
|
19
|
+
import '../style-map-290d218c.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-17cdeaed.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, y } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, y } from '../../index-84bddb70.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-17cdeaed.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-b44b10d1.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
require('../lukso-profile/index.cjs');
|
|
10
10
|
|
|
@@ -31,7 +31,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
31
31
|
this.isFixedWidth = false;
|
|
32
32
|
this.isFixedHeight = false;
|
|
33
33
|
this.isFullWidth = false;
|
|
34
|
-
this.defaultStyles = `rounded-24 shadow-
|
|
34
|
+
this.defaultStyles = `rounded-24 shadow-neutral-drop-shadow-2xl`;
|
|
35
35
|
}
|
|
36
36
|
basicTemplate() {
|
|
37
37
|
return shared_tailwindElement_index.y`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAOA,OAAO,4BAA4B,CAAA;AAEnC,oBAAY,YAAY,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,CAAA;;AAE9D,qBACa,SAAU,SAAQ,cAA4B;IAEzD,OAAO,EAAE,YAAY,CAAU;IAG/B,aAAa,SAAK;IAGlB,UAAU,SAAK;IAGf,cAAc,SAAK;IAGnB,YAAY,UAAQ;IAGpB,aAAa,UAAQ;IAGrB,WAAW,UAAQ;IAEnB,OAAO,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAOA,OAAO,4BAA4B,CAAA;AAEnC,oBAAY,YAAY,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,CAAA;;AAE9D,qBACa,SAAU,SAAQ,cAA4B;IAEzD,OAAO,EAAE,YAAY,CAAU;IAG/B,aAAa,SAAK;IAGlB,UAAU,SAAK;IAGf,cAAc,SAAK;IAGnB,YAAY,UAAQ;IAGpB,aAAa,UAAQ;IAGrB,WAAW,UAAQ;IAEnB,OAAO,CAAC,aAAa,CAA+C;IAEpE,aAAa;IAgBb,kBAAkB;IAqBlB,eAAe;IAgDf,MAAM;CAWP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, y } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, y } from '../../index-84bddb70.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { i } from '../../style-map-
|
|
3
|
+
import { i } from '../../style-map-290d218c.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
import '../lukso-profile/index.js';
|
|
6
6
|
|
|
@@ -27,7 +27,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
27
27
|
this.isFixedWidth = false;
|
|
28
28
|
this.isFixedHeight = false;
|
|
29
29
|
this.isFullWidth = false;
|
|
30
|
-
this.defaultStyles = `rounded-24 shadow-
|
|
30
|
+
this.defaultStyles = `rounded-24 shadow-neutral-drop-shadow-2xl`;
|
|
31
31
|
}
|
|
32
32
|
basicTemplate() {
|
|
33
33
|
return y`
|
|
@@ -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-17cdeaed.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-b44b10d1.cjs');
|
|
8
8
|
|
|
9
9
|
const style = ":host {\n display: inline-flex\n}";
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { y, T as TailwindStyledElement } from '../../index-
|
|
1
|
+
import { y, T as TailwindStyledElement } from '../../index-84bddb70.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { i } from '../../style-map-
|
|
3
|
+
import { i } from '../../style-map-290d218c.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-17cdeaed.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');
|
|
@@ -33,8 +33,10 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
33
33
|
this.description = "";
|
|
34
34
|
this.error = "";
|
|
35
35
|
this.unit = "";
|
|
36
|
+
this.customClass = "";
|
|
36
37
|
this.isFullWidth = false;
|
|
37
38
|
this.isReadonly = false;
|
|
39
|
+
this.isDisabled = false;
|
|
38
40
|
this.autofocus = false;
|
|
39
41
|
this.max = void 0;
|
|
40
42
|
this.min = void 0;
|
|
@@ -64,6 +66,7 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
64
66
|
data-testid=${this.name ? `input-${this.name}` : "input"}
|
|
65
67
|
accept=${this.accept}
|
|
66
68
|
?readonly=${this.isReadonly ? true : void 0}
|
|
69
|
+
?disabled=${this.isDisabled ? true : void 0}
|
|
67
70
|
class=${index.customClassMap({
|
|
68
71
|
[this.defaultInputStyles]: true,
|
|
69
72
|
[this.error === "" ? "border-neutral-90" : "border-red-85"]: !this.hasHighlight,
|
|
@@ -72,7 +75,8 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
72
75
|
["rounded-12"]: this.unit === "",
|
|
73
76
|
["w-full"]: this.isFullWidth,
|
|
74
77
|
["w-[350px]"]: !this.isFullWidth && this.unit === "",
|
|
75
|
-
["w-[300px]"]: !this.isFullWidth && this.unit !== ""
|
|
78
|
+
["w-[300px]"]: !this.isFullWidth && this.unit !== "",
|
|
79
|
+
[this.customClass]: !!this.customClass
|
|
76
80
|
})}
|
|
77
81
|
@focus=${this.handleFocus}
|
|
78
82
|
@change=${this.handleChange}
|
|
@@ -242,12 +246,18 @@ __decorateClass([
|
|
|
242
246
|
__decorateClass([
|
|
243
247
|
directive.e({ type: String })
|
|
244
248
|
], exports.LuksoInput.prototype, "unit", 2);
|
|
249
|
+
__decorateClass([
|
|
250
|
+
directive.e({ type: String, attribute: "custom-class" })
|
|
251
|
+
], exports.LuksoInput.prototype, "customClass", 2);
|
|
245
252
|
__decorateClass([
|
|
246
253
|
directive.e({ type: Boolean, attribute: "is-full-width" })
|
|
247
254
|
], exports.LuksoInput.prototype, "isFullWidth", 2);
|
|
248
255
|
__decorateClass([
|
|
249
256
|
directive.e({ type: Boolean, attribute: "is-readonly" })
|
|
250
257
|
], exports.LuksoInput.prototype, "isReadonly", 2);
|
|
258
|
+
__decorateClass([
|
|
259
|
+
directive.e({ type: Boolean, attribute: "is-disabled" })
|
|
260
|
+
], exports.LuksoInput.prototype, "isDisabled", 2);
|
|
251
261
|
__decorateClass([
|
|
252
262
|
directive.e({ type: Boolean })
|
|
253
263
|
], exports.LuksoInput.prototype, "autofocus", 2);
|
|
@@ -12,8 +12,10 @@ export declare class LuksoInput extends TailwindElement {
|
|
|
12
12
|
description: string;
|
|
13
13
|
error: string;
|
|
14
14
|
unit: string;
|
|
15
|
+
customClass: string;
|
|
15
16
|
isFullWidth: boolean;
|
|
16
17
|
isReadonly: boolean;
|
|
18
|
+
isDisabled: boolean;
|
|
17
19
|
autofocus: boolean;
|
|
18
20
|
max: number | undefined;
|
|
19
21
|
min: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["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,MAAY;IAGf,MAAM,MAAY;IAGlB,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,WAAW,UAAQ;IAGnB,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;IAEnD,aAAa;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["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,MAAY;IAGf,MAAM,MAAY;IAGlB,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;IAEnD,aAAa;IA0Cb,aAAa;IAUb,mBAAmB;IAQnB,aAAa;IAMb,YAAY;IAgBZ,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,UAAU;IAelB,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,eAAe;IAIvB,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, y, b } from '../../index-
|
|
1
|
+
import { a as TailwindElement, y, b } from '../../index-84bddb70.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';
|
|
@@ -29,8 +29,10 @@ let LuksoInput = class extends TailwindElement {
|
|
|
29
29
|
this.description = "";
|
|
30
30
|
this.error = "";
|
|
31
31
|
this.unit = "";
|
|
32
|
+
this.customClass = "";
|
|
32
33
|
this.isFullWidth = false;
|
|
33
34
|
this.isReadonly = false;
|
|
35
|
+
this.isDisabled = false;
|
|
34
36
|
this.autofocus = false;
|
|
35
37
|
this.max = void 0;
|
|
36
38
|
this.min = void 0;
|
|
@@ -60,6 +62,7 @@ let LuksoInput = class extends TailwindElement {
|
|
|
60
62
|
data-testid=${this.name ? `input-${this.name}` : "input"}
|
|
61
63
|
accept=${this.accept}
|
|
62
64
|
?readonly=${this.isReadonly ? true : void 0}
|
|
65
|
+
?disabled=${this.isDisabled ? true : void 0}
|
|
63
66
|
class=${customClassMap({
|
|
64
67
|
[this.defaultInputStyles]: true,
|
|
65
68
|
[this.error === "" ? "border-neutral-90" : "border-red-85"]: !this.hasHighlight,
|
|
@@ -68,7 +71,8 @@ let LuksoInput = class extends TailwindElement {
|
|
|
68
71
|
["rounded-12"]: this.unit === "",
|
|
69
72
|
["w-full"]: this.isFullWidth,
|
|
70
73
|
["w-[350px]"]: !this.isFullWidth && this.unit === "",
|
|
71
|
-
["w-[300px]"]: !this.isFullWidth && this.unit !== ""
|
|
74
|
+
["w-[300px]"]: !this.isFullWidth && this.unit !== "",
|
|
75
|
+
[this.customClass]: !!this.customClass
|
|
72
76
|
})}
|
|
73
77
|
@focus=${this.handleFocus}
|
|
74
78
|
@change=${this.handleChange}
|
|
@@ -238,12 +242,18 @@ __decorateClass([
|
|
|
238
242
|
__decorateClass([
|
|
239
243
|
e({ type: String })
|
|
240
244
|
], LuksoInput.prototype, "unit", 2);
|
|
245
|
+
__decorateClass([
|
|
246
|
+
e({ type: String, attribute: "custom-class" })
|
|
247
|
+
], LuksoInput.prototype, "customClass", 2);
|
|
241
248
|
__decorateClass([
|
|
242
249
|
e({ type: Boolean, attribute: "is-full-width" })
|
|
243
250
|
], LuksoInput.prototype, "isFullWidth", 2);
|
|
244
251
|
__decorateClass([
|
|
245
252
|
e({ type: Boolean, attribute: "is-readonly" })
|
|
246
253
|
], LuksoInput.prototype, "isReadonly", 2);
|
|
254
|
+
__decorateClass([
|
|
255
|
+
e({ type: Boolean, attribute: "is-disabled" })
|
|
256
|
+
], LuksoInput.prototype, "isDisabled", 2);
|
|
247
257
|
__decorateClass([
|
|
248
258
|
e({ type: Boolean })
|
|
249
259
|
], LuksoInput.prototype, "autofocus", 2);
|
|
@@ -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-17cdeaed.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const index = require('../../index-7dc05ee5.cjs');
|
|
8
8
|
|
|
@@ -2,8 +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-17cdeaed.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
+
const state = require('../../state-a62a7d5d.cjs');
|
|
7
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
8
9
|
|
|
9
10
|
var __defProp = Object.defineProperty;
|
|
@@ -24,7 +25,7 @@ exports.LuksoNavbar = class LuksoNavbar extends shared_tailwindElement_index.Tai
|
|
|
24
25
|
this.isCenter = false;
|
|
25
26
|
this.isSticky = false;
|
|
26
27
|
this.isTransparent = false;
|
|
27
|
-
this.
|
|
28
|
+
this.isMenuOpen = false;
|
|
28
29
|
this.centerStyles = `justify-center`;
|
|
29
30
|
this.stickyStyles = `sticky top-0 z-[1000]`;
|
|
30
31
|
this.transparentStyles = `!bg-transparent !shadow-none`;
|
|
@@ -36,16 +37,57 @@ exports.LuksoNavbar = class LuksoNavbar extends shared_tailwindElement_index.Tai
|
|
|
36
37
|
});
|
|
37
38
|
this.dispatchEvent(event);
|
|
38
39
|
}
|
|
40
|
+
handleMenuToggle() {
|
|
41
|
+
this.isMenuOpen = !this.isMenuOpen;
|
|
42
|
+
}
|
|
43
|
+
desktopMenuTemplate() {
|
|
44
|
+
return shared_tailwindElement_index.y`<div
|
|
45
|
+
class="w-full items-center justify-end pr-10 no-underline hidden md:flex"
|
|
46
|
+
>
|
|
47
|
+
<slot name="desktop"></slot>
|
|
48
|
+
</div>`;
|
|
49
|
+
}
|
|
50
|
+
mobileMenuTemplate() {
|
|
51
|
+
return shared_tailwindElement_index.y`<div
|
|
52
|
+
class="w-full items-center justify-end pr-6 flex md:hidden"
|
|
53
|
+
>
|
|
54
|
+
<div
|
|
55
|
+
class="flex items-center justify-center w-8 h-8 cursor-pointer"
|
|
56
|
+
@click=${this.handleMenuToggle}
|
|
57
|
+
>
|
|
58
|
+
<div
|
|
59
|
+
class="w-[18px] h-[2px] rounded-4 bg-neutral-20 transition-all
|
|
60
|
+
before:content-[''] before:absolute before:w-[18px] before:h-[2px] before:bg-neutral-20 before:rounded-4 before:transition-all before:-translate-y-[6px]
|
|
61
|
+
after:content-[''] after:absolute after:w-[18px] after:h-[2px] after:bg-neutral-20 after:rounded-4 after:transition-all after:translate-y-[6px]
|
|
62
|
+
${index.customClassMap({
|
|
63
|
+
"!bg-transparent before:rotate-[45deg] before:!-translate-y-[0px] after:-rotate-[45deg] after:!translate-y-[0px]": this.isMenuOpen
|
|
64
|
+
})}
|
|
65
|
+
"
|
|
66
|
+
></div>
|
|
67
|
+
</div>
|
|
68
|
+
<div
|
|
69
|
+
class="fixed top-[78px] left-0 w-full h-full bg-neutral-100 z-[1000] justify-center
|
|
70
|
+
items-center flex md:hidden
|
|
71
|
+
${index.customClassMap({
|
|
72
|
+
"animate-fade-in animation-duration-150": this.isMenuOpen,
|
|
73
|
+
"!hidden": !this.isMenuOpen
|
|
74
|
+
})}"
|
|
75
|
+
@click=${this.handleMenuToggle}
|
|
76
|
+
>
|
|
77
|
+
<slot name="mobile"></slot>
|
|
78
|
+
</div>
|
|
79
|
+
</div>`;
|
|
80
|
+
}
|
|
39
81
|
render() {
|
|
40
82
|
return shared_tailwindElement_index.y`
|
|
41
83
|
<nav
|
|
42
84
|
data-testid="navbar"
|
|
43
|
-
class
|
|
44
|
-
|
|
85
|
+
class="bg-neutral-100 shadow-pink-drop-shadow h-78 flex
|
|
86
|
+
${index.customClassMap({
|
|
45
87
|
[this.centerStyles]: this.isCenter,
|
|
46
88
|
[this.stickyStyles]: this.isSticky,
|
|
47
89
|
[this.transparentStyles]: this.isTransparent
|
|
48
|
-
})}
|
|
90
|
+
})}"
|
|
49
91
|
>
|
|
50
92
|
<div
|
|
51
93
|
class="flex items-center px-7 h-full cursor-pointer sm:px-10"
|
|
@@ -59,7 +101,7 @@ exports.LuksoNavbar = class LuksoNavbar extends shared_tailwindElement_index.Tai
|
|
|
59
101
|
<span>${this.title}</span>
|
|
60
102
|
</div>
|
|
61
103
|
</div>
|
|
62
|
-
|
|
104
|
+
${this.desktopMenuTemplate()} ${this.mobileMenuTemplate()}
|
|
63
105
|
</nav>
|
|
64
106
|
`;
|
|
65
107
|
}
|
|
@@ -76,6 +118,9 @@ __decorateClass([
|
|
|
76
118
|
__decorateClass([
|
|
77
119
|
directive.e({ type: Boolean, attribute: "is-transparent" })
|
|
78
120
|
], exports.LuksoNavbar.prototype, "isTransparent", 2);
|
|
121
|
+
__decorateClass([
|
|
122
|
+
state.t()
|
|
123
|
+
], exports.LuksoNavbar.prototype, "isMenuOpen", 2);
|
|
79
124
|
exports.LuksoNavbar = __decorateClass([
|
|
80
125
|
directive.e$1("lukso-navbar")
|
|
81
126
|
], exports.LuksoNavbar);
|
|
@@ -4,11 +4,14 @@ export declare class LuksoNavbar extends TailwindElement {
|
|
|
4
4
|
isCenter: boolean;
|
|
5
5
|
isSticky: boolean;
|
|
6
6
|
isTransparent: boolean;
|
|
7
|
-
private
|
|
7
|
+
private isMenuOpen;
|
|
8
8
|
private centerStyles;
|
|
9
9
|
private stickyStyles;
|
|
10
10
|
private transparentStyles;
|
|
11
11
|
private handleBrandClick;
|
|
12
|
+
private handleMenuToggle;
|
|
13
|
+
desktopMenuTemplate(): import("lit").TemplateResult<1>;
|
|
14
|
+
mobileMenuTemplate(): import("lit").TemplateResult<1>;
|
|
12
15
|
render(): import("lit").TemplateResult<1>;
|
|
13
16
|
}
|
|
14
17
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,WAAY,SAAQ,eAAe;IAE9C,KAAK,SAAK;IAGV,QAAQ,UAAQ;IAGhB,QAAQ,UAAQ;IAGhB,aAAa,UAAQ;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,WAAY,SAAQ,eAAe;IAE9C,KAAK,SAAK;IAGV,QAAQ,UAAQ;IAGhB,QAAQ,UAAQ;IAGhB,aAAa,UAAQ;IAGrB,OAAO,CAAC,UAAU,CAAQ;IAE1B,OAAO,CAAC,YAAY,CAAmB;IAEvC,OAAO,CAAC,YAAY,CAA0B;IAE9C,OAAO,CAAC,iBAAiB,CAAiC;IAE1D,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,gBAAgB;IAIxB,mBAAmB;IAQnB,kBAAkB;IAiClB,MAAM;CA2BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, y } from '../../index-
|
|
1
|
+
import { a as TailwindElement, y } from '../../index-84bddb70.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
+
import { t } from '../../state-7fde94d1.js';
|
|
3
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
4
5
|
|
|
5
6
|
var __defProp = Object.defineProperty;
|
|
@@ -20,7 +21,7 @@ let LuksoNavbar = class extends TailwindElement {
|
|
|
20
21
|
this.isCenter = false;
|
|
21
22
|
this.isSticky = false;
|
|
22
23
|
this.isTransparent = false;
|
|
23
|
-
this.
|
|
24
|
+
this.isMenuOpen = false;
|
|
24
25
|
this.centerStyles = `justify-center`;
|
|
25
26
|
this.stickyStyles = `sticky top-0 z-[1000]`;
|
|
26
27
|
this.transparentStyles = `!bg-transparent !shadow-none`;
|
|
@@ -32,16 +33,57 @@ let LuksoNavbar = class extends TailwindElement {
|
|
|
32
33
|
});
|
|
33
34
|
this.dispatchEvent(event);
|
|
34
35
|
}
|
|
36
|
+
handleMenuToggle() {
|
|
37
|
+
this.isMenuOpen = !this.isMenuOpen;
|
|
38
|
+
}
|
|
39
|
+
desktopMenuTemplate() {
|
|
40
|
+
return y`<div
|
|
41
|
+
class="w-full items-center justify-end pr-10 no-underline hidden md:flex"
|
|
42
|
+
>
|
|
43
|
+
<slot name="desktop"></slot>
|
|
44
|
+
</div>`;
|
|
45
|
+
}
|
|
46
|
+
mobileMenuTemplate() {
|
|
47
|
+
return y`<div
|
|
48
|
+
class="w-full items-center justify-end pr-6 flex md:hidden"
|
|
49
|
+
>
|
|
50
|
+
<div
|
|
51
|
+
class="flex items-center justify-center w-8 h-8 cursor-pointer"
|
|
52
|
+
@click=${this.handleMenuToggle}
|
|
53
|
+
>
|
|
54
|
+
<div
|
|
55
|
+
class="w-[18px] h-[2px] rounded-4 bg-neutral-20 transition-all
|
|
56
|
+
before:content-[''] before:absolute before:w-[18px] before:h-[2px] before:bg-neutral-20 before:rounded-4 before:transition-all before:-translate-y-[6px]
|
|
57
|
+
after:content-[''] after:absolute after:w-[18px] after:h-[2px] after:bg-neutral-20 after:rounded-4 after:transition-all after:translate-y-[6px]
|
|
58
|
+
${customClassMap({
|
|
59
|
+
"!bg-transparent before:rotate-[45deg] before:!-translate-y-[0px] after:-rotate-[45deg] after:!translate-y-[0px]": this.isMenuOpen
|
|
60
|
+
})}
|
|
61
|
+
"
|
|
62
|
+
></div>
|
|
63
|
+
</div>
|
|
64
|
+
<div
|
|
65
|
+
class="fixed top-[78px] left-0 w-full h-full bg-neutral-100 z-[1000] justify-center
|
|
66
|
+
items-center flex md:hidden
|
|
67
|
+
${customClassMap({
|
|
68
|
+
"animate-fade-in animation-duration-150": this.isMenuOpen,
|
|
69
|
+
"!hidden": !this.isMenuOpen
|
|
70
|
+
})}"
|
|
71
|
+
@click=${this.handleMenuToggle}
|
|
72
|
+
>
|
|
73
|
+
<slot name="mobile"></slot>
|
|
74
|
+
</div>
|
|
75
|
+
</div>`;
|
|
76
|
+
}
|
|
35
77
|
render() {
|
|
36
78
|
return y`
|
|
37
79
|
<nav
|
|
38
80
|
data-testid="navbar"
|
|
39
|
-
class
|
|
40
|
-
|
|
81
|
+
class="bg-neutral-100 shadow-pink-drop-shadow h-78 flex
|
|
82
|
+
${customClassMap({
|
|
41
83
|
[this.centerStyles]: this.isCenter,
|
|
42
84
|
[this.stickyStyles]: this.isSticky,
|
|
43
85
|
[this.transparentStyles]: this.isTransparent
|
|
44
|
-
})}
|
|
86
|
+
})}"
|
|
45
87
|
>
|
|
46
88
|
<div
|
|
47
89
|
class="flex items-center px-7 h-full cursor-pointer sm:px-10"
|
|
@@ -55,7 +97,7 @@ let LuksoNavbar = class extends TailwindElement {
|
|
|
55
97
|
<span>${this.title}</span>
|
|
56
98
|
</div>
|
|
57
99
|
</div>
|
|
58
|
-
|
|
100
|
+
${this.desktopMenuTemplate()} ${this.mobileMenuTemplate()}
|
|
59
101
|
</nav>
|
|
60
102
|
`;
|
|
61
103
|
}
|
|
@@ -72,6 +114,9 @@ __decorateClass([
|
|
|
72
114
|
__decorateClass([
|
|
73
115
|
e({ type: Boolean, attribute: "is-transparent" })
|
|
74
116
|
], LuksoNavbar.prototype, "isTransparent", 2);
|
|
117
|
+
__decorateClass([
|
|
118
|
+
t()
|
|
119
|
+
], LuksoNavbar.prototype, "isMenuOpen", 2);
|
|
75
120
|
LuksoNavbar = __decorateClass([
|
|
76
121
|
e$1("lukso-navbar")
|
|
77
122
|
], LuksoNavbar);
|
|
@@ -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-17cdeaed.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-b44b10d1.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, y } from '../../index-
|
|
1
|
+
import { a as TailwindElement, y } from '../../index-84bddb70.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { i } from '../../style-map-
|
|
3
|
+
import { i } from '../../style-map-290d218c.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-17cdeaed.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-b44b10d1.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
@@ -27,11 +27,7 @@ exports.LuksoProgress = class LuksoProgress extends shared_tailwindElement_index
|
|
|
27
27
|
this.variant = "success";
|
|
28
28
|
}
|
|
29
29
|
progressWidth() {
|
|
30
|
-
|
|
31
|
-
if (width <= 1) {
|
|
32
|
-
return 1;
|
|
33
|
-
}
|
|
34
|
-
return width;
|
|
30
|
+
return this.current / this.max * 100;
|
|
35
31
|
}
|
|
36
32
|
render() {
|
|
37
33
|
return shared_tailwindElement_index.y`
|
|
@@ -40,11 +36,12 @@ exports.LuksoProgress = class LuksoProgress extends shared_tailwindElement_index
|
|
|
40
36
|
class='w-full h-[12px] shadow-neutral-inner-shadow rounded-24 bg-neutral-95'
|
|
41
37
|
>
|
|
42
38
|
<div
|
|
43
|
-
class
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
class="h-[12px] rounded-s-24 rounded-e-16 border border-solid transition-all w-[1%] ${index.customClassMap(
|
|
40
|
+
{
|
|
41
|
+
"bg-green-85 border-green-54": !!this.variant || this.variant === "success",
|
|
42
|
+
"bg-red-85 border-red-65": this.variant === "error"
|
|
43
|
+
}
|
|
44
|
+
)}"
|
|
48
45
|
style=${styleMap.i({
|
|
49
46
|
width: `${this.progressWidth()}%`
|
|
50
47
|
})}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,oBAAY,eAAe,GAAG,SAAS,GAAG,OAAO,CAAA;AAEjD,qBACa,aAAc,SAAQ,eAAe;IAEhD,GAAG,SAAI;IAGP,GAAG,SAAM;IAGT,OAAO,SAAI;IAGX,OAAO,EAAE,eAAe,CAAY;IAEpC,OAAO,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,oBAAY,eAAe,GAAG,SAAS,GAAG,OAAO,CAAA;AAEjD,qBACa,aAAc,SAAQ,eAAe;IAEhD,GAAG,SAAI;IAGP,GAAG,SAAM;IAGT,OAAO,SAAI;IAGX,OAAO,EAAE,eAAe,CAAY;IAEpC,OAAO,CAAC,aAAa;IAIrB,MAAM;CAuBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, y } from '../../index-
|
|
1
|
+
import { a as TailwindElement, y } from '../../index-84bddb70.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { i } from '../../style-map-
|
|
3
|
+
import { i } from '../../style-map-290d218c.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -23,11 +23,7 @@ let LuksoProgress = class extends TailwindElement {
|
|
|
23
23
|
this.variant = "success";
|
|
24
24
|
}
|
|
25
25
|
progressWidth() {
|
|
26
|
-
|
|
27
|
-
if (width <= 1) {
|
|
28
|
-
return 1;
|
|
29
|
-
}
|
|
30
|
-
return width;
|
|
26
|
+
return this.current / this.max * 100;
|
|
31
27
|
}
|
|
32
28
|
render() {
|
|
33
29
|
return y`
|
|
@@ -36,11 +32,12 @@ let LuksoProgress = class extends TailwindElement {
|
|
|
36
32
|
class='w-full h-[12px] shadow-neutral-inner-shadow rounded-24 bg-neutral-95'
|
|
37
33
|
>
|
|
38
34
|
<div
|
|
39
|
-
class
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
class="h-[12px] rounded-s-24 rounded-e-16 border border-solid transition-all w-[1%] ${customClassMap(
|
|
36
|
+
{
|
|
37
|
+
"bg-green-85 border-green-54": !!this.variant || this.variant === "success",
|
|
38
|
+
"bg-red-85 border-red-65": this.variant === "error"
|
|
39
|
+
}
|
|
40
|
+
)}"
|
|
44
41
|
style=${i({
|
|
45
42
|
width: `${this.progressWidth()}%`
|
|
46
43
|
})}
|
|
@@ -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-17cdeaed.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -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-17cdeaed.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-b44b10d1.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, y } from '../../index-
|
|
1
|
+
import { a as TailwindElement, y } from '../../index-84bddb70.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { i } from '../../style-map-
|
|
3
|
+
import { i } from '../../style-map-290d218c.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|