@lukso/web-components 1.118.0 → 1.119.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 (87) hide show
  1. package/dist/components/index.cjs +8 -7
  2. package/dist/components/index.js +8 -7
  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 +151 -12
  12. package/dist/components/lukso-dropdown/index.js +156 -8
  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 +4 -4
  22. package/dist/components/lukso-input/index.js +4 -4
  23. package/dist/components/lukso-modal/index.cjs +2 -2
  24. package/dist/components/lukso-modal/index.js +2 -2
  25. package/dist/components/lukso-navbar/index.cjs +5 -5
  26. package/dist/components/lukso-navbar/index.js +5 -5
  27. package/dist/components/lukso-pagination/index.cjs +4 -4
  28. package/dist/components/lukso-pagination/index.js +4 -4
  29. package/dist/components/lukso-profile/index.cjs +5 -5
  30. package/dist/components/lukso-profile/index.js +5 -5
  31. package/dist/components/lukso-progress/index.cjs +3 -3
  32. package/dist/components/lukso-progress/index.js +3 -3
  33. package/dist/components/lukso-sanitize/index.cjs +2 -2
  34. package/dist/components/lukso-sanitize/index.js +2 -2
  35. package/dist/components/lukso-search/index.cjs +15 -10
  36. package/dist/components/lukso-search/index.d.ts +1 -0
  37. package/dist/components/lukso-search/index.d.ts.map +1 -1
  38. package/dist/components/lukso-search/index.js +15 -10
  39. package/dist/components/lukso-search/lukso-search.stories.d.ts +2 -0
  40. package/dist/components/lukso-search/lukso-search.stories.d.ts.map +1 -1
  41. package/dist/components/lukso-select/index.cjs +9 -8
  42. package/dist/components/lukso-select/index.js +8 -7
  43. package/dist/components/lukso-share/index.cjs +2 -2
  44. package/dist/components/lukso-share/index.js +2 -2
  45. package/dist/components/lukso-switch/index.cjs +118 -33
  46. package/dist/components/lukso-switch/index.d.ts +12 -4
  47. package/dist/components/lukso-switch/index.d.ts.map +1 -1
  48. package/dist/components/lukso-switch/index.js +118 -33
  49. package/dist/components/lukso-switch/lukso-switch.stories.d.ts +8 -0
  50. package/dist/components/lukso-switch/lukso-switch.stories.d.ts.map +1 -1
  51. package/dist/components/lukso-tag/index.cjs +3 -3
  52. package/dist/components/lukso-tag/index.js +3 -3
  53. package/dist/components/lukso-terms/index.cjs +4 -4
  54. package/dist/components/lukso-terms/index.js +4 -4
  55. package/dist/components/lukso-test/index.cjs +2 -2
  56. package/dist/components/lukso-test/index.js +2 -2
  57. package/dist/components/lukso-textarea/index.cjs +4 -4
  58. package/dist/components/lukso-textarea/index.js +4 -4
  59. package/dist/components/lukso-tooltip/index.cjs +4 -4
  60. package/dist/components/lukso-tooltip/index.js +4 -4
  61. package/dist/components/lukso-username/index.cjs +3 -3
  62. package/dist/components/lukso-username/index.js +3 -3
  63. package/dist/components/lukso-wizard/index.cjs +2 -2
  64. package/dist/components/lukso-wizard/index.js +2 -2
  65. package/dist/index-11ee2a36.cjs +46 -0
  66. package/dist/{index-f564f46f.cjs → index-28b795be.cjs} +1 -1
  67. package/dist/{index-eb08047e.js → index-5e0baae9.js} +1 -1
  68. package/dist/{index-30c74dfe.js → index-6e86d3a6.js} +2 -2
  69. package/dist/index-be30d9db.js +37 -0
  70. package/dist/{index-9f282d35.cjs → index-d95aa803.cjs} +2 -2
  71. package/dist/index.cjs +8 -7
  72. package/dist/index.js +8 -7
  73. package/dist/{property-140ef335.js → property-23ddd718.js} +1 -1
  74. package/dist/{property-46482bf7.cjs → property-c2b27afb.cjs} +1 -1
  75. package/dist/shared/tailwind-element/index.cjs +1 -1
  76. package/dist/shared/tailwind-element/index.js +1 -1
  77. package/dist/{state-94c1d585.cjs → state-88ac4aa9.cjs} +1 -1
  78. package/dist/{state-876605e4.js → state-f46a7e17.js} +1 -1
  79. package/dist/{style-map-15dde65e.js → style-map-129fa2d5.js} +1 -1
  80. package/dist/{style-map-552ab28f.cjs → style-map-6e0d4ef7.cjs} +1 -1
  81. package/dist/uniq-id-ce2d165c.js +6 -0
  82. package/dist/uniq-id-f0b18085.cjs +8 -0
  83. package/package.json +1 -1
  84. package/dist/index-40811e43.js +0 -159
  85. package/dist/index-86a3fdc1.js +0 -37
  86. package/dist/index-dbfb7d50.cjs +0 -161
  87. package/dist/index-dda1809d.cjs +0 -46
@@ -2,10 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-dda1809d.cjs');
6
- const property = require('../../property-46482bf7.cjs');
7
- const styleMap = require('../../style-map-552ab28f.cjs');
8
- const index = require('../../index-e9668573.cjs');
5
+ const shared_tailwindElement_index = require('../../index-11ee2a36.cjs');
6
+ const property = require('../../property-c2b27afb.cjs');
7
+ const styleMap = require('../../style-map-6e0d4ef7.cjs');
8
+ const index = require('../../index-2b104ecb.cjs');
9
+ const uniqId = require('../../uniq-id-f0b18085.cjs');
9
10
  require('../../directive-8278ab14.cjs');
10
11
 
11
12
  var __defProp = Object.defineProperty;
@@ -19,13 +20,18 @@ var __decorateClass = (decorators, target, key, kind) => {
19
20
  __defProp(target, key, result);
20
21
  return result;
21
22
  };
23
+ const DEFAULT_COLOR = "green-54";
22
24
  exports.LuksoSwitch = class LuksoSwitch extends shared_tailwindElement_index.TailwindElement {
23
- color = "green-54";
25
+ color = DEFAULT_COLOR;
26
+ id = "";
27
+ name = "switch";
28
+ label = "";
29
+ description = "";
30
+ error = "";
24
31
  isChecked = false;
25
32
  isDisabled = false;
26
33
  async handleChange(event) {
27
34
  const target = event.target;
28
- this.isChecked = target.checked;
29
35
  await this.updateComplete;
30
36
  const changeEvent = new CustomEvent("on-change", {
31
37
  detail: {
@@ -37,43 +43,122 @@ exports.LuksoSwitch = class LuksoSwitch extends shared_tailwindElement_index.Tai
37
43
  });
38
44
  this.dispatchEvent(changeEvent);
39
45
  }
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`;
42
- render() {
46
+ constructor() {
47
+ super();
48
+ if (!this.id) {
49
+ this.id = `switch-${uniqId.uniqId()}`;
50
+ }
51
+ }
52
+ styles = index.ce({
53
+ slots: {
54
+ label: "transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10",
55
+ input: "absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in"
56
+ },
57
+ variants: {
58
+ isChecked: {
59
+ true: {
60
+ input: "translate-x-4"
61
+ },
62
+ false: {
63
+ label: "bg-neutral-90",
64
+ input: "border-neutral-90"
65
+ }
66
+ },
67
+ isDisabled: {
68
+ true: {
69
+ label: "opacity-70 cursor-not-allowed",
70
+ input: "cursor-not-allowed"
71
+ },
72
+ false: {
73
+ label: "cursor-pointer",
74
+ input: "cursor-pointer"
75
+ }
76
+ },
77
+ hasError: {
78
+ true: {
79
+ label: "!bg-red-65",
80
+ input: "!border-red-65"
81
+ }
82
+ }
83
+ }
84
+ });
85
+ labelTemplate() {
43
86
  return shared_tailwindElement_index.x`
44
- <label
45
- for="switch"
46
- class=${index.customClassMap({
47
- [this.defaultLabelStyles]: true
48
- })}
49
- style=${styleMap.o({
50
- backgroundColor: `var(--${this.isChecked ? this.color : "neutral-90"})`,
51
- opacity: this.isDisabled ? 0.7 : 1,
52
- cursor: this.isDisabled ? "not-allowed" : "pointer"
53
- })}
87
+ <div
88
+ class="heading-inter-14-bold text-neutral-20 pb-2 block"
89
+ >${this.label}</label
54
90
  >
55
- <input
56
- type="checkbox"
57
- id="switch"
58
- ?checked=${this.isChecked}
59
- ?disabled=${this.isDisabled}
60
- class=${index.customClassMap({
61
- [this.defaultInputStyles]: true,
62
- ["translate-x-4"]: this.isChecked
91
+ `;
92
+ }
93
+ descriptionTemplate() {
94
+ return shared_tailwindElement_index.x`
95
+ <div class="paragraph-inter-12-regular text-neutral-20 pb-2">
96
+ ${this.description ?? shared_tailwindElement_index.E}
97
+ </div>
98
+ `;
99
+ }
100
+ errorTemplate() {
101
+ return shared_tailwindElement_index.x`<div class="paragraph-inter-12-regular text-red-65 pt-2">
102
+ ${this.error}
103
+ </div>`;
104
+ }
105
+ render() {
106
+ const { label, input } = this.styles({
107
+ isChecked: this.isChecked,
108
+ isDisabled: this.isDisabled,
109
+ hasError: this.error !== ""
110
+ });
111
+ if (!this.color) {
112
+ this.color = DEFAULT_COLOR;
113
+ }
114
+ return shared_tailwindElement_index.x`
115
+ <label for=${this.id} class="w-[inherit]">
116
+ ${this.label ? this.labelTemplate() : shared_tailwindElement_index.E}
117
+ ${this.description ? this.descriptionTemplate() : shared_tailwindElement_index.E}
118
+ <div class="flex">
119
+ <div
120
+ class=${label()}
121
+ style=${styleMap.o({
122
+ backgroundColor: `var(--${this.isChecked ? this.color : "neutral-90"})`
63
123
  })}
64
- style=${styleMap.o({
65
- borderColor: `var(--${this.isChecked ? this.color : "neutral-90"})`,
66
- cursor: this.isDisabled ? "not-allowed" : "pointer"
124
+ >
125
+ <input
126
+ type="checkbox"
127
+ id=${this.id}
128
+ name=${this.name}
129
+ ?checked=${this.isChecked}
130
+ ?disabled=${this.isDisabled}
131
+ class=${input()}
132
+ style=${styleMap.o({
133
+ borderColor: `var(--${this.isChecked ? this.color : "neutral-90"})`
67
134
  })}
68
- @change=${this.handleChange}
69
- />
70
- </label>
135
+ @change=${this.handleChange}
136
+ />
137
+ </label>
138
+ </div>
139
+ ${this.error ? this.errorTemplate() : shared_tailwindElement_index.E}
140
+ </div>
71
141
  `;
72
142
  }
73
143
  };
74
144
  __decorateClass([
75
145
  property.n({ type: String })
76
146
  ], exports.LuksoSwitch.prototype, "color", 2);
147
+ __decorateClass([
148
+ property.n({ type: String })
149
+ ], exports.LuksoSwitch.prototype, "id", 2);
150
+ __decorateClass([
151
+ property.n({ type: String })
152
+ ], exports.LuksoSwitch.prototype, "name", 2);
153
+ __decorateClass([
154
+ property.n({ type: String })
155
+ ], exports.LuksoSwitch.prototype, "label", 2);
156
+ __decorateClass([
157
+ property.n({ type: String })
158
+ ], exports.LuksoSwitch.prototype, "description", 2);
159
+ __decorateClass([
160
+ property.n({ type: String })
161
+ ], exports.LuksoSwitch.prototype, "error", 2);
77
162
  __decorateClass([
78
163
  property.n({ type: Boolean, attribute: "is-checked" })
79
164
  ], exports.LuksoSwitch.prototype, "isChecked", 2);
@@ -1,11 +1,19 @@
1
1
  import { TailwindElement } from '../../shared/tailwind-element';
2
2
  export declare class LuksoSwitch extends TailwindElement {
3
3
  color: string;
4
- private isChecked;
5
- private isDisabled;
4
+ id: string;
5
+ name: string;
6
+ label: string;
7
+ description: string;
8
+ error: string;
9
+ isChecked: boolean;
10
+ isDisabled: boolean;
6
11
  private handleChange;
7
- private defaultLabelStyles;
8
- private defaultInputStyles;
12
+ constructor();
13
+ private styles;
14
+ labelTemplate(): import("lit-html").TemplateResult<1>;
15
+ descriptionTemplate(): import("lit-html").TemplateResult<1>;
16
+ errorTemplate(): import("lit-html").TemplateResult<1>;
9
17
  render(): import("lit-html").TemplateResult<1>;
10
18
  }
11
19
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-switch/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,WAAY,SAAQ,eAAe;IAE9C,KAAK,SAAa;IAGlB,OAAO,CAAC,SAAS,CAAQ;IAMzB,OAAO,CAAC,UAAU,CAAQ;YAEZ,YAAY;IAe1B,OAAO,CAAC,kBAAkB,CAAsG;IAEhI,OAAO,CAAC,kBAAkB,CAA0G;IAEpI,MAAM;CAiCP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-switch/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAI3D,qBACa,WAAY,SAAQ,eAAe;IAE9C,KAAK,SAAgB;IAGrB,EAAE,SAAK;IAGP,IAAI,SAAW;IAGf,KAAK,SAAK;IAGV,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,SAAS,UAAQ;IAMjB,UAAU,UAAQ;YAEJ,YAAY;;IAsB1B,OAAO,CAAC,MAAM,CAkCZ;IAEF,aAAa;IASb,mBAAmB;IAQnB,aAAa;IAMb,MAAM;CA4CP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
@@ -1,7 +1,8 @@
1
- import { a as TailwindElement, x } from '../../index-86a3fdc1.js';
2
- import { n, t } from '../../property-140ef335.js';
3
- import { o } from '../../style-map-15dde65e.js';
4
- import { c as customClassMap } from '../../index-5e194caf.js';
1
+ import { a as TailwindElement, x, E } from '../../index-be30d9db.js';
2
+ import { n, t } from '../../property-23ddd718.js';
3
+ import { o } from '../../style-map-129fa2d5.js';
4
+ import { c as ce } from '../../index-d14b6a34.js';
5
+ import { u as uniqId } from '../../uniq-id-ce2d165c.js';
5
6
  import '../../directive-2bb7789e.js';
6
7
 
7
8
  var __defProp = Object.defineProperty;
@@ -15,13 +16,18 @@ var __decorateClass = (decorators, target, key, kind) => {
15
16
  __defProp(target, key, result);
16
17
  return result;
17
18
  };
19
+ const DEFAULT_COLOR = "green-54";
18
20
  let LuksoSwitch = class extends TailwindElement {
19
- color = "green-54";
21
+ color = DEFAULT_COLOR;
22
+ id = "";
23
+ name = "switch";
24
+ label = "";
25
+ description = "";
26
+ error = "";
20
27
  isChecked = false;
21
28
  isDisabled = false;
22
29
  async handleChange(event) {
23
30
  const target = event.target;
24
- this.isChecked = target.checked;
25
31
  await this.updateComplete;
26
32
  const changeEvent = new CustomEvent("on-change", {
27
33
  detail: {
@@ -33,43 +39,122 @@ let LuksoSwitch = class extends TailwindElement {
33
39
  });
34
40
  this.dispatchEvent(changeEvent);
35
41
  }
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`;
38
- render() {
42
+ constructor() {
43
+ super();
44
+ if (!this.id) {
45
+ this.id = `switch-${uniqId()}`;
46
+ }
47
+ }
48
+ styles = ce({
49
+ slots: {
50
+ label: "transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10",
51
+ input: "absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in"
52
+ },
53
+ variants: {
54
+ isChecked: {
55
+ true: {
56
+ input: "translate-x-4"
57
+ },
58
+ false: {
59
+ label: "bg-neutral-90",
60
+ input: "border-neutral-90"
61
+ }
62
+ },
63
+ isDisabled: {
64
+ true: {
65
+ label: "opacity-70 cursor-not-allowed",
66
+ input: "cursor-not-allowed"
67
+ },
68
+ false: {
69
+ label: "cursor-pointer",
70
+ input: "cursor-pointer"
71
+ }
72
+ },
73
+ hasError: {
74
+ true: {
75
+ label: "!bg-red-65",
76
+ input: "!border-red-65"
77
+ }
78
+ }
79
+ }
80
+ });
81
+ labelTemplate() {
39
82
  return x`
40
- <label
41
- for="switch"
42
- class=${customClassMap({
43
- [this.defaultLabelStyles]: true
44
- })}
45
- style=${o({
46
- backgroundColor: `var(--${this.isChecked ? this.color : "neutral-90"})`,
47
- opacity: this.isDisabled ? 0.7 : 1,
48
- cursor: this.isDisabled ? "not-allowed" : "pointer"
49
- })}
83
+ <div
84
+ class="heading-inter-14-bold text-neutral-20 pb-2 block"
85
+ >${this.label}</label
50
86
  >
51
- <input
52
- type="checkbox"
53
- id="switch"
54
- ?checked=${this.isChecked}
55
- ?disabled=${this.isDisabled}
56
- class=${customClassMap({
57
- [this.defaultInputStyles]: true,
58
- ["translate-x-4"]: this.isChecked
87
+ `;
88
+ }
89
+ descriptionTemplate() {
90
+ return x`
91
+ <div class="paragraph-inter-12-regular text-neutral-20 pb-2">
92
+ ${this.description ?? E}
93
+ </div>
94
+ `;
95
+ }
96
+ errorTemplate() {
97
+ return x`<div class="paragraph-inter-12-regular text-red-65 pt-2">
98
+ ${this.error}
99
+ </div>`;
100
+ }
101
+ render() {
102
+ const { label, input } = this.styles({
103
+ isChecked: this.isChecked,
104
+ isDisabled: this.isDisabled,
105
+ hasError: this.error !== ""
106
+ });
107
+ if (!this.color) {
108
+ this.color = DEFAULT_COLOR;
109
+ }
110
+ return x`
111
+ <label for=${this.id} class="w-[inherit]">
112
+ ${this.label ? this.labelTemplate() : E}
113
+ ${this.description ? this.descriptionTemplate() : E}
114
+ <div class="flex">
115
+ <div
116
+ class=${label()}
117
+ style=${o({
118
+ backgroundColor: `var(--${this.isChecked ? this.color : "neutral-90"})`
59
119
  })}
60
- style=${o({
61
- borderColor: `var(--${this.isChecked ? this.color : "neutral-90"})`,
62
- cursor: this.isDisabled ? "not-allowed" : "pointer"
120
+ >
121
+ <input
122
+ type="checkbox"
123
+ id=${this.id}
124
+ name=${this.name}
125
+ ?checked=${this.isChecked}
126
+ ?disabled=${this.isDisabled}
127
+ class=${input()}
128
+ style=${o({
129
+ borderColor: `var(--${this.isChecked ? this.color : "neutral-90"})`
63
130
  })}
64
- @change=${this.handleChange}
65
- />
66
- </label>
131
+ @change=${this.handleChange}
132
+ />
133
+ </label>
134
+ </div>
135
+ ${this.error ? this.errorTemplate() : E}
136
+ </div>
67
137
  `;
68
138
  }
69
139
  };
70
140
  __decorateClass([
71
141
  n({ type: String })
72
142
  ], LuksoSwitch.prototype, "color", 2);
143
+ __decorateClass([
144
+ n({ type: String })
145
+ ], LuksoSwitch.prototype, "id", 2);
146
+ __decorateClass([
147
+ n({ type: String })
148
+ ], LuksoSwitch.prototype, "name", 2);
149
+ __decorateClass([
150
+ n({ type: String })
151
+ ], LuksoSwitch.prototype, "label", 2);
152
+ __decorateClass([
153
+ n({ type: String })
154
+ ], LuksoSwitch.prototype, "description", 2);
155
+ __decorateClass([
156
+ n({ type: String })
157
+ ], LuksoSwitch.prototype, "error", 2);
73
158
  __decorateClass([
74
159
  n({ type: Boolean, attribute: "is-checked" })
75
160
  ], LuksoSwitch.prototype, "isChecked", 2);
@@ -6,4 +6,12 @@ export default meta;
6
6
  export declare const DefaultInput: any;
7
7
  /** Example of disabled switch. */
8
8
  export declare const DisabledInput: any;
9
+ /** Example of switch in different color. */
10
+ export declare const ColoredInput: any;
11
+ /** Example of switch with `label`. */
12
+ export declare const Label: any;
13
+ /** Example of switch with `label` and `description`. */
14
+ export declare const LabelAndDescription: any;
15
+ /** Example of switch with `error`. */
16
+ export declare const ErrorInput: any;
9
17
  //# sourceMappingURL=lukso-switch.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lukso-switch.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-switch/lukso-switch.stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,SAAS,CAAA;AAEhB,gEAAgE;AAChE,QAAA,MAAM,IAAI,EAAE,IAgEX,CAAA;AAED,eAAe,IAAI,CAAA;AAUnB,kCAAkC;AAClC,eAAO,MAAM,YAAY,KAAoB,CAAA;AAO7C,mCAAmC;AACnC,eAAO,MAAM,aAAa,KAAoB,CAAA"}
1
+ {"version":3,"file":"lukso-switch.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-switch/lukso-switch.stories.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,SAAS,CAAA;AAEhB,gEAAgE;AAChE,QAAA,MAAM,IAAI,EAAE,IA6FX,CAAA;AAED,eAAe,IAAI,CAAA;AA8BnB,kCAAkC;AAClC,eAAO,MAAM,YAAY,KAAoB,CAAA;AAK7C,mCAAmC;AACnC,eAAO,MAAM,aAAa,KAAoB,CAAA;AAM9C,6CAA6C;AAC7C,eAAO,MAAM,YAAY,KAAoB,CAAA;AAM7C,sCAAsC;AACtC,eAAO,MAAM,KAAK,KAAoB,CAAA;AAKtC,wDAAwD;AACxD,eAAO,MAAM,mBAAmB,KAAoB,CAAA;AAMpD,sCAAsC;AACtC,eAAO,MAAM,UAAU,KAAoB,CAAA"}
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-dda1809d.cjs');
6
- const property = require('../../property-46482bf7.cjs');
5
+ const shared_tailwindElement_index = require('../../index-11ee2a36.cjs');
6
+ const property = require('../../property-c2b27afb.cjs');
7
7
  const index = require('../../index-2b104ecb.cjs');
8
- const index$1 = require('../../index-f564f46f.cjs');
8
+ const index$1 = require('../../index-28b795be.cjs');
9
9
  require('../../directive-8278ab14.cjs');
10
10
 
11
11
  const style = ":host {\n display: inline-flex\n}";
@@ -1,7 +1,7 @@
1
- import { T as TailwindStyledElement, x } from '../../index-86a3fdc1.js';
2
- import { n, t } from '../../property-140ef335.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-be30d9db.js';
2
+ import { n, t } from '../../property-23ddd718.js';
3
3
  import { c as ce } from '../../index-d14b6a34.js';
4
- import { c as customStyleMap } from '../../index-eb08047e.js';
4
+ import { c as customStyleMap } from '../../index-5e0baae9.js';
5
5
  import '../../directive-2bb7789e.js';
6
6
 
7
7
  const style = ":host {\n display: inline-flex\n}";
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-dda1809d.cjs');
6
- const property = require('../../property-46482bf7.cjs');
7
- const state = require('../../state-94c1d585.cjs');
5
+ const shared_tailwindElement_index = require('../../index-11ee2a36.cjs');
6
+ const property = require('../../property-c2b27afb.cjs');
7
+ const state = require('../../state-88ac4aa9.cjs');
8
8
  const index = require('../../index-e9668573.cjs');
9
9
  require('../lukso-icon/index.cjs');
10
10
  require('../lukso-sanitize/index.cjs');
11
11
  require('../../directive-8278ab14.cjs');
12
- require('../../style-map-552ab28f.cjs');
12
+ require('../../style-map-6e0d4ef7.cjs');
13
13
 
14
14
  const style = ":host {\n display: flex;\n height: 100%\n}";
15
15
 
@@ -1,11 +1,11 @@
1
- import { T as TailwindStyledElement, x } from '../../index-86a3fdc1.js';
2
- import { n, t } from '../../property-140ef335.js';
3
- import { r } from '../../state-876605e4.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-be30d9db.js';
2
+ import { n, t } from '../../property-23ddd718.js';
3
+ import { r } from '../../state-f46a7e17.js';
4
4
  import { c as customClassMap } from '../../index-5e194caf.js';
5
5
  import '../lukso-icon/index.js';
6
6
  import '../lukso-sanitize/index.js';
7
7
  import '../../directive-2bb7789e.js';
8
- import '../../style-map-15dde65e.js';
8
+ import '../../style-map-129fa2d5.js';
9
9
 
10
10
  const style = ":host {\n display: flex;\n height: 100%\n}";
11
11
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-dda1809d.cjs');
6
- const property = require('../../property-46482bf7.cjs');
5
+ const shared_tailwindElement_index = require('../../index-11ee2a36.cjs');
6
+ const property = require('../../property-c2b27afb.cjs');
7
7
  const directive = require('../../directive-8278ab14.cjs');
8
8
 
9
9
  /**
@@ -1,5 +1,5 @@
1
- import { b as T$1, T as TailwindStyledElement, x as x$1 } from '../../index-86a3fdc1.js';
2
- import { n as n$3, t as t$4 } from '../../property-140ef335.js';
1
+ import { b as T$1, T as TailwindStyledElement, x as x$1 } from '../../index-be30d9db.js';
2
+ import { n as n$3, t as t$4 } from '../../property-23ddd718.js';
3
3
  import { e as e$3, i as i$3, t as t$3 } from '../../directive-2bb7789e.js';
4
4
 
5
5
  /**
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-dda1809d.cjs');
6
- const property = require('../../property-46482bf7.cjs');
7
- const state = require('../../state-94c1d585.cjs');
5
+ const shared_tailwindElement_index = require('../../index-11ee2a36.cjs');
6
+ const property = require('../../property-c2b27afb.cjs');
7
+ const state = require('../../state-88ac4aa9.cjs');
8
8
  const index = require('../../index-2b104ecb.cjs');
9
9
  require('../../tailwind-config.cjs');
10
10
  const cn = require('../../cn-b6daa995.cjs');
11
11
  require('../lukso-icon/index.cjs');
12
- require('../../style-map-552ab28f.cjs');
12
+ require('../../style-map-6e0d4ef7.cjs');
13
13
  require('../../directive-8278ab14.cjs');
14
14
 
15
15
  const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
@@ -1,11 +1,11 @@
1
- import { T as TailwindStyledElement, x, E } from '../../index-86a3fdc1.js';
2
- import { n, t } from '../../property-140ef335.js';
3
- import { r } from '../../state-876605e4.js';
1
+ import { T as TailwindStyledElement, x, E } from '../../index-be30d9db.js';
2
+ import { n, t } from '../../property-23ddd718.js';
3
+ import { r } from '../../state-f46a7e17.js';
4
4
  import { c as ce } from '../../index-d14b6a34.js';
5
5
  import '../../tailwind-config.js';
6
6
  import { c as cn } from '../../cn-90c03edf.js';
7
7
  import '../lukso-icon/index.js';
8
- import '../../style-map-15dde65e.js';
8
+ import '../../style-map-129fa2d5.js';
9
9
  import '../../directive-2bb7789e.js';
10
10
 
11
11
  const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-dda1809d.cjs');
6
- const property = require('../../property-46482bf7.cjs');
7
- const state = require('../../state-94c1d585.cjs');
5
+ const shared_tailwindElement_index = require('../../index-11ee2a36.cjs');
6
+ const property = require('../../property-c2b27afb.cjs');
7
+ const state = require('../../state-88ac4aa9.cjs');
8
8
  const index = require('../../index-2b104ecb.cjs');
9
- const styleMap = require('../../style-map-552ab28f.cjs');
9
+ const styleMap = require('../../style-map-6e0d4ef7.cjs');
10
10
  require('../../directive-8278ab14.cjs');
11
11
 
12
12
  var top = 'top';
@@ -1,8 +1,8 @@
1
- import { T as TailwindStyledElement, x } from '../../index-86a3fdc1.js';
2
- import { n, t } from '../../property-140ef335.js';
3
- import { r } from '../../state-876605e4.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-be30d9db.js';
2
+ import { n, t } from '../../property-23ddd718.js';
3
+ import { r } from '../../state-f46a7e17.js';
4
4
  import { c as ce } from '../../index-d14b6a34.js';
5
- import { o } from '../../style-map-15dde65e.js';
5
+ import { o } from '../../style-map-129fa2d5.js';
6
6
  import '../../directive-2bb7789e.js';
7
7
 
8
8
  var top = 'top';
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-dda1809d.cjs');
6
- const property = require('../../property-46482bf7.cjs');
5
+ const shared_tailwindElement_index = require('../../index-11ee2a36.cjs');
6
+ const property = require('../../property-c2b27afb.cjs');
7
7
  const index = require('../../index-2b104ecb.cjs');
8
- const index$1 = require('../../index-f564f46f.cjs');
8
+ const index$1 = require('../../index-28b795be.cjs');
9
9
  require('../../tailwind-config.cjs');
10
10
  const cn = require('../../cn-b6daa995.cjs');
11
11
  require('../../directive-8278ab14.cjs');
@@ -1,7 +1,7 @@
1
- import { T as TailwindStyledElement, x, E } from '../../index-86a3fdc1.js';
2
- import { n, t } from '../../property-140ef335.js';
1
+ import { T as TailwindStyledElement, x, E } from '../../index-be30d9db.js';
2
+ import { n, t } from '../../property-23ddd718.js';
3
3
  import { c as ce } from '../../index-d14b6a34.js';
4
- import { c as customStyleMap } from '../../index-eb08047e.js';
4
+ import { c as customStyleMap } from '../../index-5e0baae9.js';
5
5
  import '../../tailwind-config.js';
6
6
  import { c as cn } from '../../cn-90c03edf.js';
7
7
  import '../../directive-2bb7789e.js';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-dda1809d.cjs');
6
- const property = require('../../property-46482bf7.cjs');
5
+ const shared_tailwindElement_index = require('../../index-11ee2a36.cjs');
6
+ const property = require('../../property-c2b27afb.cjs');
7
7
  const directive = require('../../directive-8278ab14.cjs');
8
8
  const index = require('../../index-2b104ecb.cjs');
9
9
 
@@ -1,5 +1,5 @@
1
- import { Z, b as T, T as TailwindStyledElement, x } from '../../index-86a3fdc1.js';
2
- import { n, t as t$2 } from '../../property-140ef335.js';
1
+ import { Z, b as T, T as TailwindStyledElement, x } from '../../index-be30d9db.js';
2
+ import { n, t as t$2 } from '../../property-23ddd718.js';
3
3
  import { e, i, t as t$1 } from '../../directive-2bb7789e.js';
4
4
  import { c as ce } from '../../index-d14b6a34.js';
5
5