@lukso/web-components 1.162.0 → 1.163.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 (122) hide show
  1. package/dist/components/index.cjs +5 -5
  2. package/dist/components/index.js +5 -5
  3. package/dist/components/lukso-button/index.cjs +5 -5
  4. package/dist/components/lukso-button/index.js +5 -5
  5. package/dist/components/lukso-card/index.cjs +9 -9
  6. package/dist/components/lukso-card/index.js +9 -9
  7. package/dist/components/lukso-checkbox/index.cjs +5 -5
  8. package/dist/components/lukso-checkbox/index.js +5 -5
  9. package/dist/components/lukso-collapse/index.cjs +134 -39
  10. package/dist/components/lukso-collapse/index.d.ts +9 -1
  11. package/dist/components/lukso-collapse/index.d.ts.map +1 -1
  12. package/dist/components/lukso-collapse/index.js +134 -39
  13. package/dist/components/lukso-collapse/lukso-collapse.stories.d.ts +16 -2
  14. package/dist/components/lukso-collapse/lukso-collapse.stories.d.ts.map +1 -1
  15. package/dist/components/lukso-color-picker/index.cjs +11 -11
  16. package/dist/components/lukso-color-picker/index.js +11 -11
  17. package/dist/components/lukso-dropdown/index.cjs +4 -4
  18. package/dist/components/lukso-dropdown/index.js +4 -4
  19. package/dist/components/lukso-dropdown-option/index.cjs +3 -3
  20. package/dist/components/lukso-dropdown-option/index.js +3 -3
  21. package/dist/components/lukso-footer/index.cjs +2 -2
  22. package/dist/components/lukso-footer/index.js +2 -2
  23. package/dist/components/lukso-icon/index.cjs +4 -4
  24. package/dist/components/lukso-icon/index.js +4 -4
  25. package/dist/components/lukso-image/index.cjs +4 -4
  26. package/dist/components/lukso-image/index.js +4 -4
  27. package/dist/components/lukso-input/index.cjs +13 -13
  28. package/dist/components/lukso-input/index.d.ts.map +1 -1
  29. package/dist/components/lukso-input/index.js +13 -13
  30. package/dist/components/lukso-markdown/index.cjs +3 -3
  31. package/dist/components/lukso-markdown/index.js +3 -3
  32. package/dist/components/lukso-markdown-editor/index.cjs +4 -4
  33. package/dist/components/lukso-markdown-editor/index.js +4 -4
  34. package/dist/components/lukso-modal/index.cjs +2 -2
  35. package/dist/components/lukso-modal/index.js +2 -2
  36. package/dist/components/lukso-navbar/index.cjs +4 -4
  37. package/dist/components/lukso-navbar/index.js +4 -4
  38. package/dist/components/lukso-pagination/index.cjs +3 -3
  39. package/dist/components/lukso-pagination/index.js +3 -3
  40. package/dist/components/lukso-profile/index.cjs +3 -3
  41. package/dist/components/lukso-profile/index.js +3 -3
  42. package/dist/components/lukso-progress/index.cjs +3 -3
  43. package/dist/components/lukso-progress/index.js +3 -3
  44. package/dist/components/lukso-radio/index.cjs +5 -5
  45. package/dist/components/lukso-radio/index.js +5 -5
  46. package/dist/components/lukso-radio-group/index.cjs +3 -3
  47. package/dist/components/lukso-radio-group/index.js +3 -3
  48. package/dist/components/lukso-sanitize/index.cjs +4 -4
  49. package/dist/components/lukso-sanitize/index.js +4 -4
  50. package/dist/components/lukso-search/index.cjs +6 -6
  51. package/dist/components/lukso-search/index.js +6 -6
  52. package/dist/components/lukso-select/index.cjs +9 -9
  53. package/dist/components/lukso-select/index.d.ts.map +1 -1
  54. package/dist/components/lukso-select/index.js +9 -9
  55. package/dist/components/lukso-share/index.cjs +2 -2
  56. package/dist/components/lukso-share/index.js +2 -2
  57. package/dist/components/lukso-switch/index.cjs +4 -4
  58. package/dist/components/lukso-switch/index.js +4 -4
  59. package/dist/components/lukso-tag/index.cjs +4 -4
  60. package/dist/components/lukso-tag/index.js +4 -4
  61. package/dist/components/lukso-terms/index.cjs +4 -4
  62. package/dist/components/lukso-terms/index.js +4 -4
  63. package/dist/components/lukso-textarea/index.cjs +7 -7
  64. package/dist/components/lukso-textarea/index.js +7 -7
  65. package/dist/components/lukso-tooltip/index.cjs +4 -4
  66. package/dist/components/lukso-tooltip/index.js +4 -4
  67. package/dist/components/lukso-username/index.cjs +4 -4
  68. package/dist/components/lukso-username/index.js +4 -4
  69. package/dist/components/lukso-wizard/index.cjs +3 -3
  70. package/dist/components/lukso-wizard/index.js +3 -3
  71. package/dist/docs/Typography.stories.d.ts.map +1 -1
  72. package/dist/{index-DvdeX3K2.js → index-1J-jqsT9.js} +2 -2
  73. package/dist/{index-CIvb8Rdb.js → index-B0BrUQTX.js} +3 -3
  74. package/dist/{index-DZXmXufN.js → index-BEawLNoE.js} +3 -3
  75. package/dist/{index-CeucSkmf.cjs → index-BHZk9HTM.cjs} +5 -5
  76. package/dist/{index-Zriuvita.cjs → index-BgNWF02P.cjs} +1 -1
  77. package/dist/index-C4AqmOTg.js +41 -0
  78. package/dist/index-CE4mgetK.cjs +50 -0
  79. package/dist/{index-0s--O024.cjs → index-CX03Xr6x.cjs} +3 -3
  80. package/dist/{index-GXU76s80.cjs → index-D1tHxVU9.cjs} +3 -3
  81. package/dist/{index-BOWftFAY.js → index-DSByq2Lm.js} +1 -1
  82. package/dist/{index-BYDwEmQd.cjs → index-Dv9A3Ltm.cjs} +2 -2
  83. package/dist/{index-bObYWb9Y.js → index-OytYtq41.js} +5 -5
  84. package/dist/index.cjs +5 -5
  85. package/dist/index.js +5 -5
  86. package/dist/{safe-custom-element-BODySN1j.js → safe-custom-element-BuFHdvWD.js} +1 -1
  87. package/dist/{safe-custom-element-DTADBI4I.cjs → safe-custom-element-CEr2QRTr.cjs} +1 -1
  88. package/dist/shared/tailwind-element/index.cjs +1 -1
  89. package/dist/shared/tailwind-element/index.js +1 -1
  90. package/dist/{state-n75qAK0V.js → state-D-OZ3KEf.js} +1 -1
  91. package/dist/{state-ClR8ink7.cjs → state-DE9RNbPD.cjs} +1 -1
  92. package/dist/{style-map-BBz25umN.js → style-map-CNeYTqXM.js} +1 -1
  93. package/dist/{style-map-DhbNG03r.cjs → style-map-CTRp4AN8.cjs} +1 -1
  94. package/dist/styles/main.css +0 -63
  95. package/dist/styles/main.css.map +1 -1
  96. package/dist/tailwind-config.cjs +6 -1
  97. package/dist/tailwind-config.d.ts +4 -0
  98. package/dist/tailwind-config.d.ts.map +1 -1
  99. package/dist/tailwind-config.js +6 -1
  100. package/dist/{unsafe-html-Cb1yjpJn.cjs → unsafe-html-DA2kPIsd.cjs} +1 -1
  101. package/dist/{unsafe-html-DTE5r2A7.js → unsafe-html-bTQk6t7a.js} +1 -1
  102. package/package.json +1 -1
  103. package/tailwind.config.cjs +0 -1
  104. package/tools/cn.cjs +1 -1
  105. package/tools/cn.js +1 -1
  106. package/tools/index.cjs +1 -1
  107. package/tools/index.js +1 -1
  108. package/tools/sass/fonts.scss +0 -28
  109. package/tools/sass/typography.scss +2 -58
  110. package/tools/styles/main.css +0 -63
  111. package/tools/{tailwind-config-DoMZEvsr.cjs → tailwind-config-BbwTTnsk.cjs} +6 -1
  112. package/tools/{tailwind-config-DVTyRd7x.js → tailwind-config-Cp1XJZvN.js} +6 -1
  113. package/tools/tailwind-config.cjs +1 -1
  114. package/tools/tailwind-config.d.ts +4 -0
  115. package/tools/tailwind-config.d.ts.map +1 -1
  116. package/tools/tailwind-config.js +1 -1
  117. package/dist/index-BFqOU6o6.cjs +0 -50
  118. package/dist/index-CQq_Eyeu.js +0 -41
  119. package/tools/assets/fonts/Apax-Bold.woff2 +0 -0
  120. package/tools/assets/fonts/Apax-Light.woff2 +0 -0
  121. package/tools/assets/fonts/Apax-Medium.woff2 +0 -0
  122. package/tools/assets/fonts/Apax-Regular.woff2 +0 -0
@@ -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-BYDwEmQd.cjs');
21
+ const components_luksoProfile_index = require('../index-Dv9A3Ltm.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
- const components_luksoSanitize_index = require('../index-0s--O024.cjs');
26
- const components_luksoSearch_index = require('../index-CeucSkmf.cjs');
25
+ const components_luksoSanitize_index = require('../index-CX03Xr6x.cjs');
26
+ const components_luksoSearch_index = require('../index-BHZk9HTM.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-GXU76s80.cjs');
34
+ const components_luksoUsername_index = require('../index-D1tHxVU9.cjs');
35
35
  const components_luksoWizard_index = require('./lukso-wizard/index.cjs');
36
- const shared_tailwindElement_index = require('../index-BFqOU6o6.cjs');
36
+ const shared_tailwindElement_index = require('../index-CE4mgetK.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-DvdeX3K2.js';
17
+ export { L as LuksoProfile } from '../index-1J-jqsT9.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
- export { D as DEFAULT_OPTIONS, L as LuksoSanitize, N as NO_HTML_TAGS_OPTIONS } from '../index-DZXmXufN.js';
22
- export { L as LuksoSearch } from '../index-bObYWb9Y.js';
21
+ export { D as DEFAULT_OPTIONS, L as LuksoSanitize, N as NO_HTML_TAGS_OPTIONS } from '../index-BEawLNoE.js';
22
+ export { L as LuksoSearch } from '../index-OytYtq41.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-CIvb8Rdb.js';
30
+ export { L as LuksoUsername } from '../index-B0BrUQTX.js';
31
31
  export { LuksoWizard } from './lukso-wizard/index.js';
32
- export { a as TailwindElement, T as TailwindStyledElement } from '../index-CQq_Eyeu.js';
32
+ export { a as TailwindElement, T as TailwindStyledElement } from '../index-C4AqmOTg.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-BFqOU6o6.cjs');
6
- const safeCustomElement = require('../../safe-custom-element-DTADBI4I.cjs');
7
- const state = require('../../state-ClR8ink7.cjs');
5
+ const shared_tailwindElement_index = require('../../index-CE4mgetK.cjs');
6
+ const safeCustomElement = require('../../safe-custom-element-CEr2QRTr.cjs');
7
+ const state = require('../../state-DE9RNbPD.cjs');
8
8
  const index = require('../../index-CaJky2qL.cjs');
9
9
  require('../../tailwind-config.cjs');
10
10
  const axe = require('../../axe-C-H1UVi1.cjs');
@@ -73,8 +73,8 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
73
73
  active:text-neutral-35 active:scale-100
74
74
  disabled:text-neutral-90`,
75
75
  link: "bg-transparent border-none active:!scale-100 underline text-purple-51 hover:text-purple-41",
76
- "nav-button": "nav-apax-12-medium-uppercase text-purple-41 !text-12",
77
- "nav-text": "bg-transparent border-none nav-apax-12-medium-uppercase text-purple-63 hover:text-purple-41 !text-12 transition",
76
+ "nav-button": "nav-inter-12-medium-uppercase text-purple-41 !text-12",
77
+ "nav-text": "bg-transparent border-none nav-inter-12-medium-uppercase text-purple-63 hover:text-purple-41 !text-12 transition",
78
78
  success: `bg-green-54 border-green-54 text-neutral-100
79
79
  disabled:hover:!bg-green-54 disabled:hover:!border-green-54
80
80
  hover:bg-green-63 hover:border-green-63 before:bg-green-54`,
@@ -1,6 +1,6 @@
1
- import { T as TailwindStyledElement, E, x } from '../../index-CQq_Eyeu.js';
2
- import { n, s as safeCustomElement } from '../../safe-custom-element-BODySN1j.js';
3
- import { r } from '../../state-n75qAK0V.js';
1
+ import { T as TailwindStyledElement, E, x } from '../../index-C4AqmOTg.js';
2
+ import { n, s as safeCustomElement } from '../../safe-custom-element-BuFHdvWD.js';
3
+ import { r } from '../../state-D-OZ3KEf.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';
@@ -69,8 +69,8 @@ let LuksoButton = class extends TailwindStyledElement(style) {
69
69
  active:text-neutral-35 active:scale-100
70
70
  disabled:text-neutral-90`,
71
71
  link: "bg-transparent border-none active:!scale-100 underline text-purple-51 hover:text-purple-41",
72
- "nav-button": "nav-apax-12-medium-uppercase text-purple-41 !text-12",
73
- "nav-text": "bg-transparent border-none nav-apax-12-medium-uppercase text-purple-63 hover:text-purple-41 !text-12 transition",
72
+ "nav-button": "nav-inter-12-medium-uppercase text-purple-41 !text-12",
73
+ "nav-text": "bg-transparent border-none nav-inter-12-medium-uppercase text-purple-63 hover:text-purple-41 !text-12 transition",
74
74
  success: `bg-green-54 border-green-54 text-neutral-100
75
75
  disabled:hover:!bg-green-54 disabled:hover:!border-green-54
76
76
  hover:bg-green-63 hover:border-green-63 before:bg-green-54`,
@@ -2,17 +2,17 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const components_luksoProfile_index = require('../../index-BYDwEmQd.cjs');
6
- const shared_tailwindElement_index = require('../../index-BFqOU6o6.cjs');
7
- const safeCustomElement = require('../../safe-custom-element-DTADBI4I.cjs');
8
- const state = require('../../state-ClR8ink7.cjs');
5
+ const components_luksoProfile_index = require('../../index-Dv9A3Ltm.cjs');
6
+ const shared_tailwindElement_index = require('../../index-CE4mgetK.cjs');
7
+ const safeCustomElement = require('../../safe-custom-element-CEr2QRTr.cjs');
8
+ const state = require('../../state-DE9RNbPD.cjs');
9
9
  const base = require('../../base-NFGX42U4.cjs');
10
- const styleMap = require('../../style-map-DhbNG03r.cjs');
10
+ const styleMap = require('../../style-map-CTRp4AN8.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-Zriuvita.cjs');
15
+ const index$1 = require('../../index-BgNWF02P.cjs');
16
16
  require('../lukso-image/index.cjs');
17
17
 
18
18
  /**
@@ -207,7 +207,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
207
207
  class="overflow-hidden w-[153px] h-[70px] -top-[70px] relative mx-auto flex items-end justify-center -mb-3"
208
208
  >
209
209
  <div
210
- class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]"
210
+ class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-12"
211
211
  ></div>
212
212
  </div>
213
213
  <slot name="content"></slot>
@@ -270,7 +270,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
270
270
  class="overflow-hidden w-[153px] h-[70px] -top-[70px] relative mx-auto flex items-end justify-center -mb-2"
271
271
  >
272
272
  <div
273
- class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]"
273
+ class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-12"
274
274
  ></div>
275
275
  </div>
276
276
  <slot name="content"></slot>
@@ -306,7 +306,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
306
306
  backgroundImage: backgroundGradient(this.profileAddress)
307
307
  })}
308
308
  class=${axe.cn(
309
- "min-h-[40px] bg-center bg-cover rounded-t-[inherit] rounded-b-0 relative bg-neutral-100",
309
+ "min-h-10 bg-center bg-cover rounded-t-[inherit] rounded-b-0 relative bg-neutral-100",
310
310
  this.headerClass
311
311
  )}
312
312
  >
@@ -1,14 +1,14 @@
1
- import { m as makeBlockie } from '../../index-DvdeX3K2.js';
2
- import { T as TailwindStyledElement, x, E } from '../../index-CQq_Eyeu.js';
3
- import { n, s as safeCustomElement } from '../../safe-custom-element-BODySN1j.js';
4
- import { r } from '../../state-n75qAK0V.js';
1
+ import { m as makeBlockie } from '../../index-1J-jqsT9.js';
2
+ import { T as TailwindStyledElement, x, E } from '../../index-C4AqmOTg.js';
3
+ import { n, s as safeCustomElement } from '../../safe-custom-element-BuFHdvWD.js';
4
+ import { r } from '../../state-D-OZ3KEf.js';
5
5
  import { e } from '../../base-Cl6v8-BZ.js';
6
- import { o as o$1 } from '../../style-map-BBz25umN.js';
6
+ import { o as o$1 } from '../../style-map-CNeYTqXM.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-BOWftFAY.js';
11
+ import { c as customStyleMap } from '../../index-DSByq2Lm.js';
12
12
  import '../lukso-image/index.js';
13
13
 
14
14
  /**
@@ -203,7 +203,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
203
203
  class="overflow-hidden w-[153px] h-[70px] -top-[70px] relative mx-auto flex items-end justify-center -mb-3"
204
204
  >
205
205
  <div
206
- class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]"
206
+ class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-12"
207
207
  ></div>
208
208
  </div>
209
209
  <slot name="content"></slot>
@@ -266,7 +266,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
266
266
  class="overflow-hidden w-[153px] h-[70px] -top-[70px] relative mx-auto flex items-end justify-center -mb-2"
267
267
  >
268
268
  <div
269
- class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]"
269
+ class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-12"
270
270
  ></div>
271
271
  </div>
272
272
  <slot name="content"></slot>
@@ -302,7 +302,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
302
302
  backgroundImage: backgroundGradient(this.profileAddress)
303
303
  })}
304
304
  class=${cn(
305
- "min-h-[40px] bg-center bg-cover rounded-t-[inherit] rounded-b-0 relative bg-neutral-100",
305
+ "min-h-10 bg-center bg-cover rounded-t-[inherit] rounded-b-0 relative bg-neutral-100",
306
306
  this.headerClass
307
307
  )}
308
308
  >
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-BFqOU6o6.cjs');
6
- const safeCustomElement = require('../../safe-custom-element-DTADBI4I.cjs');
7
- const state = require('../../state-ClR8ink7.cjs');
5
+ const shared_tailwindElement_index = require('../../index-CE4mgetK.cjs');
6
+ const safeCustomElement = require('../../safe-custom-element-CEr2QRTr.cjs');
7
+ const state = require('../../state-DE9RNbPD.cjs');
8
8
  const index = require('../../index-D0nCA-7X.cjs');
9
9
 
10
10
  var __defProp = Object.defineProperty;
@@ -71,9 +71,9 @@ exports.LuksoCheckbox = class LuksoCheckbox extends shared_tailwindElement_index
71
71
  [this.error === "" ? "border-neutral-90" : "border-red-85"]: !this.hasHighlight,
72
72
  [this.error === "" ? "border-neutral-35" : "border-red-65"]: this.hasHighlight,
73
73
  ["border-neutral-60"]: this.isDisabled,
74
- ["h-[40px] w-[40px]"]: this.size === "medium",
74
+ ["h-10 w-[40px]"]: this.size === "medium",
75
75
  ["h-[32px] w-[32px]"]: this.size === "small",
76
- ["h-[28px] w-[28px]"]: this.size === "x-small",
76
+ ["h-7 w-[28px]"]: this.size === "x-small",
77
77
  [this.customClass]: !!this.customClass
78
78
  })}
79
79
  >
@@ -1,6 +1,6 @@
1
- import { a as TailwindElement, x, E } from '../../index-CQq_Eyeu.js';
2
- import { n, s as safeCustomElement } from '../../safe-custom-element-BODySN1j.js';
3
- import { r } from '../../state-n75qAK0V.js';
1
+ import { a as TailwindElement, x, E } from '../../index-C4AqmOTg.js';
2
+ import { n, s as safeCustomElement } from '../../safe-custom-element-BuFHdvWD.js';
3
+ import { r } from '../../state-D-OZ3KEf.js';
4
4
  import { c as customClassMap } from '../../index-F8ll4iy2.js';
5
5
 
6
6
  var __defProp = Object.defineProperty;
@@ -67,9 +67,9 @@ let LuksoCheckbox = class extends TailwindElement {
67
67
  [this.error === "" ? "border-neutral-90" : "border-red-85"]: !this.hasHighlight,
68
68
  [this.error === "" ? "border-neutral-35" : "border-red-65"]: this.hasHighlight,
69
69
  ["border-neutral-60"]: this.isDisabled,
70
- ["h-[40px] w-[40px]"]: this.size === "medium",
70
+ ["h-10 w-[40px]"]: this.size === "medium",
71
71
  ["h-[32px] w-[32px]"]: this.size === "small",
72
- ["h-[28px] w-[28px]"]: this.size === "x-small",
72
+ ["h-7 w-[28px]"]: this.size === "x-small",
73
73
  [this.customClass]: !!this.customClass
74
74
  })}
75
75
  >
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-BFqOU6o6.cjs');
6
- const safeCustomElement = require('../../safe-custom-element-DTADBI4I.cjs');
7
- const state = require('../../state-ClR8ink7.cjs');
5
+ const shared_tailwindElement_index = require('../../index-CE4mgetK.cjs');
6
+ const safeCustomElement = require('../../safe-custom-element-CEr2QRTr.cjs');
7
+ const state = require('../../state-DE9RNbPD.cjs');
8
8
  const query = require('../../query-EFiHeHdi.cjs');
9
9
  const index = require('../../index-CaJky2qL.cjs');
10
10
  require('../../tailwind-config.cjs');
@@ -25,7 +25,10 @@ exports.LuksoCollapse = class LuksoCollapse extends shared_tailwindElement_index
25
25
  constructor() {
26
26
  super(...arguments);
27
27
  this.label = "";
28
- this.secondaryLabel = {
28
+ this.description = "";
29
+ this.error = "";
30
+ this.triggerLabel = "";
31
+ this.toggleLabel = {
29
32
  open: "",
30
33
  close: ""
31
34
  };
@@ -33,6 +36,7 @@ exports.LuksoCollapse = class LuksoCollapse extends shared_tailwindElement_index
33
36
  this.customClass = "";
34
37
  this.isDisabled = false;
35
38
  this.icon = "";
39
+ this.size = "large";
36
40
  this.maxHeight = "0px";
37
41
  this.observedHeight = 0;
38
42
  this.onTransitionEnd = (e) => {
@@ -43,11 +47,11 @@ exports.LuksoCollapse = class LuksoCollapse extends shared_tailwindElement_index
43
47
  };
44
48
  this.collapseStyles = index.ce({
45
49
  slots: {
46
- base: "hover:border-neutral-35 transition transition-all duration-150",
47
- header: "flex items-center justify-between cursor-pointer ml-3 py-2",
48
- label: "text-neutral-45 paragraph-inter-14-semi-bold",
49
- secondary: "text-neutral-45 paragraph-inter-14-semi-bold",
50
- icon: "transition cursor-pointer mr-3",
50
+ base: "transition transition-all duration-150 border bg-neutral-100",
51
+ header: "flex items-center justify-between cursor-pointer overflow-hidden",
52
+ triggerLabel: "",
53
+ toggleLabel: "",
54
+ icon: "transition cursor-pointer",
51
55
  content: "transition-all duration-250 ease-in-out"
52
56
  },
53
57
  variants: {
@@ -66,8 +70,59 @@ exports.LuksoCollapse = class LuksoCollapse extends shared_tailwindElement_index
66
70
  header: "cursor-not-allowed",
67
71
  icon: "opacity-60 cursor-not-allowed"
68
72
  }
73
+ },
74
+ size: {
75
+ small: {
76
+ base: "rounded-8",
77
+ header: "h-7 pl-2",
78
+ triggerLabel: "paragraph-inter-12-semi-bold",
79
+ toggleLabel: "paragraph-inter-12-semi-bold",
80
+ icon: "mr-1"
81
+ },
82
+ medium: {
83
+ base: "rounded-10",
84
+ header: "h-10 pl-3",
85
+ triggerLabel: "paragraph-inter-14-semi-bold",
86
+ toggleLabel: "paragraph-inter-14-semi-bold",
87
+ icon: "mr-2"
88
+ },
89
+ large: {
90
+ base: "rounded-12",
91
+ header: "h-12 pl-4",
92
+ triggerLabel: "paragraph-inter-14-semi-bold",
93
+ toggleLabel: "paragraph-inter-14-semi-bold",
94
+ icon: "mr-3"
95
+ },
96
+ "x-large": {
97
+ base: "rounded-14",
98
+ header: "h-17 pl-5",
99
+ triggerLabel: "paragraph-inter-16-semi-bold",
100
+ toggleLabel: "paragraph-inter-16-semi-bold",
101
+ icon: "mr-4"
102
+ }
103
+ },
104
+ hasError: {
105
+ true: {
106
+ base: "border-red-85 hover:border-red-65",
107
+ triggerLabel: "text-red-65",
108
+ toggleLabel: "text-red-65"
109
+ },
110
+ false: {
111
+ base: "border-neutral-90",
112
+ triggerLabel: "text-neutral-45",
113
+ toggleLabel: "text-neutral-45"
114
+ }
69
115
  }
70
- }
116
+ },
117
+ compoundVariants: [
118
+ {
119
+ isDisabled: false,
120
+ hasError: false,
121
+ class: {
122
+ base: "hover:border-neutral-35"
123
+ }
124
+ }
125
+ ]
71
126
  });
72
127
  }
73
128
  firstUpdated() {
@@ -99,7 +154,9 @@ exports.LuksoCollapse = class LuksoCollapse extends shared_tailwindElement_index
99
154
  }
100
155
  } else {
101
156
  this.maxHeight = `${height}px`;
102
- requestAnimationFrame(() => this.maxHeight = "0px");
157
+ requestAnimationFrame(() => {
158
+ this.maxHeight = "0px";
159
+ });
103
160
  }
104
161
  }
105
162
  toggle() {
@@ -108,40 +165,66 @@ exports.LuksoCollapse = class LuksoCollapse extends shared_tailwindElement_index
108
165
  new CustomEvent("toggle", { detail: { open: this.isOpen } })
109
166
  );
110
167
  }
168
+ labelTemplate() {
169
+ return shared_tailwindElement_index.x`
170
+ <label class="heading-inter-14-bold text-neutral-20 pb-2 block"
171
+ >${this.label}</label
172
+ >
173
+ `;
174
+ }
175
+ descriptionTemplate() {
176
+ return shared_tailwindElement_index.x`
177
+ <div class="paragraph-inter-12-regular text-neutral-20 pb-2">
178
+ <lukso-sanitize html-content=${this.description}></lukso-sanitize>
179
+ </div>
180
+ `;
181
+ }
182
+ errorTemplate() {
183
+ return shared_tailwindElement_index.x`<div class="paragraph-inter-12-regular text-red-65 pt-2">
184
+ ${this.error}
185
+ </div>`;
186
+ }
111
187
  render() {
112
- const { base, header, label, secondary, icon, content } = this.collapseStyles({
188
+ const { base, header, triggerLabel, toggleLabel, icon, content } = this.collapseStyles({
113
189
  isOpen: this.isOpen,
114
- isDisabled: this.isDisabled
190
+ isDisabled: this.isDisabled,
191
+ size: this.size,
192
+ hasError: this.error !== ""
115
193
  });
116
194
  return shared_tailwindElement_index.x`
117
- <div class=${axe.cn(base(), this.customClass)}>
118
- <!-- Header -->
119
- <div
120
- class=${header()}
121
- @click=${() => !this.isDisabled && this.toggle()}
122
- >
123
- <span class=${label()}>${this.label}</span>
124
- <div class="flex items-center">
125
- ${this.secondaryLabel ? shared_tailwindElement_index.x`<span class=${secondary()}>
126
- ${this.isOpen ? this.secondaryLabel.close : this.secondaryLabel.open}
127
- </span>` : null}
128
- ${this.icon ? shared_tailwindElement_index.x`<lukso-icon
129
- name=${this.icon}
130
- class=${icon()}
131
- ></lukso-icon>` : null}
195
+ <div class="w-[inherit]">
196
+ ${this.label ? this.labelTemplate() : shared_tailwindElement_index.E}
197
+ ${this.description ? this.descriptionTemplate() : shared_tailwindElement_index.E}
198
+ <div class=${axe.cn(base(), this.customClass)}>
199
+ <!-- Header -->
200
+ <div
201
+ class=${header()}
202
+ @click=${() => !this.isDisabled && this.toggle()}
203
+ >
204
+ <span class=${triggerLabel()}>${this.triggerLabel}</span>
205
+ <div class="flex items-center">
206
+ ${this.toggleLabel ? shared_tailwindElement_index.x`<span class=${toggleLabel()}>
207
+ ${this.isOpen ? this.toggleLabel?.close : this.toggleLabel?.open}
208
+ </span>` : shared_tailwindElement_index.E}
209
+ ${this.icon ? shared_tailwindElement_index.x`<lukso-icon
210
+ name=${this.icon}
211
+ class=${icon()}
212
+ ></lukso-icon>` : shared_tailwindElement_index.E}
213
+ </div>
132
214
  </div>
133
- </div>
134
215
 
135
- <!-- Content -->
136
- <div
137
- class=${content()}
138
- style="max-height:${this.maxHeight};"
139
- @transitionend=${this.onTransitionEnd}
140
- >
141
- <div class="collapse-content">
142
- <slot @slotchange=${() => this.syncHeight()}></slot>
216
+ <!-- Content -->
217
+ <div
218
+ class=${content()}
219
+ style="max-height:${this.maxHeight};"
220
+ @transitionend=${this.onTransitionEnd}
221
+ >
222
+ <div class="collapse-content">
223
+ <slot @slotchange=${() => this.syncHeight()}></slot>
224
+ </div>
143
225
  </div>
144
226
  </div>
227
+ ${this.error ? this.errorTemplate() : shared_tailwindElement_index.E}
145
228
  </div>
146
229
  `;
147
230
  }
@@ -150,8 +233,17 @@ __decorateClass([
150
233
  safeCustomElement.n({ type: String })
151
234
  ], exports.LuksoCollapse.prototype, "label", 2);
152
235
  __decorateClass([
153
- safeCustomElement.n({ type: Object, attribute: "secondary-label" })
154
- ], exports.LuksoCollapse.prototype, "secondaryLabel", 2);
236
+ safeCustomElement.n({ type: String })
237
+ ], exports.LuksoCollapse.prototype, "description", 2);
238
+ __decorateClass([
239
+ safeCustomElement.n({ type: String })
240
+ ], exports.LuksoCollapse.prototype, "error", 2);
241
+ __decorateClass([
242
+ safeCustomElement.n({ type: String, attribute: "trigger-label" })
243
+ ], exports.LuksoCollapse.prototype, "triggerLabel", 2);
244
+ __decorateClass([
245
+ safeCustomElement.n({ type: Object, attribute: "toggle-label" })
246
+ ], exports.LuksoCollapse.prototype, "toggleLabel", 2);
155
247
  __decorateClass([
156
248
  safeCustomElement.n({ type: Boolean, attribute: "is-open" })
157
249
  ], exports.LuksoCollapse.prototype, "isOpen", 2);
@@ -164,6 +256,9 @@ __decorateClass([
164
256
  __decorateClass([
165
257
  safeCustomElement.n({ type: String, attribute: "icon" })
166
258
  ], exports.LuksoCollapse.prototype, "icon", 2);
259
+ __decorateClass([
260
+ safeCustomElement.n({ type: String })
261
+ ], exports.LuksoCollapse.prototype, "size", 2);
167
262
  __decorateClass([
168
263
  state.r()
169
264
  ], exports.LuksoCollapse.prototype, "maxHeight", 2);
@@ -1,7 +1,11 @@
1
1
  import { TailwindElement } from '../../shared/tailwind-element';
2
+ import { InputSize } from '../../shared/types';
2
3
  export declare class LuksoCollapse extends TailwindElement {
3
4
  label: string;
4
- secondaryLabel: {
5
+ description: string;
6
+ error: string;
7
+ triggerLabel: string;
8
+ toggleLabel: {
5
9
  open: string;
6
10
  close: string;
7
11
  };
@@ -9,6 +13,7 @@ export declare class LuksoCollapse extends TailwindElement {
9
13
  customClass: string;
10
14
  isDisabled: boolean;
11
15
  icon: string;
16
+ size: InputSize;
12
17
  private maxHeight;
13
18
  private observedHeight;
14
19
  private contentElement;
@@ -20,6 +25,9 @@ export declare class LuksoCollapse extends TailwindElement {
20
25
  private onTransitionEnd;
21
26
  private toggle;
22
27
  private collapseStyles;
28
+ labelTemplate(): import('lit-html').TemplateResult<1>;
29
+ descriptionTemplate(): import('lit-html').TemplateResult<1>;
30
+ errorTemplate(): import('lit-html').TemplateResult<1>;
23
31
  render(): import('lit-html').TemplateResult<1>;
24
32
  }
25
33
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-collapse/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,yBAAyB,CAAA;AAEhC,qBACa,aAAc,SAAQ,eAAe;IAEhD,KAAK,SAAK;IAGV,cAAc,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAG9C;IAGD,MAAM,UAAQ;IAGd,WAAW,SAAK;IAGhB,UAAU,UAAQ;IAGlB,IAAI,SAAK;IAEA,OAAO,CAAC,SAAS,CAAQ;IACzB,OAAO,CAAC,cAAc,CAAI;IAEP,OAAO,CAAC,cAAc,CAAc;IAChE,OAAO,CAAC,cAAc,CAAC,CAAgB;IAEvC,YAAY;IAQZ,oBAAoB,IAAI,IAAI;IAK5B,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAMrC,OAAO,CAAC,UAAU;IAmBlB,OAAO,CAAC,eAAe,CAKtB;IAED,OAAO,CAAC,MAAM;IAOd,OAAO,CAAC,cAAc,CA2BpB;IAEF,MAAM;CA6CP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-collapse/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,yBAAyB,CAAA;AAEhC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,qBACa,aAAc,SAAQ,eAAe;IAEhD,KAAK,SAAK;IAGV,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,YAAY,SAAK;IAGjB,WAAW,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAG3C;IAGD,MAAM,UAAQ;IAGd,WAAW,SAAK;IAGhB,UAAU,UAAQ;IAGlB,IAAI,SAAK;IAGT,IAAI,EAAE,SAAS,CAAU;IAEhB,OAAO,CAAC,SAAS,CAAQ;IACzB,OAAO,CAAC,cAAc,CAAI;IAEP,OAAO,CAAC,cAAc,CAAc;IAChE,OAAO,CAAC,cAAc,CAAC,CAAgB;IAEvC,YAAY;IAQZ,oBAAoB,IAAI,IAAI;IAK5B,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAMrC,OAAO,CAAC,UAAU;IAqBlB,OAAO,CAAC,eAAe,CAKtB;IAED,OAAO,CAAC,MAAM;IAOd,OAAO,CAAC,cAAc,CA+EpB;IAEF,aAAa;IAQb,mBAAmB;IAQnB,aAAa;IAMb,MAAM;CAoDP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}