@ebrains/components 2.1.0 → 2.2.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.
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
- package/dist/cjs/components-section.cjs.entry.js +3 -5
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/docs-palettes.cjs.entry.js +1 -1
- package/dist/cjs/docs-tokens.cjs.entry.js +1 -1
- package/dist/cjs/download-9d17d025.js +20 -0
- package/dist/cjs/{eds-accordion_33.cjs.entry.js → eds-accordion_34.cjs.entry.js} +176 -92
- package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +1 -1
- package/dist/cjs/eds-feedback.cjs.entry.js +1 -1
- package/dist/cjs/eds-footer.cjs.entry.js +2 -4
- package/dist/cjs/eds-frame.cjs.entry.js +1 -1
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +8 -3
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-download.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-draft.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-edit.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-external.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-loader.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-minus.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-paper.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-plus.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-portal.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-private.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-public.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-star.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-start.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-tutorial.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-updown.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-view.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
- package/dist/cjs/eds-modal.cjs.entry.js +2 -2
- package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
- package/dist/cjs/eds-social-networks.cjs.entry.js +2 -4
- package/dist/cjs/eds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
- package/dist/cjs/eds-toast-manager.cjs.entry.js +1 -1
- package/dist/cjs/eds-trl.cjs.entry.js +1 -1
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/index-0249a32e.js +6 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/logo-space.cjs.entry.js +1 -1
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +2 -2
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +1 -1
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +1 -1
- package/dist/cjs/svg-repository.cjs.entry.js +3 -19
- package/dist/cjs/token-list_3.cjs.entry.js +3 -3
- package/dist/cjs/token-ratios.cjs.entry.js +1 -1
- package/dist/cjs/token-spacing.cjs.entry.js +1 -1
- package/dist/cjs/token-typography.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/eds-icons/eds-icon-download/eds-icon-download.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-draft/eds-icon-draft.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-edit/eds-icon-edit.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-start/eds-icon-start.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-view/eds-icon-view.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
- package/dist/collection/components/eds-img/eds-img.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +2 -2
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- package/dist/collection/components/eds-link/eds-link.js +1 -1
- package/dist/collection/components/eds-logo/eds-logo.js +1 -1
- package/dist/collection/components/eds-modal/eds-modal.js +2 -2
- package/dist/collection/components/eds-nps/eds-nps.js +4 -4
- package/dist/collection/components/eds-pagination/eds-pagination.css +12 -0
- package/dist/collection/components/eds-pagination/eds-pagination.js +2 -2
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
- package/dist/collection/components/eds-rating/eds-rating.js +2 -2
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
- package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
- package/dist/collection/components/eds-switch/eds-switch.js +2 -2
- package/dist/collection/components/eds-table/eds-table.css +4 -0
- package/dist/collection/components/eds-table/eds-table.js +8 -6
- package/dist/collection/components/eds-tag/eds-tag.js +1 -1
- package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.css +5 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +2 -2
- package/dist/collection/components/eds-trl/eds-trl.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
- package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/functional/overview.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
- package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +1 -1
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +7 -6
- package/dist/collection/shared-ui/eds-form/eds-form.css +72 -0
- package/dist/collection/shared-ui/eds-form/eds-form.js +87 -4
- package/dist/collection/shared-ui/eds-form/eds-form.stories.js +32 -3
- package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +50 -16
- package/dist/collection/shared-ui/eds-header/eds-header.js +1 -1
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +20 -8
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.css +0 -20
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -3
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +6 -7
- package/dist/collection/shared-ui/eds-steps/eds-steps.css +136 -92
- package/dist/collection/shared-ui/eds-steps/eds-steps.js +234 -40
- package/dist/collection/shared-ui/eds-steps/eds-steps.stories.js +71 -7
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +44 -33
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +195 -19
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.stories.js +65 -4
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +2 -2
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/shared-ui/eds-user/eds-user.js +35 -1
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/collection/utils/eds-form/formValidators.js +4 -3
- package/dist/components/components-section.js +3 -5
- package/dist/components/components.css +0 -3
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/docs-palettes.js +1 -1
- package/dist/components/docs-tokens.js +1 -1
- package/dist/components/download.js +18 -0
- package/dist/components/eds-app-root.js +1 -1
- package/dist/components/eds-cookies-preference.js +1 -1
- package/dist/components/eds-feedback.js +1 -1
- package/dist/components/eds-footer2.js +2 -4
- package/dist/components/eds-form.js +26 -8
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-fullscreen-menu.js +8 -3
- package/dist/components/eds-header.js +1 -1
- package/dist/components/eds-icon-bluesky.js +1 -1
- package/dist/components/eds-icon-download.d.ts +11 -0
- package/dist/components/eds-icon-download.js +33 -0
- package/dist/components/eds-icon-draft.js +1 -1
- package/dist/components/eds-icon-edit.js +1 -1
- package/dist/components/eds-icon-eu.js +1 -1
- package/dist/components/eds-icon-external.js +1 -1
- package/dist/components/eds-icon-facebook.js +1 -1
- package/dist/components/eds-icon-gitlab.js +1 -1
- package/dist/components/eds-icon-linkedin.js +1 -1
- package/dist/components/eds-icon-loader.js +1 -1
- package/dist/components/eds-icon-mastodon.js +1 -1
- package/dist/components/eds-icon-menu.js +1 -1
- package/dist/components/eds-icon-minus.js +1 -1
- package/dist/components/eds-icon-more.js +1 -1
- package/dist/components/eds-icon-paper.js +1 -1
- package/dist/components/eds-icon-plus.js +1 -1
- package/dist/components/eds-icon-portal.js +1 -1
- package/dist/components/eds-icon-private.js +1 -1
- package/dist/components/eds-icon-public.js +1 -1
- package/dist/components/eds-icon-search.js +1 -1
- package/dist/components/eds-icon-star.js +1 -1
- package/dist/components/eds-icon-start.js +1 -1
- package/dist/components/eds-icon-success.js +1 -1
- package/dist/components/eds-icon-thumbs-down.js +1 -1
- package/dist/components/eds-icon-thumbs-up.js +1 -1
- package/dist/components/eds-icon-tutorial.js +1 -1
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-unknown.js +1 -1
- package/dist/components/eds-icon-updown.js +1 -1
- package/dist/components/eds-icon-user.js +1 -1
- package/dist/components/eds-icon-view.js +1 -1
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +2 -2
- package/dist/components/eds-input-field2.js +2 -2
- package/dist/components/eds-input-footer2.js +1 -1
- package/dist/components/eds-input-label2.js +1 -1
- package/dist/components/eds-input-range2.js +1 -1
- package/dist/components/eds-input-search2.js +1 -1
- package/dist/components/eds-input-select2.js +2 -2
- package/dist/components/eds-input2.js +2 -2
- package/dist/components/eds-link2.js +1 -1
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-modal.js +2 -2
- package/dist/components/eds-nps2.js +4 -4
- package/dist/components/eds-pagination2.js +3 -3
- package/dist/components/eds-progress-bar2.js +1 -1
- package/dist/components/eds-rating2.js +2 -2
- package/dist/components/eds-section-core2.js +1 -1
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-social-networks2.js +2 -4
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-steps-v2.js +35 -13
- package/dist/components/eds-steps2.js +54 -35
- package/dist/components/eds-switch.js +2 -2
- package/dist/components/eds-table2.js +36 -28
- package/dist/components/eds-tabs.js +2 -2
- package/dist/components/eds-tag2.js +1 -1
- package/dist/components/eds-timeline.js +1 -1
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-tooltip.js +1 -50
- package/dist/components/eds-tooltip2.js +52 -0
- package/dist/components/eds-trl.js +33 -27
- package/dist/components/eds-user.js +10 -2
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/logo-space.js +31 -25
- package/dist/components/logo-variations-horizontal2.js +1 -1
- package/dist/components/logo-variations-tabs.js +1 -1
- package/dist/components/logo-variations-vertical2.js +1 -1
- package/dist/components/logo-wrong-usage.js +1 -1
- package/dist/components/p-0452fe52.entry.js +1 -0
- package/dist/components/p-04f288b1.entry.js +1 -0
- package/dist/components/p-06951aa3.entry.js +1 -0
- package/dist/components/p-0da7d1c9.js +1 -0
- package/dist/components/p-101392d0.entry.js +1 -0
- package/dist/components/p-171f8e6b.entry.js +1 -0
- package/dist/components/{p-d95d7353.entry.js → p-1b032aa8.entry.js} +1 -1
- package/dist/components/p-28ec52a7.entry.js +1 -0
- package/dist/components/p-2f712656.entry.js +1 -0
- package/dist/components/p-3097c321.entry.js +1 -0
- package/dist/components/p-36db7db0.entry.js +1 -0
- package/dist/components/p-38b0ea8d.entry.js +1 -0
- package/dist/components/p-3b551ade.entry.js +9 -0
- package/dist/components/p-3fa4a703.entry.js +1 -0
- package/dist/components/p-3fa54526.entry.js +1 -0
- package/dist/components/p-42680319.entry.js +1 -0
- package/dist/components/{p-2ef4dd11.entry.js → p-4c618a35.entry.js} +1 -1
- package/dist/components/p-4d207d0e.entry.js +1 -0
- package/dist/components/p-4db384d9.entry.js +1 -0
- package/dist/components/{p-e210ddbb.entry.js → p-50d7eed9.entry.js} +1 -1
- package/dist/components/{p-5f348b0e.entry.js → p-5479e43b.entry.js} +1 -1
- package/dist/components/{p-8627afc0.entry.js → p-58c8c0d7.entry.js} +1 -1
- package/dist/components/p-5a88cdc2.entry.js +1 -0
- package/dist/components/p-5b574bb2.entry.js +1 -0
- package/dist/components/p-5ec9fc29.entry.js +1 -0
- package/dist/components/p-5f350866.entry.js +1 -0
- package/dist/components/p-5ff10b6f.entry.js +1 -0
- package/dist/components/p-6420754e.entry.js +1 -0
- package/dist/components/p-68a2cd95.entry.js +1 -0
- package/dist/components/{p-706a106c.entry.js → p-6a2d1e11.entry.js} +1 -1
- package/dist/components/{p-e5892379.entry.js → p-7032a73b.entry.js} +1 -1
- package/dist/components/p-7272628d.entry.js +1 -0
- package/dist/components/p-78c348e2.entry.js +1 -0
- package/dist/components/p-870001ee.entry.js +1 -0
- package/dist/components/p-88eeaeca.entry.js +1 -0
- package/dist/components/p-8b7910d2.entry.js +1 -0
- package/dist/components/{p-2e0c3fc4.entry.js → p-8eced026.entry.js} +1 -1
- package/dist/components/{p-b88a2267.entry.js → p-8edd07db.entry.js} +1 -1
- package/dist/components/p-8ef68d8a.entry.js +1 -0
- package/dist/components/p-8fb1eb43.entry.js +1 -0
- package/dist/components/{p-1d18106d.entry.js → p-94a223ec.entry.js} +1 -1
- package/dist/components/{p-b9a1aba3.entry.js → p-a5fd4fc9.entry.js} +1 -1
- package/dist/components/p-a6586448.entry.js +1 -0
- package/dist/components/p-ad7d603b.entry.js +1 -0
- package/dist/components/p-b24ef7f7.entry.js +1 -0
- package/dist/components/p-baa2df0b.entry.js +1 -0
- package/dist/components/p-bfe9d934.entry.js +1 -0
- package/dist/components/p-c1943b8f.entry.js +1 -0
- package/dist/components/{p-7a3f2576.entry.js → p-c66f4dd8.entry.js} +1 -1
- package/dist/components/{p-743f9f8f.entry.js → p-d3391236.entry.js} +1 -1
- package/dist/components/p-da0e9a75.entry.js +1 -0
- package/dist/components/p-dbe11048.entry.js +1 -0
- package/dist/components/{p-4c84fcf4.entry.js → p-dd28ab38.entry.js} +1 -1
- package/dist/components/p-e42ac312.entry.js +1 -0
- package/dist/components/{p-9f0a34b4.entry.js → p-e6c3f38c.entry.js} +1 -1
- package/dist/components/p-e7c37e5b.entry.js +1 -0
- package/dist/components/p-e9cd3c4b.entry.js +1 -0
- package/dist/components/p-ebd59113.entry.js +1 -0
- package/dist/components/p-f092b706.entry.js +1 -0
- package/dist/components/p-f29e7506.entry.js +1 -0
- package/dist/components/p-fc099d59.entry.js +1 -0
- package/dist/components/p-fda3da92.entry.js +1 -0
- package/dist/components/{p-67ec46b4.entry.js → p-ff902c98.entry.js} +1 -1
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/svg-repository.js +32 -42
- package/dist/components/token-list2.js +1 -1
- package/dist/components/token-radii2.js +1 -1
- package/dist/components/token-ratios.js +1 -1
- package/dist/components/token-shadows2.js +1 -1
- package/dist/components/token-spacing.js +1 -1
- package/dist/components/token-typography.js +1 -1
- package/dist/esm/color-primary-palette_6.entry.js +14 -14
- package/dist/esm/components-section.entry.js +3 -5
- package/dist/esm/components.js +1 -1
- package/dist/esm/correct-use-of-colors.entry.js +1 -1
- package/dist/esm/docs-palettes.entry.js +1 -1
- package/dist/esm/docs-tokens.entry.js +1 -1
- package/dist/esm/download-47746956.js +18 -0
- package/dist/esm/{eds-accordion_33.entry.js → eds-accordion_34.entry.js} +176 -93
- package/dist/esm/eds-app-root.entry.js +1 -1
- package/dist/esm/eds-cookies-preference.entry.js +1 -1
- package/dist/esm/eds-feedback.entry.js +1 -1
- package/dist/esm/eds-footer.entry.js +2 -4
- package/dist/esm/eds-frame.entry.js +1 -1
- package/dist/esm/eds-fullscreen-menu.entry.js +8 -3
- package/dist/esm/eds-icon-bluesky.entry.js +1 -1
- package/dist/esm/eds-icon-download.entry.js +14 -0
- package/dist/esm/eds-icon-draft.entry.js +1 -1
- package/dist/esm/eds-icon-edit.entry.js +1 -1
- package/dist/esm/eds-icon-eu.entry.js +1 -1
- package/dist/esm/eds-icon-external.entry.js +1 -1
- package/dist/esm/eds-icon-facebook.entry.js +1 -1
- package/dist/esm/eds-icon-gitlab.entry.js +1 -1
- package/dist/esm/eds-icon-linkedin.entry.js +1 -1
- package/dist/esm/eds-icon-loader.entry.js +1 -1
- package/dist/esm/eds-icon-mastodon.entry.js +1 -1
- package/dist/esm/eds-icon-menu.entry.js +1 -1
- package/dist/esm/eds-icon-minus.entry.js +1 -1
- package/dist/esm/eds-icon-more.entry.js +1 -1
- package/dist/esm/eds-icon-paper.entry.js +1 -1
- package/dist/esm/eds-icon-plus.entry.js +1 -1
- package/dist/esm/eds-icon-portal.entry.js +1 -1
- package/dist/esm/eds-icon-private.entry.js +1 -1
- package/dist/esm/eds-icon-public.entry.js +1 -1
- package/dist/esm/eds-icon-search.entry.js +1 -1
- package/dist/esm/eds-icon-star.entry.js +1 -1
- package/dist/esm/eds-icon-start.entry.js +1 -1
- package/dist/esm/eds-icon-success.entry.js +1 -1
- package/dist/esm/eds-icon-thumbs-down.entry.js +1 -1
- package/dist/esm/eds-icon-thumbs-up.entry.js +1 -1
- package/dist/esm/eds-icon-tutorial.entry.js +1 -1
- package/dist/esm/eds-icon-twitter.entry.js +1 -1
- package/dist/esm/eds-icon-unknown.entry.js +1 -1
- package/dist/esm/eds-icon-updown.entry.js +1 -1
- package/dist/esm/eds-icon-user.entry.js +1 -1
- package/dist/esm/eds-icon-view.entry.js +1 -1
- package/dist/esm/eds-icon-youtube.entry.js +1 -1
- package/dist/esm/eds-modal.entry.js +2 -2
- package/dist/esm/eds-progress-bar.entry.js +1 -1
- package/dist/esm/eds-section-core_2.entry.js +3 -3
- package/dist/esm/eds-social-networks.entry.js +2 -4
- package/dist/esm/eds-spinner.entry.js +1 -1
- package/dist/esm/eds-timeline.entry.js +1 -1
- package/dist/esm/eds-toast-manager.entry.js +1 -1
- package/dist/esm/eds-trl.entry.js +1 -1
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/index-e84b871c.js +6 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/logo-space.entry.js +1 -1
- package/dist/esm/logo-variations-horizontal_2.entry.js +2 -2
- package/dist/esm/logo-variations-tabs.entry.js +1 -1
- package/dist/esm/logo-wrong-usage.entry.js +1 -1
- package/dist/esm/svg-repository.entry.js +2 -18
- package/dist/esm/token-list_3.entry.js +3 -3
- package/dist/esm/token-ratios.entry.js +1 -1
- package/dist/esm/token-spacing.entry.js +1 -1
- package/dist/esm/token-typography.entry.js +1 -1
- package/dist/hydrate/index.js +281 -189
- package/dist/hydrate/index.mjs +281 -189
- package/dist/types/components/eds-icons/eds-icon-download/eds-icon-download.d.ts +10 -0
- package/dist/types/components/eds-table/eds-table.d.ts +20 -4
- package/dist/types/components.d.ts +288 -29
- package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +4 -2
- package/dist/types/shared-ui/eds-form/eds-form.d.ts +17 -0
- package/dist/types/shared-ui/eds-form/eds-form.stories.d.ts +19 -0
- package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +44 -13
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +11 -3
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +0 -2
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +1 -1
- package/dist/types/shared-ui/eds-steps/eds-steps.d.ts +72 -24
- package/dist/types/shared-ui/eds-steps/eds-steps.stories.d.ts +58 -0
- package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.d.ts +42 -19
- package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.stories.d.ts +33 -0
- package/dist/types/shared-ui/eds-user/eds-user.d.ts +5 -0
- package/package.json +1 -1
- package/dist/cjs/eds-tooltip.cjs.entry.js +0 -38
- package/dist/components/p-05654483.entry.js +0 -1
- package/dist/components/p-09079c5c.entry.js +0 -1
- package/dist/components/p-10997947.entry.js +0 -1
- package/dist/components/p-1ab1ea29.entry.js +0 -1
- package/dist/components/p-1bcf743d.entry.js +0 -1
- package/dist/components/p-3360e1e2.entry.js +0 -1
- package/dist/components/p-38bc21e9.entry.js +0 -1
- package/dist/components/p-3b29e0fd.entry.js +0 -1
- package/dist/components/p-42457a0f.entry.js +0 -1
- package/dist/components/p-4a6a72db.entry.js +0 -1
- package/dist/components/p-4b33909d.entry.js +0 -1
- package/dist/components/p-4bf4bc93.entry.js +0 -1
- package/dist/components/p-547a53d6.entry.js +0 -1
- package/dist/components/p-560fc3a4.entry.js +0 -1
- package/dist/components/p-5a58f1c1.entry.js +0 -1
- package/dist/components/p-5b55f951.entry.js +0 -1
- package/dist/components/p-5ba49cf2.entry.js +0 -1
- package/dist/components/p-5dd85979.entry.js +0 -1
- package/dist/components/p-634b6ca2.entry.js +0 -1
- package/dist/components/p-6cd6ff0c.entry.js +0 -1
- package/dist/components/p-71ee4af2.entry.js +0 -1
- package/dist/components/p-789f54cb.entry.js +0 -1
- package/dist/components/p-7ca6db64.entry.js +0 -1
- package/dist/components/p-89048f87.entry.js +0 -1
- package/dist/components/p-8d363a3c.entry.js +0 -1
- package/dist/components/p-97323c46.entry.js +0 -1
- package/dist/components/p-9b90296c.entry.js +0 -1
- package/dist/components/p-a8ca8346.entry.js +0 -1
- package/dist/components/p-ab3b0a53.entry.js +0 -1
- package/dist/components/p-b0d38b78.entry.js +0 -1
- package/dist/components/p-b6ee4250.entry.js +0 -1
- package/dist/components/p-b9fdcb1b.entry.js +0 -1
- package/dist/components/p-ba9f41de.entry.js +0 -1
- package/dist/components/p-beacaa4f.entry.js +0 -1
- package/dist/components/p-bfa23535.entry.js +0 -1
- package/dist/components/p-c4ac0528.entry.js +0 -1
- package/dist/components/p-cb114bf4.entry.js +0 -1
- package/dist/components/p-cd05a97b.entry.js +0 -1
- package/dist/components/p-cd787744.entry.js +0 -1
- package/dist/components/p-cdc1c8e8.entry.js +0 -1
- package/dist/components/p-d1d1943b.entry.js +0 -1
- package/dist/components/p-e0ada7e0.entry.js +0 -1
- package/dist/components/p-ec706eed.entry.js +0 -1
- package/dist/components/p-f32963ff.entry.js +0 -9
- package/dist/components/p-f6012c17.entry.js +0 -1
- package/dist/components/p-fcba31fa.entry.js +0 -1
- package/dist/esm/eds-tooltip.entry.js +0 -34
|
@@ -56,13 +56,11 @@ export class EdsFooter {
|
|
|
56
56
|
* Renders the footer component with optional sections and elements,
|
|
57
57
|
* including social network links, a Horizon Europe funding acknowledgment, and
|
|
58
58
|
* legal links such as "Cookies Preferences" and copyright information.
|
|
59
|
-
*
|
|
60
|
-
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
61
59
|
*/
|
|
62
60
|
render() {
|
|
63
|
-
return (h("footer", { key: '
|
|
61
|
+
return (h("footer", { key: '844c47f7e5119a577b03d1bf4bb598e891d7f8c7' }, this.social ? (h("div", { class: "border-softest border-t-2 pt-20 md:pt-28" }, h("div", { class: "container pb-20" }, h("div", { class: "grid-layout" }, h("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, h("eds-social-networks", { class: "mt-28" })))))) : null, h("div", { key: '0a6f03f13cf5513758740ce6f3d3357cac413826', class: `border-softest ${this.social ? 'border-t-2' : ''} pb-28 pt-20 md:pt-28` }, h("div", { key: '1751d052c529e46de47bbe09ef24621b546b1514', class: "container flex items-center gap-20 lg:flex-nowrap" }, h("div", { key: '86b3c5fac384d1ae0f310d43f9a4492ce96866cf', class: "flex items-center gap-x-12" }, h("a", { key: '7fed16c8a7bb7c15ea59438427987303a5a0ae14', target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-europe_en", "aria-label": "Learn about Horizon Europe funding" }, h("eds-img", { key: '491b2691d011359df1dc24a2408347574a893ca8', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg", alt: "European Union Flag" }))), h("div", { key: '50e5d853ee86066c932dd5fa3f04706d21b0d3aa' }, h("div", { key: 'ba36e26f29e1aee7d7da4cd91235419b18ab813a', class: "f-ui-04 text-light" }, h("p", { key: '120302d9cdad309da91bcd9f82e81f707f5f5b48' }, this.fundedBy), h("div", { key: '222a27fb7f085750312654c11d03793f02e29676', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block" }, h("span", { key: '56db11dc4295c21c5e9d54cbc5568c5889f2dbb9', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline mr-4" }, "\u00A9 ", this.rightsReserved), this.enableCookiesSettings ? (h("eds-link", { label: this.cookiesPreferences, intent: "underline", "extra-class": "f-ui-04", onClick: () => {
|
|
64
62
|
this.toggleCookiesConsent();
|
|
65
|
-
} })) : null))), h("div", { key: '
|
|
63
|
+
} })) : null))), h("div", { key: '221f15b6c92e91835dcc2efa3d2247b055690a22', class: "ml-auto pl-12" }, this.enableScrollTop ? (h("div", { id: "toTop", class: "transition-all transition duration-75 opacity-0" }, h("eds-button", { id: "backToTop", "aria-label": this.backToTopAriaLabel, intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop, tabindex: "-1" }))) : null)))));
|
|
66
64
|
}
|
|
67
65
|
static get is() { return "eds-footer"; }
|
|
68
66
|
static get encapsulation() { return "shadow"; }
|
|
@@ -194,8 +192,11 @@ export class EdsFooter {
|
|
|
194
192
|
"required": false,
|
|
195
193
|
"optional": false,
|
|
196
194
|
"docs": {
|
|
197
|
-
"tags": [
|
|
198
|
-
|
|
195
|
+
"tags": [{
|
|
196
|
+
"name": "type",
|
|
197
|
+
"text": "{string}"
|
|
198
|
+
}],
|
|
199
|
+
"text": "Controls the display of the \"Cookies preferences\" link."
|
|
199
200
|
},
|
|
200
201
|
"attribute": "enable-cookies-settings",
|
|
201
202
|
"reflect": false,
|
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
letter-spacing: var(--f-body-01-letterSpacing);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
.f-body-02 {
|
|
29
|
+
font-family: var(--f-body-02-fontFamily);
|
|
30
|
+
font-weight: var(--f-body-02-fontWeight);
|
|
31
|
+
font-size: var(--f-body-02-fontSize);
|
|
32
|
+
line-height: var(--f-body-02-lineHeight);
|
|
33
|
+
letter-spacing: var(--f-body-02-letterSpacing);
|
|
34
|
+
}
|
|
35
|
+
|
|
28
36
|
.f-body-01 b, .f-body-01 strong {
|
|
29
37
|
font-weight: var(--f-body-01---bold-weight, bold);
|
|
30
38
|
}
|
|
@@ -41,6 +49,18 @@
|
|
|
41
49
|
letter-spacing: var(--f-heading-04-letterSpacing);
|
|
42
50
|
}
|
|
43
51
|
|
|
52
|
+
.f-heading-05 {
|
|
53
|
+
font-family: var(--f-heading-05-fontFamily);
|
|
54
|
+
font-weight: var(--f-heading-05-fontWeight);
|
|
55
|
+
font-size: var(--f-heading-05-fontSize);
|
|
56
|
+
line-height: var(--f-heading-05-lineHeight);
|
|
57
|
+
letter-spacing: var(--f-heading-05-letterSpacing);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.text-light {
|
|
61
|
+
color: var(--grey-700);
|
|
62
|
+
}
|
|
63
|
+
|
|
44
64
|
.rounded-sm {
|
|
45
65
|
border-radius: 8px;
|
|
46
66
|
}
|
|
@@ -96,4 +116,56 @@
|
|
|
96
116
|
.border-group {
|
|
97
117
|
border-left: 1px solid var(--soft-color, #ddd);
|
|
98
118
|
padding-left: 1rem;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.bg-inverse {
|
|
122
|
+
background-color: var(--white);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.effect-shadow {
|
|
126
|
+
transition-property: box-shadow;
|
|
127
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
128
|
+
transition-duration: 300ms;
|
|
129
|
+
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.shadow-hover {
|
|
133
|
+
--tw-shadow: 0px 0px 16px rgba(0, 0, 0, 0.2);
|
|
134
|
+
--tw-shadow-colored: 0px 0px 16px var(--tw-shadow-color);
|
|
135
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.cursor-pointer {
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.effect-focus-within {
|
|
143
|
+
outline-width: 3px;
|
|
144
|
+
outline-offset: 2px;
|
|
145
|
+
outline-color: var(--green-500);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.effect-focus-within:focus-within {
|
|
149
|
+
outline-style: solid;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.relative {
|
|
153
|
+
position: relative;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.rounded-lg {
|
|
157
|
+
border-radius: 16px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.px-16 {
|
|
161
|
+
padding-left: 1rem;
|
|
162
|
+
padding-right: 1rem;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.pb-16 {
|
|
166
|
+
padding-bottom: 1rem;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.p-32 {
|
|
170
|
+
padding: 2rem;
|
|
99
171
|
}
|
|
@@ -19,13 +19,17 @@ import { getFormInitData } from "../../utils/eds-form/formUtils";
|
|
|
19
19
|
export class EdsForm {
|
|
20
20
|
constructor() {
|
|
21
21
|
this.name = 'eds-form';
|
|
22
|
+
this.title = undefined;
|
|
23
|
+
this.description = undefined;
|
|
22
24
|
this.setFormUrl = true;
|
|
23
25
|
this.formBtn = true;
|
|
24
26
|
this.formBtnLabel = 'Submit';
|
|
27
|
+
this.buttonIntent = 'primary';
|
|
25
28
|
this.errorMessage = 'Some fields in your form are incorrect.';
|
|
26
29
|
this.fields = [];
|
|
27
30
|
this.groups = [];
|
|
28
31
|
this.initData = {};
|
|
32
|
+
this.formStyle = 'default';
|
|
29
33
|
this.values = {};
|
|
30
34
|
this.isSubmitting = false;
|
|
31
35
|
this.hasError = false;
|
|
@@ -323,10 +327,15 @@ export class EdsForm {
|
|
|
323
327
|
}
|
|
324
328
|
get groupedFields() {
|
|
325
329
|
const map = {};
|
|
326
|
-
// initialize buckets for each group
|
|
330
|
+
// initialize buckets for each declared group
|
|
327
331
|
this.parsedGroups.forEach((g) => (map[g.id] = []));
|
|
332
|
+
// always keep an ungrouped bucket
|
|
328
333
|
map['__ungrouped'] = [];
|
|
334
|
+
// only bucket fields that are currently visible
|
|
329
335
|
this.parsedFields.forEach((f) => {
|
|
336
|
+
if (!this.isFieldVisible(f)) {
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
330
339
|
const gid = f.groupId || '__ungrouped';
|
|
331
340
|
if (!map[gid]) {
|
|
332
341
|
map[gid] = [];
|
|
@@ -347,7 +356,7 @@ export class EdsForm {
|
|
|
347
356
|
return (h("div", { class: "form-group rating-field", key: field.name }, h("div", { class: "flex justify-between" }, field && (h("eds-input-label", { name: `rating-${field.name}`, label: field.label, disabled: field.disabled, required: field.required }))), h("eds-rating", { id: `rating-${field.name}`, "rating-type": field.ratingType, "rating-count": field.ratingCount, "selected-rating": val, onRating: (e) => this.handleRating(e, field) }), h("div", { class: "mt-6" }, h("eds-input-footer", { id: `${field.name}-footer`, name: field.name, message: field.message, "error-message": (_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.join('<br/>'), error: !!this.errors[field.name], link: field.link }))));
|
|
348
357
|
}
|
|
349
358
|
else if (field.type === 'nps') {
|
|
350
|
-
return (h("div", { class: "form-group nps-field", key: field.name }, h("div", { class: "flex justify-between" }, field && (h("eds-input-label", { name: `nps-${field.name}`, label: field.question, disabled: field.disabled, required: field.required }))), h("eds-nps", { id: `nps-${field.name}`, "right-label": field.rightLabel, "left-label": field.leftLabel, onNps: (e) => this.handleNPS(e, field) }), h("div", { class: "mt-6" }, h("eds-input-footer", { id: `${field.name}-footer`, name: field.name,
|
|
359
|
+
return (h("div", { class: "form-group nps-field", key: field.name }, h("div", { class: "flex justify-between" }, field && (h("eds-input-label", { name: `nps-${field.name}`, label: field.question, disabled: field.disabled, required: field.required }))), h("eds-nps", { id: `nps-${field.name}`, "right-label": field.rightLabel, "left-label": field.leftLabel, onNps: (e) => this.handleNPS(e, field) }), h("div", { class: "mt-6" }, h("eds-input-footer", { id: `${field.name}-footer`, name: field.name, "error-message": (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br/>'), error: !!this.errors[field.name] }))));
|
|
351
360
|
}
|
|
352
361
|
return (h("eds-input-field", { key: field.name, name: field.name, label: field.label, placeholder: field.placeholder, type: field.type, value: this.values[field.name], required: field.required, hint: field.hint, message: field.message, error: !!this.errors[field.name], errorMessage: (_c = this.errors[field.name]) === null || _c === void 0 ? void 0 : _c.join('<br/>'), options: field.options, onInput: (e) => this.handleInput(e, field), onChangeNative: (e) => this.handleChange(e, field) }));
|
|
353
362
|
}
|
|
@@ -358,9 +367,13 @@ export class EdsForm {
|
|
|
358
367
|
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
359
368
|
//const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
360
369
|
const buckets = this.groupedFields;
|
|
361
|
-
|
|
370
|
+
// build the shadow/bg classes if formStyle="shadow"
|
|
371
|
+
const styleClasses = this.formStyle === 'shadow'
|
|
372
|
+
? 'bg-inverse effect-shadow shadow-hover border-softer relative rounded-lg border-2 p-32'
|
|
373
|
+
: '';
|
|
374
|
+
return (h("form", { key: 'ecf49eb81f18b444d059d3bdea4600f4ae594ea9', class: styleClasses, ref: (el) => (this.formEl = el), autocomplete: "on", onSubmit: this.handleSubmit }, h("div", { key: '65137fb770f274431c7906326cdf49e0fee73b18', class: "flex flex-col gap-y-24" }, this.title && (h("span", { key: 'e4c5b4a7883c4569a657cc234f18f995480ec8df', role: "heading", class: "f-heading-04" }, this.title)), this.description && h("span", { key: '65528e4600127f1cff4ce0e5be6f8a6bddc4c864', class: "f-body-02 text-light" }, this.description), h("slot", { key: '6230035a050386763723c2b60bd5e81b912762d7' })), hiddenFields.map((field, index) => (h("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), this.parsedGroups
|
|
362
375
|
.filter((g) => Array.isArray(buckets[g.id]) && buckets[g.id].length > 0)
|
|
363
|
-
.map((g) => (h("div", { class: "container mt-
|
|
376
|
+
.map((g) => (h("div", { class: "container mt-32", key: g.id }, h("span", { class: "f-body-02" }, h("b", null, g.title)), h("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), h("div", { key: '8116d30248f8461a842365470da9915200531028', class: "flex flex-col mt-32 gap-y-24" }, buckets['__ungrouped'].map((f) => this.renderField(f))), this.formBtn && (h("div", { key: 'e2f1d3ca6a9f6a3b44c45e576150505c49e41dd1', class: "mt-32" }, h("eds-button", { key: 'e312bf08b5db526c00497fafaa9476a225919aaf', intent: this.buttonIntent, label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
|
|
364
377
|
}
|
|
365
378
|
static get is() { return "eds-form"; }
|
|
366
379
|
static get encapsulation() { return "shadow"; }
|
|
@@ -394,6 +407,40 @@ export class EdsForm {
|
|
|
394
407
|
"reflect": false,
|
|
395
408
|
"defaultValue": "'eds-form'"
|
|
396
409
|
},
|
|
410
|
+
"title": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"mutable": false,
|
|
413
|
+
"complexType": {
|
|
414
|
+
"original": "string",
|
|
415
|
+
"resolved": "string",
|
|
416
|
+
"references": {}
|
|
417
|
+
},
|
|
418
|
+
"required": false,
|
|
419
|
+
"optional": true,
|
|
420
|
+
"docs": {
|
|
421
|
+
"tags": [],
|
|
422
|
+
"text": "The title displayed above the form."
|
|
423
|
+
},
|
|
424
|
+
"attribute": "title",
|
|
425
|
+
"reflect": false
|
|
426
|
+
},
|
|
427
|
+
"description": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"mutable": false,
|
|
430
|
+
"complexType": {
|
|
431
|
+
"original": "string",
|
|
432
|
+
"resolved": "string",
|
|
433
|
+
"references": {}
|
|
434
|
+
},
|
|
435
|
+
"required": false,
|
|
436
|
+
"optional": true,
|
|
437
|
+
"docs": {
|
|
438
|
+
"tags": [],
|
|
439
|
+
"text": "The description displayed below the title."
|
|
440
|
+
},
|
|
441
|
+
"attribute": "description",
|
|
442
|
+
"reflect": false
|
|
443
|
+
},
|
|
397
444
|
"setFormUrl": {
|
|
398
445
|
"type": "boolean",
|
|
399
446
|
"mutable": false,
|
|
@@ -448,6 +495,24 @@ export class EdsForm {
|
|
|
448
495
|
"reflect": false,
|
|
449
496
|
"defaultValue": "'Submit'"
|
|
450
497
|
},
|
|
498
|
+
"buttonIntent": {
|
|
499
|
+
"type": "string",
|
|
500
|
+
"mutable": false,
|
|
501
|
+
"complexType": {
|
|
502
|
+
"original": "'primary' | 'secondary' | 'tertiary' | 'ghost'",
|
|
503
|
+
"resolved": "\"ghost\" | \"primary\" | \"secondary\" | \"tertiary\"",
|
|
504
|
+
"references": {}
|
|
505
|
+
},
|
|
506
|
+
"required": false,
|
|
507
|
+
"optional": true,
|
|
508
|
+
"docs": {
|
|
509
|
+
"tags": [],
|
|
510
|
+
"text": "Variant/style intent for the submit button (e.g., primary, secondary, tertiary, ghost)."
|
|
511
|
+
},
|
|
512
|
+
"attribute": "button-intent",
|
|
513
|
+
"reflect": false,
|
|
514
|
+
"defaultValue": "'primary'"
|
|
515
|
+
},
|
|
451
516
|
"errorMessage": {
|
|
452
517
|
"type": "string",
|
|
453
518
|
"mutable": false,
|
|
@@ -517,6 +582,24 @@ export class EdsForm {
|
|
|
517
582
|
"text": "The init data the form will attempt to populate in the provided fields."
|
|
518
583
|
},
|
|
519
584
|
"defaultValue": "{}"
|
|
585
|
+
},
|
|
586
|
+
"formStyle": {
|
|
587
|
+
"type": "string",
|
|
588
|
+
"mutable": false,
|
|
589
|
+
"complexType": {
|
|
590
|
+
"original": "'default' | 'shadow'",
|
|
591
|
+
"resolved": "\"default\" | \"shadow\"",
|
|
592
|
+
"references": {}
|
|
593
|
+
},
|
|
594
|
+
"required": false,
|
|
595
|
+
"optional": false,
|
|
596
|
+
"docs": {
|
|
597
|
+
"tags": [],
|
|
598
|
+
"text": "Choose between default layout or an always-shadow style.\nWhen \"shadow\", the form gets the same effect-shadow + shadow-hover classes"
|
|
599
|
+
},
|
|
600
|
+
"attribute": "form-style",
|
|
601
|
+
"reflect": false,
|
|
602
|
+
"defaultValue": "'default'"
|
|
520
603
|
}
|
|
521
604
|
};
|
|
522
605
|
}
|
|
@@ -4,6 +4,8 @@ export default {
|
|
|
4
4
|
component: 'eds-form',
|
|
5
5
|
argTypes: {
|
|
6
6
|
name: { control: 'text', description: 'Form name', defaultValue: 'extended-form' },
|
|
7
|
+
title: { control: 'text', description: 'Form title displayed above the form' },
|
|
8
|
+
description: { control: 'text', description: 'Form description displayed below the title' },
|
|
7
9
|
fields: {
|
|
8
10
|
control: 'object',
|
|
9
11
|
description: 'Form fields as JSON array'
|
|
@@ -21,23 +23,38 @@ export default {
|
|
|
21
23
|
control: 'text',
|
|
22
24
|
description: 'Form button Label',
|
|
23
25
|
defaultValue: 'Validate'
|
|
26
|
+
},
|
|
27
|
+
buttonIntent: {
|
|
28
|
+
control: { type: 'select' },
|
|
29
|
+
options: ['primary', 'secondary', 'tertiary', 'ghost'],
|
|
30
|
+
description: 'Variant/style intent for the submit button'
|
|
31
|
+
},
|
|
32
|
+
formStyle: {
|
|
33
|
+
control: 'select',
|
|
34
|
+
options: ['default', 'shadow']
|
|
24
35
|
}
|
|
25
36
|
}
|
|
26
37
|
};
|
|
27
38
|
const Template = (args) => html `
|
|
28
39
|
<eds-form
|
|
29
40
|
name="${args.name}"
|
|
41
|
+
title="${args.title}"
|
|
42
|
+
description="${args.description}"
|
|
30
43
|
.fields=${args.fields}
|
|
31
44
|
.groups=${args.groups}
|
|
32
45
|
.initData=${args.initData}
|
|
33
46
|
.setFormUrl=${args.setFormUrl}
|
|
34
47
|
form-btn="${args.formBtn}"
|
|
35
48
|
form-btn-label="${args.formBtnLabel}"
|
|
49
|
+
button-intent="${args.buttonIntent}"
|
|
50
|
+
form-style="${args.formStyle}"
|
|
36
51
|
></eds-form>
|
|
37
52
|
`;
|
|
38
53
|
export const Default = Template.bind({});
|
|
39
54
|
Default.args = {
|
|
40
55
|
name: 'extended-form',
|
|
56
|
+
title: 'User Details',
|
|
57
|
+
description: 'Please fill out the form below.',
|
|
41
58
|
fields: [
|
|
42
59
|
{ name: 'username', label: 'Username', type: 'text', required: true, maxlength: 10, placeholder: 'Username' },
|
|
43
60
|
{ name: 'email', label: 'Email', type: 'email', required: true },
|
|
@@ -91,12 +108,17 @@ Default.args = {
|
|
|
91
108
|
disabled: true
|
|
92
109
|
}
|
|
93
110
|
],
|
|
111
|
+
setFormUrl: true,
|
|
94
112
|
formBtn: true,
|
|
95
|
-
formBtnLabel: 'Validate'
|
|
113
|
+
formBtnLabel: 'Validate',
|
|
114
|
+
buttonIntent: 'primary',
|
|
115
|
+
formStyle: 'default'
|
|
96
116
|
};
|
|
97
117
|
export const WithGroups = Template.bind({});
|
|
98
118
|
WithGroups.args = {
|
|
99
119
|
name: 'grouped-form',
|
|
120
|
+
title: 'Grouped Form',
|
|
121
|
+
description: 'Form with grouped fields',
|
|
100
122
|
fields: [
|
|
101
123
|
{ name: 'firstName', label: 'First Name', type: 'text', required: true, groupId: 'personal' },
|
|
102
124
|
{ name: 'lastName', label: 'Last Name', type: 'text', required: true, groupId: 'personal' },
|
|
@@ -106,12 +128,17 @@ WithGroups.args = {
|
|
|
106
128
|
{ id: 'personal', title: 'Personal Info' },
|
|
107
129
|
{ id: 'comments', title: 'Comments' }
|
|
108
130
|
],
|
|
131
|
+
setFormUrl: true,
|
|
109
132
|
formBtn: true,
|
|
110
|
-
formBtnLabel: 'Submit'
|
|
133
|
+
formBtnLabel: 'Submit',
|
|
134
|
+
buttonIntent: 'secondary',
|
|
135
|
+
formStyle: 'default'
|
|
111
136
|
};
|
|
112
137
|
export const WithInitData = Template.bind({});
|
|
113
138
|
WithInitData.args = {
|
|
114
139
|
name: 'prefill-form',
|
|
140
|
+
title: 'Prefilled Form',
|
|
141
|
+
description: 'Form with initial values',
|
|
115
142
|
fields: [
|
|
116
143
|
{ name: 'username', label: 'Username', type: 'text', required: true },
|
|
117
144
|
{ name: 'email', label: 'Email', type: 'email', required: true }
|
|
@@ -123,5 +150,7 @@ WithInitData.args = {
|
|
|
123
150
|
},
|
|
124
151
|
setFormUrl: false,
|
|
125
152
|
formBtn: true,
|
|
126
|
-
formBtnLabel: 'Save'
|
|
153
|
+
formBtnLabel: 'Save',
|
|
154
|
+
buttonIntent: 'ghost',
|
|
155
|
+
formStyle: 'default'
|
|
127
156
|
};
|
|
@@ -84,7 +84,7 @@ export class EdsFrame {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
|
-
return (h("div", { key: '
|
|
87
|
+
return (h("div", { key: '665bc189cd905a55a9c6ac31eb2ec82853552f34', class: this.articleClasses() }, h("div", { key: '6ad6183a94cd0cb26d3e5641c5e584e8afc652d7', class: "effect-height flex items-center justify-between py-8 px-12" }, h("span", { key: '85bd9a7a4475ca3664cadf17ef1e729643c758f6', class: "f-ui-02" }, this.frameLabel), !this.iframeError && this.url && this.urlLabel ? (h("eds-link", { label: this.urlLabel, url: this.url, intent: this.intent, class: "ml-auto", external: true, disabled: false, icon: "arrow-diagonal" })) : null), h("div", { key: '4799d59442cabb05f3bfea26a02db22a429266e6', class: "border-softer" }, this.iframeError ? (h("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage)) : (h("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: true })))));
|
|
88
88
|
}
|
|
89
89
|
static get is() { return "eds-frame"; }
|
|
90
90
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,11 +21,16 @@ export class EdsFullscreenMenu {
|
|
|
21
21
|
this.isMenuOpen = false;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Listens
|
|
25
|
-
*
|
|
24
|
+
* Listens on `body` for `toggleheadermenu` to open/close the menu.
|
|
25
|
+
* The event detail should be a boolean (`true` = open, `false` = close).
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```js
|
|
29
|
+
* document.body.dispatchEvent(new CustomEvent('toggleheadermenu', { detail: true }));
|
|
30
|
+
* ```
|
|
26
31
|
*/
|
|
27
32
|
handleToggleMenu(event) {
|
|
28
|
-
this.isMenuOpen = event.detail;
|
|
33
|
+
this.isMenuOpen = !!event.detail;
|
|
29
34
|
}
|
|
30
35
|
/** Opens the menu */
|
|
31
36
|
openMenu() {
|
|
@@ -89,15 +94,23 @@ export class EdsFullscreenMenu {
|
|
|
89
94
|
"type": "string",
|
|
90
95
|
"mutable": false,
|
|
91
96
|
"complexType": {
|
|
92
|
-
"original": "string |
|
|
93
|
-
"resolved": "
|
|
94
|
-
"references": {
|
|
97
|
+
"original": "string | LinkItem[]",
|
|
98
|
+
"resolved": "LinkItem[] | string",
|
|
99
|
+
"references": {
|
|
100
|
+
"LinkItem": {
|
|
101
|
+
"location": "global",
|
|
102
|
+
"id": "global::LinkItem"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
95
105
|
},
|
|
96
106
|
"required": false,
|
|
97
107
|
"optional": false,
|
|
98
108
|
"docs": {
|
|
99
|
-
"tags": [
|
|
100
|
-
|
|
109
|
+
"tags": [{
|
|
110
|
+
"name": "example",
|
|
111
|
+
"text": "links='[{\"label\":\"Home\",\"url\":\"/\"},{\"label\":\"Docs\",\"url\":\"/docs\",\"icon\":\"book\"}]'"
|
|
112
|
+
}],
|
|
113
|
+
"text": "Primary navigation links.\nAccepts a JSON string or array of objects `{ label, url, icon?, external? }`."
|
|
101
114
|
},
|
|
102
115
|
"attribute": "links",
|
|
103
116
|
"reflect": false
|
|
@@ -113,8 +126,14 @@ export class EdsFullscreenMenu {
|
|
|
113
126
|
"required": false,
|
|
114
127
|
"optional": false,
|
|
115
128
|
"docs": {
|
|
116
|
-
"tags": [
|
|
117
|
-
|
|
129
|
+
"tags": [{
|
|
130
|
+
"name": "example",
|
|
131
|
+
"text": "menu-links='[{\"label\":\"Help\",\"url\":\"/help\"},{\"label\":\"Contact\",\"url\":\"/contact\"}]'"
|
|
132
|
+
}, {
|
|
133
|
+
"name": "attr",
|
|
134
|
+
"text": "menu-links"
|
|
135
|
+
}],
|
|
136
|
+
"text": "Secondary navigation links (extra menu items for small screens).\nAccepts a JSON string or array of objects `{ label, url }`."
|
|
118
137
|
},
|
|
119
138
|
"attribute": "menu-links",
|
|
120
139
|
"reflect": false
|
|
@@ -130,8 +149,14 @@ export class EdsFullscreenMenu {
|
|
|
130
149
|
"required": false,
|
|
131
150
|
"optional": false,
|
|
132
151
|
"docs": {
|
|
133
|
-
"tags": [
|
|
134
|
-
|
|
152
|
+
"tags": [{
|
|
153
|
+
"name": "default",
|
|
154
|
+
"text": "\"/\""
|
|
155
|
+
}, {
|
|
156
|
+
"name": "attr",
|
|
157
|
+
"text": "home-url"
|
|
158
|
+
}],
|
|
159
|
+
"text": "URL for the logo link in the header."
|
|
135
160
|
},
|
|
136
161
|
"attribute": "home-url",
|
|
137
162
|
"reflect": false,
|
|
@@ -148,8 +173,14 @@ export class EdsFullscreenMenu {
|
|
|
148
173
|
"required": false,
|
|
149
174
|
"optional": false,
|
|
150
175
|
"docs": {
|
|
151
|
-
"tags": [
|
|
152
|
-
|
|
176
|
+
"tags": [{
|
|
177
|
+
"name": "default",
|
|
178
|
+
"text": "false"
|
|
179
|
+
}, {
|
|
180
|
+
"name": "attr",
|
|
181
|
+
"text": "inverse-header"
|
|
182
|
+
}],
|
|
183
|
+
"text": "When true, uses an inverse (dark) header background."
|
|
153
184
|
},
|
|
154
185
|
"attribute": "inverse-header",
|
|
155
186
|
"reflect": false,
|
|
@@ -170,8 +201,11 @@ export class EdsFullscreenMenu {
|
|
|
170
201
|
"cancelable": true,
|
|
171
202
|
"composed": true,
|
|
172
203
|
"docs": {
|
|
173
|
-
"tags": [
|
|
174
|
-
|
|
204
|
+
"tags": [{
|
|
205
|
+
"name": "event",
|
|
206
|
+
"text": "menuClose"
|
|
207
|
+
}],
|
|
208
|
+
"text": "Emitted when the menu is closed (via UI or resize)."
|
|
175
209
|
},
|
|
176
210
|
"complexType": {
|
|
177
211
|
"original": "void",
|
|
@@ -56,7 +56,7 @@ export class EdsHeader {
|
|
|
56
56
|
const classes = variantClasses[this.headerVariant] || variantClasses.default;
|
|
57
57
|
// Logo color variant: default and inverse use 'color', strong uses 'color-white'
|
|
58
58
|
const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
|
|
59
|
-
return (h("header", { key: '
|
|
59
|
+
return (h("header", { key: 'a0f5bb7d9e850e9414db804019674d6bcbc8ea0b', class: `flex items-center justify-between relative z-10 ${classes}` }, h("div", { key: '678d5b1583e6fa47c0eac8ce734e8ec34cd76ad9', class: "mr-auto w-[200px] h-[85px]" }, h("eds-logo", { key: '12ce9c42b266bbddfd75d2a8f0097708480a2490', type: logoType, href: this.homeUrl })), this.parsedLinks && (h("nav", { key: 'eb388b679d4e268dc7fc011bc2a6406a619287c8', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, h("ul", { key: 'c3f8689bb257166c50dd678287c8ad4f54eb315a', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (h("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "large", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), h("slot", { key: '3f689a811a60052393a795937a908cf7d0604cc6' }), this.menuEnabled && (h("div", { key: '506b953b455b72085d83bdaafc6855992075ddbe', class: "md:hidden flex overflow-hidden px-16" }, h("eds-button", { key: '5b526affd813549a6142efab255d6486a5e2dd66', "aria-label": "Menu", intent: this.headerVariant === 'default' ? 'ghost' : 'ghostInverse', icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })))));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "eds-header"; }
|
|
62
62
|
static get encapsulation() { return "shadow"; }
|
|
@@ -133,8 +133,11 @@ export class EdsMatomoNotice {
|
|
|
133
133
|
"required": false,
|
|
134
134
|
"optional": false,
|
|
135
135
|
"docs": {
|
|
136
|
-
"tags": [
|
|
137
|
-
|
|
136
|
+
"tags": [{
|
|
137
|
+
"name": "default",
|
|
138
|
+
"text": "\"Analytics Consent\""
|
|
139
|
+
}],
|
|
140
|
+
"text": "The title displayed in the notice accordion."
|
|
138
141
|
},
|
|
139
142
|
"attribute": "title",
|
|
140
143
|
"reflect": false,
|
|
@@ -151,8 +154,11 @@ export class EdsMatomoNotice {
|
|
|
151
154
|
"required": false,
|
|
152
155
|
"optional": false,
|
|
153
156
|
"docs": {
|
|
154
|
-
"tags": [
|
|
155
|
-
|
|
157
|
+
"tags": [{
|
|
158
|
+
"name": "default",
|
|
159
|
+
"text": "\"We use anonymous analytics...\""
|
|
160
|
+
}],
|
|
161
|
+
"text": "The description displayed when the user has not yet opted in to analytics."
|
|
156
162
|
},
|
|
157
163
|
"attribute": "description",
|
|
158
164
|
"reflect": false,
|
|
@@ -169,8 +175,11 @@ export class EdsMatomoNotice {
|
|
|
169
175
|
"required": false,
|
|
170
176
|
"optional": false,
|
|
171
177
|
"docs": {
|
|
172
|
-
"tags": [
|
|
173
|
-
|
|
178
|
+
"tags": [{
|
|
179
|
+
"name": "default",
|
|
180
|
+
"text": "\"You are already part of our community...\""
|
|
181
|
+
}],
|
|
182
|
+
"text": "The description displayed when the user has already opted in to analytics."
|
|
174
183
|
},
|
|
175
184
|
"attribute": "opt-out-message",
|
|
176
185
|
"reflect": false,
|
|
@@ -187,8 +196,11 @@ export class EdsMatomoNotice {
|
|
|
187
196
|
"required": false,
|
|
188
197
|
"optional": false,
|
|
189
198
|
"docs": {
|
|
190
|
-
"tags": [
|
|
191
|
-
|
|
199
|
+
"tags": [{
|
|
200
|
+
"name": "default",
|
|
201
|
+
"text": "false"
|
|
202
|
+
}],
|
|
203
|
+
"text": "When true, the notice is forced to show regardless of cookies or session storage state.\nUseful for testing or forcing the consent UI."
|
|
192
204
|
},
|
|
193
205
|
"attribute": "force-show",
|
|
194
206
|
"reflect": false,
|
|
@@ -42,30 +42,10 @@ menu {
|
|
|
42
42
|
letter-spacing: var(--f-ui-02-letterSpacing);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.f-ui-02-light {
|
|
46
|
-
font-family: var(--f-ui-02-light-fontFamily);
|
|
47
|
-
font-weight: var(--f-ui-02-light-fontWeight);
|
|
48
|
-
font-size: var(--f-ui-02-light-fontSize);
|
|
49
|
-
line-height: var(--f-ui-02-light-lineHeight);
|
|
50
|
-
letter-spacing: var(--f-ui-02-light-letterSpacing);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.f-ui-03 {
|
|
54
|
-
font-family: var(--f-ui-03-fontFamily);
|
|
55
|
-
font-weight: var(--f-ui-03-fontWeight);
|
|
56
|
-
font-size: var(--f-ui-03-fontSize);
|
|
57
|
-
line-height: var(--f-ui-03-lineHeight);
|
|
58
|
-
letter-spacing: var(--f-ui-03-letterSpacing);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
45
|
.mt-12 {
|
|
62
46
|
margin-top: 0.75rem;
|
|
63
47
|
}
|
|
64
48
|
|
|
65
|
-
.mt-16 {
|
|
66
|
-
margin-top: 1rem;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
49
|
.inline {
|
|
70
50
|
display: inline;
|
|
71
51
|
}
|
|
@@ -49,11 +49,9 @@ export class EdsSocialNetworks {
|
|
|
49
49
|
/**
|
|
50
50
|
* Renders the component's HTML structure with links to EBRAINS social profiles.
|
|
51
51
|
* Each social network link uses the `eds-link` component with specific classes and styles.
|
|
52
|
-
*
|
|
53
|
-
* @returns {JSX.Element} The rendered JSX for the component.
|
|
54
52
|
*/
|
|
55
53
|
render() {
|
|
56
|
-
return (h("
|
|
54
|
+
return (h("nav", { key: '62692c53f820ff5d6569e42af692063ad8918cdd', "aria-label": "Social media" }, h("p", { key: 'a571612ba3c1b669e0145484bec4d480b17c1979', class: "f-ui-02" }, this.heading), h("ul", { key: 'c0cc02cd5eebf16130f7b09fb8f11319695fdccb', 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": `EBRAINS on ${network.label}`, url: network.url, icon: network.icon, intent: "strong" })))))));
|
|
57
55
|
}
|
|
58
56
|
static get is() { return "eds-social-networks"; }
|
|
59
57
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,18 +4,17 @@ export default {
|
|
|
4
4
|
argTypes: {
|
|
5
5
|
title: {
|
|
6
6
|
control: 'text',
|
|
7
|
-
defaultValue: 'Follow EBRAINS to keep up-to-date'
|
|
7
|
+
defaultValue: 'Follow EBRAINS to keep up-to-date',
|
|
8
|
+
description: 'Custom title to display above the social network links'
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
};
|
|
11
12
|
const Template = (args) => `
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
<eds-social-networks
|
|
14
|
+
title="${args.title}"
|
|
15
|
+
></eds-social-networks>
|
|
16
|
+
`;
|
|
14
17
|
export const Default = Template.bind({});
|
|
15
18
|
Default.args = {
|
|
16
19
|
title: 'Follow EBRAINS to keep up-to-date'
|
|
17
20
|
};
|
|
18
|
-
export const CustomTitle = Template.bind({});
|
|
19
|
-
CustomTitle.args = {
|
|
20
|
-
title: 'Stay Connected with EBRAINS!'
|
|
21
|
-
};
|