@lukso/web-components 1.66.1 → 1.68.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 (71) hide show
  1. package/dist/{cn-4ec0bd94.cjs → cn-5a985a94.cjs} +48 -19
  2. package/dist/{cn-616567d4.js → cn-e708e7fa.js} +45 -16
  3. package/dist/components/index.cjs +5 -5
  4. package/dist/components/index.js +5 -5
  5. package/dist/components/lukso-button/index.cjs +5 -5
  6. package/dist/components/lukso-button/index.js +5 -5
  7. package/dist/components/lukso-card/index.cjs +6 -6
  8. package/dist/components/lukso-card/index.js +6 -6
  9. package/dist/components/lukso-checkbox/index.cjs +1 -1
  10. package/dist/components/lukso-checkbox/index.js +1 -1
  11. package/dist/components/lukso-footer/index.cjs +1 -1
  12. package/dist/components/lukso-footer/index.js +1 -1
  13. package/dist/components/lukso-icon/index.cjs +2 -2
  14. package/dist/components/lukso-icon/index.js +2 -2
  15. package/dist/components/lukso-input/index.cjs +1 -1
  16. package/dist/components/lukso-input/index.js +1 -1
  17. package/dist/components/lukso-modal/index.cjs +1 -1
  18. package/dist/components/lukso-modal/index.js +1 -1
  19. package/dist/components/lukso-navbar/index.cjs +5 -5
  20. package/dist/components/lukso-navbar/index.js +5 -5
  21. package/dist/components/lukso-profile/index.cjs +2 -2
  22. package/dist/components/lukso-profile/index.js +2 -2
  23. package/dist/components/lukso-progress/index.cjs +3 -3
  24. package/dist/components/lukso-progress/index.js +3 -3
  25. package/dist/components/lukso-sanitize/index.cjs +1 -1
  26. package/dist/components/lukso-sanitize/index.js +1 -1
  27. package/dist/components/lukso-search/index.cjs +3 -3
  28. package/dist/components/lukso-search/index.js +3 -3
  29. package/dist/components/lukso-select/index.cjs +8 -8
  30. package/dist/components/lukso-select/index.js +8 -8
  31. package/dist/components/lukso-share/index.cjs +1 -1
  32. package/dist/components/lukso-share/index.js +1 -1
  33. package/dist/components/lukso-switch/index.cjs +2 -2
  34. package/dist/components/lukso-switch/index.js +2 -2
  35. package/dist/components/lukso-tag/index.cjs +4 -4
  36. package/dist/components/lukso-tag/index.js +4 -4
  37. package/dist/components/lukso-terms/index.cjs +2 -2
  38. package/dist/components/lukso-terms/index.js +2 -2
  39. package/dist/components/lukso-test/index.cjs +1 -1
  40. package/dist/components/lukso-test/index.js +1 -1
  41. package/dist/components/lukso-tooltip/index.cjs +49 -23
  42. package/dist/components/lukso-tooltip/index.d.ts +10 -2
  43. package/dist/components/lukso-tooltip/index.d.ts.map +1 -1
  44. package/dist/components/lukso-tooltip/index.js +49 -23
  45. package/dist/components/lukso-tooltip/lukso-tooltip.stories.d.ts +3 -1
  46. package/dist/components/lukso-tooltip/lukso-tooltip.stories.d.ts.map +1 -1
  47. package/dist/components/lukso-username/index.cjs +2 -2
  48. package/dist/components/lukso-username/index.js +2 -2
  49. package/dist/components/lukso-wizard/index.cjs +64 -41
  50. package/dist/components/lukso-wizard/index.d.ts +3 -3
  51. package/dist/components/lukso-wizard/index.d.ts.map +1 -1
  52. package/dist/components/lukso-wizard/index.js +63 -40
  53. package/dist/components/lukso-wizard/lukso-wizard.stories.d.ts +0 -2
  54. package/dist/components/lukso-wizard/lukso-wizard.stories.d.ts.map +1 -1
  55. package/dist/{index-98e8e0d5.cjs → index-0e131d65.cjs} +1 -1
  56. package/dist/index-5cc4a839.cjs +46 -0
  57. package/dist/{index-e8741080.cjs → index-66211c85.cjs} +3 -3
  58. package/dist/index-814bcac2.js +39 -0
  59. package/dist/{index-1765cfe1.js → index-f171e7da.js} +1 -1
  60. package/dist/{index-c55a1069.js → index-faa8c4ae.js} +3 -3
  61. package/dist/index.cjs +5 -5
  62. package/dist/index.js +5 -5
  63. package/dist/shared/tailwind-element/index.cjs +1 -1
  64. package/dist/shared/tailwind-element/index.js +1 -1
  65. package/dist/{style-map-9fdda015.js → style-map-21f59b89.js} +1 -1
  66. package/dist/{style-map-c86dd6e2.cjs → style-map-7d4ddea1.cjs} +1 -1
  67. package/package.json +1 -1
  68. package/tools/cn.cjs +45 -16
  69. package/tools/cn.js +45 -16
  70. package/dist/index-3527fb14.js +0 -39
  71. package/dist/index-688c3040.cjs +0 -46
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-688c3040.cjs');
5
+ const shared_tailwindElement_index = require('../../index-5cc4a839.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
  const state = require('../../state-f73a8b4f.cjs');
8
- const index = require('../../index-e8741080.cjs');
8
+ const index = require('../../index-66211c85.cjs');
9
9
  require('../lukso-icon/index.cjs');
10
10
  require('../lukso-tag/index.cjs');
11
- require('../../style-map-c86dd6e2.cjs');
11
+ require('../../style-map-7d4ddea1.cjs');
12
12
  require('../../directive-8278ab14.cjs');
13
- require('../../index-98e8e0d5.cjs');
13
+ require('../../index-0e131d65.cjs');
14
14
 
15
15
  var __defProp = Object.defineProperty;
16
16
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -37,7 +37,7 @@ exports.LuksoNavbar = class LuksoNavbar extends shared_tailwindElement_index.Tai
37
37
  this.mobileBreakpoint = "md";
38
38
  this.isMenuOpen = false;
39
39
  this.defaultLogoUrl = "/assets/images/up-logo.png";
40
- this.navbarStyles = index.se({
40
+ this.navbarStyles = index.ie({
41
41
  slots: {
42
42
  wrapper: `bg-neutral-100 shadow-pink-drop-shadow h-78 grid items-center`,
43
43
  mobileMenuWrapper: `items-center justify-end pr-6 flex gap-2`,
@@ -1,12 +1,12 @@
1
- import { a as TailwindElement, x, A } from '../../index-3527fb14.js';
1
+ import { a as TailwindElement, x, A } from '../../index-814bcac2.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
3
  import { t } from '../../state-0a779257.js';
4
- import { s as se } from '../../index-c55a1069.js';
4
+ import { i as ie } from '../../index-faa8c4ae.js';
5
5
  import '../lukso-icon/index.js';
6
6
  import '../lukso-tag/index.js';
7
- import '../../style-map-9fdda015.js';
7
+ import '../../style-map-21f59b89.js';
8
8
  import '../../directive-2bb7789e.js';
9
- import '../../index-1765cfe1.js';
9
+ import '../../index-f171e7da.js';
10
10
 
11
11
  var __defProp = Object.defineProperty;
12
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -33,7 +33,7 @@ let LuksoNavbar = class extends TailwindElement {
33
33
  this.mobileBreakpoint = "md";
34
34
  this.isMenuOpen = false;
35
35
  this.defaultLogoUrl = "/assets/images/up-logo.png";
36
- this.navbarStyles = se({
36
+ this.navbarStyles = ie({
37
37
  slots: {
38
38
  wrapper: `bg-neutral-100 shadow-pink-drop-shadow h-78 grid items-center`,
39
39
  mobileMenuWrapper: `items-center justify-end pr-6 flex gap-2`,
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-688c3040.cjs');
5
+ const shared_tailwindElement_index = require('../../index-5cc4a839.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
- const styleMap = require('../../style-map-c86dd6e2.cjs');
7
+ const styleMap = require('../../style-map-7d4ddea1.cjs');
8
8
  const index = require('../../index-e9668573.cjs');
9
9
  require('../../directive-8278ab14.cjs');
10
10
 
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x } from '../../index-3527fb14.js';
1
+ import { a as TailwindElement, x } from '../../index-814bcac2.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
- import { o } from '../../style-map-9fdda015.js';
3
+ import { o } from '../../style-map-21f59b89.js';
4
4
  import { c as customClassMap } from '../../index-5e194caf.js';
5
5
  import '../../directive-2bb7789e.js';
6
6
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-688c3040.cjs');
5
+ const shared_tailwindElement_index = require('../../index-5cc4a839.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
- const styleMap = require('../../style-map-c86dd6e2.cjs');
7
+ const styleMap = require('../../style-map-7d4ddea1.cjs');
8
8
  require('../../tailwind-config.cjs');
9
- const cn = require('../../cn-4ec0bd94.cjs');
9
+ const cn = require('../../cn-5a985a94.cjs');
10
10
  require('../../directive-8278ab14.cjs');
11
11
 
12
12
  var __defProp = Object.defineProperty;
@@ -1,8 +1,8 @@
1
- import { a as TailwindElement, x } from '../../index-3527fb14.js';
1
+ import { a as TailwindElement, x } from '../../index-814bcac2.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
- import { o } from '../../style-map-9fdda015.js';
3
+ import { o } from '../../style-map-21f59b89.js';
4
4
  import '../../tailwind-config.js';
5
- import { c as cn } from '../../cn-616567d4.js';
5
+ import { c as cn } from '../../cn-e708e7fa.js';
6
6
  import '../../directive-2bb7789e.js';
7
7
 
8
8
  var __defProp = Object.defineProperty;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-688c3040.cjs');
5
+ const shared_tailwindElement_index = require('../../index-5cc4a839.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
  const directive = require('../../directive-8278ab14.cjs');
8
8
 
@@ -1,4 +1,4 @@
1
- import { A, b as T, a as TailwindElement, x } from '../../index-3527fb14.js';
1
+ import { A, b as T, a as TailwindElement, x } from '../../index-814bcac2.js';
2
2
  import { n, e as e$2 } from '../../query-assigned-elements-5d94572f.js';
3
3
  import { i, t, e as e$1 } from '../../directive-2bb7789e.js';
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-688c3040.cjs');
5
+ const shared_tailwindElement_index = require('../../index-5cc4a839.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
  const state = require('../../state-f73a8b4f.cjs');
8
8
  const index = require('../../index-e9668573.cjs');
@@ -10,8 +10,8 @@ require('../lukso-icon/index.cjs');
10
10
  require('../lukso-profile/index.cjs');
11
11
  require('../lukso-username/index.cjs');
12
12
  require('../../directive-8278ab14.cjs');
13
- require('../../style-map-c86dd6e2.cjs');
14
- require('../../index-98e8e0d5.cjs');
13
+ require('../../style-map-7d4ddea1.cjs');
14
+ require('../../index-0e131d65.cjs');
15
15
 
16
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}";
17
17
 
@@ -1,4 +1,4 @@
1
- import { T as TailwindStyledElement, x, A } from '../../index-3527fb14.js';
1
+ import { T as TailwindStyledElement, x, A } from '../../index-814bcac2.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
3
  import { t } from '../../state-0a779257.js';
4
4
  import { c as customClassMap } from '../../index-5e194caf.js';
@@ -6,8 +6,8 @@ import '../lukso-icon/index.js';
6
6
  import '../lukso-profile/index.js';
7
7
  import '../lukso-username/index.js';
8
8
  import '../../directive-2bb7789e.js';
9
- import '../../style-map-9fdda015.js';
10
- import '../../index-1765cfe1.js';
9
+ import '../../style-map-21f59b89.js';
10
+ import '../../index-f171e7da.js';
11
11
 
12
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}";
13
13
 
@@ -2,17 +2,17 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-688c3040.cjs');
5
+ const shared_tailwindElement_index = require('../../index-5cc4a839.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
  const state = require('../../state-f73a8b4f.cjs');
8
- const index = require('../../index-e8741080.cjs');
8
+ const index = require('../../index-66211c85.cjs');
9
9
  require('../lukso-icon/index.cjs');
10
10
  require('../lukso-profile/index.cjs');
11
11
  require('../lukso-username/index.cjs');
12
- require('../../style-map-c86dd6e2.cjs');
12
+ require('../../style-map-7d4ddea1.cjs');
13
13
  require('../../directive-8278ab14.cjs');
14
14
  require('../../index-e9668573.cjs');
15
- require('../../index-98e8e0d5.cjs');
15
+ require('../../index-0e131d65.cjs');
16
16
 
17
17
  const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
18
18
 
@@ -47,7 +47,7 @@ exports.LuksoSelect = class LuksoSelect extends shared_tailwindElement_index.Tai
47
47
  this.isLargeIcon = false;
48
48
  this.optionsParsed = [];
49
49
  this.valueParsed = void 0;
50
- this.inputStyles = index.se({
50
+ this.inputStyles = index.ie({
51
51
  base: `bg-neutral-100 paragraph-inter-14-regular px-4 py-3 pr-11
52
52
  border border-solid h-[48px] placeholder:text-neutral-70 select-none whitespace-nowrap
53
53
  outline-none transition transition-all duration-150 appearance-none rounded-12
@@ -68,7 +68,7 @@ exports.LuksoSelect = class LuksoSelect extends shared_tailwindElement_index.Tai
68
68
  }
69
69
  }
70
70
  });
71
- this.dropdownWrapperStyles = index.se({
71
+ this.dropdownWrapperStyles = index.ie({
72
72
  base: `bg-neutral-100 border w-full border-neutral-90 shadow-1xl rounded-12 p-3 z-50
73
73
  flex absolute flex-col gap-1 overflow-y-auto max-h-64 mt-2`,
74
74
  variants: {
@@ -77,7 +77,7 @@ exports.LuksoSelect = class LuksoSelect extends shared_tailwindElement_index.Tai
77
77
  }
78
78
  }
79
79
  });
80
- this.optionsStyles = index.se({
80
+ this.optionsStyles = index.ie({
81
81
  base: `paragraph-inter-14-regular text-neutral-20 cursor-pointer rounded-8 p-2
82
82
  whitespace-nowrap hover:bg-neutral-98 flex items-center`,
83
83
  variants: {
@@ -89,7 +89,7 @@ exports.LuksoSelect = class LuksoSelect extends shared_tailwindElement_index.Tai
89
89
  }
90
90
  }
91
91
  });
92
- this.iconStyles = index.se({
92
+ this.iconStyles = index.ie({
93
93
  base: `absolute right-0 mr-3 transition cursor-pointer`,
94
94
  variants: {
95
95
  isDisabled: {
@@ -1,14 +1,14 @@
1
- import { T as TailwindStyledElement, x, A } from '../../index-3527fb14.js';
1
+ import { T as TailwindStyledElement, x, A } from '../../index-814bcac2.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
3
  import { t } from '../../state-0a779257.js';
4
- import { s as se } from '../../index-c55a1069.js';
4
+ import { i as ie } from '../../index-faa8c4ae.js';
5
5
  import '../lukso-icon/index.js';
6
6
  import '../lukso-profile/index.js';
7
7
  import '../lukso-username/index.js';
8
- import '../../style-map-9fdda015.js';
8
+ import '../../style-map-21f59b89.js';
9
9
  import '../../directive-2bb7789e.js';
10
10
  import '../../index-5e194caf.js';
11
- import '../../index-1765cfe1.js';
11
+ import '../../index-f171e7da.js';
12
12
 
13
13
  const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
14
14
 
@@ -43,7 +43,7 @@ let LuksoSelect = class extends TailwindStyledElement(style) {
43
43
  this.isLargeIcon = false;
44
44
  this.optionsParsed = [];
45
45
  this.valueParsed = void 0;
46
- this.inputStyles = se({
46
+ this.inputStyles = ie({
47
47
  base: `bg-neutral-100 paragraph-inter-14-regular px-4 py-3 pr-11
48
48
  border border-solid h-[48px] placeholder:text-neutral-70 select-none whitespace-nowrap
49
49
  outline-none transition transition-all duration-150 appearance-none rounded-12
@@ -64,7 +64,7 @@ let LuksoSelect = class extends TailwindStyledElement(style) {
64
64
  }
65
65
  }
66
66
  });
67
- this.dropdownWrapperStyles = se({
67
+ this.dropdownWrapperStyles = ie({
68
68
  base: `bg-neutral-100 border w-full border-neutral-90 shadow-1xl rounded-12 p-3 z-50
69
69
  flex absolute flex-col gap-1 overflow-y-auto max-h-64 mt-2`,
70
70
  variants: {
@@ -73,7 +73,7 @@ let LuksoSelect = class extends TailwindStyledElement(style) {
73
73
  }
74
74
  }
75
75
  });
76
- this.optionsStyles = se({
76
+ this.optionsStyles = ie({
77
77
  base: `paragraph-inter-14-regular text-neutral-20 cursor-pointer rounded-8 p-2
78
78
  whitespace-nowrap hover:bg-neutral-98 flex items-center`,
79
79
  variants: {
@@ -85,7 +85,7 @@ let LuksoSelect = class extends TailwindStyledElement(style) {
85
85
  }
86
86
  }
87
87
  });
88
- this.iconStyles = se({
88
+ this.iconStyles = ie({
89
89
  base: `absolute right-0 mr-3 transition cursor-pointer`,
90
90
  variants: {
91
91
  isDisabled: {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-688c3040.cjs');
5
+ const shared_tailwindElement_index = require('../../index-5cc4a839.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
 
8
8
  const style = ":host {\n display: inline-flex\n}";
@@ -1,4 +1,4 @@
1
- import { T as TailwindStyledElement, x } from '../../index-3527fb14.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-814bcac2.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
3
 
4
4
  const style = ":host {\n display: inline-flex\n}";
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-688c3040.cjs');
5
+ const shared_tailwindElement_index = require('../../index-5cc4a839.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
- const styleMap = require('../../style-map-c86dd6e2.cjs');
7
+ const styleMap = require('../../style-map-7d4ddea1.cjs');
8
8
  const index = require('../../index-e9668573.cjs');
9
9
  require('../../directive-8278ab14.cjs');
10
10
 
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x } from '../../index-3527fb14.js';
1
+ import { a as TailwindElement, x } from '../../index-814bcac2.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
- import { o } from '../../style-map-9fdda015.js';
3
+ import { o } from '../../style-map-21f59b89.js';
4
4
  import { c as customClassMap } from '../../index-5e194caf.js';
5
5
  import '../../directive-2bb7789e.js';
6
6
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-688c3040.cjs');
5
+ const shared_tailwindElement_index = require('../../index-5cc4a839.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
- const index = require('../../index-e8741080.cjs');
8
- const index$1 = require('../../index-98e8e0d5.cjs');
7
+ const index = require('../../index-66211c85.cjs');
8
+ const index$1 = require('../../index-0e131d65.cjs');
9
9
  require('../../directive-8278ab14.cjs');
10
10
 
11
11
  const style = ":host {\n display: inline-flex\n}";
@@ -29,7 +29,7 @@ exports.LuksoTag = class LuksoTag extends shared_tailwindElement_index.TailwindS
29
29
  this.backgroundColor = "";
30
30
  this.borderColor = "";
31
31
  this.textColor = "";
32
- this.tagStyles = index.se({
32
+ this.tagStyles = index.ie({
33
33
  base: "inline-flex items-center justify-center border border-neutral-20 text-neutral-20 px-2",
34
34
  variants: {
35
35
  size: {
@@ -1,7 +1,7 @@
1
- import { T as TailwindStyledElement, x } from '../../index-3527fb14.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-814bcac2.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
- import { s as se } from '../../index-c55a1069.js';
4
- import { c as customStyleMap } from '../../index-1765cfe1.js';
3
+ import { i as ie } from '../../index-faa8c4ae.js';
4
+ import { c as customStyleMap } from '../../index-f171e7da.js';
5
5
  import '../../directive-2bb7789e.js';
6
6
 
7
7
  const style = ":host {\n display: inline-flex\n}";
@@ -25,7 +25,7 @@ let LuksoTag = class extends TailwindStyledElement(style) {
25
25
  this.backgroundColor = "";
26
26
  this.borderColor = "";
27
27
  this.textColor = "";
28
- this.tagStyles = se({
28
+ this.tagStyles = ie({
29
29
  base: "inline-flex items-center justify-center border border-neutral-20 text-neutral-20 px-2",
30
30
  variants: {
31
31
  size: {
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-688c3040.cjs');
5
+ const shared_tailwindElement_index = require('../../index-5cc4a839.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
  const state = require('../../state-f73a8b4f.cjs');
8
8
  const index = require('../../index-e9668573.cjs');
9
9
  require('../lukso-icon/index.cjs');
10
10
  require('../lukso-sanitize/index.cjs');
11
11
  require('../../directive-8278ab14.cjs');
12
- require('../../style-map-c86dd6e2.cjs');
12
+ require('../../style-map-7d4ddea1.cjs');
13
13
 
14
14
  const style = ":host {\n display: flex;\n height: 100%\n}";
15
15
 
@@ -1,11 +1,11 @@
1
- import { T as TailwindStyledElement, x } from '../../index-3527fb14.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-814bcac2.js';
2
2
  import { n, e } from '../../query-assigned-elements-5d94572f.js';
3
3
  import { t } from '../../state-0a779257.js';
4
4
  import { c as customClassMap } from '../../index-5e194caf.js';
5
5
  import '../lukso-icon/index.js';
6
6
  import '../lukso-sanitize/index.js';
7
7
  import '../../directive-2bb7789e.js';
8
- import '../../style-map-9fdda015.js';
8
+ import '../../style-map-21f59b89.js';
9
9
 
10
10
  const style = ":host {\n display: flex;\n height: 100%\n}";
11
11
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-688c3040.cjs');
5
+ const shared_tailwindElement_index = require('../../index-5cc4a839.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
  const directive = require('../../directive-8278ab14.cjs');
8
8
 
@@ -1,4 +1,4 @@
1
- import { b as T$1, T as TailwindStyledElement, x as x$1 } from '../../index-3527fb14.js';
1
+ import { b as T$1, T as TailwindStyledElement, x as x$1 } from '../../index-814bcac2.js';
2
2
  import { n as n$3, e as e$3 } from '../../query-assigned-elements-5d94572f.js';
3
3
  import { e as e$2, i as i$3, t as t$3 } from '../../directive-2bb7789e.js';
4
4
 
@@ -2,10 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-688c3040.cjs');
5
+ const shared_tailwindElement_index = require('../../index-5cc4a839.cjs');
6
6
  const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
7
7
  const state = require('../../state-f73a8b4f.cjs');
8
- const index = require('../../index-e9668573.cjs');
8
+ const index = require('../../index-66211c85.cjs');
9
+ const styleMap = require('../../style-map-7d4ddea1.cjs');
9
10
  require('../../directive-8278ab14.cjs');
10
11
 
11
12
  var top = 'top';
@@ -3473,9 +3474,17 @@ exports.LuksoTooltip = class LuksoTooltip extends shared_tailwindElement_index.T
3473
3474
  this.copyText = "";
3474
3475
  this.copyValue = "";
3475
3476
  this.offset = 10;
3477
+ this.options = "";
3476
3478
  this.showCopy = false;
3477
- this.defaultTooltipStyles = "bg-neutral-20 p-4 hidden";
3479
+ this.optionsParsed = [];
3478
3480
  this.tooltipInstance = void 0;
3481
+ this.tooltipStyles = index.ie({
3482
+ slots: {
3483
+ tooltip: "hidden",
3484
+ trigger: "cursor-pointer flex flex-col items-center",
3485
+ options: "rounded-4 hover:bg-neutral-95"
3486
+ }
3487
+ });
3479
3488
  }
3480
3489
  hideOnClickCheck() {
3481
3490
  if (this.hideOnClick === "toggle") {
@@ -3495,7 +3504,7 @@ exports.LuksoTooltip = class LuksoTooltip extends shared_tailwindElement_index.T
3495
3504
  this.tooltipInstance.destroy();
3496
3505
  this.tooltipInstance = void 0;
3497
3506
  }
3498
- if (!this.text) {
3507
+ if (!this.text && !this.options) {
3499
3508
  return;
3500
3509
  }
3501
3510
  this.tooltipInstance = tippy(trigger, {
@@ -3527,25 +3536,44 @@ exports.LuksoTooltip = class LuksoTooltip extends shared_tailwindElement_index.T
3527
3536
  await this.updateComplete;
3528
3537
  if (changedProperties.has("show") && this.trigger === "manual") {
3529
3538
  if (this.show) {
3530
- !!!this.tooltipInstance && this.initTooltip();
3539
+ !this.tooltipInstance && this.initTooltip();
3531
3540
  this.tooltipInstance.show();
3532
3541
  } else {
3533
3542
  this.tooltipInstance?.hide();
3534
3543
  }
3535
3544
  return;
3536
3545
  }
3546
+ if (changedProperties.has("options") && !!this.options) {
3547
+ try {
3548
+ this.optionsParsed = JSON.parse(this.options);
3549
+ } catch (error) {
3550
+ console.warn("Could not parse options", error);
3551
+ }
3552
+ }
3537
3553
  this.initTooltip();
3538
3554
  }
3555
+ optionsTemplate() {
3556
+ const { options } = this.tooltipStyles();
3557
+ return shared_tailwindElement_index.x`<ul>
3558
+ ${Object.entries(this.optionsParsed)?.map(
3559
+ (option) => shared_tailwindElement_index.x`<li
3560
+ class=${options()}
3561
+ style=${styleMap.o({
3562
+ padding: "4px 8px",
3563
+ cursor: "pointer"
3564
+ })}
3565
+ onClick="navigator.clipboard.writeText('${option[1].value}')"
3566
+ >
3567
+ ${option[1].text}
3568
+ </li>`
3569
+ )}
3570
+ </ul>`;
3571
+ }
3539
3572
  render() {
3573
+ const { tooltip, trigger } = this.tooltipStyles();
3540
3574
  return shared_tailwindElement_index.x`
3541
- <div
3542
- id="tooltip"
3543
- role="tooltip"
3544
- class=${index.customClassMap({
3545
- [this.defaultTooltipStyles]: true
3546
- })}
3547
- >
3548
- ${this.text}
3575
+ <div id="tooltip" role="tooltip" class=${tooltip()}>
3576
+ ${this.options ? this.optionsTemplate() : this.text}
3549
3577
  </div>
3550
3578
  ${this.isClipboardCopy ? shared_tailwindElement_index.x`<lukso-tooltip
3551
3579
  variant=${this.variant}
@@ -3557,18 +3585,10 @@ exports.LuksoTooltip = class LuksoTooltip extends shared_tailwindElement_index.T
3557
3585
  ?show=${this.showCopy ? true : void 0}
3558
3586
  text=${this.copyText}
3559
3587
  >
3560
- <div
3561
- id="trigger"
3562
- class="cursor-pointer flex flex-col items-center"
3563
- @click=${this.handleClick}
3564
- >
3588
+ <div id="trigger" class=${trigger()} @click=${this.handleClick}>
3565
3589
  <slot></slot>
3566
3590
  </div>
3567
- </lukso-tooltip>` : shared_tailwindElement_index.x`<div
3568
- id="trigger"
3569
- class="cursor-pointer flex flex-col items-center"
3570
- @click=${this.handleClick}
3571
- >
3591
+ </lukso-tooltip>` : shared_tailwindElement_index.x`<div id="trigger" class=${trigger()} @click=${this.handleClick}>
3572
3592
  <slot></slot>
3573
3593
  </div>`}
3574
3594
  `;
@@ -3610,9 +3630,15 @@ __decorateClass([
3610
3630
  __decorateClass([
3611
3631
  queryAssignedElements.n({ type: Number })
3612
3632
  ], exports.LuksoTooltip.prototype, "offset", 2);
3633
+ __decorateClass([
3634
+ queryAssignedElements.n({ type: String })
3635
+ ], exports.LuksoTooltip.prototype, "options", 2);
3613
3636
  __decorateClass([
3614
3637
  state.t()
3615
3638
  ], exports.LuksoTooltip.prototype, "showCopy", 2);
3639
+ __decorateClass([
3640
+ state.t()
3641
+ ], exports.LuksoTooltip.prototype, "optionsParsed", 2);
3616
3642
  exports.LuksoTooltip = __decorateClass([
3617
3643
  queryAssignedElements.e("lukso-tooltip")
3618
3644
  ], exports.LuksoTooltip);
@@ -1,8 +1,13 @@
1
- import { PropertyValues } from 'lit';
1
+ import { type PropertyValues } from 'lit';
2
2
  export type TooltipVariant = 'dark' | 'light' | 'success' | 'danger' | 'white';
3
3
  export type TooltipSize = 'medium' | 'large';
4
4
  export type TooltipPlacement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'auto' | 'auto-start' | 'auto-end';
5
5
  export type TooltipTrigger = 'mouseenter' | 'click' | 'manual';
6
+ export type TooltipOption = {
7
+ id?: string;
8
+ value: string;
9
+ text: string;
10
+ };
6
11
  declare const LuksoTooltip_base: typeof import("lit").LitElement;
7
12
  export declare class LuksoTooltip extends LuksoTooltip_base {
8
13
  variant: TooltipVariant;
@@ -17,13 +22,16 @@ export declare class LuksoTooltip extends LuksoTooltip_base {
17
22
  copyText: string;
18
23
  copyValue: string;
19
24
  offset: number;
25
+ options: string;
20
26
  showCopy: boolean;
21
- private defaultTooltipStyles;
27
+ optionsParsed: TooltipOption[];
22
28
  private tooltipInstance;
29
+ private tooltipStyles;
23
30
  private hideOnClickCheck;
24
31
  private initTooltip;
25
32
  private handleClick;
26
33
  willUpdate(changedProperties: PropertyValues<this>): Promise<void>;
34
+ private optionsTemplate;
27
35
  render(): import("lit-html").TemplateResult<1>;
28
36
  }
29
37
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAQ,MAAM,KAAK,CAAA;AAQ1C,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAA;AAC9E,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAA;AAC5C,MAAM,MAAM,gBAAgB,GACxB,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,MAAM,GACN,YAAY,GACZ,UAAU,CAAA;AACd,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,CAAA;;AAE9D,qBACa,YAAa,SAAQ,iBAA4B;IAE5D,OAAO,EAAE,cAAc,CAAU;IAGjC,IAAI,EAAE,WAAW,CAAW;IAG5B,SAAS,EAAE,gBAAgB,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