@lukso/web-components 1.16.0 → 1.17.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 (42) 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 +1 -1
  4. package/dist/components/lukso-button/index.js +1 -1
  5. package/dist/components/lukso-card/index.cjs +2 -2
  6. package/dist/components/lukso-card/index.js +2 -2
  7. package/dist/components/lukso-icon/index.cjs +2 -2
  8. package/dist/components/lukso-icon/index.js +2 -2
  9. package/dist/components/lukso-input/index.cjs +1 -1
  10. package/dist/components/lukso-input/index.js +1 -1
  11. package/dist/components/lukso-modal/index.cjs +1 -1
  12. package/dist/components/lukso-modal/index.js +1 -1
  13. package/dist/components/lukso-navbar/index.cjs +51 -6
  14. package/dist/components/lukso-navbar/index.d.ts +4 -1
  15. package/dist/components/lukso-navbar/index.d.ts.map +1 -1
  16. package/dist/components/lukso-navbar/index.js +51 -6
  17. package/dist/components/lukso-profile/index.cjs +2 -2
  18. package/dist/components/lukso-profile/index.js +2 -2
  19. package/dist/components/lukso-progress/index.cjs +9 -12
  20. package/dist/components/lukso-progress/index.d.ts.map +1 -1
  21. package/dist/components/lukso-progress/index.js +9 -12
  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-tag/index.cjs +2 -2
  25. package/dist/components/lukso-tag/index.js +2 -2
  26. package/dist/components/lukso-terms/index.cjs +2 -2
  27. package/dist/components/lukso-terms/index.js +2 -2
  28. package/dist/components/lukso-test/index.cjs +1 -1
  29. package/dist/components/lukso-test/index.js +1 -1
  30. package/dist/components/lukso-username/index.cjs +2 -2
  31. package/dist/components/lukso-username/index.js +2 -2
  32. package/dist/components/lukso-wizard/index.cjs +1 -1
  33. package/dist/components/lukso-wizard/index.js +1 -1
  34. package/dist/{index-3597c5ae.cjs → index-0f13d58e.cjs} +1 -1
  35. package/dist/{index-21210d1c.js → index-7a686142.js} +1 -1
  36. package/dist/index.cjs +2 -2
  37. package/dist/index.js +2 -2
  38. package/dist/shared/tailwind-element/index.cjs +1 -1
  39. package/dist/shared/tailwind-element/index.js +1 -1
  40. package/dist/{style-map-b0a755bb.cjs → style-map-0d95bd3c.cjs} +1 -1
  41. package/dist/{style-map-a69052e6.js → style-map-9d612f4e.js} +1 -1
  42. 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-3597c5ae.cjs');
19
+ const shared_tailwindElement_index = require('../index-0f13d58e.cjs');
20
20
  require('../directive-db00f5fb.cjs');
21
21
  require('../state-a62a7d5d.cjs');
22
22
  require('../index-7dc05ee5.cjs');
23
- require('../style-map-b0a755bb.cjs');
23
+ require('../style-map-0d95bd3c.cjs');
24
24
 
25
25
 
26
26
 
@@ -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-21210d1c.js';
15
+ export { a as TailwindElement, T as TailwindStyledElement } from '../index-7a686142.js';
16
16
  import '../directive-9ec64c08.js';
17
17
  import '../state-7fde94d1.js';
18
18
  import '../index-714323c9.js';
19
- import '../style-map-a69052e6.js';
19
+ import '../style-map-9d612f4e.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-3597c5ae.cjs');
5
+ const shared_tailwindElement_index = require('../../index-0f13d58e.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-21210d1c.js';
1
+ import { T as TailwindStyledElement, y } from '../../index-7a686142.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-3597c5ae.cjs');
5
+ const shared_tailwindElement_index = require('../../index-0f13d58e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-b0a755bb.cjs');
7
+ const styleMap = require('../../style-map-0d95bd3c.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, y } from '../../index-21210d1c.js';
1
+ import { T as TailwindStyledElement, y } from '../../index-7a686142.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-a69052e6.js';
3
+ import { i } from '../../style-map-9d612f4e.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-3597c5ae.cjs');
5
+ const shared_tailwindElement_index = require('../../index-0f13d58e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-b0a755bb.cjs');
7
+ const styleMap = require('../../style-map-0d95bd3c.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-21210d1c.js';
1
+ import { y, T as TailwindStyledElement } from '../../index-7a686142.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-a69052e6.js';
3
+ import { i } from '../../style-map-9d612f4e.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-3597c5ae.cjs');
5
+ const shared_tailwindElement_index = require('../../index-0f13d58e.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, y, b } from '../../index-21210d1c.js';
1
+ import { a as TailwindElement, y, b } from '../../index-7a686142.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-3597c5ae.cjs');
5
+ const shared_tailwindElement_index = require('../../index-0f13d58e.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, y } from '../../index-21210d1c.js';
1
+ import { a as TailwindElement, y } from '../../index-7a686142.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,8 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-3597c5ae.cjs');
5
+ const shared_tailwindElement_index = require('../../index-0f13d58e.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.defaultStyles = `bg-neutral-100 shadow-pink-drop-shadow h-78 flex`;
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=${index.customClassMap({
44
- [this.defaultStyles]: true,
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
- <slot></slot>
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 defaultStyles;
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;IAErB,OAAO,CAAC,aAAa,CAAqD;IAE1E,OAAO,CAAC,YAAY,CAAmB;IAEvC,OAAO,CAAC,YAAY,CAA0B;IAE9C,OAAO,CAAC,iBAAiB,CAAiC;IAE1D,OAAO,CAAC,gBAAgB;IAQxB,MAAM;CA2BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
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-21210d1c.js';
1
+ import { a as TailwindElement, y } from '../../index-7a686142.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.defaultStyles = `bg-neutral-100 shadow-pink-drop-shadow h-78 flex`;
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=${customClassMap({
40
- [this.defaultStyles]: true,
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
- <slot></slot>
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-3597c5ae.cjs');
5
+ const shared_tailwindElement_index = require('../../index-0f13d58e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-b0a755bb.cjs');
7
+ const styleMap = require('../../style-map-0d95bd3c.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-21210d1c.js';
1
+ import { a as TailwindElement, y } from '../../index-7a686142.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-a69052e6.js';
3
+ import { i } from '../../style-map-9d612f4e.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-3597c5ae.cjs');
5
+ const shared_tailwindElement_index = require('../../index-0f13d58e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-b0a755bb.cjs');
7
+ const styleMap = require('../../style-map-0d95bd3c.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
- const width = this.current / this.max * 100;
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=${index.customClassMap({
44
- "h-[12px] rounded-s-24 rounded-e-16 border border-solid": true,
45
- "bg-green-85 border-green-54": !!this.variant || this.variant === "success",
46
- "bg-red-85 border-red-65": this.variant === "error"
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;IAWrB,MAAM;CAsBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}
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-21210d1c.js';
1
+ import { a as TailwindElement, y } from '../../index-7a686142.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-a69052e6.js';
3
+ import { i } from '../../style-map-9d612f4e.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
- const width = this.current / this.max * 100;
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=${customClassMap({
40
- "h-[12px] rounded-s-24 rounded-e-16 border border-solid": true,
41
- "bg-green-85 border-green-54": !!this.variant || this.variant === "success",
42
- "bg-red-85 border-red-65": this.variant === "error"
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-3597c5ae.cjs');
5
+ const shared_tailwindElement_index = require('../../index-0f13d58e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { c as b, x, a as TailwindElement, y } from '../../index-21210d1c.js';
1
+ import { c as b, x, a as TailwindElement, y } from '../../index-7a686142.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,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-3597c5ae.cjs');
5
+ const shared_tailwindElement_index = require('../../index-0f13d58e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-b0a755bb.cjs');
7
+ const styleMap = require('../../style-map-0d95bd3c.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-21210d1c.js';
1
+ import { a as TailwindElement, y } from '../../index-7a686142.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-a69052e6.js';
3
+ import { i } from '../../style-map-9d612f4e.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-3597c5ae.cjs');
5
+ const shared_tailwindElement_index = require('../../index-0f13d58e.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-b0a755bb.cjs');
11
+ require('../../style-map-0d95bd3c.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, y } from '../../index-21210d1c.js';
1
+ import { T as TailwindStyledElement, y } from '../../index-7a686142.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-a69052e6.js';
7
+ import '../../style-map-9d612f4e.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-3597c5ae.cjs');
5
+ const shared_tailwindElement_index = require('../../index-0f13d58e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { x as x$2, T as TailwindStyledElement, y } from '../../index-21210d1c.js';
1
+ import { x as x$2, T as TailwindStyledElement, y } from '../../index-7a686142.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-3597c5ae.cjs');
5
+ const shared_tailwindElement_index = require('../../index-0f13d58e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-b0a755bb.cjs');
7
+ const styleMap = require('../../style-map-0d95bd3c.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, y } from '../../index-21210d1c.js';
1
+ import { a as TailwindElement, y } from '../../index-7a686142.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-a69052e6.js';
3
+ import { i } from '../../style-map-9d612f4e.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-3597c5ae.cjs');
5
+ const shared_tailwindElement_index = require('../../index-0f13d58e.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 { L, x, a as TailwindElement, y } from '../../index-21210d1c.js';
1
+ import { L, x, a as TailwindElement, y } from '../../index-7a686142.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