@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
|
@@ -1,32 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Remove the default font size and weight for headings.
|
|
3
|
-
*/
|
|
4
|
-
h1,
|
|
5
|
-
h2,
|
|
6
|
-
h3,
|
|
7
|
-
h4,
|
|
8
|
-
h5,
|
|
9
|
-
h6 {
|
|
10
|
-
font-size: inherit;
|
|
11
|
-
font-weight: inherit;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
blockquote,
|
|
15
|
-
dl,
|
|
16
|
-
dd,
|
|
17
|
-
h1,
|
|
18
|
-
h2,
|
|
19
|
-
h3,
|
|
20
|
-
h4,
|
|
21
|
-
h5,
|
|
22
|
-
h6,
|
|
23
|
-
hr,
|
|
24
|
-
figure,
|
|
25
|
-
p,
|
|
26
|
-
pre {
|
|
27
|
-
margin: 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
1
|
.steps {
|
|
31
2
|
position: sticky;
|
|
32
3
|
margin-left: 16px;
|
|
@@ -49,7 +20,7 @@ pre {
|
|
|
49
20
|
content: counter(step);
|
|
50
21
|
position: absolute;
|
|
51
22
|
left: -40px;
|
|
52
|
-
top:
|
|
23
|
+
top: -2px;
|
|
53
24
|
display: flex;
|
|
54
25
|
align-items: center;
|
|
55
26
|
justify-content: center;
|
|
@@ -66,7 +37,8 @@ pre {
|
|
|
66
37
|
}
|
|
67
38
|
|
|
68
39
|
/* Style for h4 headings inside the steps */
|
|
69
|
-
.steps h4
|
|
40
|
+
.steps h4,
|
|
41
|
+
.steps h5 {
|
|
70
42
|
counter-increment: step;
|
|
71
43
|
font-size: var(--f-heading-06-fontSize);
|
|
72
44
|
font-weight: var(--f-heading-06-fontWeight);
|
|
@@ -74,11 +46,12 @@ pre {
|
|
|
74
46
|
position: relative;
|
|
75
47
|
}
|
|
76
48
|
|
|
77
|
-
.steps h4::before
|
|
49
|
+
.steps h4::before,
|
|
50
|
+
.steps h5::before {
|
|
78
51
|
content: counter(step);
|
|
79
52
|
position: absolute;
|
|
80
53
|
left: -40px;
|
|
81
|
-
top:
|
|
54
|
+
top: -2px;
|
|
82
55
|
display: flex;
|
|
83
56
|
align-items: center;
|
|
84
57
|
justify-content: center;
|
|
@@ -275,4 +248,42 @@ pre {
|
|
|
275
248
|
--tw-space-y-reverse: 0;
|
|
276
249
|
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
|
|
277
250
|
margin-bottom: calc(1rem * var(--tw-space-y-reverse));
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.ml-8 {
|
|
254
|
+
margin-left: 0.5rem;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.gap-y-16 {
|
|
258
|
+
row-gap: 1rem;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.gap-x-16 {
|
|
262
|
+
-moz-column-gap: 1rem;
|
|
263
|
+
column-gap: 1rem;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.flex {
|
|
267
|
+
display: flex;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.grid {
|
|
271
|
+
display: grid;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.hidden {
|
|
275
|
+
display: none;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.block {
|
|
279
|
+
display: block;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.px-8 {
|
|
283
|
+
padding-left: 0.5rem;
|
|
284
|
+
padding-right: 0.5rem;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.pb-20 {
|
|
288
|
+
padding-bottom: 1.25rem;
|
|
278
289
|
}
|
|
@@ -3,14 +3,25 @@ import { parseData } from "../../utils/sharedUtils";
|
|
|
3
3
|
export class EdsStepsV2 {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.handleNext = () => {
|
|
6
|
-
|
|
7
|
-
if (this.activeStep
|
|
6
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
7
|
+
if (this.activeStep >= lastIndex) {
|
|
8
|
+
// Finish
|
|
9
|
+
this.finished.emit();
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
// Next
|
|
13
|
+
const target = this.activeStep + 1;
|
|
14
|
+
this.next.emit(target);
|
|
15
|
+
if (!this.disableNext) {
|
|
16
|
+
this.activeStep = target;
|
|
8
17
|
this.step.emit(this.activeStep);
|
|
9
18
|
}
|
|
10
19
|
};
|
|
11
20
|
this.handleBack = () => {
|
|
12
21
|
if (this.activeStep > 0) {
|
|
13
|
-
|
|
22
|
+
const target = this.activeStep - 1;
|
|
23
|
+
this.back.emit(target);
|
|
24
|
+
this.activeStep = target;
|
|
14
25
|
this.step.emit(this.activeStep);
|
|
15
26
|
}
|
|
16
27
|
};
|
|
@@ -20,6 +31,11 @@ export class EdsStepsV2 {
|
|
|
20
31
|
this.imageWidth = undefined;
|
|
21
32
|
this.bg = true;
|
|
22
33
|
this.message = undefined;
|
|
34
|
+
this.nextLabel = 'Next';
|
|
35
|
+
this.backLabel = 'Back';
|
|
36
|
+
this.finishLabel = 'Finish';
|
|
37
|
+
this.disableNext = false;
|
|
38
|
+
this.headingLevel = 'h4';
|
|
23
39
|
this.activeStep = 0;
|
|
24
40
|
}
|
|
25
41
|
componentDidLoad() {
|
|
@@ -58,24 +74,22 @@ export class EdsStepsV2 {
|
|
|
58
74
|
'border-softer effect-focus-within relative rounded-lg border-2'
|
|
59
75
|
].join(' ');
|
|
60
76
|
}
|
|
61
|
-
handleStepClick(index) {
|
|
62
|
-
this.step.emit(index);
|
|
63
|
-
// In linear mode, update the active step on header click.
|
|
64
|
-
if (this.type === 'linear') {
|
|
65
|
-
this.activeStep = index;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
77
|
/**
|
|
69
78
|
* Parses the steps property into an array of Step objects.
|
|
70
79
|
*/
|
|
71
80
|
get parsedSteps() {
|
|
72
81
|
return parseData(this.steps);
|
|
73
82
|
}
|
|
83
|
+
/** Render the semantic heading element */
|
|
84
|
+
renderHeading(title) {
|
|
85
|
+
const Tag = this.headingLevel;
|
|
86
|
+
return h(Tag, null, title);
|
|
87
|
+
}
|
|
74
88
|
render() {
|
|
75
89
|
const steps = this.parsedSteps;
|
|
76
|
-
return (h("div", { key: '
|
|
90
|
+
return (h("div", { key: '1ff00f17a85e9a3a9d7bef23694560acd77e7ee4', class: this.articleClasses() }, this.imageSrc ? (h("div", { class: "w-full mb-12 rounded-t-lg overflow-hidden border-2" }, h("eds-img", { src: this.imageSrc, width: this.imageWidth, "with-bg": "true", "lazy-load": "true", alt: "Step illustration" }))) : (this.message && (h("div", { class: "w-full bg-[#00A595] rounded-t-lg border-2" }, h("div", { class: "p-24" }, h("span", { class: "text-inverse f-heading-04 " }, this.message))))), h("div", { key: 'a0328e80df5d9447cfa5378eb9e45925f1f68c69', class: "pb-20 px-8" }, this.type === 'linear' ? (h("div", { class: "steps" }, steps.map((step, index) => (h("div", { class: index === 0 ? 'step' : 'step space-y-16', key: index }, this.renderHeading(step.title), this.activeStep === index && (h("div", { class: "content grid gap-y-16" }, h("slot", { name: `step-${index}` }, h("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter' : 'f-body-02 text-lighter', innerHTML: step.content })), h("div", { class: "flex items-center" }, h("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), h("eds-button", { label: index === steps.length - 1 ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.disableNext, size: "small", class: "ml-8" }))))))))) : (
|
|
77
91
|
// Static mode: show all steps with their content.
|
|
78
|
-
h("div", { class: "steps space-y-8" }, steps.map((step, index) => (h("div", { class: "step", key: index },
|
|
92
|
+
h("div", { class: "steps space-y-8" }, steps.map((step, index) => (h("div", { class: "step", key: index }, this.renderHeading(step.title), h("div", { class: "content" }, h("slot", { name: `step-${index}` }, h("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter', innerHTML: step.content })))))))))));
|
|
79
93
|
}
|
|
80
94
|
static get is() { return "eds-steps-v2"; }
|
|
81
95
|
static get encapsulation() { return "shadow"; }
|
|
@@ -109,7 +123,7 @@ export class EdsStepsV2 {
|
|
|
109
123
|
"optional": false,
|
|
110
124
|
"docs": {
|
|
111
125
|
"tags": [],
|
|
112
|
-
"text": "JSON string or an array of step objects.\
|
|
126
|
+
"text": "JSON string or an array of step objects.\nEach object should have a `title` and optional `content` property."
|
|
113
127
|
},
|
|
114
128
|
"attribute": "steps",
|
|
115
129
|
"reflect": false,
|
|
@@ -126,8 +140,11 @@ export class EdsStepsV2 {
|
|
|
126
140
|
"required": false,
|
|
127
141
|
"optional": false,
|
|
128
142
|
"docs": {
|
|
129
|
-
"tags": [
|
|
130
|
-
|
|
143
|
+
"tags": [{
|
|
144
|
+
"name": "default",
|
|
145
|
+
"text": "\"static\""
|
|
146
|
+
}],
|
|
147
|
+
"text": "The type of stepper:\n- `\"static\"`: shows all steps with their content.\n- `\"linear\"`: shows only one step at a time with navigation controls."
|
|
131
148
|
},
|
|
132
149
|
"attribute": "type",
|
|
133
150
|
"reflect": false,
|
|
@@ -162,7 +179,7 @@ export class EdsStepsV2 {
|
|
|
162
179
|
"optional": true,
|
|
163
180
|
"docs": {
|
|
164
181
|
"tags": [],
|
|
165
|
-
"text": "Optional image width for the eds-img component."
|
|
182
|
+
"text": "Optional image width for the `eds-img` component."
|
|
166
183
|
},
|
|
167
184
|
"attribute": "image-width",
|
|
168
185
|
"reflect": false
|
|
@@ -179,7 +196,7 @@ export class EdsStepsV2 {
|
|
|
179
196
|
"optional": false,
|
|
180
197
|
"docs": {
|
|
181
198
|
"tags": [],
|
|
182
|
-
"text": "If true, apply
|
|
199
|
+
"text": "If true, apply an inverse background to the container."
|
|
183
200
|
},
|
|
184
201
|
"attribute": "bg",
|
|
185
202
|
"reflect": false,
|
|
@@ -201,6 +218,99 @@ export class EdsStepsV2 {
|
|
|
201
218
|
},
|
|
202
219
|
"attribute": "message",
|
|
203
220
|
"reflect": false
|
|
221
|
+
},
|
|
222
|
+
"nextLabel": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"mutable": false,
|
|
225
|
+
"complexType": {
|
|
226
|
+
"original": "string",
|
|
227
|
+
"resolved": "string",
|
|
228
|
+
"references": {}
|
|
229
|
+
},
|
|
230
|
+
"required": false,
|
|
231
|
+
"optional": false,
|
|
232
|
+
"docs": {
|
|
233
|
+
"tags": [],
|
|
234
|
+
"text": "Label text for the \"Next\" button."
|
|
235
|
+
},
|
|
236
|
+
"attribute": "next-label",
|
|
237
|
+
"reflect": false,
|
|
238
|
+
"defaultValue": "'Next'"
|
|
239
|
+
},
|
|
240
|
+
"backLabel": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"mutable": false,
|
|
243
|
+
"complexType": {
|
|
244
|
+
"original": "string",
|
|
245
|
+
"resolved": "string",
|
|
246
|
+
"references": {}
|
|
247
|
+
},
|
|
248
|
+
"required": false,
|
|
249
|
+
"optional": false,
|
|
250
|
+
"docs": {
|
|
251
|
+
"tags": [],
|
|
252
|
+
"text": "Label text for the \"Back\" button."
|
|
253
|
+
},
|
|
254
|
+
"attribute": "back-label",
|
|
255
|
+
"reflect": false,
|
|
256
|
+
"defaultValue": "'Back'"
|
|
257
|
+
},
|
|
258
|
+
"finishLabel": {
|
|
259
|
+
"type": "string",
|
|
260
|
+
"mutable": false,
|
|
261
|
+
"complexType": {
|
|
262
|
+
"original": "string",
|
|
263
|
+
"resolved": "string",
|
|
264
|
+
"references": {}
|
|
265
|
+
},
|
|
266
|
+
"required": false,
|
|
267
|
+
"optional": false,
|
|
268
|
+
"docs": {
|
|
269
|
+
"tags": [],
|
|
270
|
+
"text": "Label text for the \"Finish\" button (last step in linear mode)."
|
|
271
|
+
},
|
|
272
|
+
"attribute": "finish-label",
|
|
273
|
+
"reflect": false,
|
|
274
|
+
"defaultValue": "'Finish'"
|
|
275
|
+
},
|
|
276
|
+
"disableNext": {
|
|
277
|
+
"type": "boolean",
|
|
278
|
+
"mutable": false,
|
|
279
|
+
"complexType": {
|
|
280
|
+
"original": "boolean",
|
|
281
|
+
"resolved": "boolean",
|
|
282
|
+
"references": {}
|
|
283
|
+
},
|
|
284
|
+
"required": false,
|
|
285
|
+
"optional": false,
|
|
286
|
+
"docs": {
|
|
287
|
+
"tags": [],
|
|
288
|
+
"text": "If true, disables the \"Next\" button to block progression."
|
|
289
|
+
},
|
|
290
|
+
"attribute": "disable-next",
|
|
291
|
+
"reflect": false,
|
|
292
|
+
"defaultValue": "false"
|
|
293
|
+
},
|
|
294
|
+
"headingLevel": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"mutable": false,
|
|
297
|
+
"complexType": {
|
|
298
|
+
"original": "'h3' | 'h4' | 'h5'",
|
|
299
|
+
"resolved": "\"h3\" | \"h4\" | \"h5\"",
|
|
300
|
+
"references": {}
|
|
301
|
+
},
|
|
302
|
+
"required": false,
|
|
303
|
+
"optional": false,
|
|
304
|
+
"docs": {
|
|
305
|
+
"tags": [{
|
|
306
|
+
"name": "default",
|
|
307
|
+
"text": "\"h4\""
|
|
308
|
+
}],
|
|
309
|
+
"text": "Heading level to use for each step title."
|
|
310
|
+
},
|
|
311
|
+
"attribute": "heading-level",
|
|
312
|
+
"reflect": true,
|
|
313
|
+
"defaultValue": "'h4'"
|
|
204
314
|
}
|
|
205
315
|
};
|
|
206
316
|
}
|
|
@@ -217,8 +327,74 @@ export class EdsStepsV2 {
|
|
|
217
327
|
"cancelable": true,
|
|
218
328
|
"composed": true,
|
|
219
329
|
"docs": {
|
|
220
|
-
"tags": [
|
|
221
|
-
|
|
330
|
+
"tags": [{
|
|
331
|
+
"name": "event",
|
|
332
|
+
"text": "step"
|
|
333
|
+
}, {
|
|
334
|
+
"name": "payload",
|
|
335
|
+
"text": "{number} The index of the new active step."
|
|
336
|
+
}],
|
|
337
|
+
"text": "Emitted when the active step changes."
|
|
338
|
+
},
|
|
339
|
+
"complexType": {
|
|
340
|
+
"original": "number",
|
|
341
|
+
"resolved": "number",
|
|
342
|
+
"references": {}
|
|
343
|
+
}
|
|
344
|
+
}, {
|
|
345
|
+
"method": "finished",
|
|
346
|
+
"name": "finished",
|
|
347
|
+
"bubbles": true,
|
|
348
|
+
"cancelable": true,
|
|
349
|
+
"composed": true,
|
|
350
|
+
"docs": {
|
|
351
|
+
"tags": [{
|
|
352
|
+
"name": "event",
|
|
353
|
+
"text": "finished"
|
|
354
|
+
}],
|
|
355
|
+
"text": "Emitted when the \"Finish\" button is clicked (last step in linear mode)."
|
|
356
|
+
},
|
|
357
|
+
"complexType": {
|
|
358
|
+
"original": "void",
|
|
359
|
+
"resolved": "void",
|
|
360
|
+
"references": {}
|
|
361
|
+
}
|
|
362
|
+
}, {
|
|
363
|
+
"method": "next",
|
|
364
|
+
"name": "next",
|
|
365
|
+
"bubbles": true,
|
|
366
|
+
"cancelable": true,
|
|
367
|
+
"composed": true,
|
|
368
|
+
"docs": {
|
|
369
|
+
"tags": [{
|
|
370
|
+
"name": "event",
|
|
371
|
+
"text": "next"
|
|
372
|
+
}, {
|
|
373
|
+
"name": "payload",
|
|
374
|
+
"text": "{number} The target step index."
|
|
375
|
+
}],
|
|
376
|
+
"text": "Emitted when the \"Next\" button is clicked."
|
|
377
|
+
},
|
|
378
|
+
"complexType": {
|
|
379
|
+
"original": "number",
|
|
380
|
+
"resolved": "number",
|
|
381
|
+
"references": {}
|
|
382
|
+
}
|
|
383
|
+
}, {
|
|
384
|
+
"method": "back",
|
|
385
|
+
"name": "back",
|
|
386
|
+
"bubbles": true,
|
|
387
|
+
"cancelable": true,
|
|
388
|
+
"composed": true,
|
|
389
|
+
"docs": {
|
|
390
|
+
"tags": [{
|
|
391
|
+
"name": "event",
|
|
392
|
+
"text": "back"
|
|
393
|
+
}, {
|
|
394
|
+
"name": "payload",
|
|
395
|
+
"text": "{number} The target step index."
|
|
396
|
+
}],
|
|
397
|
+
"text": "Emitted when the \"Back\" button is clicked."
|
|
222
398
|
},
|
|
223
399
|
"complexType": {
|
|
224
400
|
"original": "number",
|
|
@@ -30,6 +30,29 @@ export default {
|
|
|
30
30
|
message: {
|
|
31
31
|
control: 'text',
|
|
32
32
|
description: 'Message to display if no image is provided'
|
|
33
|
+
},
|
|
34
|
+
headingLevel: {
|
|
35
|
+
name: 'heading-level',
|
|
36
|
+
control: { type: 'select' },
|
|
37
|
+
options: ['h3', 'h4', 'h5'],
|
|
38
|
+
description: 'Semantic heading tag to render for each step title',
|
|
39
|
+
defaultValue: 'h4'
|
|
40
|
+
},
|
|
41
|
+
nextLabel: {
|
|
42
|
+
control: 'text',
|
|
43
|
+
description: 'Label for the Next button (linear)'
|
|
44
|
+
},
|
|
45
|
+
backLabel: {
|
|
46
|
+
control: 'text',
|
|
47
|
+
description: 'Label for the Back button (linear)'
|
|
48
|
+
},
|
|
49
|
+
finishLabel: {
|
|
50
|
+
control: 'text',
|
|
51
|
+
description: 'Label for the Finish button on the last step (linear)'
|
|
52
|
+
},
|
|
53
|
+
disableNext: {
|
|
54
|
+
control: 'boolean',
|
|
55
|
+
description: 'Disable Next/Finish to block progression (linear)'
|
|
33
56
|
}
|
|
34
57
|
},
|
|
35
58
|
args: {
|
|
@@ -41,12 +64,29 @@ export default {
|
|
|
41
64
|
type: 'static',
|
|
42
65
|
imageSrc: '',
|
|
43
66
|
bg: true,
|
|
44
|
-
message: 'No image available'
|
|
67
|
+
message: 'No image available',
|
|
68
|
+
headingLevel: 'h4',
|
|
69
|
+
nextLabel: 'Next',
|
|
70
|
+
backLabel: 'Back',
|
|
71
|
+
finishLabel: 'Finish',
|
|
72
|
+
disableNext: false
|
|
45
73
|
}
|
|
46
74
|
};
|
|
47
|
-
const Template = ({ steps, type, imageSrc, bg, message }) => html `
|
|
48
|
-
<div class="
|
|
49
|
-
<eds-steps-v2
|
|
75
|
+
const Template = ({ steps, type, imageSrc, imageWidth, bg, message, headingLevel, nextLabel, backLabel, finishLabel, disableNext }) => html `
|
|
76
|
+
<div class="grid grid-layout grid-cols-2">
|
|
77
|
+
<eds-steps-v2
|
|
78
|
+
.steps=${steps}
|
|
79
|
+
type="${type}"
|
|
80
|
+
.imageSrc=${imageSrc}
|
|
81
|
+
.imageWidth=${imageWidth}
|
|
82
|
+
?bg=${bg}
|
|
83
|
+
message="${message || ''}"
|
|
84
|
+
heading-level="${headingLevel}"
|
|
85
|
+
next-label="${nextLabel}"
|
|
86
|
+
back-label="${backLabel}"
|
|
87
|
+
finish-label="${finishLabel}"
|
|
88
|
+
?disable-next=${disableNext}
|
|
89
|
+
></eds-steps-v2>
|
|
50
90
|
</div>
|
|
51
91
|
`;
|
|
52
92
|
export const Static = Template.bind({});
|
|
@@ -61,6 +101,7 @@ WithImage.storyName = 'With Image';
|
|
|
61
101
|
WithImage.args = {
|
|
62
102
|
type: 'static',
|
|
63
103
|
imageSrc: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg',
|
|
104
|
+
imageWidth: 960,
|
|
64
105
|
message: ''
|
|
65
106
|
};
|
|
66
107
|
export const WithMessage = Template.bind({});
|
|
@@ -77,3 +118,23 @@ Linear.args = {
|
|
|
77
118
|
imageSrc: '',
|
|
78
119
|
message: ''
|
|
79
120
|
};
|
|
121
|
+
export const LinearBlocked = Template.bind({});
|
|
122
|
+
LinearBlocked.storyName = 'Linear (Next Disabled)';
|
|
123
|
+
LinearBlocked.args = {
|
|
124
|
+
type: 'linear',
|
|
125
|
+
disableNext: true
|
|
126
|
+
};
|
|
127
|
+
export const CustomLabels = Template.bind({});
|
|
128
|
+
CustomLabels.storyName = 'Linear (Custom Labels)';
|
|
129
|
+
CustomLabels.args = {
|
|
130
|
+
type: 'linear',
|
|
131
|
+
nextLabel: 'Continue',
|
|
132
|
+
backLabel: 'Previous',
|
|
133
|
+
finishLabel: 'Create Form'
|
|
134
|
+
};
|
|
135
|
+
export const HeadingLevels = Template.bind({});
|
|
136
|
+
HeadingLevels.storyName = 'Static (Heading Levels)';
|
|
137
|
+
HeadingLevels.args = {
|
|
138
|
+
type: 'static',
|
|
139
|
+
headingLevel: 'h3'
|
|
140
|
+
};
|
|
@@ -170,12 +170,12 @@ export class EdsTabs {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
render() {
|
|
173
|
-
return (h("div", { key: '
|
|
173
|
+
return (h("div", { key: '7cb51cf475d45ee3e43877ee4d42565f5930613a', id: `${this.identifier}` }, h("div", { key: '4f3c6d23f9084f07e5728b72310b96798d20b724', class: "scroller-x overflow-x-auto relative z-[1] mx-auto px-16 pt-8 lg:px-28 after:border-soft before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, h("nav", { key: '4d55e72e9f437cef8be06931445f619196a973a7', role: "tablist", ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
174
174
|
const TabComponent = 'button';
|
|
175
175
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
176
176
|
const isActive = index === this.activeIndex;
|
|
177
177
|
return (h(TabComponent, Object.assign({}, tabProps, { type: "button", role: "tab", "aria-selected": tab.active ? 'true' : 'false', tabIndex: isActive ? 0 : -1, "aria-label": tab.ariaLabel || tab.label, "aria-controls": `panel-${index}`, id: `tab-${index}`, ref: (el) => this.setTabRef(el, index), onClick: () => this.handleTabClick(index, tab.label, true), onKeyDown: (e) => this.onKeyDown(e, index) }), tab.label || tab.ariaLabel));
|
|
178
|
-
}))), h("div", { key: '
|
|
178
|
+
}))), h("div", { key: 'e75f877da39c25e912853fea5dc2438fc15c67b5', class: "tab-panels" }, this.parsedTabs.map((_, index) => (h("div", { role: "tabpanel", id: `panel-${index}`, "aria-labelledby": `tab-${index}`, hidden: index !== this.activeIndex, tabIndex: index === this.activeIndex ? 0 : -1, class: "effect-focus" }, h("slot", { name: `panel-${index}` })))))));
|
|
179
179
|
}
|
|
180
180
|
static get is() { return "eds-tabs"; }
|
|
181
181
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,7 +31,7 @@ export class EdsToastManager {
|
|
|
31
31
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: '27172b1f3c76ebb460c35ea070eeff330390ed7d', class: "toast-container" }, this.toasts.map((t) => (h("div", { key: t.id }, h("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "eds-toast-manager"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,7 +7,12 @@ import { h } from "@stencil/core";
|
|
|
7
7
|
*/
|
|
8
8
|
export class EdsUser {
|
|
9
9
|
constructor() {
|
|
10
|
+
this.handleDropdown = (e) => {
|
|
11
|
+
this.expanded = e.detail.expanded;
|
|
12
|
+
};
|
|
10
13
|
this.user = undefined;
|
|
14
|
+
this.intent = 'tertiary';
|
|
15
|
+
this.expanded = false;
|
|
11
16
|
}
|
|
12
17
|
/**
|
|
13
18
|
* Helper getter to ensure we work with a User object.
|
|
@@ -33,7 +38,8 @@ export class EdsUser {
|
|
|
33
38
|
}
|
|
34
39
|
render() {
|
|
35
40
|
const user = this.parsedUser;
|
|
36
|
-
|
|
41
|
+
const iconName = this.expanded ? 'chevron-down' : 'chevron-right';
|
|
42
|
+
return (h("div", { key: '965387104c4bd6cd3223c08f16d90146c098594c', class: "block" }, h("div", { key: '37fe5539cb058112ebe0d910439acb55b5abccd8', class: "flex items-center" }, h("eds-dropdown", { key: '17afc8dbae191aec1202ba04d85c41ed656a8c5b', label: `Hi, ${user.preferred_username}`, intent: this.intent, "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: iconName, class: "text-default", onDropdown: this.handleDropdown }, h("div", { key: '0228c1728b0b73e2504d2608339f9be408be09b8', class: "min-w-[280px] p-8" }, h("div", { key: 'b83148ff8249bde91842b036da5506f9f5cbb145', class: "flex gap-x-16" }, h("eds-avatar", { key: '243a05bae2e4e592dc386b1897d824232d0bcfa6', "first-name": user.given_name, "last-name": user.family_name, initials: this.initials, color: "black" }), h("div", { key: '6938f54621aa89e61aa6639e8c88af4e262e0fec', class: "max-w-full" }, user.name && h("p", { key: '224ce5cf6819a9dd0c3794410a94da30cc4213bf', class: "f-ui-01 text-default w-full text-ellipsis" }, user.name), user.preferred_username && h("p", { key: '096ac761149763ef4305ef5e9bf1f4b593a0fe4f', class: "f-ui-03-light text-light mt-4" }, user.preferred_username), user.email && h("p", { key: '79f7da3c6c5efc1f521991c403184cf050b3d2e7', class: "f-ui-03-light text-light mt-4" }, user.email))), h("div", { key: '52ce98bcc290902605ebd427ee8ab72ac9af3d62', class: "text-default flex w-full flex-col gap-y-8" }, h("slot", { key: '88d1b250c434830347e0eb813214382ce899c485' })))))));
|
|
37
43
|
}
|
|
38
44
|
static get is() { return "eds-user"; }
|
|
39
45
|
static get encapsulation() { return "shadow"; }
|
|
@@ -70,8 +76,36 @@ export class EdsUser {
|
|
|
70
76
|
},
|
|
71
77
|
"attribute": "user",
|
|
72
78
|
"reflect": false
|
|
79
|
+
},
|
|
80
|
+
"intent": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"mutable": false,
|
|
83
|
+
"complexType": {
|
|
84
|
+
"original": "Intent",
|
|
85
|
+
"resolved": "\"ghost\" | \"primary\" | \"secondary\" | \"tertiary\"",
|
|
86
|
+
"references": {
|
|
87
|
+
"Intent": {
|
|
88
|
+
"location": "global",
|
|
89
|
+
"id": "global::Intent"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": false,
|
|
94
|
+
"optional": false,
|
|
95
|
+
"docs": {
|
|
96
|
+
"tags": [],
|
|
97
|
+
"text": "Visual intent of the trigger button"
|
|
98
|
+
},
|
|
99
|
+
"attribute": "intent",
|
|
100
|
+
"reflect": false,
|
|
101
|
+
"defaultValue": "'tertiary'"
|
|
73
102
|
}
|
|
74
103
|
};
|
|
75
104
|
}
|
|
105
|
+
static get states() {
|
|
106
|
+
return {
|
|
107
|
+
"expanded": {}
|
|
108
|
+
};
|
|
109
|
+
}
|
|
76
110
|
static get elementRef() { return "hostEl"; }
|
|
77
111
|
}
|
|
@@ -27,7 +27,7 @@ export class EdsAppRoot {
|
|
|
27
27
|
this.combinedInitPromise = Promise.all([initKeycloakPromise, authStatusPromise]);
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h("div", { key: '
|
|
30
|
+
return (h("div", { key: '01c80f8c47f13066a4b9e6978951c2a264efbd15' }, h("eds-splash-screen", { key: 'bb17fc106515c71c7d70196a933301987c69ae4b', inverse: true, initPromise: this.combinedInitPromise }), h("eds-login", { key: 'dbedc547296adc5ca8c9c9ff3e7c85e33e104e92', "keycloak-url": "http://localhost:8080", "keycloak-realm": "nigeor-realm", "keycloak-client-id": "stencil-app" }), h("main", { key: '24ce16d73eb316e5fdbc0a3bdd16b44cc6a740a4' }, this.isAuthenticated ? h("h1", null, "Welcome, authenticated user!") : h("h1", null, "Please log in."))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "eds-app-root"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -78,9 +78,10 @@ isFieldVisible) {
|
|
|
78
78
|
const npsEl = findNpsElement(formEl);
|
|
79
79
|
if (npsEl && npsEl.shadowRoot) {
|
|
80
80
|
const raw = (_a = npsEl.shadowRoot
|
|
81
|
-
.querySelector('
|
|
82
|
-
const
|
|
83
|
-
|
|
81
|
+
.querySelector('eds-button[tabindex="0"]')) === null || _a === void 0 ? void 0 : _a.getAttribute('aria-label');
|
|
82
|
+
const parsed = raw !== null ? parseInt(raw, 10) : NaN;
|
|
83
|
+
const value = Number.isInteger(parsed) && parsed >= 0 && parsed <= 10 ? parsed : NaN;
|
|
84
|
+
if (isNaN(value)) {
|
|
84
85
|
// eslint-disable-next-line
|
|
85
86
|
if (field.required) {
|
|
86
87
|
errors[field.name] = ['This field is required.'];
|
|
@@ -37,7 +37,7 @@ const DocsOverview = () => (h("div", { class: "static-content container" },
|
|
|
37
37
|
}
|
|
38
38
|
] }),
|
|
39
39
|
h("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
|
|
40
|
-
h("eds-code-block", { code: '<eds-button
|
|
40
|
+
h("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"></eds-button>', language: "html", "copy-label": "Copy Code" }),
|
|
41
41
|
h("h2", null, "Load the variables and styles"),
|
|
42
42
|
h("p", null,
|
|
43
43
|
"To directly use only the produced variables (colors, breakpoints, typography) add the tag below to the",
|
|
@@ -55,9 +55,7 @@ const DocsOverview = () => (h("div", { class: "static-content container" },
|
|
|
55
55
|
"Note that, loading either the variables or the predefined CSS framework above,",
|
|
56
56
|
' ',
|
|
57
57
|
h("b", null, "automatically loads the fonts so you can skip loading them separately"),
|
|
58
|
-
".
|
|
59
|
-
h("code", null, "head")),
|
|
60
|
-
h("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/base/fonts.css"/>', language: "css", "copy-label": "Copy Code" })));
|
|
58
|
+
".")));
|
|
61
59
|
|
|
62
60
|
const DocsInstallation = () => (h("div", null,
|
|
63
61
|
h("p", null, "Before proceeding, ensure that Node.js is installed on your machine\u2014you can download the latest version from the official website. If your project doesn\u2019t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),
|
|
@@ -143,7 +141,7 @@ const ComponentsSection$1 = /*@__PURE__*/ proxyCustomElement(class ComponentsSec
|
|
|
143
141
|
}
|
|
144
142
|
}
|
|
145
143
|
render() {
|
|
146
|
-
return h("div", { key: '
|
|
144
|
+
return h("div", { key: 'a5c54560de99e81caaabafc4342522602ffe35a1', class: "container" }, this.renderContent());
|
|
147
145
|
}
|
|
148
146
|
}, [0, "components-section", {
|
|
149
147
|
"tabIndex": [2, "tab-index"]
|