@lukso/web-components 1.172.13 → 1.172.14

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 (126) hide show
  1. package/dist/chunks/cn-LM_JlZIN.js +36 -0
  2. package/dist/chunks/cn-zamUNFMe.js +39 -0
  3. package/dist/chunks/directive-CY66atYi.js +22 -0
  4. package/dist/chunks/directive-DUHAbymA.js +15 -0
  5. package/dist/chunks/index-BNt_JinF.js +212 -0
  6. package/dist/chunks/{index-DG4rMUh3.js → index-BOEPqh0N.js} +1 -1
  7. package/dist/chunks/{index-F8ll4iy2.js → index-C5S-_QDF.js} +1 -1
  8. package/dist/chunks/{index-B_H2eYG_.js → index-CA6SrfZ-.js} +9 -8
  9. package/dist/chunks/{index-CZGvLdJ0.js → index-CqZm8OfY.js} +1 -2
  10. package/dist/chunks/index-Cy2_2lFt.js +214 -0
  11. package/dist/chunks/{index-Dn2DJhID.js → index-Ds-r8fCt.js} +77 -74
  12. package/dist/chunks/{index-C5YyB6ug.js → index-DvLZWpq9.js} +2 -3
  13. package/dist/chunks/{index-D_5wz2k1.js → index-UVrFZqIM.js} +79 -76
  14. package/dist/chunks/{index-BHAtoIlu.js → index-cakeic-M.js} +9 -8
  15. package/dist/chunks/{style-map-B7XFhSOK.js → style-map-AEeBQfPb.js} +2 -3
  16. package/dist/chunks/{style-map-BPljJihp.js → style-map-auscxO0L.js} +1 -2
  17. package/dist/components/index.cjs +4 -5
  18. package/dist/components/index.js +4 -5
  19. package/dist/components/lukso-alert/index.cjs +16 -15
  20. package/dist/components/lukso-alert/index.js +16 -15
  21. package/dist/components/lukso-button/index.cjs +42 -40
  22. package/dist/components/lukso-button/index.js +39 -37
  23. package/dist/components/lukso-card/index.cjs +66 -71
  24. package/dist/components/lukso-card/index.js +48 -53
  25. package/dist/components/lukso-checkbox/index.cjs +27 -26
  26. package/dist/components/lukso-checkbox/index.js +27 -26
  27. package/dist/components/lukso-collapse/index.cjs +27 -26
  28. package/dist/components/lukso-collapse/index.js +26 -25
  29. package/dist/components/lukso-color-picker/index.cjs +33 -31
  30. package/dist/components/lukso-color-picker/index.js +32 -30
  31. package/dist/components/lukso-dropdown/index.cjs +20 -19
  32. package/dist/components/lukso-dropdown/index.js +20 -19
  33. package/dist/components/lukso-dropdown-option/index.cjs +12 -11
  34. package/dist/components/lukso-dropdown-option/index.js +12 -11
  35. package/dist/components/lukso-footer/index.cjs +5 -4
  36. package/dist/components/lukso-footer/index.js +5 -4
  37. package/dist/components/lukso-form-description/index.cjs +7 -6
  38. package/dist/components/lukso-form-description/index.js +7 -6
  39. package/dist/components/lukso-form-error/index.cjs +7 -6
  40. package/dist/components/lukso-form-error/index.js +7 -6
  41. package/dist/components/lukso-form-label/index.cjs +8 -7
  42. package/dist/components/lukso-form-label/index.js +8 -7
  43. package/dist/components/lukso-icon/index.cjs +268 -267
  44. package/dist/components/lukso-icon/index.js +268 -267
  45. package/dist/components/lukso-image/index.cjs +12 -12
  46. package/dist/components/lukso-image/index.js +12 -12
  47. package/dist/components/lukso-input/index.cjs +49 -47
  48. package/dist/components/lukso-input/index.js +48 -46
  49. package/dist/components/lukso-markdown/index.cjs +13 -83
  50. package/dist/components/lukso-markdown/index.js +13 -83
  51. package/dist/components/lukso-markdown-editor/index.cjs +68 -67
  52. package/dist/components/lukso-markdown-editor/index.js +67 -66
  53. package/dist/components/lukso-modal/index.cjs +12 -11
  54. package/dist/components/lukso-modal/index.js +11 -10
  55. package/dist/components/lukso-navbar/index.cjs +30 -30
  56. package/dist/components/lukso-navbar/index.js +30 -30
  57. package/dist/components/lukso-pagination/index.cjs +16 -16
  58. package/dist/components/lukso-pagination/index.js +16 -16
  59. package/dist/components/lukso-profile/index.cjs +162 -11
  60. package/dist/components/lukso-profile/index.js +165 -5
  61. package/dist/components/lukso-progress/index.cjs +16 -13
  62. package/dist/components/lukso-progress/index.js +13 -10
  63. package/dist/components/lukso-qr-code/index.cjs +17 -34
  64. package/dist/components/lukso-qr-code/index.js +16 -33
  65. package/dist/components/lukso-radio/index.cjs +27 -25
  66. package/dist/components/lukso-radio/index.js +25 -23
  67. package/dist/components/lukso-radio-group/index.cjs +9 -9
  68. package/dist/components/lukso-radio-group/index.js +9 -9
  69. package/dist/components/lukso-sanitize/index.cjs +5 -4
  70. package/dist/components/lukso-sanitize/index.js +5 -4
  71. package/dist/components/lukso-search/index.cjs +11 -8
  72. package/dist/components/lukso-search/index.js +11 -8
  73. package/dist/components/lukso-select/index.cjs +47 -46
  74. package/dist/components/lukso-select/index.js +46 -45
  75. package/dist/components/lukso-share/index.cjs +7 -6
  76. package/dist/components/lukso-share/index.js +7 -6
  77. package/dist/components/lukso-switch/index.cjs +16 -15
  78. package/dist/components/lukso-switch/index.js +16 -15
  79. package/dist/components/lukso-tag/index.cjs +13 -12
  80. package/dist/components/lukso-tag/index.js +12 -11
  81. package/dist/components/lukso-terms/index.cjs +9 -8
  82. package/dist/components/lukso-terms/index.js +9 -8
  83. package/dist/components/lukso-textarea/index.cjs +36 -34
  84. package/dist/components/lukso-textarea/index.js +35 -33
  85. package/dist/components/lukso-tooltip/index.cjs +27 -3461
  86. package/dist/components/lukso-tooltip/index.js +27 -3461
  87. package/dist/components/lukso-username/index.cjs +11 -7
  88. package/dist/components/lukso-username/index.js +11 -7
  89. package/dist/components/lukso-wizard/index.cjs +13 -12
  90. package/dist/components/lukso-wizard/index.js +11 -10
  91. package/dist/index.cjs +6 -6
  92. package/dist/index.js +5 -5
  93. package/dist/shared/tailwind-element/index.cjs +15 -3
  94. package/dist/shared/tailwind-element/index.js +17 -1
  95. package/dist/vite.full.config.d.ts.map +1 -1
  96. package/package.json +7 -1
  97. package/dist/chunks/_commonjsHelpers-B85MJLTf.js +0 -5
  98. package/dist/chunks/_commonjsHelpers-CFO10eej.js +0 -7
  99. package/dist/chunks/axe-DJKac19y.js +0 -35093
  100. package/dist/chunks/axe-MHuN9KU0.js +0 -35097
  101. package/dist/chunks/base-Bn-zDNuZ.js +0 -93
  102. package/dist/chunks/base-Cl6v8-BZ.js +0 -8
  103. package/dist/chunks/base-KJhhKWYy.js +0 -91
  104. package/dist/chunks/base-NFGX42U4.js +0 -10
  105. package/dist/chunks/chunk-LQIOVPBE-CGhQ79Di.js +0 -370
  106. package/dist/chunks/chunk-LQIOVPBE-kQFZF_OS.js +0 -372
  107. package/dist/chunks/directive-BKuZRRPO.js +0 -8
  108. package/dist/chunks/directive-DT5Y-Nw0.js +0 -12
  109. package/dist/chunks/index-5X9ujrWL.js +0 -41
  110. package/dist/chunks/index-B9iart53.js +0 -2545
  111. package/dist/chunks/index-BAf8Hzhe.js +0 -611
  112. package/dist/chunks/index-BBFSnMaE.js +0 -1345
  113. package/dist/chunks/index-BDyLu6M0.js +0 -609
  114. package/dist/chunks/index-BxQ_0s_1.js +0 -50
  115. package/dist/chunks/index-CaJky2qL.js +0 -2547
  116. package/dist/chunks/index-glHBylgQ.js +0 -1347
  117. package/dist/chunks/isAddress-B1R_6-uN.js +0 -745
  118. package/dist/chunks/isAddress-BUdSrCaY.js +0 -743
  119. package/dist/chunks/property-D6IL6zax.js +0 -11
  120. package/dist/chunks/property-DfumgIL6.js +0 -9
  121. package/dist/chunks/query-CHb9Ft_d.js +0 -9
  122. package/dist/chunks/query-D3HF7Pde.js +0 -11
  123. package/dist/chunks/state-CFjY89m3.js +0 -11
  124. package/dist/chunks/state-CaelFSbE.js +0 -9
  125. package/dist/chunks/unsafe-html-BHBLEMoa.js +0 -10
  126. package/dist/chunks/unsafe-html-DiwkOQlV.js +0 -12
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../chunks/index-BxQ_0s_1.js');
6
- const property = require('../../chunks/property-D6IL6zax.js');
7
- const state = require('../../chunks/state-CFjY89m3.js');
8
- const styleMap = require('../../chunks/style-map-B7XFhSOK.js');
9
- const index = require('../../chunks/index-CaJky2qL.js');
5
+ const lit = require('lit');
6
+ const decorators_js = require('lit/decorators.js');
7
+ const styleMap = require('../../chunks/style-map-AEeBQfPb.js');
8
+ const tailwindVariants = require('tailwind-variants');
10
9
  const safeCustomElement = require('../../chunks/safe-custom-element-tQ-epw6h.js');
10
+ const shared_tailwindElement_index = require('../../shared/tailwind-element/index.cjs');
11
11
 
12
12
  var __defProp = Object.defineProperty;
13
13
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -27,7 +27,7 @@ exports.LuksoImage = class LuksoImage extends shared_tailwindElement_index.Tailw
27
27
  this.isLoading = true;
28
28
  this.resolvedPlaceholder = "";
29
29
  this.hasError = false;
30
- this.imageStyles = index.ce({
30
+ this.imageStyles = tailwindVariants.tv({
31
31
  slots: {
32
32
  wrapper: "size-full bg-neutral-100",
33
33
  placeholder: "bg-[50%] bg-no-repeat bg-cover bg-neutral-90 relative size-full",
@@ -89,7 +89,7 @@ exports.LuksoImage = class LuksoImage extends shared_tailwindElement_index.Tailw
89
89
  isLoading: this.isLoading,
90
90
  hasError: this.hasError
91
91
  });
92
- return shared_tailwindElement_index.x`
92
+ return lit.html`
93
93
  <div class=${wrapper()}>
94
94
  <div
95
95
  class=${placeholder()}
@@ -111,19 +111,19 @@ exports.LuksoImage = class LuksoImage extends shared_tailwindElement_index.Tailw
111
111
  }
112
112
  };
113
113
  __decorateClass([
114
- property.n({ type: String, reflect: true })
114
+ decorators_js.property({ type: String, reflect: true })
115
115
  ], exports.LuksoImage.prototype, "src", 2);
116
116
  __decorateClass([
117
- property.n({ type: String })
117
+ decorators_js.property({ type: String })
118
118
  ], exports.LuksoImage.prototype, "placeholder", 2);
119
119
  __decorateClass([
120
- state.r()
120
+ decorators_js.state()
121
121
  ], exports.LuksoImage.prototype, "isLoading", 2);
122
122
  __decorateClass([
123
- state.r()
123
+ decorators_js.state()
124
124
  ], exports.LuksoImage.prototype, "resolvedPlaceholder", 2);
125
125
  __decorateClass([
126
- state.r()
126
+ decorators_js.state()
127
127
  ], exports.LuksoImage.prototype, "hasError", 2);
128
128
  exports.LuksoImage = __decorateClass([
129
129
  safeCustomElement.safeCustomElement("lukso-image")
@@ -1,9 +1,9 @@
1
- import { T as TailwindElement, x } from '../../chunks/index-5X9ujrWL.js';
2
- import { n } from '../../chunks/property-DfumgIL6.js';
3
- import { r } from '../../chunks/state-CaelFSbE.js';
4
- import { o } from '../../chunks/style-map-BPljJihp.js';
5
- import { c as ce } from '../../chunks/index-B9iart53.js';
1
+ import { html } from 'lit';
2
+ import { property, state } from 'lit/decorators.js';
3
+ import { o } from '../../chunks/style-map-auscxO0L.js';
4
+ import { tv } from 'tailwind-variants';
6
5
  import { s as safeCustomElement } from '../../chunks/safe-custom-element-qdGIR_v6.js';
6
+ import { TailwindElement } from '../../shared/tailwind-element/index.js';
7
7
 
8
8
  var __defProp = Object.defineProperty;
9
9
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -23,7 +23,7 @@ let LuksoImage = class extends TailwindElement {
23
23
  this.isLoading = true;
24
24
  this.resolvedPlaceholder = "";
25
25
  this.hasError = false;
26
- this.imageStyles = ce({
26
+ this.imageStyles = tv({
27
27
  slots: {
28
28
  wrapper: "size-full bg-neutral-100",
29
29
  placeholder: "bg-[50%] bg-no-repeat bg-cover bg-neutral-90 relative size-full",
@@ -85,7 +85,7 @@ let LuksoImage = class extends TailwindElement {
85
85
  isLoading: this.isLoading,
86
86
  hasError: this.hasError
87
87
  });
88
- return x`
88
+ return html`
89
89
  <div class=${wrapper()}>
90
90
  <div
91
91
  class=${placeholder()}
@@ -107,19 +107,19 @@ let LuksoImage = class extends TailwindElement {
107
107
  }
108
108
  };
109
109
  __decorateClass([
110
- n({ type: String, reflect: true })
110
+ property({ type: String, reflect: true })
111
111
  ], LuksoImage.prototype, "src", 2);
112
112
  __decorateClass([
113
- n({ type: String })
113
+ property({ type: String })
114
114
  ], LuksoImage.prototype, "placeholder", 2);
115
115
  __decorateClass([
116
- r()
116
+ state()
117
117
  ], LuksoImage.prototype, "isLoading", 2);
118
118
  __decorateClass([
119
- r()
119
+ state()
120
120
  ], LuksoImage.prototype, "resolvedPlaceholder", 2);
121
121
  __decorateClass([
122
- r()
122
+ state()
123
123
  ], LuksoImage.prototype, "hasError", 2);
124
124
  LuksoImage = __decorateClass([
125
125
  safeCustomElement("lukso-image")
@@ -2,18 +2,20 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../chunks/index-BxQ_0s_1.js');
6
- const property = require('../../chunks/property-D6IL6zax.js');
7
- const state = require('../../chunks/state-CFjY89m3.js');
8
- const index = require('../../chunks/index-CaJky2qL.js');
5
+ const lit = require('lit');
6
+ const decorators_js = require('lit/decorators.js');
7
+ const tailwindVariants = require('tailwind-variants');
9
8
  const safeCustomElement = require('../../chunks/safe-custom-element-tQ-epw6h.js');
10
9
  require('../lukso-icon/index.cjs');
11
- require('../../chunks/index-BHAtoIlu.js');
10
+ require('../../chunks/index-cakeic-M.js');
12
11
  require('../lukso-form-label/index.cjs');
13
12
  require('../lukso-form-description/index.cjs');
14
13
  require('../lukso-form-error/index.cjs');
14
+ const shared_tailwindElement_index = require('../../shared/tailwind-element/index.cjs');
15
15
  require('../../tailwind-config.cjs');
16
- const axe = require('../../chunks/axe-MHuN9KU0.js');
16
+ const cn = require('../../chunks/cn-zamUNFMe.js');
17
+ require('viem');
18
+ require('axe-core');
17
19
 
18
20
  const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
19
21
 
@@ -45,7 +47,7 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
45
47
  this.keepFocusOnEscape = false;
46
48
  this.hasFocus = false;
47
49
  this.hasHighlight = false;
48
- this.inputStyles = index.ce({
50
+ this.inputStyles = tailwindVariants.tv({
49
51
  slots: {
50
52
  wrapper: "group flex",
51
53
  input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
@@ -172,23 +174,23 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
172
174
  }
173
175
  // @input works better in vue
174
176
  inputTemplate(styles) {
175
- return shared_tailwindElement_index.x`
177
+ return lit.html`
176
178
  <input
177
- name=${this.name ? this.name : shared_tailwindElement_index.E}
179
+ name=${this.name ? this.name : lit.nothing}
178
180
  type=${this.type}
179
181
  .value=${this.value}
180
- placeholder=${this.placeholder ? this.placeholder : shared_tailwindElement_index.E}
182
+ placeholder=${this.placeholder ? this.placeholder : lit.nothing}
181
183
  ?autofocus=${this.autofocus}
182
- min=${this.min ? this.min : shared_tailwindElement_index.E}
183
- max=${this.max ? this.max : shared_tailwindElement_index.E}
184
+ min=${this.min ? this.min : lit.nothing}
185
+ max=${this.max ? this.max : lit.nothing}
184
186
  autocomplete=${this.autocomplete}
185
- ref=${this.ref ? this.ref : shared_tailwindElement_index.E}
186
- id=${this.id ? this.id : shared_tailwindElement_index.E}
187
+ ref=${this.ref ? this.ref : lit.nothing}
188
+ id=${this.id ? this.id : lit.nothing}
187
189
  data-testid=${this.name ? `input-${this.name}` : "input"}
188
- accept=${this.accept ? this.accept : shared_tailwindElement_index.E}
190
+ accept=${this.accept ? this.accept : lit.nothing}
189
191
  ?readonly=${this.isReadonly ? true : void 0}
190
192
  ?disabled=${this.isDisabled ? true : void 0}
191
- class=${axe.cn(styles, this.customClass)}
193
+ class=${cn.cn(styles, this.customClass)}
192
194
  @focus=${this.handleFocus}
193
195
  @input=${this.handleInput}
194
196
  @change=${this.handleChange}
@@ -203,7 +205,7 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
203
205
  `;
204
206
  }
205
207
  unitTemplate(styles) {
206
- return shared_tailwindElement_index.x`<div
208
+ return lit.html`<div
207
209
  class=${styles}
208
210
  @mouseenter=${this.handleMouseOver}
209
211
  @mouseleave=${this.handleMouseOut}
@@ -214,7 +216,7 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
214
216
  }
215
217
  rightIconTemplate(styles) {
216
218
  const iconSize = this.size === "small" ? "small" : "medium";
217
- return shared_tailwindElement_index.x`<lukso-icon
219
+ return lit.html`<lukso-icon
218
220
  name=${this.rightIcon}
219
221
  size=${iconSize}
220
222
  class=${styles}
@@ -370,7 +372,7 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
370
372
  hasRightIcon: !!this.rightIcon,
371
373
  isRightIconClickable: this.isRightIconClickable
372
374
  });
373
- return shared_tailwindElement_index.x`
375
+ return lit.html`
374
376
  <div class="w-[inherit]">
375
377
  <lukso-form-label
376
378
  for-name=${this.name}
@@ -382,9 +384,9 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
382
384
  <div class=${wrapper()}>
383
385
  <div class="relative w-[inherit]">
384
386
  ${this.inputTemplate(input())}
385
- ${this.rightIcon ? this.rightIconTemplate(rightIcon()) : shared_tailwindElement_index.E}
387
+ ${this.rightIcon ? this.rightIconTemplate(rightIcon()) : lit.nothing}
386
388
  </div>
387
- ${this.unit ? this.unitTemplate(unit()) : shared_tailwindElement_index.E}
389
+ ${this.unit ? this.unitTemplate(unit()) : lit.nothing}
388
390
  </div>
389
391
  <lukso-form-error error=${this.error}></lukso-form-error>
390
392
  </div>
@@ -392,82 +394,82 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
392
394
  }
393
395
  };
394
396
  __decorateClass([
395
- property.n({ type: String })
397
+ decorators_js.property({ type: String })
396
398
  ], exports.LuksoInput.prototype, "value", 2);
397
399
  __decorateClass([
398
- property.n({ type: String })
400
+ decorators_js.property({ type: String })
399
401
  ], exports.LuksoInput.prototype, "name", 2);
400
402
  __decorateClass([
401
- property.n({ type: String })
403
+ decorators_js.property({ type: String })
402
404
  ], exports.LuksoInput.prototype, "type", 2);
403
405
  __decorateClass([
404
- property.n({ type: String })
406
+ decorators_js.property({ type: String })
405
407
  ], exports.LuksoInput.prototype, "placeholder", 2);
406
408
  __decorateClass([
407
- property.n({ type: String })
409
+ decorators_js.property({ type: String })
408
410
  ], exports.LuksoInput.prototype, "label", 2);
409
411
  __decorateClass([
410
- property.n({ type: String })
412
+ decorators_js.property({ type: String })
411
413
  ], exports.LuksoInput.prototype, "autocomplete", 2);
412
414
  __decorateClass([
413
- property.n({ type: String })
415
+ decorators_js.property({ type: String })
414
416
  ], exports.LuksoInput.prototype, "id", 2);
415
417
  __decorateClass([
416
- property.n({ type: String })
418
+ decorators_js.property({ type: String })
417
419
  ], exports.LuksoInput.prototype, "ref", 2);
418
420
  __decorateClass([
419
- property.n({ type: String })
421
+ decorators_js.property({ type: String })
420
422
  ], exports.LuksoInput.prototype, "accept", 2);
421
423
  __decorateClass([
422
- property.n({ type: String })
424
+ decorators_js.property({ type: String })
423
425
  ], exports.LuksoInput.prototype, "description", 2);
424
426
  __decorateClass([
425
- property.n({ type: String })
427
+ decorators_js.property({ type: String })
426
428
  ], exports.LuksoInput.prototype, "error", 2);
427
429
  __decorateClass([
428
- property.n({ type: String })
430
+ decorators_js.property({ type: String })
429
431
  ], exports.LuksoInput.prototype, "unit", 2);
430
432
  __decorateClass([
431
- property.n({ type: String, attribute: "custom-class" })
433
+ decorators_js.property({ type: String, attribute: "custom-class" })
432
434
  ], exports.LuksoInput.prototype, "customClass", 2);
433
435
  __decorateClass([
434
- property.n({ type: Boolean, attribute: "is-full-width" })
436
+ decorators_js.property({ type: Boolean, attribute: "is-full-width" })
435
437
  ], exports.LuksoInput.prototype, "isFullWidth", 2);
436
438
  __decorateClass([
437
- property.n({ type: Boolean, attribute: "is-readonly" })
439
+ decorators_js.property({ type: Boolean, attribute: "is-readonly" })
438
440
  ], exports.LuksoInput.prototype, "isReadonly", 2);
439
441
  __decorateClass([
440
- property.n({ type: Boolean, attribute: "is-disabled" })
442
+ decorators_js.property({ type: Boolean, attribute: "is-disabled" })
441
443
  ], exports.LuksoInput.prototype, "isDisabled", 2);
442
444
  __decorateClass([
443
- property.n({ type: Boolean })
445
+ decorators_js.property({ type: Boolean })
444
446
  ], exports.LuksoInput.prototype, "autofocus", 2);
445
447
  __decorateClass([
446
- property.n({ type: Number })
448
+ decorators_js.property({ type: Number })
447
449
  ], exports.LuksoInput.prototype, "max", 2);
448
450
  __decorateClass([
449
- property.n({ type: Number })
451
+ decorators_js.property({ type: Number })
450
452
  ], exports.LuksoInput.prototype, "min", 2);
451
453
  __decorateClass([
452
- property.n({ type: Boolean })
454
+ decorators_js.property({ type: Boolean })
453
455
  ], exports.LuksoInput.prototype, "borderless", 2);
454
456
  __decorateClass([
455
- property.n({ type: String })
457
+ decorators_js.property({ type: String })
456
458
  ], exports.LuksoInput.prototype, "size", 2);
457
459
  __decorateClass([
458
- property.n({ type: String, attribute: "right-icon" })
460
+ decorators_js.property({ type: String, attribute: "right-icon" })
459
461
  ], exports.LuksoInput.prototype, "rightIcon", 2);
460
462
  __decorateClass([
461
- property.n({ type: Boolean, attribute: "is-right-icon-clickable" })
463
+ decorators_js.property({ type: Boolean, attribute: "is-right-icon-clickable" })
462
464
  ], exports.LuksoInput.prototype, "isRightIconClickable", 2);
463
465
  __decorateClass([
464
- property.n({ type: Boolean, attribute: "keep-focus-on-escape" })
466
+ decorators_js.property({ type: Boolean, attribute: "keep-focus-on-escape" })
465
467
  ], exports.LuksoInput.prototype, "keepFocusOnEscape", 2);
466
468
  __decorateClass([
467
- state.r()
469
+ decorators_js.state()
468
470
  ], exports.LuksoInput.prototype, "hasFocus", 2);
469
471
  __decorateClass([
470
- state.r()
472
+ decorators_js.state()
471
473
  ], exports.LuksoInput.prototype, "hasHighlight", 2);
472
474
  exports.LuksoInput = __decorateClass([
473
475
  safeCustomElement.safeCustomElement("lukso-input")
@@ -1,15 +1,17 @@
1
- import { b as TailwindStyledElement, E, x } from '../../chunks/index-5X9ujrWL.js';
2
- import { n } from '../../chunks/property-DfumgIL6.js';
3
- import { r } from '../../chunks/state-CaelFSbE.js';
4
- import { c as ce } from '../../chunks/index-B9iart53.js';
1
+ import { nothing, html } from 'lit';
2
+ import { property, state } from 'lit/decorators.js';
3
+ import { tv } from 'tailwind-variants';
5
4
  import { s as safeCustomElement } from '../../chunks/safe-custom-element-qdGIR_v6.js';
6
5
  import '../lukso-icon/index.js';
7
- import '../../chunks/index-B_H2eYG_.js';
6
+ import '../../chunks/index-CA6SrfZ-.js';
8
7
  import '../lukso-form-label/index.js';
9
8
  import '../lukso-form-description/index.js';
10
9
  import '../lukso-form-error/index.js';
10
+ import { TailwindStyledElement } from '../../shared/tailwind-element/index.js';
11
11
  import '../../tailwind-config.js';
12
- import { c as cn } from '../../chunks/axe-DJKac19y.js';
12
+ import { c as cn } from '../../chunks/cn-LM_JlZIN.js';
13
+ import 'viem';
14
+ import 'axe-core';
13
15
 
14
16
  const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
15
17
 
@@ -41,7 +43,7 @@ let LuksoInput = class extends TailwindStyledElement(style) {
41
43
  this.keepFocusOnEscape = false;
42
44
  this.hasFocus = false;
43
45
  this.hasHighlight = false;
44
- this.inputStyles = ce({
46
+ this.inputStyles = tv({
45
47
  slots: {
46
48
  wrapper: "group flex",
47
49
  input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
@@ -168,20 +170,20 @@ let LuksoInput = class extends TailwindStyledElement(style) {
168
170
  }
169
171
  // @input works better in vue
170
172
  inputTemplate(styles) {
171
- return x`
173
+ return html`
172
174
  <input
173
- name=${this.name ? this.name : E}
175
+ name=${this.name ? this.name : nothing}
174
176
  type=${this.type}
175
177
  .value=${this.value}
176
- placeholder=${this.placeholder ? this.placeholder : E}
178
+ placeholder=${this.placeholder ? this.placeholder : nothing}
177
179
  ?autofocus=${this.autofocus}
178
- min=${this.min ? this.min : E}
179
- max=${this.max ? this.max : E}
180
+ min=${this.min ? this.min : nothing}
181
+ max=${this.max ? this.max : nothing}
180
182
  autocomplete=${this.autocomplete}
181
- ref=${this.ref ? this.ref : E}
182
- id=${this.id ? this.id : E}
183
+ ref=${this.ref ? this.ref : nothing}
184
+ id=${this.id ? this.id : nothing}
183
185
  data-testid=${this.name ? `input-${this.name}` : "input"}
184
- accept=${this.accept ? this.accept : E}
186
+ accept=${this.accept ? this.accept : nothing}
185
187
  ?readonly=${this.isReadonly ? true : void 0}
186
188
  ?disabled=${this.isDisabled ? true : void 0}
187
189
  class=${cn(styles, this.customClass)}
@@ -199,7 +201,7 @@ let LuksoInput = class extends TailwindStyledElement(style) {
199
201
  `;
200
202
  }
201
203
  unitTemplate(styles) {
202
- return x`<div
204
+ return html`<div
203
205
  class=${styles}
204
206
  @mouseenter=${this.handleMouseOver}
205
207
  @mouseleave=${this.handleMouseOut}
@@ -210,7 +212,7 @@ let LuksoInput = class extends TailwindStyledElement(style) {
210
212
  }
211
213
  rightIconTemplate(styles) {
212
214
  const iconSize = this.size === "small" ? "small" : "medium";
213
- return x`<lukso-icon
215
+ return html`<lukso-icon
214
216
  name=${this.rightIcon}
215
217
  size=${iconSize}
216
218
  class=${styles}
@@ -366,7 +368,7 @@ let LuksoInput = class extends TailwindStyledElement(style) {
366
368
  hasRightIcon: !!this.rightIcon,
367
369
  isRightIconClickable: this.isRightIconClickable
368
370
  });
369
- return x`
371
+ return html`
370
372
  <div class="w-[inherit]">
371
373
  <lukso-form-label
372
374
  for-name=${this.name}
@@ -378,9 +380,9 @@ let LuksoInput = class extends TailwindStyledElement(style) {
378
380
  <div class=${wrapper()}>
379
381
  <div class="relative w-[inherit]">
380
382
  ${this.inputTemplate(input())}
381
- ${this.rightIcon ? this.rightIconTemplate(rightIcon()) : E}
383
+ ${this.rightIcon ? this.rightIconTemplate(rightIcon()) : nothing}
382
384
  </div>
383
- ${this.unit ? this.unitTemplate(unit()) : E}
385
+ ${this.unit ? this.unitTemplate(unit()) : nothing}
384
386
  </div>
385
387
  <lukso-form-error error=${this.error}></lukso-form-error>
386
388
  </div>
@@ -388,82 +390,82 @@ let LuksoInput = class extends TailwindStyledElement(style) {
388
390
  }
389
391
  };
390
392
  __decorateClass([
391
- n({ type: String })
393
+ property({ type: String })
392
394
  ], LuksoInput.prototype, "value", 2);
393
395
  __decorateClass([
394
- n({ type: String })
396
+ property({ type: String })
395
397
  ], LuksoInput.prototype, "name", 2);
396
398
  __decorateClass([
397
- n({ type: String })
399
+ property({ type: String })
398
400
  ], LuksoInput.prototype, "type", 2);
399
401
  __decorateClass([
400
- n({ type: String })
402
+ property({ type: String })
401
403
  ], LuksoInput.prototype, "placeholder", 2);
402
404
  __decorateClass([
403
- n({ type: String })
405
+ property({ type: String })
404
406
  ], LuksoInput.prototype, "label", 2);
405
407
  __decorateClass([
406
- n({ type: String })
408
+ property({ type: String })
407
409
  ], LuksoInput.prototype, "autocomplete", 2);
408
410
  __decorateClass([
409
- n({ type: String })
411
+ property({ type: String })
410
412
  ], LuksoInput.prototype, "id", 2);
411
413
  __decorateClass([
412
- n({ type: String })
414
+ property({ type: String })
413
415
  ], LuksoInput.prototype, "ref", 2);
414
416
  __decorateClass([
415
- n({ type: String })
417
+ property({ type: String })
416
418
  ], LuksoInput.prototype, "accept", 2);
417
419
  __decorateClass([
418
- n({ type: String })
420
+ property({ type: String })
419
421
  ], LuksoInput.prototype, "description", 2);
420
422
  __decorateClass([
421
- n({ type: String })
423
+ property({ type: String })
422
424
  ], LuksoInput.prototype, "error", 2);
423
425
  __decorateClass([
424
- n({ type: String })
426
+ property({ type: String })
425
427
  ], LuksoInput.prototype, "unit", 2);
426
428
  __decorateClass([
427
- n({ type: String, attribute: "custom-class" })
429
+ property({ type: String, attribute: "custom-class" })
428
430
  ], LuksoInput.prototype, "customClass", 2);
429
431
  __decorateClass([
430
- n({ type: Boolean, attribute: "is-full-width" })
432
+ property({ type: Boolean, attribute: "is-full-width" })
431
433
  ], LuksoInput.prototype, "isFullWidth", 2);
432
434
  __decorateClass([
433
- n({ type: Boolean, attribute: "is-readonly" })
435
+ property({ type: Boolean, attribute: "is-readonly" })
434
436
  ], LuksoInput.prototype, "isReadonly", 2);
435
437
  __decorateClass([
436
- n({ type: Boolean, attribute: "is-disabled" })
438
+ property({ type: Boolean, attribute: "is-disabled" })
437
439
  ], LuksoInput.prototype, "isDisabled", 2);
438
440
  __decorateClass([
439
- n({ type: Boolean })
441
+ property({ type: Boolean })
440
442
  ], LuksoInput.prototype, "autofocus", 2);
441
443
  __decorateClass([
442
- n({ type: Number })
444
+ property({ type: Number })
443
445
  ], LuksoInput.prototype, "max", 2);
444
446
  __decorateClass([
445
- n({ type: Number })
447
+ property({ type: Number })
446
448
  ], LuksoInput.prototype, "min", 2);
447
449
  __decorateClass([
448
- n({ type: Boolean })
450
+ property({ type: Boolean })
449
451
  ], LuksoInput.prototype, "borderless", 2);
450
452
  __decorateClass([
451
- n({ type: String })
453
+ property({ type: String })
452
454
  ], LuksoInput.prototype, "size", 2);
453
455
  __decorateClass([
454
- n({ type: String, attribute: "right-icon" })
456
+ property({ type: String, attribute: "right-icon" })
455
457
  ], LuksoInput.prototype, "rightIcon", 2);
456
458
  __decorateClass([
457
- n({ type: Boolean, attribute: "is-right-icon-clickable" })
459
+ property({ type: Boolean, attribute: "is-right-icon-clickable" })
458
460
  ], LuksoInput.prototype, "isRightIconClickable", 2);
459
461
  __decorateClass([
460
- n({ type: Boolean, attribute: "keep-focus-on-escape" })
462
+ property({ type: Boolean, attribute: "keep-focus-on-escape" })
461
463
  ], LuksoInput.prototype, "keepFocusOnEscape", 2);
462
464
  __decorateClass([
463
- r()
465
+ state()
464
466
  ], LuksoInput.prototype, "hasFocus", 2);
465
467
  __decorateClass([
466
- r()
468
+ state()
467
469
  ], LuksoInput.prototype, "hasHighlight", 2);
468
470
  LuksoInput = __decorateClass([
469
471
  safeCustomElement("lukso-input")