@ebrains/components 2.3.1 → 2.4.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 (568) hide show
  1. package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
  2. package/dist/cjs/components-section.cjs.entry.js +33 -24
  3. package/dist/cjs/components.cjs.js +1 -1
  4. package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
  5. package/dist/cjs/docs-palettes.cjs.entry.js +1 -1
  6. package/dist/cjs/docs-tokens.cjs.entry.js +1 -1
  7. package/dist/cjs/{eds-accordion_36.cjs.entry.js → eds-accordion_37.cjs.entry.js} +661 -209
  8. package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
  9. package/dist/cjs/eds-card-desc_2.cjs.entry.js +2 -2
  10. package/dist/cjs/eds-card-generic.cjs.entry.js +1 -1
  11. package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
  12. package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
  13. package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
  14. package/dist/cjs/eds-cookies-preference.cjs.entry.js +1 -1
  15. package/dist/cjs/eds-feedback.cjs.entry.js +1 -1
  16. package/dist/cjs/eds-footer.cjs.entry.js +2 -2
  17. package/dist/cjs/eds-frame.cjs.entry.js +1 -1
  18. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +8 -3
  19. package/dist/cjs/eds-gauge.cjs.entry.js +1 -1
  20. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +1 -1
  21. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +1 -1
  22. package/dist/cjs/eds-icon-bin.cjs.entry.js +1 -1
  23. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
  24. package/dist/cjs/eds-icon-bookmark.cjs.entry.js +1 -1
  25. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +1 -1
  26. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +1 -1
  27. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +1 -1
  28. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +1 -1
  29. package/dist/cjs/eds-icon-clone.cjs.entry.js +1 -1
  30. package/dist/cjs/eds-icon-close.cjs.entry.js +1 -1
  31. package/dist/cjs/eds-icon-copy.cjs.entry.js +1 -1
  32. package/dist/cjs/eds-icon-download.cjs.entry.js +1 -1
  33. package/dist/cjs/eds-icon-draft.cjs.entry.js +1 -1
  34. package/dist/cjs/eds-icon-edit.cjs.entry.js +1 -1
  35. package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
  36. package/dist/cjs/eds-icon-external.cjs.entry.js +1 -1
  37. package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
  38. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
  39. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
  40. package/dist/cjs/eds-icon-loader.cjs.entry.js +1 -1
  41. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
  42. package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
  43. package/dist/cjs/eds-icon-minus.cjs.entry.js +1 -1
  44. package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
  45. package/dist/cjs/eds-icon-paper.cjs.entry.js +1 -1
  46. package/dist/cjs/eds-icon-plus.cjs.entry.js +1 -1
  47. package/dist/cjs/eds-icon-portal.cjs.entry.js +1 -1
  48. package/dist/cjs/eds-icon-private.cjs.entry.js +1 -1
  49. package/dist/cjs/eds-icon-public.cjs.entry.js +1 -1
  50. package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
  51. package/dist/cjs/eds-icon-star.cjs.entry.js +1 -1
  52. package/dist/cjs/eds-icon-start.cjs.entry.js +1 -1
  53. package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
  54. package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +1 -1
  55. package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +1 -1
  56. package/dist/cjs/eds-icon-tutorial.cjs.entry.js +1 -1
  57. package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
  58. package/dist/cjs/eds-icon-unknown.cjs.entry.js +1 -1
  59. package/dist/cjs/eds-icon-updown.cjs.entry.js +2 -2
  60. package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
  61. package/dist/cjs/eds-icon-view.cjs.entry.js +1 -1
  62. package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
  63. package/dist/cjs/eds-modal.cjs.entry.js +2 -2
  64. package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
  65. package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
  66. package/dist/cjs/eds-social-networks.cjs.entry.js +1 -1
  67. package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
  68. package/dist/cjs/eds-toast-manager.cjs.entry.js +1 -1
  69. package/dist/cjs/eds-trl.cjs.entry.js +1 -1
  70. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
  71. package/dist/cjs/index-50bc1aa4.js +2 -2
  72. package/dist/cjs/loader.cjs.js +1 -1
  73. package/dist/cjs/logo-space.cjs.entry.js +1 -1
  74. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +2 -2
  75. package/dist/cjs/logo-variations-tabs.cjs.entry.js +1 -1
  76. package/dist/cjs/logo-wrong-usage.cjs.entry.js +1 -1
  77. package/dist/cjs/svg-repository.cjs.entry.js +3 -3
  78. package/dist/cjs/token-list_3.cjs.entry.js +3 -3
  79. package/dist/cjs/token-ratios.cjs.entry.js +1 -1
  80. package/dist/cjs/token-spacing.cjs.entry.js +1 -1
  81. package/dist/cjs/token-typography.cjs.entry.js +1 -1
  82. package/dist/cjs/{up-and-down-d71df67d.js → up-and-down-6f179dd8.js} +2 -2
  83. package/dist/collection/collection-manifest.json +1 -0
  84. package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
  85. package/dist/collection/components/eds-alert/eds-alert.js +2 -2
  86. package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
  87. package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
  88. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +1 -1
  89. package/dist/collection/components/eds-button/eds-button.js +1 -19
  90. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +1 -1
  91. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
  92. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
  93. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +1 -1
  94. package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
  95. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +1 -1
  96. package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +1 -1
  97. package/dist/collection/components/eds-code-block/eds-code-block.js +1 -1
  98. package/dist/collection/components/eds-dropdown/eds-dropdown.js +2 -2
  99. package/dist/collection/components/eds-feedback/eds-feedback.js +1 -1
  100. package/dist/collection/components/eds-footer/eds-footer.js +2 -2
  101. package/dist/collection/components/eds-form/eds-form.js +56 -16
  102. package/dist/collection/components/eds-frame/eds-frame.js +1 -1
  103. package/dist/collection/components/eds-fullscreen-menu/eds-fullscreen-menu.js +8 -3
  104. package/dist/collection/components/eds-header/eds-header.css +5 -0
  105. package/dist/collection/components/eds-header/eds-header.js +1 -1
  106. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +1 -1
  107. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +1 -1
  108. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +1 -1
  109. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +1 -1
  110. package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +1 -1
  111. package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +1 -1
  112. package/dist/collection/components/eds-icons/eds-icon-bin/eds-icon-bin.js +1 -1
  113. package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +1 -1
  114. package/dist/collection/components/eds-icons/eds-icon-clone/eds-icon-clone.js +1 -1
  115. package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
  116. package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
  117. package/dist/collection/components/eds-icons/eds-icon-download/eds-icon-download.js +1 -1
  118. package/dist/collection/components/eds-icons/eds-icon-draft/eds-icon-draft.js +1 -1
  119. package/dist/collection/components/eds-icons/eds-icon-edit/eds-icon-edit.js +1 -1
  120. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
  121. package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +1 -1
  122. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
  123. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
  124. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
  125. package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +1 -1
  126. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
  127. package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +1 -1
  128. package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +1 -1
  129. package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +1 -1
  130. package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +1 -1
  131. package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +1 -1
  132. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
  133. package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
  134. package/dist/collection/components/eds-icons/eds-icon-start/eds-icon-start.js +1 -1
  135. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
  136. package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
  137. package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
  138. package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +1 -1
  139. package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +1 -1
  140. package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +2 -2
  141. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
  142. package/dist/collection/components/eds-icons/eds-icon-view/eds-icon-view.js +1 -1
  143. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
  144. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
  145. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
  146. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
  147. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
  148. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
  149. package/dist/collection/components/eds-img/eds-img.js +2 -2
  150. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
  151. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
  152. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
  153. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +1 -1
  154. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
  155. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +2 -2
  156. package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
  157. package/dist/collection/components/eds-link/eds-link.js +15 -25
  158. package/dist/collection/components/eds-logo/eds-logo.js +1 -1
  159. package/dist/collection/components/eds-modal/eds-modal.js +2 -2
  160. package/dist/collection/components/eds-nps/eds-nps.js +66 -53
  161. package/dist/collection/components/eds-pagination/eds-pagination.js +1 -1
  162. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
  163. package/dist/collection/components/eds-rating/eds-rating.js +1 -1
  164. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
  165. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
  166. package/dist/collection/components/eds-sidebar/eds-sidebar.css +458 -0
  167. package/dist/collection/components/eds-sidebar/eds-sidebar.js +299 -0
  168. package/dist/collection/components/eds-sidebar/eds-sidebar.stories.js +141 -0
  169. package/dist/collection/components/eds-social-networks/eds-social-networks.js +1 -1
  170. package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
  171. package/dist/collection/components/eds-steps/eds-steps.css +334 -10
  172. package/dist/collection/components/eds-steps/eds-steps.js +187 -101
  173. package/dist/collection/components/eds-steps/eds-steps.stories.js +21 -3
  174. package/dist/collection/components/eds-steps-v2/eds-steps-v2.css +167 -3
  175. package/dist/collection/components/eds-steps-v2/eds-steps-v2.js +177 -113
  176. package/dist/collection/components/eds-steps-v2/eds-steps-v2.stories.js +8 -1
  177. package/dist/collection/components/eds-switch/eds-switch.js +2 -2
  178. package/dist/collection/components/eds-table/eds-table.css +14 -0
  179. package/dist/collection/components/eds-table/eds-table.js +99 -9
  180. package/dist/collection/components/eds-tabs/eds-tabs.js +2 -2
  181. package/dist/collection/components/eds-tag/eds-tag.js +1 -1
  182. package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
  183. package/dist/collection/components/eds-toast-manager/eds-toast-manager.js +1 -1
  184. package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
  185. package/dist/collection/components/eds-trl/eds-trl.js +1 -1
  186. package/dist/collection/components/eds-user/eds-user.js +1 -1
  187. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  188. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  189. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  190. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  191. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  192. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  193. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  194. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
  195. package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
  196. package/dist/collection/eds-docs-ui/components-section/functional/overview.js +2 -2
  197. package/dist/collection/eds-docs-ui/components-section/functional/vue.js +1 -1
  198. package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
  199. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  200. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  201. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  202. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  203. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  204. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  205. package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
  206. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  207. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
  208. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
  209. package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
  210. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  211. package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
  212. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
  213. package/dist/collection/shared-ui/eds-global-search/eds-global-search.js +10 -12
  214. package/dist/collection/shared-ui/eds-global-search/eds-global-search.stories.js +2 -1
  215. package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
  216. package/dist/components/components-section.js +33 -24
  217. package/dist/components/components.css +315 -0
  218. package/dist/components/components.esm.js +1 -1
  219. package/dist/components/correct-use-of-colors.js +1 -1
  220. package/dist/components/docs-palettes.js +1 -1
  221. package/dist/components/docs-tokens.js +1 -1
  222. package/dist/components/eds-accordion2.js +2 -2
  223. package/dist/components/eds-alert2.js +2 -2
  224. package/dist/components/eds-app-root.js +1 -1
  225. package/dist/components/eds-avatar2.js +1 -1
  226. package/dist/components/eds-block-break2.js +1 -1
  227. package/dist/components/eds-breadcrumb.js +1 -1
  228. package/dist/components/eds-button2.js +1 -3
  229. package/dist/components/eds-card-desc2.js +1 -1
  230. package/dist/components/eds-card-generic2.js +1 -1
  231. package/dist/components/eds-card-project.js +1 -1
  232. package/dist/components/eds-card-tags.js +1 -1
  233. package/dist/components/eds-card-title2.js +1 -1
  234. package/dist/components/eds-card-tool.js +1 -1
  235. package/dist/components/eds-code-block2.js +1 -1
  236. package/dist/components/eds-cookies-preference.js +1 -1
  237. package/dist/components/eds-dropdown2.js +2 -2
  238. package/dist/components/eds-feedback.js +1 -1
  239. package/dist/components/eds-footer2.js +6 -12
  240. package/dist/components/eds-form.js +80 -34
  241. package/dist/components/eds-frame.js +1 -1
  242. package/dist/components/eds-fullscreen-menu.js +16 -17
  243. package/dist/components/eds-gauge.js +1 -1
  244. package/dist/components/eds-global-search.js +31 -27
  245. package/dist/components/eds-header.js +2 -2
  246. package/dist/components/eds-icon-arrow-diagonal.js +1 -1
  247. package/dist/components/eds-icon-arrow-right.js +1 -1
  248. package/dist/components/eds-icon-bin.js +1 -1
  249. package/dist/components/eds-icon-bluesky.js +1 -1
  250. package/dist/components/eds-icon-bookmark.js +1 -1
  251. package/dist/components/eds-icon-chevron-down.js +1 -1
  252. package/dist/components/eds-icon-chevron-left.js +1 -1
  253. package/dist/components/eds-icon-chevron-right.js +1 -1
  254. package/dist/components/eds-icon-chevron-up.js +1 -1
  255. package/dist/components/eds-icon-clone.js +1 -1
  256. package/dist/components/eds-icon-close.js +1 -1
  257. package/dist/components/eds-icon-copy.js +1 -1
  258. package/dist/components/eds-icon-download.js +1 -1
  259. package/dist/components/eds-icon-draft.js +1 -1
  260. package/dist/components/eds-icon-edit.js +1 -1
  261. package/dist/components/eds-icon-eu.js +1 -1
  262. package/dist/components/eds-icon-external.js +1 -1
  263. package/dist/components/eds-icon-facebook.js +1 -1
  264. package/dist/components/eds-icon-gitlab.js +1 -1
  265. package/dist/components/eds-icon-linkedin.js +1 -1
  266. package/dist/components/eds-icon-loader.js +1 -1
  267. package/dist/components/eds-icon-mastodon.js +1 -1
  268. package/dist/components/eds-icon-menu.js +1 -1
  269. package/dist/components/eds-icon-minus.js +1 -1
  270. package/dist/components/eds-icon-more.js +1 -1
  271. package/dist/components/eds-icon-paper.js +1 -1
  272. package/dist/components/eds-icon-plus.js +1 -1
  273. package/dist/components/eds-icon-portal.js +1 -1
  274. package/dist/components/eds-icon-private.js +1 -1
  275. package/dist/components/eds-icon-public.js +1 -1
  276. package/dist/components/eds-icon-search.js +1 -1
  277. package/dist/components/eds-icon-star.js +1 -1
  278. package/dist/components/eds-icon-start.js +1 -1
  279. package/dist/components/eds-icon-success.js +1 -1
  280. package/dist/components/eds-icon-thumbs-down.js +1 -1
  281. package/dist/components/eds-icon-thumbs-up.js +1 -1
  282. package/dist/components/eds-icon-tutorial.js +1 -1
  283. package/dist/components/eds-icon-twitter.js +1 -1
  284. package/dist/components/eds-icon-unknown.js +1 -1
  285. package/dist/components/eds-icon-updown.js +2 -2
  286. package/dist/components/eds-icon-user.js +1 -1
  287. package/dist/components/eds-icon-view.js +1 -1
  288. package/dist/components/eds-icon-youtube.js +1 -1
  289. package/dist/components/eds-img2.js +2 -2
  290. package/dist/components/eds-input-field2.js +22 -16
  291. package/dist/components/eds-input-footer2.js +9 -3
  292. package/dist/components/eds-input-label2.js +1 -1
  293. package/dist/components/eds-input-range2.js +1 -1
  294. package/dist/components/eds-input-search2.js +1 -1
  295. package/dist/components/eds-input-select2.js +2 -2
  296. package/dist/components/eds-input2.js +2 -2
  297. package/dist/components/eds-link2.js +14 -9
  298. package/dist/components/eds-logo2.js +1 -1
  299. package/dist/components/eds-modal.js +2 -2
  300. package/dist/components/eds-nps2.js +66 -53
  301. package/dist/components/eds-pagination2.js +1 -1
  302. package/dist/components/eds-progress-bar2.js +1 -1
  303. package/dist/components/eds-rating2.js +1 -1
  304. package/dist/components/eds-section-core2.js +1 -1
  305. package/dist/components/eds-section-heading2.js +2 -2
  306. package/dist/components/eds-sidebar.d.ts +11 -0
  307. package/dist/components/eds-sidebar.js +208 -0
  308. package/dist/components/eds-social-networks2.js +1 -1
  309. package/dist/components/eds-spinner2.js +1 -1
  310. package/dist/components/eds-steps-v2.js +133 -46
  311. package/dist/components/eds-steps2.js +130 -34
  312. package/dist/components/eds-switch.js +2 -2
  313. package/dist/components/eds-table2.js +65 -9
  314. package/dist/components/eds-tabs.js +2 -2
  315. package/dist/components/eds-tag2.js +1 -1
  316. package/dist/components/eds-timeline.js +1 -1
  317. package/dist/components/eds-toast-manager.js +1 -1
  318. package/dist/components/eds-tooltip2.js +1 -1
  319. package/dist/components/eds-trl.js +1 -1
  320. package/dist/components/eds-user.js +1 -1
  321. package/dist/components/incorrect-use-of-colors.js +1 -1
  322. package/dist/components/logo-space.js +1 -1
  323. package/dist/components/logo-variations-horizontal2.js +1 -1
  324. package/dist/components/logo-variations-tabs.js +1 -1
  325. package/dist/components/logo-variations-vertical2.js +1 -1
  326. package/dist/components/logo-wrong-usage.js +1 -1
  327. package/dist/components/{p-838d6773.entry.js → p-0e504247.entry.js} +1 -1
  328. package/dist/components/{p-b8b4c01e.entry.js → p-0f319eac.entry.js} +1 -1
  329. package/dist/components/{p-7b0496b1.entry.js → p-11bf02db.entry.js} +1 -1
  330. package/dist/components/{p-ca91952b.entry.js → p-15df046d.entry.js} +1 -1
  331. package/dist/components/p-15e5229b.entry.js +1 -0
  332. package/dist/components/{p-75b40e57.entry.js → p-1804a119.entry.js} +1 -1
  333. package/dist/components/p-19c628e6.entry.js +1 -0
  334. package/dist/components/p-19e241e9.entry.js +1 -0
  335. package/dist/components/p-1a674723.entry.js +9 -0
  336. package/dist/components/p-1dd6faeb.entry.js +1 -0
  337. package/dist/components/{p-e614c8e8.entry.js → p-21ed7e2e.entry.js} +1 -1
  338. package/dist/components/{p-2d6ca1c5.entry.js → p-2bd9605b.entry.js} +1 -1
  339. package/dist/components/{p-44d33938.entry.js → p-2d4f6e90.entry.js} +1 -1
  340. package/dist/components/p-2e3bd154.entry.js +1 -0
  341. package/dist/components/p-3004d956.entry.js +1 -0
  342. package/dist/components/p-313b04c9.entry.js +1 -0
  343. package/dist/components/p-31a3c6a2.entry.js +1 -0
  344. package/dist/components/p-3778e162.entry.js +1 -0
  345. package/dist/components/p-39548acc.entry.js +1 -0
  346. package/dist/components/p-3aac5c73.entry.js +1 -0
  347. package/dist/components/p-3d313fb5.entry.js +1 -0
  348. package/dist/components/p-43bc9224.entry.js +1 -0
  349. package/dist/components/p-48eaf544.entry.js +1 -0
  350. package/dist/components/{p-b522fa70.entry.js → p-4c2a8bf1.entry.js} +1 -1
  351. package/dist/components/{p-fe2bb83e.entry.js → p-4eaa7ba2.entry.js} +1 -1
  352. package/dist/components/p-5157eb25.entry.js +1 -0
  353. package/dist/components/{p-0798d50d.entry.js → p-59d2b2a9.entry.js} +1 -1
  354. package/dist/components/p-5c28d2d3.entry.js +1 -0
  355. package/dist/components/p-63d9ab86.entry.js +1 -0
  356. package/dist/components/p-640c4463.entry.js +1 -0
  357. package/dist/components/p-643eee62.entry.js +1 -0
  358. package/dist/components/p-64be8ed5.entry.js +1 -0
  359. package/dist/components/{p-e9a6f693.entry.js → p-67c3bedc.entry.js} +1 -1
  360. package/dist/components/{p-f2b12631.entry.js → p-70cbe02d.entry.js} +1 -1
  361. package/dist/components/p-7aa97ad6.entry.js +1 -0
  362. package/dist/components/{p-24683124.entry.js → p-7b160270.entry.js} +1 -1
  363. package/dist/components/p-83b26d8c.entry.js +1 -0
  364. package/dist/components/{p-e2bc6329.entry.js → p-85f866f0.entry.js} +1 -1
  365. package/dist/components/p-8779905b.entry.js +1 -0
  366. package/dist/components/p-88814860.entry.js +1 -0
  367. package/dist/components/{p-b471922f.entry.js → p-8998eec7.entry.js} +1 -1
  368. package/dist/components/p-8c42cefe.entry.js +1 -0
  369. package/dist/components/{p-bce8a58d.entry.js → p-8c520685.entry.js} +1 -1
  370. package/dist/components/p-8cba26bd.entry.js +1 -0
  371. package/dist/components/p-8ef830f5.entry.js +1 -0
  372. package/dist/components/p-942f4a95.entry.js +1 -0
  373. package/dist/components/p-9b05145b.entry.js +1 -0
  374. package/dist/components/{p-4beb1e06.entry.js → p-9d57b51f.entry.js} +1 -1
  375. package/dist/components/p-9e46df74.entry.js +1 -0
  376. package/dist/components/{p-76330532.entry.js → p-9fe2c4ba.entry.js} +1 -1
  377. package/dist/components/p-a38bb645.entry.js +1 -0
  378. package/dist/components/{p-df18ffd1.entry.js → p-a61dbad5.entry.js} +1 -1
  379. package/dist/components/{p-398255ff.entry.js → p-a78079b7.entry.js} +1 -1
  380. package/dist/components/p-a8e5591c.entry.js +1 -0
  381. package/dist/components/p-afceabd6.entry.js +1 -0
  382. package/dist/components/p-b00352ff.entry.js +1 -0
  383. package/dist/components/p-b93f983c.entry.js +1 -0
  384. package/dist/components/p-bb6a6de2.entry.js +1 -0
  385. package/dist/components/p-bc2204f3.entry.js +1 -0
  386. package/dist/components/p-be54a6c8.entry.js +1 -0
  387. package/dist/components/p-bef9bf37.entry.js +1 -0
  388. package/dist/components/p-c1ad7132.entry.js +1 -0
  389. package/dist/components/p-cb5e39d1.entry.js +1 -0
  390. package/dist/components/p-ccb6ad15.entry.js +1 -0
  391. package/dist/components/p-d090b9fa.entry.js +1 -0
  392. package/dist/components/p-d11f2808.entry.js +1 -0
  393. package/dist/components/p-d6e5a9fb.entry.js +1 -0
  394. package/dist/components/{p-ce3b6043.entry.js → p-d958e1f3.entry.js} +1 -1
  395. package/dist/components/{p-963feadd.entry.js → p-da7b4b6a.entry.js} +1 -1
  396. package/dist/components/p-dea41137.entry.js +1 -0
  397. package/dist/components/p-e01cf4f8.entry.js +1 -0
  398. package/dist/components/{p-54e29971.entry.js → p-e5a1118d.entry.js} +1 -1
  399. package/dist/components/p-eb818455.entry.js +1 -0
  400. package/dist/components/p-f061ff11.entry.js +1 -0
  401. package/dist/components/p-f0a330ef.entry.js +1 -0
  402. package/dist/components/p-f11e3f42.entry.js +1 -0
  403. package/dist/components/{p-7ada2015.entry.js → p-f24bfc6a.entry.js} +1 -1
  404. package/dist/components/primary.js +1 -1
  405. package/dist/components/primary2.js +1 -1
  406. package/dist/components/secondary.js +1 -1
  407. package/dist/components/secondary2.js +7 -7
  408. package/dist/components/support.js +1 -1
  409. package/dist/components/support2.js +3 -3
  410. package/dist/components/svg-repository.js +3 -3
  411. package/dist/components/token-list2.js +1 -1
  412. package/dist/components/token-radii2.js +1 -1
  413. package/dist/components/token-ratios.js +1 -1
  414. package/dist/components/token-shadows2.js +1 -1
  415. package/dist/components/token-spacing.js +1 -1
  416. package/dist/components/token-typography.js +1 -1
  417. package/dist/components/up-and-down.js +2 -2
  418. package/dist/esm/color-primary-palette_6.entry.js +14 -14
  419. package/dist/esm/components-section.entry.js +33 -24
  420. package/dist/esm/components.js +1 -1
  421. package/dist/esm/correct-use-of-colors.entry.js +1 -1
  422. package/dist/esm/docs-palettes.entry.js +1 -1
  423. package/dist/esm/docs-tokens.entry.js +1 -1
  424. package/dist/esm/{eds-accordion_36.entry.js → eds-accordion_37.entry.js} +661 -210
  425. package/dist/esm/eds-app-root.entry.js +1 -1
  426. package/dist/esm/eds-card-desc_2.entry.js +2 -2
  427. package/dist/esm/eds-card-generic.entry.js +1 -1
  428. package/dist/esm/eds-card-project.entry.js +1 -1
  429. package/dist/esm/eds-card-tags.entry.js +1 -1
  430. package/dist/esm/eds-card-tool.entry.js +1 -1
  431. package/dist/esm/eds-cookies-preference.entry.js +1 -1
  432. package/dist/esm/eds-feedback.entry.js +1 -1
  433. package/dist/esm/eds-footer.entry.js +2 -2
  434. package/dist/esm/eds-frame.entry.js +1 -1
  435. package/dist/esm/eds-fullscreen-menu.entry.js +8 -3
  436. package/dist/esm/eds-gauge.entry.js +1 -1
  437. package/dist/esm/eds-icon-arrow-diagonal.entry.js +1 -1
  438. package/dist/esm/eds-icon-arrow-right.entry.js +1 -1
  439. package/dist/esm/eds-icon-bin.entry.js +1 -1
  440. package/dist/esm/eds-icon-bluesky.entry.js +1 -1
  441. package/dist/esm/eds-icon-bookmark.entry.js +1 -1
  442. package/dist/esm/eds-icon-chevron-down.entry.js +1 -1
  443. package/dist/esm/eds-icon-chevron-left.entry.js +1 -1
  444. package/dist/esm/eds-icon-chevron-right.entry.js +1 -1
  445. package/dist/esm/eds-icon-chevron-up.entry.js +1 -1
  446. package/dist/esm/eds-icon-clone.entry.js +1 -1
  447. package/dist/esm/eds-icon-close.entry.js +1 -1
  448. package/dist/esm/eds-icon-copy.entry.js +1 -1
  449. package/dist/esm/eds-icon-download.entry.js +1 -1
  450. package/dist/esm/eds-icon-draft.entry.js +1 -1
  451. package/dist/esm/eds-icon-edit.entry.js +1 -1
  452. package/dist/esm/eds-icon-eu.entry.js +1 -1
  453. package/dist/esm/eds-icon-external.entry.js +1 -1
  454. package/dist/esm/eds-icon-facebook.entry.js +1 -1
  455. package/dist/esm/eds-icon-gitlab.entry.js +1 -1
  456. package/dist/esm/eds-icon-linkedin.entry.js +1 -1
  457. package/dist/esm/eds-icon-loader.entry.js +1 -1
  458. package/dist/esm/eds-icon-mastodon.entry.js +1 -1
  459. package/dist/esm/eds-icon-menu.entry.js +1 -1
  460. package/dist/esm/eds-icon-minus.entry.js +1 -1
  461. package/dist/esm/eds-icon-more.entry.js +1 -1
  462. package/dist/esm/eds-icon-paper.entry.js +1 -1
  463. package/dist/esm/eds-icon-plus.entry.js +1 -1
  464. package/dist/esm/eds-icon-portal.entry.js +1 -1
  465. package/dist/esm/eds-icon-private.entry.js +1 -1
  466. package/dist/esm/eds-icon-public.entry.js +1 -1
  467. package/dist/esm/eds-icon-search.entry.js +1 -1
  468. package/dist/esm/eds-icon-star.entry.js +1 -1
  469. package/dist/esm/eds-icon-start.entry.js +1 -1
  470. package/dist/esm/eds-icon-success.entry.js +1 -1
  471. package/dist/esm/eds-icon-thumbs-down.entry.js +1 -1
  472. package/dist/esm/eds-icon-thumbs-up.entry.js +1 -1
  473. package/dist/esm/eds-icon-tutorial.entry.js +1 -1
  474. package/dist/esm/eds-icon-twitter.entry.js +1 -1
  475. package/dist/esm/eds-icon-unknown.entry.js +1 -1
  476. package/dist/esm/eds-icon-updown.entry.js +2 -2
  477. package/dist/esm/eds-icon-user.entry.js +1 -1
  478. package/dist/esm/eds-icon-view.entry.js +1 -1
  479. package/dist/esm/eds-icon-youtube.entry.js +1 -1
  480. package/dist/esm/eds-modal.entry.js +2 -2
  481. package/dist/esm/eds-progress-bar.entry.js +1 -1
  482. package/dist/esm/eds-section-core_2.entry.js +3 -3
  483. package/dist/esm/eds-social-networks.entry.js +1 -1
  484. package/dist/esm/eds-timeline.entry.js +1 -1
  485. package/dist/esm/eds-toast-manager.entry.js +1 -1
  486. package/dist/esm/eds-trl.entry.js +1 -1
  487. package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
  488. package/dist/esm/index-870ab08f.js +2 -2
  489. package/dist/esm/loader.js +1 -1
  490. package/dist/esm/logo-space.entry.js +1 -1
  491. package/dist/esm/logo-variations-horizontal_2.entry.js +2 -2
  492. package/dist/esm/logo-variations-tabs.entry.js +1 -1
  493. package/dist/esm/logo-wrong-usage.entry.js +1 -1
  494. package/dist/esm/svg-repository.entry.js +3 -3
  495. package/dist/esm/token-list_3.entry.js +3 -3
  496. package/dist/esm/token-ratios.entry.js +1 -1
  497. package/dist/esm/token-spacing.entry.js +1 -1
  498. package/dist/esm/token-typography.entry.js +1 -1
  499. package/dist/esm/{up-and-down-d747abee.js → up-and-down-8b69ca97.js} +2 -2
  500. package/dist/hydrate/index.js +827 -341
  501. package/dist/hydrate/index.mjs +827 -341
  502. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +2 -2
  503. package/dist/types/components/eds-button/eds-button.d.ts +0 -1
  504. package/dist/types/components/eds-form/eds-form.d.ts +1 -0
  505. package/dist/types/components/eds-link/eds-link.d.ts +0 -1
  506. package/dist/types/components/eds-nps/eds-nps.d.ts +5 -3
  507. package/dist/types/components/eds-sidebar/eds-sidebar.d.ts +50 -0
  508. package/dist/types/components/eds-sidebar/eds-sidebar.stories.d.ts +98 -0
  509. package/dist/types/components/eds-steps/eds-steps.d.ts +18 -69
  510. package/dist/types/components/eds-steps/eds-steps.stories.d.ts +18 -0
  511. package/dist/types/components/eds-steps-v2/eds-steps-v2.d.ts +24 -52
  512. package/dist/types/components/eds-steps-v2/eds-steps-v2.stories.d.ts +8 -0
  513. package/dist/types/components/eds-table/eds-table.d.ts +8 -0
  514. package/dist/types/components.d.ts +143 -124
  515. package/package.json +1 -1
  516. package/dist/components/p-004801b2.entry.js +0 -1
  517. package/dist/components/p-02648f82.entry.js +0 -1
  518. package/dist/components/p-09f1b358.entry.js +0 -1
  519. package/dist/components/p-0ec9dcf5.entry.js +0 -1
  520. package/dist/components/p-0fb8511d.entry.js +0 -1
  521. package/dist/components/p-127870d7.entry.js +0 -1
  522. package/dist/components/p-12e153fb.entry.js +0 -1
  523. package/dist/components/p-1f80e708.entry.js +0 -1
  524. package/dist/components/p-21b5ca1f.entry.js +0 -1
  525. package/dist/components/p-2bfcb3cf.entry.js +0 -1
  526. package/dist/components/p-2efa0ba6.entry.js +0 -1
  527. package/dist/components/p-33a639b5.entry.js +0 -1
  528. package/dist/components/p-36b17bf2.entry.js +0 -1
  529. package/dist/components/p-3c478e74.entry.js +0 -1
  530. package/dist/components/p-447e436c.entry.js +0 -1
  531. package/dist/components/p-4995b8b2.entry.js +0 -1
  532. package/dist/components/p-53343ea1.entry.js +0 -1
  533. package/dist/components/p-56447243.entry.js +0 -1
  534. package/dist/components/p-56cc4a15.entry.js +0 -1
  535. package/dist/components/p-5ddcec77.entry.js +0 -1
  536. package/dist/components/p-5e8142ed.entry.js +0 -1
  537. package/dist/components/p-70f5e9f5.entry.js +0 -1
  538. package/dist/components/p-714445de.entry.js +0 -1
  539. package/dist/components/p-7436a99a.entry.js +0 -1
  540. package/dist/components/p-772d6ca9.entry.js +0 -1
  541. package/dist/components/p-79044ab6.entry.js +0 -1
  542. package/dist/components/p-7c7aaa95.entry.js +0 -1
  543. package/dist/components/p-81ba0feb.entry.js +0 -1
  544. package/dist/components/p-82b357f7.entry.js +0 -1
  545. package/dist/components/p-84239973.entry.js +0 -1
  546. package/dist/components/p-85dfbfd3.entry.js +0 -1
  547. package/dist/components/p-a155c283.entry.js +0 -1
  548. package/dist/components/p-a4080044.entry.js +0 -1
  549. package/dist/components/p-abd40167.entry.js +0 -1
  550. package/dist/components/p-ae41414e.entry.js +0 -1
  551. package/dist/components/p-afb55d52.entry.js +0 -1
  552. package/dist/components/p-b4c2c58d.entry.js +0 -9
  553. package/dist/components/p-b6fc1a7d.entry.js +0 -1
  554. package/dist/components/p-b8a36d0f.entry.js +0 -1
  555. package/dist/components/p-bb4633ec.entry.js +0 -1
  556. package/dist/components/p-bc59e5ff.entry.js +0 -1
  557. package/dist/components/p-cdabb63e.entry.js +0 -1
  558. package/dist/components/p-d3fa440f.entry.js +0 -1
  559. package/dist/components/p-dacd8c26.entry.js +0 -1
  560. package/dist/components/p-ddec1f12.entry.js +0 -1
  561. package/dist/components/p-e6819f4d.entry.js +0 -1
  562. package/dist/components/p-e8d0a2db.entry.js +0 -1
  563. package/dist/components/p-eaf5d057.entry.js +0 -1
  564. package/dist/components/p-eb57d477.entry.js +0 -1
  565. package/dist/components/p-efdc6fd7.entry.js +0 -1
  566. package/dist/components/p-f013c0ac.entry.js +0 -1
  567. package/dist/components/p-f1ead3b3.entry.js +0 -1
  568. /package/dist/components/{p-1b2913c8.js → p-553ca350.js} +0 -0
@@ -3,71 +3,84 @@ export class EdsNps {
3
3
  constructor() {
4
4
  this.min = 0;
5
5
  this.max = 10;
6
+ this.btnRefs = [];
7
+ this.onSelect = (value) => {
8
+ this.selectedValue = value;
9
+ this.nps.emit(value);
10
+ // Move focus to the selected button (like your rating component)
11
+ requestAnimationFrame(() => {
12
+ var _a, _b;
13
+ const idx = value - this.min;
14
+ (_b = (_a = this.btnRefs[idx]) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
15
+ });
16
+ };
17
+ this.handleKeyNav = (e) => {
18
+ const { key } = e;
19
+ const navigational = ['ArrowRight', 'ArrowLeft', 'Home', 'End', ' ', 'Enter'];
20
+ if (!navigational.includes(key)) {
21
+ return;
22
+ }
23
+ e.preventDefault();
24
+ const count = this.max - this.min + 1;
25
+ // Derive current index from selectedValue; if none, use 0 (first)
26
+ let currentIdx = this.selectedValue == null ? 0 : this.selectedValue - this.min;
27
+ switch (key) {
28
+ case 'ArrowRight':
29
+ currentIdx = Math.min(count - 1, currentIdx + 1);
30
+ this.setActiveByIndex(currentIdx, /*commit*/ false);
31
+ break;
32
+ case 'ArrowLeft':
33
+ currentIdx = Math.max(0, currentIdx - 1);
34
+ this.setActiveByIndex(currentIdx, /*commit*/ false);
35
+ break;
36
+ case 'Home':
37
+ this.setActiveByIndex(0, /*commit*/ false);
38
+ break;
39
+ case 'End':
40
+ this.setActiveByIndex(count - 1, /*commit*/ false);
41
+ break;
42
+ case ' ':
43
+ case 'Enter':
44
+ // Commit current focused item
45
+ this.onSelect(this.min + currentIdx);
46
+ break;
47
+ }
48
+ };
6
49
  this.question = undefined;
7
50
  this.leftLabel = undefined;
8
51
  this.rightLabel = undefined;
9
52
  this.selectedValue = null;
10
53
  }
11
- handleClick(value) {
54
+ /** Move visual highlight & roving tabindex; optionally commit selection */
55
+ setActiveByIndex(index, commit = false) {
56
+ var _a;
57
+ const value = this.min + index;
58
+ // Update highlight so focus movement is visible (like your rating)
12
59
  this.selectedValue = value;
13
- this.nps.emit(value);
14
- }
15
- handleKeyNav(e) {
16
- const radios = Array.from(this.el.shadowRoot.querySelectorAll('eds-button'));
17
- const currentIndex = radios.findIndex((r) => r.tabIndex === 0);
18
- switch (e.key) {
19
- case 'ArrowRight':
20
- case 'ArrowLeft': {
21
- e.preventDefault();
22
- const delta = e.key === 'ArrowRight' ? 1 : -1;
23
- const nextIndex = Math.min(this.max, Math.max(0, currentIndex + delta));
24
- this.activateRadio(radios, nextIndex);
25
- break;
26
- }
27
- case 'Home': {
28
- e.preventDefault();
29
- this.activateRadio(radios, 0);
30
- break;
31
- }
32
- case 'End': {
33
- e.preventDefault();
34
- this.activateRadio(radios, this.max);
35
- break;
36
- }
37
- case 'Enter':
38
- case ' ': {
39
- e.preventDefault();
40
- if (currentIndex >= 0) {
41
- this.handleClick(this.min + currentIndex);
42
- }
43
- break;
44
- }
45
- case 'Escape': {
46
- e.preventDefault();
47
- if (currentIndex >= 0) {
48
- radios[currentIndex].blur();
49
- }
50
- break;
51
- }
52
- default:
53
- return;
60
+ // Focus the button host (ensure eds-button forwards focus to its inner <button>)
61
+ const target = this.btnRefs[index];
62
+ typeof (target === null || target === void 0 ? void 0 : target.focusInner) === 'function' ? target.focusInner() : (_a = target === null || target === void 0 ? void 0 : target.focus) === null || _a === void 0 ? void 0 : _a.call(target);
63
+ if (commit) {
64
+ this.onSelect(value);
54
65
  }
55
66
  }
56
- activateRadio(radios, index) {
57
- const target = radios[index];
58
- const value = this.min + index;
59
- this.handleClick(value);
60
- target.focus();
61
- }
62
67
  render() {
63
68
  const count = this.max - this.min + 1;
64
- //onst fallback = 0;
65
- return (h("div", { key: '19326c22d2b5c9f2fbc97bfb3c3d958d14cdfa25', class: "eds-nps" }, h("eds-input-label", { key: '046239977d2dc639eabfc60a67df62011833a983', id: "nps-question", name: "nps-question", label: this.question }), h("div", { key: 'e296b8ff3a081f42263ee0c0a28ef3f304b1e1c0', role: "group", id: "nps-buttons", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: count }, (_, i) => {
69
+ return (h("div", { key: 'f5e19e0f750c0de6da3bae5713dca0e13eba85fc', class: "eds-nps" }, h("eds-input-label", { key: '3ff611a932976956735395fb531d9a800b554974', id: "nps-question", name: "nps-question", label: this.question }), h("div", { key: 'da0c3af26dd24d7dc618675aa7f197f55023230f', id: "nps-buttons", role: "radiogroup", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: this.handleKeyNav }, Array.from({ length: count }, (_, i) => {
66
70
  const val = this.min + i;
67
71
  const isSelected = val === this.selectedValue;
68
- const tabIndex = isSelected ? 0 : -1;
69
- return (h("div", { class: "grid-col-span-1", key: val }, h("eds-button", { tabindex: tabIndex, label: `${val}`, "aria-label": `${val}`, intent: isSelected ? 'primary' : 'ghost', "extra-class": "!block !px-0 w-full", triggerClick: () => this.handleClick(val) })));
70
- })), h("div", { key: '305bc5b2d162fc40fc56557291d37e29498563a2', class: "flex justify-between mt-8" }, h("span", { key: '7fe2191db8cacabed26f451ac0175f23ede3317e', class: "f-ui-04 text-light ml-4" }, this.leftLabel), h("span", { key: 'a85aca88d4de2897d7ba04578cf57a844c660675', class: "f-ui-04 text-light mr-4" }, this.rightLabel))));
72
+ // Roving tabindex: focusable is the selected; if none selected yet, first is focusable
73
+ const tabIndex = isSelected || (this.selectedValue == null && i === 0) ? 0 : -1;
74
+ return (h("div", { class: "grid-col-span-1", key: val }, h("eds-button", { ref: (el) => (this.btnRefs[i] = el), role: "radio", "aria-checked": isSelected ? 'true' : 'false', "aria-label": `${val}`,
75
+ // Use onClick so keyboard activation on inner <button> works natively
76
+ onClick: () => this.onSelect(val), tabIndex: tabIndex, intent: isSelected ? 'primary' : 'ghost', "extra-class": "!block !px-0 w-full", label: `${val}`,
77
+ // Optional: keep highlight in sync when tabbing into the group
78
+ onFocus: () => {
79
+ // Only move highlight on initial focus or when roving; remove if you
80
+ // want focus without highlight.
81
+ this.selectedValue = val;
82
+ } })));
83
+ })), h("div", { key: '10b2f854cff8192e54ee30feb44ad4143c54ad10', class: "flex justify-between mt-8" }, h("span", { key: '361b421b368219f9d7aa6306d912913e9d401fa0', class: "f-ui-04 text-light ml-4" }, this.leftLabel), h("span", { key: '2969496e1b6f772fcdf49667f66eee6dee6760fa', class: "f-ui-04 text-light mr-4" }, this.rightLabel))));
71
84
  }
72
85
  static get is() { return "eds-nps"; }
73
86
  static get encapsulation() { return "shadow"; }
@@ -248,7 +248,7 @@ export class EdsPagination {
248
248
  }
249
249
  render() {
250
250
  const navigableIndex = -1; // Track index for keyboard navigation
251
- return (h("div", { key: '1ddd5a3ee9c843a06e5f8f446ae8420a6e0df259' }, this.total > 0 && this.mode === 'default' && (h("p", { key: '87b18c6b1fc475e335f829a4f61b7a8883dc7b9e', class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, h("span", { key: 'd5af6f58fc41d83c7e9519bbaa76fb31e6cbb522', class: "text-light sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (h("nav", { "aria-label": "Pagination Navigation", "aria-describedby": this.mode === 'default' ? 'pagination-info' : undefined, onKeyDown: this.handleKeyDown }, h("ul", { class: "flex items-center justify-center gap-x-8", role: "list" }, h("li", { class: "mr-auto" }, this.useButtons ? (h("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, h("eds-button", { label: this.prevLabel, disabled: this.mode === 'navigator' ? !this.prevUrl : this.isFirstPage(), "aria-label": "Go to previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "ghost", "extra-class": "!p-8 lg:!pr-12 pagination-button", onClick: (event) => {
251
+ return (h("div", { key: '17128145803ac6af5f37d5e7c7f0576961c3e372' }, this.total > 0 && this.mode === 'default' && (h("p", { key: 'e50738bfadd0b115ed2d05b81199f0d4cfadda18', class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, h("span", { key: '230f2306254d7c5fa2bfd354f308e4fa6b5c2994', class: "text-light sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (h("nav", { "aria-label": "Pagination Navigation", "aria-describedby": this.mode === 'default' ? 'pagination-info' : undefined, onKeyDown: this.handleKeyDown }, h("ul", { class: "flex items-center justify-center gap-x-8", role: "list" }, h("li", { class: "mr-auto" }, this.useButtons ? (h("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, h("eds-button", { label: this.prevLabel, disabled: this.mode === 'navigator' ? !this.prevUrl : this.isFirstPage(), "aria-label": "Go to previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "ghost", "extra-class": "!p-8 lg:!pr-12 pagination-button", onClick: (event) => {
252
252
  if (this.mode === 'default' && !this.isFirstPage()) {
253
253
  this.handlePageClick(event, (this.currentPage || 1) - 1);
254
254
  }
@@ -39,7 +39,7 @@ export class EdsProgressBar {
39
39
  ]
40
40
  .filter(Boolean)
41
41
  .join(' ');
42
- return (h("div", { key: '38e64c698f6cf8c22a6ddf41476a6eda785e537e', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, h("div", { key: 'a0a17695931c6e442d886ef773e2cee3a31ab720', class: fillClasses, style: { width: `${progressValue}%` } }), h("div", { key: '6ee49e1cf553b0cc20a70a8b258a307e5282be97', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, h("span", { key: '0485a3b6ce82ee2c309554e92c14a6dd03819bb2', class: "text-default f-body-02" }, progressValue, "%"))));
42
+ return (h("div", { key: 'a3a56c8ed86104fb26ce5a3f7d583d02705b59d0', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, h("div", { key: 'ef56ff5501bfec77174a90dafabdd35210936c9d', class: fillClasses, style: { width: `${progressValue}%` } }), h("div", { key: '69eec5cd3a6b8fec6defa621b69559da47df66a6', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, h("span", { key: '7fdeea8fbe2e600daca350e67a27fbed9708c1e1', class: "text-default f-body-02" }, progressValue, "%"))));
43
43
  }
44
44
  static get is() { return "eds-progress-bar"; }
45
45
  static get encapsulation() { return "shadow"; }
@@ -60,7 +60,7 @@ export class EdsRating {
60
60
  this.onSelect(next);
61
61
  }
62
62
  render() {
63
- return (h("div", { key: '8dcde2afdc0db27d3f6be48f1d58cc7c7f88b0f0', id: "rating-buttons", role: "group", "aria-labelledby": "rating", class: "stars flex space-x-1 my-8", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: this.ratingCount }, (_, index) => {
63
+ return (h("div", { key: '5d1cf924d2a59b4141eac1bd4f122c9cf640cf9c', id: "rating-buttons", role: "group", "aria-labelledby": "rating", class: "stars flex space-x-1 my-8", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: this.ratingCount }, (_, index) => {
64
64
  const starRating = index + 1;
65
65
  const isSelected = starRating <= this.selectedRating;
66
66
  // Use the mapping text if available; otherwise, fall back to a generic label.
@@ -20,7 +20,7 @@ export class EdsSectionCore {
20
20
  }
21
21
  render() {
22
22
  const TagType = this.tag; // Set dynamic tag type (div or section)
23
- return (h(TagType, { key: 'b27b48854fc7d537c131da2c23850b2b7b9b2368' }, h("eds-section-heading", { key: '7c3575d8c0295e2cd1c70a2748a25aa65d6892e6', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), h("slot", { key: '66526792e818932d8e44ff927638560ce1b40cac' })));
23
+ return (h(TagType, { key: '3c75c9cda6a41c0d4243c3c111d7cc95f3efb97b' }, h("eds-section-heading", { key: '05b4d011aa1b8f489fe8aa0fd6d43b824da03370', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), h("slot", { key: '1749580398e56d38d83d5f5fdd87f43867a554cb' })));
24
24
  }
25
25
  static get is() { return "eds-section-core"; }
26
26
  static get encapsulation() { return "shadow"; }
@@ -36,12 +36,12 @@ export class EdsSectionHeading {
36
36
  render() {
37
37
  const TagType = this.tag; // Dynamically set tag type for the container
38
38
  const HeadingTag = this.headingLevel; // Dynamically set heading level
39
- return (h(TagType, { key: 'efba0650ab65807f560c5676ead78b19b94e8b18', class: {
39
+ return (h(TagType, { key: '18614645f329d9ccfe6104b544ff306c6190173a', class: {
40
40
  'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
41
41
  container: this.withContainer,
42
42
  'pt-48': this.spacingLarge,
43
43
  'pt-28': !this.spacingLarge
44
- } }, h(HeadingTag, { key: '50e3a8d81b7fd5af96ef3a1dbb7e5bbacb73ef15', class: this.getHeadingClass() }, this.sectionTitle)));
44
+ } }, h(HeadingTag, { key: 'ce699077313e9ee8d8a66e68af667451351a35a6', class: this.getHeadingClass() }, this.sectionTitle)));
45
45
  }
46
46
  static get is() { return "eds-section-heading"; }
47
47
  static get properties() {
@@ -0,0 +1,458 @@
1
+ /* ===== HOST BASE ===== */
2
+ :host {
3
+ display: block;
4
+ width: 100%;
5
+ height: 100%;
6
+ overflow-y: auto;
7
+ overflow-x: hidden;
8
+ transition: width 0.3s ease;
9
+ }
10
+
11
+ :host(.collapsed) {
12
+ width: 4rem;
13
+ }
14
+
15
+ /* Scrollbars on host */
16
+ :host::-webkit-scrollbar {
17
+ width: 8px;
18
+ }
19
+ :host::-webkit-scrollbar-track {
20
+ background: transparent;
21
+ }
22
+ :host::-webkit-scrollbar-thumb {
23
+ background: rgba(0, 0, 0, 0.2);
24
+ border-radius: 4px;
25
+ }
26
+ :host::-webkit-scrollbar-thumb:hover {
27
+ background: rgba(0, 0, 0, 0.3);
28
+ }
29
+
30
+ /* ===== STRUCTURE ===== */
31
+ .sidebar-nav {
32
+ padding: 0.5rem 0;
33
+ }
34
+
35
+ .sidebar-header {
36
+ display: flex;
37
+ justify-content: flex-end;
38
+ padding: 0.5rem 0.75rem;
39
+ margin-bottom: 0.5rem;
40
+ }
41
+
42
+ :host(.collapsed) .sidebar-header {
43
+ justify-content: center;
44
+ padding: 0.5rem;
45
+ }
46
+
47
+ .collapse-toggle {
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: center;
51
+ width: 2rem;
52
+ height: 2rem;
53
+ background: none;
54
+ border: none;
55
+ cursor: pointer;
56
+ padding: 0;
57
+ border-radius: 0.375rem;
58
+ transition: background-color 0.15s ease;
59
+ color: inherit;
60
+ }
61
+
62
+ .collapse-toggle:hover {
63
+ background-color: rgba(0, 0, 0, 0.08);
64
+ }
65
+
66
+ .collapse-toggle:focus-visible {
67
+ outline: 2px solid var(--eds-focus-color, #0066cc);
68
+ outline-offset: 2px;
69
+ }
70
+
71
+ .sidebar-list {
72
+ list-style: none;
73
+ margin: 0;
74
+ padding: 0;
75
+ display: flex;
76
+ flex-direction: column;
77
+ gap: 0.125rem;
78
+ }
79
+
80
+ .sidebar-item {
81
+ display: flex;
82
+ flex-direction: column;
83
+ }
84
+
85
+ .sidebar-item-content {
86
+ display: flex;
87
+ align-items: center;
88
+ gap: 0.5rem;
89
+ padding: 0.5rem 0.75rem;
90
+ cursor: pointer;
91
+ user-select: none;
92
+ word-break: break-word;
93
+ transition: background-color 0.15s ease;
94
+ border-radius: 0.375rem;
95
+ margin: 0 0.5rem;
96
+ position: relative;
97
+ }
98
+
99
+ :host(.collapsed) .sidebar-item-content {
100
+ justify-content: center;
101
+ padding: 0.75rem;
102
+ margin: 0 0.5rem;
103
+ }
104
+
105
+ .sidebar-item-content:hover {
106
+ background-color: rgba(0, 0, 0, 0.04);
107
+ }
108
+
109
+ .sidebar-item-content:focus-visible {
110
+ outline: 2px solid var(--eds-focus-color, #0066cc);
111
+ outline-offset: -2px;
112
+ z-index: 1;
113
+ }
114
+
115
+ .sidebar-icon {
116
+ display: flex;
117
+ align-items: center;
118
+ justify-content: center;
119
+ flex-shrink: 0;
120
+ width: 1.25rem;
121
+ height: 1.25rem;
122
+ }
123
+
124
+ .sidebar-content-wrapper {
125
+ display: flex;
126
+ align-items: center;
127
+ gap: 0.5rem;
128
+ flex: 1;
129
+ min-width: 0;
130
+ }
131
+
132
+ .sidebar-toggle {
133
+ display: flex;
134
+ align-items: center;
135
+ justify-content: center;
136
+ flex-shrink: 0;
137
+ width: 1.25rem;
138
+ height: 1.25rem;
139
+ padding: 0;
140
+ margin: -0.125rem 0;
141
+ pointer-events: none;
142
+ }
143
+
144
+ .sidebar-link-wrapper {
145
+ flex: 1;
146
+ min-width: 0;
147
+ pointer-events: none;
148
+ }
149
+
150
+ .sidebar-link {
151
+ font-weight: 400;
152
+ pointer-events: none;
153
+ }
154
+
155
+ .sidebar-children {
156
+ list-style: none;
157
+ margin: 0.25rem 0 0 0;
158
+ padding: 0;
159
+ display: flex;
160
+ flex-direction: column;
161
+ gap: 0.125rem;
162
+ overflow: hidden;
163
+ animation: slideDown 0.2s ease;
164
+ }
165
+
166
+ @keyframes slideDown {
167
+ from {
168
+ opacity: 0;
169
+ transform: translateY(-0.25rem);
170
+ }
171
+ to {
172
+ opacity: 1;
173
+ transform: translateY(0);
174
+ }
175
+ }
176
+
177
+ /* ===== INDENTATION BY LEVEL ===== */
178
+ /* Base level indentation (level-0) */
179
+ .sidebar-item.level-0 .sidebar-item-content {
180
+ padding-left: 0.75rem;
181
+ }
182
+
183
+ :host(.collapsed) .sidebar-item.level-0 .sidebar-item-content {
184
+ padding-left: 0.75rem;
185
+ }
186
+
187
+ /* Each level adds 1.25rem of indent */
188
+ .sidebar-item.level-1 .sidebar-item-content {
189
+ padding-left: 2rem;
190
+ }
191
+
192
+ .sidebar-item.level-2 .sidebar-item-content {
193
+ padding-left: 3.25rem;
194
+ }
195
+
196
+ .sidebar-item.level-3 .sidebar-item-content {
197
+ padding-left: 4.5rem;
198
+ }
199
+
200
+ .sidebar-item.level-4 .sidebar-item-content {
201
+ padding-left: 5.75rem;
202
+ }
203
+
204
+ .sidebar-item.level-5 .sidebar-item-content {
205
+ padding-left: 7rem;
206
+ }
207
+
208
+ /* ===== THEME: DEFAULT (Subtle - no background on active) ===== */
209
+ :host(.theme-default) .sidebar-item-content {
210
+ border-radius: 0.375rem;
211
+ margin: 0 0.5rem;
212
+ padding: 0.5rem 0.75rem;
213
+ }
214
+
215
+ :host(.theme-default.collapsed) .sidebar-item-content {
216
+ margin: 0 0.5rem;
217
+ border-radius: 0.375rem;
218
+ }
219
+
220
+ :host(.theme-default) .sidebar-item-content:hover {
221
+ background-color: rgba(0, 0, 0, 0.04);
222
+ }
223
+
224
+ :host(.theme-default) .sidebar-item.active > .sidebar-item-content {
225
+ /* No background color - keep it subtle */
226
+ background-color: transparent;
227
+ }
228
+
229
+ :host(.theme-default) .sidebar-item.active > .sidebar-item-content .sidebar-link {
230
+ font-weight: 600;
231
+ }
232
+
233
+ /* Adjust level indents for theme-default */
234
+ :host(.theme-default) .sidebar-item.level-0 .sidebar-item-content {
235
+ padding-left: 0.75rem;
236
+ }
237
+
238
+ :host(.theme-default) .sidebar-item.level-1 .sidebar-item-content {
239
+ padding-left: 2rem;
240
+ }
241
+
242
+ :host(.theme-default) .sidebar-item.level-2 .sidebar-item-content {
243
+ padding-left: 3.25rem;
244
+ }
245
+
246
+ :host(.theme-default) .sidebar-item.level-3 .sidebar-item-content {
247
+ padding-left: 4.5rem;
248
+ }
249
+
250
+ :host(.theme-default) .sidebar-item.level-4 .sidebar-item-content {
251
+ padding-left: 5.75rem;
252
+ }
253
+
254
+ /* ===== THEME: MINIMAL (With left border) ===== */
255
+ :host(.theme-minimal) .sidebar-item-content {
256
+ border-radius: 0;
257
+ margin: 0;
258
+ padding-left: 1rem;
259
+ padding-right: 1rem;
260
+ }
261
+
262
+ :host(.theme-minimal.collapsed) .sidebar-item-content {
263
+ margin: 0 0.25rem;
264
+ border-radius: 0.375rem;
265
+ }
266
+
267
+ :host(.theme-minimal) .sidebar-item-content:hover {
268
+ background-color: var(--grey-300);
269
+ }
270
+
271
+ :host(.theme-minimal) .sidebar-item.active > .sidebar-item-content {
272
+ background-color: var(--grey-400);
273
+ border-left: 3px solid var(--grey-900);
274
+ padding-left: calc(1rem - 3px);
275
+ }
276
+
277
+ :host(.theme-minimal.collapsed) .sidebar-item.active > .sidebar-item-content {
278
+ border-left: none;
279
+ border-radius: 0.375rem;
280
+ padding-left: 0.75rem;
281
+ }
282
+
283
+ /* Adjust active state indents for each level */
284
+ :host(.theme-minimal) .sidebar-item.level-1.active > .sidebar-item-content {
285
+ padding-left: calc(2rem - 3px);
286
+ }
287
+
288
+ :host(.theme-minimal) .sidebar-item.level-2.active > .sidebar-item-content {
289
+ padding-left: calc(3.25rem - 3px);
290
+ }
291
+
292
+ :host(.theme-minimal) .sidebar-item.level-3.active > .sidebar-item-content {
293
+ padding-left: calc(4.5rem - 3px);
294
+ }
295
+
296
+ :host(.theme-minimal) .sidebar-item.level-4.active > .sidebar-item-content {
297
+ padding-left: calc(5.75rem - 3px);
298
+ }
299
+
300
+ /* Adjust level indents for theme-minimal */
301
+ :host(.theme-minimal) .sidebar-item.level-0 .sidebar-item-content {
302
+ padding-left: 1rem;
303
+ }
304
+
305
+ :host(.theme-minimal) .sidebar-item.level-1 .sidebar-item-content {
306
+ padding-left: 2rem;
307
+ }
308
+
309
+ :host(.theme-minimal) .sidebar-item.level-2 .sidebar-item-content {
310
+ padding-left: 3.25rem;
311
+ }
312
+
313
+ :host(.theme-minimal) .sidebar-item.level-3 .sidebar-item-content {
314
+ padding-left: 4.5rem;
315
+ }
316
+
317
+ :host(.theme-minimal) .sidebar-item.level-4 .sidebar-item-content {
318
+ padding-left: 5.75rem;
319
+ }
320
+
321
+ /* Optional: Add subtle connector lines for nested items */
322
+ :host(.theme-minimal) .sidebar-children {
323
+ position: relative;
324
+ }
325
+
326
+ /* ===== THEME: EBRAINS (Green background) ===== */
327
+ :host(.theme-ebrains) .sidebar-item-content {
328
+ padding: 0.5rem 1rem;
329
+ border-radius: 0.5rem;
330
+ margin: 0 0.5rem;
331
+ }
332
+
333
+ :host(.theme-ebrains.collapsed) .sidebar-item-content {
334
+ padding: 0.75rem;
335
+ }
336
+
337
+ :host(.theme-ebrains) .sidebar-item-content:hover {
338
+ background-color: rgba(0, 0, 0, 0.05);
339
+ }
340
+
341
+ :host(.theme-ebrains) .sidebar-item.active > .sidebar-item-content {
342
+ background-color: var(--green-600, #22c55e);
343
+ color: white;
344
+ }
345
+
346
+ :host(.theme-ebrains) .sidebar-item.active > .sidebar-item-content .sidebar-link {
347
+ --eds-link-color: white;
348
+ --eds-link-hover-color: white;
349
+ }
350
+
351
+ :host(.theme-ebrains) .sidebar-item.active > .sidebar-item-content .sidebar-toggle {
352
+ color: white;
353
+ }
354
+
355
+ :host(.theme-ebrains) .sidebar-item.active > .sidebar-item-content .sidebar-icon {
356
+ color: white;
357
+ }
358
+
359
+ /* Adjust ebrains theme indents */
360
+ :host(.theme-ebrains) .sidebar-item.level-0 .sidebar-item-content {
361
+ padding-left: 1rem;
362
+ }
363
+
364
+ :host(.theme-ebrains) .sidebar-item.level-1 .sidebar-item-content {
365
+ padding-left: 2.25rem;
366
+ }
367
+
368
+ :host(.theme-ebrains) .sidebar-item.level-2 .sidebar-item-content {
369
+ padding-left: 3.5rem;
370
+ }
371
+
372
+ :host(.theme-ebrains) .sidebar-item.level-3 .sidebar-item-content {
373
+ padding-left: 4.75rem;
374
+ }
375
+
376
+ :host(.theme-ebrains) .sidebar-item.level-4 .sidebar-item-content {
377
+ padding-left: 6rem;
378
+ }
379
+
380
+ /* ===== DARK MODE ===== */
381
+ @media (prefers-color-scheme: dark) {
382
+ .collapse-toggle:hover {
383
+ background-color: rgba(255, 255, 255, 0.08);
384
+ }
385
+
386
+ :host(.theme-default) .sidebar-item-content:hover {
387
+ background-color: rgba(255, 255, 255, 0.05);
388
+ }
389
+
390
+ :host(.theme-default) .sidebar-item.active > .sidebar-item-content {
391
+ background-color: rgba(0, 102, 204, 0.15);
392
+ }
393
+
394
+ :host(.theme-minimal) .sidebar-item-content:hover {
395
+ background-color: rgba(255, 255, 255, 0.06);
396
+ }
397
+
398
+ :host::-webkit-scrollbar-thumb {
399
+ background: rgba(255, 255, 255, 0.2);
400
+ }
401
+
402
+ :host::-webkit-scrollbar-thumb:hover {
403
+ background: rgba(255, 255, 255, 0.3);
404
+ }
405
+ }
406
+
407
+ /* ===== TRANSITIONS ===== */
408
+ .sidebar-toggle eds-icon-wrapper,
409
+ .sidebar-icon eds-icon-wrapper,
410
+ .collapse-toggle eds-icon-wrapper {
411
+ transition: transform 0.15s ease;
412
+ display: flex;
413
+ align-items: center;
414
+ justify-content: center;
415
+ }
416
+
417
+ /* ===== ACCESSIBILITY ===== */
418
+ .sidebar-item-content:focus-visible .sidebar-link {
419
+ text-decoration: underline;
420
+ }
421
+
422
+ /* Ensure proper visual feedback */
423
+ .sidebar-item.active > .sidebar-item-content .sidebar-link {
424
+ font-weight: 500;
425
+ }
426
+
427
+ /* Tooltip-like behavior for collapsed state (optional enhancement) */
428
+ :host(.collapsed) .sidebar-item-content::after {
429
+ content: attr(title);
430
+ position: absolute;
431
+ left: 100%;
432
+ top: 50%;
433
+ transform: translateY(-50%);
434
+ margin-left: 0.5rem;
435
+ padding: 0.5rem 0.75rem;
436
+ background: rgba(0, 0, 0, 0.9);
437
+ color: white;
438
+ border-radius: 0.375rem;
439
+ white-space: nowrap;
440
+ font-size: 0.875rem;
441
+ opacity: 0;
442
+ pointer-events: none;
443
+ transition: opacity 0.2s ease;
444
+ z-index: 1000;
445
+ }
446
+
447
+ :host(.collapsed) .sidebar-item-content:hover::after {
448
+ opacity: 1;
449
+ transition-delay: 0.3s;
450
+ }
451
+
452
+ .-ml-4 {
453
+ margin-left: -0.25rem;
454
+ }
455
+
456
+ .mt-2 {
457
+ margin-top: 0.125rem
458
+ }