@ebrains/components 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
- package/dist/cjs/components-section.cjs.entry.js +3 -5
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/docs-palettes.cjs.entry.js +1 -1
- package/dist/cjs/docs-tokens.cjs.entry.js +1 -1
- package/dist/cjs/download-9d17d025.js +20 -0
- package/dist/cjs/{eds-accordion_33.cjs.entry.js → eds-accordion_34.cjs.entry.js} +176 -92
- package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +1 -1
- package/dist/cjs/eds-feedback.cjs.entry.js +1 -1
- package/dist/cjs/eds-footer.cjs.entry.js +2 -4
- package/dist/cjs/eds-frame.cjs.entry.js +1 -1
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +8 -3
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-download.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-draft.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-edit.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-external.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-loader.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-minus.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-paper.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-plus.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-portal.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-private.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-public.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-star.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-start.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-tutorial.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-updown.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-view.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
- package/dist/cjs/eds-modal.cjs.entry.js +2 -2
- package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
- package/dist/cjs/eds-social-networks.cjs.entry.js +2 -4
- package/dist/cjs/eds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
- package/dist/cjs/eds-toast-manager.cjs.entry.js +1 -1
- package/dist/cjs/eds-trl.cjs.entry.js +1 -1
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/index-0249a32e.js +6 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/logo-space.cjs.entry.js +1 -1
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +2 -2
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +1 -1
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +1 -1
- package/dist/cjs/svg-repository.cjs.entry.js +3 -19
- package/dist/cjs/token-list_3.cjs.entry.js +3 -3
- package/dist/cjs/token-ratios.cjs.entry.js +1 -1
- package/dist/cjs/token-spacing.cjs.entry.js +1 -1
- package/dist/cjs/token-typography.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/eds-icons/eds-icon-download/eds-icon-download.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-draft/eds-icon-draft.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-edit/eds-icon-edit.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-start/eds-icon-start.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-view/eds-icon-view.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
- package/dist/collection/components/eds-img/eds-img.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +2 -2
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- package/dist/collection/components/eds-link/eds-link.js +1 -1
- package/dist/collection/components/eds-logo/eds-logo.js +1 -1
- package/dist/collection/components/eds-modal/eds-modal.js +2 -2
- package/dist/collection/components/eds-nps/eds-nps.js +4 -4
- package/dist/collection/components/eds-pagination/eds-pagination.css +12 -0
- package/dist/collection/components/eds-pagination/eds-pagination.js +2 -2
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
- package/dist/collection/components/eds-rating/eds-rating.js +2 -2
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
- package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
- package/dist/collection/components/eds-switch/eds-switch.js +2 -2
- package/dist/collection/components/eds-table/eds-table.css +4 -0
- package/dist/collection/components/eds-table/eds-table.js +8 -6
- package/dist/collection/components/eds-tag/eds-tag.js +1 -1
- package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.css +5 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +2 -2
- package/dist/collection/components/eds-trl/eds-trl.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
- package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/functional/overview.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
- package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +1 -1
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +7 -6
- package/dist/collection/shared-ui/eds-form/eds-form.css +72 -0
- package/dist/collection/shared-ui/eds-form/eds-form.js +87 -4
- package/dist/collection/shared-ui/eds-form/eds-form.stories.js +32 -3
- package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +50 -16
- package/dist/collection/shared-ui/eds-header/eds-header.js +1 -1
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +20 -8
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.css +0 -20
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -3
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +6 -7
- package/dist/collection/shared-ui/eds-steps/eds-steps.css +136 -92
- package/dist/collection/shared-ui/eds-steps/eds-steps.js +234 -40
- package/dist/collection/shared-ui/eds-steps/eds-steps.stories.js +71 -7
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +44 -33
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +195 -19
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.stories.js +65 -4
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +2 -2
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/shared-ui/eds-user/eds-user.js +35 -1
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/collection/utils/eds-form/formValidators.js +4 -3
- package/dist/components/components-section.js +3 -5
- package/dist/components/components.css +0 -3
- 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/download.js +18 -0
- package/dist/components/eds-app-root.js +1 -1
- package/dist/components/eds-cookies-preference.js +1 -1
- package/dist/components/eds-feedback.js +1 -1
- package/dist/components/eds-footer2.js +2 -4
- package/dist/components/eds-form.js +26 -8
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-fullscreen-menu.js +8 -3
- package/dist/components/eds-header.js +1 -1
- package/dist/components/eds-icon-bluesky.js +1 -1
- package/dist/components/eds-icon-download.d.ts +11 -0
- package/dist/components/eds-icon-download.js +33 -0
- package/dist/components/eds-icon-draft.js +1 -1
- package/dist/components/eds-icon-edit.js +1 -1
- package/dist/components/eds-icon-eu.js +1 -1
- package/dist/components/eds-icon-external.js +1 -1
- package/dist/components/eds-icon-facebook.js +1 -1
- package/dist/components/eds-icon-gitlab.js +1 -1
- package/dist/components/eds-icon-linkedin.js +1 -1
- package/dist/components/eds-icon-loader.js +1 -1
- package/dist/components/eds-icon-mastodon.js +1 -1
- package/dist/components/eds-icon-menu.js +1 -1
- package/dist/components/eds-icon-minus.js +1 -1
- package/dist/components/eds-icon-more.js +1 -1
- package/dist/components/eds-icon-paper.js +1 -1
- package/dist/components/eds-icon-plus.js +1 -1
- package/dist/components/eds-icon-portal.js +1 -1
- package/dist/components/eds-icon-private.js +1 -1
- package/dist/components/eds-icon-public.js +1 -1
- package/dist/components/eds-icon-search.js +1 -1
- package/dist/components/eds-icon-star.js +1 -1
- package/dist/components/eds-icon-start.js +1 -1
- package/dist/components/eds-icon-success.js +1 -1
- package/dist/components/eds-icon-thumbs-down.js +1 -1
- package/dist/components/eds-icon-thumbs-up.js +1 -1
- package/dist/components/eds-icon-tutorial.js +1 -1
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-unknown.js +1 -1
- package/dist/components/eds-icon-updown.js +1 -1
- package/dist/components/eds-icon-user.js +1 -1
- package/dist/components/eds-icon-view.js +1 -1
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +2 -2
- package/dist/components/eds-input-field2.js +2 -2
- package/dist/components/eds-input-footer2.js +1 -1
- package/dist/components/eds-input-label2.js +1 -1
- package/dist/components/eds-input-range2.js +1 -1
- package/dist/components/eds-input-search2.js +1 -1
- package/dist/components/eds-input-select2.js +2 -2
- package/dist/components/eds-input2.js +2 -2
- package/dist/components/eds-link2.js +1 -1
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-modal.js +2 -2
- package/dist/components/eds-nps2.js +4 -4
- package/dist/components/eds-pagination2.js +3 -3
- package/dist/components/eds-progress-bar2.js +1 -1
- package/dist/components/eds-rating2.js +2 -2
- package/dist/components/eds-section-core2.js +1 -1
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-social-networks2.js +2 -4
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-steps-v2.js +35 -13
- package/dist/components/eds-steps2.js +54 -35
- package/dist/components/eds-switch.js +2 -2
- package/dist/components/eds-table2.js +36 -28
- package/dist/components/eds-tabs.js +2 -2
- package/dist/components/eds-tag2.js +1 -1
- package/dist/components/eds-timeline.js +1 -1
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-tooltip.js +1 -50
- package/dist/components/eds-tooltip2.js +52 -0
- package/dist/components/eds-trl.js +33 -27
- package/dist/components/eds-user.js +10 -2
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/logo-space.js +31 -25
- package/dist/components/logo-variations-horizontal2.js +1 -1
- package/dist/components/logo-variations-tabs.js +1 -1
- package/dist/components/logo-variations-vertical2.js +1 -1
- package/dist/components/logo-wrong-usage.js +1 -1
- package/dist/components/p-0452fe52.entry.js +1 -0
- package/dist/components/p-04f288b1.entry.js +1 -0
- package/dist/components/p-06951aa3.entry.js +1 -0
- package/dist/components/p-0da7d1c9.js +1 -0
- package/dist/components/p-101392d0.entry.js +1 -0
- package/dist/components/p-171f8e6b.entry.js +1 -0
- package/dist/components/{p-d95d7353.entry.js → p-1b032aa8.entry.js} +1 -1
- package/dist/components/p-28ec52a7.entry.js +1 -0
- package/dist/components/p-2f712656.entry.js +1 -0
- package/dist/components/p-3097c321.entry.js +1 -0
- package/dist/components/p-36db7db0.entry.js +1 -0
- package/dist/components/p-38b0ea8d.entry.js +1 -0
- package/dist/components/p-3b551ade.entry.js +9 -0
- package/dist/components/p-3fa4a703.entry.js +1 -0
- package/dist/components/p-3fa54526.entry.js +1 -0
- package/dist/components/p-42680319.entry.js +1 -0
- package/dist/components/{p-2ef4dd11.entry.js → p-4c618a35.entry.js} +1 -1
- package/dist/components/p-4d207d0e.entry.js +1 -0
- package/dist/components/p-4db384d9.entry.js +1 -0
- package/dist/components/{p-e210ddbb.entry.js → p-50d7eed9.entry.js} +1 -1
- package/dist/components/{p-5f348b0e.entry.js → p-5479e43b.entry.js} +1 -1
- package/dist/components/{p-8627afc0.entry.js → p-58c8c0d7.entry.js} +1 -1
- package/dist/components/p-5a88cdc2.entry.js +1 -0
- package/dist/components/p-5b574bb2.entry.js +1 -0
- package/dist/components/p-5ec9fc29.entry.js +1 -0
- package/dist/components/p-5f350866.entry.js +1 -0
- package/dist/components/p-5ff10b6f.entry.js +1 -0
- package/dist/components/p-6420754e.entry.js +1 -0
- package/dist/components/p-68a2cd95.entry.js +1 -0
- package/dist/components/{p-706a106c.entry.js → p-6a2d1e11.entry.js} +1 -1
- package/dist/components/{p-e5892379.entry.js → p-7032a73b.entry.js} +1 -1
- package/dist/components/p-7272628d.entry.js +1 -0
- package/dist/components/p-78c348e2.entry.js +1 -0
- package/dist/components/p-870001ee.entry.js +1 -0
- package/dist/components/p-88eeaeca.entry.js +1 -0
- package/dist/components/p-8b7910d2.entry.js +1 -0
- package/dist/components/{p-2e0c3fc4.entry.js → p-8eced026.entry.js} +1 -1
- package/dist/components/{p-b88a2267.entry.js → p-8edd07db.entry.js} +1 -1
- package/dist/components/p-8ef68d8a.entry.js +1 -0
- package/dist/components/p-8fb1eb43.entry.js +1 -0
- package/dist/components/{p-1d18106d.entry.js → p-94a223ec.entry.js} +1 -1
- package/dist/components/{p-b9a1aba3.entry.js → p-a5fd4fc9.entry.js} +1 -1
- package/dist/components/p-a6586448.entry.js +1 -0
- package/dist/components/p-ad7d603b.entry.js +1 -0
- package/dist/components/p-b24ef7f7.entry.js +1 -0
- package/dist/components/p-baa2df0b.entry.js +1 -0
- package/dist/components/p-bfe9d934.entry.js +1 -0
- package/dist/components/p-c1943b8f.entry.js +1 -0
- package/dist/components/{p-7a3f2576.entry.js → p-c66f4dd8.entry.js} +1 -1
- package/dist/components/{p-743f9f8f.entry.js → p-d3391236.entry.js} +1 -1
- package/dist/components/p-da0e9a75.entry.js +1 -0
- package/dist/components/p-dbe11048.entry.js +1 -0
- package/dist/components/{p-4c84fcf4.entry.js → p-dd28ab38.entry.js} +1 -1
- package/dist/components/p-e42ac312.entry.js +1 -0
- package/dist/components/{p-9f0a34b4.entry.js → p-e6c3f38c.entry.js} +1 -1
- package/dist/components/p-e7c37e5b.entry.js +1 -0
- package/dist/components/p-e9cd3c4b.entry.js +1 -0
- package/dist/components/p-ebd59113.entry.js +1 -0
- package/dist/components/p-f092b706.entry.js +1 -0
- package/dist/components/p-f29e7506.entry.js +1 -0
- package/dist/components/p-fc099d59.entry.js +1 -0
- package/dist/components/p-fda3da92.entry.js +1 -0
- package/dist/components/{p-67ec46b4.entry.js → p-ff902c98.entry.js} +1 -1
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/svg-repository.js +32 -42
- 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-primary-palette_6.entry.js +14 -14
- package/dist/esm/components-section.entry.js +3 -5
- package/dist/esm/components.js +1 -1
- package/dist/esm/correct-use-of-colors.entry.js +1 -1
- package/dist/esm/docs-palettes.entry.js +1 -1
- package/dist/esm/docs-tokens.entry.js +1 -1
- package/dist/esm/download-47746956.js +18 -0
- package/dist/esm/{eds-accordion_33.entry.js → eds-accordion_34.entry.js} +176 -93
- package/dist/esm/eds-app-root.entry.js +1 -1
- package/dist/esm/eds-cookies-preference.entry.js +1 -1
- package/dist/esm/eds-feedback.entry.js +1 -1
- package/dist/esm/eds-footer.entry.js +2 -4
- package/dist/esm/eds-frame.entry.js +1 -1
- package/dist/esm/eds-fullscreen-menu.entry.js +8 -3
- package/dist/esm/eds-icon-bluesky.entry.js +1 -1
- package/dist/esm/eds-icon-download.entry.js +14 -0
- package/dist/esm/eds-icon-draft.entry.js +1 -1
- package/dist/esm/eds-icon-edit.entry.js +1 -1
- package/dist/esm/eds-icon-eu.entry.js +1 -1
- package/dist/esm/eds-icon-external.entry.js +1 -1
- package/dist/esm/eds-icon-facebook.entry.js +1 -1
- package/dist/esm/eds-icon-gitlab.entry.js +1 -1
- package/dist/esm/eds-icon-linkedin.entry.js +1 -1
- package/dist/esm/eds-icon-loader.entry.js +1 -1
- package/dist/esm/eds-icon-mastodon.entry.js +1 -1
- package/dist/esm/eds-icon-menu.entry.js +1 -1
- package/dist/esm/eds-icon-minus.entry.js +1 -1
- package/dist/esm/eds-icon-more.entry.js +1 -1
- package/dist/esm/eds-icon-paper.entry.js +1 -1
- package/dist/esm/eds-icon-plus.entry.js +1 -1
- package/dist/esm/eds-icon-portal.entry.js +1 -1
- package/dist/esm/eds-icon-private.entry.js +1 -1
- package/dist/esm/eds-icon-public.entry.js +1 -1
- package/dist/esm/eds-icon-search.entry.js +1 -1
- package/dist/esm/eds-icon-star.entry.js +1 -1
- package/dist/esm/eds-icon-start.entry.js +1 -1
- package/dist/esm/eds-icon-success.entry.js +1 -1
- package/dist/esm/eds-icon-thumbs-down.entry.js +1 -1
- package/dist/esm/eds-icon-thumbs-up.entry.js +1 -1
- package/dist/esm/eds-icon-tutorial.entry.js +1 -1
- package/dist/esm/eds-icon-twitter.entry.js +1 -1
- package/dist/esm/eds-icon-unknown.entry.js +1 -1
- package/dist/esm/eds-icon-updown.entry.js +1 -1
- package/dist/esm/eds-icon-user.entry.js +1 -1
- package/dist/esm/eds-icon-view.entry.js +1 -1
- package/dist/esm/eds-icon-youtube.entry.js +1 -1
- package/dist/esm/eds-modal.entry.js +2 -2
- package/dist/esm/eds-progress-bar.entry.js +1 -1
- package/dist/esm/eds-section-core_2.entry.js +3 -3
- package/dist/esm/eds-social-networks.entry.js +2 -4
- package/dist/esm/eds-spinner.entry.js +1 -1
- package/dist/esm/eds-timeline.entry.js +1 -1
- package/dist/esm/eds-toast-manager.entry.js +1 -1
- package/dist/esm/eds-trl.entry.js +1 -1
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/index-e84b871c.js +6 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/logo-space.entry.js +1 -1
- package/dist/esm/logo-variations-horizontal_2.entry.js +2 -2
- package/dist/esm/logo-variations-tabs.entry.js +1 -1
- package/dist/esm/logo-wrong-usage.entry.js +1 -1
- package/dist/esm/svg-repository.entry.js +2 -18
- package/dist/esm/token-list_3.entry.js +3 -3
- package/dist/esm/token-ratios.entry.js +1 -1
- package/dist/esm/token-spacing.entry.js +1 -1
- package/dist/esm/token-typography.entry.js +1 -1
- package/dist/hydrate/index.js +281 -189
- package/dist/hydrate/index.mjs +281 -189
- package/dist/types/components/eds-icons/eds-icon-download/eds-icon-download.d.ts +10 -0
- package/dist/types/components/eds-table/eds-table.d.ts +20 -4
- package/dist/types/components.d.ts +288 -29
- package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +4 -2
- package/dist/types/shared-ui/eds-form/eds-form.d.ts +17 -0
- package/dist/types/shared-ui/eds-form/eds-form.stories.d.ts +19 -0
- package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +44 -13
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +11 -3
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +0 -2
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +1 -1
- package/dist/types/shared-ui/eds-steps/eds-steps.d.ts +72 -24
- package/dist/types/shared-ui/eds-steps/eds-steps.stories.d.ts +58 -0
- package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.d.ts +42 -19
- package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.stories.d.ts +33 -0
- package/dist/types/shared-ui/eds-user/eds-user.d.ts +5 -0
- package/package.json +1 -1
- package/dist/cjs/eds-tooltip.cjs.entry.js +0 -38
- package/dist/components/p-05654483.entry.js +0 -1
- package/dist/components/p-09079c5c.entry.js +0 -1
- package/dist/components/p-10997947.entry.js +0 -1
- package/dist/components/p-1ab1ea29.entry.js +0 -1
- package/dist/components/p-1bcf743d.entry.js +0 -1
- package/dist/components/p-3360e1e2.entry.js +0 -1
- package/dist/components/p-38bc21e9.entry.js +0 -1
- package/dist/components/p-3b29e0fd.entry.js +0 -1
- package/dist/components/p-42457a0f.entry.js +0 -1
- package/dist/components/p-4a6a72db.entry.js +0 -1
- package/dist/components/p-4b33909d.entry.js +0 -1
- package/dist/components/p-4bf4bc93.entry.js +0 -1
- package/dist/components/p-547a53d6.entry.js +0 -1
- package/dist/components/p-560fc3a4.entry.js +0 -1
- package/dist/components/p-5a58f1c1.entry.js +0 -1
- package/dist/components/p-5b55f951.entry.js +0 -1
- package/dist/components/p-5ba49cf2.entry.js +0 -1
- package/dist/components/p-5dd85979.entry.js +0 -1
- package/dist/components/p-634b6ca2.entry.js +0 -1
- package/dist/components/p-6cd6ff0c.entry.js +0 -1
- package/dist/components/p-71ee4af2.entry.js +0 -1
- package/dist/components/p-789f54cb.entry.js +0 -1
- package/dist/components/p-7ca6db64.entry.js +0 -1
- package/dist/components/p-89048f87.entry.js +0 -1
- package/dist/components/p-8d363a3c.entry.js +0 -1
- package/dist/components/p-97323c46.entry.js +0 -1
- package/dist/components/p-9b90296c.entry.js +0 -1
- package/dist/components/p-a8ca8346.entry.js +0 -1
- package/dist/components/p-ab3b0a53.entry.js +0 -1
- package/dist/components/p-b0d38b78.entry.js +0 -1
- package/dist/components/p-b6ee4250.entry.js +0 -1
- package/dist/components/p-b9fdcb1b.entry.js +0 -1
- package/dist/components/p-ba9f41de.entry.js +0 -1
- package/dist/components/p-beacaa4f.entry.js +0 -1
- package/dist/components/p-bfa23535.entry.js +0 -1
- package/dist/components/p-c4ac0528.entry.js +0 -1
- package/dist/components/p-cb114bf4.entry.js +0 -1
- package/dist/components/p-cd05a97b.entry.js +0 -1
- package/dist/components/p-cd787744.entry.js +0 -1
- package/dist/components/p-cdc1c8e8.entry.js +0 -1
- package/dist/components/p-d1d1943b.entry.js +0 -1
- package/dist/components/p-e0ada7e0.entry.js +0 -1
- package/dist/components/p-ec706eed.entry.js +0 -1
- package/dist/components/p-f32963ff.entry.js +0 -9
- package/dist/components/p-f6012c17.entry.js +0 -1
- package/dist/components/p-fcba31fa.entry.js +0 -1
- package/dist/esm/eds-tooltip.entry.js +0 -34
|
@@ -4,7 +4,7 @@ import { d as defineCustomElement$4 } from './eds-button2.js';
|
|
|
4
4
|
import { d as defineCustomElement$3 } from './eds-icon-wrapper2.js';
|
|
5
5
|
import { d as defineCustomElement$2 } from './eds-img2.js';
|
|
6
6
|
|
|
7
|
-
const edsStepsV2Css = "
|
|
7
|
+
const edsStepsV2Css = ".steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4,.steps h5{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before,.steps h5::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.steps-img-placeholder{width:100%;height:200px;background:linear-gradient(to bottom, #9CE142, #00C959, #00A595);}.bg-\\[\\#00A595\\]{--tw-bg-opacity:1;background-color:rgb(0 165 149 / var(--tw-bg-opacity))}.relative{position:relative}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.mt-16{margin-top:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-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))}.overflow-hidden{overflow:hidden}.space-y-8{--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-16{--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.px-8{padding-left:0.5rem;padding-right:0.5rem}.pb-20{padding-bottom:1.25rem}";
|
|
8
8
|
const EdsStepsV2Style0 = edsStepsV2Css;
|
|
9
9
|
|
|
10
10
|
const EdsStepsV2$1 = /*@__PURE__*/ proxyCustomElement(class EdsStepsV2 extends HTMLElement {
|
|
@@ -13,15 +13,29 @@ const EdsStepsV2$1 = /*@__PURE__*/ proxyCustomElement(class EdsStepsV2 extends H
|
|
|
13
13
|
this.__registerHost();
|
|
14
14
|
this.__attachShadow();
|
|
15
15
|
this.step = createEvent(this, "step", 7);
|
|
16
|
+
this.finished = createEvent(this, "finished", 7);
|
|
17
|
+
this.next = createEvent(this, "next", 7);
|
|
18
|
+
this.back = createEvent(this, "back", 7);
|
|
16
19
|
this.handleNext = () => {
|
|
17
|
-
|
|
18
|
-
if (this.activeStep
|
|
20
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
21
|
+
if (this.activeStep >= lastIndex) {
|
|
22
|
+
// Finish
|
|
23
|
+
this.finished.emit();
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
// Next
|
|
27
|
+
const target = this.activeStep + 1;
|
|
28
|
+
this.next.emit(target);
|
|
29
|
+
if (!this.disableNext) {
|
|
30
|
+
this.activeStep = target;
|
|
19
31
|
this.step.emit(this.activeStep);
|
|
20
32
|
}
|
|
21
33
|
};
|
|
22
34
|
this.handleBack = () => {
|
|
23
35
|
if (this.activeStep > 0) {
|
|
24
|
-
|
|
36
|
+
const target = this.activeStep - 1;
|
|
37
|
+
this.back.emit(target);
|
|
38
|
+
this.activeStep = target;
|
|
25
39
|
this.step.emit(this.activeStep);
|
|
26
40
|
}
|
|
27
41
|
};
|
|
@@ -31,6 +45,11 @@ const EdsStepsV2$1 = /*@__PURE__*/ proxyCustomElement(class EdsStepsV2 extends H
|
|
|
31
45
|
this.imageWidth = undefined;
|
|
32
46
|
this.bg = true;
|
|
33
47
|
this.message = undefined;
|
|
48
|
+
this.nextLabel = 'Next';
|
|
49
|
+
this.backLabel = 'Back';
|
|
50
|
+
this.finishLabel = 'Finish';
|
|
51
|
+
this.disableNext = false;
|
|
52
|
+
this.headingLevel = 'h4';
|
|
34
53
|
this.activeStep = 0;
|
|
35
54
|
}
|
|
36
55
|
componentDidLoad() {
|
|
@@ -69,24 +88,22 @@ const EdsStepsV2$1 = /*@__PURE__*/ proxyCustomElement(class EdsStepsV2 extends H
|
|
|
69
88
|
'border-softer effect-focus-within relative rounded-lg border-2'
|
|
70
89
|
].join(' ');
|
|
71
90
|
}
|
|
72
|
-
handleStepClick(index) {
|
|
73
|
-
this.step.emit(index);
|
|
74
|
-
// In linear mode, update the active step on header click.
|
|
75
|
-
if (this.type === 'linear') {
|
|
76
|
-
this.activeStep = index;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
91
|
/**
|
|
80
92
|
* Parses the steps property into an array of Step objects.
|
|
81
93
|
*/
|
|
82
94
|
get parsedSteps() {
|
|
83
95
|
return parseData(this.steps);
|
|
84
96
|
}
|
|
97
|
+
/** Render the semantic heading element */
|
|
98
|
+
renderHeading(title) {
|
|
99
|
+
const Tag = this.headingLevel;
|
|
100
|
+
return h(Tag, null, title);
|
|
101
|
+
}
|
|
85
102
|
render() {
|
|
86
103
|
const steps = this.parsedSteps;
|
|
87
|
-
return (h("div", { key: '
|
|
104
|
+
return (h("div", { key: '1ff00f17a85e9a3a9d7bef23694560acd77e7ee4', class: this.articleClasses() }, this.imageSrc ? (h("div", { class: "w-full mb-12 rounded-t-lg overflow-hidden border-2" }, h("eds-img", { src: this.imageSrc, width: this.imageWidth, "with-bg": "true", "lazy-load": "true", alt: "Step illustration" }))) : (this.message && (h("div", { class: "w-full bg-[#00A595] rounded-t-lg border-2" }, h("div", { class: "p-24" }, h("span", { class: "text-inverse f-heading-04 " }, this.message))))), h("div", { key: 'a0328e80df5d9447cfa5378eb9e45925f1f68c69', class: "pb-20 px-8" }, this.type === 'linear' ? (h("div", { class: "steps" }, steps.map((step, index) => (h("div", { class: index === 0 ? 'step' : 'step space-y-16', key: index }, this.renderHeading(step.title), this.activeStep === index && (h("div", { class: "content grid gap-y-16" }, h("slot", { name: `step-${index}` }, h("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter' : 'f-body-02 text-lighter', innerHTML: step.content })), h("div", { class: "flex items-center" }, h("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), h("eds-button", { label: index === steps.length - 1 ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.disableNext, size: "small", class: "ml-8" }))))))))) : (
|
|
88
105
|
// Static mode: show all steps with their content.
|
|
89
|
-
h("div", { class: "steps space-y-8" }, steps.map((step, index) => (h("div", { class: "step", key: index },
|
|
106
|
+
h("div", { class: "steps space-y-8" }, steps.map((step, index) => (h("div", { class: "step", key: index }, this.renderHeading(step.title), h("div", { class: "content" }, h("slot", { name: `step-${index}` }, h("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter', innerHTML: step.content })))))))))));
|
|
90
107
|
}
|
|
91
108
|
get el() { return this; }
|
|
92
109
|
static get watchers() { return {
|
|
@@ -100,6 +117,11 @@ const EdsStepsV2$1 = /*@__PURE__*/ proxyCustomElement(class EdsStepsV2 extends H
|
|
|
100
117
|
"imageWidth": [2, "image-width"],
|
|
101
118
|
"bg": [4],
|
|
102
119
|
"message": [1],
|
|
120
|
+
"nextLabel": [1, "next-label"],
|
|
121
|
+
"backLabel": [1, "back-label"],
|
|
122
|
+
"finishLabel": [1, "finish-label"],
|
|
123
|
+
"disableNext": [4, "disable-next"],
|
|
124
|
+
"headingLevel": [513, "heading-level"],
|
|
103
125
|
"activeStep": [32]
|
|
104
126
|
}, undefined, {
|
|
105
127
|
"activeStep": ["activeStepChanged"]
|
|
@@ -3,7 +3,7 @@ import { p as parseData } from './sharedUtils.js';
|
|
|
3
3
|
import { d as defineCustomElement$2 } from './eds-button2.js';
|
|
4
4
|
import { d as defineCustomElement$1 } from './eds-icon-wrapper2.js';
|
|
5
5
|
|
|
6
|
-
const edsStepsCss = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top
|
|
6
|
+
const edsStepsCss = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4,.steps h5{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before,.steps h5::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.my-16{margin-top:1rem;margin-bottom:1rem}.mt-16{margin-top:1rem}.mb-28{margin-bottom:1.75rem}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.cursor-pointer{cursor:pointer}";
|
|
7
7
|
const EdsStepsStyle0 = edsStepsCss;
|
|
8
8
|
|
|
9
9
|
const EdsSteps = /*@__PURE__*/ proxyCustomElement(class EdsSteps extends HTMLElement {
|
|
@@ -12,33 +12,53 @@ const EdsSteps = /*@__PURE__*/ proxyCustomElement(class EdsSteps extends HTMLEle
|
|
|
12
12
|
this.__registerHost();
|
|
13
13
|
this.__attachShadow();
|
|
14
14
|
this.step = createEvent(this, "step", 7);
|
|
15
|
+
this.finished = createEvent(this, "finished", 7);
|
|
16
|
+
this.next = createEvent(this, "next", 7);
|
|
17
|
+
this.back = createEvent(this, "back", 7);
|
|
15
18
|
this.handleNext = () => {
|
|
16
|
-
|
|
17
|
-
if (this.activeStep
|
|
18
|
-
this.
|
|
19
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
20
|
+
if (this.activeStep >= lastIndex) {
|
|
21
|
+
this.finished.emit();
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const target = this.activeStep + 1;
|
|
25
|
+
this.next.emit(target);
|
|
26
|
+
if (this.isNextDisabledFor(this.activeStep)) {
|
|
27
|
+
return;
|
|
28
|
+
} // block advance only if current is disabled
|
|
29
|
+
this.activeStep = target;
|
|
30
|
+
this.step.emit(this.activeStep);
|
|
31
|
+
// 2) if using the boolean form, clear it when moving away from a step
|
|
32
|
+
if (!Array.isArray(this.disableNext)) {
|
|
33
|
+
this.disableNext = false;
|
|
19
34
|
}
|
|
20
35
|
};
|
|
21
36
|
this.handleBack = () => {
|
|
22
37
|
if (this.activeStep > 0) {
|
|
23
|
-
|
|
38
|
+
const target = this.activeStep - 1;
|
|
39
|
+
this.back.emit(target);
|
|
40
|
+
this.activeStep = target;
|
|
24
41
|
this.step.emit(this.activeStep);
|
|
42
|
+
// also clear boolean form on back
|
|
43
|
+
if (!Array.isArray(this.disableNext)) {
|
|
44
|
+
this.disableNext = false;
|
|
45
|
+
}
|
|
25
46
|
}
|
|
26
47
|
};
|
|
27
48
|
this.steps = [];
|
|
28
49
|
this.type = 'static';
|
|
50
|
+
this.nextLabel = 'Next';
|
|
51
|
+
this.backLabel = 'Back';
|
|
52
|
+
this.finishLabel = 'Finish';
|
|
53
|
+
this.disableNext = false;
|
|
54
|
+
this.headingLevel = 'h4';
|
|
29
55
|
this.activeStep = 0;
|
|
30
56
|
}
|
|
31
|
-
/**
|
|
32
|
-
* Lifecycle method that runs when the component has fully loaded.
|
|
33
|
-
* It emits a custom event for each `eds-button` element contained within the breadcrumb.
|
|
34
|
-
*/
|
|
35
57
|
componentDidLoad() {
|
|
36
58
|
var _a;
|
|
37
59
|
if (this.type === 'linear') {
|
|
38
60
|
const btns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('eds-button');
|
|
39
|
-
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) =>
|
|
40
|
-
this.emitContext(btn);
|
|
41
|
-
});
|
|
61
|
+
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
|
|
42
62
|
}
|
|
43
63
|
}
|
|
44
64
|
activeStepChanged(newValue) {
|
|
@@ -46,19 +66,10 @@ const EdsSteps = /*@__PURE__*/ proxyCustomElement(class EdsSteps extends HTMLEle
|
|
|
46
66
|
var _a;
|
|
47
67
|
const activeStepContainer = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.step')[newValue];
|
|
48
68
|
if (activeStepContainer) {
|
|
49
|
-
|
|
50
|
-
btns.forEach((btn) => {
|
|
51
|
-
this.emitContext(btn);
|
|
52
|
-
});
|
|
69
|
+
activeStepContainer.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
|
|
53
70
|
}
|
|
54
71
|
}, 50);
|
|
55
72
|
}
|
|
56
|
-
/**
|
|
57
|
-
* Emits a custom event called `parentContext` for a given link element.
|
|
58
|
-
* This event provides context information about the breadcrumb component.
|
|
59
|
-
*
|
|
60
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
61
|
-
*/
|
|
62
73
|
emitContext(linkElement) {
|
|
63
74
|
const event = new CustomEvent('parentContext', {
|
|
64
75
|
detail: {
|
|
@@ -68,26 +79,29 @@ const EdsSteps = /*@__PURE__*/ proxyCustomElement(class EdsSteps extends HTMLEle
|
|
|
68
79
|
});
|
|
69
80
|
linkElement.dispatchEvent(event);
|
|
70
81
|
}
|
|
71
|
-
handleStepClick(index) {
|
|
72
|
-
this.step.emit(index);
|
|
73
|
-
// In linear mode, update the active step on header click.
|
|
74
|
-
if (this.type === 'linear') {
|
|
75
|
-
this.activeStep = index;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Parse the JSON string into an array of steps.
|
|
80
|
-
*/
|
|
81
82
|
get parsedSteps() {
|
|
82
83
|
return parseData(this.steps);
|
|
83
84
|
}
|
|
85
|
+
isNextDisabledFor(index) {
|
|
86
|
+
return Array.isArray(this.disableNext)
|
|
87
|
+
? !!this.disableNext[index] // per-step
|
|
88
|
+
: index === this.activeStep && !!this.disableNext; // only active step
|
|
89
|
+
}
|
|
90
|
+
/** Render the semantic heading element */
|
|
91
|
+
renderHeading(title) {
|
|
92
|
+
const Tag = this.headingLevel;
|
|
93
|
+
return h(Tag, null, title);
|
|
94
|
+
}
|
|
84
95
|
render() {
|
|
85
96
|
const steps = this.parsedSteps;
|
|
86
97
|
if (this.type === 'linear') {
|
|
87
|
-
return (h("div",
|
|
98
|
+
return (h("div", { class: "steps" }, steps.map((step, index) => {
|
|
99
|
+
const isLast = index === steps.length - 1;
|
|
100
|
+
return (h("div", { class: "step mb-28", key: index }, this.renderHeading(step.title), this.activeStep === index && (h("div", { class: "content grid gap-y-16" }, h("slot", { name: `step-${index}` }, h("div", { class: isLast ? 'f-body-02 text-lighter' : 'f-body-02 text-lighter', innerHTML: step.content })), h("div", { class: "flex items-center mt-16" }, h("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), h("eds-button", { label: isLast ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index), size: "small", class: "ml-8" })), h("slot", { name: `actions-${index}` })))));
|
|
101
|
+
})));
|
|
88
102
|
}
|
|
89
|
-
// Static
|
|
90
|
-
return (h("div", { class: "steps" }, steps.map((step, index) => (h("div", { class: "step mb-28", key: index },
|
|
103
|
+
// Static: no navigation buttons
|
|
104
|
+
return (h("div", { class: "steps" }, steps.map((step, index) => (h("div", { class: "step mb-28", key: index }, this.renderHeading(step.title), h("div", { class: "content" }, h("slot", { name: `step-${index}` }, h("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter my-16', innerHTML: step.content }))))))));
|
|
91
105
|
}
|
|
92
106
|
get el() { return this; }
|
|
93
107
|
static get watchers() { return {
|
|
@@ -97,6 +111,11 @@ const EdsSteps = /*@__PURE__*/ proxyCustomElement(class EdsSteps extends HTMLEle
|
|
|
97
111
|
}, [1, "eds-steps", {
|
|
98
112
|
"steps": [1],
|
|
99
113
|
"type": [1],
|
|
114
|
+
"nextLabel": [1, "next-label"],
|
|
115
|
+
"backLabel": [1, "back-label"],
|
|
116
|
+
"finishLabel": [1, "finish-label"],
|
|
117
|
+
"disableNext": [1028, "disable-next"],
|
|
118
|
+
"headingLevel": [513, "heading-level"],
|
|
100
119
|
"activeStep": [32]
|
|
101
120
|
}, undefined, {
|
|
102
121
|
"activeStep": ["activeStepChanged"]
|
|
@@ -53,11 +53,11 @@ const EdsSwitch$1 = /*@__PURE__*/ proxyCustomElement(class EdsSwitch extends HTM
|
|
|
53
53
|
: this.labelOff
|
|
54
54
|
: 'Toggle switch'
|
|
55
55
|
: undefined;
|
|
56
|
-
return (h("div", { key: '
|
|
56
|
+
return (h("div", { key: '95a833cbe8e736d7e747f6fdd8504dd8c169ea60', class: "switch-container" }, this.labelOff && (h("span", { key: 'a88de63c35409ab244a6cba5bd70a10728a08b2a', id: `${switchId}-off`, class: "switch-label switch-label--off mr-8" }, this.labelOff)), h("button", { key: 'd6573f05164f2b57063e9a97c3b983f32700bd7a', id: switchId, tabindex: this.disabled ? '-1' : '0', type: "button", role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-labelledby": labelledBy.length > 0 ? labelledBy.join(' ') : undefined, "aria-label": accessibleLabel, class: {
|
|
57
57
|
switch: true,
|
|
58
58
|
'switch--checked': this.checked,
|
|
59
59
|
'switch--disabled': this.disabled
|
|
60
|
-
}, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, h("span", { key: '
|
|
60
|
+
}, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, h("span", { key: '35e6da3bb76779bfaad04d8990dec419524fb543', class: "switch-handle" })), this.labelOn && (h("span", { key: 'b14243d9d45dbdddb9473ad2c5696e07be9831d3', id: `${switchId}-on`, class: "switch-label switch-label--on ml-8" }, this.labelOn))));
|
|
61
61
|
}
|
|
62
62
|
get el() { return this; }
|
|
63
63
|
static get style() { return EdsSwitchStyle0; }
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { s as sendAnalytics } from './analytics.js';
|
|
3
3
|
import { p as parseData } from './sharedUtils.js';
|
|
4
|
-
import { d as defineCustomElement$
|
|
5
|
-
import { d as defineCustomElement$
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
10
|
-
import { d as defineCustomElement$
|
|
11
|
-
import { d as defineCustomElement$
|
|
12
|
-
import { d as defineCustomElement$
|
|
13
|
-
import { d as defineCustomElement$
|
|
14
|
-
import { d as defineCustomElement$
|
|
4
|
+
import { d as defineCustomElement$c } from './eds-button2.js';
|
|
5
|
+
import { d as defineCustomElement$b } from './eds-icon-wrapper2.js';
|
|
6
|
+
import { d as defineCustomElement$a } from './eds-input2.js';
|
|
7
|
+
import { d as defineCustomElement$9 } from './eds-input-field2.js';
|
|
8
|
+
import { d as defineCustomElement$8 } from './eds-input-footer2.js';
|
|
9
|
+
import { d as defineCustomElement$7 } from './eds-input-label2.js';
|
|
10
|
+
import { d as defineCustomElement$6 } from './eds-input-range2.js';
|
|
11
|
+
import { d as defineCustomElement$5 } from './eds-input-search2.js';
|
|
12
|
+
import { d as defineCustomElement$4 } from './eds-input-select2.js';
|
|
13
|
+
import { d as defineCustomElement$3 } from './eds-link2.js';
|
|
14
|
+
import { d as defineCustomElement$2 } from './eds-pagination2.js';
|
|
15
|
+
import { d as defineCustomElement$1 } from './eds-tooltip2.js';
|
|
15
16
|
|
|
16
|
-
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-8{padding-left:0.5rem;padding-right:0.5rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
|
|
17
|
+
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.p-4{padding:0.25rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-8{padding-left:0.5rem;padding-right:0.5rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
|
|
17
18
|
const EdsTableStyle0 = edsTableCss;
|
|
18
19
|
|
|
19
20
|
const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLElement {
|
|
@@ -143,7 +144,7 @@ const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLEle
|
|
|
143
144
|
}
|
|
144
145
|
const paginationEl = this.hostEl.shadowRoot.querySelector('eds-pagination');
|
|
145
146
|
if (paginationEl && !paginationEl.hasAttribute('listener-attached')) {
|
|
146
|
-
paginationEl.addEventListener('page', (event) => this.handlePageChange(event.detail));
|
|
147
|
+
paginationEl.addEventListener('page', (event) => this.handlePageChange(event.detail.value));
|
|
147
148
|
paginationEl.setAttribute('listener-attached', 'true');
|
|
148
149
|
}
|
|
149
150
|
}
|
|
@@ -192,7 +193,9 @@ const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLEle
|
|
|
192
193
|
return (h("eds-input-field", { name: `chc-${actionName}`, label: act.label, type: "checkbox", checked: checked, onChange: (e) => this.emitAction(act.name, row, e.target.checked) }));
|
|
193
194
|
}
|
|
194
195
|
// Let all action buttons be focusable naturally
|
|
195
|
-
|
|
196
|
+
const showLabel = act.showLabel === true;
|
|
197
|
+
const btn = (h("eds-button", { icon: act.icon, label: showLabel ? act.label : null, iconPos: "left", pill: true, size: "small", intent: "ghost", tabIndex: 0, onClick: () => this.emitAction(act.name, row) }));
|
|
198
|
+
return showLabel ? btn : h("eds-tooltip", { content: act.label }, btn);
|
|
196
199
|
}
|
|
197
200
|
emitAction(actionName, row, checked) {
|
|
198
201
|
sendAnalytics({
|
|
@@ -238,7 +241,7 @@ const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLEle
|
|
|
238
241
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((currentContainerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
239
242
|
const paginatedRows = this.getPaginatedRows();
|
|
240
243
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
241
|
-
return (h("div", { key: '
|
|
244
|
+
return (h("div", { key: '67cfdabc741af13585699e43e67ba0d204a60706' }, this.searchEnabled && (h("div", { key: '208240b9832f9b2e9645cc9d7315a43bd47b54b3' }, h("eds-input-field", { key: 1, icon: "search", name: "search", "aria-label": "Search", type: "text", placeholder: "Search...", onInput: (event) => this.handleSearch(event) }))), h("div", { key: '893924497d1535b7d29bc0b64ba48f4a3e366c43', class: "mt-20" }, h("table", { key: 'a019fa4f2886d4c2aa4bddc88dc7b6d7aa63fdcb', class: "block overflow-x-auto mt-6 p-0" }, h("thead", { key: 'a6360fea59c605878e443a23cf45d0f8a9644140' }, h("tr", { key: '09702e8838f32c52bf6314b59ec598c6fa55d609', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((col) => {
|
|
242
245
|
var _a;
|
|
243
246
|
if (col === 'actions') {
|
|
244
247
|
return (h("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }));
|
|
@@ -247,7 +250,7 @@ const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLEle
|
|
|
247
250
|
return (h("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.capitalize(col)));
|
|
248
251
|
}
|
|
249
252
|
return null;
|
|
250
|
-
}))), h("tbody", { key: '
|
|
253
|
+
}))), h("tbody", { key: '5cdb3697e6c84921a823b40714a497f02c82e360' }, paginatedRows.map((row) => (h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((col) => {
|
|
251
254
|
var _a;
|
|
252
255
|
if (col === 'actions') {
|
|
253
256
|
return (h("td", { class: "text-center border border-softer m-0 f-ui-02 break-words actions-cell", style: { minWidth: `${columnWidth - 4}px` } }, h("div", { role: "toolbar", "aria-label": "Row actions", onKeyDown: this.onActionKeyDown, style: {
|
|
@@ -262,7 +265,7 @@ const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLEle
|
|
|
262
265
|
return (h("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.renderCell(row[col], col)));
|
|
263
266
|
}
|
|
264
267
|
return null;
|
|
265
|
-
}))))))), this.shouldEnablePagination() && (h("div", { key: '
|
|
268
|
+
}))))))), this.shouldEnablePagination() && (h("div", { key: 'f5af2cd6e65c3ed55ec2810ec4b1e3f891866271', class: "mt-20" }, h("eds-pagination", { key: '32965384707df502fb197712c73bb290e38ce040', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
266
269
|
}
|
|
267
270
|
get hostEl() { return this; }
|
|
268
271
|
static get watchers() { return {
|
|
@@ -299,7 +302,7 @@ function defineCustomElement() {
|
|
|
299
302
|
if (typeof customElements === "undefined") {
|
|
300
303
|
return;
|
|
301
304
|
}
|
|
302
|
-
const components = ["eds-table", "eds-button", "eds-icon-wrapper", "eds-input", "eds-input-field", "eds-input-footer", "eds-input-label", "eds-input-range", "eds-input-search", "eds-input-select", "eds-link", "eds-pagination"];
|
|
305
|
+
const components = ["eds-table", "eds-button", "eds-icon-wrapper", "eds-input", "eds-input-field", "eds-input-footer", "eds-input-label", "eds-input-range", "eds-input-search", "eds-input-select", "eds-link", "eds-pagination", "eds-tooltip"];
|
|
303
306
|
components.forEach(tagName => { switch (tagName) {
|
|
304
307
|
case "eds-table":
|
|
305
308
|
if (!customElements.get(tagName)) {
|
|
@@ -308,55 +311,60 @@ function defineCustomElement() {
|
|
|
308
311
|
break;
|
|
309
312
|
case "eds-button":
|
|
310
313
|
if (!customElements.get(tagName)) {
|
|
311
|
-
defineCustomElement$
|
|
314
|
+
defineCustomElement$c();
|
|
312
315
|
}
|
|
313
316
|
break;
|
|
314
317
|
case "eds-icon-wrapper":
|
|
315
318
|
if (!customElements.get(tagName)) {
|
|
316
|
-
defineCustomElement$
|
|
319
|
+
defineCustomElement$b();
|
|
317
320
|
}
|
|
318
321
|
break;
|
|
319
322
|
case "eds-input":
|
|
320
323
|
if (!customElements.get(tagName)) {
|
|
321
|
-
defineCustomElement$
|
|
324
|
+
defineCustomElement$a();
|
|
322
325
|
}
|
|
323
326
|
break;
|
|
324
327
|
case "eds-input-field":
|
|
325
328
|
if (!customElements.get(tagName)) {
|
|
326
|
-
defineCustomElement$
|
|
329
|
+
defineCustomElement$9();
|
|
327
330
|
}
|
|
328
331
|
break;
|
|
329
332
|
case "eds-input-footer":
|
|
330
333
|
if (!customElements.get(tagName)) {
|
|
331
|
-
defineCustomElement$
|
|
334
|
+
defineCustomElement$8();
|
|
332
335
|
}
|
|
333
336
|
break;
|
|
334
337
|
case "eds-input-label":
|
|
335
338
|
if (!customElements.get(tagName)) {
|
|
336
|
-
defineCustomElement$
|
|
339
|
+
defineCustomElement$7();
|
|
337
340
|
}
|
|
338
341
|
break;
|
|
339
342
|
case "eds-input-range":
|
|
340
343
|
if (!customElements.get(tagName)) {
|
|
341
|
-
defineCustomElement$
|
|
344
|
+
defineCustomElement$6();
|
|
342
345
|
}
|
|
343
346
|
break;
|
|
344
347
|
case "eds-input-search":
|
|
345
348
|
if (!customElements.get(tagName)) {
|
|
346
|
-
defineCustomElement$
|
|
349
|
+
defineCustomElement$5();
|
|
347
350
|
}
|
|
348
351
|
break;
|
|
349
352
|
case "eds-input-select":
|
|
350
353
|
if (!customElements.get(tagName)) {
|
|
351
|
-
defineCustomElement$
|
|
354
|
+
defineCustomElement$4();
|
|
352
355
|
}
|
|
353
356
|
break;
|
|
354
357
|
case "eds-link":
|
|
355
358
|
if (!customElements.get(tagName)) {
|
|
356
|
-
defineCustomElement$
|
|
359
|
+
defineCustomElement$3();
|
|
357
360
|
}
|
|
358
361
|
break;
|
|
359
362
|
case "eds-pagination":
|
|
363
|
+
if (!customElements.get(tagName)) {
|
|
364
|
+
defineCustomElement$2();
|
|
365
|
+
}
|
|
366
|
+
break;
|
|
367
|
+
case "eds-tooltip":
|
|
360
368
|
if (!customElements.get(tagName)) {
|
|
361
369
|
defineCustomElement$1();
|
|
362
370
|
}
|
|
@@ -169,12 +169,12 @@ const EdsTabs$1 = /*@__PURE__*/ proxyCustomElement(class EdsTabs extends HTMLEle
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
|
-
return (h("div", { key: '
|
|
172
|
+
return (h("div", { key: '7cb51cf475d45ee3e43877ee4d42565f5930613a', id: `${this.identifier}` }, h("div", { key: '4f3c6d23f9084f07e5728b72310b96798d20b724', class: "scroller-x overflow-x-auto relative z-[1] mx-auto px-16 pt-8 lg:px-28 after:border-soft before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, h("nav", { key: '4d55e72e9f437cef8be06931445f619196a973a7', role: "tablist", ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
173
173
|
const TabComponent = 'button';
|
|
174
174
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
175
175
|
const isActive = index === this.activeIndex;
|
|
176
176
|
return (h(TabComponent, Object.assign({}, tabProps, { type: "button", role: "tab", "aria-selected": tab.active ? 'true' : 'false', tabIndex: isActive ? 0 : -1, "aria-label": tab.ariaLabel || tab.label, "aria-controls": `panel-${index}`, id: `tab-${index}`, ref: (el) => this.setTabRef(el, index), onClick: () => this.handleTabClick(index, tab.label, true), onKeyDown: (e) => this.onKeyDown(e, index) }), tab.label || tab.ariaLabel));
|
|
177
|
-
}))), h("div", { key: '
|
|
177
|
+
}))), h("div", { key: 'e75f877da39c25e912853fea5dc2438fc15c67b5', class: "tab-panels" }, this.parsedTabs.map((_, index) => (h("div", { role: "tabpanel", id: `panel-${index}`, "aria-labelledby": `tab-${index}`, hidden: index !== this.activeIndex, tabIndex: index === this.activeIndex ? 0 : -1, class: "effect-focus" }, h("slot", { name: `panel-${index}` })))))));
|
|
178
178
|
}
|
|
179
179
|
get el() { return this; }
|
|
180
180
|
static get watchers() { return {
|
|
@@ -39,7 +39,7 @@ const EdsTag = /*@__PURE__*/ proxyCustomElement(class EdsTag extends HTMLElement
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
const classes = tagStyles({ intent: this.intent, size: this.size });
|
|
42
|
-
return h("span", { key: '
|
|
42
|
+
return h("span", { key: 'e3fe041e8783a7d1bb5a281eb154e3c07851da38', class: classes }, this.label);
|
|
43
43
|
}
|
|
44
44
|
static get style() { return EdsTagStyle0; }
|
|
45
45
|
}, [1, "eds-tag", {
|
|
@@ -51,7 +51,7 @@ const EdsTimeline$1 = /*@__PURE__*/ proxyCustomElement(class EdsTimeline extends
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h("div", { key: '
|
|
54
|
+
return (h("div", { key: 'c3362fa23185787a8d5a974f1f53978569e28a63', class: "max-w-sidebar mx-auto px-4 py-8" }, h("div", { key: '59f85c0ae88876cf891b8fd2852cb15426f05c2a', class: "relative" }, h("div", { key: '89fc0969c72ba183dee530a428d6d1d9421b2764', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), h("div", { key: '190262fe1b382ac41fba398d05e640d0db746fe9', class: "space-y-16" }, this.parsedEvents.map((event, index) => (h("div", { class: "relative flex" }, h("div", { class: `w-1/2 ${index % 2 === 0 ? 'pr-4' : ''}` }, index % 2 === 0 && (h("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
55
55
|
? [{ label: 'completed', style: 'accent' }]
|
|
56
56
|
: [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))), h("div", { class: "flex items-center justify-center relative" }, event.completed ? (h("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" })) : (h("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" }))), h("div", { class: `w-1/2 ${index % 2 !== 0 ? 'pl-4' : ''}` }, index % 2 !== 0 && (h("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
57
57
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -67,7 +67,7 @@ const EdsToastManager$1 = /*@__PURE__*/ proxyCustomElement(class EdsToastManager
|
|
|
67
67
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return (h("div", { key: '
|
|
70
|
+
return (h("div", { key: '27172b1f3c76ebb460c35ea070eeff330390ed7d', class: "toast-container" }, this.toasts.map((t) => (h("div", { key: t.id }, h("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
|
|
71
71
|
}
|
|
72
72
|
get hostElement() { return this; }
|
|
73
73
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -1,53 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as sendAnalytics } from './analytics.js';
|
|
3
|
-
|
|
4
|
-
const edsTooltipCss = ".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-xs{border-radius:4px}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.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}.left-1\\/2{left:50%}.z-10{z-index:10}.transform{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-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))}.whitespace-nowrap{white-space:nowrap}.p-6{padding:0.375rem}.top-full{top:100%}.bottom-full{bottom:100%}.right-full{right:100%}.left-full{left:100%}.mr-2{margin-right:0.125rem}.ml-2{margin-left:0.125rem}.mt-2{margin-top:0.125rem}.mb-2{margin-bottom:0.125rem}.opacity-0{opacity:0}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-150{transition-duration:150ms}.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.group:hover .group-hover\\:opacity-100{opacity:1}.max-w-\\[20rem\\]{max-width:20rem}.whitespace-normal{white-space:normal}.break-words{overflow-wrap:break-word}.w-full{width:100%}";
|
|
5
|
-
const EdsTooltipStyle0 = edsTooltipCss;
|
|
6
|
-
|
|
7
|
-
const EdsTooltip$1 = /*@__PURE__*/ proxyCustomElement(class EdsTooltip extends HTMLElement {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this.__registerHost();
|
|
11
|
-
this.__attachShadow();
|
|
12
|
-
this.content = undefined;
|
|
13
|
-
this.position = 'top';
|
|
14
|
-
}
|
|
15
|
-
/** fire analytics on every hover */
|
|
16
|
-
handleHover() {
|
|
17
|
-
sendAnalytics({
|
|
18
|
-
category: 'ui-component',
|
|
19
|
-
tag: this.el.tagName.toLowerCase(),
|
|
20
|
-
name: this.content.toLowerCase(),
|
|
21
|
-
action: 'hover'
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
const positionClass = this.position === 'bottom' ? 'top-full mt-2' : 'bottom-full mb-2';
|
|
26
|
-
return (h("div", { key: 'ee76b787881bdaef986b73fb2775c900a8c33d05', class: "relative w-full inline-block group" }, h("slot", { key: 'a5f9ade50e829efab02ef28ecff3edeedae9d469' }), h("div", { key: '31bdc63d6263090578f6600ae32027c2b050b2bf', class: `absolute ${positionClass}
|
|
27
|
-
rounded-xs bg-strongest text-inverse
|
|
28
|
-
f-ui-03-light pointer-events-none
|
|
29
|
-
z-10 p-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
30
|
-
group-hover:opacity-100 whitespace-normal break-words`, role: "tooltip" }, this.content)));
|
|
31
|
-
}
|
|
32
|
-
get el() { return this; }
|
|
33
|
-
static get style() { return EdsTooltipStyle0; }
|
|
34
|
-
}, [1, "eds-tooltip", {
|
|
35
|
-
"content": [1],
|
|
36
|
-
"position": [1]
|
|
37
|
-
}, [[1, "mouseenter", "handleHover"]]]);
|
|
38
|
-
function defineCustomElement$1() {
|
|
39
|
-
if (typeof customElements === "undefined") {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
const components = ["eds-tooltip"];
|
|
43
|
-
components.forEach(tagName => { switch (tagName) {
|
|
44
|
-
case "eds-tooltip":
|
|
45
|
-
if (!customElements.get(tagName)) {
|
|
46
|
-
customElements.define(tagName, EdsTooltip$1);
|
|
47
|
-
}
|
|
48
|
-
break;
|
|
49
|
-
} });
|
|
50
|
-
}
|
|
1
|
+
import { E as EdsTooltip$1, d as defineCustomElement$1 } from './eds-tooltip2.js';
|
|
51
2
|
|
|
52
3
|
const EdsTooltip = EdsTooltip$1;
|
|
53
4
|
const defineCustomElement = defineCustomElement$1;
|