@ebrains/components 0.9.3-beta → 1.0.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/README.md +4 -2
- package/dist/cjs/{analytics-d8fb3fdd.js → analytics-28713bf7.js} +2 -2
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
- package/dist/cjs/components-section.cjs.entry.js +23 -17
- package/dist/cjs/components.cjs.js +2 -2
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/docs-palettes.cjs.entry.js +2 -2
- package/dist/cjs/docs-tokens.cjs.entry.js +2 -2
- package/dist/cjs/eds-accordion.cjs.entry.js +3 -3
- package/dist/cjs/eds-alert.cjs.entry.js +2 -2
- package/dist/cjs/eds-app-root.cjs.entry.js +2 -2
- package/dist/cjs/eds-avatar_34.cjs.entry.js +2731 -0
- package/dist/cjs/eds-card-project.cjs.entry.js +136 -8
- package/dist/cjs/eds-card-section.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tool.cjs.entry.js +3 -3
- package/dist/cjs/eds-code-block.cjs.entry.js +1 -1
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +2 -2
- package/dist/cjs/eds-feedback.cjs.entry.js +7 -2
- package/dist/cjs/eds-frame.cjs.entry.js +3 -3
- 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-bookmark.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-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-external.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-loader.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-minus.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-paper.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-plus.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-portal.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-private.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-public.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-star.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-tutorial.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-updown.cjs.entry.js +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-matomo-notice.cjs.entry.js +10 -8
- package/dist/cjs/eds-pagination_2.cjs.entry.js +6 -6
- package/dist/cjs/eds-progress-bar.cjs.entry.js +32 -5
- package/dist/cjs/eds-rating.cjs.entry.js +2 -2
- package/dist/cjs/eds-section-core_2.cjs.entry.js +4 -4
- package/dist/cjs/eds-spinner.cjs.entry.js +2 -2
- package/dist/cjs/eds-splash-screen.cjs.entry.js +60 -0
- package/dist/cjs/eds-switch.cjs.entry.js +14 -6
- package/dist/cjs/eds-timeline.cjs.entry.js +3 -3
- package/dist/cjs/eds-toast-manager.cjs.entry.js +33 -4
- package/dist/cjs/eds-toast.cjs.entry.js +5 -4
- package/dist/cjs/eds-trl.cjs.entry.js +2 -2
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/{index-2f63169d.js → index-88c8039f.js} +37 -319
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/logo-space.cjs.entry.js +2 -2
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +3 -3
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +2 -2
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
- package/dist/cjs/svg-repository.cjs.entry.js +2 -2
- 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-typography.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/eds-accordion/eds-accordion.css +0 -8
- package/dist/collection/components/eds-alert/eds-alert.css +1 -575
- package/dist/collection/components/eds-alert/eds-alert.stories.js +3 -1
- package/dist/collection/components/eds-avatar/eds-avatar.css +40 -25
- package/dist/collection/components/eds-avatar/eds-avatar.js +11 -21
- package/dist/collection/components/eds-avatar/eds-avatar.stories.js +5 -2
- package/dist/collection/components/eds-block-break/eds-block-break.css +2 -27
- package/dist/collection/components/eds-block-break/eds-block-break.js +9 -14
- package/dist/collection/components/eds-button/eds-button.css +318 -8312
- package/dist/collection/components/eds-button/eds-button.js +5 -59
- package/dist/collection/components/eds-button/eds-button.stories.js +4 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.css +5 -7
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +1 -20
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +10 -1
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +1 -1
- package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.css +58 -0
- package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +172 -0
- package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.stories.js +57 -0
- package/dist/collection/components/eds-charts/eds-pie/eds-pie.css +135 -0
- package/dist/collection/components/eds-charts/eds-pie/eds-pie.js +229 -0
- package/dist/collection/components/eds-charts/eds-pie/eds-pie.stories.js +76 -0
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +33 -156
- package/dist/collection/components/eds-input-field/eds-input-field.js +42 -15
- package/dist/collection/components/eds-link/eds-link.css +384 -6247
- package/dist/collection/components/eds-link/eds-link.js +2 -1
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.css +96 -61
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +48 -3
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.stories.js +3 -4
- package/dist/collection/components/eds-rating/eds-rating.js +1 -1
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +5 -1
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
- package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
- package/dist/collection/components/eds-switch/eds-switch.css +13 -2
- package/dist/collection/components/eds-switch/eds-switch.js +13 -5
- package/dist/collection/components/eds-table/eds-table.js +4 -4
- package/dist/collection/components/eds-table/eds-table.stories.js +1 -11
- package/dist/collection/components/eds-tag/eds-tag.css +22 -12
- package/dist/collection/components/eds-tag/eds-tag.js +1 -1
- package/dist/collection/components/eds-timeline/eds-timeline.css +46 -7755
- package/dist/collection/components/eds-timeline/eds-timeline.js +4 -1
- package/dist/collection/components/eds-toast/eds-toast.js +7 -7
- package/dist/collection/components/eds-tooltip/eds-tooltip.css +89 -93
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +6 -120
- package/dist/collection/components/eds-tooltip/eds-tooltip.stories.js +5 -3
- 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/components-section/components-section.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/functional/angular.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/functional/installation.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/functional/overview.js +2 -2
- package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
- package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +24 -1
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.stories.js +9 -1
- package/dist/collection/shared-ui/eds-footer/eds-footer.css +4 -0
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +46 -2
- package/dist/collection/shared-ui/eds-footer/eds-footer.stories.js +16 -3
- package/dist/collection/shared-ui/eds-form/eds-form.js +42 -10
- package/dist/collection/shared-ui/eds-frame/eds-frame.css +147 -115
- package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.css +149 -117
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +1 -1
- package/dist/collection/shared-ui/eds-header/eds-header.css +178 -132
- package/dist/collection/shared-ui/eds-header/eds-header.js +21 -40
- package/dist/collection/shared-ui/eds-header/eds-header.stories.js +6 -5
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +8 -6
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.js +1 -0
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/{components → shared-ui}/eds-steps/eds-steps.css +2 -35
- package/dist/collection/{components → shared-ui}/eds-steps/eds-steps.js +2 -2
- package/dist/collection/{components → shared-ui}/eds-steps/eds-steps.stories.js +1 -1
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +4 -128
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.stories.js +1 -1
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +268 -7686
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +10 -10
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +20 -10
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/shared-ui/eds-user/eds-user.css +36 -7758
- package/dist/collection/shared-ui/eds-user/eds-user.js +1 -1
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/collection/utils/analytics.js +2 -2
- package/dist/collection/utils/color.js +8 -8
- package/dist/components/analytics.js +2 -2
- package/dist/components/components-section.js +22 -16
- package/dist/components/components.css +34 -516
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/docs-palettes.js +1 -1
- package/dist/components/docs-tokens.js +1 -1
- package/dist/components/eds-accordion2.js +1 -1
- package/dist/components/eds-alert2.js +1 -1
- package/dist/components/eds-app-root.js +2 -20
- package/dist/components/eds-avatar2.js +4 -15
- package/dist/components/eds-block-break2.js +4 -4
- package/dist/components/eds-button2.js +6 -60
- package/dist/components/eds-card-desc2.js +2 -4
- package/dist/components/eds-card-generic2.js +2 -2
- package/dist/components/eds-card-project.js +131 -2
- package/dist/components/eds-card-tool.js +1 -1
- package/dist/components/eds-cookies-preference.js +1 -1
- package/dist/components/eds-feedback.js +7 -1
- package/dist/components/eds-footer2.js +7 -3
- package/dist/components/eds-form.js +17 -9
- package/dist/components/eds-frame.js +2 -2
- package/dist/components/eds-fullscreen-menu.js +1 -1
- package/dist/components/{eds-login.d.ts → eds-gauge.d.ts} +4 -4
- package/dist/components/eds-gauge.js +81 -0
- package/dist/components/eds-header.js +15 -34
- package/dist/components/eds-input-field2.js +26 -16
- package/dist/components/eds-input-select2.js +12 -84
- package/dist/components/eds-link2.js +3 -2
- package/dist/components/eds-matomo-notice2.js +8 -6
- package/dist/components/{eds-card-wrapper.d.ts → eds-pie.d.ts} +4 -4
- package/dist/components/eds-pie.js +127 -0
- package/dist/components/eds-progress-bar2.js +32 -4
- package/dist/components/eds-rating2.js +1 -1
- package/dist/components/eds-section-core2.js +3 -2
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-steps-v2.js +1 -1
- package/dist/components/eds-steps2.js +1 -1
- package/dist/components/eds-switch.js +13 -5
- package/dist/components/eds-table2.js +4 -4
- package/dist/components/eds-tabs.js +11 -11
- package/dist/components/eds-tag2.js +2 -2
- package/dist/components/eds-timeline.js +2 -2
- package/dist/components/eds-toast-manager.js +31 -2
- package/dist/components/eds-toast2.js +4 -3
- package/dist/components/eds-tooltip.js +7 -88
- package/dist/components/eds-trl.js +1 -1
- package/dist/components/eds-user.js +10 -4
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/logo-space.js +1 -1
- package/dist/components/logo-variations-horizontal2.js +1 -1
- package/dist/components/logo-variations-tabs.js +1 -1
- package/dist/components/logo-variations-vertical2.js +1 -1
- package/dist/components/logo-wrong-usage.js +1 -1
- package/dist/components/p-019555e2.entry.js +1 -0
- package/dist/components/p-04b4e9d0.entry.js +1 -0
- package/dist/components/p-0863352c.entry.js +1 -0
- package/dist/components/p-0d6434e1.entry.js +1 -0
- package/dist/components/p-0e94a89f.entry.js +1 -0
- package/dist/components/p-0ed92872.entry.js +1 -0
- package/dist/components/{p-c4db0829.entry.js → p-0eeddc13.entry.js} +1 -1
- package/dist/components/p-100909ce.entry.js +1 -0
- package/dist/components/{p-892362e0.entry.js → p-10db551c.entry.js} +1 -1
- package/dist/components/{p-aa2e6fec.entry.js → p-124b8747.entry.js} +1 -1
- package/dist/components/p-14a223fe.entry.js +1 -0
- package/dist/components/{p-e089797c.entry.js → p-1661f33c.entry.js} +1 -1
- package/dist/components/{p-05b272e5.entry.js → p-18ceadd2.entry.js} +1 -1
- package/dist/components/p-223ba66e.entry.js +1 -0
- package/dist/components/{p-751497f4.entry.js → p-24dab785.entry.js} +1 -1
- package/dist/components/p-26d6679b.entry.js +1 -0
- package/dist/components/p-2810d568.entry.js +1 -0
- package/dist/components/p-28ae3f3a.js +2 -0
- package/dist/components/p-2b1b2026.entry.js +1 -0
- package/dist/components/p-2c571550.entry.js +1 -0
- package/dist/components/p-326d9e55.entry.js +1 -0
- package/dist/components/p-36d6134f.entry.js +1 -0
- package/dist/components/p-3c642a30.entry.js +1 -0
- package/dist/components/p-46619042.entry.js +1 -0
- package/dist/components/{p-75d37c48.entry.js → p-46a6ab04.entry.js} +1 -1
- package/dist/components/{p-d83d2815.entry.js → p-50ea5b07.entry.js} +1 -1
- package/dist/components/p-511b23ec.entry.js +1 -0
- package/dist/components/p-5462923d.entry.js +1 -0
- package/dist/components/p-6199b8c0.entry.js +1 -0
- package/dist/components/{p-888c3471.entry.js → p-624e653e.entry.js} +1 -1
- package/dist/components/{p-0b99fd3c.entry.js → p-682f7376.entry.js} +1 -1
- package/dist/components/p-6907a47c.entry.js +1 -0
- package/dist/components/p-6ba42d02.entry.js +1 -0
- package/dist/components/p-6e929acb.entry.js +1 -0
- package/dist/components/p-6ede7101.entry.js +1 -0
- package/dist/components/p-70bac015.entry.js +1 -0
- package/dist/components/p-7af6b832.entry.js +1 -0
- package/dist/components/p-7f31622d.entry.js +1 -0
- package/dist/components/p-822ac246.entry.js +1 -0
- package/dist/components/p-848506b8.entry.js +1 -0
- package/dist/components/p-84fd3e40.entry.js +1 -0
- package/dist/components/p-85634ad2.entry.js +1 -0
- package/dist/components/{p-7a550385.entry.js → p-8ad05566.entry.js} +1 -1
- package/dist/components/{p-037975af.entry.js → p-8b016d76.entry.js} +1 -1
- package/dist/components/p-8bdf5841.entry.js +1 -0
- package/dist/components/p-8ff39cef.entry.js +1 -0
- package/dist/components/{p-29ad9c73.entry.js → p-a4f552b2.entry.js} +1 -1
- package/dist/components/p-a81cba86.entry.js +1 -0
- package/dist/components/p-abb2ad00.entry.js +1 -0
- package/dist/components/{p-b8ba7e5c.entry.js → p-adbd0d7b.entry.js} +1 -1
- package/dist/components/p-affe2b55.entry.js +1 -0
- package/dist/components/p-b31591db.entry.js +1 -0
- package/dist/components/{p-7db75d62.entry.js → p-b4abff90.entry.js} +1 -1
- package/dist/components/{p-67c72c20.entry.js → p-b50fc0d7.entry.js} +1 -1
- package/dist/components/p-b7efd666.entry.js +1 -0
- package/dist/components/p-ba784274.entry.js +1 -0
- package/dist/components/p-bb9af709.entry.js +1 -0
- package/dist/components/p-bfc62d3e.entry.js +1 -0
- package/dist/components/p-c0b22803.entry.js +1 -0
- package/dist/components/p-cdd491f5.entry.js +1 -0
- package/dist/components/{p-688e07d6.entry.js → p-cde3d7a4.entry.js} +1 -1
- package/dist/components/p-cfccddc3.entry.js +1 -0
- package/dist/components/p-d15065c3.js +1 -0
- package/dist/components/p-d268c96b.entry.js +1 -0
- package/dist/components/p-d437bae2.entry.js +1 -0
- package/dist/components/p-d456e649.entry.js +1 -0
- package/dist/components/p-dae8f66a.entry.js +1 -0
- package/dist/components/p-e1791844.entry.js +1 -0
- package/dist/components/p-e82edd4a.entry.js +1 -0
- package/dist/components/p-e9f608a8.entry.js +1 -0
- package/dist/components/{p-55e3683c.entry.js → p-ea97a94e.entry.js} +1 -1
- package/dist/components/{p-e2b00067.entry.js → p-eac593ee.entry.js} +1 -1
- package/dist/components/p-f26fd186.entry.js +1 -0
- package/dist/components/{p-7ac9881e.entry.js → p-f2c23162.entry.js} +1 -1
- package/dist/components/p-fc4edb18.entry.js +1 -0
- package/dist/components/p-fe1cba17.entry.js +1 -0
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/svg-repository.js +1 -1
- 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 → analytics-d99780e3.js} +2 -2
- package/dist/esm/color-primary-palette_6.entry.js +15 -15
- package/dist/esm/components-section.entry.js +23 -17
- package/dist/esm/components.js +3 -3
- package/dist/esm/correct-use-of-colors.entry.js +2 -2
- package/dist/esm/docs-palettes.entry.js +2 -2
- package/dist/esm/docs-tokens.entry.js +2 -2
- package/dist/esm/eds-accordion.entry.js +3 -3
- package/dist/esm/eds-alert.entry.js +2 -2
- package/dist/esm/eds-app-root.entry.js +2 -2
- package/dist/esm/eds-avatar_34.entry.js +2694 -0
- package/dist/esm/eds-card-project.entry.js +133 -5
- package/dist/esm/eds-card-section.entry.js +1 -1
- package/dist/esm/eds-card-tags.entry.js +1 -1
- package/dist/esm/eds-card-tool.entry.js +3 -3
- package/dist/esm/eds-code-block.entry.js +1 -1
- package/dist/esm/eds-cookies-preference.entry.js +2 -2
- package/dist/esm/eds-feedback.entry.js +7 -2
- package/dist/esm/eds-frame.entry.js +3 -3
- 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-bookmark.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-down.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-left.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-right.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-up.entry.js +1 -1
- package/dist/esm/eds-icon-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-external.entry.js +1 -1
- package/dist/esm/eds-icon-facebook.entry.js +1 -1
- package/dist/esm/eds-icon-gitlab.entry.js +1 -1
- package/dist/esm/eds-icon-linkedin.entry.js +1 -1
- package/dist/esm/eds-icon-loader.entry.js +1 -1
- package/dist/esm/eds-icon-mastodon.entry.js +1 -1
- package/dist/esm/eds-icon-menu.entry.js +1 -1
- package/dist/esm/eds-icon-minus.entry.js +1 -1
- package/dist/esm/eds-icon-more.entry.js +1 -1
- package/dist/esm/eds-icon-paper.entry.js +1 -1
- package/dist/esm/eds-icon-plus.entry.js +1 -1
- package/dist/esm/eds-icon-portal.entry.js +1 -1
- package/dist/esm/eds-icon-private.entry.js +1 -1
- package/dist/esm/eds-icon-public.entry.js +1 -1
- package/dist/esm/eds-icon-search.entry.js +1 -1
- package/dist/esm/eds-icon-star.entry.js +1 -1
- package/dist/esm/eds-icon-success.entry.js +1 -1
- package/dist/esm/eds-icon-thumbs-down.entry.js +1 -1
- package/dist/esm/eds-icon-thumbs-up.entry.js +1 -1
- package/dist/esm/eds-icon-tutorial.entry.js +1 -1
- package/dist/esm/eds-icon-twitter.entry.js +1 -1
- package/dist/esm/eds-icon-unknown.entry.js +1 -1
- package/dist/esm/eds-icon-updown.entry.js +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-matomo-notice.entry.js +10 -8
- package/dist/esm/eds-pagination_2.entry.js +6 -6
- package/dist/esm/eds-progress-bar.entry.js +32 -5
- package/dist/esm/eds-rating.entry.js +2 -2
- package/dist/esm/eds-section-core_2.entry.js +4 -4
- package/dist/esm/eds-spinner.entry.js +2 -2
- package/dist/esm/eds-splash-screen.entry.js +56 -0
- package/dist/esm/eds-switch.entry.js +14 -6
- package/dist/esm/eds-timeline.entry.js +3 -3
- package/dist/esm/eds-toast-manager.entry.js +32 -3
- package/dist/esm/eds-toast.entry.js +5 -4
- package/dist/esm/eds-trl.entry.js +2 -2
- package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
- package/dist/esm/{index-8a71b9a7.js → index-fdb33359.js} +37 -319
- package/dist/esm/loader.js +3 -3
- package/dist/esm/logo-space.entry.js +2 -2
- package/dist/esm/logo-variations-horizontal_2.entry.js +3 -3
- package/dist/esm/logo-variations-tabs.entry.js +2 -2
- package/dist/esm/logo-wrong-usage.entry.js +2 -2
- package/dist/esm/svg-repository.entry.js +2 -2
- package/dist/esm/token-list_3.entry.js +4 -4
- package/dist/esm/token-ratios.entry.js +2 -2
- package/dist/esm/token-typography.entry.js +2 -2
- package/dist/hydrate/index.js +815 -2882
- package/dist/hydrate/index.mjs +815 -2882
- package/dist/types/components/eds-avatar/eds-avatar.d.ts +3 -4
- package/dist/types/components/eds-avatar/eds-avatar.stories.d.ts +2 -1
- package/dist/types/components/eds-block-break/eds-block-break.d.ts +2 -7
- package/dist/types/components/eds-button/eds-button.d.ts +0 -1
- package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.d.ts +0 -5
- package/dist/types/components/eds-charts/eds-gauge/eds-gauge.d.ts +14 -0
- package/dist/types/components/eds-charts/eds-gauge/eds-gauge.stories.d.ts +52 -0
- package/dist/types/components/eds-charts/eds-pie/eds-pie.d.ts +28 -0
- package/dist/types/components/eds-charts/eds-pie/eds-pie.stories.d.ts +60 -0
- package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +18 -116
- package/dist/types/components/eds-input-field/eds-input-field.d.ts +6 -0
- package/dist/types/components/eds-progress-bar/eds-progress-bar.d.ts +3 -3
- package/dist/types/components/eds-progress-bar/eds-progress-bar.stories.d.ts +3 -0
- package/dist/types/components/eds-section/eds-section-core/eds-section-core.d.ts +3 -0
- package/dist/types/components/eds-switch/eds-switch.d.ts +2 -1
- package/dist/types/components/eds-table/eds-table.stories.d.ts +0 -8
- package/dist/types/components/eds-timeline/eds-timeline.d.ts +3 -0
- package/dist/types/components/eds-toast/eds-toast.d.ts +3 -2
- package/dist/types/components/eds-tooltip/eds-tooltip.d.ts +2 -36
- package/dist/types/components.d.ts +211 -241
- package/dist/types/shared-ui/eds-feedback/eds-feedback.d.ts +4 -0
- package/dist/types/shared-ui/eds-feedback/eds-feedback.stories.d.ts +8 -4
- package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +10 -0
- package/dist/types/shared-ui/eds-footer/eds-footer.stories.d.ts +10 -0
- package/dist/types/shared-ui/eds-form/eds-form.d.ts +1 -1
- package/dist/types/shared-ui/eds-header/eds-header.d.ts +5 -24
- package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +6 -3
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +0 -1
- package/dist/types/shared-ui/eds-tabs/eds-tabs.stories.d.ts +0 -1
- package/package.json +14 -4
- package/dist/cjs/color-c00146a8.js +0 -134
- package/dist/cjs/eds-avatar_27.cjs.entry.js +0 -2404
- package/dist/cjs/eds-card-desc_2.cjs.entry.js +0 -78
- package/dist/cjs/eds-card-generic.cjs.entry.js +0 -92
- package/dist/cjs/eds-card-wrapper.cjs.entry.js +0 -32
- package/dist/cjs/eds-login_2.cjs.entry.js +0 -2100
- package/dist/cjs/eds-tabs.cjs.entry.js +0 -130
- package/dist/cjs/eds-tooltip.cjs.entry.js +0 -109
- package/dist/cjs/toastManager-4e9535f3.js +0 -33
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +0 -86
- package/dist/collection/shared-ui/eds-login/eds-login.js +0 -190
- package/dist/components/color.js +0 -132
- package/dist/components/eds-card-wrapper.js +0 -49
- package/dist/components/eds-login.js +0 -6
- package/dist/components/eds-login2.js +0 -2076
- package/dist/components/p-05549a74.entry.js +0 -1
- package/dist/components/p-0e378e0e.entry.js +0 -1
- package/dist/components/p-13efafb9.js +0 -1
- package/dist/components/p-1ec25dc2.entry.js +0 -1
- package/dist/components/p-202f78cc.entry.js +0 -1
- package/dist/components/p-22b76c3c.entry.js +0 -1
- package/dist/components/p-22f9e720.js +0 -1
- package/dist/components/p-24300934.entry.js +0 -1
- package/dist/components/p-25f1cc6c.entry.js +0 -1
- package/dist/components/p-31ca07fd.entry.js +0 -1
- package/dist/components/p-342bc3d8.entry.js +0 -1
- package/dist/components/p-35068b80.entry.js +0 -1
- package/dist/components/p-3950debe.entry.js +0 -1
- package/dist/components/p-3d74d4b1.entry.js +0 -1
- package/dist/components/p-42f19373.entry.js +0 -1
- package/dist/components/p-4ecaedbc.entry.js +0 -1
- package/dist/components/p-5055eb25.entry.js +0 -1
- package/dist/components/p-5646902d.entry.js +0 -1
- package/dist/components/p-5ff68e7d.entry.js +0 -1
- package/dist/components/p-63cc5d3d.entry.js +0 -1
- package/dist/components/p-6506cf52.entry.js +0 -1
- package/dist/components/p-6aa17003.entry.js +0 -1
- package/dist/components/p-6e273e0f.entry.js +0 -1
- package/dist/components/p-6fcb754e.entry.js +0 -1
- package/dist/components/p-70c9af1e.entry.js +0 -1
- package/dist/components/p-7180a36b.entry.js +0 -1
- package/dist/components/p-7351cad3.entry.js +0 -1
- package/dist/components/p-75cc9f9e.entry.js +0 -1
- package/dist/components/p-7a31c31f.entry.js +0 -1
- package/dist/components/p-7cb60f9c.entry.js +0 -1
- package/dist/components/p-8a4d9b9b.entry.js +0 -1
- package/dist/components/p-8b7f5204.entry.js +0 -1
- package/dist/components/p-8db820ef.entry.js +0 -1
- package/dist/components/p-ae4f5e3a.entry.js +0 -1
- package/dist/components/p-b024183c.entry.js +0 -1
- package/dist/components/p-b115c3f1.entry.js +0 -1
- package/dist/components/p-b3a3ae59.entry.js +0 -1
- package/dist/components/p-b4595a9e.entry.js +0 -1
- package/dist/components/p-b817dceb.entry.js +0 -1
- package/dist/components/p-b8ca2127.entry.js +0 -1
- package/dist/components/p-ba6cc102.entry.js +0 -1
- package/dist/components/p-c51b5f04.entry.js +0 -1
- package/dist/components/p-c5a7d2b1.entry.js +0 -1
- package/dist/components/p-c5c782e7.entry.js +0 -1
- package/dist/components/p-c5f98369.entry.js +0 -1
- package/dist/components/p-c604063d.entry.js +0 -1
- package/dist/components/p-c9a19e93.entry.js +0 -1
- package/dist/components/p-cccacbd3.js +0 -2
- package/dist/components/p-d164a75d.entry.js +0 -1
- package/dist/components/p-d4c920fa.entry.js +0 -1
- package/dist/components/p-d82cc261.entry.js +0 -1
- package/dist/components/p-da6e49a9.entry.js +0 -1
- package/dist/components/p-dcd4de1f.entry.js +0 -1
- package/dist/components/p-e8a2d709.entry.js +0 -1
- package/dist/components/p-ea942740.entry.js +0 -1
- package/dist/components/p-eb0b93d5.js +0 -1
- package/dist/components/p-ece20356.entry.js +0 -1
- package/dist/components/p-ed6fd4b8.entry.js +0 -1
- package/dist/components/p-f3822d6b.entry.js +0 -1
- package/dist/components/p-f539febe.entry.js +0 -1
- package/dist/components/p-f7f4b247.entry.js +0 -1
- package/dist/components/p-fdbfa776.entry.js +0 -1
- package/dist/components/p-fe27f4a9.entry.js +0 -1
- package/dist/components/toastManager.js +0 -31
- package/dist/esm/color-2554aad6.js +0 -132
- package/dist/esm/eds-avatar_27.entry.js +0 -2374
- package/dist/esm/eds-card-desc_2.entry.js +0 -73
- package/dist/esm/eds-card-generic.entry.js +0 -88
- package/dist/esm/eds-card-wrapper.entry.js +0 -28
- package/dist/esm/eds-login_2.entry.js +0 -2095
- package/dist/esm/eds-tabs.entry.js +0 -126
- package/dist/esm/eds-tooltip.entry.js +0 -105
- package/dist/esm/toastManager-d9eee791.js +0 -31
- package/dist/types/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.d.ts +0 -23
- package/dist/types/shared-ui/eds-login/eds-login.d.ts +0 -67
- /package/dist/collection/components/eds-section/eds-section-core/{eds-section-core.stories.js → eds-section-core.donotstories.js} +0 -0
- /package/dist/collection/components/eds-timeline/{eds-timeline.stories.js → eds-timeline.donot-stories.js} +0 -0
- /package/dist/types/components/eds-section/eds-section-core/{eds-section-core.stories.d.ts → eds-section-core.donotstories.d.ts} +0 -0
- /package/dist/types/components/eds-timeline/{eds-timeline.stories.d.ts → eds-timeline.donot-stories.d.ts} +0 -0
- /package/dist/types/{components → shared-ui}/eds-steps/eds-steps.d.ts +0 -0
- /package/dist/types/{components → shared-ui}/eds-steps/eds-steps.stories.d.ts +0 -0
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-2f63169d.js');
|
|
6
|
-
const analytics = require('./analytics-d8fb3fdd.js');
|
|
7
|
-
|
|
8
|
-
const edsTooltipCss = ".relative{position:relative}.absolute{position:absolute}.rounded-sm{border-radius:8px}.rounded-xs{border-radius:4px}.bg-stronger{background-color:var(--grey-900)}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.text-default{color:var(--black)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.pointer-events-none{pointer-events:none}.-top-8{top:-0.5rem}.left-1\\/2{left:50%}.z-10{z-index:10}.block{display:block}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y:-100%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.whitespace-nowrap{white-space:nowrap}.py-2{padding-top:0.125rem;padding-bottom:0.125rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.p-4{padding:0.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.p-12{padding:0.75rem}.p-16{padding:1rem}.p-20{padding:1.25rem}";
|
|
9
|
-
const EdsTooltipStyle0 = edsTooltipCss;
|
|
10
|
-
|
|
11
|
-
const EdsTooltip = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.content = undefined;
|
|
15
|
-
this.position = 'above';
|
|
16
|
-
this.isVisible = false;
|
|
17
|
-
this.isPositioned = false;
|
|
18
|
-
this.tooltipStyle = { top: '0px', left: '0px', transform: '' };
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Show the tooltip and update its position.
|
|
22
|
-
*/
|
|
23
|
-
async showTooltip() {
|
|
24
|
-
var _a;
|
|
25
|
-
await this.updateTooltipPosition();
|
|
26
|
-
this.isPositioned = true;
|
|
27
|
-
this.isVisible = true;
|
|
28
|
-
analytics.sendAnalytics({
|
|
29
|
-
category: 'ui-component',
|
|
30
|
-
parentContext: null,
|
|
31
|
-
tag: this.el.tagName.toLowerCase(),
|
|
32
|
-
name: ((_a = this.content) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
33
|
-
action: 'hover'
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Hide the tooltip.
|
|
38
|
-
*/
|
|
39
|
-
hideTooltip() {
|
|
40
|
-
this.isVisible = false;
|
|
41
|
-
this.isPositioned = false; // Reset positioning when hiding
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Hide the tooltip when the `Escape` key is pressed.
|
|
45
|
-
*/
|
|
46
|
-
handleKeyPress(event) {
|
|
47
|
-
if (event.key === 'Escape') {
|
|
48
|
-
this.isVisible = false;
|
|
49
|
-
this.isPositioned = false; // Reset positioning when hiding
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Update the tooltip's position dynamically based on the slotted element's dimensions and position.
|
|
54
|
-
*/
|
|
55
|
-
updateTooltipPosition() {
|
|
56
|
-
var _a, _b;
|
|
57
|
-
const slotElement = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
|
|
58
|
-
if (!slotElement) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
const assignedNodes = (slotElement === null || slotElement === void 0 ? void 0 : slotElement.assignedNodes({ flatten: true })) || [];
|
|
62
|
-
const targetElement = assignedNodes.find((node) => node instanceof HTMLElement);
|
|
63
|
-
if (targetElement) {
|
|
64
|
-
const targetRect = targetElement.getBoundingClientRect();
|
|
65
|
-
const tooltipElement = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('[role="tooltip"]');
|
|
66
|
-
if (tooltipElement) {
|
|
67
|
-
const tooltipWidth = tooltipElement.offsetWidth;
|
|
68
|
-
const tooltipHeight = tooltipElement.offsetHeight;
|
|
69
|
-
// Calculate position based on the preferred `position` prop
|
|
70
|
-
let top = 0;
|
|
71
|
-
let left = 0;
|
|
72
|
-
switch (this.position) {
|
|
73
|
-
case 'above':
|
|
74
|
-
top = window.scrollY - tooltipHeight - 8; // Above with offset
|
|
75
|
-
left = targetRect.left + targetRect.width / 2 - tooltipWidth / 2; // Centered horizontally
|
|
76
|
-
break;
|
|
77
|
-
case 'below':
|
|
78
|
-
top = tooltipHeight - window.scrollY + 18; // Below with offset
|
|
79
|
-
left = targetRect.left + targetRect.width / 2 - tooltipWidth / 2; // Centered horizontally
|
|
80
|
-
break;
|
|
81
|
-
/*case 'left':
|
|
82
|
-
top = targetRect.top - window.scrollY + targetRect.height / 2 - tooltipHeight / 2; // Centered vertically
|
|
83
|
-
left = targetRect.left - tooltipWidth - 8; // To the left with offset
|
|
84
|
-
break;
|
|
85
|
-
case 'right':
|
|
86
|
-
top = targetRect.top - window.scrollY + targetRect.height / 2 - tooltipHeight / 2; // Centered vertically
|
|
87
|
-
left = targetRect.right + 8; // To the right with offset
|
|
88
|
-
break;*/
|
|
89
|
-
}
|
|
90
|
-
this.tooltipStyle = {
|
|
91
|
-
top: `${top}px`,
|
|
92
|
-
left: `${left}px`,
|
|
93
|
-
transform: 'translateX(0)' // No additional horizontal adjustment needed
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
render() {
|
|
99
|
-
return (index.h("div", { key: '7bc92c002eaf263a2d10a2391f356f40e23d5998', class: "relative" }, index.h("slot", { key: 'cc8126196b03fd02bb17701aa4f55d4a406f685a' }), this.isVisible && this.isPositioned && this.content && (index.h("div", { key: '00d854649ef43b958081bbb336319a537c181574', class: "rounded-xs bg-strongest text-inverse f-ui-03-light pointer-events-none absolute z-10 whitespace-nowrap p-6", role: "tooltip", style: {
|
|
100
|
-
top: this.tooltipStyle.top,
|
|
101
|
-
left: this.tooltipStyle.left,
|
|
102
|
-
transform: this.tooltipStyle.transform
|
|
103
|
-
} }, this.content))));
|
|
104
|
-
}
|
|
105
|
-
get el() { return index.getElement(this); }
|
|
106
|
-
};
|
|
107
|
-
EdsTooltip.style = EdsTooltipStyle0;
|
|
108
|
-
|
|
109
|
-
exports.eds_tooltip = EdsTooltip;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class ToastManager {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.toastManagerElement = null;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Initialize the ToastManager with a reference to the `eds-toast-manager` component.
|
|
9
|
-
*/
|
|
10
|
-
init(toastManagerElement) {
|
|
11
|
-
this.toastManagerElement = toastManagerElement;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Display a toast.
|
|
15
|
-
* @param message - The message to display.
|
|
16
|
-
* @param intent - The type of the toast ('success', 'error', 'warning', 'default').
|
|
17
|
-
*/
|
|
18
|
-
show(message, intent = 'default') {
|
|
19
|
-
if (!this.toastManagerElement) {
|
|
20
|
-
// eslint-disable-next-line
|
|
21
|
-
console.error('ToastManager is not initialized. Ensure <eds-toast-manager> is rendered.');
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
const event = new CustomEvent('show-toast', {
|
|
25
|
-
detail: { message, intent }
|
|
26
|
-
});
|
|
27
|
-
this.toastManagerElement.dispatchEvent(event);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
// Export a singleton instance
|
|
31
|
-
const toast = new ToastManager();
|
|
32
|
-
|
|
33
|
-
exports.toast = toast;
|
package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export class EdsCardWrapper {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.tiny = false;
|
|
8
|
-
this.withBg = true;
|
|
9
|
-
this.withHover = true;
|
|
10
|
-
}
|
|
11
|
-
hasSlot(name) {
|
|
12
|
-
if (name) {
|
|
13
|
-
return !!this.el.querySelector(`[slot="${name}"]`);
|
|
14
|
-
}
|
|
15
|
-
return !!this.el.querySelector(':not([slot])');
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
const articleClasses = [
|
|
19
|
-
this.tiny ? 'min-h-120' : 'min-h-156',
|
|
20
|
-
this.withBg ? 'bg-inverse' : 'bg-default',
|
|
21
|
-
this.withHover ? 'effect-shadow hover:shadow-hover cursor-pointer' : '',
|
|
22
|
-
'border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16'
|
|
23
|
-
].join(' ');
|
|
24
|
-
return (h("article", { key: '7a191039487c388e752c964c8fd47fb397943994', class: articleClasses }, h("slot", { key: 'ac497c9f36089467abcb6b52e3e356405616dfd6' }), this.hasSlot('footer') && (h("div", { key: 'eba2425d01514dffa83ec4b4fdfe1878719addd8', class: "mt-auto" }, h("slot", { key: '57f799838be78cdc8b61b9071d68f913b8eef51b', name: "footer" })))));
|
|
25
|
-
}
|
|
26
|
-
static get is() { return "eds-card-wrapper"; }
|
|
27
|
-
static get properties() {
|
|
28
|
-
return {
|
|
29
|
-
"tiny": {
|
|
30
|
-
"type": "boolean",
|
|
31
|
-
"mutable": false,
|
|
32
|
-
"complexType": {
|
|
33
|
-
"original": "boolean",
|
|
34
|
-
"resolved": "boolean",
|
|
35
|
-
"references": {}
|
|
36
|
-
},
|
|
37
|
-
"required": false,
|
|
38
|
-
"optional": false,
|
|
39
|
-
"docs": {
|
|
40
|
-
"tags": [],
|
|
41
|
-
"text": "A boolean that determines whether the card should be displayed with a smaller height.\nIf true, the card will use the 'tiny' height class."
|
|
42
|
-
},
|
|
43
|
-
"attribute": "tiny",
|
|
44
|
-
"reflect": false,
|
|
45
|
-
"defaultValue": "false"
|
|
46
|
-
},
|
|
47
|
-
"withBg": {
|
|
48
|
-
"type": "boolean",
|
|
49
|
-
"mutable": false,
|
|
50
|
-
"complexType": {
|
|
51
|
-
"original": "boolean",
|
|
52
|
-
"resolved": "boolean",
|
|
53
|
-
"references": {}
|
|
54
|
-
},
|
|
55
|
-
"required": false,
|
|
56
|
-
"optional": false,
|
|
57
|
-
"docs": {
|
|
58
|
-
"tags": [],
|
|
59
|
-
"text": "A boolean that determines whether the card should have a background color.\nIf true, the card will have a background, otherwise it will not."
|
|
60
|
-
},
|
|
61
|
-
"attribute": "with-bg",
|
|
62
|
-
"reflect": false,
|
|
63
|
-
"defaultValue": "true"
|
|
64
|
-
},
|
|
65
|
-
"withHover": {
|
|
66
|
-
"type": "boolean",
|
|
67
|
-
"mutable": false,
|
|
68
|
-
"complexType": {
|
|
69
|
-
"original": "boolean",
|
|
70
|
-
"resolved": "boolean",
|
|
71
|
-
"references": {}
|
|
72
|
-
},
|
|
73
|
-
"required": false,
|
|
74
|
-
"optional": false,
|
|
75
|
-
"docs": {
|
|
76
|
-
"tags": [],
|
|
77
|
-
"text": "A boolean that determines whether the card should display a hover effect.\nIf true, the card will have a shadow effect and change its cursor on hover."
|
|
78
|
-
},
|
|
79
|
-
"attribute": "with-hover",
|
|
80
|
-
"reflect": false,
|
|
81
|
-
"defaultValue": "true"
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
static get elementRef() { return "el"; }
|
|
86
|
-
}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { login, logout, isAuthenticated, getUser, initKeycloak, checkServerAvailability } from "../../utils/keycloak";
|
|
3
|
-
import { toast } from "../../utils/toastManager";
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export class EdsLogin {
|
|
8
|
-
constructor() {
|
|
9
|
-
/**
|
|
10
|
-
* Handles user login by invoking the Keycloak `login` function.
|
|
11
|
-
* Only triggers login if the user is not already authenticated.
|
|
12
|
-
*/
|
|
13
|
-
this.handleLogin = async () => {
|
|
14
|
-
if (!this.authenticated) {
|
|
15
|
-
try {
|
|
16
|
-
await login();
|
|
17
|
-
}
|
|
18
|
-
catch (error) {
|
|
19
|
-
toast.show(error.message, 'error');
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Handles user logout by invoking the Keycloak `logout` function.
|
|
25
|
-
* Resets the `authenticated` state to `false` after logout.
|
|
26
|
-
*/
|
|
27
|
-
this.handleLogout = async () => {
|
|
28
|
-
try {
|
|
29
|
-
await logout();
|
|
30
|
-
}
|
|
31
|
-
catch (error) {
|
|
32
|
-
toast.show(error.message, 'error');
|
|
33
|
-
}
|
|
34
|
-
this.authenticated = false;
|
|
35
|
-
this.user = null;
|
|
36
|
-
};
|
|
37
|
-
this.keycloakUrl = undefined;
|
|
38
|
-
this.keycloakRealm = undefined;
|
|
39
|
-
this.keycloakClientId = undefined;
|
|
40
|
-
this.authenticated = false;
|
|
41
|
-
this.user = null;
|
|
42
|
-
this.serverAvailable = false;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Lifecycle method that runs when the component is about to load.
|
|
46
|
-
* It initializes authentication by calling the `initAuth` method.
|
|
47
|
-
*/
|
|
48
|
-
async componentWillLoad() {
|
|
49
|
-
// Check if required props are provided (optional check)
|
|
50
|
-
if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
|
|
51
|
-
// eslint-disable-next-line
|
|
52
|
-
console.error('Keycloak configuration props are missing.');
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
this.serverAvailable = await checkServerAvailability(`${this.keycloakUrl}/realms/${this.keycloakRealm}`);
|
|
56
|
-
if (!this.serverAvailable) {
|
|
57
|
-
toast.show('Keycloak server is unavailable.', 'error');
|
|
58
|
-
return; // Do not proceed further
|
|
59
|
-
}
|
|
60
|
-
await this.initAuth();
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Initializes the Keycloak authentication by configuring Keycloak with the provided props.
|
|
64
|
-
* Sets the `authenticated` state and `user` data if the user is authenticated.
|
|
65
|
-
* Emits `authStatusChanged` event with the authentication status.
|
|
66
|
-
*/
|
|
67
|
-
async initAuth() {
|
|
68
|
-
try {
|
|
69
|
-
const res = await initKeycloak({
|
|
70
|
-
url: this.keycloakUrl,
|
|
71
|
-
realm: this.keycloakRealm,
|
|
72
|
-
clientId: this.keycloakClientId
|
|
73
|
-
}, true);
|
|
74
|
-
this.keycloak.emit({
|
|
75
|
-
init: res
|
|
76
|
-
});
|
|
77
|
-
if (isAuthenticated()) {
|
|
78
|
-
this.user = getUser();
|
|
79
|
-
this.authenticated = true;
|
|
80
|
-
this.auth.emit({
|
|
81
|
-
authenticated: this.authenticated,
|
|
82
|
-
user: this.user
|
|
83
|
-
}); // Emit auth status change
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
catch (error) {
|
|
87
|
-
toast.show(error.message, 'error');
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
render() {
|
|
91
|
-
return (h("div", { key: '041846174aaad541acce03588a087793d10daa1e', class: "block" }, !this.authenticated && (h("eds-button", { key: '360a84ec79a15c9293e3898b77df649c469d9529', label: "Login", intent: "primary", "extra-class": "text-default", "aria-label": "Login", triggerClick: this.handleLogin.bind(this) }))));
|
|
92
|
-
}
|
|
93
|
-
static get is() { return "eds-login"; }
|
|
94
|
-
static get encapsulation() { return "shadow"; }
|
|
95
|
-
static get properties() {
|
|
96
|
-
return {
|
|
97
|
-
"keycloakUrl": {
|
|
98
|
-
"type": "string",
|
|
99
|
-
"mutable": false,
|
|
100
|
-
"complexType": {
|
|
101
|
-
"original": "string",
|
|
102
|
-
"resolved": "string",
|
|
103
|
-
"references": {}
|
|
104
|
-
},
|
|
105
|
-
"required": false,
|
|
106
|
-
"optional": false,
|
|
107
|
-
"docs": {
|
|
108
|
-
"tags": [],
|
|
109
|
-
"text": "The URL of the Keycloak server.\nThis is the base URL where your Keycloak instance is hosted."
|
|
110
|
-
},
|
|
111
|
-
"attribute": "keycloak-url",
|
|
112
|
-
"reflect": false
|
|
113
|
-
},
|
|
114
|
-
"keycloakRealm": {
|
|
115
|
-
"type": "string",
|
|
116
|
-
"mutable": false,
|
|
117
|
-
"complexType": {
|
|
118
|
-
"original": "string",
|
|
119
|
-
"resolved": "string",
|
|
120
|
-
"references": {}
|
|
121
|
-
},
|
|
122
|
-
"required": false,
|
|
123
|
-
"optional": false,
|
|
124
|
-
"docs": {
|
|
125
|
-
"tags": [],
|
|
126
|
-
"text": "The Keycloak Realm.\nA realm in Keycloak is a space where you manage a set of users, roles,\ngroups, and credentials."
|
|
127
|
-
},
|
|
128
|
-
"attribute": "keycloak-realm",
|
|
129
|
-
"reflect": false
|
|
130
|
-
},
|
|
131
|
-
"keycloakClientId": {
|
|
132
|
-
"type": "string",
|
|
133
|
-
"mutable": false,
|
|
134
|
-
"complexType": {
|
|
135
|
-
"original": "string",
|
|
136
|
-
"resolved": "string",
|
|
137
|
-
"references": {}
|
|
138
|
-
},
|
|
139
|
-
"required": false,
|
|
140
|
-
"optional": false,
|
|
141
|
-
"docs": {
|
|
142
|
-
"tags": [],
|
|
143
|
-
"text": "The Keycloak Client ID.\nThe client ID represents the client application that Keycloak protects.\nIt's configured in the Keycloak admin console and used to identify the app\nrequesting authentication.\nExample: `my-client-app`"
|
|
144
|
-
},
|
|
145
|
-
"attribute": "keycloak-client-id",
|
|
146
|
-
"reflect": false
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
static get states() {
|
|
151
|
-
return {
|
|
152
|
-
"authenticated": {},
|
|
153
|
-
"user": {},
|
|
154
|
-
"serverAvailable": {}
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
static get events() {
|
|
158
|
-
return [{
|
|
159
|
-
"method": "keycloak",
|
|
160
|
-
"name": "keycloak",
|
|
161
|
-
"bubbles": true,
|
|
162
|
-
"cancelable": true,
|
|
163
|
-
"composed": true,
|
|
164
|
-
"docs": {
|
|
165
|
-
"tags": [],
|
|
166
|
-
"text": "Event emitted when the initKeycloak status changes."
|
|
167
|
-
},
|
|
168
|
-
"complexType": {
|
|
169
|
-
"original": "{ init: boolean }",
|
|
170
|
-
"resolved": "{ init: boolean; }",
|
|
171
|
-
"references": {}
|
|
172
|
-
}
|
|
173
|
-
}, {
|
|
174
|
-
"method": "auth",
|
|
175
|
-
"name": "auth",
|
|
176
|
-
"bubbles": true,
|
|
177
|
-
"cancelable": true,
|
|
178
|
-
"composed": true,
|
|
179
|
-
"docs": {
|
|
180
|
-
"tags": [],
|
|
181
|
-
"text": "Event emitted when the authentication status changes.\nIt emits an object {authenticated, user} indicating the new authentication status and the user's information."
|
|
182
|
-
},
|
|
183
|
-
"complexType": {
|
|
184
|
-
"original": "{\n authenticated: boolean;\n user: any;\n }",
|
|
185
|
-
"resolved": "{ authenticated: boolean; user: any; }",
|
|
186
|
-
"references": {}
|
|
187
|
-
}
|
|
188
|
-
}];
|
|
189
|
-
}
|
|
190
|
-
}
|
package/dist/components/color.js
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { c as cva } from './index2.js';
|
|
2
|
-
|
|
3
|
-
const GRADIANT_TOKENS = ['green', 'yellow', 'among-blue', 'purple'];
|
|
4
|
-
const gradientBGColorVariants = cva([], {
|
|
5
|
-
variants: {
|
|
6
|
-
color: GRADIANT_TOKENS.reduce((acc, token) => (Object.assign(Object.assign({}, acc), { [token]: '' })), {}),
|
|
7
|
-
direction: {
|
|
8
|
-
top: '',
|
|
9
|
-
bottom: ''
|
|
10
|
-
},
|
|
11
|
-
pseudo: {
|
|
12
|
-
true: 'before:effect-opacity effect-bg-behind',
|
|
13
|
-
false: ''
|
|
14
|
-
},
|
|
15
|
-
hover: {
|
|
16
|
-
true: 'before:opacity-0 hover:before:opacity-100',
|
|
17
|
-
false: ''
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
compoundVariants: [
|
|
21
|
-
// region GREEN
|
|
22
|
-
{
|
|
23
|
-
color: 'green',
|
|
24
|
-
direction: 'top',
|
|
25
|
-
pseudo: true,
|
|
26
|
-
className: 'before:bg-gradient-01-top'
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
color: 'green',
|
|
30
|
-
pseudo: true,
|
|
31
|
-
direction: 'bottom',
|
|
32
|
-
className: 'before:bg-gradient-01-bottom'
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
color: 'green',
|
|
36
|
-
direction: 'top',
|
|
37
|
-
pseudo: false,
|
|
38
|
-
className: 'bg-gradient-01-top'
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
color: 'green',
|
|
42
|
-
pseudo: false,
|
|
43
|
-
direction: 'bottom',
|
|
44
|
-
className: 'bg-gradient-01-bottom'
|
|
45
|
-
},
|
|
46
|
-
// endregion
|
|
47
|
-
// region YELLOW
|
|
48
|
-
{
|
|
49
|
-
color: 'yellow',
|
|
50
|
-
direction: 'top',
|
|
51
|
-
pseudo: true,
|
|
52
|
-
className: 'before:bg-gradient-02-top'
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
color: 'yellow',
|
|
56
|
-
direction: 'bottom',
|
|
57
|
-
pseudo: true,
|
|
58
|
-
className: 'before:bg-gradient-02-bottom'
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
color: 'yellow',
|
|
62
|
-
direction: 'top',
|
|
63
|
-
pseudo: false,
|
|
64
|
-
className: 'bg-gradient-02-top'
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
color: 'yellow',
|
|
68
|
-
direction: 'bottom',
|
|
69
|
-
pseudo: false,
|
|
70
|
-
className: 'bg-gradient-02-bottom'
|
|
71
|
-
},
|
|
72
|
-
// endregion
|
|
73
|
-
// region PURPLE
|
|
74
|
-
{
|
|
75
|
-
color: 'purple',
|
|
76
|
-
direction: 'top',
|
|
77
|
-
pseudo: true,
|
|
78
|
-
class: 'before:bg-gradient-03-top'
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
color: 'purple',
|
|
82
|
-
direction: 'bottom',
|
|
83
|
-
pseudo: true,
|
|
84
|
-
class: 'before:bg-gradient-03-bottom'
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
color: 'purple',
|
|
88
|
-
direction: 'top',
|
|
89
|
-
pseudo: false,
|
|
90
|
-
class: 'bg-gradient-03-top'
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
color: 'purple',
|
|
94
|
-
direction: 'bottom',
|
|
95
|
-
pseudo: false,
|
|
96
|
-
class: 'bg-gradient-03-bottom'
|
|
97
|
-
},
|
|
98
|
-
// endregion
|
|
99
|
-
// region AMONG-BLUE
|
|
100
|
-
{
|
|
101
|
-
color: 'among-blue',
|
|
102
|
-
direction: 'top',
|
|
103
|
-
pseudo: true,
|
|
104
|
-
class: 'before:bg-gradient-04-top'
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
color: 'among-blue',
|
|
108
|
-
direction: 'bottom',
|
|
109
|
-
pseudo: true,
|
|
110
|
-
class: 'before:bg-gradient-04-bottom'
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
color: 'among-blue',
|
|
114
|
-
direction: 'top',
|
|
115
|
-
pseudo: false,
|
|
116
|
-
class: 'bg-gradient-04-top'
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
color: 'among-blue',
|
|
120
|
-
direction: 'bottom',
|
|
121
|
-
pseudo: false,
|
|
122
|
-
class: 'bg-gradient-04-bottom'
|
|
123
|
-
}
|
|
124
|
-
// endregion
|
|
125
|
-
],
|
|
126
|
-
defaultVariants: {
|
|
127
|
-
direction: 'top',
|
|
128
|
-
pseudo: true
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
export { gradientBGColorVariants as g };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const EdsCardWrapper$1 = /*@__PURE__*/ proxyCustomElement(class EdsCardWrapper extends HTMLElement {
|
|
4
|
-
constructor() {
|
|
5
|
-
super();
|
|
6
|
-
this.__registerHost();
|
|
7
|
-
this.tiny = false;
|
|
8
|
-
this.withBg = true;
|
|
9
|
-
this.withHover = true;
|
|
10
|
-
}
|
|
11
|
-
hasSlot(name) {
|
|
12
|
-
if (name) {
|
|
13
|
-
return !!this.el.querySelector(`[slot="${name}"]`);
|
|
14
|
-
}
|
|
15
|
-
return !!this.el.querySelector(':not([slot])');
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
const articleClasses = [
|
|
19
|
-
this.tiny ? 'min-h-120' : 'min-h-156',
|
|
20
|
-
this.withBg ? 'bg-inverse' : 'bg-default',
|
|
21
|
-
this.withHover ? 'effect-shadow hover:shadow-hover cursor-pointer' : '',
|
|
22
|
-
'border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16'
|
|
23
|
-
].join(' ');
|
|
24
|
-
return (h("article", { key: '7a191039487c388e752c964c8fd47fb397943994', class: articleClasses }, h("slot", { key: 'ac497c9f36089467abcb6b52e3e356405616dfd6' }), this.hasSlot('footer') && (h("div", { key: 'eba2425d01514dffa83ec4b4fdfe1878719addd8', class: "mt-auto" }, h("slot", { key: '57f799838be78cdc8b61b9071d68f913b8eef51b', name: "footer" })))));
|
|
25
|
-
}
|
|
26
|
-
get el() { return this; }
|
|
27
|
-
}, [4, "eds-card-wrapper", {
|
|
28
|
-
"tiny": [4],
|
|
29
|
-
"withBg": [4, "with-bg"],
|
|
30
|
-
"withHover": [4, "with-hover"]
|
|
31
|
-
}]);
|
|
32
|
-
function defineCustomElement$1() {
|
|
33
|
-
if (typeof customElements === "undefined") {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const components = ["eds-card-wrapper"];
|
|
37
|
-
components.forEach(tagName => { switch (tagName) {
|
|
38
|
-
case "eds-card-wrapper":
|
|
39
|
-
if (!customElements.get(tagName)) {
|
|
40
|
-
customElements.define(tagName, EdsCardWrapper$1);
|
|
41
|
-
}
|
|
42
|
-
break;
|
|
43
|
-
} });
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const EdsCardWrapper = EdsCardWrapper$1;
|
|
47
|
-
const defineCustomElement = defineCustomElement$1;
|
|
48
|
-
|
|
49
|
-
export { EdsCardWrapper, defineCustomElement };
|