@ebrains/components 2.3.1 → 2.4.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 +33 -24
- 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_36.cjs.entry.js → eds-accordion_37.cjs.entry.js} +661 -209
- package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-desc_2.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-generic.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +1 -1
- package/dist/cjs/eds-feedback.cjs.entry.js +1 -1
- package/dist/cjs/eds-footer.cjs.entry.js +2 -2
- package/dist/cjs/eds-frame.cjs.entry.js +1 -1
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +8 -3
- package/dist/cjs/eds-gauge.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-bin.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-bookmark.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-clone.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-close.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-copy.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-download.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-draft.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-edit.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-external.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-loader.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-minus.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-paper.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-plus.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-portal.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-private.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-public.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-star.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-start.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-tutorial.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-updown.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-view.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
- package/dist/cjs/eds-modal.cjs.entry.js +2 -2
- package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
- package/dist/cjs/eds-social-networks.cjs.entry.js +1 -1
- package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
- package/dist/cjs/eds-toast-manager.cjs.entry.js +1 -1
- package/dist/cjs/eds-trl.cjs.entry.js +1 -1
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/index-50bc1aa4.js +2 -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 +3 -3
- 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/cjs/{up-and-down-d71df67d.js → up-and-down-6f179dd8.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
- package/dist/collection/components/eds-alert/eds-alert.js +2 -2
- package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
- 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.js +1 -19
- 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-tags/eds-card-tags.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-generic/eds-card-generic.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.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 +2 -2
- package/dist/collection/components/eds-feedback/eds-feedback.js +1 -1
- package/dist/collection/components/eds-footer/eds-footer.js +2 -2
- package/dist/collection/components/eds-form/eds-form.js +56 -16
- package/dist/collection/components/eds-frame/eds-frame.js +1 -1
- package/dist/collection/components/eds-fullscreen-menu/eds-fullscreen-menu.js +8 -3
- package/dist/collection/components/eds-header/eds-header.css +5 -0
- package/dist/collection/components/eds-header/eds-header.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-bin/eds-icon-bin.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-clone/eds-icon-clone.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-download/eds-icon-download.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-draft/eds-icon-draft.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-edit/eds-icon-edit.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-start/eds-icon-start.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +2 -2
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-view/eds-icon-view.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
- package/dist/collection/components/eds-img/eds-img.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +2 -2
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- package/dist/collection/components/eds-link/eds-link.js +15 -25
- package/dist/collection/components/eds-logo/eds-logo.js +1 -1
- package/dist/collection/components/eds-modal/eds-modal.js +2 -2
- package/dist/collection/components/eds-nps/eds-nps.js +66 -53
- package/dist/collection/components/eds-pagination/eds-pagination.js +1 -1
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
- package/dist/collection/components/eds-rating/eds-rating.js +1 -1
- 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.css +458 -0
- package/dist/collection/components/eds-sidebar/eds-sidebar.js +299 -0
- package/dist/collection/components/eds-sidebar/eds-sidebar.stories.js +141 -0
- 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 +334 -10
- package/dist/collection/components/eds-steps/eds-steps.js +187 -101
- package/dist/collection/components/eds-steps/eds-steps.stories.js +21 -3
- package/dist/collection/components/eds-steps-v2/eds-steps-v2.css +167 -3
- package/dist/collection/components/eds-steps-v2/eds-steps-v2.js +177 -113
- package/dist/collection/components/eds-steps-v2/eds-steps-v2.stories.js +8 -1
- package/dist/collection/components/eds-switch/eds-switch.js +2 -2
- package/dist/collection/components/eds-table/eds-table.css +14 -0
- package/dist/collection/components/eds-table/eds-table.js +99 -9
- package/dist/collection/components/eds-tabs/eds-tabs.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-manager/eds-toast-manager.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
- package/dist/collection/components/eds-trl/eds-trl.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/components-section/functional/overview.js +2 -2
- package/dist/collection/eds-docs-ui/components-section/functional/vue.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-global-search/eds-global-search.js +10 -12
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.stories.js +2 -1
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/components/components-section.js +33 -24
- package/dist/components/components.css +312 -0
- 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-alert2.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 +1 -3
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-generic2.js +1 -1
- package/dist/components/eds-card-project.js +1 -1
- package/dist/components/eds-card-tags.js +1 -1
- package/dist/components/eds-card-title2.js +1 -1
- package/dist/components/eds-card-tool.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 +2 -2
- package/dist/components/eds-feedback.js +1 -1
- package/dist/components/eds-footer2.js +2 -2
- package/dist/components/eds-form.js +80 -34
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-fullscreen-menu.js +8 -3
- package/dist/components/eds-gauge.js +1 -1
- package/dist/components/eds-global-search.js +31 -27
- package/dist/components/eds-header.js +2 -2
- package/dist/components/eds-icon-arrow-diagonal.js +1 -1
- package/dist/components/eds-icon-arrow-right.js +1 -1
- package/dist/components/eds-icon-bin.js +1 -1
- package/dist/components/eds-icon-bluesky.js +1 -1
- package/dist/components/eds-icon-bookmark.js +1 -1
- package/dist/components/eds-icon-chevron-down.js +1 -1
- package/dist/components/eds-icon-chevron-left.js +1 -1
- package/dist/components/eds-icon-chevron-right.js +1 -1
- package/dist/components/eds-icon-chevron-up.js +1 -1
- package/dist/components/eds-icon-clone.js +1 -1
- package/dist/components/eds-icon-close.js +1 -1
- package/dist/components/eds-icon-copy.js +1 -1
- package/dist/components/eds-icon-download.js +1 -1
- package/dist/components/eds-icon-draft.js +1 -1
- package/dist/components/eds-icon-edit.js +1 -1
- package/dist/components/eds-icon-eu.js +1 -1
- package/dist/components/eds-icon-external.js +1 -1
- package/dist/components/eds-icon-facebook.js +1 -1
- package/dist/components/eds-icon-gitlab.js +1 -1
- package/dist/components/eds-icon-linkedin.js +1 -1
- package/dist/components/eds-icon-loader.js +1 -1
- package/dist/components/eds-icon-mastodon.js +1 -1
- package/dist/components/eds-icon-menu.js +1 -1
- package/dist/components/eds-icon-minus.js +1 -1
- package/dist/components/eds-icon-more.js +1 -1
- package/dist/components/eds-icon-paper.js +1 -1
- package/dist/components/eds-icon-plus.js +1 -1
- package/dist/components/eds-icon-portal.js +1 -1
- package/dist/components/eds-icon-private.js +1 -1
- package/dist/components/eds-icon-public.js +1 -1
- package/dist/components/eds-icon-search.js +1 -1
- package/dist/components/eds-icon-star.js +1 -1
- package/dist/components/eds-icon-start.js +1 -1
- package/dist/components/eds-icon-success.js +1 -1
- package/dist/components/eds-icon-thumbs-down.js +1 -1
- package/dist/components/eds-icon-thumbs-up.js +1 -1
- package/dist/components/eds-icon-tutorial.js +1 -1
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-unknown.js +1 -1
- package/dist/components/eds-icon-updown.js +2 -2
- package/dist/components/eds-icon-user.js +1 -1
- package/dist/components/eds-icon-view.js +1 -1
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +2 -2
- package/dist/components/eds-input-field2.js +22 -16
- package/dist/components/eds-input-footer2.js +9 -3
- package/dist/components/eds-input-label2.js +1 -1
- package/dist/components/eds-input-range2.js +1 -1
- package/dist/components/eds-input-search2.js +1 -1
- package/dist/components/eds-input-select2.js +2 -2
- package/dist/components/eds-input2.js +2 -2
- package/dist/components/eds-link2.js +14 -9
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-modal.js +2 -2
- package/dist/components/eds-nps2.js +66 -53
- package/dist/components/eds-pagination2.js +1 -1
- package/dist/components/eds-progress-bar2.js +1 -1
- package/dist/components/eds-rating2.js +1 -1
- package/dist/components/eds-section-core2.js +1 -1
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-sidebar.d.ts +11 -0
- package/dist/components/eds-sidebar.js +208 -0
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-steps-v2.js +133 -46
- package/dist/components/eds-steps2.js +130 -34
- package/dist/components/eds-switch.js +2 -2
- package/dist/components/eds-table2.js +65 -9
- package/dist/components/eds-tabs.js +2 -2
- package/dist/components/eds-tag2.js +1 -1
- package/dist/components/eds-timeline.js +1 -1
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-tooltip2.js +1 -1
- package/dist/components/eds-trl.js +1 -1
- package/dist/components/eds-user.js +1 -1
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/logo-space.js +1 -1
- 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-062d2f91.entry.js +1 -0
- package/dist/components/p-0725a684.entry.js +1 -0
- package/dist/components/p-07d5560c.entry.js +1 -0
- package/dist/components/p-13f74e41.entry.js +1 -0
- package/dist/components/p-15dc5ecf.entry.js +1 -0
- package/dist/components/{p-ca91952b.entry.js → p-15df046d.entry.js} +1 -1
- package/dist/components/p-15f94425.entry.js +1 -0
- package/dist/components/{p-7c7aaa95.entry.js → p-1f0819cf.entry.js} +1 -1
- package/dist/components/p-1f74c192.entry.js +1 -0
- package/dist/components/p-20e711e6.entry.js +1 -0
- package/dist/components/{p-398255ff.entry.js → p-21510f7a.entry.js} +1 -1
- package/dist/components/{p-fe2bb83e.entry.js → p-277d0045.entry.js} +1 -1
- package/dist/components/p-28ce55ae.entry.js +1 -0
- package/dist/components/p-30e88fc2.entry.js +1 -0
- package/dist/components/{p-75b40e57.entry.js → p-314aa952.entry.js} +1 -1
- package/dist/components/p-355df495.entry.js +1 -0
- package/dist/components/p-366c5c03.entry.js +1 -0
- package/dist/components/p-38113b9c.entry.js +1 -0
- package/dist/components/{p-ce3b6043.entry.js → p-3a1e54bd.entry.js} +1 -1
- package/dist/components/{p-7b0496b1.entry.js → p-3ad7a15b.entry.js} +1 -1
- package/dist/components/p-3b838def.entry.js +1 -0
- package/dist/components/p-48825534.entry.js +1 -0
- package/dist/components/{p-e614c8e8.entry.js → p-4cebd89e.entry.js} +1 -1
- package/dist/components/p-51d0e443.entry.js +1 -0
- package/dist/components/p-53f6527b.entry.js +1 -0
- package/dist/components/{p-76330532.entry.js → p-5ba1c4b4.entry.js} +1 -1
- package/dist/components/{p-e2bc6329.entry.js → p-5e6f5588.entry.js} +1 -1
- package/dist/components/p-6197c589.entry.js +1 -0
- package/dist/components/{p-24683124.entry.js → p-632bd36e.entry.js} +1 -1
- package/dist/components/p-65948a6e.entry.js +1 -0
- package/dist/components/{p-e9a6f693.entry.js → p-67c3bedc.entry.js} +1 -1
- package/dist/components/{p-0798d50d.entry.js → p-721431b8.entry.js} +1 -1
- package/dist/components/p-7737d5c7.entry.js +1 -0
- package/dist/components/p-78e85217.entry.js +1 -0
- package/dist/components/p-7a62ae0d.entry.js +1 -0
- package/dist/components/p-7aa97ad6.entry.js +1 -0
- package/dist/components/{p-2d6ca1c5.entry.js → p-7f820989.entry.js} +1 -1
- package/dist/components/{p-b471922f.entry.js → p-801f67a1.entry.js} +1 -1
- package/dist/components/{p-b522fa70.entry.js → p-80ced58a.entry.js} +1 -1
- package/dist/components/p-87481169.entry.js +1 -0
- package/dist/components/p-87df6442.entry.js +1 -0
- package/dist/components/p-8bd954b5.entry.js +1 -0
- package/dist/components/{p-bce8a58d.entry.js → p-8c520685.entry.js} +1 -1
- package/dist/components/p-941dc156.entry.js +1 -0
- package/dist/components/p-9afd31cb.entry.js +1 -0
- package/dist/components/p-9cd1cc1e.entry.js +1 -0
- package/dist/components/{p-4beb1e06.entry.js → p-9d57b51f.entry.js} +1 -1
- package/dist/components/{p-df18ffd1.entry.js → p-a61dbad5.entry.js} +1 -1
- package/dist/components/p-a7323642.entry.js +1 -0
- package/dist/components/p-a83c336c.entry.js +1 -0
- package/dist/components/p-ab4acc26.entry.js +1 -0
- package/dist/components/p-ac501eb6.entry.js +1 -0
- package/dist/components/p-ad036475.entry.js +1 -0
- package/dist/components/p-ad295d47.entry.js +1 -0
- package/dist/components/p-ad6e7daf.entry.js +1 -0
- package/dist/components/{p-f2b12631.entry.js → p-ae471b33.entry.js} +1 -1
- package/dist/components/p-b64f8ffc.entry.js +1 -0
- package/dist/components/p-bb800eec.entry.js +1 -0
- package/dist/components/p-bfb00131.entry.js +1 -0
- package/dist/components/p-c07e3269.entry.js +1 -0
- package/dist/components/p-c286e9d3.entry.js +1 -0
- package/dist/components/p-c38c527e.entry.js +1 -0
- package/dist/components/p-c404226a.entry.js +1 -0
- package/dist/components/p-c9d60f21.entry.js +1 -0
- package/dist/components/p-d29676a0.entry.js +1 -0
- package/dist/components/p-df5fc158.entry.js +1 -0
- package/dist/components/p-e311fe9e.entry.js +1 -0
- package/dist/components/p-e4f0f24a.entry.js +1 -0
- package/dist/components/{p-963feadd.entry.js → p-eda55db0.entry.js} +1 -1
- package/dist/components/p-ee93afac.entry.js +1 -0
- package/dist/components/{p-838d6773.entry.js → p-f0993844.entry.js} +1 -1
- package/dist/components/p-f1c8f841.entry.js +1 -0
- package/dist/components/{p-7ada2015.entry.js → p-f24bfc6a.entry.js} +1 -1
- package/dist/components/p-f3754a20.entry.js +1 -0
- package/dist/components/{p-b8b4c01e.entry.js → p-f4c954ec.entry.js} +1 -1
- package/dist/components/p-f6baca73.entry.js +9 -0
- package/dist/components/p-f7b88ef5.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 +3 -3
- 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/components/up-and-down.js +2 -2
- package/dist/esm/color-primary-palette_6.entry.js +14 -14
- package/dist/esm/components-section.entry.js +33 -24
- 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_36.entry.js → eds-accordion_37.entry.js} +661 -210
- package/dist/esm/eds-app-root.entry.js +1 -1
- package/dist/esm/eds-card-desc_2.entry.js +2 -2
- package/dist/esm/eds-card-generic.entry.js +1 -1
- package/dist/esm/eds-card-project.entry.js +1 -1
- package/dist/esm/eds-card-tags.entry.js +1 -1
- package/dist/esm/eds-card-tool.entry.js +1 -1
- package/dist/esm/eds-cookies-preference.entry.js +1 -1
- package/dist/esm/eds-feedback.entry.js +1 -1
- package/dist/esm/eds-footer.entry.js +2 -2
- package/dist/esm/eds-frame.entry.js +1 -1
- package/dist/esm/eds-fullscreen-menu.entry.js +8 -3
- package/dist/esm/eds-gauge.entry.js +1 -1
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +1 -1
- package/dist/esm/eds-icon-arrow-right.entry.js +1 -1
- package/dist/esm/eds-icon-bin.entry.js +1 -1
- package/dist/esm/eds-icon-bluesky.entry.js +1 -1
- package/dist/esm/eds-icon-bookmark.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-down.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-left.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-right.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-up.entry.js +1 -1
- package/dist/esm/eds-icon-clone.entry.js +1 -1
- package/dist/esm/eds-icon-close.entry.js +1 -1
- package/dist/esm/eds-icon-copy.entry.js +1 -1
- package/dist/esm/eds-icon-download.entry.js +1 -1
- package/dist/esm/eds-icon-draft.entry.js +1 -1
- package/dist/esm/eds-icon-edit.entry.js +1 -1
- package/dist/esm/eds-icon-eu.entry.js +1 -1
- package/dist/esm/eds-icon-external.entry.js +1 -1
- package/dist/esm/eds-icon-facebook.entry.js +1 -1
- package/dist/esm/eds-icon-gitlab.entry.js +1 -1
- package/dist/esm/eds-icon-linkedin.entry.js +1 -1
- package/dist/esm/eds-icon-loader.entry.js +1 -1
- package/dist/esm/eds-icon-mastodon.entry.js +1 -1
- package/dist/esm/eds-icon-menu.entry.js +1 -1
- package/dist/esm/eds-icon-minus.entry.js +1 -1
- package/dist/esm/eds-icon-more.entry.js +1 -1
- package/dist/esm/eds-icon-paper.entry.js +1 -1
- package/dist/esm/eds-icon-plus.entry.js +1 -1
- package/dist/esm/eds-icon-portal.entry.js +1 -1
- package/dist/esm/eds-icon-private.entry.js +1 -1
- package/dist/esm/eds-icon-public.entry.js +1 -1
- package/dist/esm/eds-icon-search.entry.js +1 -1
- package/dist/esm/eds-icon-star.entry.js +1 -1
- package/dist/esm/eds-icon-start.entry.js +1 -1
- package/dist/esm/eds-icon-success.entry.js +1 -1
- package/dist/esm/eds-icon-thumbs-down.entry.js +1 -1
- package/dist/esm/eds-icon-thumbs-up.entry.js +1 -1
- package/dist/esm/eds-icon-tutorial.entry.js +1 -1
- package/dist/esm/eds-icon-twitter.entry.js +1 -1
- package/dist/esm/eds-icon-unknown.entry.js +1 -1
- package/dist/esm/eds-icon-updown.entry.js +2 -2
- package/dist/esm/eds-icon-user.entry.js +1 -1
- package/dist/esm/eds-icon-view.entry.js +1 -1
- package/dist/esm/eds-icon-youtube.entry.js +1 -1
- package/dist/esm/eds-modal.entry.js +2 -2
- package/dist/esm/eds-progress-bar.entry.js +1 -1
- package/dist/esm/eds-section-core_2.entry.js +3 -3
- package/dist/esm/eds-social-networks.entry.js +1 -1
- package/dist/esm/eds-timeline.entry.js +1 -1
- package/dist/esm/eds-toast-manager.entry.js +1 -1
- package/dist/esm/eds-trl.entry.js +1 -1
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/index-870ab08f.js +2 -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 +3 -3
- 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/esm/{up-and-down-d747abee.js → up-and-down-8b69ca97.js} +2 -2
- package/dist/hydrate/index.js +827 -341
- package/dist/hydrate/index.mjs +827 -341
- package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +2 -2
- package/dist/types/components/eds-button/eds-button.d.ts +0 -1
- package/dist/types/components/eds-form/eds-form.d.ts +1 -0
- package/dist/types/components/eds-link/eds-link.d.ts +0 -1
- package/dist/types/components/eds-nps/eds-nps.d.ts +5 -3
- package/dist/types/components/eds-sidebar/eds-sidebar.d.ts +50 -0
- package/dist/types/components/eds-sidebar/eds-sidebar.stories.d.ts +98 -0
- package/dist/types/components/eds-steps/eds-steps.d.ts +18 -69
- package/dist/types/components/eds-steps/eds-steps.stories.d.ts +18 -0
- package/dist/types/components/eds-steps-v2/eds-steps-v2.d.ts +24 -52
- package/dist/types/components/eds-steps-v2/eds-steps-v2.stories.d.ts +8 -0
- package/dist/types/components/eds-table/eds-table.d.ts +8 -0
- package/dist/types/components.d.ts +143 -124
- package/package.json +1 -1
- package/dist/components/p-004801b2.entry.js +0 -1
- package/dist/components/p-02648f82.entry.js +0 -1
- package/dist/components/p-09f1b358.entry.js +0 -1
- package/dist/components/p-0ec9dcf5.entry.js +0 -1
- package/dist/components/p-0fb8511d.entry.js +0 -1
- package/dist/components/p-127870d7.entry.js +0 -1
- package/dist/components/p-12e153fb.entry.js +0 -1
- package/dist/components/p-1f80e708.entry.js +0 -1
- package/dist/components/p-21b5ca1f.entry.js +0 -1
- package/dist/components/p-2bfcb3cf.entry.js +0 -1
- package/dist/components/p-2efa0ba6.entry.js +0 -1
- package/dist/components/p-33a639b5.entry.js +0 -1
- package/dist/components/p-36b17bf2.entry.js +0 -1
- package/dist/components/p-3c478e74.entry.js +0 -1
- package/dist/components/p-447e436c.entry.js +0 -1
- package/dist/components/p-44d33938.entry.js +0 -1
- package/dist/components/p-4995b8b2.entry.js +0 -1
- package/dist/components/p-53343ea1.entry.js +0 -1
- package/dist/components/p-54e29971.entry.js +0 -1
- package/dist/components/p-56447243.entry.js +0 -1
- package/dist/components/p-56cc4a15.entry.js +0 -1
- package/dist/components/p-5ddcec77.entry.js +0 -1
- package/dist/components/p-5e8142ed.entry.js +0 -1
- package/dist/components/p-70f5e9f5.entry.js +0 -1
- package/dist/components/p-714445de.entry.js +0 -1
- package/dist/components/p-7436a99a.entry.js +0 -1
- package/dist/components/p-772d6ca9.entry.js +0 -1
- package/dist/components/p-79044ab6.entry.js +0 -1
- package/dist/components/p-81ba0feb.entry.js +0 -1
- package/dist/components/p-82b357f7.entry.js +0 -1
- package/dist/components/p-84239973.entry.js +0 -1
- package/dist/components/p-85dfbfd3.entry.js +0 -1
- package/dist/components/p-a155c283.entry.js +0 -1
- package/dist/components/p-a4080044.entry.js +0 -1
- package/dist/components/p-abd40167.entry.js +0 -1
- package/dist/components/p-ae41414e.entry.js +0 -1
- package/dist/components/p-afb55d52.entry.js +0 -1
- package/dist/components/p-b4c2c58d.entry.js +0 -9
- package/dist/components/p-b6fc1a7d.entry.js +0 -1
- package/dist/components/p-b8a36d0f.entry.js +0 -1
- package/dist/components/p-bb4633ec.entry.js +0 -1
- package/dist/components/p-bc59e5ff.entry.js +0 -1
- package/dist/components/p-cdabb63e.entry.js +0 -1
- package/dist/components/p-d3fa440f.entry.js +0 -1
- package/dist/components/p-dacd8c26.entry.js +0 -1
- package/dist/components/p-ddec1f12.entry.js +0 -1
- package/dist/components/p-e6819f4d.entry.js +0 -1
- package/dist/components/p-e8d0a2db.entry.js +0 -1
- package/dist/components/p-eaf5d057.entry.js +0 -1
- package/dist/components/p-eb57d477.entry.js +0 -1
- package/dist/components/p-efdc6fd7.entry.js +0 -1
- package/dist/components/p-f013c0ac.entry.js +0 -1
- package/dist/components/p-f1ead3b3.entry.js +0 -1
- /package/dist/components/{p-1b2913c8.js → p-553ca350.js} +0 -0
|
@@ -3,71 +3,84 @@ export class EdsNps {
|
|
|
3
3
|
constructor() {
|
|
4
4
|
this.min = 0;
|
|
5
5
|
this.max = 10;
|
|
6
|
+
this.btnRefs = [];
|
|
7
|
+
this.onSelect = (value) => {
|
|
8
|
+
this.selectedValue = value;
|
|
9
|
+
this.nps.emit(value);
|
|
10
|
+
// Move focus to the selected button (like your rating component)
|
|
11
|
+
requestAnimationFrame(() => {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
const idx = value - this.min;
|
|
14
|
+
(_b = (_a = this.btnRefs[idx]) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
this.handleKeyNav = (e) => {
|
|
18
|
+
const { key } = e;
|
|
19
|
+
const navigational = ['ArrowRight', 'ArrowLeft', 'Home', 'End', ' ', 'Enter'];
|
|
20
|
+
if (!navigational.includes(key)) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
e.preventDefault();
|
|
24
|
+
const count = this.max - this.min + 1;
|
|
25
|
+
// Derive current index from selectedValue; if none, use 0 (first)
|
|
26
|
+
let currentIdx = this.selectedValue == null ? 0 : this.selectedValue - this.min;
|
|
27
|
+
switch (key) {
|
|
28
|
+
case 'ArrowRight':
|
|
29
|
+
currentIdx = Math.min(count - 1, currentIdx + 1);
|
|
30
|
+
this.setActiveByIndex(currentIdx, /*commit*/ false);
|
|
31
|
+
break;
|
|
32
|
+
case 'ArrowLeft':
|
|
33
|
+
currentIdx = Math.max(0, currentIdx - 1);
|
|
34
|
+
this.setActiveByIndex(currentIdx, /*commit*/ false);
|
|
35
|
+
break;
|
|
36
|
+
case 'Home':
|
|
37
|
+
this.setActiveByIndex(0, /*commit*/ false);
|
|
38
|
+
break;
|
|
39
|
+
case 'End':
|
|
40
|
+
this.setActiveByIndex(count - 1, /*commit*/ false);
|
|
41
|
+
break;
|
|
42
|
+
case ' ':
|
|
43
|
+
case 'Enter':
|
|
44
|
+
// Commit current focused item
|
|
45
|
+
this.onSelect(this.min + currentIdx);
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
6
49
|
this.question = undefined;
|
|
7
50
|
this.leftLabel = undefined;
|
|
8
51
|
this.rightLabel = undefined;
|
|
9
52
|
this.selectedValue = null;
|
|
10
53
|
}
|
|
11
|
-
|
|
54
|
+
/** Move visual highlight & roving tabindex; optionally commit selection */
|
|
55
|
+
setActiveByIndex(index, commit = false) {
|
|
56
|
+
var _a;
|
|
57
|
+
const value = this.min + index;
|
|
58
|
+
// Update highlight so focus movement is visible (like your rating)
|
|
12
59
|
this.selectedValue = value;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
switch (e.key) {
|
|
19
|
-
case 'ArrowRight':
|
|
20
|
-
case 'ArrowLeft': {
|
|
21
|
-
e.preventDefault();
|
|
22
|
-
const delta = e.key === 'ArrowRight' ? 1 : -1;
|
|
23
|
-
const nextIndex = Math.min(this.max, Math.max(0, currentIndex + delta));
|
|
24
|
-
this.activateRadio(radios, nextIndex);
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
case 'Home': {
|
|
28
|
-
e.preventDefault();
|
|
29
|
-
this.activateRadio(radios, 0);
|
|
30
|
-
break;
|
|
31
|
-
}
|
|
32
|
-
case 'End': {
|
|
33
|
-
e.preventDefault();
|
|
34
|
-
this.activateRadio(radios, this.max);
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
case 'Enter':
|
|
38
|
-
case ' ': {
|
|
39
|
-
e.preventDefault();
|
|
40
|
-
if (currentIndex >= 0) {
|
|
41
|
-
this.handleClick(this.min + currentIndex);
|
|
42
|
-
}
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
case 'Escape': {
|
|
46
|
-
e.preventDefault();
|
|
47
|
-
if (currentIndex >= 0) {
|
|
48
|
-
radios[currentIndex].blur();
|
|
49
|
-
}
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
default:
|
|
53
|
-
return;
|
|
60
|
+
// Focus the button host (ensure eds-button forwards focus to its inner <button>)
|
|
61
|
+
const target = this.btnRefs[index];
|
|
62
|
+
typeof (target === null || target === void 0 ? void 0 : target.focusInner) === 'function' ? target.focusInner() : (_a = target === null || target === void 0 ? void 0 : target.focus) === null || _a === void 0 ? void 0 : _a.call(target);
|
|
63
|
+
if (commit) {
|
|
64
|
+
this.onSelect(value);
|
|
54
65
|
}
|
|
55
66
|
}
|
|
56
|
-
activateRadio(radios, index) {
|
|
57
|
-
const target = radios[index];
|
|
58
|
-
const value = this.min + index;
|
|
59
|
-
this.handleClick(value);
|
|
60
|
-
target.focus();
|
|
61
|
-
}
|
|
62
67
|
render() {
|
|
63
68
|
const count = this.max - this.min + 1;
|
|
64
|
-
|
|
65
|
-
return (h("div", { key: '19326c22d2b5c9f2fbc97bfb3c3d958d14cdfa25', class: "eds-nps" }, h("eds-input-label", { key: '046239977d2dc639eabfc60a67df62011833a983', id: "nps-question", name: "nps-question", label: this.question }), h("div", { key: 'e296b8ff3a081f42263ee0c0a28ef3f304b1e1c0', role: "group", id: "nps-buttons", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: count }, (_, i) => {
|
|
69
|
+
return (h("div", { key: 'ca0a63dd6554e39b78fe1c607af0fede74c692c7', class: "eds-nps" }, h("eds-input-label", { key: 'bdf231836d8c6dbd46e852753696c4b7dad577c7', id: "nps-question", name: "nps-question", label: this.question }), h("div", { key: '004ad431ca02e57c7848a4c3fd0a4ecff40b6573', id: "nps-buttons", role: "radiogroup", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: this.handleKeyNav }, Array.from({ length: count }, (_, i) => {
|
|
66
70
|
const val = this.min + i;
|
|
67
71
|
const isSelected = val === this.selectedValue;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
72
|
+
// Roving tabindex: focusable is the selected; if none selected yet, first is focusable
|
|
73
|
+
const tabIndex = isSelected || (this.selectedValue == null && i === 0) ? 0 : -1;
|
|
74
|
+
return (h("div", { class: "grid-col-span-1", key: val }, h("eds-button", { ref: (el) => (this.btnRefs[i] = el), role: "radio", "aria-checked": isSelected ? 'true' : 'false', "aria-label": `${val}`,
|
|
75
|
+
// Use onClick so keyboard activation on inner <button> works natively
|
|
76
|
+
onClick: () => this.onSelect(val), tabIndex: tabIndex, intent: isSelected ? 'primary' : 'ghost', "extra-class": "!block !px-0 w-full", label: `${val}`,
|
|
77
|
+
// Optional: keep highlight in sync when tabbing into the group
|
|
78
|
+
onFocus: () => {
|
|
79
|
+
// Only move highlight on initial focus or when roving; remove if you
|
|
80
|
+
// want focus without highlight.
|
|
81
|
+
this.selectedValue = val;
|
|
82
|
+
} })));
|
|
83
|
+
})), h("div", { key: 'ffd498e00559a76b44e8d98ed060db86e60fbde7', class: "flex justify-between mt-8" }, h("span", { key: '80065344c34d88ce3f01aac28d2b87ded60ec524', class: "f-ui-04 text-light ml-4" }, this.leftLabel), h("span", { key: '2a67b416e4e7b0bf61aa66cb4546192860bd372f', class: "f-ui-04 text-light mr-4" }, this.rightLabel))));
|
|
71
84
|
}
|
|
72
85
|
static get is() { return "eds-nps"; }
|
|
73
86
|
static get encapsulation() { return "shadow"; }
|
|
@@ -248,7 +248,7 @@ export class EdsPagination {
|
|
|
248
248
|
}
|
|
249
249
|
render() {
|
|
250
250
|
const navigableIndex = -1; // Track index for keyboard navigation
|
|
251
|
-
return (h("div", { key: '
|
|
251
|
+
return (h("div", { key: '3ca147814cf1e0003bac73502a0ae2bf96412ce2' }, this.total > 0 && this.mode === 'default' && (h("p", { key: '85e3fe3224888a4fc9029e91c53c5a753506af55', class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, h("span", { key: '9edeecb5ae0a1c74dcbf11829a4079cdbbfd46e4', class: "text-light sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (h("nav", { "aria-label": "Pagination Navigation", "aria-describedby": this.mode === 'default' ? 'pagination-info' : undefined, onKeyDown: this.handleKeyDown }, h("ul", { class: "flex items-center justify-center gap-x-8", role: "list" }, h("li", { class: "mr-auto" }, this.useButtons ? (h("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, h("eds-button", { label: this.prevLabel, disabled: this.mode === 'navigator' ? !this.prevUrl : this.isFirstPage(), "aria-label": "Go to previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "ghost", "extra-class": "!p-8 lg:!pr-12 pagination-button", onClick: (event) => {
|
|
252
252
|
if (this.mode === 'default' && !this.isFirstPage()) {
|
|
253
253
|
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
254
254
|
}
|
|
@@ -39,7 +39,7 @@ export class EdsProgressBar {
|
|
|
39
39
|
]
|
|
40
40
|
.filter(Boolean)
|
|
41
41
|
.join(' ');
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: 'feb13579d8257dd845e9c61ddfa8a6dd21594c84', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, h("div", { key: '2cef98e8ea9f099cb0642bf7927512f33fc8cad9', class: fillClasses, style: { width: `${progressValue}%` } }), h("div", { key: '00cdb6afecb2d2fc5da66d287171d6949d081b20', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, h("span", { key: '43be66f9b0fe11e3fb5c41ba69e00b8c7f7cea1c', class: "text-default f-body-02" }, progressValue, "%"))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "eds-progress-bar"; }
|
|
45
45
|
static get encapsulation() { return "shadow"; }
|
|
@@ -60,7 +60,7 @@ export class EdsRating {
|
|
|
60
60
|
this.onSelect(next);
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
|
-
return (h("div", { key: '
|
|
63
|
+
return (h("div", { key: '52cc87859b174e2eb89392c083031ffde587fb7d', id: "rating-buttons", role: "group", "aria-labelledby": "rating", class: "stars flex space-x-1 my-8", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: this.ratingCount }, (_, index) => {
|
|
64
64
|
const starRating = index + 1;
|
|
65
65
|
const isSelected = starRating <= this.selectedRating;
|
|
66
66
|
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
@@ -20,7 +20,7 @@ export class EdsSectionCore {
|
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
22
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
23
|
-
return (h(TagType, { key: '
|
|
23
|
+
return (h(TagType, { key: '97a75a0b2a26e912499d844df4e3eb10c2c9eb29' }, h("eds-section-heading", { key: 'fe5d0d7a0594bac513551c4a7ea45e34598ec265', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), h("slot", { key: '5f6492d074ffc9996ac39449a037e267a5b399d2' })));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "eds-section-core"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -36,12 +36,12 @@ export class EdsSectionHeading {
|
|
|
36
36
|
render() {
|
|
37
37
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
38
38
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
39
|
-
return (h(TagType, { key: '
|
|
39
|
+
return (h(TagType, { key: '9003f6d452637cdc9ed3bea69689cd92546860b8', class: {
|
|
40
40
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
41
41
|
container: this.withContainer,
|
|
42
42
|
'pt-48': this.spacingLarge,
|
|
43
43
|
'pt-28': !this.spacingLarge
|
|
44
|
-
} }, h(HeadingTag, { key: '
|
|
44
|
+
} }, h(HeadingTag, { key: '2cb120e1bf8e4816cb56c8ba8f8bbae546bd7baf', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "eds-section-heading"; }
|
|
47
47
|
static get properties() {
|
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
/* ===== HOST BASE ===== */
|
|
2
|
+
:host {
|
|
3
|
+
display: block;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
overflow-y: auto;
|
|
7
|
+
overflow-x: hidden;
|
|
8
|
+
transition: width 0.3s ease;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host(.collapsed) {
|
|
12
|
+
width: 4rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Scrollbars on host */
|
|
16
|
+
:host::-webkit-scrollbar {
|
|
17
|
+
width: 8px;
|
|
18
|
+
}
|
|
19
|
+
:host::-webkit-scrollbar-track {
|
|
20
|
+
background: transparent;
|
|
21
|
+
}
|
|
22
|
+
:host::-webkit-scrollbar-thumb {
|
|
23
|
+
background: rgba(0, 0, 0, 0.2);
|
|
24
|
+
border-radius: 4px;
|
|
25
|
+
}
|
|
26
|
+
:host::-webkit-scrollbar-thumb:hover {
|
|
27
|
+
background: rgba(0, 0, 0, 0.3);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* ===== STRUCTURE ===== */
|
|
31
|
+
.sidebar-nav {
|
|
32
|
+
padding: 0.5rem 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.sidebar-header {
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: flex-end;
|
|
38
|
+
padding: 0.5rem 0.75rem;
|
|
39
|
+
margin-bottom: 0.5rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host(.collapsed) .sidebar-header {
|
|
43
|
+
justify-content: center;
|
|
44
|
+
padding: 0.5rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.collapse-toggle {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
width: 2rem;
|
|
52
|
+
height: 2rem;
|
|
53
|
+
background: none;
|
|
54
|
+
border: none;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
padding: 0;
|
|
57
|
+
border-radius: 0.375rem;
|
|
58
|
+
transition: background-color 0.15s ease;
|
|
59
|
+
color: inherit;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.collapse-toggle:hover {
|
|
63
|
+
background-color: rgba(0, 0, 0, 0.08);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.collapse-toggle:focus-visible {
|
|
67
|
+
outline: 2px solid var(--eds-focus-color, #0066cc);
|
|
68
|
+
outline-offset: 2px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.sidebar-list {
|
|
72
|
+
list-style: none;
|
|
73
|
+
margin: 0;
|
|
74
|
+
padding: 0;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
gap: 0.125rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.sidebar-item {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.sidebar-item-content {
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
gap: 0.5rem;
|
|
89
|
+
padding: 0.5rem 0.75rem;
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
user-select: none;
|
|
92
|
+
word-break: break-word;
|
|
93
|
+
transition: background-color 0.15s ease;
|
|
94
|
+
border-radius: 0.375rem;
|
|
95
|
+
margin: 0 0.5rem;
|
|
96
|
+
position: relative;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:host(.collapsed) .sidebar-item-content {
|
|
100
|
+
justify-content: center;
|
|
101
|
+
padding: 0.75rem;
|
|
102
|
+
margin: 0 0.5rem;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.sidebar-item-content:hover {
|
|
106
|
+
background-color: rgba(0, 0, 0, 0.04);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.sidebar-item-content:focus-visible {
|
|
110
|
+
outline: 2px solid var(--eds-focus-color, #0066cc);
|
|
111
|
+
outline-offset: -2px;
|
|
112
|
+
z-index: 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.sidebar-icon {
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
justify-content: center;
|
|
119
|
+
flex-shrink: 0;
|
|
120
|
+
width: 1.25rem;
|
|
121
|
+
height: 1.25rem;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.sidebar-content-wrapper {
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
gap: 0.5rem;
|
|
128
|
+
flex: 1;
|
|
129
|
+
min-width: 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.sidebar-toggle {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
flex-shrink: 0;
|
|
137
|
+
width: 1.25rem;
|
|
138
|
+
height: 1.25rem;
|
|
139
|
+
padding: 0;
|
|
140
|
+
margin: -0.125rem 0;
|
|
141
|
+
pointer-events: none;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.sidebar-link-wrapper {
|
|
145
|
+
flex: 1;
|
|
146
|
+
min-width: 0;
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.sidebar-link {
|
|
151
|
+
font-weight: 400;
|
|
152
|
+
pointer-events: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.sidebar-children {
|
|
156
|
+
list-style: none;
|
|
157
|
+
margin: 0.25rem 0 0 0;
|
|
158
|
+
padding: 0;
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: column;
|
|
161
|
+
gap: 0.125rem;
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
animation: slideDown 0.2s ease;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@keyframes slideDown {
|
|
167
|
+
from {
|
|
168
|
+
opacity: 0;
|
|
169
|
+
transform: translateY(-0.25rem);
|
|
170
|
+
}
|
|
171
|
+
to {
|
|
172
|
+
opacity: 1;
|
|
173
|
+
transform: translateY(0);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* ===== INDENTATION BY LEVEL ===== */
|
|
178
|
+
/* Base level indentation (level-0) */
|
|
179
|
+
.sidebar-item.level-0 .sidebar-item-content {
|
|
180
|
+
padding-left: 0.75rem;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:host(.collapsed) .sidebar-item.level-0 .sidebar-item-content {
|
|
184
|
+
padding-left: 0.75rem;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* Each level adds 1.25rem of indent */
|
|
188
|
+
.sidebar-item.level-1 .sidebar-item-content {
|
|
189
|
+
padding-left: 2rem;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.sidebar-item.level-2 .sidebar-item-content {
|
|
193
|
+
padding-left: 3.25rem;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.sidebar-item.level-3 .sidebar-item-content {
|
|
197
|
+
padding-left: 4.5rem;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.sidebar-item.level-4 .sidebar-item-content {
|
|
201
|
+
padding-left: 5.75rem;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.sidebar-item.level-5 .sidebar-item-content {
|
|
205
|
+
padding-left: 7rem;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* ===== THEME: DEFAULT (Subtle - no background on active) ===== */
|
|
209
|
+
:host(.theme-default) .sidebar-item-content {
|
|
210
|
+
border-radius: 0.375rem;
|
|
211
|
+
margin: 0 0.5rem;
|
|
212
|
+
padding: 0.5rem 0.75rem;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
:host(.theme-default.collapsed) .sidebar-item-content {
|
|
216
|
+
margin: 0 0.5rem;
|
|
217
|
+
border-radius: 0.375rem;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
:host(.theme-default) .sidebar-item-content:hover {
|
|
221
|
+
background-color: rgba(0, 0, 0, 0.04);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
:host(.theme-default) .sidebar-item.active > .sidebar-item-content {
|
|
225
|
+
/* No background color - keep it subtle */
|
|
226
|
+
background-color: transparent;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
:host(.theme-default) .sidebar-item.active > .sidebar-item-content .sidebar-link {
|
|
230
|
+
font-weight: 600;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* Adjust level indents for theme-default */
|
|
234
|
+
:host(.theme-default) .sidebar-item.level-0 .sidebar-item-content {
|
|
235
|
+
padding-left: 0.75rem;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
:host(.theme-default) .sidebar-item.level-1 .sidebar-item-content {
|
|
239
|
+
padding-left: 2rem;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
:host(.theme-default) .sidebar-item.level-2 .sidebar-item-content {
|
|
243
|
+
padding-left: 3.25rem;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
:host(.theme-default) .sidebar-item.level-3 .sidebar-item-content {
|
|
247
|
+
padding-left: 4.5rem;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
:host(.theme-default) .sidebar-item.level-4 .sidebar-item-content {
|
|
251
|
+
padding-left: 5.75rem;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* ===== THEME: MINIMAL (With left border) ===== */
|
|
255
|
+
:host(.theme-minimal) .sidebar-item-content {
|
|
256
|
+
border-radius: 0;
|
|
257
|
+
margin: 0;
|
|
258
|
+
padding-left: 1rem;
|
|
259
|
+
padding-right: 1rem;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
:host(.theme-minimal.collapsed) .sidebar-item-content {
|
|
263
|
+
margin: 0 0.25rem;
|
|
264
|
+
border-radius: 0.375rem;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
:host(.theme-minimal) .sidebar-item-content:hover {
|
|
268
|
+
background-color: var(--grey-300);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
:host(.theme-minimal) .sidebar-item.active > .sidebar-item-content {
|
|
272
|
+
background-color: var(--grey-400);
|
|
273
|
+
border-left: 3px solid var(--grey-900);
|
|
274
|
+
padding-left: calc(1rem - 3px);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
:host(.theme-minimal.collapsed) .sidebar-item.active > .sidebar-item-content {
|
|
278
|
+
border-left: none;
|
|
279
|
+
border-radius: 0.375rem;
|
|
280
|
+
padding-left: 0.75rem;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* Adjust active state indents for each level */
|
|
284
|
+
:host(.theme-minimal) .sidebar-item.level-1.active > .sidebar-item-content {
|
|
285
|
+
padding-left: calc(2rem - 3px);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
:host(.theme-minimal) .sidebar-item.level-2.active > .sidebar-item-content {
|
|
289
|
+
padding-left: calc(3.25rem - 3px);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
:host(.theme-minimal) .sidebar-item.level-3.active > .sidebar-item-content {
|
|
293
|
+
padding-left: calc(4.5rem - 3px);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
:host(.theme-minimal) .sidebar-item.level-4.active > .sidebar-item-content {
|
|
297
|
+
padding-left: calc(5.75rem - 3px);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* Adjust level indents for theme-minimal */
|
|
301
|
+
:host(.theme-minimal) .sidebar-item.level-0 .sidebar-item-content {
|
|
302
|
+
padding-left: 1rem;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
:host(.theme-minimal) .sidebar-item.level-1 .sidebar-item-content {
|
|
306
|
+
padding-left: 2rem;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
:host(.theme-minimal) .sidebar-item.level-2 .sidebar-item-content {
|
|
310
|
+
padding-left: 3.25rem;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
:host(.theme-minimal) .sidebar-item.level-3 .sidebar-item-content {
|
|
314
|
+
padding-left: 4.5rem;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
:host(.theme-minimal) .sidebar-item.level-4 .sidebar-item-content {
|
|
318
|
+
padding-left: 5.75rem;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/* Optional: Add subtle connector lines for nested items */
|
|
322
|
+
:host(.theme-minimal) .sidebar-children {
|
|
323
|
+
position: relative;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/* ===== THEME: EBRAINS (Green background) ===== */
|
|
327
|
+
:host(.theme-ebrains) .sidebar-item-content {
|
|
328
|
+
padding: 0.5rem 1rem;
|
|
329
|
+
border-radius: 0.5rem;
|
|
330
|
+
margin: 0 0.5rem;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
:host(.theme-ebrains.collapsed) .sidebar-item-content {
|
|
334
|
+
padding: 0.75rem;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
:host(.theme-ebrains) .sidebar-item-content:hover {
|
|
338
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
:host(.theme-ebrains) .sidebar-item.active > .sidebar-item-content {
|
|
342
|
+
background-color: var(--green-600, #22c55e);
|
|
343
|
+
color: white;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
:host(.theme-ebrains) .sidebar-item.active > .sidebar-item-content .sidebar-link {
|
|
347
|
+
--eds-link-color: white;
|
|
348
|
+
--eds-link-hover-color: white;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
:host(.theme-ebrains) .sidebar-item.active > .sidebar-item-content .sidebar-toggle {
|
|
352
|
+
color: white;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
:host(.theme-ebrains) .sidebar-item.active > .sidebar-item-content .sidebar-icon {
|
|
356
|
+
color: white;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/* Adjust ebrains theme indents */
|
|
360
|
+
:host(.theme-ebrains) .sidebar-item.level-0 .sidebar-item-content {
|
|
361
|
+
padding-left: 1rem;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
:host(.theme-ebrains) .sidebar-item.level-1 .sidebar-item-content {
|
|
365
|
+
padding-left: 2.25rem;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
:host(.theme-ebrains) .sidebar-item.level-2 .sidebar-item-content {
|
|
369
|
+
padding-left: 3.5rem;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
:host(.theme-ebrains) .sidebar-item.level-3 .sidebar-item-content {
|
|
373
|
+
padding-left: 4.75rem;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
:host(.theme-ebrains) .sidebar-item.level-4 .sidebar-item-content {
|
|
377
|
+
padding-left: 6rem;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/* ===== DARK MODE ===== */
|
|
381
|
+
@media (prefers-color-scheme: dark) {
|
|
382
|
+
.collapse-toggle:hover {
|
|
383
|
+
background-color: rgba(255, 255, 255, 0.08);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
:host(.theme-default) .sidebar-item-content:hover {
|
|
387
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
:host(.theme-default) .sidebar-item.active > .sidebar-item-content {
|
|
391
|
+
background-color: rgba(0, 102, 204, 0.15);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
:host(.theme-minimal) .sidebar-item-content:hover {
|
|
395
|
+
background-color: rgba(255, 255, 255, 0.06);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
:host::-webkit-scrollbar-thumb {
|
|
399
|
+
background: rgba(255, 255, 255, 0.2);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
:host::-webkit-scrollbar-thumb:hover {
|
|
403
|
+
background: rgba(255, 255, 255, 0.3);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/* ===== TRANSITIONS ===== */
|
|
408
|
+
.sidebar-toggle eds-icon-wrapper,
|
|
409
|
+
.sidebar-icon eds-icon-wrapper,
|
|
410
|
+
.collapse-toggle eds-icon-wrapper {
|
|
411
|
+
transition: transform 0.15s ease;
|
|
412
|
+
display: flex;
|
|
413
|
+
align-items: center;
|
|
414
|
+
justify-content: center;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/* ===== ACCESSIBILITY ===== */
|
|
418
|
+
.sidebar-item-content:focus-visible .sidebar-link {
|
|
419
|
+
text-decoration: underline;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/* Ensure proper visual feedback */
|
|
423
|
+
.sidebar-item.active > .sidebar-item-content .sidebar-link {
|
|
424
|
+
font-weight: 500;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/* Tooltip-like behavior for collapsed state (optional enhancement) */
|
|
428
|
+
:host(.collapsed) .sidebar-item-content::after {
|
|
429
|
+
content: attr(title);
|
|
430
|
+
position: absolute;
|
|
431
|
+
left: 100%;
|
|
432
|
+
top: 50%;
|
|
433
|
+
transform: translateY(-50%);
|
|
434
|
+
margin-left: 0.5rem;
|
|
435
|
+
padding: 0.5rem 0.75rem;
|
|
436
|
+
background: rgba(0, 0, 0, 0.9);
|
|
437
|
+
color: white;
|
|
438
|
+
border-radius: 0.375rem;
|
|
439
|
+
white-space: nowrap;
|
|
440
|
+
font-size: 0.875rem;
|
|
441
|
+
opacity: 0;
|
|
442
|
+
pointer-events: none;
|
|
443
|
+
transition: opacity 0.2s ease;
|
|
444
|
+
z-index: 1000;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
:host(.collapsed) .sidebar-item-content:hover::after {
|
|
448
|
+
opacity: 1;
|
|
449
|
+
transition-delay: 0.3s;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.-ml-4 {
|
|
453
|
+
margin-left: -0.25rem;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.mt-2 {
|
|
457
|
+
margin-top: 0.125rem
|
|
458
|
+
}
|