@lukso/web-components 1.128.0 → 1.130.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 (92) hide show
  1. package/dist/components/index.cjs +6 -6
  2. package/dist/components/index.js +6 -6
  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 +6 -5
  10. package/dist/components/lukso-color-picker/index.d.ts.map +1 -1
  11. package/dist/components/lukso-color-picker/index.js +6 -5
  12. package/dist/components/lukso-dropdown/index.cjs +8 -14
  13. package/dist/components/lukso-dropdown/index.d.ts +1 -1
  14. package/dist/components/lukso-dropdown/index.d.ts.map +1 -1
  15. package/dist/components/lukso-dropdown/index.js +8 -14
  16. package/dist/components/lukso-dropdown-option/index.cjs +3 -9
  17. package/dist/components/lukso-dropdown-option/index.d.ts +1 -1
  18. package/dist/components/lukso-dropdown-option/index.d.ts.map +1 -1
  19. package/dist/components/lukso-dropdown-option/index.js +3 -9
  20. package/dist/components/lukso-footer/index.cjs +2 -2
  21. package/dist/components/lukso-footer/index.js +2 -2
  22. package/dist/components/lukso-icon/index.cjs +3 -3
  23. package/dist/components/lukso-icon/index.js +3 -3
  24. package/dist/components/lukso-image/index.cjs +4 -4
  25. package/dist/components/lukso-image/index.js +4 -4
  26. package/dist/components/lukso-input/index.cjs +18 -17
  27. package/dist/components/lukso-input/index.d.ts +1 -1
  28. package/dist/components/lukso-input/index.d.ts.map +1 -1
  29. package/dist/components/lukso-input/index.js +18 -17
  30. package/dist/components/lukso-input/lukso-input.stories.d.ts.map +1 -1
  31. package/dist/components/lukso-modal/index.cjs +14 -10
  32. package/dist/components/lukso-modal/index.d.ts.map +1 -1
  33. package/dist/components/lukso-modal/index.js +14 -10
  34. package/dist/components/lukso-navbar/index.cjs +5 -5
  35. package/dist/components/lukso-navbar/index.js +5 -5
  36. package/dist/components/lukso-pagination/index.cjs +4 -4
  37. package/dist/components/lukso-pagination/index.js +4 -4
  38. package/dist/components/lukso-profile/index.cjs +5 -5
  39. package/dist/components/lukso-profile/index.js +5 -5
  40. package/dist/components/lukso-progress/index.cjs +3 -3
  41. package/dist/components/lukso-progress/index.js +3 -3
  42. package/dist/components/lukso-sanitize/index.cjs +2 -2
  43. package/dist/components/lukso-sanitize/index.js +2 -2
  44. package/dist/components/lukso-search/index.cjs +64 -21
  45. package/dist/components/lukso-search/index.d.ts +11 -3
  46. package/dist/components/lukso-search/index.d.ts.map +1 -1
  47. package/dist/components/lukso-search/index.js +64 -21
  48. package/dist/components/lukso-search/lukso-search.stories.d.ts +1 -0
  49. package/dist/components/lukso-search/lukso-search.stories.d.ts.map +1 -1
  50. package/dist/components/lukso-select/index.cjs +76 -75
  51. package/dist/components/lukso-select/index.d.ts.map +1 -1
  52. package/dist/components/lukso-select/index.js +76 -75
  53. package/dist/components/lukso-share/index.cjs +24 -27
  54. package/dist/components/lukso-share/index.js +24 -27
  55. package/dist/components/lukso-switch/index.cjs +52 -51
  56. package/dist/components/lukso-switch/index.d.ts.map +1 -1
  57. package/dist/components/lukso-switch/index.js +52 -51
  58. package/dist/components/lukso-tag/index.cjs +32 -35
  59. package/dist/components/lukso-tag/index.js +32 -35
  60. package/dist/components/lukso-terms/index.cjs +7 -10
  61. package/dist/components/lukso-terms/index.js +7 -10
  62. package/dist/components/lukso-test/index.cjs +13 -16
  63. package/dist/components/lukso-test/index.js +13 -16
  64. package/dist/components/lukso-textarea/index.cjs +85 -87
  65. package/dist/components/lukso-textarea/index.d.ts.map +1 -1
  66. package/dist/components/lukso-textarea/index.js +85 -87
  67. package/dist/components/lukso-tooltip/index.cjs +35 -38
  68. package/dist/components/lukso-tooltip/index.js +35 -38
  69. package/dist/components/lukso-username/index.cjs +50 -53
  70. package/dist/components/lukso-username/index.js +50 -53
  71. package/dist/components/lukso-wizard/index.cjs +42 -45
  72. package/dist/components/lukso-wizard/index.js +42 -45
  73. package/dist/{index-323568a1.js → index-11b4b329.js} +1 -1
  74. package/dist/index-1fd569a9.cjs +46 -0
  75. package/dist/{index-541282c1.cjs → index-2f5d5d79.cjs} +2 -2
  76. package/dist/index-82b4fdeb.js +37 -0
  77. package/dist/{index-664bbe9a.cjs → index-8eb2e6d8.cjs} +1 -1
  78. package/dist/{index-efc0c2e6.js → index-de036f63.js} +2 -2
  79. package/dist/index.cjs +6 -6
  80. package/dist/index.js +6 -6
  81. package/dist/{property-cba034d3.cjs → property-7a90cede.cjs} +1 -1
  82. package/dist/{property-6d71df6f.js → property-cfc5fabd.js} +1 -1
  83. package/dist/shared/tailwind-element/index.cjs +1 -1
  84. package/dist/shared/tailwind-element/index.js +1 -1
  85. package/dist/{state-dd655282.cjs → state-09b048f8.cjs} +1 -1
  86. package/dist/{state-a4d47754.js → state-1aaee2b7.js} +1 -1
  87. package/dist/{style-map-41455c7b.cjs → style-map-2abffb39.cjs} +1 -1
  88. package/dist/{style-map-745a1d23.js → style-map-c8670fc8.js} +1 -1
  89. package/package.json +1 -1
  90. package/tools/sass/colors.scss +1 -0
  91. package/dist/index-4145c314.cjs +0 -48
  92. package/dist/index-a09c053e.js +0 -39
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-4145c314.cjs');
6
- const property = require('../../property-cba034d3.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1fd569a9.cjs');
6
+ const property = require('../../property-7a90cede.cjs');
7
7
  const directive = require('../../directive-8278ab14.cjs');
8
8
 
9
9
  /**
@@ -56,21 +56,18 @@ var __decorateClass = (decorators, target, key, kind) => {
56
56
  return result;
57
57
  };
58
58
  exports.LuksoTest = class LuksoTest extends shared_tailwindElement_index.TailwindStyledElement(style) {
59
- constructor() {
60
- super(...arguments);
61
- this.name = "World";
62
- this.clicked = false;
63
- this.disabled = false;
64
- this.duration = 1e3;
65
- this.controller = new t(this, {
66
- defaultOptions: {
67
- keyframeOptions: {
68
- duration: this.duration,
69
- fill: "backwards"
70
- }
59
+ name = "World";
60
+ clicked = false;
61
+ disabled = false;
62
+ duration = 1e3;
63
+ controller = new t(this, {
64
+ defaultOptions: {
65
+ keyframeOptions: {
66
+ duration: this.duration,
67
+ fill: "backwards"
71
68
  }
72
- });
73
- }
69
+ }
70
+ });
74
71
  _onClick() {
75
72
  if (this.disabled) {
76
73
  return;
@@ -1,5 +1,5 @@
1
- import { b as T$1, T as TailwindStyledElement, x as x$1 } from '../../index-a09c053e.js';
2
- import { n as n$3, t as t$4 } from '../../property-6d71df6f.js';
1
+ import { b as T$1, T as TailwindStyledElement, x as x$1 } from '../../index-82b4fdeb.js';
2
+ import { n as n$3, t as t$4 } from '../../property-cfc5fabd.js';
3
3
  import { e as e$3, i as i$3, t as t$3 } from '../../directive-2bb7789e.js';
4
4
 
5
5
  /**
@@ -52,21 +52,18 @@ var __decorateClass = (decorators, target, key, kind) => {
52
52
  return result;
53
53
  };
54
54
  let LuksoTest = class extends TailwindStyledElement(style) {
55
- constructor() {
56
- super(...arguments);
57
- this.name = "World";
58
- this.clicked = false;
59
- this.disabled = false;
60
- this.duration = 1e3;
61
- this.controller = new t(this, {
62
- defaultOptions: {
63
- keyframeOptions: {
64
- duration: this.duration,
65
- fill: "backwards"
66
- }
55
+ name = "World";
56
+ clicked = false;
57
+ disabled = false;
58
+ duration = 1e3;
59
+ controller = new t(this, {
60
+ defaultOptions: {
61
+ keyframeOptions: {
62
+ duration: this.duration,
63
+ fill: "backwards"
67
64
  }
68
- });
69
- }
65
+ }
66
+ });
70
67
  _onClick() {
71
68
  if (this.disabled) {
72
69
  return;
@@ -2,14 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-4145c314.cjs');
6
- const property = require('../../property-cba034d3.cjs');
7
- const state = require('../../state-dd655282.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1fd569a9.cjs');
6
+ const property = require('../../property-7a90cede.cjs');
7
+ const state = require('../../state-09b048f8.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-41455c7b.cjs');
12
+ require('../lukso-sanitize/index.cjs');
13
+ require('../../style-map-2abffb39.cjs');
13
14
  require('../../directive-8278ab14.cjs');
14
15
 
15
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}";
@@ -27,95 +28,92 @@ var __decorateClass = (decorators, target, key, kind) => {
27
28
  };
28
29
  const FOCUS_DELAY_MS = 10;
29
30
  exports.LuksoTextarea = class LuksoTextarea extends shared_tailwindElement_index.TailwindStyledElement(style) {
30
- constructor() {
31
- super(...arguments);
32
- this.value = "";
33
- this.name = "";
34
- this.placeholder = "";
35
- this.label = "";
36
- this.id = "";
37
- this.ref = void 0;
38
- this.description = "";
39
- this.error = "";
40
- this.customClass = "";
41
- this.isFullWidth = false;
42
- this.isReadonly = false;
43
- this.isDisabled = false;
44
- this.autofocus = false;
45
- this.borderless = false;
46
- this.isNonResizable = false;
47
- this.keepFocusOnEscape = false;
48
- this.size = "medium";
49
- this.rows = 4;
50
- this.hasFocus = false;
51
- this.hasHighlight = false;
52
- this.styles = index.ce({
53
- slots: {
54
- wrapper: "group flex",
55
- input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
31
+ value = "";
32
+ name = "";
33
+ placeholder = "";
34
+ label = "";
35
+ id = "";
36
+ ref = void 0;
37
+ description = "";
38
+ error = "";
39
+ customClass = "";
40
+ isFullWidth = false;
41
+ isReadonly = false;
42
+ isDisabled = false;
43
+ autofocus = false;
44
+ borderless = false;
45
+ isNonResizable = false;
46
+ keepFocusOnEscape = false;
47
+ size = "medium";
48
+ rows = 4;
49
+ hasFocus = false;
50
+ hasHighlight = false;
51
+ styles = index.ce({
52
+ slots: {
53
+ wrapper: "group flex",
54
+ input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
56
55
  outline-none transition transition-all duration-150 appearance-none`
57
- },
58
- variants: {
59
- hasError: {
60
- true: {
61
- input: "border-red-85"
62
- },
63
- false: {
64
- input: "border-neutral-90"
65
- }
66
- },
67
- hasHighlight: {
68
- true: {
69
- input: "border-neutral-35"
70
- }
71
- },
72
- borderless: {
73
- true: { input: "border-0" },
74
- false: { input: "border" }
56
+ },
57
+ variants: {
58
+ hasError: {
59
+ true: {
60
+ input: "border-red-85"
75
61
  },
76
- isReadonly: {
77
- true: { input: "cursor-not-allowed" }
78
- },
79
- isDisabled: {
80
- true: {
81
- input: "text-neutral-60 cursor-not-allowed"
82
- },
83
- false: { input: "text-neutral-20" }
84
- },
85
- isFullWidth: {
86
- true: { wrapper: "w-full" },
87
- false: { wrapper: "w-[350px]" }
62
+ false: {
63
+ input: "border-neutral-90"
64
+ }
65
+ },
66
+ hasHighlight: {
67
+ true: {
68
+ input: "border-neutral-35"
69
+ }
70
+ },
71
+ borderless: {
72
+ true: { input: "border-0" },
73
+ false: { input: "border" }
74
+ },
75
+ isReadonly: {
76
+ true: { input: "cursor-not-allowed" }
77
+ },
78
+ isDisabled: {
79
+ true: {
80
+ input: "text-neutral-60 cursor-not-allowed"
88
81
  },
89
- size: {
90
- small: {
91
- input: "min-h-[28px] px-2 py-1 paragraph-inter-12-regular rounded-8"
92
- },
93
- medium: {
94
- input: "min-h-[48px] px-4 py-3 paragraph-inter-14-regular rounded-12"
95
- }
82
+ false: { input: "text-neutral-20" }
83
+ },
84
+ isFullWidth: {
85
+ true: { wrapper: "w-full" },
86
+ false: { wrapper: "w-[350px]" }
87
+ },
88
+ size: {
89
+ small: {
90
+ input: "min-h-[28px] px-2 py-1 paragraph-inter-12-regular rounded-8"
96
91
  },
97
- isNonResizable: {
98
- true: {
99
- input: "resize-none"
100
- }
92
+ medium: {
93
+ input: "min-h-[48px] px-4 py-3 paragraph-inter-14-regular rounded-12"
101
94
  }
102
95
  },
103
- compoundVariants: [
104
- {
105
- isFullWidth: false,
106
- size: "small",
107
- class: { wrapper: "w-[210px]" }
108
- },
109
- {
110
- hasHighlight: true,
111
- hasError: true,
112
- class: {
113
- input: "border-red-65"
114
- }
96
+ isNonResizable: {
97
+ true: {
98
+ input: "resize-none"
115
99
  }
116
- ]
117
- });
118
- }
100
+ }
101
+ },
102
+ compoundVariants: [
103
+ {
104
+ isFullWidth: false,
105
+ size: "small",
106
+ class: { wrapper: "w-[210px]" }
107
+ },
108
+ {
109
+ hasHighlight: true,
110
+ hasError: true,
111
+ class: {
112
+ input: "border-red-65"
113
+ }
114
+ }
115
+ ]
116
+ });
119
117
  connectedCallback() {
120
118
  super.connectedCallback();
121
119
  if (this.autofocus) {
@@ -165,7 +163,7 @@ ${this.value}</textarea
165
163
  descriptionTemplate() {
166
164
  return shared_tailwindElement_index.x`
167
165
  <div class="paragraph-inter-12-regular text-neutral-20 pb-2">
168
- ${this.description ?? shared_tailwindElement_index.E}
166
+ <lukso-sanitize html-content=${this.description}></lukso-sanitize>
169
167
  </div>
170
168
  `;
171
169
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-textarea/index.ts"],"names":[],"mappings":"AAMA,OAAO,yBAAyB,CAAA;AAGhC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;;AAI/C,qBACa,aAAc,SAAQ,kBAA4B;IAE7D,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,EAAE,SAAK;IAGP,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,WAAW,SAAK;IAGhB,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,UAAU,UAAQ;IAGlB,SAAS,UAAQ;IAGjB,UAAU,UAAQ;IAGlB,cAAc,UAAQ;IAGtB,iBAAiB,UAAQ;IAGzB,IAAI,EAAE,SAAS,CAAW;IAG1B,IAAI,SAAI;IAGR,OAAO,CAAC,QAAQ,CAAQ;IAGxB,OAAO,CAAC,YAAY,CAAQ;IAE5B,OAAO,CAAC,MAAM,CAiEZ;IAEF,iBAAiB;IAWjB,aAAa,CAAC,MAAM,EAAE,MAAM;IA6B5B,aAAa;IAUb,mBAAmB;IAQnB,aAAa;IAMb,OAAO,CAAC,WAAW;YAOL,UAAU;YAgBV,YAAY;YAcZ,WAAW;YAeX,WAAW;YAmBX,aAAa;YAcb,cAAc;IAc5B,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,cAAc;YAMR,gBAAgB;IAc9B,MAAM;CAyBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-textarea/index.ts"],"names":[],"mappings":"AAMA,OAAO,yBAAyB,CAAA;AAChC,OAAO,6BAA6B,CAAA;AAGpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;;AAI/C,qBACa,aAAc,SAAQ,kBAA4B;IAE7D,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,EAAE,SAAK;IAGP,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,WAAW,SAAK;IAGhB,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,UAAU,UAAQ;IAGlB,SAAS,UAAQ;IAGjB,UAAU,UAAQ;IAGlB,cAAc,UAAQ;IAGtB,iBAAiB,UAAQ;IAGzB,IAAI,EAAE,SAAS,CAAW;IAG1B,IAAI,SAAI;IAGR,OAAO,CAAC,QAAQ,CAAQ;IAGxB,OAAO,CAAC,YAAY,CAAQ;IAE5B,OAAO,CAAC,MAAM,CAiEZ;IAEF,iBAAiB;IAWjB,aAAa,CAAC,MAAM,EAAE,MAAM;IA6B5B,aAAa;IAUb,mBAAmB;IAQnB,aAAa;IAMb,OAAO,CAAC,WAAW;YAOL,UAAU;YAgBV,YAAY;YAcZ,WAAW;YAeX,WAAW;YAmBX,aAAa;YAcb,cAAc;IAc5B,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,cAAc;YAMR,gBAAgB;IAc9B,MAAM;CAyBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}
@@ -1,11 +1,12 @@
1
- import { T as TailwindStyledElement, x, E } from '../../index-a09c053e.js';
2
- import { n, t } from '../../property-6d71df6f.js';
3
- import { r } from '../../state-a4d47754.js';
1
+ import { T as TailwindStyledElement, x, E } from '../../index-82b4fdeb.js';
2
+ import { n, t } from '../../property-cfc5fabd.js';
3
+ import { r } from '../../state-1aaee2b7.js';
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-745a1d23.js';
8
+ import '../lukso-sanitize/index.js';
9
+ import '../../style-map-c8670fc8.js';
9
10
  import '../../directive-2bb7789e.js';
10
11
 
11
12
  const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
@@ -23,95 +24,92 @@ var __decorateClass = (decorators, target, key, kind) => {
23
24
  };
24
25
  const FOCUS_DELAY_MS = 10;
25
26
  let LuksoTextarea = class extends TailwindStyledElement(style) {
26
- constructor() {
27
- super(...arguments);
28
- this.value = "";
29
- this.name = "";
30
- this.placeholder = "";
31
- this.label = "";
32
- this.id = "";
33
- this.ref = void 0;
34
- this.description = "";
35
- this.error = "";
36
- this.customClass = "";
37
- this.isFullWidth = false;
38
- this.isReadonly = false;
39
- this.isDisabled = false;
40
- this.autofocus = false;
41
- this.borderless = false;
42
- this.isNonResizable = false;
43
- this.keepFocusOnEscape = false;
44
- this.size = "medium";
45
- this.rows = 4;
46
- this.hasFocus = false;
47
- this.hasHighlight = false;
48
- this.styles = ce({
49
- slots: {
50
- wrapper: "group flex",
51
- input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
27
+ value = "";
28
+ name = "";
29
+ placeholder = "";
30
+ label = "";
31
+ id = "";
32
+ ref = void 0;
33
+ description = "";
34
+ error = "";
35
+ customClass = "";
36
+ isFullWidth = false;
37
+ isReadonly = false;
38
+ isDisabled = false;
39
+ autofocus = false;
40
+ borderless = false;
41
+ isNonResizable = false;
42
+ keepFocusOnEscape = false;
43
+ size = "medium";
44
+ rows = 4;
45
+ hasFocus = false;
46
+ hasHighlight = false;
47
+ styles = ce({
48
+ slots: {
49
+ wrapper: "group flex",
50
+ input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
52
51
  outline-none transition transition-all duration-150 appearance-none`
53
- },
54
- variants: {
55
- hasError: {
56
- true: {
57
- input: "border-red-85"
58
- },
59
- false: {
60
- input: "border-neutral-90"
61
- }
62
- },
63
- hasHighlight: {
64
- true: {
65
- input: "border-neutral-35"
66
- }
67
- },
68
- borderless: {
69
- true: { input: "border-0" },
70
- false: { input: "border" }
52
+ },
53
+ variants: {
54
+ hasError: {
55
+ true: {
56
+ input: "border-red-85"
71
57
  },
72
- isReadonly: {
73
- true: { input: "cursor-not-allowed" }
74
- },
75
- isDisabled: {
76
- true: {
77
- input: "text-neutral-60 cursor-not-allowed"
78
- },
79
- false: { input: "text-neutral-20" }
80
- },
81
- isFullWidth: {
82
- true: { wrapper: "w-full" },
83
- false: { wrapper: "w-[350px]" }
58
+ false: {
59
+ input: "border-neutral-90"
60
+ }
61
+ },
62
+ hasHighlight: {
63
+ true: {
64
+ input: "border-neutral-35"
65
+ }
66
+ },
67
+ borderless: {
68
+ true: { input: "border-0" },
69
+ false: { input: "border" }
70
+ },
71
+ isReadonly: {
72
+ true: { input: "cursor-not-allowed" }
73
+ },
74
+ isDisabled: {
75
+ true: {
76
+ input: "text-neutral-60 cursor-not-allowed"
84
77
  },
85
- size: {
86
- small: {
87
- input: "min-h-[28px] px-2 py-1 paragraph-inter-12-regular rounded-8"
88
- },
89
- medium: {
90
- input: "min-h-[48px] px-4 py-3 paragraph-inter-14-regular rounded-12"
91
- }
78
+ false: { input: "text-neutral-20" }
79
+ },
80
+ isFullWidth: {
81
+ true: { wrapper: "w-full" },
82
+ false: { wrapper: "w-[350px]" }
83
+ },
84
+ size: {
85
+ small: {
86
+ input: "min-h-[28px] px-2 py-1 paragraph-inter-12-regular rounded-8"
92
87
  },
93
- isNonResizable: {
94
- true: {
95
- input: "resize-none"
96
- }
88
+ medium: {
89
+ input: "min-h-[48px] px-4 py-3 paragraph-inter-14-regular rounded-12"
97
90
  }
98
91
  },
99
- compoundVariants: [
100
- {
101
- isFullWidth: false,
102
- size: "small",
103
- class: { wrapper: "w-[210px]" }
104
- },
105
- {
106
- hasHighlight: true,
107
- hasError: true,
108
- class: {
109
- input: "border-red-65"
110
- }
92
+ isNonResizable: {
93
+ true: {
94
+ input: "resize-none"
111
95
  }
112
- ]
113
- });
114
- }
96
+ }
97
+ },
98
+ compoundVariants: [
99
+ {
100
+ isFullWidth: false,
101
+ size: "small",
102
+ class: { wrapper: "w-[210px]" }
103
+ },
104
+ {
105
+ hasHighlight: true,
106
+ hasError: true,
107
+ class: {
108
+ input: "border-red-65"
109
+ }
110
+ }
111
+ ]
112
+ });
115
113
  connectedCallback() {
116
114
  super.connectedCallback();
117
115
  if (this.autofocus) {
@@ -161,7 +159,7 @@ ${this.value}</textarea
161
159
  descriptionTemplate() {
162
160
  return x`
163
161
  <div class="paragraph-inter-12-regular text-neutral-20 pb-2">
164
- ${this.description ?? E}
162
+ <lukso-sanitize html-content=${this.description}></lukso-sanitize>
165
163
  </div>
166
164
  `;
167
165
  }
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-4145c314.cjs');
6
- const property = require('../../property-cba034d3.cjs');
7
- const state = require('../../state-dd655282.cjs');
5
+ const shared_tailwindElement_index = require('../../index-1fd569a9.cjs');
6
+ const property = require('../../property-7a90cede.cjs');
7
+ const state = require('../../state-09b048f8.cjs');
8
8
  const index = require('../../index-2b104ecb.cjs');
9
- const styleMap = require('../../style-map-41455c7b.cjs');
9
+ const styleMap = require('../../style-map-2abffb39.cjs');
10
10
  require('../../directive-8278ab14.cjs');
11
11
 
12
12
  var top = 'top';
@@ -3460,42 +3460,39 @@ var __decorateClass = (decorators, target, key, kind) => {
3460
3460
  return result;
3461
3461
  };
3462
3462
  exports.LuksoTooltip = class LuksoTooltip extends shared_tailwindElement_index.TailwindStyledElement(style) {
3463
- constructor() {
3464
- super(...arguments);
3465
- this.variant = "light";
3466
- this.size = "medium";
3467
- this.placement = "top";
3468
- this.trigger = "mouseenter";
3469
- this.text = "";
3470
- this.maxWidth = 300;
3471
- this.show = false;
3472
- this.hideOnClick = "true";
3473
- this.isClipboardCopy = false;
3474
- this.copyText = "";
3475
- this.copyValue = "";
3476
- this.offset = 10;
3477
- this.options = "";
3478
- this.showArrow = true;
3479
- this.showDelay = 300;
3480
- this.hideDelay = 300;
3481
- this.showCopy = false;
3482
- this.optionsParsed = [];
3483
- this.tooltipInstance = void 0;
3484
- this.styles = index.ce({
3485
- slots: {
3486
- tooltip: "hidden",
3487
- trigger: "cursor-pointer flex flex-col items-center",
3488
- options: "rounded-4 hover:bg-neutral-95"
3489
- },
3490
- variants: {
3491
- hasNoText: {
3492
- true: {
3493
- trigger: "cursor-default"
3494
- }
3463
+ variant = "light";
3464
+ size = "medium";
3465
+ placement = "top";
3466
+ trigger = "mouseenter";
3467
+ text = "";
3468
+ maxWidth = 300;
3469
+ show = false;
3470
+ hideOnClick = "true";
3471
+ isClipboardCopy = false;
3472
+ copyText = "";
3473
+ copyValue = "";
3474
+ offset = 10;
3475
+ options = "";
3476
+ showArrow = true;
3477
+ showDelay = 300;
3478
+ hideDelay = 300;
3479
+ showCopy = false;
3480
+ optionsParsed = [];
3481
+ tooltipInstance = void 0;
3482
+ styles = index.ce({
3483
+ slots: {
3484
+ tooltip: "hidden",
3485
+ trigger: "cursor-pointer flex flex-col items-center",
3486
+ options: "rounded-4 hover:bg-neutral-95"
3487
+ },
3488
+ variants: {
3489
+ hasNoText: {
3490
+ true: {
3491
+ trigger: "cursor-default"
3495
3492
  }
3496
3493
  }
3497
- });
3498
- }
3494
+ }
3495
+ });
3499
3496
  hideOnClickCheck() {
3500
3497
  if (this.hideOnClick === "toggle") {
3501
3498
  return this.hideOnClick;