@ebrains/components 3.0.0 → 3.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 +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} +1095 -336
- 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 +35 -32
- 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-modal.cjs.entry.js +18 -9
- package/dist/cjs/eds-pie.cjs.entry.js +2 -2
- 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 +184 -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 +58 -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 +8 -2
- 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 +2 -5
- package/dist/collection/components/eds-accordion/eds-accordion.stories.js +7 -19
- package/dist/collection/components/eds-alert/eds-alert.css +14 -0
- package/dist/collection/components/eds-alert/eds-alert.js +2 -1
- 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 +17 -14
- package/dist/collection/components/eds-button/eds-button.stories.js +4 -1
- package/dist/collection/components/eds-cards/eds-card-app/eds-card-app.js +2 -5
- 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-composer/eds-card-title/eds-card-title.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 +2 -5
- package/dist/collection/components/eds-cards/eds-card-cta/eds-card-cta.stories.js +4 -1
- package/dist/collection/components/eds-cards/eds-card-feature/eds-card-feature.js +2 -5
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +2 -4
- package/dist/collection/components/eds-cards/eds-card-hero/eds-card-hero.js +6 -7
- package/dist/collection/components/eds-cards/eds-card-stat/eds-card-stat.js +6 -7
- package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +1 -1
- package/dist/collection/components/eds-charts/eds-pie/eds-pie.js +2 -2
- package/dist/collection/components/eds-code-block/eds-code-block.css +72 -106
- 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 +176 -74
- package/dist/collection/components/eds-footer/eds-footer.stories.js +109 -17
- package/dist/collection/components/eds-form/eds-form.css +493 -1
- package/dist/collection/components/eds-form/eds-form.js +256 -14
- package/dist/collection/components/eds-form/eds-form.stories.js +110 -3
- 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 +7 -4
- 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 +39 -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.css +17 -5
- 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 +15 -5
- 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 +6 -2
- package/dist/collection/components/eds-input-field/eds-input-field.css +219 -0
- package/dist/collection/components/eds-input-field/eds-input-field.js +16 -5
- package/dist/collection/components/eds-input-field/eds-input-field.stories.js +105 -125
- package/dist/collection/components/eds-input-file/eds-input-file.js +5 -3
- package/dist/collection/components/eds-link/eds-link.js +4 -8
- package/dist/collection/components/eds-link/eds-link.stories.js +13 -8
- package/dist/collection/components/eds-logo/eds-logo.js +13 -66
- package/dist/collection/components/eds-logo/eds-logo.stories.js +36 -17
- package/dist/collection/components/eds-modal/eds-modal.js +18 -9
- package/dist/collection/components/eds-modal/eds-modal.stories.js +11 -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-progress-bar/eds-progress-bar.js +1 -8
- 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/eds-steps.css +56 -25
- package/dist/collection/components/eds-steps/eds-steps.js +27 -7
- package/dist/collection/components/eds-steps-v2/eds-steps-v2.css +93 -28
- package/dist/collection/components/eds-steps-v2/eds-steps-v2.js +57 -10
- package/dist/collection/components/eds-steps-v2/eds-steps-v2.stories.js +80 -17
- package/dist/collection/components/eds-switch/eds-switch.css +26 -3
- package/dist/collection/components/eds-switch/eds-switch.js +10 -7
- package/dist/collection/components/eds-switch/eds-switch.stories.js +20 -1
- package/dist/collection/components/eds-table/eds-table.css +21 -4
- package/dist/collection/components/eds-table/eds-table.js +16 -51
- package/dist/collection/components/eds-table/eds-table.stories.js +7 -115
- package/dist/collection/components/eds-tabs/eds-tabs.css +7 -1
- package/dist/collection/components/eds-tabs/eds-tabs.js +49 -18
- package/dist/collection/components/eds-tabs/eds-tabs.stories.js +2 -2
- 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/eds-toast.css +146 -0
- package/dist/collection/components/eds-toast/eds-toast.js +106 -4
- package/dist/collection/components/eds-toast/eds-toast.stories.js +102 -5
- 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 +7 -1
- package/dist/collection/components/eds-user/eds-user.js +2 -5
- package/dist/collection/components/eds-user/eds-user.stories.js +8 -11
- 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 +8 -2
- 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 +58 -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 +34 -31
- 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 +69 -7
- 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 +253 -0
- package/dist/collection/shared-ui/eds-kg-web-services-select/eds-kg-web-services-select.js +2 -2
- package/dist/collection/shared-ui/eds-kg-web-services-select/eds-kg-web-services-select.stories.js +1 -3
- 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-matomo-notice/eds-matomo-notice.stories.js +1 -1
- package/dist/collection/shared-ui/eds-search-select/eds-search-select.css +213 -0
- package/dist/collection/shared-ui/eds-search-select/eds-search-select.js +706 -0
- package/dist/collection/shared-ui/eds-search-select/eds-search-select.stories.js +90 -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 +324 -0
- package/dist/collection/shared-ui/eds-trl-badge/eds-trl-badge.stories.js +99 -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 +35 -0
- package/dist/components/components-section.js +1 -1
- package/dist/components/components.css +12 -11
- 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 +3 -6
- package/dist/components/eds-alert2.js +3 -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 +16 -13
- package/dist/components/eds-card-app.js +2 -5
- package/dist/components/eds-card-cta.js +3 -6
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-feature.js +2 -5
- package/dist/components/eds-card-generic2.js +2 -4
- package/dist/components/eds-card-hero.js +6 -7
- package/dist/components/eds-card-stat.js +6 -7
- package/dist/components/eds-card-title2.js +1 -1
- package/dist/components/eds-code-block2.js +2 -2
- 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 +118 -24
- package/dist/components/eds-form.js +146 -45
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-gauge.js +1 -1
- package/dist/components/eds-gitlab-contributors.js +35 -32
- package/dist/components/eds-global-search.js +55 -70
- 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 +7 -4
- package/dist/components/eds-input-field2.js +31 -26
- package/dist/components/eds-input-file2.js +5 -3
- package/dist/components/eds-input-footer2.js +39 -3
- package/dist/components/eds-input-label2.js +2 -2
- package/dist/components/eds-input-range2.js +15 -5
- package/dist/components/eds-input-search.js +100 -1
- package/dist/components/eds-input-select2.js +6 -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 +217 -0
- package/dist/components/eds-kg-web-services-select2.js +18 -24
- package/dist/components/eds-link2.js +3 -7
- package/dist/components/eds-logo2.js +4 -22
- package/dist/components/eds-matomo-notice2.js +8 -2
- package/dist/components/eds-modal.js +18 -9
- package/dist/components/eds-nps2.js +4 -4
- package/dist/components/eds-pagination2.js +2 -2
- package/dist/components/eds-pie.js +2 -2
- package/dist/components/eds-progress-bar.js +1 -8
- 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 +382 -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 +41 -11
- package/dist/components/eds-steps2.js +28 -8
- package/dist/components/eds-switch2.js +8 -5
- package/dist/components/eds-table2.js +30 -54
- package/dist/components/eds-tabs.js +50 -19
- 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-toast2.js +39 -3
- 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 +207 -0
- package/dist/components/eds-user.js +1 -4
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/logo-space.js +76 -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-05e96609.entry.js +1 -0
- package/dist/components/p-0d778d10.entry.js +1 -0
- package/dist/components/{p-d2576747.entry.js → p-114f6d54.entry.js} +1 -1
- package/dist/components/p-1534204d.entry.js +1 -0
- package/dist/components/p-337d4ee3.entry.js +9 -0
- package/dist/components/p-340bc935.entry.js +1 -0
- package/dist/components/{p-a6dc1f88.entry.js → p-37ef07d9.entry.js} +1 -1
- package/dist/components/p-39dbb964.entry.js +1 -0
- package/dist/components/{p-dfe93385.entry.js → p-3f66bc26.entry.js} +1 -1
- package/dist/components/p-43f9e64f.entry.js +1 -0
- package/dist/components/p-46cc6c1a.entry.js +1 -0
- package/dist/components/{p-773bd015.entry.js → p-4b8a7979.entry.js} +1 -1
- package/dist/components/p-6b94b2ec.entry.js +1 -0
- package/dist/components/p-6d965fef.entry.js +1 -0
- package/dist/components/{p-d16b5363.entry.js → p-6e370182.entry.js} +1 -1
- package/dist/components/{p-7b93a385.entry.js → p-6ffe581c.entry.js} +1 -1
- package/dist/components/p-726637b1.entry.js +1 -0
- package/dist/components/{p-a63e14bb.entry.js → p-86ccc09f.entry.js} +1 -1
- package/dist/components/{p-c2fc62f7.entry.js → p-8755a21b.entry.js} +1 -1
- package/dist/components/{p-0d7aee0b.entry.js → p-8ab461e2.entry.js} +1 -1
- package/dist/components/p-8cb162b8.entry.js +1 -0
- package/dist/components/p-8cdbc280.entry.js +1 -0
- package/dist/components/{p-940a2d42.entry.js → p-8e034c4e.entry.js} +1 -1
- package/dist/components/p-9f649fa3.entry.js +1 -0
- package/dist/components/{p-d1b3aa52.entry.js → p-a26dad9b.entry.js} +1 -1
- package/dist/components/p-a2d6a9ca.entry.js +1 -0
- package/dist/components/p-afabe1be.entry.js +1 -0
- package/dist/components/{p-c46675c8.entry.js → p-b1519098.entry.js} +1 -1
- package/dist/components/{p-04e9c2d7.entry.js → p-b1a10842.entry.js} +1 -1
- package/dist/components/{p-7aa4edef.entry.js → p-b4023b45.entry.js} +1 -1
- package/dist/components/p-c53b3563.entry.js +1 -0
- package/dist/components/p-c7d612d1.entry.js +1 -0
- package/dist/components/p-dc9aef22.entry.js +1 -0
- package/dist/components/{p-f364296f.entry.js → p-f66a7cf9.entry.js} +1 -1
- package/dist/components/p-f97f62f2.entry.js +1 -0
- 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 +8 -2
- 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} +1094 -336
- 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 +35 -32
- 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-modal.entry.js +18 -9
- package/dist/esm/eds-pie.entry.js +2 -2
- 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 +180 -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 +58 -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 +8 -2
- package/dist/hydrate/index.js +1616 -397
- package/dist/hydrate/index.mjs +1616 -397
- 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 +66 -0
- package/dist/types/components/eds-form/eds-form.stories.d.ts +63 -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-logo/eds-logo.d.ts +11 -28
- package/dist/types/components/eds-logo/eds-logo.stories.d.ts +22 -2
- package/dist/types/components/eds-steps/eds-steps.d.ts +7 -0
- package/dist/types/components/eds-steps-v2/eds-steps-v2.d.ts +14 -1
- package/dist/types/components/eds-steps-v2/eds-steps-v2.stories.d.ts +40 -9
- package/dist/types/components/eds-switch/eds-switch.d.ts +6 -2
- package/dist/types/components/eds-switch/eds-switch.stories.d.ts +8 -0
- 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/eds-toast/eds-toast.d.ts +33 -1
- package/dist/types/components/eds-toast/eds-toast.stories.d.ts +49 -1
- package/dist/types/components/eds-user/eds-user.d.ts +0 -2
- package/dist/types/components/eds-user/eds-user.stories.d.ts +5 -9
- package/dist/types/components.d.ts +715 -144
- 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-0fe10e6c.entry.js +0 -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-74b9c9a8.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-f55dd314.entry.js +0 -1
- package/dist/components/p-f88b5f21.entry.js +0 -1
|
@@ -2,7 +2,7 @@ export default {
|
|
|
2
2
|
title: 'Components/Header/Main',
|
|
3
3
|
component: 'eds-header',
|
|
4
4
|
argTypes: {
|
|
5
|
-
|
|
5
|
+
url: {
|
|
6
6
|
control: 'text',
|
|
7
7
|
description: 'URL for the home logo link.'
|
|
8
8
|
},
|
|
@@ -10,31 +10,45 @@ export default {
|
|
|
10
10
|
control: 'object',
|
|
11
11
|
description: 'An array of link objects for the header navigation'
|
|
12
12
|
},
|
|
13
|
-
|
|
13
|
+
menu: {
|
|
14
14
|
control: 'boolean',
|
|
15
|
-
description: 'Shows/hides burger menu on small screens.'
|
|
15
|
+
description: 'Shows/hides burger menu toggle on small screens.'
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
variant: {
|
|
18
18
|
control: { type: 'select' },
|
|
19
19
|
options: ['default', 'inverse', 'strong'],
|
|
20
|
-
description: '
|
|
20
|
+
description: 'Header style variant: determines text and background colors.'
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
args: {
|
|
24
|
-
|
|
24
|
+
url: '/',
|
|
25
25
|
links: [
|
|
26
26
|
{ label: 'About', url: '#' },
|
|
27
27
|
{ label: 'Contact', url: '#' }
|
|
28
28
|
],
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
menu: false,
|
|
30
|
+
variant: 'default'
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
export const Default = (args) =>
|
|
33
|
+
export const Default = (args) => {
|
|
34
|
+
// The burger menu toggle is hidden on wide viewports (md:hidden) and only
|
|
35
|
+
// renders on small screens. When `menu` is enabled, surface a notice so the
|
|
36
|
+
// toggle isn't "missing" — mirrors the eds-footer story's matomo notice.
|
|
37
|
+
const menuNotice = String(args.menu) === 'true'
|
|
38
|
+
? `<eds-alert
|
|
39
|
+
intent="info"
|
|
40
|
+
icon="information"
|
|
41
|
+
message="The burger menu toggle only appears on small screens. Resize the viewport (or use Storybook's responsive viewport toolbar) to see it."
|
|
42
|
+
class="mb-16"
|
|
43
|
+
></eds-alert>`
|
|
44
|
+
: '';
|
|
45
|
+
return `
|
|
46
|
+
${menuNotice}
|
|
34
47
|
<eds-header
|
|
35
|
-
|
|
48
|
+
url="${args.url}"
|
|
36
49
|
links='${JSON.stringify(args.links)}'
|
|
37
|
-
menu
|
|
38
|
-
|
|
50
|
+
menu="${args.menu}"
|
|
51
|
+
variant="${args.variant}"
|
|
39
52
|
></eds-header>
|
|
40
53
|
`;
|
|
54
|
+
};
|
|
@@ -5,6 +5,7 @@ export class EdsIconWrapper {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = undefined;
|
|
7
7
|
this.size = 20;
|
|
8
|
+
this.label = undefined;
|
|
8
9
|
}
|
|
9
10
|
render() {
|
|
10
11
|
const iconSvg = ICONS[this.name];
|
|
@@ -12,7 +13,8 @@ export class EdsIconWrapper {
|
|
|
12
13
|
console.warn(`Icon "${this.name}" not found in ICONS`);
|
|
13
14
|
return null;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
+
const decorative = !this.label;
|
|
17
|
+
return (h(Host, { role: decorative ? null : 'img', "aria-label": decorative ? null : this.label, "aria-hidden": decorative ? 'true' : null }, h("span", { class: `icon icon--${this.size}`, innerHTML: iconSvg })));
|
|
16
18
|
}
|
|
17
19
|
static get is() { return "eds-icon-wrapper"; }
|
|
18
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -68,6 +70,23 @@ export class EdsIconWrapper {
|
|
|
68
70
|
"attribute": "size",
|
|
69
71
|
"reflect": false,
|
|
70
72
|
"defaultValue": "20"
|
|
73
|
+
},
|
|
74
|
+
"label": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"mutable": false,
|
|
77
|
+
"complexType": {
|
|
78
|
+
"original": "string",
|
|
79
|
+
"resolved": "string",
|
|
80
|
+
"references": {}
|
|
81
|
+
},
|
|
82
|
+
"required": false,
|
|
83
|
+
"optional": true,
|
|
84
|
+
"docs": {
|
|
85
|
+
"tags": [],
|
|
86
|
+
"text": "Accessible label for the icon. Set this when the icon conveys meaning on its\nown (e.g. a standalone status/action icon) \u2014 it is exposed as `role=\"img\"` +\n`aria-label`. When omitted, the icon is treated as decorative and hidden from\nassistive technology (`aria-hidden`), which is correct when it sits next to a\ntext label that already describes it."
|
|
87
|
+
},
|
|
88
|
+
"attribute": "label",
|
|
89
|
+
"reflect": false
|
|
71
90
|
}
|
|
72
91
|
};
|
|
73
92
|
}
|
|
@@ -8,7 +8,7 @@ export class EdsIconEu {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: 'a449a7323e89e495479822dd750e2ec7935491f1', class: this.class, innerHTML: euSvg });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-eu"; }
|
|
14
14
|
static get properties() {
|
|
@@ -8,7 +8,7 @@ export class EdsIconGitlab {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '1dec6051705f876a5263741023164c02f49097e4', class: this.class, innerHTML: gitlabBlack });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-gitlab"; }
|
|
14
14
|
static get properties() {
|
|
@@ -8,7 +8,7 @@ export class EdsIconBluesky {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '5478b4eafaaa8df66ab3e172d1dae11a7bd8aab3', class: this.class, innerHTML: bluesky });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-bluesky"; }
|
|
14
14
|
static get properties() {
|
|
@@ -8,7 +8,7 @@ export class EdsIconFacebook {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '44a7797929e643d63c492dfb0959d61b0513ce47', class: this.class, innerHTML: facebook });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-facebook"; }
|
|
14
14
|
static get properties() {
|
|
@@ -8,7 +8,7 @@ export class EdsIconLinkedin {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '39eaed2d3eec8d05b46d26a2d5a00be18d305b58', class: this.class, innerHTML: linkedin });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-linkedin"; }
|
|
14
14
|
static get properties() {
|
|
@@ -8,7 +8,7 @@ export class EdsIconMastodon {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: 'e51e5c0a49b1e85511113f649abd58cd110218e8', class: this.class, innerHTML: mastodon });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-mastodon"; }
|
|
14
14
|
static get properties() {
|
|
@@ -8,7 +8,7 @@ export class EdsIconTwitter {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: 'b5169c7ad799a7aa85362caf30d3868aead43fec', class: this.class, innerHTML: twitter });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-twitter"; }
|
|
14
14
|
static get properties() {
|
|
@@ -8,7 +8,7 @@ export class EdsIconYoutube {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '9c794891fbf5800cbd877731c1a9d1cd8782647b', class: this.class, innerHTML: youtube });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-youtube"; }
|
|
14
14
|
static get properties() {
|
|
@@ -57,10 +57,10 @@ export class EdsImg {
|
|
|
57
57
|
imgOpts['loading'] = 'lazy';
|
|
58
58
|
imgOpts['decoding'] = 'async';
|
|
59
59
|
}
|
|
60
|
-
return (h("div", { key: '
|
|
60
|
+
return (h("div", { key: '2b9ac7ccd4ed8b525c368059ec0c99fce03e5367', class: {
|
|
61
61
|
'items-center justify-center': true,
|
|
62
62
|
'effect-bg-pattern': this.lazyload && this.showBg
|
|
63
|
-
} }, h("picture", { key: '
|
|
63
|
+
} }, h("picture", { key: 'fe98dc4ac3197c0cd363ce6ed34ff33ad655de3b' }, this.formats.map((format) => (h("source", { type: format.type, srcSet: format.srcset, media: format.media, sizes: this.sizes }))), h("img", Object.assign({ key: '48cd85fd0bbbf5155fdac71de07a20214399080b', ref: (el) => (this.img = el), class: {
|
|
64
64
|
'effect-opacity object-cover object-center': true,
|
|
65
65
|
'opacity-100': this.loaded,
|
|
66
66
|
'opacity-0': !this.loaded
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// Base asset used by the stories.
|
|
2
|
+
const SUMMIT = 'https://ebrains.eu/sites/default/files/styles/864w/public/2025-12/Group-Photo-EBRAINS-Summit-2025-Pierre-Yves-Jortay-Photography.webp?itok=xdOI0A1k';
|
|
1
3
|
export default {
|
|
2
4
|
title: 'Components/Image',
|
|
3
5
|
component: 'eds-img',
|
|
@@ -28,7 +30,7 @@ export default {
|
|
|
28
30
|
},
|
|
29
31
|
formats: {
|
|
30
32
|
control: 'object',
|
|
31
|
-
description: '
|
|
33
|
+
description: 'Responsive <picture> sources: array of { type, srcset, media? }. NOTE: when set, a matching <source> overrides `src` — clear this to make `src` the single source of the displayed image.'
|
|
32
34
|
},
|
|
33
35
|
lazyload: {
|
|
34
36
|
control: 'boolean',
|
|
@@ -40,62 +42,37 @@ export default {
|
|
|
40
42
|
}
|
|
41
43
|
},
|
|
42
44
|
args: {
|
|
43
|
-
src:
|
|
44
|
-
alt: 'EBRAINS
|
|
45
|
+
src: SUMMIT,
|
|
46
|
+
alt: 'EBRAINS Summit 2025 group photo',
|
|
45
47
|
width: 400,
|
|
46
48
|
height: 300,
|
|
47
49
|
srcset: '',
|
|
48
|
-
sizes: '
|
|
49
|
-
formats: [
|
|
50
|
-
{
|
|
51
|
-
type: 'image/webp',
|
|
52
|
-
srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg?fit=max&q=80&fm=webp&crop=2269%2C2268%2C924%2C0&w=200 200w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg?fit=max&q=80&fm=webp&crop=2269%2C2268%2C924%2C0&w=400 400w, ...',
|
|
53
|
-
media: '(max-width: 899px)'
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
type: 'image/jpeg',
|
|
57
|
-
srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg?fit=max&q=80&fm=jpg&crop=2269%2C2268%2C924%2C0&w=200 200w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg?fit=max&q=80&fm=jpg&crop=2269%2C2268%2C924%2C0&w=400 400w, ...',
|
|
58
|
-
media: '(min-width: 900px)'
|
|
59
|
-
}
|
|
60
|
-
],
|
|
50
|
+
sizes: '',
|
|
51
|
+
formats: [],
|
|
61
52
|
lazyload: true,
|
|
62
53
|
withBg: true
|
|
63
|
-
}
|
|
64
|
-
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
// Helper shared by the stories: build the element imperatively so object
|
|
57
|
+
// props (formats) are assigned as real props, not stringified attributes.
|
|
58
|
+
const renderImg = (args) => {
|
|
59
|
+
const edsImg = document.createElement('eds-img');
|
|
60
|
+
edsImg.src = args.src;
|
|
61
|
+
edsImg.alt = args.alt;
|
|
62
|
+
edsImg.width = args.width;
|
|
63
|
+
edsImg.height = args.height;
|
|
64
|
+
edsImg.srcset = args.srcset;
|
|
65
|
+
edsImg.sizes = args.sizes;
|
|
66
|
+
edsImg.formats = args.formats;
|
|
67
|
+
edsImg.lazyload = args.lazyload;
|
|
68
|
+
edsImg.withBg = args.withBg;
|
|
69
|
+
return edsImg;
|
|
65
70
|
};
|
|
71
|
+
/**
|
|
72
|
+
* Default — a single image driven entirely by `src`. `formats` is empty, so
|
|
73
|
+
* whatever you type into the `src` control is exactly what renders. Paste any
|
|
74
|
+
* direct image URL (e.g. a .jpg/.png/.webp) to try it.
|
|
75
|
+
*/
|
|
66
76
|
export const Default = {
|
|
67
|
-
render:
|
|
68
|
-
const edsImg = document.createElement('eds-img');
|
|
69
|
-
edsImg.src = args.src;
|
|
70
|
-
edsImg.alt = args.alt;
|
|
71
|
-
edsImg.width = args.width;
|
|
72
|
-
edsImg.height = args.height;
|
|
73
|
-
edsImg.srcset = args.srcset;
|
|
74
|
-
edsImg.sizes = args.sizes;
|
|
75
|
-
edsImg.formats = args.formats;
|
|
76
|
-
edsImg.lazyload = args.lazyload;
|
|
77
|
-
edsImg.withBg = args.withBg;
|
|
78
|
-
return edsImg;
|
|
79
|
-
},
|
|
80
|
-
args: {
|
|
81
|
-
src: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg',
|
|
82
|
-
alt: 'EBRAINS Bernstein Conference',
|
|
83
|
-
width: 400,
|
|
84
|
-
height: 300,
|
|
85
|
-
sizes: '(max-width: 749px) 120px, 230px',
|
|
86
|
-
formats: [
|
|
87
|
-
{
|
|
88
|
-
type: 'image/webp',
|
|
89
|
-
srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg?...',
|
|
90
|
-
media: '(max-width: 899px)'
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
type: 'image/jpeg',
|
|
94
|
-
srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg?...',
|
|
95
|
-
media: '(min-width: 900px)'
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
lazyload: true,
|
|
99
|
-
withBg: true
|
|
100
|
-
}
|
|
77
|
+
render: renderImg
|
|
101
78
|
};
|
|
@@ -9,8 +9,9 @@ export class EdsInputDropzone {
|
|
|
9
9
|
};
|
|
10
10
|
this.handleFileSelect = (event) => {
|
|
11
11
|
const input = event.target;
|
|
12
|
-
if (!input.files)
|
|
12
|
+
if (!input.files) {
|
|
13
13
|
return;
|
|
14
|
+
}
|
|
14
15
|
this.addFiles(Array.from(input.files));
|
|
15
16
|
};
|
|
16
17
|
this.handleDragOver = (event) => {
|
|
@@ -30,8 +31,9 @@ export class EdsInputDropzone {
|
|
|
30
31
|
event.preventDefault();
|
|
31
32
|
event.stopPropagation();
|
|
32
33
|
this.isDragging = false;
|
|
33
|
-
if (this.disabled)
|
|
34
|
+
if (this.disabled) {
|
|
34
35
|
return;
|
|
36
|
+
}
|
|
35
37
|
const files = (_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.files;
|
|
36
38
|
if (files && files.length > 0) {
|
|
37
39
|
this.addFiles(Array.from(files));
|
|
@@ -71,8 +73,9 @@ export class EdsInputDropzone {
|
|
|
71
73
|
this.edsfile.emit({ files });
|
|
72
74
|
}
|
|
73
75
|
formatFileSize(bytes) {
|
|
74
|
-
if (bytes === 0)
|
|
76
|
+
if (bytes === 0) {
|
|
75
77
|
return '0 B';
|
|
78
|
+
}
|
|
76
79
|
const k = 1024;
|
|
77
80
|
const sizes = ['B', 'KB', 'MB', 'GB'];
|
|
78
81
|
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
@@ -91,7 +94,7 @@ export class EdsInputDropzone {
|
|
|
91
94
|
}
|
|
92
95
|
render() {
|
|
93
96
|
const dropzoneClass = `eds-input-dropzone ${this.isDragging ? 'dragging' : ''} ${this.disabled ? 'disabled' : ''}`;
|
|
94
|
-
return (h("div", { key: '
|
|
97
|
+
return (h("div", { key: '3a6f1876c879e361934a9e8730afe9d14a50d8e2', class: "eds-input-dropzone-container" }, h("input", { key: '293c9d66be6da5cf34b470f00468b3ede6abfb35', ref: (el) => (this.fileInputRef = el), type: "file", id: this.inputId || this.name, name: this.name, class: "eds-input-dropzone-hidden", disabled: this.disabled, required: this.required, multiple: this.multiple, accept: this.accept, onChange: this.handleFileSelect }), h("div", { key: '56457ccacc1e643258447ee929bdeb6b0e6e4fe7', class: dropzoneClass, onClick: this.handleDropzoneClick, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, h("svg", { key: '017fa615ec5b04dd3edd65d2e064ea58039d422b', class: "dropzone-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { key: '796dee372172d244dae644cab2136fce784e0865', d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), h("polyline", { key: 'cdd841be70c9a89c6040909797da1277b1ce244b', points: "17 8 12 3 7 8" }), h("line", { key: 'b4a8af3db664bdebd0c9651e4c806811ea21d905', x1: "12", y1: "3", x2: "12", y2: "15" })), h("div", { key: '5c799c8a751b06c743f4fc7c1810a91f35307d46', class: "dropzone-text" }, h("p", { key: '0d3971953c6f472bbde247378fccb4171606872d', class: "dropzone-primary" }, this.primaryText), h("p", { key: 'c64910c2d7ba60e6d315fa2831aca54faba84a79', class: "dropzone-secondary" }, this.secondaryText))), this.selectedFiles.length > 0 && (h("div", { key: 'b6f19ccc0304ba8a4369c95e86a61ad084dd9256', class: "eds-input-dropzone-chips" }, this.selectedFiles.map((item) => (h("div", { key: item.id, class: "eds-input-dropzone-chip" }, this.getFileIcon(item.file.name), h("span", { class: "eds-input-dropzone-chip-name" }, item.file.name), h("span", { class: "eds-input-dropzone-chip-size" }, this.formatFileSize(item.file.size)), h("button", { type: "button", class: "eds-input-dropzone-chip-remove", onClick: () => this.handleRemoveFile(item.id), disabled: this.disabled, "aria-label": `Remove ${item.file.name}` }, h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))))))))));
|
|
95
98
|
}
|
|
96
99
|
static get is() { return "eds-input-dropzone"; }
|
|
97
100
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,6 +28,7 @@ export class EdsInput {
|
|
|
28
28
|
this.min = undefined;
|
|
29
29
|
this.max = undefined;
|
|
30
30
|
this.step = undefined;
|
|
31
|
+
this.inputTabIndex = undefined;
|
|
31
32
|
this.innerVal = '';
|
|
32
33
|
this.maxLengthReached = false;
|
|
33
34
|
}
|
|
@@ -50,7 +51,7 @@ export class EdsInput {
|
|
|
50
51
|
render() {
|
|
51
52
|
const withIcon = !!this.icon;
|
|
52
53
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
|
|
53
|
-
return (h("div", { key: '
|
|
54
|
+
return (h("div", { key: '6456b8536db4d219eb307603c986e0aca4867a66', class: "relative flex items-center" }, this.type === 'textarea' ? (h("textarea", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, class: `min-h-80 input input-textarea ${withIcon ? 'input-with-icon' : ''} ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })) : this.type === 'select' ? (h("select", { id: this.inputId || this.name, name: this.name, required: this.required, disabled: this.disabled, class: `input input-select ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, onInput: this.handleInput, onChange: this.handleInput }, this.options.map((option) => (h("option", { value: option.value, selected: option.value === this.innerVal, key: option.value }, option.label))))) : (h("input", Object.assign({ id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, type: this.type, tabindex: this.inputTabIndex, checked: ['radio', 'checkbox'].includes(this.type) ? this.checked : undefined }, (this.type === 'number'
|
|
54
55
|
? {
|
|
55
56
|
min: this.min,
|
|
56
57
|
max: this.max,
|
|
@@ -61,7 +62,7 @@ export class EdsInput {
|
|
|
61
62
|
input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
|
|
62
63
|
${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
|
|
63
64
|
${this.error ? 'input-error' : ''}
|
|
64
|
-
`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }))), this.maxLength && this.type === 'textarea' && (h("span", { key: '
|
|
65
|
+
`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }))), this.maxLength && this.type === 'textarea' && (h("span", { key: '216f52d80eefa2f89e388e020e597493015ae8d6', class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? 'input-counter-error' : ''}` }, this.maxLength)), this.icon && (h("eds-icon-wrapper", { key: 'd3771580564237c9a8ded4e07f4293517bc885fd', class: `absolute top-1/2 left-[12px] -translate-y-1/2 ${this.disabled ? 'text-lightest' : 'text-lightest'}`, name: this.icon }))));
|
|
65
66
|
}
|
|
66
67
|
static get is() { return "eds-input"; }
|
|
67
68
|
static get properties() {
|
|
@@ -364,6 +365,23 @@ export class EdsInput {
|
|
|
364
365
|
},
|
|
365
366
|
"attribute": "step",
|
|
366
367
|
"reflect": false
|
|
368
|
+
},
|
|
369
|
+
"inputTabIndex": {
|
|
370
|
+
"type": "number",
|
|
371
|
+
"mutable": false,
|
|
372
|
+
"complexType": {
|
|
373
|
+
"original": "number",
|
|
374
|
+
"resolved": "number",
|
|
375
|
+
"references": {}
|
|
376
|
+
},
|
|
377
|
+
"required": false,
|
|
378
|
+
"optional": true,
|
|
379
|
+
"docs": {
|
|
380
|
+
"tags": [],
|
|
381
|
+
"text": "Explicit tabindex for the native input. Radio/checkbox groups\ninside the `eds-input-field` shadow root (delegatesFocus) get\nskipped by sequential keyboard navigation unless each input is\nexplicitly in the tab order."
|
|
382
|
+
},
|
|
383
|
+
"attribute": "input-tab-index",
|
|
384
|
+
"reflect": false
|
|
367
385
|
}
|
|
368
386
|
};
|
|
369
387
|
}
|
|
@@ -2,6 +2,45 @@ p {
|
|
|
2
2
|
margin: 0;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
/* Helper / hint text below the input — matches the brand mockup (.help):
|
|
6
|
+
mono, 10.5px, quiet grey. */
|
|
7
|
+
.eds-help {
|
|
8
|
+
font-family: 'IBM Plex Mono', ui-monospace, monospace;
|
|
9
|
+
font-size: 10.5px;
|
|
10
|
+
line-height: 1.45;
|
|
11
|
+
letter-spacing: 0.01em;
|
|
12
|
+
color: #8a8c8a;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Inline links inside a field message (from safeInlineFormat) — match eds-link's
|
|
16
|
+
"underline" intent. */
|
|
17
|
+
.eds-desc-link {
|
|
18
|
+
position: relative;
|
|
19
|
+
display: inline-block;
|
|
20
|
+
color: var(--brand-black);
|
|
21
|
+
text-decoration: none;
|
|
22
|
+
}
|
|
23
|
+
.eds-desc-link::after {
|
|
24
|
+
content: '';
|
|
25
|
+
position: absolute;
|
|
26
|
+
bottom: -2px;
|
|
27
|
+
left: 0;
|
|
28
|
+
width: 0;
|
|
29
|
+
height: 2px;
|
|
30
|
+
background-color: var(--brand-green);
|
|
31
|
+
transition: width 0.3s ease;
|
|
32
|
+
}
|
|
33
|
+
.eds-desc-link:hover::after { width: 100%; }
|
|
34
|
+
.eds-desc-link:focus-visible::after { width: 0; }
|
|
35
|
+
|
|
36
|
+
/* The help link (rendered as <eds-link size="small"> = f-ui-02) sits next to the
|
|
37
|
+
footer message (f-ui-04). Shrink the link to match the helper text by
|
|
38
|
+
redefining the f-ui-02 font-size token within the link's subtree (custom
|
|
39
|
+
properties cascade across the shadow boundary). */
|
|
40
|
+
eds-link {
|
|
41
|
+
--f-ui-02-fontSize: var(--f-ui-04-fontSize);
|
|
42
|
+
}
|
|
43
|
+
|
|
5
44
|
.text-error {
|
|
6
45
|
color: var(--red-700);
|
|
7
46
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { safeInlineFormat } from "../../../utils/eds-form/safeFormat";
|
|
2
3
|
export class EdsInputFooter {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.name = undefined;
|
|
@@ -8,7 +9,7 @@ export class EdsInputFooter {
|
|
|
8
9
|
this.link = undefined;
|
|
9
10
|
}
|
|
10
11
|
render() {
|
|
11
|
-
return (h("div", { key: '
|
|
12
|
+
return (h("div", { key: 'e3cf47ad941e608ec8f5daefd89d72e6d0af0f28' }, this.error && this.errorMessage && (h("div", { key: '0771ab5b0ba362a01df27c4b6ce0949ec51ec857', id: `error_${this.name}`, class: "text-error flex items-center" }, h("eds-icon-wrapper", { key: '43f86aa8632ea24b311e00a336b7d4b00b47ac80', name: "warning", size: 20 }), h("p", { key: '734a138c54dc0120fc6fdd320122c737b33b9d3b', class: "f-ui-04 ml-4 mb-4 pt-4", innerHTML: this.errorMessage }))), this.message && (h("p", { key: 'f8c6d5c1f48e10f9c556fc8d44189836b3b46dbf', id: `desc_${this.name}`, class: "eds-help text-lighter", innerHTML: safeInlineFormat(this.message) })), this.link && (h("eds-link", { key: 'fe7a52e14c6cf0791d36b781a92d7bbeca487ccc', label: this.link.label, url: this.link.url, intent: "underline", size: "small", external: true }))));
|
|
12
13
|
}
|
|
13
14
|
static get is() { return "eds-input-footer"; }
|
|
14
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
/* Field question label — a compact, medium-bold label matching the brand
|
|
2
|
+
mockup (14.5px). Set explicitly rather than via utility classes so the weight
|
|
3
|
+
doesn't depend on class ordering. We load IBM Plex Sans 400/600 only, so 600
|
|
4
|
+
is our "medium" (the mockup's 500 isn't bundled and would fall back to 400). */
|
|
1
5
|
.input-label {
|
|
2
|
-
font-family: var(--
|
|
3
|
-
font-
|
|
4
|
-
font-
|
|
5
|
-
line-height:
|
|
6
|
-
letter-spacing:
|
|
6
|
+
font-family: var(--plex-sans, 'IBM Plex Sans', system-ui, sans-serif);
|
|
7
|
+
font-size: 14.5px;
|
|
8
|
+
font-weight: 600;
|
|
9
|
+
line-height: 1.3;
|
|
10
|
+
letter-spacing: 0;
|
|
11
|
+
color: var(--brand-black, #07140d);
|
|
7
12
|
}
|
|
8
13
|
.input-label b,.input-label strong {
|
|
9
14
|
font-weight: var(--f-ui-02---bold-weight, bold);
|
|
@@ -11,6 +16,13 @@
|
|
|
11
16
|
.text-lighter {
|
|
12
17
|
color: var(--grey-600);
|
|
13
18
|
}
|
|
19
|
+
/* Required asterisk. Inherits the label colour by default; brand forms set
|
|
20
|
+
--eds-field-accent (via eds-form's brand body) to turn it green. */
|
|
21
|
+
.req-mark {
|
|
22
|
+
color: var(--eds-field-accent, currentColor);
|
|
23
|
+
margin-left: 1px;
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
}
|
|
14
26
|
.sr-only {
|
|
15
27
|
position: absolute;
|
|
16
28
|
width: 1px;
|
|
@@ -7,7 +7,7 @@ export class EdsInputLabel {
|
|
|
7
7
|
this.disabled = false;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h("label", { key: '
|
|
10
|
+
return (h("label", { key: '46f04462b12694d932be79bb1d252cd001d29e58', htmlFor: this.name, class: `input-label ${this.disabled ? 'text-lighter' : ''}` }, this.label, this.required && (h("span", { key: 'c747f5a7896b395f5c1b54725a966d54c7e5dfcd' }, h("span", { key: '2a27cfce971df8eab6186028f6c8319f19504317', "aria-hidden": "true", class: "req-mark" }, "*"), h("span", { key: '5876e15a66aa95a62b934edec0d64f01f713d1a8', class: "sr-only" }, "required")))));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "eds-input-label"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -30,11 +30,13 @@ export class EdsInputRange {
|
|
|
30
30
|
var _a;
|
|
31
31
|
this.sliderVal = (_a = this.value) !== null && _a !== void 0 ? _a : Math.round(this.min + (this.max - this.min) / 2);
|
|
32
32
|
}
|
|
33
|
-
// Keep the internal state in sync when the passed value changes.
|
|
33
|
+
// Keep the internal state in sync when the passed value changes. When the
|
|
34
|
+
// value is cleared (undefined/null — e.g. "Clear form"), fall back to the
|
|
35
|
+
// default midpoint so BOTH the thumb and the filled track reset together
|
|
36
|
+
// (the fill is derived from sliderVal, so it must be updated too).
|
|
34
37
|
onValueChange(newVal) {
|
|
35
|
-
|
|
36
|
-
this.
|
|
37
|
-
}
|
|
38
|
+
this.sliderVal =
|
|
39
|
+
newVal !== undefined && newVal !== null ? newVal : Math.round(this.min + (this.max - this.min) / 2);
|
|
38
40
|
}
|
|
39
41
|
componentDidLoad() {
|
|
40
42
|
// Assign the native input element after the component loads
|
|
@@ -47,7 +49,15 @@ export class EdsInputRange {
|
|
|
47
49
|
render() {
|
|
48
50
|
var _a;
|
|
49
51
|
const currentValue = (_a = this.sliderVal) !== null && _a !== void 0 ? _a : Math.round(this.min + (this.max - this.min) / 2);
|
|
50
|
-
|
|
52
|
+
// Paint the "filled" portion of the track up to the current value. Uses the
|
|
53
|
+
// brand accent when present (the var inherits from eds-form's brand body),
|
|
54
|
+
// else the default green — so non-brand forms look exactly as before.
|
|
55
|
+
const pct = this.max > this.min ? ((currentValue - this.min) / (this.max - this.min)) * 100 : 0;
|
|
56
|
+
const trackStyle = {
|
|
57
|
+
background: `linear-gradient(90deg, var(--eds-field-accent, var(--green-500)) ${pct}%, var(--grey-light, #ececec) ${pct}%)`
|
|
58
|
+
};
|
|
59
|
+
const mid = Math.round(this.min + (this.max - this.min) / 2);
|
|
60
|
+
return (h("div", { key: '742f329624bc2a8632640b6a93b6258d915f6deb', class: "eds-range" }, h("div", { key: '112ef4ef42761c85350f9624c10436fbd2600fce', class: "eds-range-top" }, h("span", { key: '2b2dbde929434f68c85a36380cbed1780707dfd8', id: `desc_${this.name}`, class: "eds-range-val" }, currentValue)), h("input", { key: 'd5bcbf157647324a1ddafab2001518707ae0de9b', id: this.inputId || this.name, name: this.name, style: trackStyle, min: this.min, max: this.max, step: this.step, value: currentValue, required: this.required, disabled: this.disabled, type: "range", class: "w-full input eds-range-input", tabindex: "0", role: "slider", "aria-describedby": `desc_${this.name}`, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": currentValue, onInput: this.onInput, onChange: this.onChange }), h("div", { key: 'e72eed37dc3dc0bd596f9198f4d3f59ac11e1c40', class: "eds-range-scale", "aria-hidden": "true" }, h("span", { key: 'ba65117d4dc0c498878760ddf124d614c19af7b9' }, this.min), h("span", { key: '82e42ecec8f53634c005acc151f12a3c6f390ab3' }, mid), h("span", { key: 'b2272241e488952785c92b4a495b1ba744e13d19' }, this.max))));
|
|
51
61
|
}
|
|
52
62
|
static get is() { return "eds-input-range"; }
|
|
53
63
|
static get properties() {
|
|
@@ -66,7 +66,7 @@ export class EdsInputSearch {
|
|
|
66
66
|
return this.inputElement;
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
|
-
return (h("div", { key: '
|
|
69
|
+
return (h("div", { key: '900ca7578601ff528b717e5bc3e1fe6b43562fb6', class: "relative flex items-center" }, h("eds-icon-wrapper", { key: '722eecc1031f51f83100f9d35719a7ea837f680d', name: "search", class: "absolute top-1/2 left-[14px] -translate-y-1/2 text-lightest", "aria-hidden": "true" }), h("input", { key: '0445caabbf5e3077b708a2b8bdbe0fcee3133398', id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.value || '', required: this.required, disabled: this.disabled, type: "search", "aria-label": this.placeholder, class: `input pl-36 ${this.decorate}`,
|
|
70
70
|
//onInput={this.onInput}
|
|
71
71
|
onChange: this.onChange })));
|
|
72
72
|
}
|
package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.stories.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: 'Components/Inputs/Search',
|
|
3
|
+
component: 'eds-input-search',
|
|
4
|
+
argTypes: {
|
|
5
|
+
label: { control: 'text', description: 'Accessible label for the search field.' },
|
|
6
|
+
placeholder: { control: 'text', description: 'Placeholder text.' },
|
|
7
|
+
value: { control: 'text', description: 'Current value of the search field.' },
|
|
8
|
+
disabled: { control: 'boolean', description: 'If true, the input is disabled.' },
|
|
9
|
+
required: { control: 'boolean', description: 'If true, the input is required.' }
|
|
10
|
+
},
|
|
11
|
+
args: {
|
|
12
|
+
label: 'Search',
|
|
13
|
+
placeholder: 'Search…',
|
|
14
|
+
disabled: false,
|
|
15
|
+
required: false
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export const Default = {
|
|
19
|
+
render: (args) => `
|
|
20
|
+
<eds-input-search
|
|
21
|
+
name="search-box"
|
|
22
|
+
input-id="search-main"
|
|
23
|
+
${args.label ? `label="${args.label}"` : ''}
|
|
24
|
+
${args.placeholder ? `placeholder="${args.placeholder}"` : ''}
|
|
25
|
+
${args.value ? `value="${args.value}"` : ''}
|
|
26
|
+
${args.disabled ? 'disabled="true"' : ''}
|
|
27
|
+
${args.required ? 'required="true"' : ''}
|
|
28
|
+
></eds-input-search>
|
|
29
|
+
`
|
|
30
|
+
};
|
|
@@ -26,12 +26,16 @@ export class EdsInputSelect {
|
|
|
26
26
|
const selectId = this.inputId || this.name;
|
|
27
27
|
const placeholderText = this.placeholder || `Pick from the list`;
|
|
28
28
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : undefined;
|
|
29
|
-
return (h("div", { key: '
|
|
29
|
+
return (h("div", { key: '303df3cd45f076ae5b29f301c9dc742e1664887a', class: "relative" }, h("select", { key: '7635ec7c53e7f07c7c71ab25e8475ed53a8d013e', id: selectId, name: this.name, class: {
|
|
30
30
|
input: true,
|
|
31
31
|
'input-error': this.error,
|
|
32
|
+
// No real value yet → the placeholder option is showing. Lets CSS
|
|
33
|
+
// render the select text in the light placeholder colour (grey-500),
|
|
34
|
+
// matching text inputs, instead of the dark default text colour.
|
|
35
|
+
'is-placeholder': !this.value && this.value !== 0,
|
|
32
36
|
'px-4': true,
|
|
33
37
|
'py-2': true
|
|
34
|
-
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, h("option", { key: '
|
|
38
|
+
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, h("option", { key: '793cd7db90936a9746810075246b5408710ce7ac', value: "", disabled: true, selected: !this.value || this.value === '' }, placeholderText), this.options.map((opt, index) => (h("option", { key: index, value: opt.value, selected: opt.value === this.value }, opt.label)))), h("span", { key: '41a1eb4a753c304148ee6cdc71049fa15cbd61f6', class: "bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center" }, h("eds-icon-wrapper", { key: '4ee4022f9d47fc26b27006f144fc598367f50169', class: "w-20 h-20", name: "chevron-right" }))));
|
|
35
39
|
}
|
|
36
40
|
static get is() { return "eds-input-select"; }
|
|
37
41
|
static get properties() {
|