@lukso/web-components 1.31.1 → 1.32.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 (58) 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 +57 -2
  6. package/dist/components/lukso-card/index.d.ts +2 -1
  7. package/dist/components/lukso-card/index.js +57 -2
  8. package/dist/components/lukso-card/lukso-card.stories.d.ts +2 -0
  9. package/dist/components/lukso-card/lukso-card.stories.d.ts.map +1 -1
  10. package/dist/components/lukso-checkbox/index.cjs +36 -113
  11. package/dist/components/lukso-checkbox/index.d.ts +1 -12
  12. package/dist/components/lukso-checkbox/index.js +36 -113
  13. package/dist/components/lukso-checkbox/lukso-checkbox.stories.d.ts.map +1 -1
  14. package/dist/components/lukso-footer/index.cjs +1 -1
  15. package/dist/components/lukso-footer/index.js +1 -1
  16. package/dist/components/lukso-icon/index.cjs +2 -2
  17. package/dist/components/lukso-icon/index.js +2 -2
  18. package/dist/components/lukso-input/index.cjs +11 -5
  19. package/dist/components/lukso-input/index.d.ts +1 -0
  20. package/dist/components/lukso-input/index.js +11 -5
  21. package/dist/components/lukso-input/lukso-input.stories.d.ts +2 -0
  22. package/dist/components/lukso-input/lukso-input.stories.d.ts.map +1 -1
  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 +2 -2
  26. package/dist/components/lukso-navbar/index.js +2 -2
  27. package/dist/components/lukso-profile/index.cjs +2 -2
  28. package/dist/components/lukso-profile/index.js +2 -2
  29. package/dist/components/lukso-progress/index.cjs +1 -1
  30. package/dist/components/lukso-progress/index.js +1 -1
  31. package/dist/components/lukso-sanitize/index.cjs +1 -1
  32. package/dist/components/lukso-sanitize/index.js +1 -1
  33. package/dist/components/lukso-share/index.cjs +1 -1
  34. package/dist/components/lukso-share/index.js +1 -1
  35. package/dist/components/lukso-switch/index.cjs +2 -2
  36. package/dist/components/lukso-switch/index.js +2 -2
  37. package/dist/components/lukso-tag/index.cjs +2 -2
  38. package/dist/components/lukso-tag/index.js +2 -2
  39. package/dist/components/lukso-terms/index.cjs +2 -2
  40. package/dist/components/lukso-terms/index.js +2 -2
  41. package/dist/components/lukso-test/index.cjs +1 -1
  42. package/dist/components/lukso-test/index.js +1 -1
  43. package/dist/components/lukso-username/index.cjs +6 -1
  44. package/dist/components/lukso-username/index.d.ts +1 -0
  45. package/dist/components/lukso-username/index.js +6 -1
  46. package/dist/components/lukso-wizard/index.cjs +1 -1
  47. package/dist/components/lukso-wizard/index.js +1 -1
  48. package/dist/index-1c3e0838.cjs +61 -0
  49. package/dist/index-e26b8ca5.js +54 -0
  50. package/dist/index.cjs +2 -2
  51. package/dist/index.js +2 -2
  52. package/dist/shared/tailwind-element/index.cjs +1 -1
  53. package/dist/shared/tailwind-element/index.js +1 -1
  54. package/dist/{style-map-abc9b925.js → style-map-5f187498.js} +1 -1
  55. package/dist/{style-map-11254084.cjs → style-map-a55221fe.cjs} +1 -1
  56. package/package.json +1 -1
  57. package/dist/index-2754b007.js +0 -54
  58. package/dist/index-6683f423.cjs +0 -61
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, x } from '../../index-2754b007.js';
1
+ import { a as TailwindElement, x } from '../../index-e26b8ca5.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';
@@ -18,26 +18,19 @@ let LuksoCheckbox = class extends TailwindElement {
18
18
  constructor() {
19
19
  super(...arguments);
20
20
  this.name = "";
21
- this.label = "";
22
21
  this.id = "";
23
22
  this.ref = void 0;
24
23
  this.type = "text";
25
24
  this.size = "medium";
26
25
  this.error = "";
27
- this.profileUrl = "";
28
- this.profileAddress = "";
29
- this.hasIdenticon = false;
30
- this.upUsername = "";
31
- this.upAddress = "";
26
+ this.checked = false;
32
27
  this.customClass = "";
33
28
  this.isReadonly = false;
34
29
  this.isDisabled = false;
35
- this.isChecked = false;
36
30
  this.hasFocus = false;
37
- this.hasChecked = false;
38
31
  this.hasHighlight = false;
39
32
  this.defaultContainerStyles = `
40
- flex items-center
33
+ flex items-center gap-2
41
34
  border border-solid border-neutral-100
42
35
  select-none
43
36
  `;
@@ -48,7 +41,7 @@ let LuksoCheckbox = class extends TailwindElement {
48
41
  opacity-0
49
42
  `;
50
43
  this.defaultLabelStyles = `
51
- pl-2 text-neutral-20 block
44
+ text-neutral-20 block
52
45
  `;
53
46
  this.defaultCheckboxStyles = `
54
47
  relative
@@ -57,25 +50,14 @@ let LuksoCheckbox = class extends TailwindElement {
57
50
  border border-solid rounded-md
58
51
  outline-none transition transition-all duration-150 appearance-none`;
59
52
  }
60
- connectedCallback() {
61
- super.connectedCallback();
62
- this.hasChecked = this.isChecked;
63
- }
64
- attributeChangedCallback(name, _old, value) {
65
- super.attributeChangedCallback(name, _old, value);
66
- if (name === "is-checked") {
67
- this.hasChecked = this.isChecked;
68
- this.requestUpdate();
69
- }
70
- }
71
53
  checkedIconTemplate() {
72
54
  return x`
73
55
  <lukso-icon
74
56
  class=${customClassMap({
75
- hidden: !this.hasChecked
57
+ hidden: !this.checked
76
58
  })}
77
59
  name="tick"
78
- color="neutral-20"
60
+ color=${this.isDisabled ? "neutral-60" : "neutral-20"}
79
61
  ></lukso-icon>
80
62
  `;
81
63
  }
@@ -86,9 +68,7 @@ let LuksoCheckbox = class extends TailwindElement {
86
68
  [this.defaultCheckboxStyles]: true,
87
69
  [this.error === "" ? "border-neutral-90" : "border-red-85"]: !this.hasHighlight,
88
70
  [this.error === "" ? "border-neutral-35" : "border-red-65"]: this.hasHighlight,
89
- ["cursor-not-allowed text-neutral-60"]: this.isDisabled,
90
- ["text-neutral-20"]: !this.isDisabled,
91
- ["cursor-not-allowed"]: this.isReadonly,
71
+ ["border-neutral-60"]: this.isDisabled,
92
72
  ["h-[40px] w-[40px]"]: this.size === "medium",
93
73
  ["h-[32px] w-[32px]"]: this.size === "small",
94
74
  ["h-[28px] w-[28px]"]: this.size === "x-small",
@@ -104,16 +84,18 @@ let LuksoCheckbox = class extends TailwindElement {
104
84
  return x`
105
85
  <input
106
86
  name=${this.name}
107
- ?checked=${this.hasChecked ? "checked" : void 0}
87
+ ?checked=${this.checked ? "checked" : void 0}
108
88
  type="checkbox"
109
89
  class=${customClassMap({
110
- [this.defaultInputStyles]: true
90
+ [this.defaultInputStyles]: true,
91
+ ["text-neutral-60"]: this.isDisabled
111
92
  })}
112
93
  ref=${this.ref}
113
94
  id=${id}
114
95
  data-testid=${this.name ? `input-${this.name}` : "input"}
115
96
  ?disabled=${this.isDisabled ? true : void 0}
116
- @change=${this.handleChange}
97
+ ?readonly=${this.isReadonly ? true : void 0}
98
+ @change=${!this.isReadonly ? this.handleChange : "return false;"}
117
99
  />
118
100
  `;
119
101
  }
@@ -131,61 +113,18 @@ let LuksoCheckbox = class extends TailwindElement {
131
113
  [this.defaultLabelStyles]: true,
132
114
  ["paragraph-inter-16-regular"]: this.size === "medium" || this.size === "small",
133
115
  ["paragraph-inter-12-semi-bold"]: this.size === "x-small",
134
- ["text-red-65"]: this.error !== ""
116
+ ["text-red-65"]: this.error !== "",
117
+ ["text-neutral-60"]: this.isDisabled
135
118
  })}
136
- >${this.label}</span
137
119
  >
138
- `;
139
- }
140
- profileTemplate() {
141
- let size;
142
- switch (this.size) {
143
- case "medium":
144
- size = "small";
145
- break;
146
- case "small":
147
- case "x-small":
148
- default:
149
- size = "x-small";
150
- break;
151
- }
152
- return x`
153
- <lukso-profile
154
- class="ml-2"
155
- profile-url=${this.profileUrl}
156
- profile-address=${this.profileAddress}
157
- has-identicon=${this.hasIdenticon}
158
- size=${size}
159
- ></lukso-profile>
160
- `;
161
- }
162
- usernameTemplate() {
163
- let size;
164
- switch (this.size) {
165
- case "medium":
166
- size = "large";
167
- break;
168
- case "small":
169
- size = "small";
170
- break;
171
- case "x-small":
172
- default:
173
- size = "x-small";
174
- break;
175
- }
176
- return x`
177
- <lukso-username
178
- class="ml-2"
179
- name=${this.upUsername}
180
- address=${this.upAddress}
181
- size=${size}
182
- ></lukso-username>
120
+ <slot></slot>
121
+ </span>
183
122
  `;
184
123
  }
185
124
  profileUsernameTemplate() {
186
125
  return x`
187
- <div class="flex items-center">
188
- ${this.profileTemplate()} ${this.usernameTemplate()}
126
+ <div class="flex items-center text-neutral-20 gap-2 justify-center">
127
+ <slot></slot>
189
128
  </div>
190
129
  `;
191
130
  }
@@ -194,7 +133,10 @@ let LuksoCheckbox = class extends TailwindElement {
194
133
  <div>
195
134
  <label
196
135
  for=${this.name}
197
- class=${this.defaultContainerStyles}
136
+ class=${customClassMap({
137
+ [this.defaultContainerStyles]: true,
138
+ ["cursor-not-allowed"]: this.isDisabled || this.isReadonly
139
+ })}
198
140
  @mouseenter=${this.handleMouseOver}
199
141
  @mouseleave=${this.handleMouseOut}
200
142
  >
@@ -206,16 +148,18 @@ let LuksoCheckbox = class extends TailwindElement {
206
148
  }
207
149
  handleChange(event) {
208
150
  const target = event.target;
209
- const changeEvent = new CustomEvent("on-change", {
210
- detail: {
211
- value: target.value,
212
- event
213
- },
214
- bubbles: false,
215
- composed: true
216
- });
217
- this.hasChecked = !this.hasChecked;
218
- this.dispatchEvent(changeEvent);
151
+ this.checked = target.checked;
152
+ this.dispatchEvent(
153
+ new CustomEvent("on-change", {
154
+ detail: {
155
+ value: target.value,
156
+ checked: target.checked,
157
+ event
158
+ },
159
+ bubbles: true,
160
+ composed: true
161
+ })
162
+ );
219
163
  }
220
164
  handleMouseOver() {
221
165
  if (!this.isReadonly && !this.isDisabled) {
@@ -231,9 +175,6 @@ let LuksoCheckbox = class extends TailwindElement {
231
175
  __decorateClass([
232
176
  e({ type: String })
233
177
  ], LuksoCheckbox.prototype, "name", 2);
234
- __decorateClass([
235
- e({ type: String })
236
- ], LuksoCheckbox.prototype, "label", 2);
237
178
  __decorateClass([
238
179
  e({ type: String })
239
180
  ], LuksoCheckbox.prototype, "id", 2);
@@ -250,20 +191,8 @@ __decorateClass([
250
191
  e({ type: String })
251
192
  ], LuksoCheckbox.prototype, "error", 2);
252
193
  __decorateClass([
253
- e({ type: String, attribute: "profile-url" })
254
- ], LuksoCheckbox.prototype, "profileUrl", 2);
255
- __decorateClass([
256
- e({ type: String, attribute: "profile-address" })
257
- ], LuksoCheckbox.prototype, "profileAddress", 2);
258
- __decorateClass([
259
- e({ type: Boolean, attribute: "has-identicon" })
260
- ], LuksoCheckbox.prototype, "hasIdenticon", 2);
261
- __decorateClass([
262
- e({ type: String, attribute: "up-username" })
263
- ], LuksoCheckbox.prototype, "upUsername", 2);
264
- __decorateClass([
265
- e({ type: String, attribute: "up-address" })
266
- ], LuksoCheckbox.prototype, "upAddress", 2);
194
+ e({ type: Boolean })
195
+ ], LuksoCheckbox.prototype, "checked", 2);
267
196
  __decorateClass([
268
197
  e({ type: String, attribute: "custom-class" })
269
198
  ], LuksoCheckbox.prototype, "customClass", 2);
@@ -273,15 +202,9 @@ __decorateClass([
273
202
  __decorateClass([
274
203
  e({ type: Boolean, attribute: "is-disabled" })
275
204
  ], LuksoCheckbox.prototype, "isDisabled", 2);
276
- __decorateClass([
277
- e({ type: Boolean, attribute: "is-checked" })
278
- ], LuksoCheckbox.prototype, "isChecked", 2);
279
205
  __decorateClass([
280
206
  t()
281
207
  ], LuksoCheckbox.prototype, "hasFocus", 2);
282
- __decorateClass([
283
- t()
284
- ], LuksoCheckbox.prototype, "hasChecked", 2);
285
208
  __decorateClass([
286
209
  t()
287
210
  ], LuksoCheckbox.prototype, "hasHighlight", 2);
@@ -1 +1 @@
1
- {"version":3,"file":"lukso-checkbox.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-checkbox/lukso-checkbox.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAEhD,OAAO,SAAS,CAAA;AAEhB,kEAAkE;AAClE,QAAA,MAAM,IAAI,EAAE,IAqMX,CAAA;AAED,eAAe,IAAI,CAAA;AA+CnB,8CAA8C;AAC9C,eAAO,MAAM,YAAY,KAAoB,CAAA;AAO7C,qCAAqC;AACrC,eAAO,MAAM,KAAK,KAAoB,CAAA;AAKtC,eAAO,MAAM,KAAK,KAAoB,CAAA;AAMtC,eAAO,MAAM,MAAM,KAAoB,CAAA;AAMvC,eAAO,MAAM,qBAAqB,KAAoB,CAAA;AAMtD,eAAO,MAAM,oBAAoB,KAAoB,CAAA;AAMrD,eAAO,MAAM,qBAAqB,KAAoB,CAAA"}
1
+ {"version":3,"file":"lukso-checkbox.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-checkbox/lukso-checkbox.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAEhD,OAAO,SAAS,CAAA;AAEhB,kEAAkE;AAClE,QAAA,MAAM,IAAI,EAAE,IAmHX,CAAA;AAED,eAAe,IAAI,CAAA;AA4BnB,8CAA8C;AAC9C,eAAO,MAAM,YAAY,KAAoB,CAAA;AAO7C,qCAAqC;AACrC,eAAO,MAAM,KAAK,KAAoB,CAAA;AAKtC,eAAO,MAAM,KAAK,KAAoB,CAAA;AAMtC,eAAO,MAAM,MAAM,KAAoB,CAAA;AA2DvC,eAAO,MAAM,qBAAqB,KAAmC,CAAA;AAOrE,eAAO,MAAM,oBAAoB,KAAmC,CAAA;AAQpE,eAAO,MAAM,qBAAqB,KAAmC,CAAA"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-6683f423.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1c3e0838.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  require('../lukso-share/index.cjs');
8
8
  require('../../index-7dc05ee5.cjs');
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, x } from '../../index-2754b007.js';
1
+ import { a as TailwindElement, x } from '../../index-e26b8ca5.js';
2
2
  import { a as e } from '../../directive-9ec64c08.js';
3
3
  import '../lukso-share/index.js';
4
4
  import '../../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-6683f423.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1c3e0838.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-11254084.cjs');
7
+ const styleMap = require('../../style-map-a55221fe.cjs');
8
8
 
9
9
  const style = ":host {\n display: inline-flex\n}";
10
10
 
@@ -1,6 +1,6 @@
1
- import { x, T as TailwindStyledElement } from '../../index-2754b007.js';
1
+ import { x, T as TailwindStyledElement } from '../../index-e26b8ca5.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-abc9b925.js';
3
+ import { o } from '../../style-map-5f187498.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-6683f423.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1c3e0838.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');
@@ -40,13 +40,14 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
40
40
  this.autofocus = false;
41
41
  this.max = void 0;
42
42
  this.min = void 0;
43
+ this.borderless = false;
43
44
  this.hasHocus = false;
44
45
  this.hasHighlight = false;
45
46
  this.defaultInputStyles = `bg-neutral-100 paragraph-inter-14-regular px-4 py-3
46
- border border-solid h-[48px] placeholder:text-neutral-70
47
+ border-solid h-[48px] placeholder:text-neutral-70
47
48
  outline-none transition transition-all duration-150 appearance-none`;
48
49
  this.defaultUnitStyles = `paragraph-inter-12-regular text-neutral-60 flex px-3.5 items-center relative
49
- border border-solid h-[48px] transition transition-all duration-150
50
+ border-solid h-[48px] transition transition-all duration-150
50
51
  rounded-r-12 border-l-0 before:bg-neutral-90 before:absolute before:top-[calc(50%-12px)] before:left-0
51
52
  before:w-[1px] before:h-[24px] whitespace-nowrap cursor-pointer`;
52
53
  }
@@ -80,7 +81,8 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
80
81
  ["cursor-not-allowed text-neutral-60"]: this.isDisabled,
81
82
  ["text-neutral-20"]: !this.isDisabled,
82
83
  ["cursor-not-allowed"]: this.isReadonly,
83
- [this.customClass]: !!this.customClass
84
+ [this.customClass]: !!this.customClass,
85
+ [this.borderless ? "border-0" : "border"]: true
84
86
  })}
85
87
  @focus=${this.handleFocus}
86
88
  @input=${this.handleInput}
@@ -120,7 +122,8 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
120
122
  class=${index.customClassMap({
121
123
  [this.defaultUnitStyles]: true,
122
124
  [this.error === "" ? "border-neutral-90" : "border-red-85"]: !this.hasHighlight,
123
- [this.error === "" ? "border-neutral-35" : "border-red-65"]: this.hasHighlight
125
+ [this.error === "" ? "border-neutral-35" : "border-red-65"]: this.hasHighlight,
126
+ [this.borderless ? "border-0" : "border"]: true
124
127
  })}
125
128
  @mouseenter=${this.handleMouseOver}
126
129
  @mouseleave=${this.handleMouseOut}
@@ -301,6 +304,9 @@ __decorateClass([
301
304
  __decorateClass([
302
305
  directive.e({ type: Number })
303
306
  ], exports.LuksoInput.prototype, "min", 2);
307
+ __decorateClass([
308
+ directive.e({ type: Boolean })
309
+ ], exports.LuksoInput.prototype, "borderless", 2);
304
310
  __decorateClass([
305
311
  state.t()
306
312
  ], exports.LuksoInput.prototype, "hasHocus", 2);
@@ -19,6 +19,7 @@ export declare class LuksoInput extends TailwindElement {
19
19
  autofocus: boolean;
20
20
  max: number | undefined;
21
21
  min: number | undefined;
22
+ borderless: boolean;
22
23
  private hasHocus;
23
24
  private hasHighlight;
24
25
  private defaultInputStyles;
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, x, A } from '../../index-2754b007.js';
1
+ import { a as TailwindElement, x, A } from '../../index-e26b8ca5.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';
@@ -36,13 +36,14 @@ let LuksoInput = class extends TailwindElement {
36
36
  this.autofocus = false;
37
37
  this.max = void 0;
38
38
  this.min = void 0;
39
+ this.borderless = false;
39
40
  this.hasHocus = false;
40
41
  this.hasHighlight = false;
41
42
  this.defaultInputStyles = `bg-neutral-100 paragraph-inter-14-regular px-4 py-3
42
- border border-solid h-[48px] placeholder:text-neutral-70
43
+ border-solid h-[48px] placeholder:text-neutral-70
43
44
  outline-none transition transition-all duration-150 appearance-none`;
44
45
  this.defaultUnitStyles = `paragraph-inter-12-regular text-neutral-60 flex px-3.5 items-center relative
45
- border border-solid h-[48px] transition transition-all duration-150
46
+ border-solid h-[48px] transition transition-all duration-150
46
47
  rounded-r-12 border-l-0 before:bg-neutral-90 before:absolute before:top-[calc(50%-12px)] before:left-0
47
48
  before:w-[1px] before:h-[24px] whitespace-nowrap cursor-pointer`;
48
49
  }
@@ -76,7 +77,8 @@ let LuksoInput = class extends TailwindElement {
76
77
  ["cursor-not-allowed text-neutral-60"]: this.isDisabled,
77
78
  ["text-neutral-20"]: !this.isDisabled,
78
79
  ["cursor-not-allowed"]: this.isReadonly,
79
- [this.customClass]: !!this.customClass
80
+ [this.customClass]: !!this.customClass,
81
+ [this.borderless ? "border-0" : "border"]: true
80
82
  })}
81
83
  @focus=${this.handleFocus}
82
84
  @input=${this.handleInput}
@@ -116,7 +118,8 @@ let LuksoInput = class extends TailwindElement {
116
118
  class=${customClassMap({
117
119
  [this.defaultUnitStyles]: true,
118
120
  [this.error === "" ? "border-neutral-90" : "border-red-85"]: !this.hasHighlight,
119
- [this.error === "" ? "border-neutral-35" : "border-red-65"]: this.hasHighlight
121
+ [this.error === "" ? "border-neutral-35" : "border-red-65"]: this.hasHighlight,
122
+ [this.borderless ? "border-0" : "border"]: true
120
123
  })}
121
124
  @mouseenter=${this.handleMouseOver}
122
125
  @mouseleave=${this.handleMouseOut}
@@ -297,6 +300,9 @@ __decorateClass([
297
300
  __decorateClass([
298
301
  e({ type: Number })
299
302
  ], LuksoInput.prototype, "min", 2);
303
+ __decorateClass([
304
+ e({ type: Boolean })
305
+ ], LuksoInput.prototype, "borderless", 2);
300
306
  __decorateClass([
301
307
  t()
302
308
  ], LuksoInput.prototype, "hasHocus", 2);
@@ -20,4 +20,6 @@ export declare const FullWidth: any;
20
20
  export declare const Autofocus: any;
21
21
  /** With `min` and `max` property you can specify minimum or maximum value that can be entered. It works with `number`, `range`, `date`, `datetime-local`, `month`, `time` and `week` input types */
22
22
  export declare const MinMaxValue: any;
23
+ /** With `borderless` property you can render input without border. */
24
+ export declare const Borderless: any;
23
25
  //# sourceMappingURL=lukso-input.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lukso-input.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-input/lukso-input.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAEhD,OAAO,SAAS,CAAA;AAEhB,+DAA+D;AAC/D,QAAA,MAAM,IAAI,EAAE,IA4NX,CAAA;AAED,eAAe,IAAI,CAAA;AAmDnB,8CAA8C;AAC9C,eAAO,MAAM,YAAY,KAAoB,CAAA;AAK7C,gDAAgD;AAChD,eAAO,MAAM,eAAe,KAAoB,CAAA;AAKhD,qCAAqC;AACrC,eAAO,MAAM,KAAK,KAAoB,CAAA;AAKtC,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,KAAoB,CAAA;AAMpD,qCAAqC;AACrC,eAAO,MAAM,KAAK,KAAoB,CAAA;AAOtC,oCAAoC;AACpC,eAAO,MAAM,IAAI,KAAoB,CAAA;AAKrC,+FAA+F;AAC/F,eAAO,MAAM,SAAS,KAAoB,CAAA;AAK1C,gEAAgE;AAChE,eAAO,MAAM,SAAS,KAAoB,CAAA;AAK1C,oMAAoM;AACpM,eAAO,MAAM,WAAW,KAAoB,CAAA"}
1
+ {"version":3,"file":"lukso-input.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-input/lukso-input.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAEhD,OAAO,SAAS,CAAA;AAEhB,+DAA+D;AAC/D,QAAA,MAAM,IAAI,EAAE,IAmOX,CAAA;AAED,eAAe,IAAI,CAAA;AAqDnB,8CAA8C;AAC9C,eAAO,MAAM,YAAY,KAAoB,CAAA;AAK7C,gDAAgD;AAChD,eAAO,MAAM,eAAe,KAAoB,CAAA;AAKhD,qCAAqC;AACrC,eAAO,MAAM,KAAK,KAAoB,CAAA;AAKtC,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,KAAoB,CAAA;AAMpD,qCAAqC;AACrC,eAAO,MAAM,KAAK,KAAoB,CAAA;AAOtC,oCAAoC;AACpC,eAAO,MAAM,IAAI,KAAoB,CAAA;AAKrC,+FAA+F;AAC/F,eAAO,MAAM,SAAS,KAAoB,CAAA;AAK1C,gEAAgE;AAChE,eAAO,MAAM,SAAS,KAAoB,CAAA;AAK1C,oMAAoM;AACpM,eAAO,MAAM,WAAW,KAAoB,CAAA;AAO5C,sEAAsE;AACtE,eAAO,MAAM,UAAU,KAAoB,CAAA"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-6683f423.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1c3e0838.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, x } from '../../index-2754b007.js';
1
+ import { a as TailwindElement, x } from '../../index-e26b8ca5.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,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-6683f423.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1c3e0838.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-tag/index.cjs');
11
- require('../../style-map-11254084.cjs');
11
+ require('../../style-map-a55221fe.cjs');
12
12
 
13
13
  var __defProp = Object.defineProperty;
14
14
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,10 +1,10 @@
1
- import { a as TailwindElement, x } from '../../index-2754b007.js';
1
+ import { a as TailwindElement, x } from '../../index-e26b8ca5.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-tag/index.js';
7
- import '../../style-map-abc9b925.js';
7
+ import '../../style-map-5f187498.js';
8
8
 
9
9
  var __defProp = Object.defineProperty;
10
10
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-6683f423.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1c3e0838.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-11254084.cjs');
7
+ const styleMap = require('../../style-map-a55221fe.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, x } from '../../index-2754b007.js';
1
+ import { a as TailwindElement, x } from '../../index-e26b8ca5.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-abc9b925.js';
3
+ import { o } from '../../style-map-5f187498.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,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-6683f423.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1c3e0838.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const styleMap = require('../../style-map-ce3031bc.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, x } from '../../index-2754b007.js';
1
+ import { a as TailwindElement, x } from '../../index-e26b8ca5.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { o } from '../../style-map-06219dec.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-6683f423.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1c3e0838.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { A, b as T, a as TailwindElement, x } from '../../index-2754b007.js';
1
+ import { A, b as T, a as TailwindElement, x } from '../../index-e26b8ca5.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,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-6683f423.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1c3e0838.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 { T as TailwindStyledElement, x } from '../../index-2754b007.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-e26b8ca5.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,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-6683f423.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1c3e0838.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-11254084.cjs');
7
+ const styleMap = require('../../style-map-a55221fe.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, x } from '../../index-2754b007.js';
1
+ import { a as TailwindElement, x } from '../../index-e26b8ca5.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-abc9b925.js';
3
+ import { o } from '../../style-map-5f187498.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
 
6
6
  var __defProp = Object.defineProperty;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-6683f423.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1c3e0838.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-11254084.cjs');
7
+ const styleMap = require('../../style-map-a55221fe.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
 
10
10
  const style = ":host {\n display: inline-flex\n}";
@@ -1,6 +1,6 @@
1
- import { T as TailwindStyledElement, x } from '../../index-2754b007.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-e26b8ca5.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { o } from '../../style-map-abc9b925.js';
3
+ import { o } from '../../style-map-5f187498.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
 
6
6
  const style = ":host {\n display: inline-flex\n}";
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-6683f423.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1c3e0838.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-11254084.cjs');
11
+ require('../../style-map-a55221fe.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, x } from '../../index-2754b007.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-e26b8ca5.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-abc9b925.js';
7
+ import '../../style-map-5f187498.js';
8
8
 
9
9
  const style = ":host {\n display: flex;\n height: 100%\n}";
10
10