@lukso/web-components 1.158.0 → 1.160.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 (91) hide show
  1. package/dist/components/index.cjs +4 -4
  2. package/dist/components/index.js +4 -4
  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-collapse/index.cjs +3 -3
  10. package/dist/components/lukso-collapse/index.js +3 -3
  11. package/dist/components/lukso-color-picker/index.cjs +4 -4
  12. package/dist/components/lukso-color-picker/index.js +4 -4
  13. package/dist/components/lukso-dropdown/index.cjs +4 -4
  14. package/dist/components/lukso-dropdown/index.js +4 -4
  15. package/dist/components/lukso-dropdown-option/index.cjs +2 -2
  16. package/dist/components/lukso-dropdown-option/index.js +2 -2
  17. package/dist/components/lukso-footer/index.cjs +2 -2
  18. package/dist/components/lukso-footer/index.js +2 -2
  19. package/dist/components/lukso-icon/index.cjs +4 -4
  20. package/dist/components/lukso-icon/index.js +4 -4
  21. package/dist/components/lukso-image/index.cjs +4 -4
  22. package/dist/components/lukso-image/index.js +4 -4
  23. package/dist/components/lukso-input/index.cjs +3 -3
  24. package/dist/components/lukso-input/index.js +3 -3
  25. package/dist/components/lukso-markdown/index.cjs +2 -2
  26. package/dist/components/lukso-markdown/index.js +2 -2
  27. package/dist/components/lukso-markdown-editor/index.cjs +16 -9
  28. package/dist/components/lukso-markdown-editor/index.d.ts +1 -1
  29. package/dist/components/lukso-markdown-editor/index.d.ts.map +1 -1
  30. package/dist/components/lukso-markdown-editor/index.js +16 -9
  31. package/dist/components/lukso-markdown-editor/lukso-markdown-editor.stories.d.ts +2 -2
  32. package/dist/components/lukso-markdown-editor/lukso-markdown-editor.stories.d.ts.map +1 -1
  33. package/dist/components/lukso-modal/index.cjs +2 -2
  34. package/dist/components/lukso-modal/index.js +2 -2
  35. package/dist/components/lukso-navbar/index.cjs +3 -3
  36. package/dist/components/lukso-navbar/index.js +3 -3
  37. package/dist/components/lukso-pagination/index.cjs +3 -3
  38. package/dist/components/lukso-pagination/index.js +3 -3
  39. package/dist/components/lukso-profile/index.cjs +3 -3
  40. package/dist/components/lukso-profile/index.js +3 -3
  41. package/dist/components/lukso-progress/index.cjs +3 -3
  42. package/dist/components/lukso-progress/index.js +3 -3
  43. package/dist/components/lukso-radio/index.cjs +3 -3
  44. package/dist/components/lukso-radio/index.js +3 -3
  45. package/dist/components/lukso-radio-group/index.cjs +3 -3
  46. package/dist/components/lukso-radio-group/index.js +3 -3
  47. package/dist/components/lukso-sanitize/index.cjs +3 -3
  48. package/dist/components/lukso-sanitize/index.js +3 -3
  49. package/dist/components/lukso-search/index.cjs +6 -6
  50. package/dist/components/lukso-search/index.js +6 -6
  51. package/dist/components/lukso-select/index.cjs +5 -5
  52. package/dist/components/lukso-select/index.js +5 -5
  53. package/dist/components/lukso-share/index.cjs +2 -2
  54. package/dist/components/lukso-share/index.js +2 -2
  55. package/dist/components/lukso-switch/index.cjs +3 -3
  56. package/dist/components/lukso-switch/index.js +3 -3
  57. package/dist/components/lukso-tag/index.cjs +3 -3
  58. package/dist/components/lukso-tag/index.js +3 -3
  59. package/dist/components/lukso-terms/index.cjs +3 -3
  60. package/dist/components/lukso-terms/index.js +3 -3
  61. package/dist/components/lukso-textarea/index.cjs +3 -3
  62. package/dist/components/lukso-textarea/index.js +3 -3
  63. package/dist/components/lukso-tooltip/index.cjs +3 -3
  64. package/dist/components/lukso-tooltip/index.js +3 -3
  65. package/dist/components/lukso-username/index.cjs +4 -4
  66. package/dist/components/lukso-username/index.js +4 -4
  67. package/dist/components/lukso-wizard/index.cjs +2 -2
  68. package/dist/components/lukso-wizard/index.js +2 -2
  69. package/dist/{index-YQoO_Soq.js → index-B5CXCi6j.js} +1 -1
  70. package/dist/{index-Vj-gQHwJ.js → index-BSwFyDEC.js} +3 -3
  71. package/dist/{index-CgUaX5S2.cjs → index-C1JF-hTl.cjs} +5 -5
  72. package/dist/{index-BhmMhjR9.cjs → index-C9Ins46B.cjs} +1 -1
  73. package/dist/{index-ldATebdp.js → index-CDUQ0-Uh.js} +5 -5
  74. package/dist/{index-1XmcSGot.cjs → index-CKjNXRek.cjs} +3 -3
  75. package/dist/{index-Fy0gnibp.js → index-CKlH1beR.js} +1 -1
  76. package/dist/{index-DVrgVgp0.cjs → index-D4DEFira.cjs} +1 -1
  77. package/dist/{index-CJ6SmSwD.cjs → index-DNhzT2hA.cjs} +2 -2
  78. package/dist/{index-CP2bxOlA.js → index-NKnet_Ow.js} +2 -2
  79. package/dist/index.cjs +4 -4
  80. package/dist/index.js +4 -4
  81. package/dist/{property-Dsz7qIbu.js → property-Da9lvmME.js} +1 -1
  82. package/dist/{property-Df-2NJoK.cjs → property-dUn0JQiG.cjs} +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-B2ymS5qU.cjs → state-CD8hXUlY.cjs} +1 -1
  86. package/dist/{state-CcocMKSJ.js → state-CtpsBPdH.js} +1 -1
  87. package/dist/{style-map-A9HLuIu5.js → style-map-CDCcO0mt.js} +1 -1
  88. package/dist/{style-map-CZiyZP71.cjs → style-map-nBexjTCa.cjs} +1 -1
  89. package/dist/{unsafe-html-BTdQd0Aj.js → unsafe-html-Ci4jmi7b.js} +1 -1
  90. package/dist/{unsafe-html-CWvuBYgI.cjs → unsafe-html-DHNeIs-4.cjs} +1 -1
  91. package/package.json +1 -1
@@ -18,12 +18,12 @@ const components_luksoMarkdownEditor_index = require('./lukso-markdown-editor/in
18
18
  const components_luksoModal_index = require('./lukso-modal/index.cjs');
19
19
  const components_luksoNavbar_index = require('./lukso-navbar/index.cjs');
20
20
  const components_luksoPagination_index = require('./lukso-pagination/index.cjs');
21
- const components_luksoProfile_index = require('../index-CJ6SmSwD.cjs');
21
+ const components_luksoProfile_index = require('../index-DNhzT2hA.cjs');
22
22
  const components_luksoProgress_index = require('./lukso-progress/index.cjs');
23
23
  const components_luksoRadio_index = require('./lukso-radio/index.cjs');
24
24
  const components_luksoRadioGroup_index = require('./lukso-radio-group/index.cjs');
25
25
  const components_luksoSanitize_index = require('./lukso-sanitize/index.cjs');
26
- const components_luksoSearch_index = require('../index-CgUaX5S2.cjs');
26
+ const components_luksoSearch_index = require('../index-C1JF-hTl.cjs');
27
27
  const components_luksoSelect_index = require('./lukso-select/index.cjs');
28
28
  const components_luksoShare_index = require('./lukso-share/index.cjs');
29
29
  const components_luksoSwitch_index = require('./lukso-switch/index.cjs');
@@ -31,9 +31,9 @@ const components_luksoTag_index = require('./lukso-tag/index.cjs');
31
31
  const components_luksoTerms_index = require('./lukso-terms/index.cjs');
32
32
  const components_luksoTextarea_index = require('./lukso-textarea/index.cjs');
33
33
  const components_luksoTooltip_index = require('./lukso-tooltip/index.cjs');
34
- const components_luksoUsername_index = require('../index-1XmcSGot.cjs');
34
+ const components_luksoUsername_index = require('../index-CKjNXRek.cjs');
35
35
  const components_luksoWizard_index = require('./lukso-wizard/index.cjs');
36
- const shared_tailwindElement_index = require('../index-DVrgVgp0.cjs');
36
+ const shared_tailwindElement_index = require('../index-D4DEFira.cjs');
37
37
  require('../axe-C-H1UVi1.cjs');
38
38
 
39
39
 
@@ -14,12 +14,12 @@ export { LuksoMarkdownEditor } from './lukso-markdown-editor/index.js';
14
14
  export { LuksoModal } from './lukso-modal/index.js';
15
15
  export { LuksoNavbar } from './lukso-navbar/index.js';
16
16
  export { LuksoPagination } from './lukso-pagination/index.js';
17
- export { L as LuksoProfile } from '../index-CP2bxOlA.js';
17
+ export { L as LuksoProfile } from '../index-NKnet_Ow.js';
18
18
  export { LuksoProgress } from './lukso-progress/index.js';
19
19
  export { LuksoRadio } from './lukso-radio/index.js';
20
20
  export { LuksoRadioGroup } from './lukso-radio-group/index.js';
21
21
  export { LuksoSanitize } from './lukso-sanitize/index.js';
22
- export { L as LuksoSearch } from '../index-ldATebdp.js';
22
+ export { L as LuksoSearch } from '../index-CDUQ0-Uh.js';
23
23
  export { LuksoSelect } from './lukso-select/index.js';
24
24
  export { LuksoShare } from './lukso-share/index.js';
25
25
  export { LuksoSwitch } from './lukso-switch/index.js';
@@ -27,7 +27,7 @@ export { LuksoTag } from './lukso-tag/index.js';
27
27
  export { LuksoTerms } from './lukso-terms/index.js';
28
28
  export { LuksoTextarea } from './lukso-textarea/index.js';
29
29
  export { LuksoTooltip } from './lukso-tooltip/index.js';
30
- export { L as LuksoUsername } from '../index-Vj-gQHwJ.js';
30
+ export { L as LuksoUsername } from '../index-BSwFyDEC.js';
31
31
  export { LuksoWizard } from './lukso-wizard/index.js';
32
- export { a as TailwindElement, T as TailwindStyledElement } from '../index-YQoO_Soq.js';
32
+ export { a as TailwindElement, T as TailwindStyledElement } from '../index-B5CXCi6j.js';
33
33
  import '../axe-BK9JSROP.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-DVrgVgp0.cjs');
6
- const property = require('../../property-Df-2NJoK.cjs');
7
- const state = require('../../state-B2ymS5qU.cjs');
5
+ const shared_tailwindElement_index = require('../../index-D4DEFira.cjs');
6
+ const property = require('../../property-dUn0JQiG.cjs');
7
+ const state = require('../../state-CD8hXUlY.cjs');
8
8
  const index = require('../../index-CaJky2qL.cjs');
9
9
  require('../../tailwind-config.cjs');
10
10
  const axe = require('../../axe-C-H1UVi1.cjs');
@@ -1,6 +1,6 @@
1
- import { T as TailwindStyledElement, E, x } from '../../index-YQoO_Soq.js';
2
- import { n, t } from '../../property-Dsz7qIbu.js';
3
- import { r } from '../../state-CcocMKSJ.js';
1
+ import { T as TailwindStyledElement, E, x } from '../../index-B5CXCi6j.js';
2
+ import { n, t } from '../../property-Da9lvmME.js';
3
+ import { r } from '../../state-CtpsBPdH.js';
4
4
  import { c as ce } from '../../index-B9iart53.js';
5
5
  import '../../tailwind-config.js';
6
6
  import { c as cn } from '../../axe-BK9JSROP.js';
@@ -2,17 +2,17 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const components_luksoProfile_index = require('../../index-CJ6SmSwD.cjs');
6
- const shared_tailwindElement_index = require('../../index-DVrgVgp0.cjs');
7
- const property = require('../../property-Df-2NJoK.cjs');
8
- const state = require('../../state-B2ymS5qU.cjs');
5
+ const components_luksoProfile_index = require('../../index-DNhzT2hA.cjs');
6
+ const shared_tailwindElement_index = require('../../index-D4DEFira.cjs');
7
+ const property = require('../../property-dUn0JQiG.cjs');
8
+ const state = require('../../state-CD8hXUlY.cjs');
9
9
  const base = require('../../base-NFGX42U4.cjs');
10
- const styleMap = require('../../style-map-CZiyZP71.cjs');
10
+ const styleMap = require('../../style-map-nBexjTCa.cjs');
11
11
  const index = require('../../index-CaJky2qL.cjs');
12
12
  require('../../tailwind-config.cjs');
13
13
  const axe = require('../../axe-C-H1UVi1.cjs');
14
14
  const isAddress = require('../../isAddress-DYM3mZP7.cjs');
15
- const index$1 = require('../../index-BhmMhjR9.cjs');
15
+ const index$1 = require('../../index-C9Ins46B.cjs');
16
16
  require('../lukso-image/index.cjs');
17
17
 
18
18
  /**
@@ -1,14 +1,14 @@
1
- import { m as makeBlockie } from '../../index-CP2bxOlA.js';
2
- import { T as TailwindStyledElement, x, E } from '../../index-YQoO_Soq.js';
3
- import { n, t } from '../../property-Dsz7qIbu.js';
4
- import { r } from '../../state-CcocMKSJ.js';
1
+ import { m as makeBlockie } from '../../index-NKnet_Ow.js';
2
+ import { T as TailwindStyledElement, x, E } from '../../index-B5CXCi6j.js';
3
+ import { n, t } from '../../property-Da9lvmME.js';
4
+ import { r } from '../../state-CtpsBPdH.js';
5
5
  import { e } from '../../base-Cl6v8-BZ.js';
6
- import { o as o$1 } from '../../style-map-A9HLuIu5.js';
6
+ import { o as o$1 } from '../../style-map-CDCcO0mt.js';
7
7
  import { c as ce } from '../../index-B9iart53.js';
8
8
  import '../../tailwind-config.js';
9
9
  import { c as cn } from '../../axe-BK9JSROP.js';
10
10
  import { i as isAddress } from '../../isAddress-ZNhN82OL.js';
11
- import { c as customStyleMap } from '../../index-Fy0gnibp.js';
11
+ import { c as customStyleMap } from '../../index-CKlH1beR.js';
12
12
  import '../lukso-image/index.js';
13
13
 
14
14
  /**
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-DVrgVgp0.cjs');
6
- const property = require('../../property-Df-2NJoK.cjs');
7
- const state = require('../../state-B2ymS5qU.cjs');
5
+ const shared_tailwindElement_index = require('../../index-D4DEFira.cjs');
6
+ const property = require('../../property-dUn0JQiG.cjs');
7
+ const state = require('../../state-CD8hXUlY.cjs');
8
8
  const index = require('../../index-D0nCA-7X.cjs');
9
9
 
10
10
  var __defProp = Object.defineProperty;
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x, E } from '../../index-YQoO_Soq.js';
2
- import { n, t } from '../../property-Dsz7qIbu.js';
3
- import { r } from '../../state-CcocMKSJ.js';
1
+ import { a as TailwindElement, x, E } from '../../index-B5CXCi6j.js';
2
+ import { n, t } from '../../property-Da9lvmME.js';
3
+ import { r } from '../../state-CtpsBPdH.js';
4
4
  import { c as customClassMap } from '../../index-F8ll4iy2.js';
5
5
 
6
6
  var __defProp = Object.defineProperty;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-DVrgVgp0.cjs');
6
- const property = require('../../property-Df-2NJoK.cjs');
7
- const state = require('../../state-B2ymS5qU.cjs');
5
+ const shared_tailwindElement_index = require('../../index-D4DEFira.cjs');
6
+ const property = require('../../property-dUn0JQiG.cjs');
7
+ const state = require('../../state-CD8hXUlY.cjs');
8
8
  const query = require('../../query-EFiHeHdi.cjs');
9
9
  const index = require('../../index-CaJky2qL.cjs');
10
10
  require('../../tailwind-config.cjs');
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x } from '../../index-YQoO_Soq.js';
2
- import { n, t } from '../../property-Dsz7qIbu.js';
3
- import { r } from '../../state-CcocMKSJ.js';
1
+ import { a as TailwindElement, x } from '../../index-B5CXCi6j.js';
2
+ import { n, t } from '../../property-Da9lvmME.js';
3
+ import { r } from '../../state-CtpsBPdH.js';
4
4
  import { e } from '../../query-CHb9Ft_d.js';
5
5
  import { c as ce } from '../../index-B9iart53.js';
6
6
  import '../../tailwind-config.js';
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-DVrgVgp0.cjs');
6
- const property = require('../../property-Df-2NJoK.cjs');
7
- const state = require('../../state-B2ymS5qU.cjs');
5
+ const shared_tailwindElement_index = require('../../index-D4DEFira.cjs');
6
+ const property = require('../../property-dUn0JQiG.cjs');
7
+ const state = require('../../state-CD8hXUlY.cjs');
8
8
  const index = require('../../index-CaJky2qL.cjs');
9
- const styleMap = require('../../style-map-CZiyZP71.cjs');
9
+ const styleMap = require('../../style-map-nBexjTCa.cjs');
10
10
  require('../../tailwind-config.cjs');
11
11
  const axe = require('../../axe-C-H1UVi1.cjs');
12
12
  require('../lukso-icon/index.cjs');
@@ -1,8 +1,8 @@
1
- import { T as TailwindStyledElement, E, x } from '../../index-YQoO_Soq.js';
2
- import { n, t } from '../../property-Dsz7qIbu.js';
3
- import { r } from '../../state-CcocMKSJ.js';
1
+ import { T as TailwindStyledElement, E, x } from '../../index-B5CXCi6j.js';
2
+ import { n, t } from '../../property-Da9lvmME.js';
3
+ import { r } from '../../state-CtpsBPdH.js';
4
4
  import { c as ce } from '../../index-B9iart53.js';
5
- import { o } from '../../style-map-A9HLuIu5.js';
5
+ import { o } from '../../style-map-CDCcO0mt.js';
6
6
  import '../../tailwind-config.js';
7
7
  import { c as cn } from '../../axe-BK9JSROP.js';
8
8
  import '../lukso-icon/index.js';
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-DVrgVgp0.cjs');
6
- const property = require('../../property-Df-2NJoK.cjs');
5
+ const shared_tailwindElement_index = require('../../index-D4DEFira.cjs');
6
+ const property = require('../../property-dUn0JQiG.cjs');
7
7
  const index = require('../../index-CaJky2qL.cjs');
8
8
  require('../lukso-icon/index.cjs');
9
- require('../../index-CJ6SmSwD.cjs');
10
- require('../../index-1XmcSGot.cjs');
9
+ require('../../index-DNhzT2hA.cjs');
10
+ require('../../index-CKjNXRek.cjs');
11
11
  const uniqId = require('../../uniq-id-Cszs24DQ.cjs');
12
12
 
13
13
  const debounceFunction = (func, timeout = 100) => {
@@ -1,9 +1,9 @@
1
- import { T as TailwindStyledElement, E, x } from '../../index-YQoO_Soq.js';
2
- import { n, t } from '../../property-Dsz7qIbu.js';
1
+ import { T as TailwindStyledElement, E, x } from '../../index-B5CXCi6j.js';
2
+ import { n, t } from '../../property-Da9lvmME.js';
3
3
  import { c as ce } from '../../index-B9iart53.js';
4
4
  import '../lukso-icon/index.js';
5
- import '../../index-CP2bxOlA.js';
6
- import '../../index-Vj-gQHwJ.js';
5
+ import '../../index-NKnet_Ow.js';
6
+ import '../../index-BSwFyDEC.js';
7
7
  import { u as uniqId } from '../../uniq-id-CGUN-pJV.js';
8
8
 
9
9
  const debounceFunction = (func, timeout = 100) => {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-DVrgVgp0.cjs');
6
- const property = require('../../property-Df-2NJoK.cjs');
5
+ const shared_tailwindElement_index = require('../../index-D4DEFira.cjs');
6
+ const property = require('../../property-dUn0JQiG.cjs');
7
7
  const index = require('../../index-CaJky2qL.cjs');
8
8
 
9
9
  const style = ":host {\n display: block\n}";
@@ -1,5 +1,5 @@
1
- import { T as TailwindStyledElement, x } from '../../index-YQoO_Soq.js';
2
- import { n, t } from '../../property-Dsz7qIbu.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-B5CXCi6j.js';
2
+ import { n, t } from '../../property-Da9lvmME.js';
3
3
  import { c as ce } from '../../index-B9iart53.js';
4
4
 
5
5
  const style = ":host {\n display: block\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-DVrgVgp0.cjs');
6
- const property = require('../../property-Df-2NJoK.cjs');
5
+ const shared_tailwindElement_index = require('../../index-D4DEFira.cjs');
6
+ const property = require('../../property-dUn0JQiG.cjs');
7
7
 
8
8
  var __defProp = Object.defineProperty;
9
9
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,5 +1,5 @@
1
- import { a as TailwindElement, x } from '../../index-YQoO_Soq.js';
2
- import { n, t } from '../../property-Dsz7qIbu.js';
1
+ import { a as TailwindElement, x } from '../../index-B5CXCi6j.js';
2
+ import { n, t } from '../../property-Da9lvmME.js';
3
3
 
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-DVrgVgp0.cjs');
6
- const property = require('../../property-Df-2NJoK.cjs');
7
- const unsafeHtml = require('../../unsafe-html-CWvuBYgI.cjs');
8
- const styleMap = require('../../style-map-CZiyZP71.cjs');
5
+ const shared_tailwindElement_index = require('../../index-D4DEFira.cjs');
6
+ const property = require('../../property-dUn0JQiG.cjs');
7
+ const unsafeHtml = require('../../unsafe-html-DHNeIs-4.cjs');
8
+ const styleMap = require('../../style-map-nBexjTCa.cjs');
9
9
 
10
10
  const style = ":host {\n position: relative;\n display: inline-block;\n line-height: 0;\n}\n:host svg {\n display: block !important;\n}";
11
11
 
@@ -1,7 +1,7 @@
1
- import { x, T as TailwindStyledElement } from '../../index-YQoO_Soq.js';
2
- import { n, t } from '../../property-Dsz7qIbu.js';
3
- import { o as o$1 } from '../../unsafe-html-BTdQd0Aj.js';
4
- import { o } from '../../style-map-A9HLuIu5.js';
1
+ import { x, T as TailwindStyledElement } from '../../index-B5CXCi6j.js';
2
+ import { n, t } from '../../property-Da9lvmME.js';
3
+ import { o as o$1 } from '../../unsafe-html-Ci4jmi7b.js';
4
+ import { o } from '../../style-map-CDCcO0mt.js';
5
5
 
6
6
  const style = ":host {\n position: relative;\n display: inline-block;\n line-height: 0;\n}\n:host svg {\n display: block !important;\n}";
7
7
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-DVrgVgp0.cjs');
6
- const property = require('../../property-Df-2NJoK.cjs');
7
- const state = require('../../state-B2ymS5qU.cjs');
8
- const styleMap = require('../../style-map-CZiyZP71.cjs');
5
+ const shared_tailwindElement_index = require('../../index-D4DEFira.cjs');
6
+ const property = require('../../property-dUn0JQiG.cjs');
7
+ const state = require('../../state-CD8hXUlY.cjs');
8
+ const styleMap = require('../../style-map-nBexjTCa.cjs');
9
9
  const index = require('../../index-CaJky2qL.cjs');
10
10
 
11
11
  var __defProp = Object.defineProperty;
@@ -1,7 +1,7 @@
1
- import { a as TailwindElement, x } from '../../index-YQoO_Soq.js';
2
- import { n, t } from '../../property-Dsz7qIbu.js';
3
- import { r } from '../../state-CcocMKSJ.js';
4
- import { o } from '../../style-map-A9HLuIu5.js';
1
+ import { a as TailwindElement, x } from '../../index-B5CXCi6j.js';
2
+ import { n, t } from '../../property-Da9lvmME.js';
3
+ import { r } from '../../state-CtpsBPdH.js';
4
+ import { o } from '../../style-map-CDCcO0mt.js';
5
5
  import { c as ce } from '../../index-B9iart53.js';
6
6
 
7
7
  var __defProp = Object.defineProperty;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-DVrgVgp0.cjs');
6
- const property = require('../../property-Df-2NJoK.cjs');
7
- const state = require('../../state-B2ymS5qU.cjs');
5
+ const shared_tailwindElement_index = require('../../index-D4DEFira.cjs');
6
+ const property = require('../../property-dUn0JQiG.cjs');
7
+ const state = require('../../state-CD8hXUlY.cjs');
8
8
  const index = require('../../index-CaJky2qL.cjs');
9
9
  require('../lukso-icon/index.cjs');
10
10
  require('../lukso-sanitize/index.cjs');
@@ -1,6 +1,6 @@
1
- import { T as TailwindStyledElement, E, x } from '../../index-YQoO_Soq.js';
2
- import { n, t } from '../../property-Dsz7qIbu.js';
3
- import { r } from '../../state-CcocMKSJ.js';
1
+ import { T as TailwindStyledElement, E, x } from '../../index-B5CXCi6j.js';
2
+ import { n, t } from '../../property-Da9lvmME.js';
3
+ import { r } from '../../state-CtpsBPdH.js';
4
4
  import { c as ce } from '../../index-B9iart53.js';
5
5
  import '../lukso-icon/index.js';
6
6
  import '../lukso-sanitize/index.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-DVrgVgp0.cjs');
6
- const property = require('../../property-Df-2NJoK.cjs');
5
+ const shared_tailwindElement_index = require('../../index-D4DEFira.cjs');
6
+ const property = require('../../property-dUn0JQiG.cjs');
7
7
  require('../lukso-sanitize/index.cjs');
8
8
 
9
9
  /**
@@ -1,5 +1,5 @@
1
- import { T as TailwindStyledElement, x } from '../../index-YQoO_Soq.js';
2
- import { n, t } from '../../property-Dsz7qIbu.js';
1
+ import { T as TailwindStyledElement, x } from '../../index-B5CXCi6j.js';
2
+ import { n, t } from '../../property-Da9lvmME.js';
3
3
  import '../lukso-sanitize/index.js';
4
4
 
5
5
  /**
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-DVrgVgp0.cjs');
6
- const property = require('../../property-Df-2NJoK.cjs');
7
- const state = require('../../state-B2ymS5qU.cjs');
5
+ const shared_tailwindElement_index = require('../../index-D4DEFira.cjs');
6
+ const property = require('../../property-dUn0JQiG.cjs');
7
+ const state = require('../../state-CD8hXUlY.cjs');
8
8
  const query = require('../../query-EFiHeHdi.cjs');
9
9
  const index = require('../../index-CaJky2qL.cjs');
10
10
  require('../../tailwind-config.cjs');
@@ -204,6 +204,7 @@ var __decorateClass = (decorators, target, key, kind) => {
204
204
  return result;
205
205
  };
206
206
  const DEFAULT_PREVIEW_BACKGROUND_COLOR = "#f9f9f9";
207
+ const DEFAULT_PREVIEW_TEXT_COLOR = "#374151";
207
208
  exports.LuksoMarkdownEditor = class LuksoMarkdownEditor extends shared_tailwindElement_index.TailwindStyledElement(style) {
208
209
  constructor() {
209
210
  super(...arguments);
@@ -222,6 +223,7 @@ exports.LuksoMarkdownEditor = class LuksoMarkdownEditor extends shared_tailwindE
222
223
  this.rows = 6;
223
224
  this.placeholder = "";
224
225
  this.previewBackgroundColor = DEFAULT_PREVIEW_BACKGROUND_COLOR;
226
+ this.previewTextColor = DEFAULT_PREVIEW_TEXT_COLOR;
225
227
  this.savedSelectionForPreview = null;
226
228
  this.isHeadingDropdownOpen = false;
227
229
  this.isColorDropdownOpen = false;
@@ -233,7 +235,6 @@ exports.LuksoMarkdownEditor = class LuksoMarkdownEditor extends shared_tailwindE
233
235
  this.alignmentTriggerId = "alignment-dropdown-trigger";
234
236
  this.currentSelection = { start: 0, end: 0 };
235
237
  this.savedSelection = null;
236
- this.defaultColor = "#374151";
237
238
  this.activeFormats = {
238
239
  bold: false,
239
240
  italic: false,
@@ -243,7 +244,7 @@ exports.LuksoMarkdownEditor = class LuksoMarkdownEditor extends shared_tailwindE
243
244
  h3: false,
244
245
  h4: false,
245
246
  color: false,
246
- activeColor: this.defaultColor,
247
+ activeColor: DEFAULT_PREVIEW_TEXT_COLOR,
247
248
  unorderedList: false,
248
249
  orderedList: false,
249
250
  alignment: "left"
@@ -412,7 +413,7 @@ exports.LuksoMarkdownEditor = class LuksoMarkdownEditor extends shared_tailwindE
412
413
  // dark gray
413
414
  "#000000",
414
415
  // black
415
- this.defaultColor
416
+ DEFAULT_PREVIEW_TEXT_COLOR
416
417
  ];
417
418
  /**
418
419
  * Handle input event from the internal textarea component.
@@ -1144,7 +1145,7 @@ exports.LuksoMarkdownEditor = class LuksoMarkdownEditor extends shared_tailwindE
1144
1145
  const hasOrderedList = !!orderedListMatch;
1145
1146
  const colorRegex = /<span style="color: ([^"]+)">/;
1146
1147
  const hasColorWrap = !!(beforeSelection.match(colorRegex) && afterSelection.includes("</span>") || selectedText.match(/^<span style="color: ([^"]+)">(.*)<\/span>$/s));
1147
- let activeColor = this.defaultColor;
1148
+ let activeColor = DEFAULT_PREVIEW_TEXT_COLOR;
1148
1149
  if (hasColorWrap) {
1149
1150
  const beforeColorMatch = beforeSelection.match(
1150
1151
  /<span style="color: ([^"]+)">([^<]*)$/
@@ -2066,7 +2067,7 @@ ${indent}${nextNumber}. `;
2066
2067
  }
2067
2068
  updated(changedProperties) {
2068
2069
  super.updated(changedProperties);
2069
- if (changedProperties.has("previewBackgroundColor") && this.isPreview && this.value.trim()) {
2070
+ if ((changedProperties.has("previewBackgroundColor") || changedProperties.has("previewTextColor")) && this.isPreview && this.value.trim()) {
2070
2071
  this.scheduleAccessibilityCheck();
2071
2072
  }
2072
2073
  }
@@ -2557,6 +2558,9 @@ ${indent}${nextNumber}. `;
2557
2558
  if (!this.previewBackgroundColor) {
2558
2559
  this.previewBackgroundColor = DEFAULT_PREVIEW_BACKGROUND_COLOR;
2559
2560
  }
2561
+ if (!this.previewTextColor) {
2562
+ this.previewTextColor = DEFAULT_PREVIEW_TEXT_COLOR;
2563
+ }
2560
2564
  return shared_tailwindElement_index.x`
2561
2565
  <div class=${wrapper()}>
2562
2566
  ${this.labelTemplate()} ${this.descriptionTemplate()}
@@ -2596,7 +2600,7 @@ ${indent}${nextNumber}. `;
2596
2600
  >
2597
2601
  <lukso-markdown
2598
2602
  value=${this.value}
2599
- prose-classes="prose prose-base prose-gray"
2603
+ custom-style=${`color: ${this.previewTextColor};`}
2600
2604
  ></lukso-markdown>
2601
2605
  ${this.accessibilityIndicatorTemplate()}
2602
2606
  </div>`}
@@ -2655,6 +2659,9 @@ __decorateClass([
2655
2659
  reflect: true
2656
2660
  })
2657
2661
  ], exports.LuksoMarkdownEditor.prototype, "previewBackgroundColor", 2);
2662
+ __decorateClass([
2663
+ property.n({ type: String, attribute: "preview-text-color", reflect: true })
2664
+ ], exports.LuksoMarkdownEditor.prototype, "previewTextColor", 2);
2658
2665
  __decorateClass([
2659
2666
  state.r()
2660
2667
  ], exports.LuksoMarkdownEditor.prototype, "savedSelectionForPreview", 2);
@@ -17,6 +17,7 @@ export declare class LuksoMarkdownEditor extends LuksoMarkdownEditor_base {
17
17
  rows: number;
18
18
  placeholder: string;
19
19
  previewBackgroundColor: string;
20
+ previewTextColor: string;
20
21
  private savedSelectionForPreview;
21
22
  private isHeadingDropdownOpen;
22
23
  private isColorDropdownOpen;
@@ -28,7 +29,6 @@ export declare class LuksoMarkdownEditor extends LuksoMarkdownEditor_base {
28
29
  private readonly alignmentTriggerId;
29
30
  private currentSelection;
30
31
  private savedSelection;
31
- private defaultColor;
32
32
  private activeFormats;
33
33
  private undoStack;
34
34
  private redoStack;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-markdown-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAA;AAYxD,OAAO,6BAA6B,CAAA;AACpC,OAAO,6BAA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OAIG;IACH,OAAO,CAAC,sBAAsB;IA0J9B;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAyLxB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IA8GzB;;;;;;;OAOG;IACH,OAAO,CAAC,wBAAwB;IAkEhC;;;;;;;OAOG;IACH,OAAO,CAAC,8BAA8B;IA6CtC;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IA2H3B;;;OAGG;IACH,OAAO,CAAC,IAAI;IA0CZ;;OAEG;IACH,OAAO,CAAC,IAAI;IA0CZ,iBAAiB;IAKjB,YAAY,CAAC,iBAAiB,EAAE,cAAc;IAe9C,OAAO,CAAC,iBAAiB,EAAE,cAAc;IAczC,oBAAoB;IAepB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,mBAAmB;IAQ3B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAehC,OAAO,CAAC,cAAc;IA+BtB,OAAO,CAAC,eAAe;IAmZvB,OAAO,CAAC,8BAA8B;IAuCtC,MAAM;CAiEP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,uBAAuB,EAAE,mBAAmB,CAAA;KAC7C;CACF"}
@@ -1,6 +1,6 @@
1
- import { T as TailwindStyledElement, E, x } from '../../index-YQoO_Soq.js';
2
- import { n, t } from '../../property-Dsz7qIbu.js';
3
- import { r } from '../../state-CcocMKSJ.js';
1
+ import { T as TailwindStyledElement, E, x } from '../../index-B5CXCi6j.js';
2
+ import { n, t } from '../../property-Da9lvmME.js';
3
+ import { r } from '../../state-CtpsBPdH.js';
4
4
  import { e } from '../../query-CHb9Ft_d.js';
5
5
  import { c as ce } from '../../index-B9iart53.js';
6
6
  import '../../tailwind-config.js';
@@ -200,6 +200,7 @@ var __decorateClass = (decorators, target, key, kind) => {
200
200
  return result;
201
201
  };
202
202
  const DEFAULT_PREVIEW_BACKGROUND_COLOR = "#f9f9f9";
203
+ const DEFAULT_PREVIEW_TEXT_COLOR = "#374151";
203
204
  let LuksoMarkdownEditor = class extends TailwindStyledElement(style) {
204
205
  constructor() {
205
206
  super(...arguments);
@@ -218,6 +219,7 @@ let LuksoMarkdownEditor = class extends TailwindStyledElement(style) {
218
219
  this.rows = 6;
219
220
  this.placeholder = "";
220
221
  this.previewBackgroundColor = DEFAULT_PREVIEW_BACKGROUND_COLOR;
222
+ this.previewTextColor = DEFAULT_PREVIEW_TEXT_COLOR;
221
223
  this.savedSelectionForPreview = null;
222
224
  this.isHeadingDropdownOpen = false;
223
225
  this.isColorDropdownOpen = false;
@@ -229,7 +231,6 @@ let LuksoMarkdownEditor = class extends TailwindStyledElement(style) {
229
231
  this.alignmentTriggerId = "alignment-dropdown-trigger";
230
232
  this.currentSelection = { start: 0, end: 0 };
231
233
  this.savedSelection = null;
232
- this.defaultColor = "#374151";
233
234
  this.activeFormats = {
234
235
  bold: false,
235
236
  italic: false,
@@ -239,7 +240,7 @@ let LuksoMarkdownEditor = class extends TailwindStyledElement(style) {
239
240
  h3: false,
240
241
  h4: false,
241
242
  color: false,
242
- activeColor: this.defaultColor,
243
+ activeColor: DEFAULT_PREVIEW_TEXT_COLOR,
243
244
  unorderedList: false,
244
245
  orderedList: false,
245
246
  alignment: "left"
@@ -408,7 +409,7 @@ let LuksoMarkdownEditor = class extends TailwindStyledElement(style) {
408
409
  // dark gray
409
410
  "#000000",
410
411
  // black
411
- this.defaultColor
412
+ DEFAULT_PREVIEW_TEXT_COLOR
412
413
  ];
413
414
  /**
414
415
  * Handle input event from the internal textarea component.
@@ -1140,7 +1141,7 @@ let LuksoMarkdownEditor = class extends TailwindStyledElement(style) {
1140
1141
  const hasOrderedList = !!orderedListMatch;
1141
1142
  const colorRegex = /<span style="color: ([^"]+)">/;
1142
1143
  const hasColorWrap = !!(beforeSelection.match(colorRegex) && afterSelection.includes("</span>") || selectedText.match(/^<span style="color: ([^"]+)">(.*)<\/span>$/s));
1143
- let activeColor = this.defaultColor;
1144
+ let activeColor = DEFAULT_PREVIEW_TEXT_COLOR;
1144
1145
  if (hasColorWrap) {
1145
1146
  const beforeColorMatch = beforeSelection.match(
1146
1147
  /<span style="color: ([^"]+)">([^<]*)$/
@@ -2062,7 +2063,7 @@ ${indent}${nextNumber}. `;
2062
2063
  }
2063
2064
  updated(changedProperties) {
2064
2065
  super.updated(changedProperties);
2065
- if (changedProperties.has("previewBackgroundColor") && this.isPreview && this.value.trim()) {
2066
+ if ((changedProperties.has("previewBackgroundColor") || changedProperties.has("previewTextColor")) && this.isPreview && this.value.trim()) {
2066
2067
  this.scheduleAccessibilityCheck();
2067
2068
  }
2068
2069
  }
@@ -2553,6 +2554,9 @@ ${indent}${nextNumber}. `;
2553
2554
  if (!this.previewBackgroundColor) {
2554
2555
  this.previewBackgroundColor = DEFAULT_PREVIEW_BACKGROUND_COLOR;
2555
2556
  }
2557
+ if (!this.previewTextColor) {
2558
+ this.previewTextColor = DEFAULT_PREVIEW_TEXT_COLOR;
2559
+ }
2556
2560
  return x`
2557
2561
  <div class=${wrapper()}>
2558
2562
  ${this.labelTemplate()} ${this.descriptionTemplate()}
@@ -2592,7 +2596,7 @@ ${indent}${nextNumber}. `;
2592
2596
  >
2593
2597
  <lukso-markdown
2594
2598
  value=${this.value}
2595
- prose-classes="prose prose-base prose-gray"
2599
+ custom-style=${`color: ${this.previewTextColor};`}
2596
2600
  ></lukso-markdown>
2597
2601
  ${this.accessibilityIndicatorTemplate()}
2598
2602
  </div>`}
@@ -2651,6 +2655,9 @@ __decorateClass([
2651
2655
  reflect: true
2652
2656
  })
2653
2657
  ], LuksoMarkdownEditor.prototype, "previewBackgroundColor", 2);
2658
+ __decorateClass([
2659
+ n({ type: String, attribute: "preview-text-color", reflect: true })
2660
+ ], LuksoMarkdownEditor.prototype, "previewTextColor", 2);
2654
2661
  __decorateClass([
2655
2662
  r()
2656
2663
  ], LuksoMarkdownEditor.prototype, "savedSelectionForPreview", 2);