@ebrains/components 0.0.1-alpha.0 → 0.3.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/{color-ac51ccf7.js → color-3ffe3072.js} +6 -6
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
- package/dist/cjs/components.cjs.js +3 -30
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/eds-accordion.cjs.entry.js +5 -4
- package/dist/cjs/eds-alert.cjs.entry.js +10 -9
- package/dist/cjs/{eds-accordion_23.cjs.entry.js → eds-avatar_17.cjs.entry.js} +353 -785
- package/dist/cjs/eds-card-desc_3.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-generic.cjs.entry.js +18 -6
- package/dist/cjs/eds-card-project.cjs.entry.js +5 -5
- package/dist/cjs/eds-card-section.cjs.entry.js +20 -8
- package/dist/cjs/eds-card-tags.cjs.entry.js +3 -2
- package/dist/cjs/eds-card-tool.cjs.entry.js +6 -5
- package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/eds-code-block.cjs.entry.js +4 -34
- package/dist/cjs/eds-components-section.cjs.entry.js +45 -25
- package/dist/cjs/eds-docs-palettes.cjs.entry.js +2 -2
- package/dist/cjs/eds-docs-tokens.cjs.entry.js +2 -2
- package/dist/cjs/eds-form.cjs.entry.js +96 -23
- package/dist/cjs/eds-frame.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-close.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-copy.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-eu.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-loader.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-menu.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-more.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-search.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-success.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-user.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +3 -3
- package/dist/cjs/{eds-input-field.cjs.entry.js → eds-input_7.cjs.entry.js} +249 -5
- package/dist/cjs/eds-login.cjs.entry.js +3 -3
- package/dist/cjs/eds-logo-variations.cjs.entry.js +27 -0
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +7 -6
- package/dist/cjs/eds-modal.cjs.entry.js +45 -5
- package/dist/cjs/eds-navigator.cjs.entry.js +1 -1
- package/dist/cjs/{eds-pagination.cjs.entry.js → eds-pagination_2.cjs.entry.js} +160 -2
- package/dist/cjs/eds-progress-bar.cjs.entry.js +3 -2
- package/dist/cjs/eds-rating.cjs.entry.js +3 -2
- package/dist/cjs/eds-section-core_2.cjs.entry.js +1 -1
- package/dist/cjs/eds-svg-repository.cjs.entry.js +298 -4
- package/dist/cjs/eds-tab.cjs.entry.js +2 -2
- package/dist/cjs/eds-tabs-content.cjs.entry.js +6 -6
- package/dist/cjs/eds-tabs.cjs.entry.js +32 -10
- package/dist/cjs/eds-timeline.cjs.entry.js +76 -0
- package/dist/cjs/eds-tooltip.cjs.entry.js +4 -3
- package/dist/cjs/eds-trl.cjs.entry.js +52 -0
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/{index-2cc3495f.js → index-f08e4f5c.js} +54 -37
- package/dist/cjs/{loader-5efe2c21.js → loader-72f9d178.js} +2 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/logo-space.cjs.entry.js +5 -4
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +36 -0
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +6 -5
- package/dist/cjs/token-list_3.cjs.entry.js +4 -4
- package/dist/cjs/token-ratios.cjs.entry.js +2 -2
- package/dist/cjs/token-spacing.cjs.entry.js +2 -2
- package/dist/cjs/token-typography.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +13 -12
- package/dist/collection/components/eds-button/eds-button.js +3 -3
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +21 -1
- package/dist/collection/components/eds-form/eds-form.css +10 -0
- package/dist/collection/components/eds-form/eds-form.js +111 -20
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +140 -15
- package/dist/collection/components/eds-input-field/eds-input-field.css +16 -6
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- package/dist/collection/components/eds-modal/eds-modal.css +8 -0
- package/dist/collection/components/eds-modal/eds-modal.js +42 -2
- package/dist/collection/components/eds-table/eds-table.css +4 -0
- package/dist/collection/components/eds-table/eds-table.js +69 -11
- package/dist/collection/components/eds-table/eds-table.stories.js +14 -93
- package/dist/collection/components/eds-timeline/eds-timeline.js +99 -0
- package/dist/collection/components/eds-timeline/eds-timeline.stories.js +35 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
- package/dist/collection/components/eds-trl/eds-trl.js +69 -0
- 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 -5
- 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 +3 -6
- 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 +44 -0
- package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +7 -1
- package/dist/collection/eds-docs-ui/functional/angular.js +1 -1
- package/dist/collection/eds-docs-ui/functional/installation.js +1 -1
- package/dist/collection/eds-docs-ui/functional/overview.js +1 -1
- package/dist/collection/eds-docs-ui/functional/react.js +1 -1
- package/dist/collection/eds-docs-ui/functional/vue.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.css +21 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +2 -54
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +4 -13
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +4 -0
- 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.js +19 -8
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +40 -7
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +4 -3
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +77 -0
- package/dist/collection/shared-ui/eds-header/eds-header.js +10 -6
- package/dist/collection/shared-ui/eds-header/eds-header.stories.js +16 -10
- package/dist/collection/shared-ui/eds-login/eds-login.js +3 -2
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +4 -4
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +21 -0
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +29 -8
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +22 -4
- package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +2 -2
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +48 -34
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/shared-ui/eds-user/eds-user.js +12 -6
- package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -11
- package/dist/components/analytics.js +6 -6
- package/dist/components/components.css +38 -0
- package/dist/components/components.esm.js +1 -47
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/eds-accordion2.js +4 -3
- package/dist/components/eds-alert2.js +3 -2
- package/dist/components/eds-avatar2.js +3 -2
- package/dist/components/eds-block-break2.js +2 -1
- package/dist/components/eds-breadcrumb.js +15 -13
- package/dist/components/eds-button2.js +6 -4
- package/dist/components/eds-card-desc2.js +2 -1
- package/dist/components/eds-card-generic2.js +17 -4
- package/dist/components/eds-card-project.js +2 -1
- package/dist/components/eds-card-section.js +19 -7
- package/dist/components/eds-card-tags.js +2 -1
- package/dist/components/eds-card-title2.js +2 -1
- package/dist/components/eds-card-tool.js +4 -2
- package/dist/components/eds-code-block2.js +3 -33
- package/dist/components/eds-components-section.js +44 -24
- 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 -1
- package/dist/components/eds-footer2.js +3 -2
- package/dist/components/eds-form.js +97 -22
- package/dist/components/eds-fullscreen-menu.js +2 -1
- package/dist/components/eds-header.js +9 -4
- 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 +2 -1
- package/dist/components/eds-input-field2.js +5 -4
- package/dist/components/eds-input-select2.js +70 -2
- package/dist/components/eds-link2.js +5 -3
- package/dist/components/eds-login.js +3 -2
- package/dist/components/eds-logo-variations.d.ts +11 -0
- package/dist/components/eds-logo-variations.js +60 -0
- package/dist/components/eds-logo2.js +6 -3
- package/dist/components/eds-matomo-notice.js +4 -2
- package/dist/components/eds-modal.js +44 -4
- package/dist/components/eds-pagination2.js +2 -1
- package/dist/components/eds-progress-bar.js +1 -40
- package/dist/components/{eds-progress-bar.entry.js → eds-progress-bar2.js} +26 -7
- package/dist/components/eds-rating.js +2 -1
- package/dist/components/eds-section-core2.js +2 -1
- package/dist/components/eds-social-networks.js +2 -2
- package/dist/components/eds-social-networks2.js +7 -6
- package/dist/components/eds-svg-repository.js +296 -2
- package/dist/components/eds-tab2.js +1 -1
- package/dist/components/eds-table2.js +38 -15
- package/dist/components/eds-tabs-content.js +5 -4
- package/dist/components/eds-tabs.js +31 -8
- package/dist/components/eds-tag2.js +3 -2
- package/dist/components/eds-timeline.d.ts +11 -0
- package/dist/components/eds-timeline.js +131 -0
- package/dist/components/eds-toast-manager.js +3 -2
- package/dist/components/eds-toast2.js +1 -1
- package/dist/components/eds-tooltip.js +3 -2
- package/dist/components/eds-trl.d.ts +11 -0
- package/dist/components/eds-trl.js +139 -0
- package/dist/components/eds-user-modal2.js +1 -4
- package/dist/components/eds-user2.js +12 -6
- package/dist/components/incorrect-use-of-colors.js +20 -2
- package/dist/components/index.esm.js +0 -1
- package/dist/components/index2.js +44 -399
- package/dist/components/keycloak.js +0 -10
- package/dist/components/loader.js +2 -5
- package/dist/components/logo-space.js +4 -3
- package/dist/components/logo-variations-horizontal.js +2 -49
- package/dist/components/logo-variations-horizontal2.js +37 -0
- package/dist/components/logo-variations-vertical.js +2 -49
- package/dist/components/logo-variations-vertical2.js +42 -0
- package/dist/components/logo-wrong-usage.js +5 -4
- package/dist/components/{p-9c05e349.entry.js → p-005de86f.entry.js} +1 -1
- package/dist/components/{p-877403df.entry.js → p-02e2a62f.entry.js} +1 -1
- package/dist/components/{p-3dbf2ac9.entry.js → p-0910d733.entry.js} +1 -1
- package/dist/components/{p-6bc00fad.entry.js → p-0c2e844e.entry.js} +1 -1
- package/dist/components/{p-378d371f.entry.js → p-145f13ad.entry.js} +1 -1
- package/dist/components/{p-0a195bfe.entry.js → p-16458a81.entry.js} +1 -1
- package/dist/components/p-2117611b.js +1 -0
- package/dist/components/{p-513bf756.entry.js → p-22762818.entry.js} +1 -1
- package/dist/components/{p-94b74ae8.entry.js → p-22e6d7d5.entry.js} +1 -1
- package/dist/components/p-22f9e720.js +1 -0
- package/dist/components/p-2851ff44.entry.js +1 -0
- package/dist/components/p-29648b47.entry.js +1 -0
- package/dist/components/p-297b2bc3.entry.js +1 -0
- package/dist/components/{p-4541cb5f.entry.js → p-2e8459ef.entry.js} +1 -1
- package/dist/components/p-32cddd94.entry.js +1 -0
- package/dist/components/{p-0611bbac.entry.js → p-32f282a9.entry.js} +1 -1
- package/dist/components/p-3617841d.entry.js +1 -0
- package/dist/components/p-373673ca.js +1 -0
- package/dist/components/{p-677f60bc.entry.js → p-388b4966.entry.js} +1 -1
- package/dist/components/p-3ff76976.entry.js +1 -0
- package/dist/components/{p-ff6b25a1.entry.js → p-4037ad48.entry.js} +1 -1
- package/dist/components/{p-c16b3c0c.entry.js → p-42b4ecff.entry.js} +1 -1
- package/dist/components/{p-fa1276cc.entry.js → p-435a14c1.entry.js} +1 -1
- package/dist/components/p-490ba155.entry.js +1 -0
- package/dist/components/p-4932aab2.entry.js +1 -0
- package/dist/components/p-4a24c2ce.entry.js +1 -0
- package/dist/components/p-52ac3456.entry.js +1 -0
- package/dist/components/{p-b544f216.entry.js → p-54c75346.entry.js} +1 -1
- package/dist/components/{p-11a4ef34.entry.js → p-57c964c5.entry.js} +1 -1
- package/dist/components/p-5a43503a.entry.js +1 -0
- package/dist/components/p-5aad9d3f.entry.js +1 -0
- package/dist/components/p-5afb626c.entry.js +1 -0
- package/dist/components/p-5d7af761.entry.js +1 -0
- package/dist/components/{p-2728a189.entry.js → p-5fc68438.entry.js} +1 -1
- package/dist/components/p-6378fb3e.entry.js +1 -0
- package/dist/components/p-673dce11.entry.js +1 -0
- package/dist/components/{p-c0afe524.entry.js → p-6fc62452.entry.js} +1 -1
- package/dist/components/p-7215789a.entry.js +1 -0
- package/dist/components/{p-36c0f3ee.entry.js → p-73bd0c97.entry.js} +1 -1
- package/dist/components/p-762c8c83.entry.js +1 -0
- package/dist/components/p-7802e966.entry.js +1 -0
- package/dist/components/p-79887c2c.entry.js +1 -0
- package/dist/components/{p-e9a1fb1e.js → p-7a8b9de5.js} +2 -2
- package/dist/components/p-846fc91c.entry.js +1 -0
- package/dist/components/p-84957b6d.entry.js +1 -0
- package/dist/components/{p-e69ff916.entry.js → p-87830085.entry.js} +1 -1
- package/dist/components/p-8c56e39a.entry.js +1 -0
- package/dist/components/p-96c4deda.entry.js +1 -0
- package/dist/components/p-a44a1abe.entry.js +1 -0
- package/dist/components/p-a4e9b68b.entry.js +1 -0
- package/dist/components/p-ac0112d5.entry.js +1 -0
- package/dist/components/p-acb16e1c.entry.js +1 -0
- package/dist/components/p-ae5dbd41.entry.js +1 -0
- package/dist/components/{p-6cb8c52d.entry.js → p-bdd86a3c.entry.js} +1 -1
- package/dist/components/{p-22ee5374.entry.js → p-be6c80da.entry.js} +1 -1
- package/dist/components/p-bf0f851d.entry.js +1 -0
- package/dist/components/{p-82453a66.entry.js → p-c2d369bc.entry.js} +1 -1
- package/dist/components/p-d1670eec.entry.js +1 -0
- package/dist/components/p-d1f6a722.entry.js +1 -0
- package/dist/components/p-d53b7a75.entry.js +1 -0
- package/dist/components/{p-c11d93cf.entry.js → p-d571d530.entry.js} +1 -1
- package/dist/components/{p-bad2a33a.entry.js → p-d6d86366.entry.js} +1 -1
- package/dist/components/p-d7a92efb.entry.js +1 -0
- package/dist/components/p-d9788b54.entry.js +1 -0
- package/dist/components/{p-606d8f86.entry.js → p-e20ed2c7.entry.js} +1 -1
- package/dist/components/{p-200ad980.entry.js → p-e6bfbf51.entry.js} +1 -1
- package/dist/components/{p-ddd005a3.entry.js → p-e74834bc.entry.js} +1 -1
- package/dist/components/{p-b94318f2.entry.js → p-f7a6ce69.entry.js} +1 -1
- package/dist/components/p-fd27e56c.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/token-list2.js +1 -1
- package/dist/components/token-radii2.js +1 -1
- package/dist/components/token-ratios.js +1 -1
- package/dist/components/token-shadows2.js +1 -1
- package/dist/components/token-spacing.js +1 -1
- package/dist/components/token-typography.js +1 -1
- package/dist/esm/{color-49aa977d.js → color-0ba8ed56.js} +6 -6
- package/dist/esm/color-primary-palette_6.entry.js +15 -15
- package/dist/esm/components.js +4 -31
- package/dist/esm/correct-use-of-colors.entry.js +2 -2
- package/dist/esm/eds-accordion.entry.js +5 -4
- package/dist/esm/eds-alert.entry.js +4 -3
- package/dist/esm/{eds-accordion_23.entry.js → eds-avatar_17.entry.js} +348 -774
- package/dist/esm/eds-card-desc_3.entry.js +1 -1
- package/dist/esm/eds-card-generic.entry.js +17 -5
- package/dist/esm/eds-card-project.entry.js +3 -3
- package/dist/esm/eds-card-section.entry.js +20 -8
- package/dist/esm/eds-card-tags.entry.js +3 -2
- package/dist/esm/eds-card-tool.entry.js +5 -4
- package/dist/esm/eds-card-wrapper.entry.js +1 -1
- package/dist/esm/eds-code-block.entry.js +4 -34
- package/dist/esm/eds-components-section.entry.js +45 -25
- package/dist/esm/eds-docs-palettes.entry.js +2 -2
- package/dist/esm/eds-docs-tokens.entry.js +2 -2
- package/dist/esm/eds-form.entry.js +96 -23
- package/dist/esm/eds-frame.entry.js +1 -1
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
- package/dist/esm/eds-icon-arrow-right.entry.js +2 -2
- package/dist/esm/eds-icon-bluesky.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-down.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-left.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-right.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-up.entry.js +2 -2
- package/dist/esm/eds-icon-close.entry.js +2 -2
- package/dist/esm/eds-icon-copy.entry.js +2 -2
- package/dist/esm/eds-icon-eu.entry.js +2 -2
- package/dist/esm/eds-icon-facebook.entry.js +2 -2
- package/dist/esm/eds-icon-gitlab.entry.js +2 -2
- package/dist/esm/eds-icon-linkedin.entry.js +2 -2
- package/dist/esm/eds-icon-loader.entry.js +2 -2
- package/dist/esm/eds-icon-mastodon.entry.js +2 -2
- package/dist/esm/eds-icon-menu.entry.js +2 -2
- package/dist/esm/eds-icon-more.entry.js +2 -2
- package/dist/esm/eds-icon-search.entry.js +2 -2
- package/dist/esm/eds-icon-success.entry.js +2 -2
- package/dist/esm/eds-icon-twitter.entry.js +2 -2
- package/dist/esm/eds-icon-user.entry.js +2 -2
- package/dist/esm/eds-icon-youtube.entry.js +2 -2
- package/dist/{components/eds-input-field.entry.js → esm/eds-input_7.entry.js} +244 -6
- package/dist/esm/eds-login.entry.js +3 -3
- package/dist/esm/eds-logo-variations.entry.js +23 -0
- package/dist/esm/eds-matomo-notice.entry.js +6 -5
- package/dist/esm/eds-modal.entry.js +45 -5
- package/dist/esm/eds-navigator.entry.js +1 -1
- package/dist/esm/{eds-pagination.entry.js → eds-pagination_2.entry.js} +160 -3
- package/dist/esm/eds-progress-bar.entry.js +3 -2
- package/dist/esm/eds-rating.entry.js +3 -2
- package/dist/esm/eds-section-core_2.entry.js +1 -1
- package/dist/esm/eds-svg-repository.entry.js +297 -3
- package/dist/esm/eds-tab.entry.js +2 -2
- package/dist/esm/eds-tabs-content.entry.js +5 -5
- package/dist/esm/eds-tabs.entry.js +31 -9
- package/dist/esm/eds-timeline.entry.js +72 -0
- package/dist/esm/eds-tooltip.entry.js +4 -3
- package/dist/esm/eds-trl.entry.js +48 -0
- package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
- package/dist/esm/{index-f1426055.js → index-e96badea.js} +54 -37
- package/dist/esm/{loader-66341740.js → loader-c9628637.js} +2 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/logo-space.entry.js +5 -4
- package/dist/esm/logo-variations-horizontal_2.entry.js +31 -0
- package/dist/esm/logo-wrong-usage.entry.js +6 -5
- package/dist/esm/token-list_3.entry.js +4 -4
- package/dist/esm/token-ratios.entry.js +2 -2
- package/dist/esm/token-spacing.entry.js +2 -2
- package/dist/esm/token-typography.entry.js +2 -2
- package/dist/hydrate/index.js +671 -223
- package/dist/hydrate/index.mjs +671 -223
- package/dist/stencil.config.js +4 -3
- package/dist/types/components/eds-accordion/eds-accordion.d.ts +2 -2
- package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +1 -5
- package/dist/types/components/eds-button/eds-button.d.ts +2 -2
- package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +2 -0
- package/dist/types/components/eds-form/eds-form.d.ts +8 -0
- package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +106 -3
- package/dist/types/components/eds-modal/eds-modal.d.ts +16 -0
- package/dist/types/components/eds-table/eds-table.d.ts +9 -1
- package/dist/types/components/eds-table/eds-table.stories.d.ts +6 -67
- package/dist/types/components/eds-timeline/eds-timeline.d.ts +26 -0
- package/dist/types/components/eds-timeline/eds-timeline.stories.d.ts +24 -0
- package/dist/types/components/eds-trl/eds-trl.d.ts +12 -0
- package/dist/types/components.d.ts +255 -32
- package/dist/types/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.d.ts +0 -4
- package/dist/types/eds-docs-ui/eds-logo-variations/eds-logo-variations.d.ts +9 -0
- package/dist/types/eds-docs-ui/eds-svg-repository/eds-svg-repository.d.ts +2 -0
- package/dist/types/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.d.ts +1 -7
- package/dist/types/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.d.ts +1 -1
- package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +6 -1
- package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +20 -1
- package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +8 -2
- package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.d.ts +29 -0
- package/dist/types/shared-ui/eds-header/eds-header.d.ts +7 -1
- package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +9 -1
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +13 -0
- package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +18 -1
- package/dist/types/shared-ui/eds-user/eds-user.d.ts +1 -2
- package/package.json +3 -3
- package/dist/cjs/color-primary-palette.cjs.entry.js +0 -43
- package/dist/cjs/color-secondary-palette.cjs.entry.js +0 -68
- package/dist/cjs/color-support-palette.cjs.entry.js +0 -59
- package/dist/cjs/eds-avatar.cjs.entry.js +0 -73
- package/dist/cjs/eds-block-break.cjs.entry.js +0 -20
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -152
- package/dist/cjs/eds-button.cjs.entry.js +0 -233
- package/dist/cjs/eds-card-desc.cjs.entry.js +0 -26
- package/dist/cjs/eds-card-title.cjs.entry.js +0 -56
- package/dist/cjs/eds-dropdown.cjs.entry.js +0 -129
- package/dist/cjs/eds-footer.cjs.entry.js +0 -49
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +0 -99
- package/dist/cjs/eds-header.cjs.entry.js +0 -96
- package/dist/cjs/eds-icon-wrapper.cjs.entry.js +0 -40
- package/dist/cjs/eds-img.cjs.entry.js +0 -57
- package/dist/cjs/eds-input-footer.cjs.entry.js +0 -21
- package/dist/cjs/eds-input-label.cjs.entry.js +0 -20
- package/dist/cjs/eds-input-range.cjs.entry.js +0 -39
- package/dist/cjs/eds-input-search.cjs.entry.js +0 -41
- package/dist/cjs/eds-input-select.cjs.entry.js +0 -30
- package/dist/cjs/eds-input.cjs.entry.js +0 -68
- package/dist/cjs/eds-link.cjs.entry.js +0 -211
- package/dist/cjs/eds-logo.cjs.entry.js +0 -76
- package/dist/cjs/eds-section-core.cjs.entry.js +0 -23
- package/dist/cjs/eds-section-heading.cjs.entry.js +0 -41
- package/dist/cjs/eds-social-networks.cjs.entry.js +0 -65
- package/dist/cjs/eds-table.cjs.entry.js +0 -142
- package/dist/cjs/eds-tag.cjs.entry.js +0 -44
- package/dist/cjs/eds-toast-manager.cjs.entry.js +0 -45
- package/dist/cjs/eds-toast.cjs.entry.js +0 -53
- package/dist/cjs/eds-user-modal.cjs.entry.js +0 -47
- package/dist/cjs/eds-user.cjs.entry.js +0 -90
- package/dist/cjs/gradient-primary-palette.cjs.entry.js +0 -45
- package/dist/cjs/gradient-secondary-palette.cjs.entry.js +0 -79
- package/dist/cjs/gradient-support-palette.cjs.entry.js +0 -63
- package/dist/cjs/index-1ff5f25c.js +0 -48
- package/dist/cjs/index-383d2951.js +0 -3449
- package/dist/cjs/index-96a4261e.js +0 -405
- package/dist/cjs/index-f62478aa.js +0 -1837
- package/dist/cjs/keycloak-940b83c1.js +0 -1910
- package/dist/cjs/logo-variations-horizontal.cjs.entry.js +0 -30
- package/dist/cjs/logo-variations-vertical.cjs.entry.js +0 -30
- package/dist/cjs/shadow-css-988e4292.js +0 -334
- package/dist/cjs/token-list.cjs.entry.js +0 -253
- package/dist/cjs/token-radii.cjs.entry.js +0 -25
- package/dist/cjs/token-shadows.cjs.entry.js +0 -34
- package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.css +0 -0
- package/dist/components/app-globals-0f993ce5.js +0 -3
- package/dist/components/color-primary-palette.entry.js +0 -39
- package/dist/components/color-secondary-palette.entry.js +0 -64
- package/dist/components/color-support-palette.entry.js +0 -55
- package/dist/components/correct-use-of-colors.entry.js +0 -64
- package/dist/components/eds-accordion.entry.js +0 -88
- package/dist/components/eds-alert.entry.js +0 -91
- package/dist/components/eds-avatar.entry.js +0 -69
- package/dist/components/eds-block-break.entry.js +0 -16
- package/dist/components/eds-breadcrumb.entry.js +0 -148
- package/dist/components/eds-button.entry.js +0 -229
- package/dist/components/eds-card-desc.entry.js +0 -22
- package/dist/components/eds-card-generic.entry.js +0 -89
- package/dist/components/eds-card-project.entry.js +0 -63
- package/dist/components/eds-card-section.entry.js +0 -39
- package/dist/components/eds-card-tags.entry.js +0 -17
- package/dist/components/eds-card-title.entry.js +0 -52
- package/dist/components/eds-card-tool.entry.js +0 -75
- package/dist/components/eds-card-wrapper.entry.js +0 -28
- package/dist/components/eds-code-block.entry.js +0 -2468
- package/dist/components/eds-components-section.entry.js +0 -92
- package/dist/components/eds-docs-palettes.entry.js +0 -23
- package/dist/components/eds-docs-tokens.entry.js +0 -31
- package/dist/components/eds-dropdown.entry.js +0 -125
- package/dist/components/eds-footer.entry.js +0 -45
- package/dist/components/eds-form.entry.js +0 -245
- package/dist/components/eds-frame.entry.js +0 -87
- package/dist/components/eds-fullscreen-menu.entry.js +0 -95
- package/dist/components/eds-header.entry.js +0 -92
- package/dist/components/eds-icon-arrow-diagonal.entry.js +0 -14
- package/dist/components/eds-icon-arrow-right.entry.js +0 -14
- package/dist/components/eds-icon-bluesky.entry.js +0 -14
- package/dist/components/eds-icon-chevron-down.entry.js +0 -14
- package/dist/components/eds-icon-chevron-left.entry.js +0 -14
- package/dist/components/eds-icon-chevron-right.entry.js +0 -14
- package/dist/components/eds-icon-chevron-up.entry.js +0 -14
- package/dist/components/eds-icon-close.entry.js +0 -14
- package/dist/components/eds-icon-copy.entry.js +0 -14
- package/dist/components/eds-icon-eu.entry.js +0 -14
- package/dist/components/eds-icon-facebook.entry.js +0 -14
- package/dist/components/eds-icon-gitlab.entry.js +0 -14
- package/dist/components/eds-icon-linkedin.entry.js +0 -14
- package/dist/components/eds-icon-loader.entry.js +0 -14
- package/dist/components/eds-icon-mastodon.entry.js +0 -14
- package/dist/components/eds-icon-menu.entry.js +0 -14
- package/dist/components/eds-icon-more.entry.js +0 -14
- package/dist/components/eds-icon-search.entry.js +0 -14
- package/dist/components/eds-icon-success.entry.js +0 -14
- package/dist/components/eds-icon-twitter.entry.js +0 -14
- package/dist/components/eds-icon-user.entry.js +0 -14
- package/dist/components/eds-icon-wrapper.entry.js +0 -36
- package/dist/components/eds-icon-youtube.entry.js +0 -14
- package/dist/components/eds-img.entry.js +0 -53
- package/dist/components/eds-input-footer.entry.js +0 -17
- package/dist/components/eds-input-label.entry.js +0 -16
- package/dist/components/eds-input-range.entry.js +0 -35
- package/dist/components/eds-input-search.entry.js +0 -37
- package/dist/components/eds-input-select.entry.js +0 -26
- package/dist/components/eds-input.entry.js +0 -64
- package/dist/components/eds-link.entry.js +0 -207
- package/dist/components/eds-login.entry.js +0 -68
- package/dist/components/eds-logo.entry.js +0 -72
- package/dist/components/eds-matomo-notice.entry.js +0 -105
- package/dist/components/eds-modal.entry.js +0 -42
- package/dist/components/eds-navigator.entry.js +0 -39
- package/dist/components/eds-pagination.entry.js +0 -207
- package/dist/components/eds-rating.entry.js +0 -53
- package/dist/components/eds-section-core.entry.js +0 -19
- package/dist/components/eds-section-heading.entry.js +0 -37
- package/dist/components/eds-social-networks.entry.js +0 -61
- package/dist/components/eds-svg-repository.entry.js +0 -28
- package/dist/components/eds-tab.entry.js +0 -36
- package/dist/components/eds-table.entry.js +0 -138
- package/dist/components/eds-tabs-content.entry.js +0 -129
- package/dist/components/eds-tabs.entry.js +0 -118
- package/dist/components/eds-tag.entry.js +0 -40
- package/dist/components/eds-toast-manager.entry.js +0 -41
- package/dist/components/eds-toast.entry.js +0 -49
- package/dist/components/eds-tooltip.entry.js +0 -95
- package/dist/components/eds-user-modal.entry.js +0 -43
- package/dist/components/eds-user.entry.js +0 -86
- package/dist/components/gradient-primary-palette.entry.js +0 -41
- package/dist/components/gradient-secondary-palette.entry.js +0 -75
- package/dist/components/gradient-support-palette.entry.js +0 -59
- package/dist/components/incorrect-use-of-colors.entry.js +0 -46
- package/dist/components/index-144c9ae8.js +0 -46
- package/dist/components/index-360dc790.js +0 -401
- package/dist/components/index-a9afa43f.js +0 -1802
- package/dist/components/index-b384416e.js +0 -3023
- package/dist/components/index3.js +0 -46
- package/dist/components/index4.js +0 -1802
- package/dist/components/keycloak-b647d452.js +0 -1903
- package/dist/components/logo-space.entry.js +0 -16
- package/dist/components/logo-variations-horizontal.entry.js +0 -26
- package/dist/components/logo-variations-vertical.entry.js +0 -26
- package/dist/components/logo-wrong-usage.entry.js +0 -16
- package/dist/components/p-0a6262b7.entry.js +0 -1
- package/dist/components/p-145d8e4d.entry.js +0 -1
- package/dist/components/p-1a1b8e28.entry.js +0 -1
- package/dist/components/p-1d94d663.entry.js +0 -1
- package/dist/components/p-219d9f68.entry.js +0 -1
- package/dist/components/p-25eb1801.entry.js +0 -1
- package/dist/components/p-2b14f03a.entry.js +0 -1
- package/dist/components/p-3048bdec.entry.js +0 -1
- package/dist/components/p-42dfb426.entry.js +0 -1
- package/dist/components/p-49a5eef5.entry.js +0 -1
- package/dist/components/p-52a487ee.entry.js +0 -1
- package/dist/components/p-55444767.entry.js +0 -1
- package/dist/components/p-5b900a2c.entry.js +0 -1
- package/dist/components/p-5edc806a.entry.js +0 -1
- package/dist/components/p-64d4a6e0.entry.js +0 -1
- package/dist/components/p-6f601454.entry.js +0 -1
- package/dist/components/p-763cbe2f.entry.js +0 -1
- package/dist/components/p-77a81dfa.entry.js +0 -1
- package/dist/components/p-7a2b35b4.entry.js +0 -1
- package/dist/components/p-81d2a9be.entry.js +0 -1
- package/dist/components/p-8c1be2b6.entry.js +0 -1
- package/dist/components/p-923e4d23.entry.js +0 -1
- package/dist/components/p-9c74a5dd.entry.js +0 -1
- package/dist/components/p-abcdf35f.js +0 -1
- package/dist/components/p-ac083317.entry.js +0 -1
- package/dist/components/p-ad79cc3c.entry.js +0 -1
- package/dist/components/p-b4055691.entry.js +0 -1
- package/dist/components/p-bfd2fdf1.entry.js +0 -1
- package/dist/components/p-c3c61db1.entry.js +0 -1
- package/dist/components/p-caf2af08.entry.js +0 -1
- package/dist/components/p-d80de13e.entry.js +0 -1
- package/dist/components/p-e04097a2.entry.js +0 -1
- package/dist/components/p-e2e715a2.entry.js +0 -1
- package/dist/components/p-e639818b.entry.js +0 -1
- package/dist/components/p-e80f4f24.js +0 -1
- package/dist/components/p-ec95188c.entry.js +0 -1
- package/dist/components/p-f04946a5.entry.js +0 -1
- package/dist/components/shadow-css-423dab2c.js +0 -332
- package/dist/components/token-list.entry.js +0 -249
- package/dist/components/token-radii.entry.js +0 -21
- package/dist/components/token-ratios.entry.js +0 -25
- package/dist/components/token-shadows.entry.js +0 -30
- package/dist/components/token-spacing.entry.js +0 -12
- package/dist/components/token-typography.entry.js +0 -226
- package/dist/esm/color-primary-palette.entry.js +0 -39
- package/dist/esm/color-secondary-palette.entry.js +0 -64
- package/dist/esm/color-support-palette.entry.js +0 -55
- package/dist/esm/eds-avatar.entry.js +0 -69
- package/dist/esm/eds-block-break.entry.js +0 -16
- package/dist/esm/eds-breadcrumb.entry.js +0 -148
- package/dist/esm/eds-button.entry.js +0 -229
- package/dist/esm/eds-card-desc.entry.js +0 -22
- package/dist/esm/eds-card-title.entry.js +0 -52
- package/dist/esm/eds-dropdown.entry.js +0 -125
- package/dist/esm/eds-footer.entry.js +0 -45
- package/dist/esm/eds-fullscreen-menu.entry.js +0 -95
- package/dist/esm/eds-header.entry.js +0 -92
- package/dist/esm/eds-icon-wrapper.entry.js +0 -36
- package/dist/esm/eds-img.entry.js +0 -53
- package/dist/esm/eds-input-field.entry.js +0 -68
- package/dist/esm/eds-input-footer.entry.js +0 -17
- package/dist/esm/eds-input-label.entry.js +0 -16
- package/dist/esm/eds-input-range.entry.js +0 -35
- package/dist/esm/eds-input-search.entry.js +0 -37
- package/dist/esm/eds-input-select.entry.js +0 -26
- package/dist/esm/eds-input.entry.js +0 -64
- package/dist/esm/eds-link.entry.js +0 -207
- package/dist/esm/eds-logo.entry.js +0 -72
- package/dist/esm/eds-section-core.entry.js +0 -19
- package/dist/esm/eds-section-heading.entry.js +0 -37
- package/dist/esm/eds-social-networks.entry.js +0 -61
- package/dist/esm/eds-table.entry.js +0 -138
- package/dist/esm/eds-tag.entry.js +0 -40
- package/dist/esm/eds-toast-manager.entry.js +0 -41
- package/dist/esm/eds-toast.entry.js +0 -49
- package/dist/esm/eds-user-modal.entry.js +0 -43
- package/dist/esm/eds-user.entry.js +0 -86
- package/dist/esm/gradient-primary-palette.entry.js +0 -41
- package/dist/esm/gradient-secondary-palette.entry.js +0 -75
- package/dist/esm/gradient-support-palette.entry.js +0 -59
- package/dist/esm/index-144c9ae8.js +0 -46
- package/dist/esm/index-360dc790.js +0 -401
- package/dist/esm/index-a9afa43f.js +0 -1802
- package/dist/esm/index-b384416e.js +0 -3416
- package/dist/esm/keycloak-b647d452.js +0 -1903
- package/dist/esm/logo-variations-horizontal.entry.js +0 -26
- package/dist/esm/logo-variations-vertical.entry.js +0 -26
- package/dist/esm/shadow-css-423dab2c.js +0 -332
- package/dist/esm/toastManager-b716afd8.js +0 -31
- package/dist/esm/token-list.entry.js +0 -249
- package/dist/esm/token-radii.entry.js +0 -21
- package/dist/esm/token-shadows.entry.js +0 -30
- /package/dist/cjs/{toastManager-1fb1a402.js → toastManager-4e9535f3.js} +0 -0
- /package/dist/collection/shared-ui/eds-social-networks/{eds-social-network.css → eds-social-networks.css} +0 -0
- /package/dist/{components/toastManager-b716afd8.js → esm/toastManager-d9eee791.js} +0 -0
|
@@ -18,7 +18,12 @@ export declare class EdsCardSection {
|
|
|
18
18
|
* '[{"title": "Card Title", "description": "Description", "avatar": "/path/to/avatar.jpg", "url": "http://example.com"}]'
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
cards: string
|
|
21
|
+
cards: string | {
|
|
22
|
+
title: string;
|
|
23
|
+
description: string;
|
|
24
|
+
tags: string;
|
|
25
|
+
url: string;
|
|
26
|
+
}[];
|
|
22
27
|
/**
|
|
23
28
|
* Number of columns to span for each card in the grid layout.
|
|
24
29
|
* This value sets the column span on medium (md) and larger screen sizes.
|
|
@@ -28,6 +28,25 @@ declare const _default: {
|
|
|
28
28
|
parameters: {};
|
|
29
29
|
};
|
|
30
30
|
export default _default;
|
|
31
|
-
export declare const
|
|
31
|
+
export declare const WithString: {
|
|
32
32
|
render: (args: any) => string;
|
|
33
33
|
};
|
|
34
|
+
export declare const WithObject: {
|
|
35
|
+
render: (args: any) => HTMLEdsCardSectionElement;
|
|
36
|
+
args: {
|
|
37
|
+
cards: {
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
tags: string;
|
|
41
|
+
url: string;
|
|
42
|
+
}[];
|
|
43
|
+
cols: number;
|
|
44
|
+
extraClass: string;
|
|
45
|
+
};
|
|
46
|
+
argTypes: {
|
|
47
|
+
cards: {
|
|
48
|
+
control: string;
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -4,7 +4,8 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
4
4
|
* It provides a responsive, full-window overlay menu with navigation links and additional options.
|
|
5
5
|
* This component is suitable for mobile and small screens, where a fullscreen menu enhances user navigation.
|
|
6
6
|
*
|
|
7
|
-
* ## Key Features
|
|
7
|
+
* ## Key Features
|
|
8
|
+
*
|
|
8
9
|
* - **Links and Menu Links**: Allows configurable primary and secondary navigation links.
|
|
9
10
|
* - **Event-Driven Open/Close**: Listens for a `toggleMenu` event to open or close the menu, emitted by the `eds-header` component.
|
|
10
11
|
* - **Responsive Behavior**: Automatically closes the menu when the screen width is larger than a specified breakpoint (1024px).
|
|
@@ -15,7 +16,12 @@ export declare class EdsFullscreenMenu {
|
|
|
15
16
|
* JSON string representing the links for primary navigation.
|
|
16
17
|
* Each link should include `label`, `url`, and optionally an `icon`.
|
|
17
18
|
*/
|
|
18
|
-
links: string
|
|
19
|
+
links: string | {
|
|
20
|
+
label: string;
|
|
21
|
+
url: string;
|
|
22
|
+
icon?: string;
|
|
23
|
+
external?: boolean;
|
|
24
|
+
}[];
|
|
19
25
|
/**
|
|
20
26
|
* JSON string representing the extra menu links a user wants for smaill screens navigation.
|
|
21
27
|
* Each link should include `label`, `url`.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
argTypes: {
|
|
5
|
+
menuEnabled: {
|
|
6
|
+
control: string;
|
|
7
|
+
description: string;
|
|
8
|
+
defaultValue: boolean;
|
|
9
|
+
};
|
|
10
|
+
headerLinks: {
|
|
11
|
+
control: string;
|
|
12
|
+
description: string;
|
|
13
|
+
defaultValue: {
|
|
14
|
+
label: string;
|
|
15
|
+
url: string;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
menuLinks: {
|
|
19
|
+
control: string;
|
|
20
|
+
description: string;
|
|
21
|
+
defaultValue: {
|
|
22
|
+
label: string;
|
|
23
|
+
url: string;
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
29
|
+
export declare const Default: any;
|
|
@@ -22,7 +22,12 @@ export declare class EdsHeader {
|
|
|
22
22
|
* JSON string representing the links for primary navigation.
|
|
23
23
|
* Each link should include `label`, `url`, and optionally an `icon`.
|
|
24
24
|
*/
|
|
25
|
-
links: string
|
|
25
|
+
links: string | {
|
|
26
|
+
label: string;
|
|
27
|
+
url: string;
|
|
28
|
+
icon?: string;
|
|
29
|
+
external?: boolean;
|
|
30
|
+
}[];
|
|
26
31
|
/**
|
|
27
32
|
* Determines if the header is rendered in inverse style.
|
|
28
33
|
* When true, the header applies styles suitable for a dark background.
|
|
@@ -36,6 +41,7 @@ export declare class EdsHeader {
|
|
|
36
41
|
/**
|
|
37
42
|
* Flag to enable or disable header menu toggle feature.
|
|
38
43
|
* When true, displays the toggle in the header.
|
|
44
|
+
* Requires the <eds-fullscreen-menu> to properly work.
|
|
39
45
|
*/
|
|
40
46
|
menuEnabled: boolean;
|
|
41
47
|
/**
|
|
@@ -18,6 +18,10 @@ declare const _default: {
|
|
|
18
18
|
control: string;
|
|
19
19
|
description: string;
|
|
20
20
|
};
|
|
21
|
+
menuEnabled: {
|
|
22
|
+
control: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
21
25
|
inverseHeader: {
|
|
22
26
|
control: string;
|
|
23
27
|
description: string;
|
|
@@ -41,7 +45,11 @@ declare const _default: {
|
|
|
41
45
|
};
|
|
42
46
|
args: {
|
|
43
47
|
homeUrl: string;
|
|
44
|
-
links:
|
|
48
|
+
links: {
|
|
49
|
+
label: string;
|
|
50
|
+
url: string;
|
|
51
|
+
}[];
|
|
52
|
+
menuEnabled: boolean;
|
|
45
53
|
inverseHeader: boolean;
|
|
46
54
|
userFeature: boolean;
|
|
47
55
|
keycloakUrl: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Component representing a list of social network links for EBRAINS.
|
|
3
3
|
* Each link directs users to EBRAINS' profiles on various social networks.
|
|
4
4
|
*/
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class EdsSocialNetworks {
|
|
6
6
|
/**
|
|
7
7
|
* Social Network custom title to display
|
|
8
8
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
argTypes: {
|
|
5
|
+
title: {
|
|
6
|
+
control: string;
|
|
7
|
+
defaultValue: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const Default: any;
|
|
13
|
+
export declare const CustomTitle: any;
|
|
@@ -15,7 +15,12 @@ export declare class EdsTabs {
|
|
|
15
15
|
/** Aria label for the navigation */
|
|
16
16
|
navAriaLabel: string;
|
|
17
17
|
/** JSON string for tabs data */
|
|
18
|
-
tabs: string
|
|
18
|
+
tabs: string | {
|
|
19
|
+
label: string;
|
|
20
|
+
url: string;
|
|
21
|
+
active: boolean;
|
|
22
|
+
ariaLabel: string;
|
|
23
|
+
}[];
|
|
19
24
|
/** State to store parsed tabs */
|
|
20
25
|
parsedTabs: Array<{
|
|
21
26
|
label: string;
|
|
@@ -32,6 +37,18 @@ export declare class EdsTabs {
|
|
|
32
37
|
}>;
|
|
33
38
|
tabContainer: HTMLElement;
|
|
34
39
|
componentWillLoad(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Parses the `links` prop into an array of link objects.
|
|
42
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
43
|
+
*
|
|
44
|
+
* @returns {any[]} Array of parsed link objects
|
|
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
|
+
*/
|
|
35
52
|
parseTabs(): void;
|
|
36
53
|
componentDidLoad(): void;
|
|
37
54
|
private setActiveIndex;
|
|
@@ -38,8 +38,7 @@ export declare class EdsUser {
|
|
|
38
38
|
*/
|
|
39
39
|
authenticated: boolean;
|
|
40
40
|
/**
|
|
41
|
-
* Indicates whether the
|
|
42
|
-
* This is set to `true` if the user is successfully authenticated with Keycloak.
|
|
41
|
+
* Indicates whether the Keycloak server is available.
|
|
43
42
|
*/
|
|
44
43
|
serverAvailable: boolean;
|
|
45
44
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ebrains/components",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.3.0-alpha.0",
|
|
4
4
|
"main": "./dist/index.cjs.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"es2015": "./dist/esm/index.mjs",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"loader/"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@ebrains/assets":"0.0
|
|
18
|
-
"@ebrains/svgs":"0.0
|
|
17
|
+
"@ebrains/assets":"0.3.0-alpha.0",
|
|
18
|
+
"@ebrains/svgs":"0.3.0-alpha.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-383d2951.js');
|
|
6
|
-
|
|
7
|
-
const ColorPrimaryPalette = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
// Primary palette data
|
|
11
|
-
this.colors = [
|
|
12
|
-
{
|
|
13
|
-
rgb: 'R156 G225 B66',
|
|
14
|
-
cmyk: 'C52 M0 Y98 K0',
|
|
15
|
-
hex: '#9CE142',
|
|
16
|
-
pantoneC: 'PANTONE 367 C',
|
|
17
|
-
pantoneU: 'PANTONE 374 U',
|
|
18
|
-
background: '#9CE142'
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
rgb: 'R0 G201 B89',
|
|
22
|
-
cmyk: 'C75 M0 Y80 K0',
|
|
23
|
-
hex: '#00C959',
|
|
24
|
-
pantoneC: 'PANTONE 7480 C',
|
|
25
|
-
pantoneU: 'PANTONE 7481 U',
|
|
26
|
-
background: '#00C959'
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
rgb: 'R0 G165 B149',
|
|
30
|
-
cmyk: 'C78 M8 Y49 K0',
|
|
31
|
-
hex: '#00A595',
|
|
32
|
-
pantoneC: 'PANTONE 3272 C',
|
|
33
|
-
pantoneU: 'PANTONE 3275 U',
|
|
34
|
-
background: '#00A595'
|
|
35
|
-
}
|
|
36
|
-
];
|
|
37
|
-
}
|
|
38
|
-
render() {
|
|
39
|
-
return (index.h("ul", { key: '153e3c0f00db6f824cb0f43b420645bcbd66632f', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (index.h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, index.h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, index.h("div", { class: "grid" }, index.h("span", { class: "f-body-02" }, color.rgb), index.h("span", { class: "f-body-02 w-full" }, color.cmyk), index.h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), index.h("div", { class: "grid" }, index.h("span", { class: "f-body-02" }, color.pantoneC), index.h("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
exports.color_primary_palette = ColorPrimaryPalette;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-383d2951.js');
|
|
6
|
-
|
|
7
|
-
const ColorSecondaryPalette = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
// Secondary palette data
|
|
11
|
-
this.colors = [
|
|
12
|
-
{
|
|
13
|
-
rgb: 'R63 G169 B245',
|
|
14
|
-
cmyk: 'C68 M13 Y0 K0',
|
|
15
|
-
hex: '#3FA9F5',
|
|
16
|
-
pantoneC: 'PANTONE 298 C',
|
|
17
|
-
pantoneU: 'PANTONE 298 U',
|
|
18
|
-
background: '#3FA9F5'
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
rgb: 'R6 G68 B244',
|
|
22
|
-
cmyk: 'C92 M60 Y0 K0',
|
|
23
|
-
hex: '#0644F4',
|
|
24
|
-
pantoneC: 'PANTONE 2728 C',
|
|
25
|
-
pantoneU: 'PANTONE 2935 U',
|
|
26
|
-
background: '#0644F4'
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
rgb: 'R196 G97 B255',
|
|
30
|
-
cmyk: 'C52 M67 Y0 K0',
|
|
31
|
-
hex: '#C461FF',
|
|
32
|
-
pantoneC: 'PANTONE 252 C',
|
|
33
|
-
pantoneU: 'PANTONE 252 U',
|
|
34
|
-
background: '#C461FF'
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
rgb: 'R93 G61 B249',
|
|
38
|
-
cmyk: 'C83 M78 Y0 K0',
|
|
39
|
-
hex: '#5D3DF9',
|
|
40
|
-
pantoneC: 'PANTONE 266 C',
|
|
41
|
-
pantoneU: 'PANTONE 2735 U',
|
|
42
|
-
background: '#5D3DF9'
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
rgb: 'R255 G165 B67',
|
|
46
|
-
cmyk: 'C0 M43 Y76 K0',
|
|
47
|
-
hex: '#FFA543',
|
|
48
|
-
pantoneC: 'PANTONE 804 C',
|
|
49
|
-
pantoneU: 'PANTONE 136 U',
|
|
50
|
-
background: '#FFA543'
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
rgb: 'R255 G77 B104',
|
|
54
|
-
cmyk: 'C0 M81 Y42 K0',
|
|
55
|
-
hex: '#FF4D68',
|
|
56
|
-
pantoneC: 'PANTONE 1785 C',
|
|
57
|
-
pantoneU: 'PANTONE 185 U',
|
|
58
|
-
background: '#FF4D68'
|
|
59
|
-
}
|
|
60
|
-
];
|
|
61
|
-
this.show = undefined;
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
return (index.h("ul", { key: 'b0af2cdf6524cf79ef8d28f37533d1f84812f174', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (index.h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, index.h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, index.h("div", { class: "grid" }, index.h("span", { class: "f-body-02" }, color.rgb), index.h("span", { class: "f-body-02 w-full" }, color.cmyk), index.h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), index.h("div", { class: "grid" }, index.h("span", { class: "f-body-02" }, color.pantoneC), index.h("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
exports.color_secondary_palette = ColorSecondaryPalette;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-383d2951.js');
|
|
6
|
-
|
|
7
|
-
const ColorSupportPalette = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
// Support palette data
|
|
11
|
-
this.colors = [
|
|
12
|
-
{
|
|
13
|
-
rgb: 'R20 G20 B20',
|
|
14
|
-
cmyk: 'C78 M69 Y61 K87',
|
|
15
|
-
hex: '#141414',
|
|
16
|
-
pantoneC: '',
|
|
17
|
-
pantoneU: '',
|
|
18
|
-
background: '#141414'
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
rgb: 'R56 G56 B56',
|
|
22
|
-
cmyk: 'C68 M58 Y55 K63',
|
|
23
|
-
hex: '#383838',
|
|
24
|
-
pantoneC: 'PANTONE 447 C',
|
|
25
|
-
pantoneU: 'PANTONE Neutral Black U',
|
|
26
|
-
background: '#383838'
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
rgb: 'R204 G204 B204',
|
|
30
|
-
cmyk: 'C23 M17 Y18 K0',
|
|
31
|
-
hex: '#CCCCCC',
|
|
32
|
-
pantoneC: 'PANTONE Cool Gray 2 C',
|
|
33
|
-
pantoneU: 'PANTONE Cool Gray 2 U',
|
|
34
|
-
background: '#CCCCCC'
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
rgb: 'R230 G230 B230',
|
|
38
|
-
cmyk: 'C12 M8 Y9 K0',
|
|
39
|
-
hex: '#E6E6E6',
|
|
40
|
-
pantoneC: 'PANTONE 663 C',
|
|
41
|
-
pantoneU: 'PANTONE 649 U',
|
|
42
|
-
background: '#E6E6E6'
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
rgb: 'R255 G255 B255',
|
|
46
|
-
cmyk: 'C0 M0 Y0 K0',
|
|
47
|
-
hex: '#FFFFFF',
|
|
48
|
-
pantoneC: '',
|
|
49
|
-
pantoneU: '',
|
|
50
|
-
background: '#FFFFFF'
|
|
51
|
-
}
|
|
52
|
-
];
|
|
53
|
-
}
|
|
54
|
-
render() {
|
|
55
|
-
return (index.h("ul", { key: 'c58041047c7d7993ac4e936051d40e1e8dda5263', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (index.h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, index.h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, index.h("div", { class: "grid" }, index.h("span", { class: "f-body-02" }, color.rgb), index.h("span", { class: "f-body-02 w-full" }, color.cmyk), index.h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), index.h("div", { class: "grid" }, index.h("span", { class: "f-body-02" }, color.pantoneC || 'N/A'), index.h("span", { class: "f-body-02" }, color.pantoneU || 'N/A'))))))));
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
exports.color_support_palette = ColorSupportPalette;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-383d2951.js');
|
|
6
|
-
const index$1 = require('./index-96a4261e.js');
|
|
7
|
-
require('./index-1ff5f25c.js');
|
|
8
|
-
|
|
9
|
-
const edsAvatarCss = ".border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border: 2px solid rgba(0, 0, 0, .1);\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-pill {\n &::after {\n border-radius: 100px;\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-inverse {\n &::after {\n border: 2px solid rgba(255, 255, 255, 0.3);\n }\n\n &::after {\n content: '';\n }\n}\n\n.aspect-1x1 {\n aspect-ratio: 1/1;\n}\n\n.flex {\n display: flex;\n}\n\n.inline-flex {\n display: inline-flex;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.overflow-hidden {\n overflow: hidden;\n}\n\n.px-4 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n.rounded-pill {\n border-radius: 100px;\n}\n\n.rounded-sm {\n border-radius: 8px;\n}\n\n.rounded-xs {\n border-radius: 4px;\n}\n\n\n.bg-dark {\n background-color: var(--grey-300);\n}\n\n.bg-darker {\n background-color: var(--grey-400);\n}\n\n.bg-stronger {\n background-color: var(--grey-900);\n}\n\n.bg-strongest {\n background-color: var(--black);\n}\n\n.text-accent {\n color: var(--green-500);\n}\n\n.text-default {\n color: var(--black);\n}\n\n.\\!no-underline {\n text-decoration-line: none !important;\n}\n\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n\n.w-32 {\n width: 2rem;\n}\n\n.w-44 {\n width: 2.75rem;\n}\n\n.w-\\[54px\\] {\n width: 54px;\n}";
|
|
10
|
-
|
|
11
|
-
const EdsAvatar = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.firstName = undefined;
|
|
15
|
-
this.lastName = undefined;
|
|
16
|
-
this.picture = undefined;
|
|
17
|
-
this.initials = undefined;
|
|
18
|
-
this.color = undefined;
|
|
19
|
-
this.rounded = false;
|
|
20
|
-
this.initialsStrong = false;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Computed initials based on the provided `initials` prop or derived from `firstName` and `lastName`.
|
|
24
|
-
* @returns {string | undefined} Initials for display in the avatar.
|
|
25
|
-
*/
|
|
26
|
-
get computedInitials() {
|
|
27
|
-
if (this.initials) {
|
|
28
|
-
return (this.initials.match(/.{1,3}/g) || [])[0] || '';
|
|
29
|
-
}
|
|
30
|
-
else if (this.firstName && this.lastName) {
|
|
31
|
-
return `${this.firstName.charAt(0)}${this.lastName.charAt(0)}`.toUpperCase();
|
|
32
|
-
}
|
|
33
|
-
return undefined;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Computes the CSS classes for the avatar container based on provided props like `rounded`, `color`, and `picture`.
|
|
37
|
-
* @returns {string} List of CSS classes to apply to the avatar container.
|
|
38
|
-
*/
|
|
39
|
-
get containerClasses() {
|
|
40
|
-
return [
|
|
41
|
-
'border-inside',
|
|
42
|
-
'aspect-1x1',
|
|
43
|
-
'flex',
|
|
44
|
-
'items-center',
|
|
45
|
-
'justify-center',
|
|
46
|
-
'overflow-hidden',
|
|
47
|
-
this.picture ? '' : 'px-4',
|
|
48
|
-
this.rounded ? 'rounded-pill border-inside-pill w-32' : 'w-[54px] rounded-sm',
|
|
49
|
-
this.color ? 'border-inside-inverse' : '',
|
|
50
|
-
this.color === 'grey'
|
|
51
|
-
? 'bg-dark'
|
|
52
|
-
: this.color && !this.picture
|
|
53
|
-
? index$1.gradientBGColorVariants({
|
|
54
|
-
color: this.color,
|
|
55
|
-
direction: 'top',
|
|
56
|
-
pseudo: false
|
|
57
|
-
})
|
|
58
|
-
: !this.picture
|
|
59
|
-
? 'bg-strongest text-accent'
|
|
60
|
-
: ''
|
|
61
|
-
].join(' ');
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Renders the avatar component. Displays either an image using `eds-img` or initials depending on whether `picture` or `computedInitials` is set.
|
|
65
|
-
* @returns {JSX.Element} The rendered avatar component.
|
|
66
|
-
*/
|
|
67
|
-
render() {
|
|
68
|
-
return (index.h("div", { key: '716279a35cc9235da991563d5f84d2dedbdae001', class: this.containerClasses }, this.picture ? (index.h("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: true, withBg: true })) : (index.h("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials))));
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
EdsAvatar.style = edsAvatarCss;
|
|
72
|
-
|
|
73
|
-
exports.eds_avatar = EdsAvatar;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-383d2951.js');
|
|
6
|
-
|
|
7
|
-
const edsBlockBreakCss = ".border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-softest{border-color:rgba(0, 0, 0, .05)}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.w-full{width:100%}.border-t-2{border-top-width:2px}";
|
|
8
|
-
|
|
9
|
-
const EdsBlockBreak = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.extraClass = '';
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
return index.h("hr", { key: '85b5253d4abb77072424452d2ff6a0d631e67652', class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
EdsBlockBreak.style = edsBlockBreakCss;
|
|
19
|
-
|
|
20
|
-
exports.eds_block_break = EdsBlockBreak;
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-383d2951.js');
|
|
6
|
-
|
|
7
|
-
const edsBreadcrumbCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.hidden{display:none}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.125rem * var(--tw-space-x-reverse));margin-left:calc(0.125rem * calc(1 - var(--tw-space-x-reverse)))}.px-2{padding-left:0.125rem;padding-right:0.125rem}.w-20{width:1.25rem}.w-28{width:1.75rem}.w-32{width:2rem}.w-44{width:2.75rem}.h-20{height:1.25rem}.h-24{height:1.5rem}.h-28{height:1.75rem}.h-32{height:2rem}@media (min-width: 750px){.md\\:block{display:block}}";
|
|
8
|
-
|
|
9
|
-
const EdsBreadcrumb = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
/**
|
|
13
|
-
* Updates the maximum number of visible items and tracks if the screen is small.
|
|
14
|
-
*/
|
|
15
|
-
this.updateScreenSize = () => {
|
|
16
|
-
const width = window.innerWidth;
|
|
17
|
-
if (width < 769) {
|
|
18
|
-
this.maxVisibleItems = 3;
|
|
19
|
-
this.isSmallScreen = true;
|
|
20
|
-
}
|
|
21
|
-
else if (width <= 1024) {
|
|
22
|
-
this.maxVisibleItems = 4;
|
|
23
|
-
this.isSmallScreen = true;
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
this.maxVisibleItems = 6;
|
|
27
|
-
this.isSmallScreen = false;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
this.items = [];
|
|
31
|
-
this.intent = 'ghost';
|
|
32
|
-
this.parsedItems = [];
|
|
33
|
-
this.isSmallScreen = false;
|
|
34
|
-
this.maxVisibleItems = 6;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Watch for changes to the `items` prop and parse it when it changes.
|
|
38
|
-
* Converts the `items` string into an array of objects if it is a JSON string.
|
|
39
|
-
* If the format is invalid, it logs an error and sets an empty array.
|
|
40
|
-
*
|
|
41
|
-
* @param newValue - The new value for the `items` prop.
|
|
42
|
-
*/
|
|
43
|
-
parseItems(newValue) {
|
|
44
|
-
try {
|
|
45
|
-
if (typeof newValue === 'string') {
|
|
46
|
-
this.parsedItems = JSON.parse(newValue);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
this.parsedItems = newValue;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
catch (e) {
|
|
53
|
-
this.parsedItems = [];
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Lifecycle method that runs when the component is about to be loaded.
|
|
58
|
-
* It parses the initial `items` prop value.
|
|
59
|
-
*/
|
|
60
|
-
componentWillLoad() {
|
|
61
|
-
this.parseItems(this.items);
|
|
62
|
-
this.updateScreenSize();
|
|
63
|
-
window.addEventListener('resize', this.updateScreenSize);
|
|
64
|
-
}
|
|
65
|
-
disconnectedCallback() {
|
|
66
|
-
window.removeEventListener('resize', this.updateScreenSize);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Lifecycle method that runs when the component has fully loaded.
|
|
70
|
-
* It emits a custom event for each `eds-link` element contained within the breadcrumb.
|
|
71
|
-
*/
|
|
72
|
-
componentDidLoad() {
|
|
73
|
-
// Emit context for each eds-link element after the component is fully loaded
|
|
74
|
-
const links = this.el.shadowRoot.querySelectorAll('eds-link');
|
|
75
|
-
links.forEach((link) => {
|
|
76
|
-
this.emitContext(link);
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Emits a custom event called `parentContext` for a given link element.
|
|
81
|
-
* This event provides context information about the breadcrumb component.
|
|
82
|
-
*
|
|
83
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
84
|
-
*/
|
|
85
|
-
emitContext(linkElement) {
|
|
86
|
-
const event = new CustomEvent('parentContext', {
|
|
87
|
-
detail: {
|
|
88
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
89
|
-
identifier: null
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
linkElement.dispatchEvent(event);
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Truncates breadcrumb items based on the maxVisibleItems value.
|
|
96
|
-
* Truncates `label` to 10 characters if `isSmallScreen` is true, except for the last label.
|
|
97
|
-
*/
|
|
98
|
-
getTruncatedItems() {
|
|
99
|
-
const totalItems = this.parsedItems.length;
|
|
100
|
-
if (totalItems > this.maxVisibleItems) {
|
|
101
|
-
const firstItem = this.parsedItems[0];
|
|
102
|
-
const lastItems = this.parsedItems.slice(-2);
|
|
103
|
-
const ellipsis = { label: '...', url: '', isHidden: true };
|
|
104
|
-
if (this.maxVisibleItems === 3) {
|
|
105
|
-
return [
|
|
106
|
-
this.truncateLabel(firstItem),
|
|
107
|
-
ellipsis,
|
|
108
|
-
...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
|
|
109
|
-
];
|
|
110
|
-
}
|
|
111
|
-
else if (this.maxVisibleItems === 4) {
|
|
112
|
-
const middleItem = this.parsedItems[Math.floor(totalItems / 2)];
|
|
113
|
-
return [
|
|
114
|
-
this.truncateLabel(firstItem),
|
|
115
|
-
this.truncateLabel(middleItem),
|
|
116
|
-
ellipsis,
|
|
117
|
-
...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
|
|
118
|
-
];
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
return this.parsedItems.map((item, index) => index === this.parsedItems.length - 1 ? item : this.truncateLabel(item));
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Truncates the label of a breadcrumb item to a maximum of 10 characters
|
|
125
|
-
* if the screen is small.
|
|
126
|
-
*/
|
|
127
|
-
truncateLabel(item) {
|
|
128
|
-
if (item.label.length > 15) {
|
|
129
|
-
return Object.assign(Object.assign({}, item), { label: `${item.label.slice(0, 15)}...` });
|
|
130
|
-
}
|
|
131
|
-
return item;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Render method for the breadcrumb component.
|
|
135
|
-
* It creates a navigation element with an ordered list of breadcrumb links.
|
|
136
|
-
* The last link is disabled and marked as the current page.
|
|
137
|
-
*/
|
|
138
|
-
render() {
|
|
139
|
-
const itemsToRender = this.getTruncatedItems();
|
|
140
|
-
return (index.h("nav", { key: 'b3f515670374a7451981638d658f8e37f07ab10c', "aria-label": "Breadcrumb" }, index.h("ol", { key: '999b2035f3c996016e753be3826881a11054e184', class: "flex items-center space-x-2" }, itemsToRender.map((item, index$1) => {
|
|
141
|
-
const isLast = index$1 === itemsToRender.length - 1;
|
|
142
|
-
return (index.h("li", { class: "flex items-center" }, !item.isHidden ? (index.h("eds-link", { label: item.label, url: item.url, intent: this.intent, current: isLast, "aria-label": item.label, size: "small", "icon-small": "false" })) : (index.h("span", { class: "truncate px-2 ", "aria-hidden": "true" }, "...")), !isLast && !item.isHidden && (index.h("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }))));
|
|
143
|
-
}))));
|
|
144
|
-
}
|
|
145
|
-
get el() { return index.getElement(this); }
|
|
146
|
-
static get watchers() { return {
|
|
147
|
-
"items": ["parseItems"]
|
|
148
|
-
}; }
|
|
149
|
-
};
|
|
150
|
-
EdsBreadcrumb.style = edsBreadcrumbCss;
|
|
151
|
-
|
|
152
|
-
exports.eds_breadcrumb = EdsBreadcrumb;
|