@lukso/web-components 1.119.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 (83) 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 +8 -7
  36. package/dist/components/lukso-search/index.js +8 -7
  37. package/dist/components/lukso-select/index.cjs +76 -75
  38. package/dist/components/lukso-select/index.js +76 -75
  39. package/dist/components/lukso-share/index.cjs +24 -27
  40. package/dist/components/lukso-share/index.js +24 -27
  41. package/dist/components/lukso-switch/index.cjs +120 -38
  42. package/dist/components/lukso-switch/index.d.ts +12 -4
  43. package/dist/components/lukso-switch/index.d.ts.map +1 -1
  44. package/dist/components/lukso-switch/index.js +120 -38
  45. package/dist/components/lukso-switch/lukso-switch.stories.d.ts +8 -0
  46. package/dist/components/lukso-switch/lukso-switch.stories.d.ts.map +1 -1
  47. package/dist/components/lukso-tag/index.cjs +32 -35
  48. package/dist/components/lukso-tag/index.js +32 -35
  49. package/dist/components/lukso-terms/index.cjs +7 -10
  50. package/dist/components/lukso-terms/index.js +7 -10
  51. package/dist/components/lukso-test/index.cjs +13 -16
  52. package/dist/components/lukso-test/index.js +13 -16
  53. package/dist/components/lukso-textarea/index.cjs +83 -86
  54. package/dist/components/lukso-textarea/index.js +83 -86
  55. package/dist/components/lukso-tooltip/index.cjs +35 -38
  56. package/dist/components/lukso-tooltip/index.js +35 -38
  57. package/dist/components/lukso-username/index.cjs +50 -53
  58. package/dist/components/lukso-username/index.js +50 -53
  59. package/dist/components/lukso-wizard/index.cjs +42 -45
  60. package/dist/components/lukso-wizard/index.js +42 -45
  61. package/dist/index-11ee2a36.cjs +46 -0
  62. package/dist/{index-3926da18.cjs → index-28b795be.cjs} +1 -1
  63. package/dist/{index-7bb28a79.js → index-5e0baae9.js} +1 -1
  64. package/dist/{index-ff8d75cd.js → index-6e86d3a6.js} +2 -2
  65. package/dist/index-be30d9db.js +37 -0
  66. package/dist/{index-67915f32.cjs → index-d95aa803.cjs} +2 -2
  67. package/dist/index.cjs +8 -7
  68. package/dist/index.js +8 -7
  69. package/dist/{property-eaa52bd9.js → property-23ddd718.js} +1 -1
  70. package/dist/{property-bf2eee83.cjs → property-c2b27afb.cjs} +1 -1
  71. package/dist/shared/tailwind-element/index.cjs +1 -1
  72. package/dist/shared/tailwind-element/index.js +1 -1
  73. package/dist/{state-375dfffc.cjs → state-88ac4aa9.cjs} +1 -1
  74. package/dist/{state-1fc9a224.js → state-f46a7e17.js} +1 -1
  75. package/dist/{style-map-5aef4b6f.js → style-map-129fa2d5.js} +1 -1
  76. package/dist/{style-map-8e54f508.cjs → style-map-6e0d4ef7.cjs} +1 -1
  77. package/dist/uniq-id-ce2d165c.js +6 -0
  78. package/dist/uniq-id-f0b18085.cjs +8 -0
  79. package/package.json +1 -1
  80. package/dist/index-104cf124.cjs +0 -161
  81. package/dist/index-12775596.js +0 -159
  82. package/dist/index-68c61387.cjs +0 -48
  83. package/dist/index-92dc158d.js +0 -39
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-68c61387.cjs');
6
- const property = require('../../property-bf2eee83.cjs');
7
- const state = require('../../state-375dfffc.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-8e54f508.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-92dc158d.js';
2
- import { n, t } from '../../property-eaa52bd9.js';
3
- import { r } from '../../state-1fc9a224.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-5aef4b6f.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,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-68c61387.cjs');
6
- const property = require('../../property-bf2eee83.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
8
 
9
9
  var __defProp = Object.defineProperty;
@@ -1,5 +1,5 @@
1
- import { a as TailwindElement, x } from '../../index-92dc158d.js';
2
- import { n, t } from '../../property-eaa52bd9.js';
1
+ import { a as TailwindElement, x } from '../../index-be30d9db.js';
2
+ import { n, t } from '../../property-23ddd718.js';
3
3
  import { c as ce } from '../../index-d14b6a34.js';
4
4
 
5
5
  var __defProp = Object.defineProperty;
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-68c61387.cjs');
6
- const property = require('../../property-bf2eee83.cjs');
7
- const state = require('../../state-375dfffc.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('../lukso-icon/index.cjs');
10
10
  require('../lukso-tag/index.cjs');
11
- require('../../style-map-8e54f508.cjs');
11
+ require('../../style-map-6e0d4ef7.cjs');
12
12
  require('../../directive-8278ab14.cjs');
13
- require('../../index-3926da18.cjs');
13
+ require('../../index-28b795be.cjs');
14
14
 
15
15
  var __defProp = Object.defineProperty;
16
16
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,12 +1,12 @@
1
- import { a as TailwindElement, x, E } from '../../index-92dc158d.js';
2
- import { n, t } from '../../property-eaa52bd9.js';
3
- import { r } from '../../state-1fc9a224.js';
1
+ import { a as TailwindElement, 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 '../lukso-icon/index.js';
6
6
  import '../lukso-tag/index.js';
7
- import '../../style-map-5aef4b6f.js';
7
+ import '../../style-map-129fa2d5.js';
8
8
  import '../../directive-2bb7789e.js';
9
- import '../../index-7bb28a79.js';
9
+ import '../../index-5e0baae9.js';
10
10
 
11
11
  var __defProp = Object.defineProperty;
12
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-68c61387.cjs');
6
- const property = require('../../property-bf2eee83.cjs');
7
- const state = require('../../state-375dfffc.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('../lukso-icon/index.cjs');
10
10
  require('../lukso-button/index.cjs');
11
- require('../../style-map-8e54f508.cjs');
11
+ require('../../style-map-6e0d4ef7.cjs');
12
12
  require('../../directive-8278ab14.cjs');
13
13
  require('../../tailwind-config.cjs');
14
14
  require('../../cn-b6daa995.cjs');
@@ -1,10 +1,10 @@
1
- import { T as TailwindStyledElement, x } from '../../index-92dc158d.js';
2
- import { n, t } from '../../property-eaa52bd9.js';
3
- import { r } from '../../state-1fc9a224.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
5
  import '../lukso-icon/index.js';
6
6
  import '../lukso-button/index.js';
7
- import '../../style-map-5aef4b6f.js';
7
+ import '../../style-map-129fa2d5.js';
8
8
  import '../../directive-2bb7789e.js';
9
9
  import '../../tailwind-config.js';
10
10
  import '../../cn-90c03edf.js';
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- require('../../index-68c61387.cjs');
6
- require('../../property-bf2eee83.cjs');
7
- const components_luksoProfile_index = require('../../index-67915f32.cjs');
5
+ require('../../index-11ee2a36.cjs');
6
+ require('../../property-c2b27afb.cjs');
7
+ const components_luksoProfile_index = require('../../index-d95aa803.cjs');
8
8
  require('../../index-2b104ecb.cjs');
9
9
  require('../lukso-image/index.cjs');
10
- require('../../state-375dfffc.cjs');
11
- require('../../style-map-8e54f508.cjs');
10
+ require('../../state-88ac4aa9.cjs');
11
+ require('../../style-map-6e0d4ef7.cjs');
12
12
  require('../../directive-8278ab14.cjs');
13
13
 
14
14
 
@@ -1,8 +1,8 @@
1
- import '../../index-92dc158d.js';
2
- import '../../property-eaa52bd9.js';
3
- export { L as LuksoProfile } from '../../index-ff8d75cd.js';
1
+ import '../../index-be30d9db.js';
2
+ import '../../property-23ddd718.js';
3
+ export { L as LuksoProfile } from '../../index-6e86d3a6.js';
4
4
  import '../../index-d14b6a34.js';
5
5
  import '../lukso-image/index.js';
6
- import '../../state-1fc9a224.js';
7
- import '../../style-map-5aef4b6f.js';
6
+ import '../../state-f46a7e17.js';
7
+ import '../../style-map-129fa2d5.js';
8
8
  import '../../directive-2bb7789e.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-68c61387.cjs');
6
- const property = require('../../property-bf2eee83.cjs');
7
- const styleMap = require('../../style-map-8e54f508.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
8
  require('../../tailwind-config.cjs');
9
9
  const cn = require('../../cn-b6daa995.cjs');
10
10
  require('../../directive-8278ab14.cjs');
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x } from '../../index-92dc158d.js';
2
- import { n, t } from '../../property-eaa52bd9.js';
3
- import { o } from '../../style-map-5aef4b6f.js';
1
+ import { a as TailwindElement, x } from '../../index-be30d9db.js';
2
+ import { n, t } from '../../property-23ddd718.js';
3
+ import { o } from '../../style-map-129fa2d5.js';
4
4
  import '../../tailwind-config.js';
5
5
  import { c as cn } from '../../cn-90c03edf.js';
6
6
  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-68c61387.cjs');
6
- const property = require('../../property-bf2eee83.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 { E, b as T, a as TailwindElement, x } from '../../index-92dc158d.js';
2
- import { n, t as t$1 } from '../../property-eaa52bd9.js';
1
+ import { E, b as T, a as TailwindElement, x } from '../../index-be30d9db.js';
2
+ import { n, t as t$1 } from '../../property-23ddd718.js';
3
3
  import { i, t, e as e$1 } from '../../directive-2bb7789e.js';
4
4
 
5
5
  /**
@@ -2,22 +2,23 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const components_luksoProfile_index = require('../../index-67915f32.cjs');
6
- const shared_tailwindElement_index = require('../../index-68c61387.cjs');
7
- const property = require('../../property-bf2eee83.cjs');
8
- const state = require('../../state-375dfffc.cjs');
5
+ const components_luksoProfile_index = require('../../index-d95aa803.cjs');
6
+ const shared_tailwindElement_index = require('../../index-11ee2a36.cjs');
7
+ const property = require('../../property-c2b27afb.cjs');
8
+ const state = require('../../state-88ac4aa9.cjs');
9
9
  const index = require('../../index-2b104ecb.cjs');
10
- require('../../index-104cf124.cjs');
10
+ require('../lukso-dropdown/index.cjs');
11
11
  require('../lukso-dropdown-option/index.cjs');
12
12
  require('../lukso-icon/index.cjs');
13
13
  require('../lukso-input/index.cjs');
14
14
  require('../lukso-username/index.cjs');
15
15
  require('../lukso-image/index.cjs');
16
- require('../../style-map-8e54f508.cjs');
16
+ require('../../style-map-6e0d4ef7.cjs');
17
17
  require('../../directive-8278ab14.cjs');
18
+ require('../../uniq-id-f0b18085.cjs');
18
19
  require('../../tailwind-config.cjs');
19
20
  require('../../cn-b6daa995.cjs');
20
- require('../../index-3926da18.cjs');
21
+ require('../../index-28b795be.cjs');
21
22
 
22
23
  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
24
 
@@ -1,19 +1,20 @@
1
- import { m as makeBlockie } from '../../index-ff8d75cd.js';
2
- import { T as TailwindStyledElement, x, E } from '../../index-92dc158d.js';
3
- import { n, t } from '../../property-eaa52bd9.js';
4
- import { r } from '../../state-1fc9a224.js';
1
+ import { m as makeBlockie } from '../../index-6e86d3a6.js';
2
+ import { T as TailwindStyledElement, x, E } from '../../index-be30d9db.js';
3
+ import { n, t } from '../../property-23ddd718.js';
4
+ import { r } from '../../state-f46a7e17.js';
5
5
  import { c as ce } from '../../index-d14b6a34.js';
6
- import '../../index-12775596.js';
6
+ import '../lukso-dropdown/index.js';
7
7
  import '../lukso-dropdown-option/index.js';
8
8
  import '../lukso-icon/index.js';
9
9
  import '../lukso-input/index.js';
10
10
  import '../lukso-username/index.js';
11
11
  import '../lukso-image/index.js';
12
- import '../../style-map-5aef4b6f.js';
12
+ import '../../style-map-129fa2d5.js';
13
13
  import '../../directive-2bb7789e.js';
14
+ import '../../uniq-id-ce2d165c.js';
14
15
  import '../../tailwind-config.js';
15
16
  import '../../cn-90c03edf.js';
16
- import '../../index-7bb28a79.js';
17
+ import '../../index-5e0baae9.js';
17
18
 
18
19
  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
20
 
@@ -2,19 +2,20 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-68c61387.cjs');
6
- const property = require('../../property-bf2eee83.cjs');
7
- const state = require('../../state-375dfffc.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 components_luksoProfile_index = require('../../index-67915f32.cjs');
9
+ const components_luksoProfile_index = require('../../index-d95aa803.cjs');
10
10
  require('../lukso-icon/index.cjs');
11
11
  require('../lukso-username/index.cjs');
12
- const components_luksoDropdown_index = require('../../index-104cf124.cjs');
12
+ require('../lukso-dropdown/index.cjs');
13
13
  require('../lukso-dropdown-option/index.cjs');
14
+ const uniqId = require('../../uniq-id-f0b18085.cjs');
14
15
  require('../lukso-image/index.cjs');
15
- require('../../style-map-8e54f508.cjs');
16
+ require('../../style-map-6e0d4ef7.cjs');
16
17
  require('../../directive-8278ab14.cjs');
17
- require('../../index-3926da18.cjs');
18
+ require('../../index-28b795be.cjs');
18
19
  require('../../tailwind-config.cjs');
19
20
  require('../../cn-b6daa995.cjs');
20
21
 
@@ -32,84 +33,84 @@ var __decorateClass = (decorators, target, key, kind) => {
32
33
  return result;
33
34
  };
34
35
  exports.LuksoSelect = class LuksoSelect extends shared_tailwindElement_index.TailwindStyledElement(style) {
36
+ value = "";
37
+ placeholder = "";
38
+ label = "";
39
+ id = "";
40
+ description = "";
41
+ error = "";
42
+ isFullWidth = false;
43
+ isReadonly = false;
44
+ isDisabled = false;
45
+ borderless = false;
46
+ options = "";
47
+ selected = void 0;
48
+ isOpen = false;
49
+ openTop = false;
50
+ isLargeIcon = false;
51
+ isRight = false;
52
+ size = "medium";
53
+ showSelectionCounter = false;
54
+ optionsParsed = [];
55
+ valueParsed = void 0;
35
56
  constructor() {
36
57
  super();
37
- this.value = "";
38
- this.placeholder = "";
39
- this.label = "";
40
- this.id = "";
41
- this.description = "";
42
- this.error = "";
43
- this.isFullWidth = false;
44
- this.isReadonly = false;
45
- this.isDisabled = false;
46
- this.borderless = false;
47
- this.options = "";
48
- this.selected = void 0;
49
- this.isOpen = false;
50
- this.openTop = false;
51
- this.isLargeIcon = false;
52
- this.isRight = false;
53
- this.size = "medium";
54
- this.showSelectionCounter = false;
55
- this.optionsParsed = [];
56
- this.valueParsed = void 0;
57
- this.inputStyles = index.ce({
58
- base: `bg-neutral-100
58
+ if (!this.id) {
59
+ this.id = uniqId.uniqId();
60
+ }
61
+ }
62
+ inputStyles = index.ce({
63
+ base: `bg-neutral-100
59
64
  border border-solid placeholder:text-neutral-70 select-none whitespace-nowrap
60
65
  outline-none transition transition-all duration-150 appearance-none
61
66
  text-neutral-20 cursor-pointer border-neutral-90 group-hover:border-neutral-35
62
67
  flex items-center`,
63
- variants: {
64
- isFullWidth: {
65
- true: "w-full"
66
- },
67
- isDisabled: {
68
- true: "cursor-not-allowed text-neutral-60 group-hover:border-neutral-90"
69
- },
70
- hasError: {
71
- true: "border-red-85 group-hover:border-red-65"
72
- },
73
- borderless: {
74
- true: "border-0"
75
- },
76
- size: {
77
- small: "h-[28px] px-3 py-2 pr-8 paragraph-inter-12-regular rounded-8",
78
- medium: "h-[48px] px-4 py-3 pr-11 paragraph-inter-14-regular rounded-12"
79
- }
68
+ variants: {
69
+ isFullWidth: {
70
+ true: "w-full"
71
+ },
72
+ isDisabled: {
73
+ true: "cursor-not-allowed text-neutral-60 group-hover:border-neutral-90"
74
+ },
75
+ hasError: {
76
+ true: "border-red-85 group-hover:border-red-65"
77
+ },
78
+ borderless: {
79
+ true: "border-0"
80
+ },
81
+ size: {
82
+ small: "h-[28px] px-3 py-2 pr-8 paragraph-inter-12-regular rounded-8",
83
+ medium: "h-[48px] px-4 py-3 pr-11 paragraph-inter-14-regular rounded-12"
80
84
  }
81
- });
82
- this.counterStyles = index.ce({
83
- base: "border border-neutral-20",
84
- variants: {
85
- isDisabled: {
86
- true: "opacity-60 cursor-not-allowed"
87
- },
88
- size: {
89
- small: "paragraph-inter-10-semi-bold rounded-4 py-[1px] px-[5px] ml-1.5",
90
- medium: "paragraph-inter-14-semi-bold rounded-8 py-[2px] px-[10px] ml-3"
91
- }
85
+ }
86
+ });
87
+ counterStyles = index.ce({
88
+ base: "border border-neutral-20",
89
+ variants: {
90
+ isDisabled: {
91
+ true: "opacity-60 cursor-not-allowed"
92
+ },
93
+ size: {
94
+ small: "paragraph-inter-10-semi-bold rounded-4 py-[1px] px-[5px] ml-1.5",
95
+ medium: "paragraph-inter-14-semi-bold rounded-8 py-[2px] px-[10px] ml-3"
92
96
  }
93
- });
94
- this.iconStyles = index.ce({
95
- base: "absolute right-0 transition cursor-pointer",
96
- variants: {
97
- isDisabled: {
98
- true: "opacity-60 cursor-not-allowed"
99
- },
100
- isOpen: {
101
- true: "rotate-180"
102
- },
103
- size: {
104
- small: "mr-2",
105
- medium: "mr-3"
106
- }
97
+ }
98
+ });
99
+ iconStyles = index.ce({
100
+ base: "absolute right-0 transition cursor-pointer",
101
+ variants: {
102
+ isDisabled: {
103
+ true: "opacity-60 cursor-not-allowed"
104
+ },
105
+ isOpen: {
106
+ true: "rotate-180"
107
+ },
108
+ size: {
109
+ small: "mr-2",
110
+ medium: "mr-3"
107
111
  }
108
- });
109
- if (!this.id) {
110
- this.id = components_luksoDropdown_index.uniqId();
111
112
  }
112
- }
113
+ });
113
114
  connectedCallback() {
114
115
  super.connectedCallback();
115
116
  window.addEventListener("click", this.handleOutsideDropdownClick.bind(this));
@@ -1,16 +1,17 @@
1
- import { T as TailwindStyledElement, x, E } from '../../index-92dc158d.js';
2
- import { n, t } from '../../property-eaa52bd9.js';
3
- import { r } from '../../state-1fc9a224.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
- import { m as makeBlockie } from '../../index-ff8d75cd.js';
5
+ import { m as makeBlockie } from '../../index-6e86d3a6.js';
6
6
  import '../lukso-icon/index.js';
7
7
  import '../lukso-username/index.js';
8
- import { u as uniqId } from '../../index-12775596.js';
8
+ import '../lukso-dropdown/index.js';
9
9
  import '../lukso-dropdown-option/index.js';
10
+ import { u as uniqId } from '../../uniq-id-ce2d165c.js';
10
11
  import '../lukso-image/index.js';
11
- import '../../style-map-5aef4b6f.js';
12
+ import '../../style-map-129fa2d5.js';
12
13
  import '../../directive-2bb7789e.js';
13
- import '../../index-7bb28a79.js';
14
+ import '../../index-5e0baae9.js';
14
15
  import '../../tailwind-config.js';
15
16
  import '../../cn-90c03edf.js';
16
17
 
@@ -28,84 +29,84 @@ var __decorateClass = (decorators, target, key, kind) => {
28
29
  return result;
29
30
  };
30
31
  let LuksoSelect = class extends TailwindStyledElement(style) {
32
+ value = "";
33
+ placeholder = "";
34
+ label = "";
35
+ id = "";
36
+ description = "";
37
+ error = "";
38
+ isFullWidth = false;
39
+ isReadonly = false;
40
+ isDisabled = false;
41
+ borderless = false;
42
+ options = "";
43
+ selected = void 0;
44
+ isOpen = false;
45
+ openTop = false;
46
+ isLargeIcon = false;
47
+ isRight = false;
48
+ size = "medium";
49
+ showSelectionCounter = false;
50
+ optionsParsed = [];
51
+ valueParsed = void 0;
31
52
  constructor() {
32
53
  super();
33
- this.value = "";
34
- this.placeholder = "";
35
- this.label = "";
36
- this.id = "";
37
- this.description = "";
38
- this.error = "";
39
- this.isFullWidth = false;
40
- this.isReadonly = false;
41
- this.isDisabled = false;
42
- this.borderless = false;
43
- this.options = "";
44
- this.selected = void 0;
45
- this.isOpen = false;
46
- this.openTop = false;
47
- this.isLargeIcon = false;
48
- this.isRight = false;
49
- this.size = "medium";
50
- this.showSelectionCounter = false;
51
- this.optionsParsed = [];
52
- this.valueParsed = void 0;
53
- this.inputStyles = ce({
54
- base: `bg-neutral-100
54
+ if (!this.id) {
55
+ this.id = uniqId();
56
+ }
57
+ }
58
+ inputStyles = ce({
59
+ base: `bg-neutral-100
55
60
  border border-solid placeholder:text-neutral-70 select-none whitespace-nowrap
56
61
  outline-none transition transition-all duration-150 appearance-none
57
62
  text-neutral-20 cursor-pointer border-neutral-90 group-hover:border-neutral-35
58
63
  flex items-center`,
59
- variants: {
60
- isFullWidth: {
61
- true: "w-full"
62
- },
63
- isDisabled: {
64
- true: "cursor-not-allowed text-neutral-60 group-hover:border-neutral-90"
65
- },
66
- hasError: {
67
- true: "border-red-85 group-hover:border-red-65"
68
- },
69
- borderless: {
70
- true: "border-0"
71
- },
72
- size: {
73
- small: "h-[28px] px-3 py-2 pr-8 paragraph-inter-12-regular rounded-8",
74
- medium: "h-[48px] px-4 py-3 pr-11 paragraph-inter-14-regular rounded-12"
75
- }
64
+ variants: {
65
+ isFullWidth: {
66
+ true: "w-full"
67
+ },
68
+ isDisabled: {
69
+ true: "cursor-not-allowed text-neutral-60 group-hover:border-neutral-90"
70
+ },
71
+ hasError: {
72
+ true: "border-red-85 group-hover:border-red-65"
73
+ },
74
+ borderless: {
75
+ true: "border-0"
76
+ },
77
+ size: {
78
+ small: "h-[28px] px-3 py-2 pr-8 paragraph-inter-12-regular rounded-8",
79
+ medium: "h-[48px] px-4 py-3 pr-11 paragraph-inter-14-regular rounded-12"
76
80
  }
77
- });
78
- this.counterStyles = ce({
79
- base: "border border-neutral-20",
80
- variants: {
81
- isDisabled: {
82
- true: "opacity-60 cursor-not-allowed"
83
- },
84
- size: {
85
- small: "paragraph-inter-10-semi-bold rounded-4 py-[1px] px-[5px] ml-1.5",
86
- medium: "paragraph-inter-14-semi-bold rounded-8 py-[2px] px-[10px] ml-3"
87
- }
81
+ }
82
+ });
83
+ counterStyles = ce({
84
+ base: "border border-neutral-20",
85
+ variants: {
86
+ isDisabled: {
87
+ true: "opacity-60 cursor-not-allowed"
88
+ },
89
+ size: {
90
+ small: "paragraph-inter-10-semi-bold rounded-4 py-[1px] px-[5px] ml-1.5",
91
+ medium: "paragraph-inter-14-semi-bold rounded-8 py-[2px] px-[10px] ml-3"
88
92
  }
89
- });
90
- this.iconStyles = ce({
91
- base: "absolute right-0 transition cursor-pointer",
92
- variants: {
93
- isDisabled: {
94
- true: "opacity-60 cursor-not-allowed"
95
- },
96
- isOpen: {
97
- true: "rotate-180"
98
- },
99
- size: {
100
- small: "mr-2",
101
- medium: "mr-3"
102
- }
93
+ }
94
+ });
95
+ iconStyles = ce({
96
+ base: "absolute right-0 transition cursor-pointer",
97
+ variants: {
98
+ isDisabled: {
99
+ true: "opacity-60 cursor-not-allowed"
100
+ },
101
+ isOpen: {
102
+ true: "rotate-180"
103
+ },
104
+ size: {
105
+ small: "mr-2",
106
+ medium: "mr-3"
103
107
  }
104
- });
105
- if (!this.id) {
106
- this.id = uniqId();
107
108
  }
108
- }
109
+ });
109
110
  connectedCallback() {
110
111
  super.connectedCallback();
111
112
  window.addEventListener("click", this.handleOutsideDropdownClick.bind(this));