@ebrains/components 0.4.0-alpha.0 → 0.6.0-alpha.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/analytics-d8fb3fdd.js +60 -0
- package/dist/cjs/color-c00146a8.js +134 -0
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/eds-accordion_13.cjs.entry.js +911 -0
- package/dist/cjs/eds-alert.cjs.entry.js +97 -0
- package/dist/cjs/eds-block-break.cjs.entry.js +21 -0
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +149 -0
- package/dist/cjs/eds-card-project.cjs.entry.js +4 -3
- package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tool.cjs.entry.js +3 -4
- package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/eds-code-block.cjs.entry.js +2 -2
- package/dist/cjs/eds-components-section.cjs.entry.js +7 -3
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +39 -0
- package/dist/cjs/eds-docs-palettes.cjs.entry.js +1 -1
- package/dist/cjs/eds-docs-tokens.cjs.entry.js +1 -1
- package/dist/cjs/eds-dropdown_2.cjs.entry.js +158 -0
- package/dist/cjs/eds-footer.cjs.entry.js +41 -0
- package/dist/cjs/eds-form.cjs.entry.js +361 -0
- package/dist/cjs/eds-frame.cjs.entry.js +91 -0
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +100 -0
- package/dist/cjs/eds-header.cjs.entry.js +97 -0
- 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-bluesky.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-close.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-copy.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-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-more.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
- package/dist/cjs/eds-input_7.cjs.entry.js +324 -0
- package/dist/cjs/eds-link.cjs.entry.js +214 -0
- package/dist/cjs/eds-login.cjs.entry.js +60 -41
- package/dist/cjs/eds-logo-variations.cjs.entry.js +1 -1
- package/dist/cjs/eds-logo.cjs.entry.js +78 -0
- package/dist/cjs/eds-modal.cjs.entry.js +97 -0
- package/dist/cjs/eds-navigator.cjs.entry.js +1 -1
- package/dist/cjs/eds-pagination_2.cjs.entry.js +9 -10
- package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/eds-rating.cjs.entry.js +10 -8
- package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
- package/dist/cjs/eds-social-networks.cjs.entry.js +66 -0
- package/dist/cjs/eds-steps.cjs.entry.js +65 -0
- package/dist/cjs/eds-svg-repository.cjs.entry.js +1 -1
- package/dist/cjs/eds-switch.cjs.entry.js +38 -0
- package/dist/cjs/eds-tab.cjs.entry.js +1 -1
- package/dist/cjs/eds-tabs-content.cjs.entry.js +4 -4
- package/dist/cjs/eds-tabs.cjs.entry.js +3 -3
- package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
- package/dist/cjs/eds-tooltip.cjs.entry.js +3 -4
- package/dist/cjs/eds-trl.cjs.entry.js +1 -1
- package/dist/cjs/eds-user.cjs.entry.js +99 -0
- package/dist/cjs/eds-vertical-stepper.cjs.entry.js +45 -0
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/index-f08e4f5c.js +76 -8
- package/dist/cjs/{keycloak-5aaa21af.js → keycloak-93fc0315.js} +225 -170
- 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-wrong-usage.cjs.entry.js +1 -1
- package/dist/cjs/token-list_3.cjs.entry.js +3 -3
- package/dist/cjs/token-ratios.cjs.entry.js +1 -1
- package/dist/cjs/token-spacing.cjs.entry.js +1 -1
- package/dist/cjs/token-typography.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +6 -2
- package/dist/collection/components/eds-accordion/eds-accordion.js +3 -3
- package/dist/collection/components/eds-alert/eds-alert.js +8 -5
- package/dist/collection/components/eds-avatar/eds-avatar.js +8 -6
- package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +23 -29
- package/dist/collection/components/eds-button/eds-button.js +9 -9
- 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-composer/eds-card-wrapper/eds-card-wrapper.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +2 -2
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +3 -2
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +2 -2
- package/dist/collection/components/eds-code-block/eds-code-block.js +3 -3
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +3 -3
- package/dist/collection/components/eds-form/eds-form.js +32 -16
- package/dist/collection/components/eds-frame/eds-frame.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-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-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/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-more/eds-icon-more.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-success/eds-icon-success.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.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 +13 -7
- 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 +2 -2
- 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 +11 -2
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- package/dist/collection/components/eds-link/eds-link.css +6793 -6676
- package/dist/collection/components/eds-link/eds-link.js +6 -3
- package/dist/collection/components/eds-logo/eds-logo.js +21 -2
- package/dist/collection/components/eds-matomo-notice/eds-matomo-notice.js +207 -0
- package/dist/collection/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.stories.js +1 -1
- package/dist/collection/components/eds-modal/eds-modal.js +19 -24
- package/dist/collection/components/eds-navigator/eds-navigator.js +1 -1
- 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.css +48 -0
- package/dist/collection/components/eds-rating/eds-rating.js +10 -8
- 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-steps/eds-steps.css +126 -0
- package/dist/collection/components/eds-steps/eds-steps.js +133 -0
- package/dist/collection/components/eds-steps/eds-steps.stories.js +35 -0
- package/dist/collection/components/eds-steps/eds-vertical-stepper.css +78 -0
- package/dist/collection/components/eds-steps/eds-vertical-stepper.js +72 -0
- package/dist/collection/components/eds-switch/eds-switch.css +59 -0
- package/dist/collection/components/eds-switch/eds-switch.js +131 -0
- package/dist/collection/components/eds-switch/eds-switch.stories.js +38 -0
- package/dist/collection/components/eds-tab/eds-tab.js +1 -1
- package/dist/collection/components/eds-table/eds-table.js +8 -8
- package/dist/collection/components/eds-tag/eds-tag.js +4 -14
- package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
- package/dist/collection/components/eds-toast/eds-toast.css +91 -0
- package/dist/collection/components/eds-toast/eds-toast.js +18 -9
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +2 -2
- package/dist/collection/components/eds-trl/eds-trl.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
- package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/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/eds-components-section/eds-components-section.js +1 -1
- package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
- package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/eds-logo-variations/eds-logo-variations.js +1 -1
- package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +1 -1
- package/dist/collection/eds-docs-ui/functional/installation.js +1 -1
- package/dist/collection/eds-docs-ui/functional/react.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-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.css +236 -140
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +19 -13
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +2 -2
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.css +0 -0
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +87 -0
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.st.js +31 -0
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +7 -53
- package/dist/collection/shared-ui/eds-header/eds-header.js +2 -75
- package/dist/collection/shared-ui/eds-login/eds-login.js +66 -58
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +2 -2
- package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +3 -3
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +1 -1
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +2 -1
- package/dist/collection/shared-ui/eds-user/eds-user.js +27 -24
- package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -1
- package/dist/collection/utils/analytics.js +85 -0
- package/dist/collection/utils/color.js +129 -0
- package/dist/collection/utils/global.js +8 -0
- package/dist/collection/utils/keycloak.js +11 -5
- package/dist/components/analytics.js +15 -2
- package/dist/components/color.js +0 -164
- package/dist/components/components.css +571 -0
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/eds-accordion2.js +2 -3
- package/dist/components/eds-alert2.js +8 -5
- package/dist/components/eds-avatar2.js +3 -3
- package/dist/components/eds-block-break2.js +1 -1
- package/dist/components/eds-breadcrumb.js +23 -29
- package/dist/components/eds-button2.js +2 -4
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-generic2.js +1 -2
- package/dist/components/eds-card-project.js +2 -2
- package/dist/components/eds-card-section.js +4 -4
- 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 -2
- package/dist/components/eds-card-wrapper.js +1 -1
- package/dist/components/eds-code-block2.js +2 -2
- package/dist/components/eds-components-section.js +7 -3
- package/dist/components/eds-cookies-preference.d.ts +11 -0
- package/dist/components/eds-cookies-preference.js +88 -0
- package/dist/components/eds-docs-palettes.js +1 -1
- package/dist/components/eds-docs-tokens.js +1 -1
- package/dist/components/eds-dropdown2.js +2 -3
- package/dist/components/eds-footer2.js +3 -13
- package/dist/components/eds-form.js +32 -16
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-header.js +10 -48
- 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-bluesky.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-close.js +1 -1
- package/dist/components/eds-icon-copy.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-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-more.js +1 -1
- package/dist/components/eds-icon-search.js +1 -1
- package/dist/components/eds-icon-success.js +1 -1
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-user.js +1 -1
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +9 -4
- package/dist/components/eds-input-field2.js +2 -2
- package/dist/components/eds-input-footer2.js +1 -1
- package/dist/components/eds-input-label2.js +1 -1
- package/dist/components/eds-input-range2.js +2 -2
- package/dist/components/eds-input-search2.js +1 -1
- package/dist/components/eds-input-select2.js +11 -2
- package/dist/components/eds-input2.js +2 -2
- package/dist/components/eds-link2.js +6 -4
- package/dist/components/eds-login.js +60 -41
- package/dist/components/eds-logo-variations.js +1 -1
- package/dist/components/eds-logo2.js +4 -3
- package/dist/components/eds-matomo-notice.js +1 -141
- package/dist/components/eds-matomo-notice2.js +127 -0
- package/dist/components/eds-modal.js +10 -24
- package/dist/components/eds-navigator.js +1 -1
- package/dist/components/eds-pagination2.js +1 -1
- package/dist/components/eds-progress-bar2.js +1 -1
- package/dist/components/eds-rating.js +23 -9
- package/dist/components/eds-section-core2.js +1 -1
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-steps.d.ts +11 -0
- package/dist/components/eds-steps.js +107 -0
- package/dist/components/eds-svg-repository.js +1 -1
- package/dist/components/eds-switch.d.ts +11 -0
- package/dist/components/eds-switch.js +57 -0
- package/dist/components/eds-tab2.js +1 -1
- package/dist/components/eds-table2.js +6 -7
- package/dist/components/eds-tabs-content.js +2 -3
- package/dist/components/eds-tabs.js +1 -2
- package/dist/components/eds-tag2.js +1 -5
- package/dist/components/eds-timeline.js +1 -1
- package/dist/components/eds-toast-manager.js +4 -3
- package/dist/components/eds-toast2.js +13 -10
- package/dist/components/eds-tooltip.js +1 -2
- package/dist/components/eds-trl.js +1 -1
- package/dist/components/eds-user-modal2.js +1 -1
- package/dist/components/eds-user.js +157 -1
- package/dist/components/eds-vertical-stepper.d.ts +11 -0
- package/dist/components/eds-vertical-stepper.js +86 -0
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/keycloak.js +225 -170
- package/dist/components/logo-space.js +1 -1
- package/dist/components/logo-variations-horizontal2.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-045681d7.entry.js +1 -0
- package/dist/components/p-06299762.entry.js +1 -0
- package/dist/components/p-0a3b2576.entry.js +1 -0
- package/dist/components/p-0ab85eee.entry.js +1 -0
- package/dist/components/p-0e7bdd2c.entry.js +1 -0
- package/dist/components/p-10b81c47.entry.js +1 -0
- package/dist/components/p-13efafb9.js +1 -0
- package/dist/components/p-1ae529f3.entry.js +1 -0
- package/dist/components/p-1ed3fdb7.entry.js +1 -0
- package/dist/components/p-21d42cf3.entry.js +1 -0
- package/dist/components/p-2831a9d5.entry.js +1 -0
- package/dist/components/p-2c00bd76.entry.js +1 -0
- package/dist/components/p-34a65e58.entry.js +1 -0
- package/dist/components/p-38d70586.entry.js +1 -0
- package/dist/components/p-3a7aa1eb.entry.js +1 -0
- package/dist/components/p-42d3c324.entry.js +1 -0
- package/dist/components/p-4a12a131.entry.js +1 -0
- package/dist/components/p-4b3fbd6d.entry.js +1 -0
- package/dist/components/p-4ea027ac.entry.js +1 -0
- package/dist/components/p-5097066f.entry.js +1 -0
- package/dist/components/p-5980a142.entry.js +1 -0
- package/dist/components/p-599c7b97.entry.js +1 -0
- package/dist/components/p-5a2b8b6c.entry.js +1 -0
- package/dist/components/p-5ff31f14.entry.js +1 -0
- package/dist/components/{p-22762818.entry.js → p-65703520.entry.js} +1 -1
- package/dist/components/p-659ed449.entry.js +1 -0
- package/dist/components/p-6af40c33.entry.js +1 -0
- package/dist/components/p-6df9db15.entry.js +1 -0
- package/dist/components/{p-435a14c1.entry.js → p-759b2640.entry.js} +1 -1
- package/dist/components/p-7b3b26b0.entry.js +1 -0
- package/dist/components/p-80a185ba.entry.js +1 -0
- package/dist/components/p-81942665.entry.js +1 -0
- package/dist/components/p-86fbc239.entry.js +1 -0
- package/dist/components/p-88751c8b.entry.js +1 -0
- package/dist/components/{p-c3b294a0.entry.js → p-89f600a3.entry.js} +1 -1
- package/dist/components/p-8c4a0fc9.entry.js +1 -0
- package/dist/components/p-8eab748d.js +1 -0
- package/dist/components/p-911d9b37.entry.js +1 -0
- package/dist/components/{p-ba6bafef.entry.js → p-9579f9c2.entry.js} +1 -1
- package/dist/components/p-96fe2267.entry.js +1 -0
- package/dist/components/p-9739def5.entry.js +1 -0
- package/dist/components/{p-87830085.entry.js → p-9b441a1f.entry.js} +1 -1
- package/dist/components/{p-c72c8fb0.entry.js → p-a2621d66.entry.js} +1 -1
- package/dist/components/p-a535838c.entry.js +1 -0
- package/dist/components/p-a5b7d72d.entry.js +1 -0
- package/dist/components/p-a5d00633.entry.js +1 -0
- package/dist/components/p-a63bd0c9.entry.js +1 -0
- package/dist/components/{p-762c8c83.entry.js → p-a846dbca.entry.js} +1 -1
- package/dist/components/p-a927a455.entry.js +1 -0
- package/dist/components/p-aec9b8e1.entry.js +1 -0
- package/dist/components/{p-5398d652.entry.js → p-b1af5000.entry.js} +1 -1
- package/dist/components/{p-d571d530.entry.js → p-b1de9a6c.entry.js} +1 -1
- package/dist/components/{p-0910d733.entry.js → p-b3c1aef5.entry.js} +1 -1
- package/dist/components/p-b50c8d49.entry.js +1 -0
- package/dist/components/p-b60ed774.entry.js +1 -0
- package/dist/components/p-b67aafe7.entry.js +1 -0
- package/dist/components/p-b79999d5.entry.js +1 -0
- package/dist/components/p-b80457ed.entry.js +1 -0
- package/dist/components/p-b860b4aa.entry.js +1 -0
- package/dist/components/{p-8ddc67a1.entry.js → p-bd43d83c.entry.js} +1 -1
- package/dist/components/p-c034c395.entry.js +1 -0
- package/dist/components/p-c5fa170d.entry.js +1 -0
- package/dist/components/p-c683be2c.entry.js +1 -0
- package/dist/components/p-d2a0b896.entry.js +1 -0
- package/dist/components/p-d56d9dda.entry.js +1 -0
- package/dist/components/p-d5850ab3.entry.js +1 -0
- package/dist/components/p-de12396f.entry.js +1 -0
- package/dist/components/p-de2fbcfc.entry.js +1 -0
- package/dist/components/p-e2c250c5.entry.js +1 -0
- package/dist/components/p-e334f5bc.entry.js +1 -0
- package/dist/components/p-eb0b93d5.js +1 -0
- package/dist/components/p-f1cd83da.entry.js +1 -0
- package/dist/components/{p-22e6d7d5.entry.js → p-f36f2aeb.entry.js} +1 -1
- package/dist/components/p-f5dafbc8.entry.js +1 -0
- package/dist/components/p-f7493f41.entry.js +1 -0
- package/dist/components/p-fad10768.entry.js +1 -0
- package/dist/components/{p-dd6daa96.entry.js → p-fce25541.entry.js} +1 -1
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/token-list2.js +1 -1
- package/dist/components/token-radii2.js +1 -1
- package/dist/components/token-ratios.js +1 -1
- package/dist/components/token-shadows2.js +1 -1
- package/dist/components/token-spacing.js +1 -1
- package/dist/components/token-typography.js +1 -1
- package/dist/esm/analytics-44b1416b.js +56 -0
- package/dist/esm/color-2554aad6.js +132 -0
- package/dist/esm/color-primary-palette_6.entry.js +14 -14
- package/dist/esm/components.js +1 -1
- package/dist/esm/correct-use-of-colors.entry.js +1 -1
- package/dist/esm/eds-accordion_13.entry.js +895 -0
- package/dist/esm/eds-alert.entry.js +93 -0
- package/dist/esm/eds-block-break.entry.js +17 -0
- package/dist/esm/eds-breadcrumb.entry.js +145 -0
- package/dist/esm/eds-card-project.entry.js +3 -2
- package/dist/esm/eds-card-tags.entry.js +1 -1
- package/dist/esm/eds-card-tool.entry.js +2 -3
- package/dist/esm/eds-card-wrapper.entry.js +1 -1
- package/dist/esm/eds-code-block.entry.js +2 -2
- package/dist/esm/eds-components-section.entry.js +7 -3
- package/dist/esm/eds-cookies-preference.entry.js +35 -0
- package/dist/esm/eds-docs-palettes.entry.js +1 -1
- package/dist/esm/eds-docs-tokens.entry.js +1 -1
- package/dist/esm/eds-dropdown_2.entry.js +153 -0
- package/dist/esm/eds-footer.entry.js +37 -0
- package/dist/esm/eds-form.entry.js +357 -0
- package/dist/esm/eds-frame.entry.js +87 -0
- package/dist/esm/eds-fullscreen-menu.entry.js +96 -0
- package/dist/esm/eds-header.entry.js +93 -0
- 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-bluesky.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-close.entry.js +1 -1
- package/dist/esm/eds-icon-copy.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-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-more.entry.js +1 -1
- package/dist/esm/eds-icon-search.entry.js +1 -1
- package/dist/esm/eds-icon-success.entry.js +1 -1
- package/dist/esm/eds-icon-twitter.entry.js +1 -1
- package/dist/esm/eds-icon-user.entry.js +1 -1
- package/dist/esm/eds-icon-youtube.entry.js +1 -1
- package/dist/esm/eds-input_7.entry.js +314 -0
- package/dist/esm/eds-link.entry.js +210 -0
- package/dist/esm/eds-login.entry.js +60 -41
- package/dist/esm/eds-logo-variations.entry.js +1 -1
- package/dist/esm/eds-logo.entry.js +74 -0
- package/dist/esm/eds-modal.entry.js +93 -0
- package/dist/esm/eds-navigator.entry.js +1 -1
- package/dist/esm/eds-pagination_2.entry.js +8 -9
- package/dist/esm/eds-progress-bar.entry.js +1 -1
- package/dist/esm/eds-rating.entry.js +10 -8
- package/dist/esm/eds-section-core_2.entry.js +3 -3
- package/dist/esm/eds-social-networks.entry.js +62 -0
- package/dist/esm/eds-steps.entry.js +61 -0
- package/dist/esm/eds-svg-repository.entry.js +1 -1
- package/dist/esm/eds-switch.entry.js +34 -0
- package/dist/esm/eds-tab.entry.js +1 -1
- package/dist/esm/eds-tabs-content.entry.js +3 -3
- package/dist/esm/eds-tabs.entry.js +2 -2
- package/dist/esm/eds-timeline.entry.js +1 -1
- package/dist/esm/eds-tooltip.entry.js +2 -3
- package/dist/esm/eds-trl.entry.js +1 -1
- package/dist/esm/eds-user.entry.js +95 -0
- package/dist/esm/eds-vertical-stepper.entry.js +41 -0
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/index-e96badea.js +76 -8
- package/dist/esm/{keycloak-13893af6.js → keycloak-d502ec16.js} +225 -170
- 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-wrong-usage.entry.js +1 -1
- package/dist/esm/token-list_3.entry.js +3 -3
- package/dist/esm/token-ratios.entry.js +1 -1
- package/dist/esm/token-spacing.entry.js +1 -1
- package/dist/esm/token-typography.entry.js +1 -1
- package/dist/hydrate/index.js +1067 -959
- package/dist/hydrate/index.mjs +1067 -959
- package/dist/types/components/eds-alert/eds-alert.d.ts +1 -1
- package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +9 -8
- package/dist/types/components/eds-button/eds-button.d.ts +3 -2
- package/dist/types/components/eds-form/eds-form.d.ts +0 -1
- package/dist/types/components/eds-img/eds-img.d.ts +3 -1
- package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +6 -0
- package/dist/types/components/eds-logo/eds-logo.d.ts +1 -0
- package/dist/types/components/eds-matomo-notice/eds-matomo-notice.d.ts +53 -0
- package/dist/types/components/eds-modal/eds-modal.d.ts +2 -7
- package/dist/types/components/eds-rating/eds-rating.d.ts +1 -2
- package/dist/types/components/eds-steps/eds-steps.d.ts +38 -0
- package/dist/types/components/eds-steps/eds-steps.stories.d.ts +34 -0
- package/dist/types/components/eds-steps/eds-vertical-stepper.d.ts +22 -0
- package/dist/types/components/eds-switch/eds-switch.d.ts +25 -0
- package/dist/types/components/eds-switch/eds-switch.stories.d.ts +32 -0
- package/dist/types/components/eds-tag/eds-tag.d.ts +1 -20
- package/dist/types/components/eds-toast/eds-toast.d.ts +4 -5
- package/dist/types/components.d.ts +256 -162
- package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +33 -6
- package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +1 -1
- package/dist/types/shared-ui/eds-cookies-preference/eds-cookies-preference.d.ts +27 -0
- package/dist/types/shared-ui/eds-cookies-preference/eds-cookies-preference.st.d.ts +27 -0
- package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +2 -15
- package/dist/types/shared-ui/eds-header/eds-header.d.ts +0 -20
- package/dist/types/shared-ui/eds-login/eds-login.d.ts +21 -18
- package/dist/types/shared-ui/eds-user/eds-user.d.ts +5 -5
- package/dist/types/utils/global.d.ts +1 -0
- package/dist/types/utils/keycloak.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cjs/color-88793e49.js +0 -342
- package/dist/cjs/eds-accordion_33.cjs.entry.js +0 -2670
- package/dist/cjs/eds-card-section.cjs.entry.js +0 -55
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +0 -110
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +0 -164
- package/dist/components/eds-user2.js +0 -156
- package/dist/components/p-005de86f.entry.js +0 -1
- package/dist/components/p-0c2e844e.entry.js +0 -1
- package/dist/components/p-145f13ad.entry.js +0 -1
- package/dist/components/p-16458a81.entry.js +0 -1
- package/dist/components/p-2851ff44.entry.js +0 -1
- package/dist/components/p-29648b47.entry.js +0 -1
- package/dist/components/p-297b2bc3.entry.js +0 -1
- package/dist/components/p-2dda1ec4.entry.js +0 -1
- package/dist/components/p-32cddd94.entry.js +0 -1
- package/dist/components/p-35ec730b.entry.js +0 -1
- package/dist/components/p-388b4966.entry.js +0 -1
- package/dist/components/p-4037ad48.entry.js +0 -1
- package/dist/components/p-490ba155.entry.js +0 -1
- package/dist/components/p-4932aab2.entry.js +0 -1
- package/dist/components/p-4a24c2ce.entry.js +0 -1
- package/dist/components/p-57c964c5.entry.js +0 -1
- package/dist/components/p-5a43503a.entry.js +0 -1
- package/dist/components/p-5aad9d3f.entry.js +0 -1
- package/dist/components/p-5fc68438.entry.js +0 -1
- package/dist/components/p-610db2b2.entry.js +0 -1
- package/dist/components/p-6378fb3e.entry.js +0 -1
- package/dist/components/p-673dce11.entry.js +0 -1
- package/dist/components/p-7802e966.entry.js +0 -1
- package/dist/components/p-832dc95a.entry.js +0 -1
- package/dist/components/p-846fc91c.entry.js +0 -1
- package/dist/components/p-855aa1a3.entry.js +0 -1
- package/dist/components/p-8c56e39a.entry.js +0 -1
- package/dist/components/p-a44a1abe.entry.js +0 -1
- package/dist/components/p-a4e9b68b.entry.js +0 -1
- package/dist/components/p-ab32b3fc.entry.js +0 -1
- package/dist/components/p-ac0112d5.entry.js +0 -1
- package/dist/components/p-acb16e1c.entry.js +0 -1
- package/dist/components/p-ae5dbd41.entry.js +0 -1
- package/dist/components/p-b04eff31.entry.js +0 -1
- package/dist/components/p-b86a4985.js +0 -1
- package/dist/components/p-bdd86a3c.entry.js +0 -1
- package/dist/components/p-bf0f851d.entry.js +0 -1
- package/dist/components/p-c2d369bc.entry.js +0 -1
- package/dist/components/p-c6038449.entry.js +0 -1
- package/dist/components/p-c9c417de.js +0 -1
- package/dist/components/p-d1670eec.entry.js +0 -1
- package/dist/components/p-d53b7a75.entry.js +0 -1
- package/dist/components/p-d6d86366.entry.js +0 -1
- package/dist/components/p-df94285c.entry.js +0 -1
- package/dist/components/p-e74834bc.entry.js +0 -1
- package/dist/components/p-f7a6ce69.entry.js +0 -1
- package/dist/esm/color-bb472c37.js +0 -338
- package/dist/esm/eds-accordion_33.entry.js +0 -2634
- package/dist/esm/eds-card-section.entry.js +0 -51
- package/dist/esm/eds-matomo-notice.entry.js +0 -106
- package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/index.d.ts +0 -3
- package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/keycloak.d.ts +0 -30
- package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/render.d.ts +0 -8
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +0 -77
- /package/dist/collection/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.css +0 -0
- /package/dist/types/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.stories.d.ts +0 -0
- /package/dist/types/{Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib → utils}/analytics.d.ts +0 -0
- /package/dist/types/{Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib → utils}/color.d.ts +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-e96badea.js';
|
|
2
|
+
|
|
3
|
+
const EdsFrame = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
this.frameLabel = undefined;
|
|
7
|
+
this.urlLabel = 'Open in Storybook';
|
|
8
|
+
this.errorMessage = 'Could not load the requested Storybook content. Please check the URL or try again later.';
|
|
9
|
+
this.storybookUrl = undefined;
|
|
10
|
+
this.storyPath = undefined;
|
|
11
|
+
this.intent = 'strong';
|
|
12
|
+
this.tiny = false;
|
|
13
|
+
this.size = 'auto';
|
|
14
|
+
this.bg = true;
|
|
15
|
+
this.iframeError = false;
|
|
16
|
+
}
|
|
17
|
+
articleClasses() {
|
|
18
|
+
return [
|
|
19
|
+
this.tiny ? 'min-h-120' : 'min-h-156',
|
|
20
|
+
this.bg ? 'bg-inverse' : 'bg-default',
|
|
21
|
+
'rounded border-softer effect-focus-within relative flex grow flex-col border-2',
|
|
22
|
+
'w-full h-full'
|
|
23
|
+
].join(' ');
|
|
24
|
+
}
|
|
25
|
+
getFrameHeight() {
|
|
26
|
+
switch (this.size) {
|
|
27
|
+
case 'sm':
|
|
28
|
+
return '100px';
|
|
29
|
+
case 'md':
|
|
30
|
+
return '200px';
|
|
31
|
+
case 'lg':
|
|
32
|
+
return '400px';
|
|
33
|
+
case 'xl':
|
|
34
|
+
return '700px';
|
|
35
|
+
default:
|
|
36
|
+
return 'auto';
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
async checkIframeAvailability() {
|
|
40
|
+
try {
|
|
41
|
+
const response = await fetch(this.frameSrc, { method: 'GET' });
|
|
42
|
+
if (!response.ok) {
|
|
43
|
+
throw new Error('Failed to load');
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
this.iframeError = true;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
componentWillLoad() {
|
|
51
|
+
this.checkIframeAvailability();
|
|
52
|
+
}
|
|
53
|
+
componentDidLoad() {
|
|
54
|
+
// Emit context for each eds-link element after the component is fully loaded
|
|
55
|
+
const links = this.el.querySelectorAll('eds-link');
|
|
56
|
+
links.forEach((link) => {
|
|
57
|
+
this.emitContext(link);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
62
|
+
* This event provides context information about the breadcrumb component.
|
|
63
|
+
*
|
|
64
|
+
* @param linkElement - The link element to which the event will be dispatched.
|
|
65
|
+
*/
|
|
66
|
+
emitContext(linkElement) {
|
|
67
|
+
const event = new CustomEvent('parentContext', {
|
|
68
|
+
detail: {
|
|
69
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
70
|
+
identifier: this.frameLabel
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
linkElement.dispatchEvent(event);
|
|
74
|
+
}
|
|
75
|
+
get storyLink() {
|
|
76
|
+
return `${this.storybookUrl}/?path=/story/${this.storyPath}`;
|
|
77
|
+
}
|
|
78
|
+
get frameSrc() {
|
|
79
|
+
return `${this.storybookUrl}/iframe.html?id=${this.storyPath}&viewMode=story`;
|
|
80
|
+
}
|
|
81
|
+
render() {
|
|
82
|
+
return (h("div", { key: '20786dd40414d29f98d496e29720bd78b9d7cf8e', class: this.articleClasses() }, h("div", { key: '208612330c9d2872c68aeb310e164c8a915a51ef', class: "effect-height flex items-center justify-between py-8 px-12" }, h("span", { key: 'ada2a40384ffaffadc8887580aa6184422008a68', class: "f-ui-02" }, this.frameLabel), !this.iframeError ? (h("eds-link", { label: this.urlLabel, url: this.storyLink, intent: this.intent, class: "ml-auto", external: true, disabled: false, icon: "arrow-diagonal" })) : null), h("div", { key: '26a5ae1c81b60b05b6f4859ffa4dbd13bb2557f3', class: "border-softer border-t-2" }, this.iframeError ? (h("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage)) : (h("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: true })))));
|
|
83
|
+
}
|
|
84
|
+
get el() { return getElement(this); }
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export { EdsFrame as eds_frame };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-e96badea.js';
|
|
2
|
+
|
|
3
|
+
const edsFullscreenMenuCss = "";
|
|
4
|
+
const EdsFullscreenMenuStyle0 = edsFullscreenMenuCss;
|
|
5
|
+
|
|
6
|
+
const EdsFullscreenMenu = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.menuClose = createEvent(this, "menuClose", 7);
|
|
10
|
+
this.links = undefined;
|
|
11
|
+
this.menuLinks = undefined;
|
|
12
|
+
this.homeUrl = '/';
|
|
13
|
+
this.inverseHeader = false;
|
|
14
|
+
this.isMenuOpen = false;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Listens for the toggleMenu event to open or close the menu.
|
|
18
|
+
* This event is emitted by the eds-header component.
|
|
19
|
+
*/
|
|
20
|
+
handleToggleMenu(event) {
|
|
21
|
+
this.isMenuOpen = event.detail; // Set isMenuOpen based on the event payload
|
|
22
|
+
}
|
|
23
|
+
/** Opens the menu */
|
|
24
|
+
openMenu() {
|
|
25
|
+
this.isMenuOpen = true;
|
|
26
|
+
}
|
|
27
|
+
/** Closes the menu */
|
|
28
|
+
closeMenu() {
|
|
29
|
+
this.isMenuOpen = false;
|
|
30
|
+
this.menuClose.emit();
|
|
31
|
+
}
|
|
32
|
+
// Lifecycle method to add the resize event listener when component loads
|
|
33
|
+
componentDidLoad() {
|
|
34
|
+
window.addEventListener('resize', this.handleResize.bind(this));
|
|
35
|
+
}
|
|
36
|
+
// Lifecycle method to remove the resize event listener when component unloads
|
|
37
|
+
disconnectedCallback() {
|
|
38
|
+
window.removeEventListener('resize', this.handleResize.bind(this));
|
|
39
|
+
}
|
|
40
|
+
// Function to close the menu if screen width is larger than a defined breakpoint (1024px)
|
|
41
|
+
handleResize() {
|
|
42
|
+
if (window.innerWidth >= 1024) {
|
|
43
|
+
this.isMenuOpen = false;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Parses the `links` prop into an array of link objects.
|
|
48
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
49
|
+
*
|
|
50
|
+
* @returns {any[]} Array of parsed link objects
|
|
51
|
+
*/
|
|
52
|
+
get parsedLinks() {
|
|
53
|
+
if (typeof this.links === 'object') {
|
|
54
|
+
return this.links;
|
|
55
|
+
}
|
|
56
|
+
else if (typeof this.links === 'string') {
|
|
57
|
+
try {
|
|
58
|
+
return JSON.parse(this.links);
|
|
59
|
+
}
|
|
60
|
+
catch (e) {
|
|
61
|
+
// eslint-disable-next-line
|
|
62
|
+
console.error('Error parsing links prop:', e);
|
|
63
|
+
return [];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return [];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Parses the `menuLinks` prop into an array of link objects.
|
|
70
|
+
* Returns an empty array if parsing fails or if `menuLinks` is not a valid JSON string or object.
|
|
71
|
+
*
|
|
72
|
+
* @returns {any[]} Array of parsed menu link objects
|
|
73
|
+
*/
|
|
74
|
+
get parsedMenuLinks() {
|
|
75
|
+
if (typeof this.menuLinks === 'object') {
|
|
76
|
+
return this.menuLinks;
|
|
77
|
+
}
|
|
78
|
+
else if (typeof this.menuLinks === 'string') {
|
|
79
|
+
try {
|
|
80
|
+
return JSON.parse(this.menuLinks);
|
|
81
|
+
}
|
|
82
|
+
catch (e) {
|
|
83
|
+
// eslint-disable-next-line
|
|
84
|
+
console.error('Error parsing menuLinks prop:', e);
|
|
85
|
+
return [];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return [];
|
|
89
|
+
}
|
|
90
|
+
render() {
|
|
91
|
+
return this.isMenuOpen ? (h("div", { class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll" }, h("div", { class: "flex min-h-full flex-col" }, h("div", { class: `bg-default w-full sticky top-0 ${this.inverseHeader ? 'bg-strongest' : 'bg-default'}` }, h("div", { class: "mx-auto flex items-center justify-between" }, h("div", { class: "mr-auto w-[200px] h-[85px]" }, h("eds-logo", { type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), h("div", { class: "px-16" }, h("eds-button", { "aria-label": "Close menu", intent: "ghostInverse", icon: "close", onClick: () => this.closeMenu() })))), h("div", { class: "py-16 px-16" }, h("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedLinks.map((link, index) => (h("eds-link", { label: link.label, key: index, url: link.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "arrow-right" })))), h("eds-block-break", null), h("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedMenuLinks.map((link, index) => (h("eds-link", { label: link.label, key: index, url: link.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "chevron-right" }))))), h("div", { class: "mt-auto" }, h("eds-footer", { social: true, "extra-class": "bg-darker" }))))) : null;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
EdsFullscreenMenu.style = EdsFullscreenMenuStyle0;
|
|
95
|
+
|
|
96
|
+
export { EdsFullscreenMenu as eds_fullscreen_menu };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-e96badea.js';
|
|
2
|
+
|
|
3
|
+
const edsHeaderCss = "";
|
|
4
|
+
const EdsHeaderStyle0 = edsHeaderCss;
|
|
5
|
+
|
|
6
|
+
const EdsHeader = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.toggleMenu = createEvent(this, "toggleMenu", 7);
|
|
10
|
+
this.homeUrl = '/';
|
|
11
|
+
this.links = undefined;
|
|
12
|
+
this.inverseHeader = false;
|
|
13
|
+
this.menuEnabled = false;
|
|
14
|
+
this.isMenuOpen = false;
|
|
15
|
+
this.isUserMenuOpen = false;
|
|
16
|
+
this.isAuthenticated = false;
|
|
17
|
+
}
|
|
18
|
+
onAuthStatusChanged(event) {
|
|
19
|
+
var _a;
|
|
20
|
+
this.isAuthenticated = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.authenticated;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lifecycle method that runs when the component has fully loaded.
|
|
24
|
+
* It emits a custom event for each `eds-link` element contained within the breadcrumb.
|
|
25
|
+
*/
|
|
26
|
+
componentDidLoad() {
|
|
27
|
+
// Emit context for each eds-link element after the component is fully loaded
|
|
28
|
+
const links = this.hostEl.querySelectorAll('eds-link');
|
|
29
|
+
links.forEach((link) => {
|
|
30
|
+
this.emitContext(link);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
35
|
+
* This event provides context information about the breadcrumb component.
|
|
36
|
+
*
|
|
37
|
+
* @param linkElement - The link element to which the event will be dispatched.
|
|
38
|
+
*/
|
|
39
|
+
emitContext(linkElement) {
|
|
40
|
+
const event = new CustomEvent('parentContext', {
|
|
41
|
+
detail: {
|
|
42
|
+
componentName: this.hostEl.tagName.toLowerCase(),
|
|
43
|
+
identifier: null
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
linkElement.dispatchEvent(event);
|
|
47
|
+
}
|
|
48
|
+
/** Emits an event to open or close the menu */
|
|
49
|
+
handleToggleMenu() {
|
|
50
|
+
this.toggleMenu.emit(!this.isMenuOpen);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Toggles the visibility of the user menu.
|
|
54
|
+
* Opens the user menu if closed, and closes it if open.
|
|
55
|
+
*/
|
|
56
|
+
toggleUserMenu() {
|
|
57
|
+
this.isUserMenuOpen = !this.isUserMenuOpen;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Parses the `links` prop into an array of link objects.
|
|
61
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
62
|
+
*
|
|
63
|
+
* @returns {any[]} Array of parsed link objects
|
|
64
|
+
*/
|
|
65
|
+
get parsedLinks() {
|
|
66
|
+
// If it's already an array, return it immediately.
|
|
67
|
+
if (Array.isArray(this.links)) {
|
|
68
|
+
return this.links;
|
|
69
|
+
}
|
|
70
|
+
if (typeof this.links === 'object') {
|
|
71
|
+
return this.links;
|
|
72
|
+
}
|
|
73
|
+
else if (typeof this.links === 'string') {
|
|
74
|
+
try {
|
|
75
|
+
return JSON.parse(this.links);
|
|
76
|
+
}
|
|
77
|
+
catch (e) {
|
|
78
|
+
// eslint-disable-next-line
|
|
79
|
+
console.error('Error parsing links prop:', e);
|
|
80
|
+
return [];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return [];
|
|
84
|
+
}
|
|
85
|
+
render() {
|
|
86
|
+
return (h("header", { key: '8447435914bd3cdf61ce03f2a6bc646fd6b39b01', class: `flex items-center justify-between relative z-10
|
|
87
|
+
${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, h("div", { key: '2a7a525d9ec5f86437212ab5b6c60c901e1f69a8', class: "mr-auto w-[200px] h-[85px]" }, h("eds-logo", { key: '29381ef7d9f600690a373a09be30b2dea6d5b936', type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), this.parsedLinks && (h("nav", { key: '8085c6dfa6dadce3d7eefb45505e9c9404fd422d', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, h("ul", { key: 'cb8442be1efc058dc46c283c85e50c58dd627f3e', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (h("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "small", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), h("slot", { key: '5d39561f4f43641640cc3f5d01edd35ebde794e3' }), this.menuEnabled ? (h("div", { class: "md:hidden flex overflow-hidden px-16" }, h("eds-button", { "aria-label": "Menu", intent: "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() }))) : null));
|
|
88
|
+
}
|
|
89
|
+
get hostEl() { return getElement(this); }
|
|
90
|
+
};
|
|
91
|
+
EdsHeader.style = EdsHeaderStyle0;
|
|
92
|
+
|
|
93
|
+
export { EdsHeader as eds_header };
|
|
@@ -7,7 +7,7 @@ const EdsIconArrowDiagonal = class {
|
|
|
7
7
|
this.addClass = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: 'd85a4d425e0c255efe4763d4a13f13b6ff727c2c', class: this.addClass, innerHTML: arrowDiagonal });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconArrowRight = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: '4a2b33b86753acab8270a45c7b250603b128bc88', class: this.class, innerHTML: arrowRight });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconBluesky = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: '845a157678b9d059b2c9bd8a6265d3a62f33c31a', class: this.class, innerHTML: bluesky });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconChevronDown = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: 'fa8022d27b91e909d4cd5522c6d0406be698a412', class: this.class, innerHTML: chevronDown });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconChevronLeft = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: 'c723d7f1bbd596063ae7e66123b8038af5320a54', class: this.class, innerHTML: chevronLeft });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconChevronRight = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: 'f770cd9151077e8708c76d2082613c65a20c420f', class: this.class, innerHTML: chevronRight });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconChevronUp = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: '40d18a840277f2aba5d314a36fca5c1f8fd99cc6', class: this.class, innerHTML: chevronUp });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconClose = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: '947f6615e8ee155be98b379a9c771cc0d453becd', class: this.class, innerHTML: close });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconCopy = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: '1e23d4493d5a1d07bc794da20cc4e445a87d56b0', class: this.class, innerHTML: copy });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconEu = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: '14254e1b9d43562e6f3f943de22aa8dd4d89a044', class: this.class, innerHTML: euSvg });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconFacebook = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: '902598891dfe926f92ce5d30dc135896c6eccd43', class: this.class, innerHTML: facebook });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconGitlab = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: '128f9265dfc1aee95586ba0a3fd20dd131678893', class: this.class, innerHTML: gitlabBlack });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconLinkedin = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: '0f9675a371ca7bb460882c04bf2bb0c103273a0d', class: this.class, innerHTML: linkedin });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconLoader = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: 'f11c60068baa2d2398056b3d7f04129d9deb4517', class: this.class, innerHTML: loader });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconMastodon = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: '1f68e5d0b6f8455f40bf94f6095eceff00b7887e', class: this.class, innerHTML: mastodon });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconMenu = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: '0084602c8e870b70caa66479f71bed3bd0cce94e', class: this.class, innerHTML: menu });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconMore = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: 'dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4', class: this.class, innerHTML: more });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconSearch = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: '42acc730afd956c2884b0789b3ea37ccf323630b', class: this.class, innerHTML: search });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconSuccess = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: '8b5d4cfeedf6d7e9bea48d7ba892527d484c858d', class: this.class, innerHTML: success });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconTwitter = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: 'a06ab2e79a1ec7603244ec09649ccc2c9ea1950c', class: this.class, innerHTML: twitter });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconUser = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: 'cb31d12146ff577195650b502f51005092404a30', class: this.class, innerHTML: user });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ const EdsIconYoutube = class {
|
|
|
7
7
|
this.class = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h("span", { key: '
|
|
10
|
+
return h("span", { key: '4eba69bfec926b7a3490feee15b5947a8ab8a7b9', class: this.class, innerHTML: youtube });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|