@lukso/web-components 1.130.0 → 1.131.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.
Files changed (95) hide show
  1. package/dist/components/index.cjs +8 -7
  2. package/dist/components/index.js +8 -8
  3. package/dist/components/lukso-button/index.cjs +3 -3
  4. package/dist/components/lukso-button/index.js +3 -3
  5. package/dist/components/lukso-card/index.cjs +6 -6
  6. package/dist/components/lukso-card/index.js +6 -6
  7. package/dist/components/lukso-checkbox/index.cjs +3 -3
  8. package/dist/components/lukso-checkbox/index.js +3 -3
  9. package/dist/components/lukso-color-picker/index.cjs +4 -4
  10. package/dist/components/lukso-color-picker/index.js +4 -4
  11. package/dist/components/lukso-dropdown/index.cjs +7 -7
  12. package/dist/components/lukso-dropdown/index.js +7 -7
  13. package/dist/components/lukso-dropdown-option/index.cjs +2 -2
  14. package/dist/components/lukso-dropdown-option/index.js +2 -2
  15. package/dist/components/lukso-footer/index.cjs +2 -2
  16. package/dist/components/lukso-footer/index.js +2 -2
  17. package/dist/components/lukso-icon/index.cjs +3 -3
  18. package/dist/components/lukso-icon/index.js +3 -3
  19. package/dist/components/lukso-image/index.cjs +4 -4
  20. package/dist/components/lukso-image/index.js +4 -4
  21. package/dist/components/lukso-input/index.cjs +16 -15
  22. package/dist/components/lukso-input/index.d.ts.map +1 -1
  23. package/dist/components/lukso-input/index.js +16 -15
  24. package/dist/components/lukso-modal/index.cjs +2 -2
  25. package/dist/components/lukso-modal/index.js +2 -2
  26. package/dist/components/lukso-navbar/index.cjs +5 -5
  27. package/dist/components/lukso-navbar/index.js +5 -5
  28. package/dist/components/lukso-pagination/index.cjs +4 -4
  29. package/dist/components/lukso-pagination/index.js +4 -4
  30. package/dist/components/lukso-profile/index.cjs +5 -5
  31. package/dist/components/lukso-profile/index.js +5 -5
  32. package/dist/components/lukso-progress/index.cjs +3 -3
  33. package/dist/components/lukso-progress/index.js +3 -3
  34. package/dist/components/lukso-sanitize/index.cjs +2 -2
  35. package/dist/components/lukso-sanitize/index.js +2 -2
  36. package/dist/components/lukso-search/index.cjs +54 -20
  37. package/dist/components/lukso-search/index.d.ts +6 -1
  38. package/dist/components/lukso-search/index.d.ts.map +1 -1
  39. package/dist/components/lukso-search/index.js +53 -21
  40. package/dist/components/lukso-search/lukso-search.stories.d.ts.map +1 -1
  41. package/dist/components/lukso-select/index.cjs +75 -75
  42. package/dist/components/lukso-select/index.js +75 -75
  43. package/dist/components/lukso-share/index.cjs +27 -24
  44. package/dist/components/lukso-share/index.js +27 -24
  45. package/dist/components/lukso-switch/index.cjs +50 -50
  46. package/dist/components/lukso-switch/index.js +50 -50
  47. package/dist/components/lukso-tag/index.cjs +35 -32
  48. package/dist/components/lukso-tag/index.js +35 -32
  49. package/dist/components/lukso-terms/index.cjs +10 -7
  50. package/dist/components/lukso-terms/index.js +10 -7
  51. package/dist/components/lukso-test/index.cjs +16 -13
  52. package/dist/components/lukso-test/index.js +16 -13
  53. package/dist/components/lukso-textarea/index.cjs +86 -83
  54. package/dist/components/lukso-textarea/index.js +86 -83
  55. package/dist/components/lukso-tooltip/index.cjs +38 -35
  56. package/dist/components/lukso-tooltip/index.js +38 -35
  57. package/dist/components/lukso-username/index.cjs +9 -1330
  58. package/dist/components/lukso-username/index.js +6 -1336
  59. package/dist/components/lukso-wizard/index.cjs +45 -42
  60. package/dist/components/lukso-wizard/index.js +45 -42
  61. package/dist/{index-11b4b329.js → index-1db9d1ee.js} +1 -1
  62. package/dist/{index-de036f63.js → index-2f05f181.js} +2 -2
  63. package/dist/index-35fd0f44.js +1340 -0
  64. package/dist/index-44537fbb.js +39 -0
  65. package/dist/{index-8eb2e6d8.cjs → index-6bad7e66.cjs} +1 -1
  66. package/dist/index-96c96a31.cjs +1342 -0
  67. package/dist/index-b103f110.cjs +48 -0
  68. package/dist/{index-2f5d5d79.cjs → index-dfcb5b8a.cjs} +2 -2
  69. package/dist/index.cjs +8 -7
  70. package/dist/index.js +8 -8
  71. package/dist/{property-cfc5fabd.js → property-27a56e78.js} +1 -1
  72. package/dist/{property-7a90cede.cjs → property-e2dd6303.cjs} +1 -1
  73. package/dist/shared/tailwind-element/index.cjs +1 -1
  74. package/dist/shared/tailwind-element/index.js +1 -1
  75. package/dist/{state-1aaee2b7.js → state-cda0c5ee.js} +1 -1
  76. package/dist/{state-09b048f8.cjs → state-e20739c9.cjs} +1 -1
  77. package/dist/{style-map-c8670fc8.js → style-map-d0cf7858.js} +1 -1
  78. package/dist/{style-map-2abffb39.cjs → style-map-ff389c6a.cjs} +1 -1
  79. package/dist/styles/main.css +1 -0
  80. package/dist/styles/main.css.map +1 -1
  81. package/dist/tailwind-config.cjs +1 -1
  82. package/dist/tailwind-config.js +1 -1
  83. package/package.json +1 -1
  84. package/tools/cn.cjs +1 -1
  85. package/tools/cn.js +1 -1
  86. package/tools/index.cjs +1 -1
  87. package/tools/index.js +1 -1
  88. package/tools/sass/colors.scss +1 -1
  89. package/tools/styles/main.css +1 -0
  90. package/tools/{tailwind-config-c5a676c5.js → tailwind-config-73222825.js} +1 -1
  91. package/tools/{tailwind-config-20125010.cjs → tailwind-config-d0ffa274.cjs} +1 -1
  92. package/tools/tailwind-config.cjs +1 -1
  93. package/tools/tailwind-config.js +1 -1
  94. package/dist/index-1fd569a9.cjs +0 -46
  95. package/dist/index-82b4fdeb.js +0 -37
@@ -1,18 +1,18 @@
1
- import { T as TailwindStyledElement, x, E } from '../../index-82b4fdeb.js';
2
- import { n, t } from '../../property-cfc5fabd.js';
3
- import { r } from '../../state-1aaee2b7.js';
1
+ import { T as TailwindStyledElement, x, E } from '../../index-44537fbb.js';
2
+ import { n, t } from '../../property-27a56e78.js';
3
+ import { r } from '../../state-cda0c5ee.js';
4
4
  import { c as ce } from '../../index-d14b6a34.js';
5
- import { m as makeBlockie } from '../../index-de036f63.js';
5
+ import { m as makeBlockie } from '../../index-2f05f181.js';
6
6
  import '../lukso-icon/index.js';
7
- import '../lukso-username/index.js';
7
+ import '../../index-35fd0f44.js';
8
8
  import '../lukso-dropdown/index.js';
9
9
  import '../lukso-dropdown-option/index.js';
10
10
  import '../lukso-sanitize/index.js';
11
11
  import { u as uniqId } from '../../uniq-id-ce2d165c.js';
12
12
  import '../lukso-image/index.js';
13
- import '../../style-map-c8670fc8.js';
13
+ import '../../style-map-d0cf7858.js';
14
14
  import '../../directive-2bb7789e.js';
15
- import '../../index-11b4b329.js';
15
+ import '../../index-1db9d1ee.js';
16
16
  import '../../tailwind-config.js';
17
17
  import '../../cn-90c03edf.js';
18
18
 
@@ -30,84 +30,84 @@ var __decorateClass = (decorators, target, key, kind) => {
30
30
  return result;
31
31
  };
32
32
  let LuksoSelect = class extends TailwindStyledElement(style) {
33
- value = "";
34
- placeholder = "";
35
- label = "";
36
- id = "";
37
- description = "";
38
- error = "";
39
- isFullWidth = false;
40
- isReadonly = false;
41
- isDisabled = false;
42
- borderless = false;
43
- options = "";
44
- selected = void 0;
45
- isOpen = false;
46
- openTop = false;
47
- isLargeIcon = false;
48
- isRight = false;
49
- size = "medium";
50
- showSelectionCounter = false;
51
- optionsParsed = [];
52
- valueParsed = void 0;
53
33
  constructor() {
54
34
  super();
55
- if (!this.id) {
56
- this.id = uniqId();
57
- }
58
- }
59
- inputStyles = ce({
60
- base: `bg-neutral-100
35
+ this.value = "";
36
+ this.placeholder = "";
37
+ this.label = "";
38
+ this.id = "";
39
+ this.description = "";
40
+ this.error = "";
41
+ this.isFullWidth = false;
42
+ this.isReadonly = false;
43
+ this.isDisabled = false;
44
+ this.borderless = false;
45
+ this.options = "";
46
+ this.selected = void 0;
47
+ this.isOpen = false;
48
+ this.openTop = false;
49
+ this.isLargeIcon = false;
50
+ this.isRight = false;
51
+ this.size = "medium";
52
+ this.showSelectionCounter = false;
53
+ this.optionsParsed = [];
54
+ this.valueParsed = void 0;
55
+ this.inputStyles = ce({
56
+ base: `bg-neutral-100
61
57
  border border-solid placeholder:text-neutral-70 select-none whitespace-nowrap
62
58
  outline-none transition transition-all duration-150 appearance-none
63
59
  text-neutral-20 cursor-pointer border-neutral-90 group-hover:border-neutral-35
64
60
  flex items-center`,
65
- variants: {
66
- isFullWidth: {
67
- true: "w-full"
68
- },
69
- isDisabled: {
70
- true: "cursor-not-allowed text-neutral-60 group-hover:border-neutral-90"
71
- },
72
- hasError: {
73
- true: "border-red-85 group-hover:border-red-65"
74
- },
75
- borderless: {
76
- true: "border-0"
77
- },
78
- size: {
79
- small: "h-[28px] px-3 py-2 pr-8 paragraph-inter-12-regular rounded-8",
80
- medium: "h-[48px] px-4 py-3 pr-11 paragraph-inter-14-regular rounded-12"
61
+ variants: {
62
+ isFullWidth: {
63
+ true: "w-full"
64
+ },
65
+ isDisabled: {
66
+ true: "cursor-not-allowed text-neutral-60 group-hover:border-neutral-90"
67
+ },
68
+ hasError: {
69
+ true: "border-red-85 group-hover:border-red-65"
70
+ },
71
+ borderless: {
72
+ true: "border-0"
73
+ },
74
+ size: {
75
+ small: "h-[28px] px-3 py-2 pr-8 paragraph-inter-12-regular rounded-8",
76
+ medium: "h-[48px] px-4 py-3 pr-11 paragraph-inter-14-regular rounded-12"
77
+ }
81
78
  }
82
- }
83
- });
84
- counterStyles = ce({
85
- base: "border border-neutral-20",
86
- variants: {
87
- isDisabled: {
88
- true: "opacity-60 cursor-not-allowed"
89
- },
90
- size: {
91
- small: "paragraph-inter-10-semi-bold rounded-4 py-[1px] px-[5px] ml-1.5",
92
- medium: "paragraph-inter-14-semi-bold rounded-8 py-[2px] px-[10px] ml-3"
79
+ });
80
+ this.counterStyles = ce({
81
+ base: "border border-neutral-20",
82
+ variants: {
83
+ isDisabled: {
84
+ true: "opacity-60 cursor-not-allowed"
85
+ },
86
+ size: {
87
+ small: "paragraph-inter-10-semi-bold rounded-4 py-[1px] px-[5px] ml-1.5",
88
+ medium: "paragraph-inter-14-semi-bold rounded-8 py-[2px] px-[10px] ml-3"
89
+ }
93
90
  }
94
- }
95
- });
96
- iconStyles = ce({
97
- base: "absolute right-0 transition cursor-pointer",
98
- variants: {
99
- isDisabled: {
100
- true: "opacity-60 cursor-not-allowed"
101
- },
102
- isOpen: {
103
- true: "rotate-180"
104
- },
105
- size: {
106
- small: "mr-2",
107
- medium: "mr-3"
91
+ });
92
+ this.iconStyles = ce({
93
+ base: "absolute right-0 transition cursor-pointer",
94
+ variants: {
95
+ isDisabled: {
96
+ true: "opacity-60 cursor-not-allowed"
97
+ },
98
+ isOpen: {
99
+ true: "rotate-180"
100
+ },
101
+ size: {
102
+ small: "mr-2",
103
+ medium: "mr-3"
104
+ }
108
105
  }
106
+ });
107
+ if (!this.id) {
108
+ this.id = uniqId();
109
109
  }
110
- });
110
+ }
111
111
  connectedCallback() {
112
112
  super.connectedCallback();
113
113
  window.addEventListener("click", this.handleOutsideDropdownClick.bind(this));
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-1fd569a9.cjs');
6
- const property = require('../../property-7a90cede.cjs');
5
+ const shared_tailwindElement_index = require('../../index-b103f110.cjs');
6
+ const property = require('../../property-e2dd6303.cjs');
7
7
 
8
8
  const style = ":host {\n display: inline-flex\n}";
9
9
 
@@ -19,28 +19,31 @@ 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
- 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
- };
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
+ }
44
47
  linkTemplate(name, url) {
45
48
  return shared_tailwindElement_index.x`<a
46
49
  href=${url}
@@ -1,5 +1,5 @@
1
- import { T as TailwindStyledElement, x } from '../../index-82b4fdeb.js';
2
- import { n, t } from '../../property-cfc5fabd.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-44537fbb.js';
2
+ import { n, t } from '../../property-27a56e78.js';
3
3
 
4
4
  const style = ":host {\n display: inline-flex\n}";
5
5
 
@@ -15,28 +15,31 @@ var __decorateClass = (decorators, target, key, kind) => {
15
15
  return result;
16
16
  };
17
17
  let LuksoShare = class extends TailwindStyledElement(style) {
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
- };
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
+ }
40
43
  linkTemplate(name, url) {
41
44
  return x`<a
42
45
  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-1fd569a9.cjs');
6
- const property = require('../../property-7a90cede.cjs');
7
- const styleMap = require('../../style-map-2abffb39.cjs');
5
+ const shared_tailwindElement_index = require('../../index-b103f110.cjs');
6
+ const property = require('../../property-e2dd6303.cjs');
7
+ const styleMap = require('../../style-map-ff389c6a.cjs');
8
8
  const index = require('../../index-2b104ecb.cjs');
9
9
  const uniqId = require('../../uniq-id-f0b18085.cjs');
10
10
  require('../lukso-sanitize/index.cjs');
@@ -23,14 +23,53 @@ var __decorateClass = (decorators, target, key, kind) => {
23
23
  };
24
24
  const DEFAULT_COLOR = "green-54";
25
25
  exports.LuksoSwitch = class LuksoSwitch extends shared_tailwindElement_index.TailwindElement {
26
- color = DEFAULT_COLOR;
27
- id = "";
28
- name = "switch";
29
- label = "";
30
- description = "";
31
- error = "";
32
- isChecked = false;
33
- isDisabled = false;
26
+ constructor() {
27
+ super();
28
+ this.color = DEFAULT_COLOR;
29
+ this.id = "";
30
+ this.name = "switch";
31
+ this.label = "";
32
+ this.description = "";
33
+ this.error = "";
34
+ this.isChecked = false;
35
+ this.isDisabled = false;
36
+ this.styles = index.ce({
37
+ slots: {
38
+ label: "transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10",
39
+ input: "absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in"
40
+ },
41
+ variants: {
42
+ isChecked: {
43
+ true: {
44
+ input: "translate-x-4"
45
+ },
46
+ false: {
47
+ label: "bg-neutral-90",
48
+ input: "border-neutral-90"
49
+ }
50
+ },
51
+ isDisabled: {
52
+ true: {
53
+ label: "opacity-70 cursor-not-allowed",
54
+ input: "cursor-not-allowed"
55
+ },
56
+ false: {
57
+ label: "cursor-pointer",
58
+ input: "cursor-pointer"
59
+ }
60
+ },
61
+ hasError: {
62
+ true: {
63
+ label: "!bg-red-65",
64
+ input: "!border-red-65"
65
+ }
66
+ }
67
+ }
68
+ });
69
+ if (!this.id) {
70
+ this.id = `switch-${uniqId.uniqId()}`;
71
+ }
72
+ }
34
73
  async handleChange(event) {
35
74
  const target = event.target;
36
75
  await this.updateComplete;
@@ -44,45 +83,6 @@ exports.LuksoSwitch = class LuksoSwitch extends shared_tailwindElement_index.Tai
44
83
  });
45
84
  this.dispatchEvent(changeEvent);
46
85
  }
47
- constructor() {
48
- super();
49
- if (!this.id) {
50
- this.id = `switch-${uniqId.uniqId()}`;
51
- }
52
- }
53
- styles = index.ce({
54
- slots: {
55
- label: "transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10",
56
- input: "absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in"
57
- },
58
- variants: {
59
- isChecked: {
60
- true: {
61
- input: "translate-x-4"
62
- },
63
- false: {
64
- label: "bg-neutral-90",
65
- input: "border-neutral-90"
66
- }
67
- },
68
- isDisabled: {
69
- true: {
70
- label: "opacity-70 cursor-not-allowed",
71
- input: "cursor-not-allowed"
72
- },
73
- false: {
74
- label: "cursor-pointer",
75
- input: "cursor-pointer"
76
- }
77
- },
78
- hasError: {
79
- true: {
80
- label: "!bg-red-65",
81
- input: "!border-red-65"
82
- }
83
- }
84
- }
85
- });
86
86
  labelTemplate() {
87
87
  return shared_tailwindElement_index.x`
88
88
  <div
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x, E } from '../../index-82b4fdeb.js';
2
- import { n, t } from '../../property-cfc5fabd.js';
3
- import { o } from '../../style-map-c8670fc8.js';
1
+ import { a as TailwindElement, x, E } from '../../index-44537fbb.js';
2
+ import { n, t } from '../../property-27a56e78.js';
3
+ import { o } from '../../style-map-d0cf7858.js';
4
4
  import { c as ce } from '../../index-d14b6a34.js';
5
5
  import { u as uniqId } from '../../uniq-id-ce2d165c.js';
6
6
  import '../lukso-sanitize/index.js';
@@ -19,14 +19,53 @@ var __decorateClass = (decorators, target, key, kind) => {
19
19
  };
20
20
  const DEFAULT_COLOR = "green-54";
21
21
  let LuksoSwitch = class extends TailwindElement {
22
- color = DEFAULT_COLOR;
23
- id = "";
24
- name = "switch";
25
- label = "";
26
- description = "";
27
- error = "";
28
- isChecked = false;
29
- isDisabled = false;
22
+ constructor() {
23
+ super();
24
+ this.color = DEFAULT_COLOR;
25
+ this.id = "";
26
+ this.name = "switch";
27
+ this.label = "";
28
+ this.description = "";
29
+ this.error = "";
30
+ this.isChecked = false;
31
+ this.isDisabled = false;
32
+ this.styles = ce({
33
+ slots: {
34
+ label: "transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10",
35
+ input: "absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in"
36
+ },
37
+ variants: {
38
+ isChecked: {
39
+ true: {
40
+ input: "translate-x-4"
41
+ },
42
+ false: {
43
+ label: "bg-neutral-90",
44
+ input: "border-neutral-90"
45
+ }
46
+ },
47
+ isDisabled: {
48
+ true: {
49
+ label: "opacity-70 cursor-not-allowed",
50
+ input: "cursor-not-allowed"
51
+ },
52
+ false: {
53
+ label: "cursor-pointer",
54
+ input: "cursor-pointer"
55
+ }
56
+ },
57
+ hasError: {
58
+ true: {
59
+ label: "!bg-red-65",
60
+ input: "!border-red-65"
61
+ }
62
+ }
63
+ }
64
+ });
65
+ if (!this.id) {
66
+ this.id = `switch-${uniqId()}`;
67
+ }
68
+ }
30
69
  async handleChange(event) {
31
70
  const target = event.target;
32
71
  await this.updateComplete;
@@ -40,45 +79,6 @@ let LuksoSwitch = class extends TailwindElement {
40
79
  });
41
80
  this.dispatchEvent(changeEvent);
42
81
  }
43
- constructor() {
44
- super();
45
- if (!this.id) {
46
- this.id = `switch-${uniqId()}`;
47
- }
48
- }
49
- styles = ce({
50
- slots: {
51
- label: "transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10",
52
- input: "absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in"
53
- },
54
- variants: {
55
- isChecked: {
56
- true: {
57
- input: "translate-x-4"
58
- },
59
- false: {
60
- label: "bg-neutral-90",
61
- input: "border-neutral-90"
62
- }
63
- },
64
- isDisabled: {
65
- true: {
66
- label: "opacity-70 cursor-not-allowed",
67
- input: "cursor-not-allowed"
68
- },
69
- false: {
70
- label: "cursor-pointer",
71
- input: "cursor-pointer"
72
- }
73
- },
74
- hasError: {
75
- true: {
76
- label: "!bg-red-65",
77
- input: "!border-red-65"
78
- }
79
- }
80
- }
81
- });
82
82
  labelTemplate() {
83
83
  return x`
84
84
  <div
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-1fd569a9.cjs');
6
- const property = require('../../property-7a90cede.cjs');
5
+ const shared_tailwindElement_index = require('../../index-b103f110.cjs');
6
+ const property = require('../../property-e2dd6303.cjs');
7
7
  const index = require('../../index-2b104ecb.cjs');
8
- const index$1 = require('../../index-8eb2e6d8.cjs');
8
+ const index$1 = require('../../index-6bad7e66.cjs');
9
9
  require('../../directive-8278ab14.cjs');
10
10
 
11
11
  const style = ":host {\n display: inline-flex\n}";
@@ -22,36 +22,39 @@ var __decorateClass = (decorators, target, key, kind) => {
22
22
  return result;
23
23
  };
24
24
  exports.LuksoTag = class LuksoTag extends shared_tailwindElement_index.TailwindStyledElement(style) {
25
- size = "small";
26
- isRounded = false;
27
- backgroundColor = "";
28
- borderColor = "";
29
- textColor = "";
30
- tagStyles = index.ce({
31
- base: "inline-flex items-center justify-center border border-neutral-20 text-neutral-20 px-2 whitespace-nowrap",
32
- variants: {
33
- size: {
34
- "x-small": "font-inter text-8 font-500 leading-20 h-[20px] px-1 rounded-4",
35
- small: "paragraph-inter-12-medium h-[28px] px-2 rounded-8",
36
- large: "paragraph-inter-14-medium h-[34px] px-4 rounded-8"
25
+ constructor() {
26
+ super(...arguments);
27
+ this.size = "small";
28
+ this.isRounded = false;
29
+ this.backgroundColor = "";
30
+ this.borderColor = "";
31
+ this.textColor = "";
32
+ this.tagStyles = index.ce({
33
+ base: "inline-flex items-center justify-center border border-neutral-20 text-neutral-20 px-2 whitespace-nowrap",
34
+ variants: {
35
+ size: {
36
+ "x-small": "font-inter text-8 font-500 leading-20 h-[20px] px-1 rounded-4",
37
+ small: "paragraph-inter-12-medium h-[28px] px-2 rounded-8",
38
+ large: "paragraph-inter-14-medium h-[34px] px-4 rounded-8"
39
+ },
40
+ isRounded: {
41
+ true: "rounded-[56px]"
42
+ }
37
43
  },
38
- isRounded: {
39
- true: "rounded-[56px]"
40
- }
41
- },
42
- compoundVariants: [
43
- {
44
- size: "small",
45
- isRounded: true,
46
- class: "px-3"
47
- },
48
- {
49
- size: "x-small",
50
- isRounded: true,
51
- class: "px-2"
52
- }
53
- ]
54
- });
44
+ compoundVariants: [
45
+ {
46
+ size: "small",
47
+ isRounded: true,
48
+ class: "px-3"
49
+ },
50
+ {
51
+ size: "x-small",
52
+ isRounded: true,
53
+ class: "px-2"
54
+ }
55
+ ]
56
+ });
57
+ }
55
58
  resolveBorderColor() {
56
59
  if (this.borderColor) {
57
60
  return this.borderColor;