@ebrains/components 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
- package/dist/cjs/components-section.cjs.entry.js +1 -1
- 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/{eds-accordion_52.cjs.entry.js → eds-accordion_53.cjs.entry.js} +847 -207
- 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-frame.cjs.entry.js +1 -1
- package/dist/cjs/eds-gauge.cjs.entry.js +1 -1
- package/dist/cjs/eds-gitlab-contributors.cjs.entry.js +9 -2
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-eu.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-mastodon.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
- package/dist/cjs/eds-input-search.cjs.entry.js +76 -0
- package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
- 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-badge.cjs.entry.js +181 -0
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/index-50bc1aa4.js +10 -2
- 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 +1 -1
- 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 +4 -1
- package/dist/collection/components/eds-accordion/eds-accordion.css +3 -2
- package/dist/collection/components/eds-accordion/eds-accordion.js +1 -1
- package/dist/collection/components/eds-accordion/eds-accordion.stories.js +7 -19
- package/dist/collection/components/eds-alert/eds-alert.stories.js +19 -147
- package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
- package/dist/collection/components/eds-avatar/eds-avatar.stories.js +2 -2
- package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +1 -1
- package/dist/collection/components/eds-button/eds-button.css +15 -0
- package/dist/collection/components/eds-button/eds-button.js +13 -6
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-cta/eds-card-cta.css +10 -1
- package/dist/collection/components/eds-cards/eds-card-cta/eds-card-cta.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-feature/eds-card-feature.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-hero/eds-card-hero.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-stat/eds-card-stat.js +1 -1
- package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +1 -1
- package/dist/collection/components/eds-code-block/eds-code-block.js +1 -1
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +30 -4
- package/dist/collection/components/eds-feedback/eds-feedback.js +1 -1
- package/dist/collection/components/eds-footer/eds-footer.css +143 -203
- package/dist/collection/components/eds-footer/eds-footer.js +173 -76
- package/dist/collection/components/eds-footer/eds-footer.stories.js +108 -15
- package/dist/collection/components/eds-form/eds-form.css +37 -1
- package/dist/collection/components/eds-form/eds-form.js +45 -7
- package/dist/collection/components/eds-frame/eds-frame.js +1 -1
- package/dist/collection/components/eds-header/eds-header.js +1 -1
- package/dist/collection/components/eds-header/eds-header.stories.js +26 -12
- package/dist/collection/components/eds-icon-wrapper/eds-icon-wrapper.js +20 -1
- package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.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-img/eds-img.stories.js +29 -52
- package/dist/collection/components/eds-input-dropzone/eds-input-dropzone.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +20 -2
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.css +29 -0
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +2 -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-search/eds-input-search.stories.js +30 -0
- 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 +11 -5
- package/dist/collection/components/eds-input-field/eds-input-field.stories.js +82 -130
- package/dist/collection/components/eds-input-file/eds-input-file.js +1 -1
- package/dist/collection/components/eds-link/eds-link.js +1 -1
- package/dist/collection/components/eds-link/eds-link.stories.js +13 -8
- package/dist/collection/components/eds-logo/eds-logo.js +1 -1
- package/dist/collection/components/eds-modal/eds-modal.stories.js +9 -8
- package/dist/collection/components/eds-nps/eds-nps.css +32 -0
- package/dist/collection/components/eds-nps/eds-nps.js +3 -3
- package/dist/collection/components/eds-pagination/eds-pagination.js +2 -2
- package/dist/collection/components/eds-rating/eds-rating.css +9 -0
- 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-sidebar/eds-sidebar.js +2 -2
- package/dist/collection/components/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
- package/dist/collection/components/eds-steps-v2/eds-steps-v2.js +1 -1
- package/dist/collection/components/eds-table/eds-table.css +21 -4
- package/dist/collection/components/eds-table/eds-table.js +17 -50
- package/dist/collection/components/eds-table/eds-table.stories.js +5 -109
- package/dist/collection/components/eds-tabs/eds-tabs.css +7 -1
- package/dist/collection/components/eds-tabs/eds-tabs.js +47 -9
- 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-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.stories.js +1 -1
- package/dist/collection/components/eds-user/eds-user.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/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-gitlab-contributors/eds-gitlab-contributors.css +19 -0
- package/dist/collection/shared-ui/eds-gitlab-contributors/eds-gitlab-contributors.js +8 -1
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.css +166 -0
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.js +62 -6
- package/dist/collection/shared-ui/eds-kg-learning-resources/eds-kg-learning-resources.css +205 -0
- package/dist/collection/shared-ui/eds-kg-learning-resources/eds-kg-learning-resources.js +257 -0
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.css +23 -102
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +7 -1
- package/dist/collection/shared-ui/eds-search-select/eds-search-select.css +203 -0
- package/dist/collection/shared-ui/eds-search-select/eds-search-select.js +685 -0
- package/dist/collection/shared-ui/eds-search-select/eds-search-select.stories.js +85 -0
- package/dist/collection/shared-ui/eds-trl-badge/ebrains-mark.js +26 -0
- package/dist/collection/shared-ui/eds-trl-badge/eds-trl-badge.css +22 -0
- package/dist/collection/shared-ui/eds-trl-badge/eds-trl-badge.js +321 -0
- package/dist/collection/shared-ui/eds-trl-badge/eds-trl-badge.stories.js +96 -0
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/collection/utils/eds-form/formValidators.js +2 -1
- package/dist/collection/utils/eds-form/safeFormat.js +39 -0
- package/dist/components/components-section.js +1 -1
- package/dist/components/components.css +3 -4
- 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/eds-accordion2.js +2 -2
- package/dist/components/eds-app-root.js +1 -1
- package/dist/components/eds-avatar2.js +1 -1
- package/dist/components/eds-block-break2.js +1 -1
- package/dist/components/eds-breadcrumb.js +1 -1
- package/dist/components/eds-button2.js +12 -5
- package/dist/components/eds-card-cta.js +2 -2
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-feature.js +1 -1
- package/dist/components/eds-card-generic2.js +1 -1
- package/dist/components/eds-card-hero.js +1 -1
- package/dist/components/eds-card-stat.js +1 -1
- package/dist/components/eds-code-block2.js +1 -1
- package/dist/components/eds-cookies-preference.js +1 -1
- package/dist/components/eds-dropdown2.js +30 -4
- package/dist/components/eds-feedback.js +1 -1
- package/dist/components/eds-footer2.js +115 -26
- package/dist/components/eds-form.js +61 -23
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-gauge.js +1 -1
- package/dist/components/eds-gitlab-contributors.js +9 -2
- package/dist/components/eds-global-search.js +48 -69
- package/dist/components/eds-header.js +1 -1
- package/dist/components/eds-icon-bluesky.js +1 -1
- package/dist/components/eds-icon-eu.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-mastodon.js +1 -1
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-wrapper2.js +5 -2
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +2 -2
- package/dist/components/eds-input-dropzone2.js +1 -1
- package/dist/components/eds-input-field2.js +25 -25
- package/dist/components/eds-input-file2.js +1 -1
- package/dist/components/eds-input-footer2.js +43 -3
- package/dist/components/eds-input-label2.js +1 -1
- package/dist/components/eds-input-range2.js +1 -1
- package/dist/components/eds-input-search.js +100 -1
- package/dist/components/eds-input-select2.js +2 -2
- package/dist/components/eds-input2.js +4 -2
- package/dist/components/eds-kg-learning-resources.d.ts +11 -0
- package/dist/components/eds-kg-learning-resources.js +221 -0
- package/dist/components/eds-kg-web-services-select2.js +16 -22
- package/dist/components/eds-link2.js +1 -1
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-matomo-notice2.js +8 -2
- package/dist/components/eds-nps2.js +4 -4
- package/dist/components/eds-pagination2.js +2 -2
- package/dist/components/eds-rating2.js +3 -3
- package/dist/components/eds-search-select.d.ts +11 -0
- package/dist/components/eds-search-select.js +6 -0
- package/dist/components/eds-search-select2.js +361 -0
- package/dist/components/eds-section-core2.js +1 -1
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-sidebar.js +2 -2
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-steps-v2.js +1 -1
- package/dist/components/eds-table2.js +31 -53
- package/dist/components/eds-tabs.js +48 -10
- 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-tooltip2.js +1 -1
- package/dist/components/eds-trl-badge.d.ts +11 -0
- package/dist/components/eds-trl-badge.js +204 -0
- package/dist/components/eds-user.js +1 -1
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/logo-space.js +19 -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-00ba405d.entry.js +1 -0
- package/dist/components/p-03342030.entry.js +1 -0
- package/dist/components/{p-0fe10e6c.entry.js → p-0e2bac0f.entry.js} +1 -1
- package/dist/components/{p-7aa4edef.entry.js → p-12acc48d.entry.js} +1 -1
- package/dist/components/p-18399fe1.entry.js +1 -0
- package/dist/components/p-1e6f0572.entry.js +1 -0
- package/dist/components/{p-c46675c8.entry.js → p-1fbcc480.entry.js} +1 -1
- package/dist/components/{p-dfe93385.entry.js → p-25729ade.entry.js} +1 -1
- package/dist/components/p-27e093c3.entry.js +1 -0
- package/dist/components/{p-a6dc1f88.entry.js → p-37ef07d9.entry.js} +1 -1
- package/dist/components/{p-74b9c9a8.entry.js → p-3d1bb2fe.entry.js} +1 -1
- package/dist/components/{p-940a2d42.entry.js → p-42791331.entry.js} +1 -1
- package/dist/components/p-5ff4b1d0.entry.js +1 -0
- package/dist/components/{p-d16b5363.entry.js → p-62580004.entry.js} +1 -1
- package/dist/components/{p-d2576747.entry.js → p-62f53e7a.entry.js} +1 -1
- package/dist/components/p-6be1730a.entry.js +1 -0
- package/dist/components/p-786ff09b.entry.js +1 -0
- package/dist/components/p-80a32e20.entry.js +1 -0
- package/dist/components/p-85476a6f.entry.js +9 -0
- package/dist/components/{p-a63e14bb.entry.js → p-8a483358.entry.js} +1 -1
- package/dist/components/{p-04e9c2d7.entry.js → p-b1a10842.entry.js} +1 -1
- package/dist/components/p-bdcb71e1.entry.js +1 -0
- package/dist/components/p-c2127276.entry.js +1 -0
- package/dist/components/p-c3ee9163.entry.js +1 -0
- package/dist/components/{p-f55dd314.entry.js → p-c4cfbf98.entry.js} +1 -1
- package/dist/components/p-c65082fe.entry.js +1 -0
- package/dist/components/p-cc096938.entry.js +1 -0
- package/dist/components/p-d59d6fda.entry.js +1 -0
- package/dist/components/p-e027bc90.entry.js +1 -0
- package/dist/components/{p-f364296f.entry.js → p-e339d0b5.entry.js} +1 -1
- package/dist/components/{p-0d7aee0b.entry.js → p-e4df206e.entry.js} +1 -1
- package/dist/components/{p-c2fc62f7.entry.js → p-e71a4f29.entry.js} +1 -1
- package/dist/components/{p-773bd015.entry.js → p-e9e6ec19.entry.js} +1 -1
- package/dist/components/p-f4d2f882.entry.js +1 -0
- package/dist/components/{p-d1b3aa52.entry.js → p-f9a9fa34.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 +19 -25
- 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 +1 -1
- 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/{eds-accordion_52.entry.js → eds-accordion_53.entry.js} +846 -207
- 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-frame.entry.js +1 -1
- package/dist/esm/eds-gauge.entry.js +1 -1
- package/dist/esm/eds-gitlab-contributors.entry.js +9 -2
- package/dist/esm/eds-icon-bluesky.entry.js +1 -1
- package/dist/esm/eds-icon-eu.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-mastodon.entry.js +1 -1
- package/dist/esm/eds-icon-twitter.entry.js +1 -1
- package/dist/esm/eds-icon-youtube.entry.js +1 -1
- package/dist/{components/eds-input-search2.js → esm/eds-input-search.entry.js} +9 -39
- package/dist/esm/eds-section-core_2.entry.js +3 -3
- package/dist/esm/eds-timeline.entry.js +1 -1
- package/dist/esm/eds-toast-manager.entry.js +1 -1
- package/dist/esm/eds-trl-badge.entry.js +177 -0
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/index-870ab08f.js +10 -2
- 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 +1 -1
- 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 +1222 -207
- package/dist/hydrate/index.mjs +1222 -207
- package/dist/types/components/eds-accordion/eds-accordion.stories.d.ts +4 -8
- package/dist/types/components/eds-alert/eds-alert.stories.d.ts +7 -73
- package/dist/types/components/eds-button/eds-button.d.ts +1 -1
- package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +1 -0
- package/dist/types/components/eds-footer/eds-footer.d.ts +84 -55
- package/dist/types/components/eds-footer/eds-footer.stories.d.ts +62 -1
- package/dist/types/components/eds-form/eds-form.d.ts +10 -0
- package/dist/types/components/eds-header/eds-header.stories.d.ts +6 -6
- package/dist/types/components/eds-icon-wrapper/eds-icon-wrapper.d.ts +8 -0
- package/dist/types/components/eds-img/eds-img.stories.d.ts +6 -20
- package/dist/types/components/eds-input-elements/eds-input/eds-input.d.ts +7 -0
- package/dist/types/components/eds-input-elements/eds-input-search/eds-input-search.stories.d.ts +36 -0
- package/dist/types/components/eds-input-field/eds-input-field.stories.d.ts +97 -38
- package/dist/types/components/eds-link/eds-link.stories.d.ts +9 -6
- package/dist/types/components/eds-table/eds-table.d.ts +8 -14
- package/dist/types/components/eds-table/eds-table.stories.d.ts +0 -107
- package/dist/types/components/eds-tabs/eds-tabs.d.ts +10 -0
- package/dist/types/components.d.ts +507 -86
- package/dist/types/shared-ui/eds-global-search/eds-global-search.d.ts +12 -0
- package/dist/types/shared-ui/eds-kg-learning-resources/eds-kg-learning-resources.d.ts +60 -0
- package/dist/types/shared-ui/eds-search-select/eds-search-select.d.ts +98 -0
- package/dist/types/shared-ui/eds-search-select/eds-search-select.stories.d.ts +81 -0
- package/dist/types/shared-ui/eds-trl-badge/ebrains-mark.d.ts +7 -0
- package/dist/types/shared-ui/eds-trl-badge/eds-trl-badge.d.ts +54 -0
- package/dist/types/shared-ui/eds-trl-badge/eds-trl-badge.stories.d.ts +112 -0
- package/dist/types/utils/eds-form/safeFormat.d.ts +21 -0
- package/package.json +1 -1
- package/dist/components/p-18e852e1.entry.js +0 -1
- package/dist/components/p-3ccd6948.entry.js +0 -1
- package/dist/components/p-3d3841d6.entry.js +0 -1
- package/dist/components/p-3f38df99.entry.js +0 -1
- package/dist/components/p-527e71d0.entry.js +0 -1
- package/dist/components/p-55047f7f.entry.js +0 -9
- package/dist/components/p-64c23098.entry.js +0 -1
- package/dist/components/p-7b93a385.entry.js +0 -1
- package/dist/components/p-878f65a6.entry.js +0 -1
- package/dist/components/p-92f6d9c0.entry.js +0 -1
- package/dist/components/p-9eedf771.entry.js +0 -1
- package/dist/components/p-b4355cec.entry.js +0 -1
- package/dist/components/p-d2f17fac.entry.js +0 -1
- package/dist/components/p-db5eea95.entry.js +0 -1
- package/dist/components/p-e205c269.entry.js +0 -1
- package/dist/components/p-f88b5f21.entry.js +0 -1
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { ICONS } from "../../utils/icons";
|
|
2
|
+
// Derived from the single source of truth so the list never drifts.
|
|
3
|
+
// '' = no icon (the render treats it as falsy).
|
|
4
|
+
const ICON_OPTIONS = ['', ...Object.keys(ICONS).sort()];
|
|
1
5
|
export default {
|
|
2
6
|
title: 'Components/Alert',
|
|
3
7
|
component: 'eds-alert',
|
|
@@ -17,8 +21,9 @@ export default {
|
|
|
17
21
|
description: 'Layout direction'
|
|
18
22
|
},
|
|
19
23
|
icon: {
|
|
20
|
-
control: '
|
|
21
|
-
|
|
24
|
+
control: { type: 'select' },
|
|
25
|
+
options: ICON_OPTIONS,
|
|
26
|
+
description: 'Optional icon name (from the EDS icon set). No icon shown by default.'
|
|
22
27
|
},
|
|
23
28
|
dismissible: {
|
|
24
29
|
control: 'boolean',
|
|
@@ -37,9 +42,12 @@ export default {
|
|
|
37
42
|
message: 'This is an alert message.',
|
|
38
43
|
intent: 'default',
|
|
39
44
|
direction: 'horizontal',
|
|
45
|
+
icon: 'information',
|
|
40
46
|
dismissible: false
|
|
41
47
|
}
|
|
42
48
|
};
|
|
49
|
+
// Single control-driven story — use the Controls panel to exercise intent,
|
|
50
|
+
// direction, icon, dismissible and the pressable action.
|
|
43
51
|
export const Default = {
|
|
44
52
|
render: (args) => `
|
|
45
53
|
<eds-alert
|
|
@@ -53,151 +61,7 @@ export const Default = {
|
|
|
53
61
|
></eds-alert>
|
|
54
62
|
`
|
|
55
63
|
};
|
|
56
|
-
|
|
57
|
-
render: (args) => `
|
|
58
|
-
<eds-alert
|
|
59
|
-
message="${args.message}"
|
|
60
|
-
intent="warning"
|
|
61
|
-
${args.icon ? `icon="${args.icon}"` : ''}
|
|
62
|
-
></eds-alert>
|
|
63
|
-
`,
|
|
64
|
-
args: {
|
|
65
|
-
message: 'Please review your input before proceeding.',
|
|
66
|
-
icon: 'warning'
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
export const Error = {
|
|
70
|
-
render: (args) => `
|
|
71
|
-
<eds-alert
|
|
72
|
-
message="${args.message}"
|
|
73
|
-
intent="error"
|
|
74
|
-
${args.icon ? `icon="${args.icon}"` : ''}
|
|
75
|
-
></eds-alert>
|
|
76
|
-
`,
|
|
77
|
-
args: {
|
|
78
|
-
message: 'An error occurred while processing your request.',
|
|
79
|
-
icon: 'error'
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
export const Success = {
|
|
83
|
-
render: (args) => `
|
|
84
|
-
<eds-alert
|
|
85
|
-
message="${args.message}"
|
|
86
|
-
intent="success"
|
|
87
|
-
${args.icon ? `icon="${args.icon}"` : ''}
|
|
88
|
-
></eds-alert>
|
|
89
|
-
`,
|
|
90
|
-
args: {
|
|
91
|
-
message: 'Your changes have been saved successfully.',
|
|
92
|
-
icon: 'checkmark-filled'
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
export const Brand = {
|
|
96
|
-
render: (args) => `
|
|
97
|
-
<eds-alert
|
|
98
|
-
message="${args.message}"
|
|
99
|
-
intent="brand"
|
|
100
|
-
${args.icon ? `icon="${args.icon}"` : ''}
|
|
101
|
-
></eds-alert>
|
|
102
|
-
`,
|
|
103
|
-
args: {
|
|
104
|
-
message: 'Welcome to the EBRAINS platform.',
|
|
105
|
-
icon: 'information'
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
export const WithLink = {
|
|
109
|
-
render: (args) => `
|
|
110
|
-
<eds-alert
|
|
111
|
-
message="${args.message}"
|
|
112
|
-
intent="${args.intent}"
|
|
113
|
-
${args.icon ? `icon="${args.icon}"` : ''}
|
|
114
|
-
pressable-label="Learn more"
|
|
115
|
-
pressable-url="https://ebrains.eu"
|
|
116
|
-
></eds-alert>
|
|
117
|
-
`,
|
|
118
|
-
args: {
|
|
119
|
-
message: 'A new version is available.',
|
|
120
|
-
intent: 'default'
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
export const WithButton = {
|
|
124
|
-
render: (args) => `
|
|
125
|
-
<eds-alert
|
|
126
|
-
message="${args.message}"
|
|
127
|
-
intent="error"
|
|
128
|
-
${args.icon ? `icon="${args.icon}"` : ''}
|
|
129
|
-
pressable-label="Retry"
|
|
130
|
-
></eds-alert>
|
|
131
|
-
`,
|
|
132
|
-
args: {
|
|
133
|
-
message: 'Failed to load data.',
|
|
134
|
-
icon: 'error'
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
export const Dismissible = {
|
|
138
|
-
render: (args) => `
|
|
139
|
-
<eds-alert
|
|
140
|
-
message="${args.message}"
|
|
141
|
-
intent="warning"
|
|
142
|
-
${args.icon ? `icon="${args.icon}"` : ''}
|
|
143
|
-
dismissible="true"
|
|
144
|
-
></eds-alert>
|
|
145
|
-
`,
|
|
146
|
-
args: {
|
|
147
|
-
message: 'This alert can be dismissed.',
|
|
148
|
-
icon: 'warning'
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
export const WithCustomIcon = {
|
|
152
|
-
render: (args) => `
|
|
153
|
-
<eds-alert
|
|
154
|
-
message="${args.message}"
|
|
155
|
-
intent="${args.intent}"
|
|
156
|
-
${args.icon ? `icon="${args.icon}"` : ''}
|
|
157
|
-
></eds-alert>
|
|
158
|
-
`,
|
|
159
|
-
args: {
|
|
160
|
-
message: 'Deployment in progress.',
|
|
161
|
-
intent: 'default',
|
|
162
|
-
icon: 'rocket'
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
export const NoIcon = {
|
|
166
|
-
render: (args) => `
|
|
167
|
-
<eds-alert
|
|
168
|
-
message="${args.message}"
|
|
169
|
-
${args.icon ? `icon="${args.icon}"` : ''}
|
|
170
|
-
intent="warning"
|
|
171
|
-
></eds-alert>
|
|
172
|
-
`,
|
|
173
|
-
args: {
|
|
174
|
-
message: 'This alert has no icon — just text.'
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
export const Vertical = {
|
|
178
|
-
render: (args) => `
|
|
179
|
-
<eds-alert
|
|
180
|
-
message="${args.message}"
|
|
181
|
-
intent="warning"
|
|
182
|
-
direction="vertical"
|
|
183
|
-
${args.icon ? `icon="${args.icon}"` : ''}
|
|
184
|
-
pressable-label="View details"
|
|
185
|
-
pressable-url="https://ebrains.eu"
|
|
186
|
-
dismissible="true"
|
|
187
|
-
></eds-alert>
|
|
188
|
-
`,
|
|
189
|
-
args: {
|
|
190
|
-
message: 'Your session will expire in 5 minutes.',
|
|
191
|
-
icon: 'warning'
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
export const SlotContent = {
|
|
195
|
-
render: () => `
|
|
196
|
-
<eds-alert intent="default" icon="information">
|
|
197
|
-
This alert uses <strong>slot content</strong> with <code>HTML markup</code> instead of the message prop.
|
|
198
|
-
</eds-alert>
|
|
199
|
-
`
|
|
200
|
-
};
|
|
64
|
+
// Gallery overview of every intent at a glance — not reproducible via Controls.
|
|
201
65
|
export const AllIntents = {
|
|
202
66
|
render: () => `
|
|
203
67
|
<div style="display: flex; flex-direction: column; gap: 1rem;">
|
|
@@ -210,3 +74,11 @@ export const AllIntents = {
|
|
|
210
74
|
</div>
|
|
211
75
|
`
|
|
212
76
|
};
|
|
77
|
+
// Demonstrates slotted HTML content instead of the `message` prop.
|
|
78
|
+
export const SlotContent = {
|
|
79
|
+
render: () => `
|
|
80
|
+
<eds-alert intent="default" icon="information">
|
|
81
|
+
This alert uses <strong>slot content</strong> with <code>HTML markup</code> instead of the message prop.
|
|
82
|
+
</eds-alert>
|
|
83
|
+
`
|
|
84
|
+
};
|
|
@@ -64,7 +64,7 @@ export class EdsAvatar {
|
|
|
64
64
|
* @returns {JSX.Element} The rendered avatar component.
|
|
65
65
|
*/
|
|
66
66
|
render() {
|
|
67
|
-
return (h("div", { key: '
|
|
67
|
+
return (h("div", { key: '36f8cb598e0e53793ce8a49e9e2419f41ba8f160', class: this.containerClasses }, this.picture ? (h("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: true, withBg: true })) : (h("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "eds-avatar"; }
|
|
70
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,8 +31,8 @@ export const Default = {
|
|
|
31
31
|
|
|
32
32
|
<div class="mt-32">
|
|
33
33
|
<span>To try out the picture field use this example:</span>
|
|
34
|
-
<eds-code-block
|
|
35
|
-
code="https://
|
|
34
|
+
<eds-code-block
|
|
35
|
+
code="https://randomuser.me/api/portraits/women/44.jpg"
|
|
36
36
|
language="url"
|
|
37
37
|
></eds-code-block>
|
|
38
38
|
</div>`,
|
|
@@ -7,7 +7,7 @@ export class EdsBlockBreak {
|
|
|
7
7
|
this.inverse = false;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("hr", { key: '
|
|
10
|
+
return h("hr", { key: '2531c44fa20745f7860e4647f77ffa038a56d832', class: `${this.inverse ? 'border-default' : 'border-softer'} my-16 inline-block w-full border-t-2` });
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "eds-block-break"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -123,7 +123,7 @@ export class EdsBreadcrumb {
|
|
|
123
123
|
*/
|
|
124
124
|
render() {
|
|
125
125
|
const itemsToRender = this.getTruncatedItems();
|
|
126
|
-
return (h("nav", { key: '
|
|
126
|
+
return (h("nav", { key: '95c13ac07de20bc04fb57ee990e5d21f928f3a86', "aria-label": "Breadcrumb" }, h("ol", { key: '2a03ff53ac27eaa5e37ddfef32e9a4fe322755dd', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
127
127
|
const isLast = index === itemsToRender.length - 1;
|
|
128
128
|
return (h("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
|
|
129
129
|
const { fullLabel } = this.getLabels(item, isLast);
|
|
@@ -466,6 +466,17 @@ button,
|
|
|
466
466
|
height: 2.75rem;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
+
/* Min-height variants — used for button sizing so a label that wraps to
|
|
470
|
+
two lines grows (with its py-12 padding) instead of being clipped at a
|
|
471
|
+
fixed height. Single-line buttons keep the same height. */
|
|
472
|
+
.min-h-36 {
|
|
473
|
+
min-height: 2.25rem;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.min-h-44 {
|
|
477
|
+
min-height: 2.75rem;
|
|
478
|
+
}
|
|
479
|
+
|
|
469
480
|
.h-48 {
|
|
470
481
|
height: 3rem;
|
|
471
482
|
}
|
|
@@ -663,6 +674,10 @@ button,
|
|
|
663
674
|
background-color: var(--brand-green); /* NEW: #00FF9D */
|
|
664
675
|
}
|
|
665
676
|
|
|
677
|
+
.bg-brand-light {
|
|
678
|
+
background-color: var(--green-200); /* light brand tint #d3ffdc — brandLight intent */
|
|
679
|
+
}
|
|
680
|
+
|
|
666
681
|
.bg-accent-dark {
|
|
667
682
|
background-color: var(--brand-green-dark); /* NEW: #00C87B */
|
|
668
683
|
}
|
|
@@ -23,7 +23,10 @@ import { cva } from "class-variance-authority";
|
|
|
23
23
|
export class EdsButton {
|
|
24
24
|
constructor() {
|
|
25
25
|
this.button = cva([
|
|
26
|
-
'relative items-center
|
|
26
|
+
'relative items-center cursor-pointer',
|
|
27
|
+
// Brand-green focus-visible outline (rules live in eds-button.css);
|
|
28
|
+
// without this class keyboard focus falls back to the browser ring.
|
|
29
|
+
'effect-focus',
|
|
27
30
|
'aria-disabled:text-lightest aria-disabled:bg-dark aria-disabled:cursor-not-allowed',
|
|
28
31
|
'disabled:text-lightest disabled:bg-dark disabled:cursor-not-allowed'
|
|
29
32
|
], {
|
|
@@ -35,6 +38,10 @@ export class EdsButton {
|
|
|
35
38
|
ghost: '',
|
|
36
39
|
ghostInverse: 'text-inverse',
|
|
37
40
|
brand: 'bg-accent text-default hover:bg-strongest hover:text-inverse aria-disabled:shadow-none',
|
|
41
|
+
// Light-green tint with brand-black text — an on-brand "unselected"
|
|
42
|
+
// state (e.g. eds-rating / eds-nps) that brightens to solid brand on
|
|
43
|
+
// hover/selection. Lives start-to-finish in the brand palette.
|
|
44
|
+
brandLight: 'bg-brand-light text-default hover:bg-accent hover:text-default aria-disabled:shadow-none',
|
|
38
45
|
brandInverse: 'bg-accent text-default hover:bg-inverse hover:text-default aria-disabled:shadow-none',
|
|
39
46
|
neutral: 'bg-darker after:border-softest bg-inverse hover:bg-dark hover:text-light text-inverse aria-disabled:shadow-none',
|
|
40
47
|
cta: [
|
|
@@ -53,8 +60,8 @@ export class EdsButton {
|
|
|
53
60
|
true: ''
|
|
54
61
|
},
|
|
55
62
|
size: {
|
|
56
|
-
small: 'h-36 f-ui-02',
|
|
57
|
-
large: 'h-44 f-ui-01'
|
|
63
|
+
small: 'min-h-36 f-ui-02 py-8',
|
|
64
|
+
large: 'min-h-44 f-ui-01 py-12'
|
|
58
65
|
},
|
|
59
66
|
hasIcon: {
|
|
60
67
|
true: '',
|
|
@@ -227,7 +234,7 @@ export class EdsButton {
|
|
|
227
234
|
const loaderBottomColor = this.intent === 'primary' || this.intent === 'secondaryInverse'
|
|
228
235
|
? '#FFFFFF' // White for dark backgrounds
|
|
229
236
|
: '#07140D'; // Brand-black for light backgrounds (secondary, brand, etc.)
|
|
230
|
-
return (h(Host, { key: '
|
|
237
|
+
return (h(Host, { key: '263f3fd25c17d5f9d8ddcfcc57848d6c8e729994' }, h(ElementType, { key: '9c9f68e332ca6fe14387fc239e880069596b0072', tabindex: isInteractive ? '0' : '-1', "aria-label": this.label ? undefined : this.ariaLabel, "aria-disabled": this.disabled || this.loading ? 'true' : undefined, "aria-busy": this.loading ? 'true' : undefined, disabled: this.elementType === 'button' ? this.disabled || this.loading : undefined, role: this.elementType === 'a' ? 'button' : undefined, class: `${classes || ''}`, onClick: (event) => this.handleClick(event), onKeyDown: (event) => this.handleKeyDown(event) }, this.label && (h("span", { key: '285a0b07089eb7ebab3bd439000ea89c454164d0', class: `${this.loading ? 'opacity-0' : ''} ${this.icon && (this.intent !== 'cta' && this.intent !== 'cta-brand') ? (this.iconPos === 'right' ? (this.size === 'large' ? 'pr-4' : 'pr-2') : (this.size === 'large' ? 'pl-4' : 'pl-2')) : ''}`, "aria-hidden": this.loading ? 'true' : undefined }, this.label)), this.loading && (h("span", { key: '36da873de3be79f2cfc3e4851dadd953e17109dc', class: "absolute inset-0 flex items-center justify-center", "aria-hidden": "true" }, h("span", { key: '961913b2c22e6bd803c6639e617129843c877bfe', class: "loader", style: {
|
|
231
238
|
border: `3px solid ${loaderBorderColor}`,
|
|
232
239
|
borderBottomColor: loaderBottomColor
|
|
233
240
|
} }))), this.icon ? (h("eds-icon-wrapper", { name: this.icon, size: 20, "aria-hidden": "true" })) : null)));
|
|
@@ -304,8 +311,8 @@ export class EdsButton {
|
|
|
304
311
|
"type": "string",
|
|
305
312
|
"mutable": false,
|
|
306
313
|
"complexType": {
|
|
307
|
-
"original": "'primary' | 'secondary' | 'secondaryInverse' | 'ghost' | 'ghostInverse' | 'brand' | 'brandInverse' | 'neutral' | 'cta' | 'cta-brand'",
|
|
308
|
-
"resolved": "\"brand\" | \"brandInverse\" | \"cta\" | \"cta-brand\" | \"ghost\" | \"ghostInverse\" | \"neutral\" | \"primary\" | \"secondary\" | \"secondaryInverse\"",
|
|
314
|
+
"original": "'primary' | 'secondary' | 'secondaryInverse' | 'ghost' | 'ghostInverse' | 'brand' | 'brandLight' | 'brandInverse' | 'neutral' | 'cta' | 'cta-brand'",
|
|
315
|
+
"resolved": "\"brand\" | \"brandInverse\" | \"brandLight\" | \"cta\" | \"cta-brand\" | \"ghost\" | \"ghostInverse\" | \"neutral\" | \"primary\" | \"secondary\" | \"secondaryInverse\"",
|
|
309
316
|
"references": {}
|
|
310
317
|
},
|
|
311
318
|
"required": false,
|
package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js
CHANGED
|
@@ -21,7 +21,7 @@ export class EdsCardDesc {
|
|
|
21
21
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h("p", { key: '
|
|
24
|
+
return (h("p", { key: 'd7d9f5d40d82700388753a165a998574bd69e674', class: `f-body-02 ${this.intent === 'secondary' ? 'text-inverse' : 'text-default'}` }, h("span", { key: 'bff2551896e726ce02a78b448a0e3f2a3df0c697', class: this.getTruncateClass() }, this.description)));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "eds-card-desc"; }
|
|
27
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
flex-grow: 1;
|
|
17
|
-
|
|
17
|
+
/* Top-align the content so titles line up across equal-height cards in a
|
|
18
|
+
grid (centering made titles drift when descriptions differed in length). */
|
|
19
|
+
justify-content: flex-start;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
/* Default variant - dark background with white text */
|
|
@@ -79,6 +81,11 @@
|
|
|
79
81
|
position: relative;
|
|
80
82
|
z-index: 1;
|
|
81
83
|
width: 100%;
|
|
84
|
+
/* Fill the card so actions can pin to the bottom (buttons line up across
|
|
85
|
+
cards regardless of description length). */
|
|
86
|
+
flex-grow: 1;
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
82
89
|
}
|
|
83
90
|
|
|
84
91
|
.cta-title {
|
|
@@ -103,6 +110,8 @@
|
|
|
103
110
|
justify-content: center;
|
|
104
111
|
margin-bottom: 1.5rem;
|
|
105
112
|
flex-wrap: wrap;
|
|
113
|
+
/* Push actions to the bottom of the card so they align across the row. */
|
|
114
|
+
margin-top: auto;
|
|
106
115
|
}
|
|
107
116
|
|
|
108
117
|
.cta-links {
|
|
@@ -50,7 +50,7 @@ export class EdsCardCta {
|
|
|
50
50
|
const primaryButtonIntent = this.variant === 'default' ? 'brandInverse' : 'brand';
|
|
51
51
|
const secondaryButtonIntent = this.variant === 'default' ? 'secondaryInverse' : 'secondary';
|
|
52
52
|
const linkIntent = this.variant === 'default' ? 'cta' : 'underline';
|
|
53
|
-
return (h("div", { key: 'ee2163e6096ad05dc55ac40c6626236723a23b72', class: containerClasses }, h("div", { key: 'f51481133015ef5eafce48bab525cf166c000e3a', class: "cta-content" }, h("h2", { key: '577441d8bc7cb4c906408faf995e106ef2779e8b', class: "cta-title", innerHTML: this.title }), h("p", { key: 'b8cbcf891b95f82c3dd57f1db9335f55c1d7162c', class: "cta-description" }, this.description), h("div", { key: 'f167262a521b9e15176a4fc65e3e45a8cf24feb1', class: "cta-actions" }, h("eds-button", { key: '
|
|
53
|
+
return (h("div", { key: 'ee2163e6096ad05dc55ac40c6626236723a23b72', class: containerClasses }, h("div", { key: 'f51481133015ef5eafce48bab525cf166c000e3a', class: "cta-content" }, h("h2", { key: '577441d8bc7cb4c906408faf995e106ef2779e8b', class: "cta-title", innerHTML: this.title }), h("p", { key: 'b8cbcf891b95f82c3dd57f1db9335f55c1d7162c', class: "cta-description" }, this.description), h("div", { key: 'f167262a521b9e15176a4fc65e3e45a8cf24feb1', class: "cta-actions" }, h("slot", { key: 'c114de9b72bf56a2bda67d21aab0a1a24efba2e4', name: "actions" }, h("eds-button", { key: '75c4508fad3377ae1788bca7cda5f8315c8301a3', label: this.primaryButtonText, intent: primaryButtonIntent, icon: "arrow-right", "icon-pos": "right", size: "large", triggerClick: this.handlePrimaryClick }), this.secondaryButtonText && (h("eds-button", { key: '2c6de6b1032c62619b7225d3f7cbc04617fca465', label: this.secondaryButtonText, intent: secondaryButtonIntent, size: "large", triggerClick: this.handleSecondaryClick })))), this.parsedLinks && this.parsedLinks.length > 0 && (h("div", { key: 'a78f81632c85cb729d738b0bb533d260bc7e3727', class: "cta-links" }, this.parsedLinks.map((link, index) => (h("eds-link", { key: index, label: link.label, url: link.url, intent: linkIntent }))))))));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "eds-card-cta"; }
|
|
56
56
|
static get encapsulation() { return "shadow"; }
|
|
@@ -24,7 +24,7 @@ export class EdsCardFeature {
|
|
|
24
24
|
'feature-card',
|
|
25
25
|
`feature-card-${this.variant}`
|
|
26
26
|
].join(' ');
|
|
27
|
-
return (h("div", { key: '
|
|
27
|
+
return (h("div", { key: 'f76c056bbca7b38892cdecf56291fe3882c9e3bb', class: cardClasses }, this.icon && (h("div", { key: '9e22a5f6c5e30b55c4bac84f5f11f773b1b37ab9', class: "feature-icon" }, h("eds-icon-wrapper", { key: '64154c38f3655cb55f14c2963a62ead699d8a533', name: this.icon, size: 24 }))), h("h3", { key: '99ed95a90796dbb6baa3f73cb2830fcd0954328c', class: "feature-title" }, this.title), h("p", { key: 'f91109a10f62a58d8b650987fbbf1a5a4f68beaa', class: "feature-description" }, this.description), this.url && (h("eds-link", { key: 'b94b57e5385da9db54a3767d0413349000add755', label: this.linkText, url: this.url, intent: "cta", icon: "arrow-right", "icon-pos": "right" }))));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "eds-card-feature"; }
|
|
30
30
|
static get encapsulation() { return "shadow"; }
|
|
@@ -87,7 +87,7 @@ export class EdsCardGeneric {
|
|
|
87
87
|
this.isHovered = false;
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return (h("article", { key: '
|
|
90
|
+
return (h("article", { key: '6efb0c2c0c3d196b9759307bb98f4bf1e12504d5', class: this.articleClasses(), onClick: this.url ? () => this.handleClick() : undefined, onMouseEnter: this.url ? () => this.handleMouseEnter() : undefined, onMouseLeave: this.url ? () => this.handleMouseLeave() : undefined }, this.icon && (h("div", { key: '9c29cae822923b524668da65f3e341f9626d7e95', class: "card-icon-wrapper" }, h("eds-icon-wrapper", { key: '104a3551d3d8b910528dd43e8a12494faf4764a0', name: this.icon, size: 32 }))), h("div", { key: 'cc9d326aa6e55d1ed26b73f46d5fbb8087d55bf0', class: "p-12 flex flex-col grow" }, this.parsedTags && this.parsedTags.length > 0 && (h("div", { key: 'f740e184ec400d6083d04e4fa99259aa061c5dbf', class: "flex mb-12 gap-x-4" }, this.parsedTags.map((tag, index) => (h("eds-tag", { key: index, intent: tag.intent, label: tag.label, size: tag.size }))))), h("eds-card-title", { key: 'e263ce9bd116857648439bf9f356fc110e048547', title: this.title, url: this.url, intent: this.intent, size: this.titleSize }), this.description && (h("div", { key: 'aa6687dc61c548dd52e2d2f3eb9598f85c2af0a5', class: "mt-8" }, this.description && (h("eds-card-desc", { key: '8b82f70b5dc513396d08affc4958d9c1040583d6', "truncate-lines": "3", description: this.description, intent: this.intent })))), h("slot", { key: 'ff4d0ba6184b01b80e44c78a7cccec124f2b1706', name: "card" }), this.url && (h("div", { key: '889b5fbaf026df0e826626020ff201d06f047cc8', class: `flex items-center justify-between mt-auto pt-16 ${this.getLearnMoreColor()}` }, h("span", { key: '3a5b5d603a7f3d852b5e92ba57f7214f7b9754ec', class: "f-ui-01" }, "Learn more"), h("eds-icon-wrapper", { key: 'de15571bd4892f72646c205b14105f328d5a596d', name: this.isHovered ? 'arrow-right' : 'arrow-up-right', size: 32 }))))));
|
|
91
91
|
}
|
|
92
92
|
static get is() { return "eds-card-generic"; }
|
|
93
93
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,7 +49,7 @@ export class EdsCardHero {
|
|
|
49
49
|
`hero-card-${this.variant}`,
|
|
50
50
|
this.url ? 'hero-card-clickable' : ''
|
|
51
51
|
].filter(Boolean).join(' ');
|
|
52
|
-
return (h("div", { key: '
|
|
52
|
+
return (h("div", { key: 'c92f2acc8065b4142b28ca213abbb646e61f44fc', class: cardClasses, onClick: () => this.handleClick() }, h("div", { key: '38b8ec832d05a4891646ac31f24d32f62c5ac2e1', class: "card-category" }, this.category), h("div", { key: 'd356e4651ed9d136c72c519ecb9b484570c9b3be', class: "card-title" }, this.title), this.description && (h("div", { key: '52afdf7988667f73d8725e6a5f5b7816d4b38b30', class: "card-description" }, this.description)), this.parsedTags && this.parsedTags.length > 0 && (h("div", { key: 'a50fb41278d3b98da7054e0bee52d2a98ab5d8f3', class: "card-tags" }, this.parsedTags.map((tag, index) => (h("span", { key: index, class: "card-tag" }, tag.label)))))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "eds-card-hero"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,7 +40,7 @@ export class EdsCardStat {
|
|
|
40
40
|
`stat-card-${this.variant}`,
|
|
41
41
|
this.url ? 'stat-card-clickable' : ''
|
|
42
42
|
].filter(Boolean).join(' ');
|
|
43
|
-
const content = (h("div", { key: '
|
|
43
|
+
const content = (h("div", { key: 'f1dadeadd1d893b7a33aa92772baf7245954f6e7', class: cardClasses, onClick: () => this.handleClick() }, h("div", { key: '6adb8cc68740cd2dabf0bacf0af446e1499171a8', class: "stat-number" }, this.number), h("div", { key: 'adc7a8ffd44bceda51fcb98f68cfc8d7e454db5f', class: "stat-label" }, this.label), this.description && (h("div", { key: 'f70549244277e2c08c7bd94a1d297c00655faff5', class: "stat-description" }, this.description))));
|
|
44
44
|
return content;
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "eds-card-stat"; }
|
|
@@ -42,7 +42,7 @@ export class EdsGauge {
|
|
|
42
42
|
const textStyle = {
|
|
43
43
|
fontSize: `${fontSize}px`
|
|
44
44
|
};
|
|
45
|
-
return (h("div", { key: '
|
|
45
|
+
return (h("div", { key: '5629f8adbc6f144aad49062883cb85ecf24fc16c', role: "progressbar", "aria-valuemin": this.valueMin, "aria-valuemax": this.valueMax, "aria-valuenow": clamped, "aria-label": `Gauge value: ${clamped} of ${this.valueMax}`, class: "relative inline-block rounded-full overflow-hidden", style: containerStyle }, h("div", { key: 'd668b54b0a5f4bf260a2f1153781c59741bd8694', class: "absolute bg-inverse rounded-full", style: maskStyle }), h("div", { key: 'f08feba97d30ed893a72a7e07e412aa82ea8cd3d', class: "absolute inset-0 flex items-center justify-center" }, h("span", { key: '2a8dccde44677d4a4b742cd992144d6cf399ee9b', class: "f-body-01 text-default", style: textStyle }, clamped))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "eds-gauge"; }
|
|
48
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -80,7 +80,7 @@ export class EdsCodeBlock {
|
|
|
80
80
|
return this.code; // Fallback if language is not provided or unsupported
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return (h("div", { key: '
|
|
83
|
+
return (h("div", { key: '4d73fa52c489b6995dd8a6d83c05e323bb1f5431', class: "relative bg-strongest rounded-sm" }, h("div", { key: 'c0df3237009310833b417f5ede5b7c204f2752bc', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (h("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (h("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, h("code", { innerHTML: this.getHighlightedCode() }))), h("span", { key: '016505a0749baaa52c6e4aa77f00b4da31e7ec45', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, h("eds-icon-wrapper", { key: '21474f1b28af95251aca639c349aaac489d8519b', name: this.copied ? 'checkmark-filled' : 'copy', onClick: () => this.copyToClipboard() })), h("span", { key: '64450529ad3cf3dab7e74f8455307cdb3298bbc4', class: "sr-only" }, "Copy Code")), this.language && (h("pre", { key: 'affcb4719ef29d7ed9ed676eab975c98ceca31fa', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, h("code", { key: '43fa1b80c2e02233076c4da15a5aa04f0b49bfc3', innerHTML: this.getHighlightedCode() })))));
|
|
84
84
|
}
|
|
85
85
|
static get is() { return "eds-code-block"; }
|
|
86
86
|
static get encapsulation() { return "shadow"; }
|
|
@@ -35,6 +35,13 @@ export class EdsDropdown {
|
|
|
35
35
|
if (this.isOpen) {
|
|
36
36
|
// refresh focusables each open in case slot changed
|
|
37
37
|
this.focusableItems = Array.from(((_a = this.panelEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll('a, button, [role="menuitem"]')) || []);
|
|
38
|
+
// The panel declares role="menu"; slotted links/buttons need
|
|
39
|
+
// role="menuitem" or screen readers announce an empty menu.
|
|
40
|
+
this.focusableItems.forEach((item) => {
|
|
41
|
+
if (!item.hasAttribute('role')) {
|
|
42
|
+
item.setAttribute('role', 'menuitem');
|
|
43
|
+
}
|
|
44
|
+
});
|
|
38
45
|
this.focusIndex = this.focusableItems.length ? 0 : -1;
|
|
39
46
|
this.focusItem();
|
|
40
47
|
}
|
|
@@ -73,7 +80,6 @@ export class EdsDropdown {
|
|
|
73
80
|
const path = (e.composedPath && e.composedPath()) || [];
|
|
74
81
|
if (!path.includes(this.host)) {
|
|
75
82
|
this.closeDropdown();
|
|
76
|
-
this.dropdown.emit({ expanded: false });
|
|
77
83
|
}
|
|
78
84
|
}
|
|
79
85
|
/**
|
|
@@ -81,12 +87,22 @@ export class EdsDropdown {
|
|
|
81
87
|
* @param {KeyboardEvent} event - The keyboard event.
|
|
82
88
|
*/
|
|
83
89
|
handleKeyDown(event) {
|
|
90
|
+
var _a;
|
|
84
91
|
if (this.isOpen) {
|
|
85
92
|
const key = event.key;
|
|
86
93
|
switch (key) {
|
|
87
94
|
case 'Tab':
|
|
95
|
+
// ARIA menu pattern: Tab does not walk the items — it closes
|
|
96
|
+
// the menu and lets focus continue to the next element on the
|
|
97
|
+
// page (no preventDefault on purpose).
|
|
98
|
+
this.closeDropdown();
|
|
99
|
+
break;
|
|
100
|
+
case 'Escape':
|
|
101
|
+
// Close and hand focus back to the trigger so keyboard users
|
|
102
|
+
// can back out without committing to a Tab.
|
|
103
|
+
event.preventDefault();
|
|
88
104
|
this.closeDropdown();
|
|
89
|
-
this.
|
|
105
|
+
(_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
90
106
|
break;
|
|
91
107
|
case 'ArrowUp':
|
|
92
108
|
event.preventDefault();
|
|
@@ -98,6 +114,16 @@ export class EdsDropdown {
|
|
|
98
114
|
this.focusIndex = (this.focusIndex + 1) % this.focusableItems.length;
|
|
99
115
|
this.focusItem();
|
|
100
116
|
break;
|
|
117
|
+
case 'Home':
|
|
118
|
+
event.preventDefault();
|
|
119
|
+
this.focusIndex = this.focusableItems.length ? 0 : -1;
|
|
120
|
+
this.focusItem();
|
|
121
|
+
break;
|
|
122
|
+
case 'End':
|
|
123
|
+
event.preventDefault();
|
|
124
|
+
this.focusIndex = this.focusableItems.length - 1;
|
|
125
|
+
this.focusItem();
|
|
126
|
+
break;
|
|
101
127
|
}
|
|
102
128
|
}
|
|
103
129
|
}
|
|
@@ -165,13 +191,13 @@ export class EdsDropdown {
|
|
|
165
191
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
166
192
|
*/
|
|
167
193
|
render() {
|
|
168
|
-
return (h("div", { key: '
|
|
194
|
+
return (h("div", { key: '1ce4926a15ac67d653ef03de877e64be83f61b4e', class: "z-focus relative", ref: (el) => (this.dropdownContent = el) }, h("eds-button", { key: '8b45fc57c018dd620701b2b9db5403c30f88a6ed', ref: (el) => (this.buttonEl = el), label: this.label, "aria-label": this.ariaLabel, icon: this.icon, iconSmall: false, intent: this.intent, onClick: this.handleClick, "aria-expanded": this.isOpen.toString(), "aria-haspopup": "menu", size: "small", pill: true }), h("nav", { key: '35854d55ea595e35513348bf36145794b2c57007', ref: (el) => (this.panelEl = el), role: "menu", class: {
|
|
169
195
|
'shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8': true,
|
|
170
196
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
171
197
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
172
198
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
173
199
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset
|
|
174
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, h("slot", { key: '
|
|
200
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, h("slot", { key: 'd6b153bb5968fa958be4d96d60cce774a9a0713c' }))));
|
|
175
201
|
}
|
|
176
202
|
static get is() { return "eds-dropdown"; }
|
|
177
203
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,7 +52,7 @@ export class EdsFeedback {
|
|
|
52
52
|
const HeadingTag = this.headingLevel;
|
|
53
53
|
const levelNum = this.headingLevel.replace('h', '');
|
|
54
54
|
const headingClass = `f-heading-${levelNum.padStart(2, '0')} my-4`;
|
|
55
|
-
return (h("div", { key: '
|
|
55
|
+
return (h("div", { key: '5eddbd664389530e209698e5e435c853c8f50b9f', class: "grid inline" }, h(HeadingTag, { key: '22d1d4a44a116f78bbfa66946d8b7a9f95779524', class: headingClass }, this.label), h("p", { key: 'd3e5abefa5d0e1e32281b5088251fb9c304b8d2a', class: "f-body-01 text-light" }, this.description), h("eds-rating", { key: '65f1e772ac885d20f46e147aedeb55ab2ec871fe', "rating-type": this.type, "rating-count": this.count }), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (h("span", { key: 'f660ceb9889d560ec1687c6f17bdbbe6a89f90ee', class: "f-ui-04 text-lighter" }, this.parsedMappings[this.selectedRating - 1]))));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "eds-feedback"; }
|
|
58
58
|
static get encapsulation() { return "shadow"; }
|