@ebrains/components 2.0.0 → 2.1.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 (603) hide show
  1. package/dist/cjs/clone-846acfdd.js +5 -0
  2. package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
  3. package/dist/cjs/components-section.cjs.entry.js +2 -2
  4. package/dist/cjs/components.cjs.js +2 -2
  5. package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
  6. package/dist/cjs/docs-palettes.cjs.entry.js +2 -2
  7. package/dist/cjs/docs-tokens.cjs.entry.js +2 -2
  8. package/dist/cjs/edit-ff5b84d8.js +5 -0
  9. package/dist/cjs/{eds-avatar_26.cjs.entry.js → eds-accordion_33.cjs.entry.js} +3467 -157
  10. package/dist/cjs/eds-app-root.cjs.entry.js +2 -2
  11. package/dist/cjs/eds-card-desc_2.cjs.entry.js +3 -3
  12. package/dist/cjs/eds-card-generic.cjs.entry.js +1 -1
  13. package/dist/cjs/eds-card-project.cjs.entry.js +2 -2
  14. package/dist/cjs/eds-card-section.cjs.entry.js +1 -1
  15. package/dist/cjs/eds-card-tags.cjs.entry.js +2 -2
  16. package/dist/cjs/eds-card-tool.cjs.entry.js +2 -2
  17. package/dist/cjs/eds-cookies-preference.cjs.entry.js +2 -2
  18. package/dist/cjs/eds-feedback.cjs.entry.js +2 -2
  19. package/dist/cjs/eds-footer.cjs.entry.js +9 -3
  20. package/dist/cjs/eds-frame.cjs.entry.js +2 -2
  21. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +1 -1
  22. package/dist/cjs/eds-gauge.cjs.entry.js +2 -2
  23. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +2 -2
  24. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +2 -2
  25. package/dist/cjs/eds-icon-bin.cjs.entry.js +2 -2
  26. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +2 -2
  27. package/dist/cjs/eds-icon-bookmark.cjs.entry.js +2 -2
  28. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +2 -2
  29. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +2 -2
  30. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +2 -2
  31. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +2 -2
  32. package/dist/cjs/eds-icon-clone.cjs.entry.js +18 -0
  33. package/dist/cjs/eds-icon-close.cjs.entry.js +2 -2
  34. package/dist/cjs/eds-icon-copy.cjs.entry.js +2 -2
  35. package/dist/cjs/eds-icon-draft.cjs.entry.js +2 -2
  36. package/dist/cjs/eds-icon-edit.cjs.entry.js +3 -3
  37. package/dist/cjs/eds-icon-eu.cjs.entry.js +2 -2
  38. package/dist/cjs/eds-icon-external.cjs.entry.js +2 -2
  39. package/dist/cjs/eds-icon-facebook.cjs.entry.js +2 -2
  40. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +2 -2
  41. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +2 -2
  42. package/dist/cjs/eds-icon-loader.cjs.entry.js +2 -2
  43. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +2 -2
  44. package/dist/cjs/eds-icon-menu.cjs.entry.js +2 -2
  45. package/dist/cjs/eds-icon-minus.cjs.entry.js +2 -2
  46. package/dist/cjs/eds-icon-more.cjs.entry.js +2 -2
  47. package/dist/cjs/eds-icon-paper.cjs.entry.js +2 -2
  48. package/dist/cjs/eds-icon-plus.cjs.entry.js +2 -2
  49. package/dist/cjs/eds-icon-portal.cjs.entry.js +2 -2
  50. package/dist/cjs/eds-icon-private.cjs.entry.js +2 -2
  51. package/dist/cjs/eds-icon-public.cjs.entry.js +2 -2
  52. package/dist/cjs/eds-icon-search.cjs.entry.js +2 -2
  53. package/dist/cjs/eds-icon-star.cjs.entry.js +2 -2
  54. package/dist/cjs/eds-icon-start.cjs.entry.js +2 -2
  55. package/dist/cjs/eds-icon-success.cjs.entry.js +2 -2
  56. package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +2 -2
  57. package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +2 -2
  58. package/dist/cjs/eds-icon-tutorial.cjs.entry.js +2 -2
  59. package/dist/cjs/eds-icon-twitter.cjs.entry.js +2 -2
  60. package/dist/cjs/eds-icon-unknown.cjs.entry.js +2 -2
  61. package/dist/cjs/eds-icon-updown.cjs.entry.js +2 -2
  62. package/dist/cjs/eds-icon-user.cjs.entry.js +2 -2
  63. package/dist/cjs/eds-icon-view.cjs.entry.js +18 -0
  64. package/dist/cjs/eds-icon-youtube.cjs.entry.js +2 -2
  65. package/dist/cjs/eds-modal.cjs.entry.js +3 -3
  66. package/dist/cjs/eds-pie.cjs.entry.js +1 -1
  67. package/dist/cjs/eds-progress-bar.cjs.entry.js +2 -2
  68. package/dist/cjs/eds-section-core_2.cjs.entry.js +4 -4
  69. package/dist/cjs/eds-social-networks.cjs.entry.js +2 -2
  70. package/dist/cjs/eds-spinner.cjs.entry.js +2 -2
  71. package/dist/cjs/eds-splash-screen.cjs.entry.js +1 -1
  72. package/dist/cjs/eds-timeline.cjs.entry.js +2 -2
  73. package/dist/cjs/eds-toast-manager.cjs.entry.js +2 -2
  74. package/dist/cjs/eds-tooltip.cjs.entry.js +2 -2
  75. package/dist/cjs/eds-trl.cjs.entry.js +2 -2
  76. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
  77. package/dist/cjs/{index-88c8039f.js → index-0249a32e.js} +15 -28
  78. package/dist/cjs/loader.cjs.js +2 -2
  79. package/dist/cjs/logo-space.cjs.entry.js +2 -2
  80. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +3 -3
  81. package/dist/cjs/logo-variations-tabs.cjs.entry.js +2 -2
  82. package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
  83. package/dist/cjs/svg-repository.cjs.entry.js +8 -4
  84. package/dist/cjs/token-list_3.cjs.entry.js +4 -4
  85. package/dist/cjs/token-ratios.cjs.entry.js +2 -2
  86. package/dist/cjs/token-spacing.cjs.entry.js +2 -2
  87. package/dist/cjs/token-typography.cjs.entry.js +2 -2
  88. package/dist/cjs/view-80d5c6c8.js +5 -0
  89. package/dist/collection/collection-manifest.json +3 -0
  90. package/dist/collection/components/eds-accordion/eds-accordion.js +1 -1
  91. package/dist/collection/components/eds-alert/eds-alert.js +30 -3
  92. package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
  93. package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
  94. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +1 -1
  95. package/dist/collection/components/eds-button/eds-button.css +4 -0
  96. package/dist/collection/components/eds-button/eds-button.js +19 -8
  97. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +1 -1
  98. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
  99. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
  100. package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
  101. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +1 -1
  102. package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +1 -1
  103. package/dist/collection/components/eds-code-block/eds-code-block.js +1 -1
  104. package/dist/collection/components/eds-dropdown/eds-dropdown.js +2 -2
  105. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +1 -1
  106. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +1 -1
  107. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +1 -1
  108. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +1 -1
  109. package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +1 -1
  110. package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +1 -1
  111. package/dist/collection/components/eds-icons/eds-icon-bin/eds-icon-bin.js +1 -1
  112. package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +1 -1
  113. package/dist/collection/components/eds-icons/eds-icon-clone/eds-icon-clone.js +36 -0
  114. package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
  115. package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
  116. package/dist/collection/components/eds-icons/eds-icon-draft/eds-icon-draft.js +1 -1
  117. package/dist/collection/components/eds-icons/eds-icon-edit/eds-icon-edit.js +1 -1
  118. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
  119. package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +1 -1
  120. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
  121. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
  122. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
  123. package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +1 -1
  124. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
  125. package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +1 -1
  126. package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +1 -1
  127. package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +1 -1
  128. package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +1 -1
  129. package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +1 -1
  130. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
  131. package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
  132. package/dist/collection/components/eds-icons/eds-icon-start/eds-icon-start.js +1 -1
  133. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
  134. package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
  135. package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
  136. package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +1 -1
  137. package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +1 -1
  138. package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +1 -1
  139. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
  140. package/dist/collection/components/eds-icons/eds-icon-view/eds-icon-view.js +36 -0
  141. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
  142. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
  143. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
  144. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
  145. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
  146. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
  147. package/dist/collection/components/eds-img/eds-img.js +2 -2
  148. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
  149. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
  150. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
  151. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +1 -1
  152. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
  153. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +2 -2
  154. package/dist/collection/components/eds-input-field/eds-input-field.js +3 -2
  155. package/dist/collection/components/eds-link/eds-link.js +27 -7
  156. package/dist/collection/components/eds-link/eds-link.stories.js +3 -1
  157. package/dist/collection/components/eds-logo/eds-logo.js +1 -1
  158. package/dist/collection/components/eds-modal/eds-modal.js +2 -2
  159. package/dist/collection/components/eds-nps/eds-npm.stories.js +36 -0
  160. package/dist/collection/components/eds-nps/eds-nps.css +73 -0
  161. package/dist/collection/components/eds-nps/eds-nps.js +163 -0
  162. package/dist/collection/components/eds-pagination/eds-pagination.css +4 -0
  163. package/dist/collection/components/eds-pagination/eds-pagination.js +130 -50
  164. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
  165. package/dist/collection/components/eds-rating/eds-rating.js +25 -3
  166. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
  167. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
  168. package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
  169. package/dist/collection/components/eds-switch/eds-switch.css +15 -5
  170. package/dist/collection/components/eds-switch/eds-switch.js +26 -4
  171. package/dist/collection/components/eds-table/eds-table.js +38 -37
  172. package/dist/collection/components/eds-table/eds-table.stories.js +1 -1
  173. package/dist/collection/components/eds-tag/eds-tag.js +1 -1
  174. package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
  175. package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
  176. package/dist/collection/components/eds-trl/eds-trl.js +1 -1
  177. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  178. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  179. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  180. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  181. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  182. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  183. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  184. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
  185. package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
  186. package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
  187. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  188. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  189. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  190. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  191. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  192. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  193. package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
  194. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  195. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
  196. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
  197. package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
  198. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  199. package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
  200. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
  201. package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +1 -1
  202. package/dist/collection/shared-ui/eds-footer/eds-footer.js +8 -2
  203. package/dist/collection/shared-ui/eds-form/eds-form.js +26 -4
  204. package/dist/collection/shared-ui/eds-form/eds-form.stories.js +1 -1
  205. package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
  206. package/dist/collection/shared-ui/eds-header/eds-header.js +1 -1
  207. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
  208. package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +26 -5
  209. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +89 -31
  210. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  211. package/dist/collection/shared-ui/eds-user/eds-user.js +1 -1
  212. package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
  213. package/dist/collection/utils/eds-form/formValidators.js +33 -0
  214. package/dist/components/clone.js +3 -0
  215. package/dist/components/components-section.js +1 -1
  216. package/dist/components/components.css +7 -9
  217. package/dist/components/components.esm.js +1 -1
  218. package/dist/components/correct-use-of-colors.js +1 -1
  219. package/dist/components/docs-palettes.js +1 -1
  220. package/dist/components/docs-tokens.js +1 -1
  221. package/dist/components/edit.js +1 -1
  222. package/dist/components/eds-accordion2.js +1 -1
  223. package/dist/components/eds-alert2.js +21 -5
  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 +21 -10
  229. package/dist/components/eds-card-desc2.js +1 -1
  230. package/dist/components/eds-card-project.js +1 -1
  231. package/dist/components/eds-card-tags.js +1 -1
  232. package/dist/components/eds-card-title2.js +1 -1
  233. package/dist/components/eds-card-tool.js +1 -1
  234. package/dist/components/eds-code-block2.js +1 -1
  235. package/dist/components/eds-cookies-preference.js +1 -1
  236. package/dist/components/eds-dropdown2.js +2 -2
  237. package/dist/components/eds-feedback.js +1 -1
  238. package/dist/components/eds-footer2.js +8 -2
  239. package/dist/components/eds-form.js +80 -22
  240. package/dist/components/eds-frame.js +1 -1
  241. package/dist/components/eds-gauge.js +1 -1
  242. package/dist/components/eds-header.js +1 -1
  243. package/dist/components/eds-icon-arrow-diagonal.js +1 -1
  244. package/dist/components/eds-icon-arrow-right.js +1 -1
  245. package/dist/components/eds-icon-bin.js +1 -1
  246. package/dist/components/eds-icon-bluesky.js +1 -1
  247. package/dist/components/eds-icon-bookmark.js +1 -1
  248. package/dist/components/eds-icon-chevron-down.js +1 -1
  249. package/dist/components/eds-icon-chevron-left.js +1 -1
  250. package/dist/components/eds-icon-chevron-right.js +1 -1
  251. package/dist/components/eds-icon-chevron-up.js +1 -1
  252. package/dist/components/eds-icon-clone.d.ts +11 -0
  253. package/dist/components/eds-icon-clone.js +33 -0
  254. package/dist/components/eds-icon-close.js +1 -1
  255. package/dist/components/eds-icon-copy.js +1 -1
  256. package/dist/components/eds-icon-draft.js +1 -1
  257. package/dist/components/eds-icon-edit.js +1 -1
  258. package/dist/components/eds-icon-eu.js +1 -1
  259. package/dist/components/eds-icon-external.js +1 -1
  260. package/dist/components/eds-icon-facebook.js +1 -1
  261. package/dist/components/eds-icon-gitlab.js +1 -1
  262. package/dist/components/eds-icon-linkedin.js +1 -1
  263. package/dist/components/eds-icon-loader.js +1 -1
  264. package/dist/components/eds-icon-mastodon.js +1 -1
  265. package/dist/components/eds-icon-menu.js +1 -1
  266. package/dist/components/eds-icon-minus.js +1 -1
  267. package/dist/components/eds-icon-more.js +1 -1
  268. package/dist/components/eds-icon-paper.js +1 -1
  269. package/dist/components/eds-icon-plus.js +1 -1
  270. package/dist/components/eds-icon-portal.js +1 -1
  271. package/dist/components/eds-icon-private.js +1 -1
  272. package/dist/components/eds-icon-public.js +1 -1
  273. package/dist/components/eds-icon-search.js +1 -1
  274. package/dist/components/eds-icon-star.js +1 -1
  275. package/dist/components/eds-icon-start.js +1 -1
  276. package/dist/components/eds-icon-success.js +1 -1
  277. package/dist/components/eds-icon-thumbs-down.js +1 -1
  278. package/dist/components/eds-icon-thumbs-up.js +1 -1
  279. package/dist/components/eds-icon-tutorial.js +1 -1
  280. package/dist/components/eds-icon-twitter.js +1 -1
  281. package/dist/components/eds-icon-unknown.js +1 -1
  282. package/dist/components/eds-icon-updown.js +1 -1
  283. package/dist/components/eds-icon-user.js +1 -1
  284. package/dist/components/eds-icon-view.d.ts +11 -0
  285. package/dist/components/eds-icon-view.js +33 -0
  286. package/dist/components/eds-icon-youtube.js +1 -1
  287. package/dist/components/eds-img2.js +2 -2
  288. package/dist/components/eds-input-field2.js +4 -3
  289. package/dist/components/eds-input-footer2.js +1 -1
  290. package/dist/components/eds-input-label2.js +1 -1
  291. package/dist/components/eds-input-range2.js +1 -1
  292. package/dist/components/eds-input-search2.js +1 -1
  293. package/dist/components/eds-input-select2.js +2 -2
  294. package/dist/components/eds-input2.js +2 -2
  295. package/dist/components/eds-link2.js +27 -7
  296. package/dist/components/eds-logo2.js +1 -1
  297. package/dist/components/eds-modal.js +2 -2
  298. package/dist/components/eds-nps.d.ts +11 -0
  299. package/dist/components/eds-nps.js +6 -0
  300. package/dist/components/eds-nps2.js +120 -0
  301. package/dist/components/eds-pagination2.js +119 -52
  302. package/dist/components/eds-progress-bar2.js +1 -1
  303. package/dist/components/eds-rating2.js +25 -3
  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-social-networks2.js +1 -1
  307. package/dist/components/eds-spinner2.js +1 -1
  308. package/dist/components/eds-switch.js +27 -5
  309. package/dist/components/eds-table2.js +45 -20
  310. package/dist/components/eds-tabs.js +90 -32
  311. package/dist/components/eds-tag2.js +1 -1
  312. package/dist/components/eds-timeline.js +1 -1
  313. package/dist/components/eds-toast-manager.js +1 -1
  314. package/dist/components/eds-tooltip.js +1 -1
  315. package/dist/components/eds-trl.js +8 -2
  316. package/dist/components/eds-user.js +3 -9
  317. package/dist/components/incorrect-use-of-colors.js +9 -3
  318. package/dist/components/logo-space.js +8 -2
  319. package/dist/components/logo-variations-horizontal2.js +1 -1
  320. package/dist/components/logo-variations-tabs.js +1 -1
  321. package/dist/components/logo-variations-vertical2.js +1 -1
  322. package/dist/components/logo-wrong-usage.js +1 -1
  323. package/dist/components/p-05654483.entry.js +1 -0
  324. package/dist/components/{p-9e53eca3.entry.js → p-09079c5c.entry.js} +1 -1
  325. package/dist/components/p-10997947.entry.js +1 -0
  326. package/dist/components/p-19e69c03.entry.js +1 -0
  327. package/dist/components/p-1ab1ea29.entry.js +1 -0
  328. package/dist/components/p-1bcf743d.entry.js +1 -0
  329. package/dist/components/{p-9d18d7b1.entry.js → p-1d18106d.entry.js} +1 -1
  330. package/dist/components/{p-adbd0d7b.entry.js → p-265150a1.entry.js} +1 -1
  331. package/dist/components/p-27c4a06e.js +1 -0
  332. package/dist/components/{p-e35e156d.entry.js → p-2e0c3fc4.entry.js} +1 -1
  333. package/dist/components/{p-6d3b5818.entry.js → p-2ef4dd11.entry.js} +1 -1
  334. package/dist/components/p-3360e1e2.entry.js +1 -0
  335. package/dist/components/{p-93e6ba0f.entry.js → p-38bc21e9.entry.js} +1 -1
  336. package/dist/components/p-3b29e0fd.entry.js +1 -0
  337. package/dist/components/p-42457a0f.entry.js +1 -0
  338. package/dist/components/p-4a6a72db.entry.js +1 -0
  339. package/dist/components/p-4b33909d.entry.js +1 -0
  340. package/dist/components/p-4bf4bc93.entry.js +1 -0
  341. package/dist/components/{p-773a119a.entry.js → p-4c84fcf4.entry.js} +1 -1
  342. package/dist/components/p-4eb2cf7f.js +1 -0
  343. package/dist/components/p-5367bb59.entry.js +1 -0
  344. package/dist/components/p-547a53d6.entry.js +1 -0
  345. package/dist/components/p-560fc3a4.entry.js +1 -0
  346. package/dist/components/p-5a58f1c1.entry.js +1 -0
  347. package/dist/components/p-5b55f951.entry.js +1 -0
  348. package/dist/components/p-5ba49cf2.entry.js +1 -0
  349. package/dist/components/p-5dd85979.entry.js +1 -0
  350. package/dist/components/{p-356846cd.entry.js → p-5f348b0e.entry.js} +1 -1
  351. package/dist/components/p-634b6ca2.entry.js +1 -0
  352. package/dist/components/{p-b073d78f.entry.js → p-64b7a6fc.entry.js} +1 -1
  353. package/dist/components/{p-02d94d2d.entry.js → p-6614881d.entry.js} +1 -1
  354. package/dist/components/{p-2839899a.entry.js → p-67ec46b4.entry.js} +1 -1
  355. package/dist/components/p-6b988c76.entry.js +1 -0
  356. package/dist/components/p-6cd6ff0c.entry.js +1 -0
  357. package/dist/components/{p-f6ca2aa6.entry.js → p-706a106c.entry.js} +1 -1
  358. package/dist/components/p-71ee4af2.entry.js +1 -0
  359. package/dist/components/{p-794f11e7.entry.js → p-743f9f8f.entry.js} +1 -1
  360. package/dist/components/p-789f54cb.entry.js +1 -0
  361. package/dist/components/{p-8c0b0121.entry.js → p-79afd8aa.entry.js} +1 -1
  362. package/dist/components/{p-b3a40663.entry.js → p-7a3f2576.entry.js} +1 -1
  363. package/dist/components/p-7a5623b5.entry.js +1 -0
  364. package/dist/components/p-7ca6db64.entry.js +1 -0
  365. package/dist/components/p-7fa46b01.entry.js +1 -0
  366. package/dist/components/{p-3e183368.entry.js → p-8627afc0.entry.js} +1 -1
  367. package/dist/components/p-86eff0cb.entry.js +1 -0
  368. package/dist/components/p-89048f87.entry.js +1 -0
  369. package/dist/components/p-8cf98230.entry.js +1 -0
  370. package/dist/components/{p-8dee879d.entry.js → p-8d363a3c.entry.js} +1 -1
  371. package/dist/components/p-9261d27c.entry.js +1 -0
  372. package/dist/components/p-97323c46.entry.js +1 -0
  373. package/dist/components/p-9b90296c.entry.js +1 -0
  374. package/dist/components/{p-1f5c19b9.entry.js → p-9c1c5e8d.entry.js} +1 -1
  375. package/dist/components/p-9cb14b1f.entry.js +1 -0
  376. package/dist/components/p-9f0a34b4.entry.js +1 -0
  377. package/dist/components/p-a8ca8346.entry.js +1 -0
  378. package/dist/components/{p-43468b0f.entry.js → p-ab3b0a53.entry.js} +1 -1
  379. package/dist/components/p-b0d38b78.entry.js +1 -0
  380. package/dist/components/{p-66f4cdd9.entry.js → p-b31babda.entry.js} +1 -1
  381. package/dist/components/p-b6ee4250.entry.js +1 -0
  382. package/dist/components/{p-0687532c.entry.js → p-b88a2267.entry.js} +1 -1
  383. package/dist/components/{p-024789cc.entry.js → p-b9a1aba3.entry.js} +1 -1
  384. package/dist/components/p-b9fdcb1b.entry.js +1 -0
  385. package/dist/components/{p-73c74835.entry.js → p-ba9f41de.entry.js} +1 -1
  386. package/dist/components/p-beacaa4f.entry.js +1 -0
  387. package/dist/components/p-bfa23535.entry.js +1 -0
  388. package/dist/components/p-c4ac0528.entry.js +1 -0
  389. package/dist/components/p-cb114bf4.entry.js +1 -0
  390. package/dist/components/p-cd05a97b.entry.js +1 -0
  391. package/dist/components/{p-3a331c68.entry.js → p-cd787744.entry.js} +1 -1
  392. package/dist/components/p-cdc1c8e8.entry.js +1 -0
  393. package/dist/components/{p-4e473b4e.entry.js → p-d1927da7.entry.js} +1 -1
  394. package/dist/components/{p-564431ad.entry.js → p-d1d1943b.entry.js} +1 -1
  395. package/dist/components/{p-543f2347.entry.js → p-d2e485a1.entry.js} +1 -1
  396. package/dist/components/{p-e2e7250a.entry.js → p-d95d7353.entry.js} +1 -1
  397. package/dist/components/{p-76905315.entry.js → p-e0ada7e0.entry.js} +1 -1
  398. package/dist/components/{p-70e8e66f.entry.js → p-e210ddbb.entry.js} +1 -1
  399. package/dist/components/p-e5892379.entry.js +1 -0
  400. package/dist/components/p-e8374410.entry.js +1 -0
  401. package/dist/components/p-e90da4ba.entry.js +1 -0
  402. package/dist/components/p-ec706eed.entry.js +1 -0
  403. package/dist/components/{p-28ae3f3a.js → p-efbc374c.js} +2 -2
  404. package/dist/components/p-f2abe4d8.js +1 -0
  405. package/dist/components/p-f32963ff.entry.js +9 -0
  406. package/dist/components/p-f40dd50d.entry.js +1 -0
  407. package/dist/components/p-f6012c17.entry.js +1 -0
  408. package/dist/components/p-fcba31fa.entry.js +1 -0
  409. package/dist/components/primary.js +1 -1
  410. package/dist/components/primary2.js +1 -1
  411. package/dist/components/secondary.js +1 -1
  412. package/dist/components/secondary2.js +7 -7
  413. package/dist/components/support.js +1 -1
  414. package/dist/components/support2.js +3 -3
  415. package/dist/components/svg-repository.js +13 -3
  416. package/dist/components/token-list2.js +1 -1
  417. package/dist/components/token-radii2.js +1 -1
  418. package/dist/components/token-ratios.js +1 -1
  419. package/dist/components/token-shadows2.js +1 -1
  420. package/dist/components/token-spacing.js +1 -1
  421. package/dist/components/token-typography.js +1 -1
  422. package/dist/components/view.js +3 -0
  423. package/dist/esm/clone-dab56639.js +3 -0
  424. package/dist/esm/color-primary-palette_6.entry.js +15 -15
  425. package/dist/esm/components-section.entry.js +2 -2
  426. package/dist/esm/components.js +3 -3
  427. package/dist/esm/correct-use-of-colors.entry.js +2 -2
  428. package/dist/esm/docs-palettes.entry.js +2 -2
  429. package/dist/esm/docs-tokens.entry.js +2 -2
  430. package/dist/esm/edit-3893a517.js +3 -0
  431. package/dist/esm/{eds-avatar_26.entry.js → eds-accordion_33.entry.js} +3462 -159
  432. package/dist/esm/eds-app-root.entry.js +2 -2
  433. package/dist/esm/eds-card-desc_2.entry.js +3 -3
  434. package/dist/esm/eds-card-generic.entry.js +1 -1
  435. package/dist/esm/eds-card-project.entry.js +2 -2
  436. package/dist/esm/eds-card-section.entry.js +1 -1
  437. package/dist/esm/eds-card-tags.entry.js +2 -2
  438. package/dist/esm/eds-card-tool.entry.js +2 -2
  439. package/dist/esm/eds-cookies-preference.entry.js +2 -2
  440. package/dist/esm/eds-feedback.entry.js +2 -2
  441. package/dist/esm/eds-footer.entry.js +9 -3
  442. package/dist/esm/eds-frame.entry.js +2 -2
  443. package/dist/esm/eds-fullscreen-menu.entry.js +1 -1
  444. package/dist/esm/eds-gauge.entry.js +2 -2
  445. package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
  446. package/dist/esm/eds-icon-arrow-right.entry.js +2 -2
  447. package/dist/esm/eds-icon-bin.entry.js +2 -2
  448. package/dist/esm/eds-icon-bluesky.entry.js +2 -2
  449. package/dist/esm/eds-icon-bookmark.entry.js +2 -2
  450. package/dist/esm/eds-icon-chevron-down.entry.js +2 -2
  451. package/dist/esm/eds-icon-chevron-left.entry.js +2 -2
  452. package/dist/esm/eds-icon-chevron-right.entry.js +2 -2
  453. package/dist/esm/eds-icon-chevron-up.entry.js +2 -2
  454. package/dist/esm/eds-icon-clone.entry.js +14 -0
  455. package/dist/esm/eds-icon-close.entry.js +2 -2
  456. package/dist/esm/eds-icon-copy.entry.js +2 -2
  457. package/dist/esm/eds-icon-draft.entry.js +2 -2
  458. package/dist/esm/eds-icon-edit.entry.js +3 -3
  459. package/dist/esm/eds-icon-eu.entry.js +2 -2
  460. package/dist/esm/eds-icon-external.entry.js +2 -2
  461. package/dist/esm/eds-icon-facebook.entry.js +2 -2
  462. package/dist/esm/eds-icon-gitlab.entry.js +2 -2
  463. package/dist/esm/eds-icon-linkedin.entry.js +2 -2
  464. package/dist/esm/eds-icon-loader.entry.js +2 -2
  465. package/dist/esm/eds-icon-mastodon.entry.js +2 -2
  466. package/dist/esm/eds-icon-menu.entry.js +2 -2
  467. package/dist/esm/eds-icon-minus.entry.js +2 -2
  468. package/dist/esm/eds-icon-more.entry.js +2 -2
  469. package/dist/esm/eds-icon-paper.entry.js +2 -2
  470. package/dist/esm/eds-icon-plus.entry.js +2 -2
  471. package/dist/esm/eds-icon-portal.entry.js +2 -2
  472. package/dist/esm/eds-icon-private.entry.js +2 -2
  473. package/dist/esm/eds-icon-public.entry.js +2 -2
  474. package/dist/esm/eds-icon-search.entry.js +2 -2
  475. package/dist/esm/eds-icon-star.entry.js +2 -2
  476. package/dist/esm/eds-icon-start.entry.js +2 -2
  477. package/dist/esm/eds-icon-success.entry.js +2 -2
  478. package/dist/esm/eds-icon-thumbs-down.entry.js +2 -2
  479. package/dist/esm/eds-icon-thumbs-up.entry.js +2 -2
  480. package/dist/esm/eds-icon-tutorial.entry.js +2 -2
  481. package/dist/esm/eds-icon-twitter.entry.js +2 -2
  482. package/dist/esm/eds-icon-unknown.entry.js +2 -2
  483. package/dist/esm/eds-icon-updown.entry.js +2 -2
  484. package/dist/esm/eds-icon-user.entry.js +2 -2
  485. package/dist/esm/eds-icon-view.entry.js +14 -0
  486. package/dist/esm/eds-icon-youtube.entry.js +2 -2
  487. package/dist/esm/eds-modal.entry.js +3 -3
  488. package/dist/esm/eds-pie.entry.js +1 -1
  489. package/dist/esm/eds-progress-bar.entry.js +2 -2
  490. package/dist/esm/eds-section-core_2.entry.js +4 -4
  491. package/dist/esm/eds-social-networks.entry.js +2 -2
  492. package/dist/esm/eds-spinner.entry.js +2 -2
  493. package/dist/esm/eds-splash-screen.entry.js +1 -1
  494. package/dist/esm/eds-timeline.entry.js +2 -2
  495. package/dist/esm/eds-toast-manager.entry.js +2 -2
  496. package/dist/esm/eds-tooltip.entry.js +2 -2
  497. package/dist/esm/eds-trl.entry.js +2 -2
  498. package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
  499. package/dist/esm/{index-fdb33359.js → index-e84b871c.js} +15 -28
  500. package/dist/esm/loader.js +3 -3
  501. package/dist/esm/logo-space.entry.js +2 -2
  502. package/dist/esm/logo-variations-horizontal_2.entry.js +3 -3
  503. package/dist/esm/logo-variations-tabs.entry.js +2 -2
  504. package/dist/esm/logo-wrong-usage.entry.js +2 -2
  505. package/dist/esm/svg-repository.entry.js +8 -4
  506. package/dist/esm/token-list_3.entry.js +4 -4
  507. package/dist/esm/token-ratios.entry.js +2 -2
  508. package/dist/esm/token-spacing.entry.js +2 -2
  509. package/dist/esm/token-typography.entry.js +2 -2
  510. package/dist/esm/view-e900f2d4.js +3 -0
  511. package/dist/hydrate/index.js +690 -257
  512. package/dist/hydrate/index.mjs +690 -257
  513. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +3 -1
  514. package/dist/types/components/eds-alert/eds-alert.d.ts +6 -0
  515. package/dist/types/components/eds-button/eds-button.d.ts +1 -0
  516. package/dist/types/components/eds-icons/eds-icon-clone/eds-icon-clone.d.ts +10 -0
  517. package/dist/types/components/eds-icons/eds-icon-view/eds-icon-view.d.ts +10 -0
  518. package/dist/types/components/eds-link/eds-link.d.ts +1 -0
  519. package/dist/types/components/eds-nps/eds-npm.stories.d.ts +28 -0
  520. package/dist/types/components/eds-nps/eds-nps.d.ts +20 -0
  521. package/dist/types/components/eds-pagination/eds-pagination.d.ts +23 -2
  522. package/dist/types/components/eds-rating/eds-rating.d.ts +3 -1
  523. package/dist/types/components/eds-switch/eds-switch.d.ts +1 -0
  524. package/dist/types/components/eds-table/eds-table.d.ts +3 -4
  525. package/dist/types/components/eds-table/eds-table.stories.d.ts +7 -2
  526. package/dist/types/components.d.ts +133 -12
  527. package/dist/types/shared-ui/eds-form/eds-form.d.ts +1 -0
  528. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +7 -9
  529. package/dist/types/utils/eds-form/formValidators.d.ts +1 -0
  530. package/package.json +1 -1
  531. package/dist/cjs/edit-5714c144.js +0 -5
  532. package/dist/cjs/eds-accordion.cjs.entry.js +0 -87
  533. package/dist/cjs/eds-alert.cjs.entry.js +0 -104
  534. package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -145
  535. package/dist/cjs/eds-code-block.cjs.entry.js +0 -2489
  536. package/dist/cjs/eds-matomo-notice.cjs.entry.js +0 -125
  537. package/dist/cjs/eds-switch.cjs.entry.js +0 -46
  538. package/dist/components/p-023bc47c.entry.js +0 -1
  539. package/dist/components/p-02df910c.entry.js +0 -1
  540. package/dist/components/p-0be79e08.entry.js +0 -1
  541. package/dist/components/p-0e74d8b4.entry.js +0 -1
  542. package/dist/components/p-11efb1d1.entry.js +0 -1
  543. package/dist/components/p-1791ce82.entry.js +0 -1
  544. package/dist/components/p-19d586e6.entry.js +0 -1
  545. package/dist/components/p-2679926c.entry.js +0 -1
  546. package/dist/components/p-2d1a7471.entry.js +0 -1
  547. package/dist/components/p-2ff16a39.entry.js +0 -1
  548. package/dist/components/p-32e18e48.entry.js +0 -1
  549. package/dist/components/p-38e99d4b.entry.js +0 -1
  550. package/dist/components/p-4088ae0e.entry.js +0 -1
  551. package/dist/components/p-4277fb1a.entry.js +0 -1
  552. package/dist/components/p-42a73db4.entry.js +0 -1
  553. package/dist/components/p-44055e68.entry.js +0 -1
  554. package/dist/components/p-4a5d0dcd.entry.js +0 -1
  555. package/dist/components/p-4a7412ec.entry.js +0 -1
  556. package/dist/components/p-4b88d84c.entry.js +0 -1
  557. package/dist/components/p-50f43dfd.entry.js +0 -1
  558. package/dist/components/p-562afa88.entry.js +0 -1
  559. package/dist/components/p-5aa4065a.entry.js +0 -1
  560. package/dist/components/p-5ae1c931.entry.js +0 -1
  561. package/dist/components/p-634258e6.entry.js +0 -1
  562. package/dist/components/p-68f45098.entry.js +0 -1
  563. package/dist/components/p-73a44c48.entry.js +0 -1
  564. package/dist/components/p-7dbe791f.entry.js +0 -1
  565. package/dist/components/p-7ec52188.entry.js +0 -1
  566. package/dist/components/p-7fc84bb2.js +0 -1
  567. package/dist/components/p-82559816.entry.js +0 -1
  568. package/dist/components/p-85683b18.entry.js +0 -1
  569. package/dist/components/p-8681e5d8.entry.js +0 -1
  570. package/dist/components/p-877d13d9.entry.js +0 -1
  571. package/dist/components/p-911b1c0b.entry.js +0 -1
  572. package/dist/components/p-960aa103.entry.js +0 -1
  573. package/dist/components/p-996005b7.entry.js +0 -1
  574. package/dist/components/p-aa5e75b4.entry.js +0 -1
  575. package/dist/components/p-ae9393b6.entry.js +0 -1
  576. package/dist/components/p-af137162.entry.js +0 -1
  577. package/dist/components/p-b630e51a.entry.js +0 -1
  578. package/dist/components/p-bb9af709.entry.js +0 -1
  579. package/dist/components/p-c2dc3692.entry.js +0 -1
  580. package/dist/components/p-c91b4eec.entry.js +0 -1
  581. package/dist/components/p-caff3355.entry.js +0 -1
  582. package/dist/components/p-ce66ea37.entry.js +0 -1
  583. package/dist/components/p-d4f239d7.entry.js +0 -1
  584. package/dist/components/p-d7251d4d.entry.js +0 -1
  585. package/dist/components/p-deb9bbed.entry.js +0 -1
  586. package/dist/components/p-ed4d9bf5.entry.js +0 -1
  587. package/dist/components/p-ed7696a2.entry.js +0 -1
  588. package/dist/components/p-f2416727.entry.js +0 -1
  589. package/dist/components/p-f28b5da7.entry.js +0 -1
  590. package/dist/components/p-f3839914.entry.js +0 -1
  591. package/dist/components/p-f42b6251.entry.js +0 -1
  592. package/dist/components/p-f7a31196.entry.js +0 -1
  593. package/dist/components/p-f973c83b.entry.js +0 -1
  594. package/dist/components/p-fe167c78.entry.js +0 -9
  595. package/dist/esm/edit-1dc8d11b.js +0 -3
  596. package/dist/esm/eds-accordion.entry.js +0 -83
  597. package/dist/esm/eds-alert.entry.js +0 -100
  598. package/dist/esm/eds-breadcrumb.entry.js +0 -141
  599. package/dist/esm/eds-code-block.entry.js +0 -2485
  600. package/dist/esm/eds-matomo-notice.entry.js +0 -121
  601. package/dist/esm/eds-switch.entry.js +0 -42
  602. /package/dist/collection/shared-ui/eds-toast-manager/{eds-toast-manager.stories.js → eds-toast-manager.st.js} +0 -0
  603. /package/dist/types/shared-ui/eds-toast-manager/{eds-toast-manager.stories.d.ts → eds-toast-manager.st.d.ts} +0 -0
@@ -0,0 +1,120 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$3 } from './eds-button2.js';
3
+ import { d as defineCustomElement$2 } from './eds-icon-wrapper2.js';
4
+ import { d as defineCustomElement$1 } from './eds-input-label2.js';
5
+
6
+ const edsNpsCss = ".flex{display:flex}.justify-between{justify-content:space-between}.mt-4{margin-top:0.25rem}.mt-8{margin-top:0.5rem}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.grid{display:grid}.grid-col-span-1{--container-grid-columns:1;grid-column:span 1 / span 1}.grid-cols-11{grid-template-columns:repeat(11, minmax(0, 1fr))}.grid-cols-11[class*=\"grid-line-x\"][class*=\"grid-line-x\"]>*:nth-child(n)::before{border-bottom-width:1px}.grid-cols-11[class*=\"grid-line-xfull\"]>*:nth-child(n)::before{inset-inline-start:calc(var(--inner-gutter) / -2);inset-inline-end:calc(var(--inner-gutter) / -2)}.grid-cols-11[class*=\"grid-line-x\"]>*:nth-child(11n+1)::before{inset-inline-start:0}.grid-cols-11[class*=\"grid-line-x\"]>*:nth-child(11n+11)::before{inset-inline-end:0}.grid-cols-11[class*=\"grid-line-x\"]>*:nth-child(11n+1):nth-last-child(-n+11)::before{border-bottom-width:0}.grid-cols-11[class*=\"grid-line-x\"]>*:nth-child(11n+1):nth-last-child(-n+11)~*::before{border-bottom-width:0}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(n)::after{border-inline-end-width:1px}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(11n+11)::after{border-inline-end-width:0}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(-n+11)::after{top:0}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(11n+1):nth-last-child(-n+11)::after{bottom:0}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(11n+1):nth-last-child(-n+11)~li::after{bottom:0}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.text-light{color:var(--grey-700)}";
7
+ const EdsNpsStyle0 = edsNpsCss;
8
+
9
+ const EdsNps = /*@__PURE__*/ proxyCustomElement(class EdsNps extends HTMLElement {
10
+ constructor() {
11
+ super();
12
+ this.__registerHost();
13
+ this.__attachShadow();
14
+ this.nps = createEvent(this, "nps", 7);
15
+ this.min = 0;
16
+ this.max = 10;
17
+ this.question = undefined;
18
+ this.leftLabel = undefined;
19
+ this.rightLabel = undefined;
20
+ this.selectedValue = null;
21
+ }
22
+ handleClick(value) {
23
+ this.selectedValue = value;
24
+ this.nps.emit(value);
25
+ }
26
+ handleKeyNav(e) {
27
+ const radios = Array.from(this.el.shadowRoot.querySelectorAll('eds-button'));
28
+ const currentIndex = radios.findIndex((r) => r.tabIndex === 0);
29
+ switch (e.key) {
30
+ case 'ArrowRight':
31
+ case 'ArrowLeft': {
32
+ e.preventDefault();
33
+ const delta = e.key === 'ArrowRight' ? 1 : -1;
34
+ const nextIndex = Math.min(this.max, Math.max(0, currentIndex + delta));
35
+ this.activateRadio(radios, nextIndex);
36
+ break;
37
+ }
38
+ case 'Home': {
39
+ e.preventDefault();
40
+ this.activateRadio(radios, 0);
41
+ break;
42
+ }
43
+ case 'End': {
44
+ e.preventDefault();
45
+ this.activateRadio(radios, this.max);
46
+ break;
47
+ }
48
+ case 'Enter':
49
+ case ' ': {
50
+ e.preventDefault();
51
+ if (currentIndex >= 0) {
52
+ this.handleClick(this.min + currentIndex);
53
+ }
54
+ break;
55
+ }
56
+ case 'Escape': {
57
+ e.preventDefault();
58
+ if (currentIndex >= 0) {
59
+ radios[currentIndex].blur();
60
+ }
61
+ break;
62
+ }
63
+ default:
64
+ return;
65
+ }
66
+ }
67
+ activateRadio(radios, index) {
68
+ const target = radios[index];
69
+ const value = this.min + index;
70
+ this.handleClick(value);
71
+ target.focus();
72
+ }
73
+ render() {
74
+ const count = this.max - this.min + 1;
75
+ const fallback = 0;
76
+ return (h("div", { key: 'd675e1e4ecc306511c0324d0b76ee66237cb6738', class: "eds-nps" }, h("eds-input-label", { key: '2eede06f6ee166c36b0cf315a35435c89c3c0ba5', id: "nps-question", name: "nps-question", label: this.question }), h("div", { key: '16105649fe6b3b229127c9a741367a6381db774f', role: "group", id: "nps-buttons", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: count }, (_, i) => {
77
+ const val = this.min + i;
78
+ const isSelected = val === this.selectedValue;
79
+ const tabIndex = this.selectedValue === null ? (i === fallback ? 0 : -1) : isSelected ? 0 : -1;
80
+ 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) })));
81
+ })), h("div", { key: 'e7bd70a4f1a8083d9c3e08fdf8de55999a27d92d', class: "flex justify-between mt-8" }, h("span", { key: 'ea3fbbac20a162e7cf5f2d5e3321c8bc9297014e', class: "f-ui-04 text-light ml-4" }, this.leftLabel), h("span", { key: '3ff59cde0c532587ead8b8a1eaaff6c630e7e7ac', class: "f-ui-04 text-light mr-4" }, this.rightLabel))));
82
+ }
83
+ get el() { return this; }
84
+ static get style() { return EdsNpsStyle0; }
85
+ }, [1, "eds-nps", {
86
+ "question": [1],
87
+ "leftLabel": [1, "left-label"],
88
+ "rightLabel": [1, "right-label"],
89
+ "selectedValue": [32]
90
+ }]);
91
+ function defineCustomElement() {
92
+ if (typeof customElements === "undefined") {
93
+ return;
94
+ }
95
+ const components = ["eds-nps", "eds-button", "eds-icon-wrapper", "eds-input-label"];
96
+ components.forEach(tagName => { switch (tagName) {
97
+ case "eds-nps":
98
+ if (!customElements.get(tagName)) {
99
+ customElements.define(tagName, EdsNps);
100
+ }
101
+ break;
102
+ case "eds-button":
103
+ if (!customElements.get(tagName)) {
104
+ defineCustomElement$3();
105
+ }
106
+ break;
107
+ case "eds-icon-wrapper":
108
+ if (!customElements.get(tagName)) {
109
+ defineCustomElement$2();
110
+ }
111
+ break;
112
+ case "eds-input-label":
113
+ if (!customElements.get(tagName)) {
114
+ defineCustomElement$1();
115
+ }
116
+ break;
117
+ } });
118
+ }
119
+
120
+ export { EdsNps as E, defineCustomElement as d };
@@ -1,8 +1,9 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$3 } from './eds-button2.js';
2
3
  import { d as defineCustomElement$2 } from './eds-icon-wrapper2.js';
3
4
  import { d as defineCustomElement$1 } from './eds-link2.js';
4
5
 
5
- const edsPaginationCss = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}";
6
+ const edsPaginationCss = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-light{color:var(--grey-700)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}";
6
7
  const EdsPaginationStyle0 = edsPaginationCss;
7
8
 
8
9
  const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination extends HTMLElement {
@@ -10,17 +11,65 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
10
11
  super();
11
12
  this.__registerHost();
12
13
  this.__attachShadow();
14
+ /**
15
+ * Handles keyboard navigation within the pagination
16
+ */
17
+ this.handleKeyDown = (e) => {
18
+ if (this.mode !== 'default' || !this.useButtons) {
19
+ return;
20
+ }
21
+ const navigableItems = this.getNavigableItems();
22
+ if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') {
23
+ e.preventDefault();
24
+ const increment = e.key === 'ArrowRight' ? 1 : -1;
25
+ let currentIndex = this.focusedIndex;
26
+ // If no item is focused, start from current page or first item
27
+ if (currentIndex === -1) {
28
+ const currentPageIndex = navigableItems.findIndex((item) => item.type === 'page' && item.page === this.currentPage);
29
+ currentIndex = currentPageIndex !== -1 ? currentPageIndex : 0;
30
+ }
31
+ let newIndex = currentIndex + increment;
32
+ // Wrap around navigation
33
+ if (newIndex >= navigableItems.length) {
34
+ newIndex = 0;
35
+ }
36
+ else if (newIndex < 0) {
37
+ newIndex = navigableItems.length - 1;
38
+ }
39
+ this.focusedIndex = newIndex;
40
+ this.focusPaginationItem(newIndex);
41
+ }
42
+ else if (e.key === 'Home') {
43
+ e.preventDefault();
44
+ this.focusedIndex = 0;
45
+ this.focusPaginationItem(0);
46
+ }
47
+ else if (e.key === 'End') {
48
+ e.preventDefault();
49
+ const lastIndex = navigableItems.length - 1;
50
+ this.focusedIndex = lastIndex;
51
+ this.focusPaginationItem(lastIndex);
52
+ }
53
+ };
54
+ /**
55
+ * Handles focus events for pagination items
56
+ */
57
+ this.handleItemFocus = (index) => {
58
+ this.focusedIndex = index;
59
+ };
13
60
  this.currentPage = undefined;
14
61
  this.lastPage = undefined;
15
62
  this.perPage = 10;
16
63
  this.total = 0;
17
64
  this.url = '';
18
65
  this.mode = 'default';
66
+ this.useButtons = true;
19
67
  this.prevLabel = 'Prev';
20
68
  this.nextLabel = 'Next';
21
69
  this.prevUrl = '';
22
70
  this.nextUrl = '';
23
71
  this.links = [];
72
+ this.focusedIndex = -1;
24
73
  }
25
74
  /** Lifecycle hook to generate pagination links on component load */
26
75
  componentWillLoad() {
@@ -29,24 +78,17 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
29
78
  }
30
79
  }
31
80
  componentDidLoad() {
32
- // Emit context for each eds-link element after the component is fully loaded
33
- const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
34
- links.forEach((lnk) => {
35
- this.emitContext(lnk);
36
- });
37
- /*if (links.length > 0) {
38
- // Emit context for the first link
39
- this.emitContext(links[0]);
40
-
41
- // Emit context for the last link, if it's different from the first
42
- if (links.length > 1) {
43
- this.emitContext(links[links.length - 1]);
44
- }
45
- }*/
81
+ // Only emit context for links, not buttons
82
+ if (!this.useButtons) {
83
+ const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
84
+ links.forEach((lnk) => {
85
+ this.emitContext(lnk);
86
+ });
87
+ }
46
88
  }
47
89
  /**
48
90
  * Emits a custom event called `parentContext` for a given link element.
49
- * This event provides context information about the breadcrumb component.
91
+ * This event provides context information about the pagination component.
50
92
  *
51
93
  * @param linkElement - The link element to which the event will be dispatched.
52
94
  */
@@ -64,6 +106,34 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
64
106
  this.generateLinks();
65
107
  }
66
108
  }
109
+ /**
110
+ * Gets all navigable pagination items for keyboard navigation
111
+ */
112
+ getNavigableItems() {
113
+ const items = [];
114
+ // Previous button
115
+ items.push({ type: 'prev', disabled: this.isFirstPage() });
116
+ // Page numbers
117
+ this.links.forEach((link) => {
118
+ if (typeof link === 'object') {
119
+ items.push({ type: 'page', page: parseInt(link.label), disabled: false });
120
+ }
121
+ });
122
+ // Next button
123
+ items.push({ type: 'next', disabled: this.isLastPage() });
124
+ return items.filter((item) => !item.disabled);
125
+ }
126
+ /**
127
+ * Focuses a specific pagination item by index
128
+ */
129
+ focusPaginationItem(index) {
130
+ var _a;
131
+ const buttons = (_a = this.hostEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.pagination-button');
132
+ const targetButton = buttons === null || buttons === void 0 ? void 0 : buttons[index];
133
+ if (targetButton) {
134
+ targetButton.focus();
135
+ }
136
+ }
67
137
  /**
68
138
  * Checks if the current page is the first page
69
139
  * @returns {boolean} - true if current page is the first page
@@ -86,7 +156,7 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
86
156
  generateLink(page) {
87
157
  const urlHasQuery = this.url.includes('?');
88
158
  return {
89
- ariaLabel: `Page ${page}`,
159
+ ariaLabel: `Go to page ${page}`,
90
160
  url: `${this.url}${urlHasQuery ? '&' : '?'}page=${page}`,
91
161
  label: page.toString(),
92
162
  current: this.currentPage === page,
@@ -106,7 +176,6 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
106
176
  * Creates a pagination range based on delta, current, and total pages
107
177
  * @param {number} current - Current page number
108
178
  * @param {number} total - Total number of pages
109
- * @param {number} delta - Range of pages to display around the current page
110
179
  * @returns {(number | string)[]} - Range of page numbers or ellipses
111
180
  */
112
181
  getPaginationGenerator(current, total) {
@@ -121,7 +190,7 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
121
190
  else {
122
191
  // Always show the first page
123
192
  range.push(1);
124
- // Add ellipsis if theres a gap between the first page and the current range start
193
+ // Add ellipsis if there's a gap between the first page and the current range start
125
194
  if (current - delta > 2) {
126
195
  range.push('...');
127
196
  }
@@ -129,7 +198,7 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
129
198
  for (let i = Math.max(2, current - delta); i <= Math.min(total - 1, current + delta); i++) {
130
199
  range.push(i);
131
200
  }
132
- // Add ellipsis if theres a gap between the current range end and the last page
201
+ // Add ellipsis if there's a gap between the current range end and the last page
133
202
  if (current + delta < total - 1) {
134
203
  range.push('...');
135
204
  }
@@ -144,9 +213,11 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
144
213
  */
145
214
  pageResults() {
146
215
  if (this.total > 0) {
216
+ const start = this.perPage * ((this.currentPage || 1) - 1) + 1;
217
+ const end = Math.min(this.perPage * (this.currentPage || 1), this.total);
147
218
  return this.total > this.perPage
148
- ? `${this.perPage * ((this.currentPage || 1) - 1) + 1} - ${this.perPage * (this.currentPage || 1) >= this.total ? this.total : this.perPage * (this.currentPage || 1)} of ${this.total}`
149
- : `${this.total}`;
219
+ ? `Showing ${start} to ${end} of ${this.total} results`
220
+ : `Showing ${this.total} result${this.total !== 1 ? 's' : ''}`;
150
221
  }
151
222
  return '';
152
223
  }
@@ -159,7 +230,9 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
159
230
  if (this.mode === 'navigator') {
160
231
  return; // No page clicking logic for navigator mode
161
232
  }
162
- event.preventDefault(); // Prevent default link navigation
233
+ if (this.useButtons) {
234
+ event.preventDefault(); // Prevent default for buttons
235
+ }
163
236
  if (newPage !== this.currentPage) {
164
237
  this.links = this.links.map((link) => typeof link === 'object' ? Object.assign(Object.assign({}, link), { current: parseInt(link.label) === newPage }) : link);
165
238
  const pageChangeEvent = new CustomEvent('page', {
@@ -172,38 +245,25 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
172
245
  }
173
246
  }
174
247
  render() {
175
- return (h("div", { key: '978896bd8c550afdc30281e1a8d9858022857551' }, this.total > 0 && this.mode === 'default' && (h("p", { key: '10781adbf2c4754580c31eecc180fc426b5e09a1', class: "f-ui-03 text-lightest mb-28 w-full text-center" }, h("span", { key: '29765740419772ac83736495c859d2d75097904c', class: "sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (h("nav", { "aria-label": "Pagination" }, h("ul", { class: "flex items-center justify-center gap-x-8" }, h("li", { class: "mr-auto" }, h("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
176
- ? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
248
+ const navigableIndex = -1; // Track index for keyboard navigation
249
+ return (h("div", { key: '753a7e573a09e7fcb66eac9e11e00f690c49543d' }, this.total > 0 && this.mode === 'default' && (h("p", { key: '6286d71622614a835d471812a55d5c6bef37a13e', class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, h("span", { key: 'daa7bfa31e736a40c46641fed88653d51eeabc67', 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) => {
250
+ if (this.mode === 'default' && !this.isFirstPage()) {
251
+ this.handlePageClick(event, (this.currentPage || 1) - 1);
252
+ }
253
+ } }))) : (h("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
254
+ ? this.prevUrl || '#'
177
255
  : this.isFirstPage()
178
256
  ? '#'
179
- : this.generateLink(this.currentPage - 1).url, disabled: this.mode === 'navigator'
180
- ? !this.prevUrl // Disable if prevUrl is not provided
181
- : this.isFirstPage(), "aria-label": "Previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pr-12", onClick: (event) => {
182
- if (this.mode === 'default') {
183
- if (this.isFirstPage()) {
184
- event.preventDefault(); // Prevent click if disabled
185
- }
186
- else {
187
- this.handlePageClick(event, (this.currentPage || 1) - 1);
188
- }
257
+ : this.generateLink(this.currentPage - 1).url, 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: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pr-12" }))), this.mode === 'default' &&
258
+ this.links.map((link, index) => (h("li", { key: index, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof link === 'string' ? (h("span", { class: "flex items-center justify-center", "aria-hidden": "true" }, link)) : this.useButtons ? (h("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, h("eds-button", { label: link.label, "aria-label": link.current ? `Current page, page ${link.label}` : `Go to page ${link.label}`, "aria-current": link.current ? 'page' : undefined, size: "small", "extra-class": "!p-8 pagination-button", intent: link.current ? 'secondary' : 'ghost', onClick: (event) => this.handlePageClick(event, parseInt(link.label)) }))) : (h("eds-link", { url: link.url, "aria-label": link.ariaLabel, label: link.label, current: link.current, "aria-current": link.current ? 'page' : undefined, size: "small", class: "!p-8", intent: link.current ? 'secondary' : 'ghost', onClick: (event) => this.handlePageClick(event, parseInt(link.label)) }))))), h("li", { class: "ml-auto" }, this.useButtons ? (h("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, h("eds-button", { label: this.nextLabel, disabled: this.mode === 'navigator' ? !this.nextUrl : this.isLastPage(), "aria-label": "Go to next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "ghost", "extra-class": "!p-8 lg:!pl-12 pagination-button", onClick: (event) => {
259
+ if (this.mode === 'default' && !this.isLastPage()) {
260
+ this.handlePageClick(event, (this.currentPage || 1) + 1);
189
261
  }
190
- } })), this.mode === 'default' &&
191
- this.links.map((link, index) => (h("li", { key: index, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof link === 'string' ? (h("span", { class: "flex items-center justify-center" }, link)) : (h("eds-link", { url: link.url, "aria-label": link.ariaLabel, label: link.label, current: link.current, size: "small", class: "!p-8", intent: link.current ? 'secondary' : 'ghost', onClick: (event) => this.handlePageClick(event, parseInt(link.label)) }))))), h("li", { class: "ml-auto" }, h("eds-link", { label: this.nextLabel, url: this.mode === 'navigator'
192
- ? this.nextUrl || '#' // Use nextUrl if provided, otherwise disable with '#'
262
+ } }))) : (h("eds-link", { label: this.nextLabel, url: this.mode === 'navigator'
263
+ ? this.nextUrl || '#'
193
264
  : this.isLastPage()
194
265
  ? '#'
195
- : this.generateLink(this.currentPage + 1).url, disabled: this.mode === 'navigator'
196
- ? !this.nextUrl // Disable if nextUrl is not provided
197
- : this.isLastPage(), "aria-label": "Next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors", onClick: (event) => {
198
- if (this.mode === 'default') {
199
- if (this.isLastPage()) {
200
- event.preventDefault(); // Prevent click if disabled
201
- }
202
- else {
203
- this.handlePageClick(event, (this.currentPage || 1) + 1);
204
- }
205
- }
206
- } }))))) : null));
266
+ : this.generateLink(this.currentPage + 1).url, disabled: this.mode === 'navigator' ? !this.nextUrl : this.isLastPage(), "aria-label": "Go to next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors" })))))) : null));
207
267
  }
208
268
  get hostEl() { return this; }
209
269
  static get watchers() { return {
@@ -218,11 +278,13 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
218
278
  "total": [2],
219
279
  "url": [1],
220
280
  "mode": [1],
281
+ "useButtons": [4, "use-buttons"],
221
282
  "prevLabel": [1, "prev-label"],
222
283
  "nextLabel": [1, "next-label"],
223
284
  "prevUrl": [1, "prev-url"],
224
285
  "nextUrl": [1, "next-url"],
225
- "links": [32]
286
+ "links": [32],
287
+ "focusedIndex": [32]
226
288
  }, undefined, {
227
289
  "currentPage": ["onPageOrLastPageChange"],
228
290
  "lastPage": ["onPageOrLastPageChange"]
@@ -231,13 +293,18 @@ function defineCustomElement() {
231
293
  if (typeof customElements === "undefined") {
232
294
  return;
233
295
  }
234
- const components = ["eds-pagination", "eds-icon-wrapper", "eds-link"];
296
+ const components = ["eds-pagination", "eds-button", "eds-icon-wrapper", "eds-link"];
235
297
  components.forEach(tagName => { switch (tagName) {
236
298
  case "eds-pagination":
237
299
  if (!customElements.get(tagName)) {
238
300
  customElements.define(tagName, EdsPagination);
239
301
  }
240
302
  break;
303
+ case "eds-button":
304
+ if (!customElements.get(tagName)) {
305
+ defineCustomElement$3();
306
+ }
307
+ break;
241
308
  case "eds-icon-wrapper":
242
309
  if (!customElements.get(tagName)) {
243
310
  defineCustomElement$2();
@@ -46,7 +46,7 @@ const EdsProgressBar = /*@__PURE__*/ proxyCustomElement(class EdsProgressBar ext
46
46
  ]
47
47
  .filter(Boolean)
48
48
  .join(' ');
49
- return (h("div", { key: '8406651d280d0a7f55ac627aa08fed80ff01028e', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, h("div", { key: '0b784248450d7766879be03a2e1f83484090da2c', class: fillClasses, style: { width: `${progressValue}%` } }), h("div", { key: '421253aa1f8dd3ea83936452607c4bcd49f47eb3', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, h("span", { key: 'ae649fcb7ed22741f3fedd129f0c0cb41254b721', class: "text-default f-body-02" }, progressValue, "%"))));
49
+ return (h("div", { key: '2a620231eaa84ba7e89e05da48175624fdc92d31', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, h("div", { key: '660e2c84ad358c0de1d9548b730308505e79bcd6', class: fillClasses, style: { width: `${progressValue}%` } }), h("div", { key: '4d0fa2a209d315b658f80906b95a0bf255c82c78', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, h("span", { key: '0d423e16659d84b2d050f7d60ced4aefeeef9022', class: "text-default f-body-02" }, progressValue, "%"))));
50
50
  }
51
51
  static get style() { return EdsProgressBarStyle0; }
52
52
  }, [1, "eds-progress-bar", {
@@ -11,6 +11,7 @@ const EdsRating = /*@__PURE__*/ proxyCustomElement(class EdsRating extends HTMLE
11
11
  this.__registerHost();
12
12
  this.__attachShadow();
13
13
  this.rating = createEvent(this, "rating", 7);
14
+ this.buttonRefs = [];
14
15
  this.ratingType = 'star';
15
16
  this.ratingCount = 5;
16
17
  this.selectedRating = 0;
@@ -44,16 +45,37 @@ const EdsRating = /*@__PURE__*/ proxyCustomElement(class EdsRating extends HTMLE
44
45
  * Handles the click event on a star.
45
46
  * @param rating - The selected rating value.
46
47
  */
47
- handleClick(rating) {
48
+ onSelect(rating) {
48
49
  this.selectedRating = rating;
49
50
  this.rating.emit(rating);
51
+ setTimeout(() => {
52
+ const btn = this.buttonRefs[rating - 1];
53
+ btn === null || btn === void 0 ? void 0 : btn.focus();
54
+ }, 0);
55
+ }
56
+ handleKeyNav(e) {
57
+ const { key } = e;
58
+ if (!['ArrowRight', 'ArrowLeft', 'ArrowDown', 'ArrowUp'].includes(key)) {
59
+ return;
60
+ }
61
+ e.preventDefault();
62
+ const increment = key === 'ArrowRight' || key === 'ArrowDown' ? 1 : -1;
63
+ let next = (this.selectedRating || 1) + increment;
64
+ if (next > this.ratingCount) {
65
+ next = 1;
66
+ }
67
+ if (next < 1) {
68
+ next = this.ratingCount;
69
+ }
70
+ this.onSelect(next);
50
71
  }
51
72
  render() {
52
- return (h("div", { key: '7f70d2d6691257ba0658ab9500ab7200af28366a', role: "radiogroup", class: "stars flex space-x-1 my-8" }, Array.from({ length: this.ratingCount }, (_, index) => {
73
+ return (h("div", { key: 'bd72970d86f2dbb21d58671fc85feea3011749b3', id: "rating-buttons", role: "radiogroup", "aria-labelledby": "rating", class: "stars flex space-x-1 my-8", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: this.ratingCount }, (_, index) => {
53
74
  const starRating = index + 1;
54
75
  const isSelected = starRating <= this.selectedRating;
55
76
  // Use the mapping text if available; otherwise, fall back to a generic label.
56
- return (h("eds-button", { icon: this.ratingType, role: "radio", "aria-checked": isSelected ? 'true' : 'false', "aria-label": this.ratingType, onClick: () => this.handleClick(starRating), tabIndex: this.selectedRating === 0 && index === 0 ? 0 : isSelected ? 0 : -1, intent: isSelected ? 'primary' : 'ghost', size: "large", "extra-class": "p-2" // Optional padding or styling for the star button
77
+ const checked = this.selectedRating === starRating;
78
+ return (h("eds-button", { ref: (el) => (this.buttonRefs[index] = el), icon: this.ratingType, role: "radio", "aria-checked": checked, "aria-label": `${starRating} ${this.ratingType}${starRating > 1 ? 's' : ''}`, onClick: () => this.onSelect(starRating), tabIndex: checked || (this.selectedRating === 0 && index === 0) ? 0 : -1, intent: isSelected ? 'primary' : 'ghost', size: "large", "extra-class": "p-2" // Optional padding or styling for the star button
57
79
  }));
58
80
  })));
59
81
  }
@@ -15,7 +15,7 @@ const EdsSectionCore = /*@__PURE__*/ proxyCustomElement(class EdsSectionCore ext
15
15
  }
16
16
  render() {
17
17
  const TagType = this.tag; // Set dynamic tag type (div or section)
18
- return (h(TagType, { key: 'b3469cabf7e1a59c7908f5440b76d0c3bed0395d' }, h("eds-section-heading", { key: '38e11acb4b491579573bee449680776d3ec23de3', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), h("slot", { key: '133fc1150fb7e300544388adc673c1446b36ac39' })));
18
+ return (h(TagType, { key: 'b77b5af1c6f3acbc2696a9608b55199ed4110d71' }, h("eds-section-heading", { key: '464dd4c67d69d1ef3ed1d932081c3195a2b51503', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), h("slot", { key: 'b5dbd4f55aee2df3bcbc44e21a134544ffd733f7' })));
19
19
  }
20
20
  static get style() { return EdsSectionCoreStyle0; }
21
21
  }, [1, "eds-section-core", {
@@ -26,12 +26,12 @@ const EdsSectionHeading = /*@__PURE__*/ proxyCustomElement(class EdsSectionHeadi
26
26
  render() {
27
27
  const TagType = this.tag; // Dynamically set tag type for the container
28
28
  const HeadingTag = this.headingLevel; // Dynamically set heading level
29
- return (h(TagType, { key: '1b819df75c9d61eebe7d11b9116dba7278a34d91', class: {
29
+ return (h(TagType, { key: '4ae69ea354156a0e35a8884a63d7556ead8ada24', class: {
30
30
  'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
31
31
  container: this.withContainer,
32
32
  'pt-48': this.spacingLarge,
33
33
  'pt-28': !this.spacingLarge
34
- } }, h(HeadingTag, { key: '8f99c7c15982f9190117f8eb71725af66afd0741', class: this.getHeadingClass() }, this.sectionTitle)));
34
+ } }, h(HeadingTag, { key: 'a3549fb733687c3ff31f17bdc362275eb0b29e31', class: this.getHeadingClass() }, this.sectionTitle)));
35
35
  }
36
36
  }, [0, "eds-section-heading", {
37
37
  "sectionTitle": [1, "section-title"],
@@ -58,7 +58,7 @@ const EdsSocialNetworks = /*@__PURE__*/ proxyCustomElement(class EdsSocialNetwor
58
58
  * @returns {JSX.Element} The rendered JSX for the component.
59
59
  */
60
60
  render() {
61
- return (h("div", { key: '7bd6202c426d23ded6af47b26e025f2d1b42904a' }, h("p", { key: '0c66f58474ff55cc06bd9f3f15f3deb251c9fb87', class: "f-ui-02" }, this.heading), h("ul", { key: '3e082ae50c77e2d8612b823aa3e474672d65d42f', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (h("li", { key: index }, h("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
61
+ return (h("div", { key: '7241de6d0a20687523e17a4455dff1dfac59a191' }, h("p", { key: '8292c0dde1b3518ada53dddc2ea0134ff3035e83', class: "f-ui-02" }, this.heading), h("ul", { key: 'b30922e6d1f51a52300c889464824fafad775f74', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (h("li", { key: index }, h("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
62
62
  }
63
63
  static get style() { return EdsSocialNetworksStyle0; }
64
64
  }, [1, "eds-social-networks", {
@@ -78,7 +78,7 @@ const EdsSpinner = /*@__PURE__*/ proxyCustomElement(class EdsSpinner extends HTM
78
78
  alignItems: 'center',
79
79
  justifyContent: 'center'
80
80
  };
81
- return (h(Host, { key: 'b2ba16cd90ebf036143f6ab52b996497464814c1' }, h("div", { key: 'f619fb03d0364ae7032931559d591fab6ad40123', class: "spinner-overlay", style: overlayStyle }, h("span", { key: '7c1e397ab319de1f67320e3836225e3733a483fd', class: "spinner", style: spinnerStyle }), this.message && h("p", { key: 'ddf6e08c8d2d00f114f815bab28b06c19a56cd6d', class: "f-body-01" }, this.message))));
81
+ return (h(Host, { key: 'cbf9cead7c7c6bc5314c074f7249c920eb60d326' }, h("div", { key: 'd22c71a76af3f53c649e547538e0f1627cd9ecd0', class: "spinner-overlay", style: overlayStyle }, h("span", { key: '83b42f7ee9ba4d356bd82097989b8be1db8a8ef9', class: "spinner", style: spinnerStyle }), this.message && h("p", { key: '0a2c4efe46b8f86a037d29de699534441bf7585e', class: "f-body-01" }, this.message))));
82
82
  }
83
83
  static get style() { return EdsSpinnerStyle0; }
84
84
  }, [1, "eds-spinner", {
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { s as sendAnalytics } from './analytics.js';
3
3
 
4
- const edsSwitchCss = ":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch:focus{outline:none;box-shadow:0 0 0 2px #007aff}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}.ml-8{margin-left:0.5rem}.mr-8{margin-right:0.5rem}";
4
+ const edsSwitchCss = ":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}.ml-8{margin-left:0.5rem}.mr-8{margin-right:0.5rem}.switch:focus{outline:2px solid #005fcc;outline-offset:2px}.switch:focus:not(:focus-visible){outline:none}.switch:focus-visible{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}";
5
5
  const EdsSwitchStyle0 = edsSwitchCss;
6
6
 
7
7
  const EdsSwitch$1 = /*@__PURE__*/ proxyCustomElement(class EdsSwitch extends HTMLElement {
@@ -23,19 +23,41 @@ const EdsSwitch$1 = /*@__PURE__*/ proxyCustomElement(class EdsSwitch extends HTM
23
23
  action: 'checked'
24
24
  });
25
25
  };
26
+ this.handleKeyDown = (e) => {
27
+ if (this.disabled) {
28
+ return;
29
+ }
30
+ if (e.key === 'Enter' || e.key === ' ') {
31
+ e.preventDefault();
32
+ this.toggleSwitch();
33
+ }
34
+ };
26
35
  this.checked = false;
27
36
  this.disabled = false;
28
37
  this.labelOn = '';
29
38
  this.labelOff = '';
30
39
  }
31
40
  render() {
32
- // Compute an accessible name based on state.
33
- const accessibleLabel = this.labelOn || this.labelOff ? (this.checked ? this.labelOn : this.labelOff) : 'Toggle switch';
34
- return (h("div", { key: '1de6f7afd451f5d0276b62ef7bbf817f132e4440', class: "switch-container" }, this.labelOff && h("span", { key: 'd2d1017d7d26537eb2e65fa74b1f86453edc93d2', class: "switch-label switch-label--off mr-8" }, this.labelOff), h("button", { key: 'ade3ba909f5744a2b87238da52fcc33f600721cf', type: "button", role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": accessibleLabel, class: {
41
+ const switchId = `switch-${Math.random().toString(36).substr(2, 9)}`;
42
+ const labelledBy = [];
43
+ if (this.labelOff) {
44
+ labelledBy.push(`${switchId}-off`);
45
+ }
46
+ if (this.labelOn) {
47
+ labelledBy.push(`${switchId}-on`);
48
+ }
49
+ const accessibleLabel = labelledBy.length === 0
50
+ ? this.labelOn || this.labelOff
51
+ ? this.checked
52
+ ? this.labelOn
53
+ : this.labelOff
54
+ : 'Toggle switch'
55
+ : undefined;
56
+ return (h("div", { key: 'f4c99a2ec360af6030de11698bab82833b3f415f', class: "switch-container" }, this.labelOff && (h("span", { key: '8bb8d063e744c194c0d44a0c371ae8224f9611cb', id: `${switchId}-off`, class: "switch-label switch-label--off mr-8" }, this.labelOff)), h("button", { key: 'ccc49c8ac6f639707c90822e24f3ae3ab8f2c26c', id: switchId, tabindex: this.disabled ? '-1' : '0', type: "button", role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-labelledby": labelledBy.length > 0 ? labelledBy.join(' ') : undefined, "aria-label": accessibleLabel, class: {
35
57
  switch: true,
36
58
  'switch--checked': this.checked,
37
59
  'switch--disabled': this.disabled
38
- }, onClick: this.toggleSwitch, disabled: this.disabled }, h("span", { key: '64034f73021623f63523c7bb52ec5233ad291c55', class: "switch-handle" })), this.labelOn && h("span", { key: 'a96a35565ac28ed6a27855b90b180f15adb0e711', class: "switch-label switch-label--on ml-8" }, this.labelOn)));
60
+ }, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, h("span", { key: '2275930bc9909c0a95c6c10e28f715fe1afe9294', class: "switch-handle" })), this.labelOn && (h("span", { key: 'd789fd15943c1fadf1f87c55059261eaf5e05a8f', id: `${switchId}-on`, class: "switch-label switch-label--on ml-8" }, this.labelOn))));
39
61
  }
40
62
  get el() { return this; }
41
63
  static get style() { return EdsSwitchStyle0; }