@lukso/web-components 1.102.0 → 1.102.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.
Files changed (69) hide show
  1. package/dist/components/index.cjs +4 -4
  2. package/dist/components/index.js +4 -4
  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 +3 -3
  6. package/dist/components/lukso-card/index.js +3 -3
  7. package/dist/components/lukso-checkbox/index.cjs +1 -1
  8. package/dist/components/lukso-checkbox/index.js +1 -1
  9. package/dist/components/lukso-color-picker/index.cjs +2 -2
  10. package/dist/components/lukso-color-picker/index.js +2 -2
  11. package/dist/components/lukso-dropdown/index.cjs +4 -4
  12. package/dist/components/lukso-dropdown/index.js +4 -4
  13. package/dist/components/lukso-dropdown-option/index.cjs +3 -3
  14. package/dist/components/lukso-dropdown-option/index.js +3 -3
  15. package/dist/components/lukso-footer/index.cjs +1 -1
  16. package/dist/components/lukso-footer/index.js +1 -1
  17. package/dist/components/lukso-icon/index.cjs +2 -2
  18. package/dist/components/lukso-icon/index.js +2 -2
  19. package/dist/components/lukso-image/index.cjs +2 -2
  20. package/dist/components/lukso-image/index.js +2 -2
  21. package/dist/components/lukso-input/index.cjs +2 -2
  22. package/dist/components/lukso-input/index.js +2 -2
  23. package/dist/components/lukso-modal/index.cjs +1 -1
  24. package/dist/components/lukso-modal/index.js +1 -1
  25. package/dist/components/lukso-navbar/index.cjs +3 -3
  26. package/dist/components/lukso-navbar/index.js +3 -3
  27. package/dist/components/lukso-pagination/index.cjs +2 -2
  28. package/dist/components/lukso-pagination/index.js +2 -2
  29. package/dist/components/lukso-profile/index.cjs +2 -2
  30. package/dist/components/lukso-profile/index.js +2 -2
  31. package/dist/components/lukso-progress/index.cjs +2 -2
  32. package/dist/components/lukso-progress/index.js +2 -2
  33. package/dist/components/lukso-sanitize/index.cjs +1 -1
  34. package/dist/components/lukso-sanitize/index.js +1 -1
  35. package/dist/components/lukso-search/index.cjs +4 -4
  36. package/dist/components/lukso-search/index.js +4 -4
  37. package/dist/components/lukso-select/index.cjs +72 -72
  38. package/dist/components/lukso-select/index.js +72 -72
  39. package/dist/components/lukso-share/index.cjs +23 -26
  40. package/dist/components/lukso-share/index.js +23 -26
  41. package/dist/components/lukso-switch/index.cjs +7 -10
  42. package/dist/components/lukso-switch/index.js +7 -10
  43. package/dist/components/lukso-tag/index.cjs +31 -34
  44. package/dist/components/lukso-tag/index.js +31 -34
  45. package/dist/components/lukso-terms/index.cjs +5 -8
  46. package/dist/components/lukso-terms/index.js +5 -8
  47. package/dist/components/lukso-test/index.cjs +12 -15
  48. package/dist/components/lukso-test/index.js +12 -15
  49. package/dist/components/lukso-textarea/index.cjs +81 -84
  50. package/dist/components/lukso-textarea/index.js +81 -84
  51. package/dist/components/lukso-tooltip/index.cjs +33 -36
  52. package/dist/components/lukso-tooltip/index.js +33 -36
  53. package/dist/components/lukso-username/index.cjs +49 -52
  54. package/dist/components/lukso-username/index.js +49 -52
  55. package/dist/components/lukso-wizard/index.cjs +41 -44
  56. package/dist/components/lukso-wizard/index.js +41 -44
  57. package/dist/{index-6349a8aa.js → index-15b30335.js} +1 -1
  58. package/dist/{index-474fac60.cjs → index-1ce46c50.cjs} +1 -1
  59. package/dist/{index-8ccda1e9.cjs → index-89eb56eb.cjs} +3 -5
  60. package/dist/{index-17879e5a.cjs → index-b9bc3bbb.cjs} +1 -1
  61. package/dist/{index-d89cc6bc.js → index-c154a31c.js} +3 -5
  62. package/dist/{index-7e82dcae.js → index-f62a47db.js} +1 -1
  63. package/dist/index.cjs +4 -4
  64. package/dist/index.js +4 -4
  65. package/dist/shared/tailwind-element/index.cjs +1 -1
  66. package/dist/shared/tailwind-element/index.js +1 -1
  67. package/dist/{style-map-12def811.cjs → style-map-3dd58f82.cjs} +1 -1
  68. package/dist/{style-map-cf4f4350.js → style-map-d46cc789.js} +1 -1
  69. package/package.json +1 -1
@@ -2,20 +2,20 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-8ccda1e9.cjs');
5
+ const shared_tailwindElement_index = require('../../index-89eb56eb.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-d5e45650.cjs');
7
7
  const state = require('../../state-d9fb972b.cjs');
8
8
  const index = require('../../index-1d3f4a5a.cjs');
9
9
  require('../lukso-icon/index.cjs');
10
10
  require('../lukso-profile/index.cjs');
11
11
  require('../lukso-username/index.cjs');
12
- const components_luksoDropdown_index = require('../../index-474fac60.cjs');
12
+ const components_luksoDropdown_index = require('../../index-1ce46c50.cjs');
13
13
  require('../lukso-dropdown-option/index.cjs');
14
14
  require('../../bundle-mjs-d58a83c6.cjs');
15
- require('../../style-map-12def811.cjs');
15
+ require('../../style-map-3dd58f82.cjs');
16
16
  require('../../directive-8278ab14.cjs');
17
17
  require('../lukso-image/index.cjs');
18
- require('../../index-17879e5a.cjs');
18
+ require('../../index-b9bc3bbb.cjs');
19
19
  require('../../tailwind-config.cjs');
20
20
  require('../../cn-5ceac001.cjs');
21
21
 
@@ -33,84 +33,84 @@ var __decorateClass = (decorators, target, key, kind) => {
33
33
  return result;
34
34
  };
35
35
  exports.LuksoSelect = class LuksoSelect extends shared_tailwindElement_index.TailwindStyledElement(style) {
36
+ value = "";
37
+ placeholder = "";
38
+ label = "";
39
+ id = "";
40
+ description = "";
41
+ error = "";
42
+ isFullWidth = false;
43
+ isReadonly = false;
44
+ isDisabled = false;
45
+ borderless = false;
46
+ options = "";
47
+ selected = void 0;
48
+ isOpen = false;
49
+ openTop = false;
50
+ isLargeIcon = false;
51
+ isRight = false;
52
+ size = "medium";
53
+ showSelectionCounter = false;
54
+ optionsParsed = [];
55
+ valueParsed = void 0;
36
56
  constructor() {
37
57
  super();
38
- this.value = "";
39
- this.placeholder = "";
40
- this.label = "";
41
- this.id = "";
42
- this.description = "";
43
- this.error = "";
44
- this.isFullWidth = false;
45
- this.isReadonly = false;
46
- this.isDisabled = false;
47
- this.borderless = false;
48
- this.options = "";
49
- this.selected = void 0;
50
- this.isOpen = false;
51
- this.openTop = false;
52
- this.isLargeIcon = false;
53
- this.isRight = false;
54
- this.size = "medium";
55
- this.showSelectionCounter = false;
56
- this.optionsParsed = [];
57
- this.valueParsed = void 0;
58
- this.inputStyles = index.ce({
59
- base: `bg-neutral-100
58
+ if (!this.id) {
59
+ this.id = components_luksoDropdown_index.uniqId();
60
+ }
61
+ }
62
+ inputStyles = index.ce({
63
+ base: `bg-neutral-100
60
64
  border border-solid placeholder:text-neutral-70 select-none whitespace-nowrap
61
65
  outline-none transition transition-all duration-150 appearance-none
62
66
  text-neutral-20 cursor-pointer border-neutral-90 group-hover:border-neutral-35
63
67
  flex items-center`,
64
- variants: {
65
- isFullWidth: {
66
- true: "w-full"
67
- },
68
- isDisabled: {
69
- true: "cursor-not-allowed text-neutral-60 group-hover:border-neutral-90"
70
- },
71
- hasError: {
72
- true: "border-red-85 group-hover:border-red-65"
73
- },
74
- borderless: {
75
- true: "border-0"
76
- },
77
- size: {
78
- small: "h-[28px] px-3 py-2 pr-8 paragraph-inter-12-regular rounded-8",
79
- medium: "h-[48px] px-4 py-3 pr-11 paragraph-inter-14-regular rounded-12"
80
- }
68
+ variants: {
69
+ isFullWidth: {
70
+ true: "w-full"
71
+ },
72
+ isDisabled: {
73
+ true: "cursor-not-allowed text-neutral-60 group-hover:border-neutral-90"
74
+ },
75
+ hasError: {
76
+ true: "border-red-85 group-hover:border-red-65"
77
+ },
78
+ borderless: {
79
+ true: "border-0"
80
+ },
81
+ size: {
82
+ small: "h-[28px] px-3 py-2 pr-8 paragraph-inter-12-regular rounded-8",
83
+ medium: "h-[48px] px-4 py-3 pr-11 paragraph-inter-14-regular rounded-12"
81
84
  }
82
- });
83
- this.counterStyles = index.ce({
84
- base: "border border-neutral-20",
85
- variants: {
86
- isDisabled: {
87
- true: "opacity-60 cursor-not-allowed"
88
- },
89
- size: {
90
- small: "paragraph-inter-10-semi-bold rounded-4 py-[1px] px-[5px] ml-1.5",
91
- medium: "paragraph-inter-14-semi-bold rounded-8 py-[2px] px-[10px] ml-3"
92
- }
85
+ }
86
+ });
87
+ counterStyles = index.ce({
88
+ base: "border border-neutral-20",
89
+ variants: {
90
+ isDisabled: {
91
+ true: "opacity-60 cursor-not-allowed"
92
+ },
93
+ size: {
94
+ small: "paragraph-inter-10-semi-bold rounded-4 py-[1px] px-[5px] ml-1.5",
95
+ medium: "paragraph-inter-14-semi-bold rounded-8 py-[2px] px-[10px] ml-3"
93
96
  }
94
- });
95
- this.iconStyles = index.ce({
96
- base: "absolute right-0 transition cursor-pointer",
97
- variants: {
98
- isDisabled: {
99
- true: "opacity-60 cursor-not-allowed"
100
- },
101
- isOpen: {
102
- true: "rotate-180"
103
- },
104
- size: {
105
- small: "mr-2",
106
- medium: "mr-3"
107
- }
97
+ }
98
+ });
99
+ iconStyles = index.ce({
100
+ base: "absolute right-0 transition cursor-pointer",
101
+ variants: {
102
+ isDisabled: {
103
+ true: "opacity-60 cursor-not-allowed"
104
+ },
105
+ isOpen: {
106
+ true: "rotate-180"
107
+ },
108
+ size: {
109
+ small: "mr-2",
110
+ medium: "mr-3"
108
111
  }
109
- });
110
- if (!this.id) {
111
- this.id = components_luksoDropdown_index.uniqId();
112
112
  }
113
- }
113
+ });
114
114
  connectedCallback() {
115
115
  super.connectedCallback();
116
116
  window.addEventListener("click", this.handleOutsideDropdownClick.bind(this));
@@ -1,17 +1,17 @@
1
- import { T as TailwindStyledElement, x, A } from '../../index-d89cc6bc.js';
1
+ import { T as TailwindStyledElement, x, A } from '../../index-c154a31c.js';
2
2
  import { n, e } from '../../query-assigned-elements-1c8c9e90.js';
3
3
  import { t } from '../../state-b9ca4e74.js';
4
4
  import { c as ce } from '../../index-ca8e900d.js';
5
5
  import '../lukso-icon/index.js';
6
6
  import '../lukso-profile/index.js';
7
7
  import '../lukso-username/index.js';
8
- import { u as uniqId } from '../../index-7e82dcae.js';
8
+ import { u as uniqId } from '../../index-f62a47db.js';
9
9
  import '../lukso-dropdown-option/index.js';
10
10
  import '../../bundle-mjs-fbc6e2a8.js';
11
- import '../../style-map-cf4f4350.js';
11
+ import '../../style-map-d46cc789.js';
12
12
  import '../../directive-2bb7789e.js';
13
13
  import '../lukso-image/index.js';
14
- import '../../index-6349a8aa.js';
14
+ import '../../index-15b30335.js';
15
15
  import '../../tailwind-config.js';
16
16
  import '../../cn-b54dcc61.js';
17
17
 
@@ -29,84 +29,84 @@ var __decorateClass = (decorators, target, key, kind) => {
29
29
  return result;
30
30
  };
31
31
  let LuksoSelect = class extends TailwindStyledElement(style) {
32
+ value = "";
33
+ placeholder = "";
34
+ label = "";
35
+ id = "";
36
+ description = "";
37
+ error = "";
38
+ isFullWidth = false;
39
+ isReadonly = false;
40
+ isDisabled = false;
41
+ borderless = false;
42
+ options = "";
43
+ selected = void 0;
44
+ isOpen = false;
45
+ openTop = false;
46
+ isLargeIcon = false;
47
+ isRight = false;
48
+ size = "medium";
49
+ showSelectionCounter = false;
50
+ optionsParsed = [];
51
+ valueParsed = void 0;
32
52
  constructor() {
33
53
  super();
34
- this.value = "";
35
- this.placeholder = "";
36
- this.label = "";
37
- this.id = "";
38
- this.description = "";
39
- this.error = "";
40
- this.isFullWidth = false;
41
- this.isReadonly = false;
42
- this.isDisabled = false;
43
- this.borderless = false;
44
- this.options = "";
45
- this.selected = void 0;
46
- this.isOpen = false;
47
- this.openTop = false;
48
- this.isLargeIcon = false;
49
- this.isRight = false;
50
- this.size = "medium";
51
- this.showSelectionCounter = false;
52
- this.optionsParsed = [];
53
- this.valueParsed = void 0;
54
- this.inputStyles = ce({
55
- base: `bg-neutral-100
54
+ if (!this.id) {
55
+ this.id = uniqId();
56
+ }
57
+ }
58
+ inputStyles = ce({
59
+ base: `bg-neutral-100
56
60
  border border-solid placeholder:text-neutral-70 select-none whitespace-nowrap
57
61
  outline-none transition transition-all duration-150 appearance-none
58
62
  text-neutral-20 cursor-pointer border-neutral-90 group-hover:border-neutral-35
59
63
  flex items-center`,
60
- variants: {
61
- isFullWidth: {
62
- true: "w-full"
63
- },
64
- isDisabled: {
65
- true: "cursor-not-allowed text-neutral-60 group-hover:border-neutral-90"
66
- },
67
- hasError: {
68
- true: "border-red-85 group-hover:border-red-65"
69
- },
70
- borderless: {
71
- true: "border-0"
72
- },
73
- size: {
74
- small: "h-[28px] px-3 py-2 pr-8 paragraph-inter-12-regular rounded-8",
75
- medium: "h-[48px] px-4 py-3 pr-11 paragraph-inter-14-regular rounded-12"
76
- }
64
+ variants: {
65
+ isFullWidth: {
66
+ true: "w-full"
67
+ },
68
+ isDisabled: {
69
+ true: "cursor-not-allowed text-neutral-60 group-hover:border-neutral-90"
70
+ },
71
+ hasError: {
72
+ true: "border-red-85 group-hover:border-red-65"
73
+ },
74
+ borderless: {
75
+ true: "border-0"
76
+ },
77
+ size: {
78
+ small: "h-[28px] px-3 py-2 pr-8 paragraph-inter-12-regular rounded-8",
79
+ medium: "h-[48px] px-4 py-3 pr-11 paragraph-inter-14-regular rounded-12"
77
80
  }
78
- });
79
- this.counterStyles = ce({
80
- base: "border border-neutral-20",
81
- variants: {
82
- isDisabled: {
83
- true: "opacity-60 cursor-not-allowed"
84
- },
85
- size: {
86
- small: "paragraph-inter-10-semi-bold rounded-4 py-[1px] px-[5px] ml-1.5",
87
- medium: "paragraph-inter-14-semi-bold rounded-8 py-[2px] px-[10px] ml-3"
88
- }
81
+ }
82
+ });
83
+ counterStyles = ce({
84
+ base: "border border-neutral-20",
85
+ variants: {
86
+ isDisabled: {
87
+ true: "opacity-60 cursor-not-allowed"
88
+ },
89
+ size: {
90
+ small: "paragraph-inter-10-semi-bold rounded-4 py-[1px] px-[5px] ml-1.5",
91
+ medium: "paragraph-inter-14-semi-bold rounded-8 py-[2px] px-[10px] ml-3"
89
92
  }
90
- });
91
- this.iconStyles = ce({
92
- base: "absolute right-0 transition cursor-pointer",
93
- variants: {
94
- isDisabled: {
95
- true: "opacity-60 cursor-not-allowed"
96
- },
97
- isOpen: {
98
- true: "rotate-180"
99
- },
100
- size: {
101
- small: "mr-2",
102
- medium: "mr-3"
103
- }
93
+ }
94
+ });
95
+ iconStyles = ce({
96
+ base: "absolute right-0 transition cursor-pointer",
97
+ variants: {
98
+ isDisabled: {
99
+ true: "opacity-60 cursor-not-allowed"
100
+ },
101
+ isOpen: {
102
+ true: "rotate-180"
103
+ },
104
+ size: {
105
+ small: "mr-2",
106
+ medium: "mr-3"
104
107
  }
105
- });
106
- if (!this.id) {
107
- this.id = uniqId();
108
108
  }
109
- }
109
+ });
110
110
  connectedCallback() {
111
111
  super.connectedCallback();
112
112
  window.addEventListener("click", this.handleOutsideDropdownClick.bind(this));
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-8ccda1e9.cjs');
5
+ const shared_tailwindElement_index = require('../../index-89eb56eb.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-d5e45650.cjs');
7
7
 
8
8
  const style = ":host {\n display: inline-flex\n}";
@@ -19,31 +19,28 @@ var __decorateClass = (decorators, target, key, kind) => {
19
19
  return result;
20
20
  };
21
21
  exports.LuksoShare = class LuksoShare extends shared_tailwindElement_index.TailwindStyledElement(style) {
22
- constructor() {
23
- super(...arguments);
24
- this.customStyle = "";
25
- this.providers = "";
26
- this.defaultProviders = [
27
- "twitter",
28
- "instagram",
29
- "linkedin",
30
- "telegram",
31
- "discord",
32
- "reddit",
33
- "medium",
34
- "github"
35
- ];
36
- this.defaultProviderLinks = {
37
- twitter: "https://twitter.com/ERC725Account",
38
- instagram: "https://www.instagram.com/lukso",
39
- linkedin: "https://linkedin.com/company/lukso",
40
- telegram: "https://t.me/LUKSO_News",
41
- discord: "https://discord.gg/lukso",
42
- reddit: "https://www.reddit.com/r/lukso",
43
- medium: "https://medium.com/lukso",
44
- github: "https://github.com/lukso-network"
45
- };
46
- }
22
+ customStyle = "";
23
+ providers = "";
24
+ defaultProviders = [
25
+ "twitter",
26
+ "instagram",
27
+ "linkedin",
28
+ "telegram",
29
+ "discord",
30
+ "reddit",
31
+ "medium",
32
+ "github"
33
+ ];
34
+ defaultProviderLinks = {
35
+ twitter: "https://twitter.com/ERC725Account",
36
+ instagram: "https://www.instagram.com/lukso",
37
+ linkedin: "https://linkedin.com/company/lukso",
38
+ telegram: "https://t.me/LUKSO_News",
39
+ discord: "https://discord.gg/lukso",
40
+ reddit: "https://www.reddit.com/r/lukso",
41
+ medium: "https://medium.com/lukso",
42
+ github: "https://github.com/lukso-network"
43
+ };
47
44
  linkTemplate(name, url) {
48
45
  return shared_tailwindElement_index.x`<a
49
46
  href=${url}
@@ -1,4 +1,4 @@
1
- import { T as TailwindStyledElement, x } from '../../index-d89cc6bc.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-c154a31c.js';
2
2
  import { n, e } from '../../query-assigned-elements-1c8c9e90.js';
3
3
 
4
4
  const style = ":host {\n display: inline-flex\n}";
@@ -15,31 +15,28 @@ var __decorateClass = (decorators, target, key, kind) => {
15
15
  return result;
16
16
  };
17
17
  let LuksoShare = class extends TailwindStyledElement(style) {
18
- constructor() {
19
- super(...arguments);
20
- this.customStyle = "";
21
- this.providers = "";
22
- this.defaultProviders = [
23
- "twitter",
24
- "instagram",
25
- "linkedin",
26
- "telegram",
27
- "discord",
28
- "reddit",
29
- "medium",
30
- "github"
31
- ];
32
- this.defaultProviderLinks = {
33
- twitter: "https://twitter.com/ERC725Account",
34
- instagram: "https://www.instagram.com/lukso",
35
- linkedin: "https://linkedin.com/company/lukso",
36
- telegram: "https://t.me/LUKSO_News",
37
- discord: "https://discord.gg/lukso",
38
- reddit: "https://www.reddit.com/r/lukso",
39
- medium: "https://medium.com/lukso",
40
- github: "https://github.com/lukso-network"
41
- };
42
- }
18
+ customStyle = "";
19
+ providers = "";
20
+ defaultProviders = [
21
+ "twitter",
22
+ "instagram",
23
+ "linkedin",
24
+ "telegram",
25
+ "discord",
26
+ "reddit",
27
+ "medium",
28
+ "github"
29
+ ];
30
+ defaultProviderLinks = {
31
+ twitter: "https://twitter.com/ERC725Account",
32
+ instagram: "https://www.instagram.com/lukso",
33
+ linkedin: "https://linkedin.com/company/lukso",
34
+ telegram: "https://t.me/LUKSO_News",
35
+ discord: "https://discord.gg/lukso",
36
+ reddit: "https://www.reddit.com/r/lukso",
37
+ medium: "https://medium.com/lukso",
38
+ github: "https://github.com/lukso-network"
39
+ };
43
40
  linkTemplate(name, url) {
44
41
  return x`<a
45
42
  href=${url}
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-8ccda1e9.cjs');
5
+ const shared_tailwindElement_index = require('../../index-89eb56eb.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-d5e45650.cjs');
7
- const styleMap = require('../../style-map-12def811.cjs');
7
+ const styleMap = require('../../style-map-3dd58f82.cjs');
8
8
  const index = require('../../index-e9668573.cjs');
9
9
  require('../../directive-8278ab14.cjs');
10
10
 
@@ -20,14 +20,9 @@ var __decorateClass = (decorators, target, key, kind) => {
20
20
  return result;
21
21
  };
22
22
  exports.LuksoSwitch = class LuksoSwitch extends shared_tailwindElement_index.TailwindElement {
23
- constructor() {
24
- super(...arguments);
25
- this.color = "green-54";
26
- this.isChecked = false;
27
- this.isDisabled = false;
28
- this.defaultLabelStyles = `transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10`;
29
- this.defaultInputStyles = `absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in`;
30
- }
23
+ color = "green-54";
24
+ isChecked = false;
25
+ isDisabled = false;
31
26
  async handleChange(event) {
32
27
  const target = event.target;
33
28
  this.isChecked = target.checked;
@@ -42,6 +37,8 @@ exports.LuksoSwitch = class LuksoSwitch extends shared_tailwindElement_index.Tai
42
37
  });
43
38
  this.dispatchEvent(changeEvent);
44
39
  }
40
+ defaultLabelStyles = `transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10`;
41
+ defaultInputStyles = `absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in`;
45
42
  render() {
46
43
  return shared_tailwindElement_index.x`
47
44
  <label
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x } from '../../index-d89cc6bc.js';
1
+ import { a as TailwindElement, x } from '../../index-c154a31c.js';
2
2
  import { n, e } from '../../query-assigned-elements-1c8c9e90.js';
3
- import { o } from '../../style-map-cf4f4350.js';
3
+ import { o } from '../../style-map-d46cc789.js';
4
4
  import { c as customClassMap } from '../../index-5e194caf.js';
5
5
  import '../../directive-2bb7789e.js';
6
6
 
@@ -16,14 +16,9 @@ var __decorateClass = (decorators, target, key, kind) => {
16
16
  return result;
17
17
  };
18
18
  let LuksoSwitch = class extends TailwindElement {
19
- constructor() {
20
- super(...arguments);
21
- this.color = "green-54";
22
- this.isChecked = false;
23
- this.isDisabled = false;
24
- this.defaultLabelStyles = `transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10`;
25
- this.defaultInputStyles = `absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in`;
26
- }
19
+ color = "green-54";
20
+ isChecked = false;
21
+ isDisabled = false;
27
22
  async handleChange(event) {
28
23
  const target = event.target;
29
24
  this.isChecked = target.checked;
@@ -38,6 +33,8 @@ let LuksoSwitch = class extends TailwindElement {
38
33
  });
39
34
  this.dispatchEvent(changeEvent);
40
35
  }
36
+ defaultLabelStyles = `transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10`;
37
+ defaultInputStyles = `absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in`;
41
38
  render() {
42
39
  return x`
43
40
  <label
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-8ccda1e9.cjs');
5
+ const shared_tailwindElement_index = require('../../index-89eb56eb.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-d5e45650.cjs');
7
7
  const index = require('../../index-1d3f4a5a.cjs');
8
- const index$1 = require('../../index-17879e5a.cjs');
8
+ const index$1 = require('../../index-b9bc3bbb.cjs');
9
9
  require('../../bundle-mjs-d58a83c6.cjs');
10
10
  require('../../directive-8278ab14.cjs');
11
11
 
@@ -23,39 +23,36 @@ var __decorateClass = (decorators, target, key, kind) => {
23
23
  return result;
24
24
  };
25
25
  exports.LuksoTag = class LuksoTag extends shared_tailwindElement_index.TailwindStyledElement(style) {
26
- constructor() {
27
- super(...arguments);
28
- this.size = "small";
29
- this.isRounded = false;
30
- this.backgroundColor = "";
31
- this.borderColor = "";
32
- this.textColor = "";
33
- this.tagStyles = index.ce({
34
- base: "inline-flex items-center justify-center border border-neutral-20 text-neutral-20 px-2 whitespace-nowrap",
35
- variants: {
36
- size: {
37
- "x-small": "font-inter text-8 font-500 leading-20 h-[20px] px-1 rounded-4",
38
- small: "paragraph-inter-12-medium h-[28px] px-2 rounded-8",
39
- large: "paragraph-inter-14-medium h-[34px] px-4 rounded-8"
40
- },
41
- isRounded: {
42
- true: "rounded-[56px]"
43
- }
26
+ size = "small";
27
+ isRounded = false;
28
+ backgroundColor = "";
29
+ borderColor = "";
30
+ textColor = "";
31
+ tagStyles = index.ce({
32
+ base: "inline-flex items-center justify-center border border-neutral-20 text-neutral-20 px-2 whitespace-nowrap",
33
+ variants: {
34
+ size: {
35
+ "x-small": "font-inter text-8 font-500 leading-20 h-[20px] px-1 rounded-4",
36
+ small: "paragraph-inter-12-medium h-[28px] px-2 rounded-8",
37
+ large: "paragraph-inter-14-medium h-[34px] px-4 rounded-8"
44
38
  },
45
- compoundVariants: [
46
- {
47
- size: "small",
48
- isRounded: true,
49
- class: "px-3"
50
- },
51
- {
52
- size: "x-small",
53
- isRounded: true,
54
- class: "px-2"
55
- }
56
- ]
57
- });
58
- }
39
+ isRounded: {
40
+ true: "rounded-[56px]"
41
+ }
42
+ },
43
+ compoundVariants: [
44
+ {
45
+ size: "small",
46
+ isRounded: true,
47
+ class: "px-3"
48
+ },
49
+ {
50
+ size: "x-small",
51
+ isRounded: true,
52
+ class: "px-2"
53
+ }
54
+ ]
55
+ });
59
56
  resolveBorderColor() {
60
57
  if (this.borderColor) {
61
58
  return this.borderColor;