@ebrains/components 2.0.0 → 2.1.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/clone-846acfdd.js +5 -0
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
- package/dist/cjs/components-section.cjs.entry.js +2 -2
- 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/edit-ff5b84d8.js +5 -0
- package/dist/cjs/{eds-avatar_26.cjs.entry.js → eds-accordion_33.cjs.entry.js} +3467 -157
- package/dist/cjs/eds-app-root.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-desc_2.cjs.entry.js +3 -3
- package/dist/cjs/eds-card-generic.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-project.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-section.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tags.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-tool.cjs.entry.js +2 -2
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +2 -2
- package/dist/cjs/eds-feedback.cjs.entry.js +2 -2
- package/dist/cjs/eds-footer.cjs.entry.js +9 -3
- package/dist/cjs/eds-frame.cjs.entry.js +2 -2
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +1 -1
- package/dist/cjs/eds-gauge.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-bin.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-bookmark.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-clone.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-close.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-copy.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-draft.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-edit.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-eu.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-external.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-loader.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-menu.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-minus.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-more.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-paper.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-plus.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-portal.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-private.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-public.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-search.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-star.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-start.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-success.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-tutorial.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-updown.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-user.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-view.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +2 -2
- package/dist/cjs/eds-modal.cjs.entry.js +3 -3
- package/dist/cjs/eds-pie.cjs.entry.js +1 -1
- package/dist/cjs/eds-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/eds-section-core_2.cjs.entry.js +4 -4
- package/dist/cjs/eds-social-networks.cjs.entry.js +2 -2
- package/dist/cjs/eds-spinner.cjs.entry.js +2 -2
- package/dist/cjs/eds-splash-screen.cjs.entry.js +1 -1
- package/dist/cjs/eds-timeline.cjs.entry.js +2 -2
- package/dist/cjs/eds-toast-manager.cjs.entry.js +2 -2
- package/dist/cjs/eds-tooltip.cjs.entry.js +2 -2
- 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-88c8039f.js → index-0249a32e.js} +15 -28
- 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 +8 -4
- package/dist/cjs/token-list_3.cjs.entry.js +4 -4
- package/dist/cjs/token-ratios.cjs.entry.js +2 -2
- package/dist/cjs/token-spacing.cjs.entry.js +2 -2
- package/dist/cjs/token-typography.cjs.entry.js +2 -2
- package/dist/cjs/view-80d5c6c8.js +5 -0
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/eds-accordion/eds-accordion.js +1 -1
- package/dist/collection/components/eds-alert/eds-alert.js +30 -3
- package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
- package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +1 -1
- package/dist/collection/components/eds-button/eds-button.css +4 -0
- package/dist/collection/components/eds-button/eds-button.js +19 -8
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +1 -1
- package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +1 -1
- package/dist/collection/components/eds-code-block/eds-code-block.js +1 -1
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +2 -2
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-bin/eds-icon-bin.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-clone/eds-icon-clone.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-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 +36 -0
- 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 +3 -2
- package/dist/collection/components/eds-link/eds-link.js +27 -7
- package/dist/collection/components/eds-link/eds-link.stories.js +3 -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-npm.stories.js +36 -0
- package/dist/collection/components/eds-nps/eds-nps.css +73 -0
- package/dist/collection/components/eds-nps/eds-nps.js +163 -0
- package/dist/collection/components/eds-pagination/eds-pagination.css +4 -0
- package/dist/collection/components/eds-pagination/eds-pagination.js +130 -50
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
- package/dist/collection/components/eds-rating/eds-rating.js +25 -3
- 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.css +15 -5
- package/dist/collection/components/eds-switch/eds-switch.js +26 -4
- package/dist/collection/components/eds-table/eds-table.js +38 -37
- package/dist/collection/components/eds-table/eds-table.stories.js +1 -1
- 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.js +1 -1
- 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/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 +8 -2
- package/dist/collection/shared-ui/eds-form/eds-form.js +26 -4
- package/dist/collection/shared-ui/eds-form/eds-form.stories.js +1 -1
- package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
- package/dist/collection/shared-ui/eds-header/eds-header.js +1 -1
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +26 -5
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +89 -31
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
- 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/eds-form/formValidators.js +33 -0
- package/dist/components/clone.js +3 -0
- package/dist/components/components-section.js +1 -1
- package/dist/components/components.css +7 -9
- 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/edit.js +1 -1
- package/dist/components/eds-accordion2.js +1 -1
- package/dist/components/eds-alert2.js +21 -5
- package/dist/components/eds-app-root.js +1 -1
- package/dist/components/eds-avatar2.js +1 -1
- package/dist/components/eds-block-break2.js +1 -1
- package/dist/components/eds-breadcrumb.js +1 -1
- package/dist/components/eds-button2.js +21 -10
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-project.js +1 -1
- package/dist/components/eds-card-tags.js +1 -1
- package/dist/components/eds-card-title2.js +1 -1
- package/dist/components/eds-card-tool.js +1 -1
- package/dist/components/eds-code-block2.js +1 -1
- package/dist/components/eds-cookies-preference.js +1 -1
- package/dist/components/eds-dropdown2.js +2 -2
- package/dist/components/eds-feedback.js +1 -1
- package/dist/components/eds-footer2.js +8 -2
- package/dist/components/eds-form.js +80 -22
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-gauge.js +1 -1
- package/dist/components/eds-header.js +1 -1
- package/dist/components/eds-icon-arrow-diagonal.js +1 -1
- package/dist/components/eds-icon-arrow-right.js +1 -1
- package/dist/components/eds-icon-bin.js +1 -1
- package/dist/components/eds-icon-bluesky.js +1 -1
- package/dist/components/eds-icon-bookmark.js +1 -1
- package/dist/components/eds-icon-chevron-down.js +1 -1
- package/dist/components/eds-icon-chevron-left.js +1 -1
- package/dist/components/eds-icon-chevron-right.js +1 -1
- package/dist/components/eds-icon-chevron-up.js +1 -1
- package/dist/components/eds-icon-clone.d.ts +11 -0
- package/dist/components/eds-icon-clone.js +33 -0
- package/dist/components/eds-icon-close.js +1 -1
- package/dist/components/eds-icon-copy.js +1 -1
- package/dist/components/eds-icon-draft.js +1 -1
- package/dist/components/eds-icon-edit.js +1 -1
- package/dist/components/eds-icon-eu.js +1 -1
- package/dist/components/eds-icon-external.js +1 -1
- package/dist/components/eds-icon-facebook.js +1 -1
- package/dist/components/eds-icon-gitlab.js +1 -1
- package/dist/components/eds-icon-linkedin.js +1 -1
- package/dist/components/eds-icon-loader.js +1 -1
- package/dist/components/eds-icon-mastodon.js +1 -1
- package/dist/components/eds-icon-menu.js +1 -1
- package/dist/components/eds-icon-minus.js +1 -1
- package/dist/components/eds-icon-more.js +1 -1
- package/dist/components/eds-icon-paper.js +1 -1
- package/dist/components/eds-icon-plus.js +1 -1
- package/dist/components/eds-icon-portal.js +1 -1
- package/dist/components/eds-icon-private.js +1 -1
- package/dist/components/eds-icon-public.js +1 -1
- package/dist/components/eds-icon-search.js +1 -1
- package/dist/components/eds-icon-star.js +1 -1
- package/dist/components/eds-icon-start.js +1 -1
- package/dist/components/eds-icon-success.js +1 -1
- package/dist/components/eds-icon-thumbs-down.js +1 -1
- package/dist/components/eds-icon-thumbs-up.js +1 -1
- package/dist/components/eds-icon-tutorial.js +1 -1
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-unknown.js +1 -1
- package/dist/components/eds-icon-updown.js +1 -1
- package/dist/components/eds-icon-user.js +1 -1
- package/dist/components/eds-icon-view.d.ts +11 -0
- package/dist/components/eds-icon-view.js +33 -0
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +2 -2
- package/dist/components/eds-input-field2.js +4 -3
- 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 +27 -7
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-modal.js +2 -2
- package/dist/components/eds-nps.d.ts +11 -0
- package/dist/components/eds-nps.js +6 -0
- package/dist/components/eds-nps2.js +120 -0
- package/dist/components/eds-pagination2.js +119 -52
- package/dist/components/eds-progress-bar2.js +1 -1
- package/dist/components/eds-rating2.js +25 -3
- package/dist/components/eds-section-core2.js +1 -1
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-switch.js +27 -5
- package/dist/components/eds-table2.js +45 -20
- package/dist/components/eds-tabs.js +90 -32
- 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 -1
- package/dist/components/eds-trl.js +8 -2
- package/dist/components/eds-user.js +3 -9
- package/dist/components/incorrect-use-of-colors.js +9 -3
- package/dist/components/logo-space.js +8 -2
- 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-05654483.entry.js +1 -0
- package/dist/components/{p-9e53eca3.entry.js → p-09079c5c.entry.js} +1 -1
- package/dist/components/p-10997947.entry.js +1 -0
- package/dist/components/p-19e69c03.entry.js +1 -0
- package/dist/components/p-1ab1ea29.entry.js +1 -0
- package/dist/components/p-1bcf743d.entry.js +1 -0
- package/dist/components/{p-9d18d7b1.entry.js → p-1d18106d.entry.js} +1 -1
- package/dist/components/{p-adbd0d7b.entry.js → p-265150a1.entry.js} +1 -1
- package/dist/components/p-27c4a06e.js +1 -0
- package/dist/components/{p-e35e156d.entry.js → p-2e0c3fc4.entry.js} +1 -1
- package/dist/components/{p-6d3b5818.entry.js → p-2ef4dd11.entry.js} +1 -1
- package/dist/components/p-3360e1e2.entry.js +1 -0
- package/dist/components/{p-93e6ba0f.entry.js → p-38bc21e9.entry.js} +1 -1
- package/dist/components/p-3b29e0fd.entry.js +1 -0
- package/dist/components/p-42457a0f.entry.js +1 -0
- package/dist/components/p-4a6a72db.entry.js +1 -0
- package/dist/components/p-4b33909d.entry.js +1 -0
- package/dist/components/p-4bf4bc93.entry.js +1 -0
- package/dist/components/{p-773a119a.entry.js → p-4c84fcf4.entry.js} +1 -1
- package/dist/components/p-4eb2cf7f.js +1 -0
- package/dist/components/p-5367bb59.entry.js +1 -0
- package/dist/components/p-547a53d6.entry.js +1 -0
- package/dist/components/p-560fc3a4.entry.js +1 -0
- package/dist/components/p-5a58f1c1.entry.js +1 -0
- package/dist/components/p-5b55f951.entry.js +1 -0
- package/dist/components/p-5ba49cf2.entry.js +1 -0
- package/dist/components/p-5dd85979.entry.js +1 -0
- package/dist/components/{p-356846cd.entry.js → p-5f348b0e.entry.js} +1 -1
- package/dist/components/p-634b6ca2.entry.js +1 -0
- package/dist/components/{p-b073d78f.entry.js → p-64b7a6fc.entry.js} +1 -1
- package/dist/components/{p-02d94d2d.entry.js → p-6614881d.entry.js} +1 -1
- package/dist/components/{p-2839899a.entry.js → p-67ec46b4.entry.js} +1 -1
- package/dist/components/p-6b988c76.entry.js +1 -0
- package/dist/components/p-6cd6ff0c.entry.js +1 -0
- package/dist/components/{p-f6ca2aa6.entry.js → p-706a106c.entry.js} +1 -1
- package/dist/components/p-71ee4af2.entry.js +1 -0
- package/dist/components/{p-794f11e7.entry.js → p-743f9f8f.entry.js} +1 -1
- package/dist/components/p-789f54cb.entry.js +1 -0
- package/dist/components/{p-8c0b0121.entry.js → p-79afd8aa.entry.js} +1 -1
- package/dist/components/{p-b3a40663.entry.js → p-7a3f2576.entry.js} +1 -1
- package/dist/components/p-7a5623b5.entry.js +1 -0
- package/dist/components/p-7ca6db64.entry.js +1 -0
- package/dist/components/p-7fa46b01.entry.js +1 -0
- package/dist/components/{p-3e183368.entry.js → p-8627afc0.entry.js} +1 -1
- package/dist/components/p-86eff0cb.entry.js +1 -0
- package/dist/components/p-89048f87.entry.js +1 -0
- package/dist/components/p-8cf98230.entry.js +1 -0
- package/dist/components/{p-8dee879d.entry.js → p-8d363a3c.entry.js} +1 -1
- package/dist/components/p-9261d27c.entry.js +1 -0
- package/dist/components/p-97323c46.entry.js +1 -0
- package/dist/components/p-9b90296c.entry.js +1 -0
- package/dist/components/{p-1f5c19b9.entry.js → p-9c1c5e8d.entry.js} +1 -1
- package/dist/components/p-9cb14b1f.entry.js +1 -0
- package/dist/components/p-9f0a34b4.entry.js +1 -0
- package/dist/components/p-a8ca8346.entry.js +1 -0
- package/dist/components/{p-43468b0f.entry.js → p-ab3b0a53.entry.js} +1 -1
- package/dist/components/p-b0d38b78.entry.js +1 -0
- package/dist/components/{p-66f4cdd9.entry.js → p-b31babda.entry.js} +1 -1
- package/dist/components/p-b6ee4250.entry.js +1 -0
- package/dist/components/{p-0687532c.entry.js → p-b88a2267.entry.js} +1 -1
- package/dist/components/{p-024789cc.entry.js → p-b9a1aba3.entry.js} +1 -1
- package/dist/components/p-b9fdcb1b.entry.js +1 -0
- package/dist/components/{p-73c74835.entry.js → p-ba9f41de.entry.js} +1 -1
- package/dist/components/p-beacaa4f.entry.js +1 -0
- package/dist/components/p-bfa23535.entry.js +1 -0
- package/dist/components/p-c4ac0528.entry.js +1 -0
- package/dist/components/p-cb114bf4.entry.js +1 -0
- package/dist/components/p-cd05a97b.entry.js +1 -0
- package/dist/components/{p-3a331c68.entry.js → p-cd787744.entry.js} +1 -1
- package/dist/components/p-cdc1c8e8.entry.js +1 -0
- package/dist/components/{p-4e473b4e.entry.js → p-d1927da7.entry.js} +1 -1
- package/dist/components/{p-564431ad.entry.js → p-d1d1943b.entry.js} +1 -1
- package/dist/components/{p-543f2347.entry.js → p-d2e485a1.entry.js} +1 -1
- package/dist/components/{p-e2e7250a.entry.js → p-d95d7353.entry.js} +1 -1
- package/dist/components/{p-76905315.entry.js → p-e0ada7e0.entry.js} +1 -1
- package/dist/components/{p-70e8e66f.entry.js → p-e210ddbb.entry.js} +1 -1
- package/dist/components/p-e5892379.entry.js +1 -0
- package/dist/components/p-e8374410.entry.js +1 -0
- package/dist/components/p-e90da4ba.entry.js +1 -0
- package/dist/components/p-ec706eed.entry.js +1 -0
- package/dist/components/{p-28ae3f3a.js → p-efbc374c.js} +2 -2
- package/dist/components/p-f2abe4d8.js +1 -0
- package/dist/components/p-f32963ff.entry.js +9 -0
- package/dist/components/p-f40dd50d.entry.js +1 -0
- package/dist/components/p-f6012c17.entry.js +1 -0
- package/dist/components/p-fcba31fa.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 +13 -3
- package/dist/components/token-list2.js +1 -1
- package/dist/components/token-radii2.js +1 -1
- package/dist/components/token-ratios.js +1 -1
- package/dist/components/token-shadows2.js +1 -1
- package/dist/components/token-spacing.js +1 -1
- package/dist/components/token-typography.js +1 -1
- package/dist/components/view.js +3 -0
- package/dist/esm/clone-dab56639.js +3 -0
- package/dist/esm/color-primary-palette_6.entry.js +15 -15
- package/dist/esm/components-section.entry.js +2 -2
- 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/edit-3893a517.js +3 -0
- package/dist/esm/{eds-avatar_26.entry.js → eds-accordion_33.entry.js} +3462 -159
- package/dist/esm/eds-app-root.entry.js +2 -2
- package/dist/esm/eds-card-desc_2.entry.js +3 -3
- package/dist/esm/eds-card-generic.entry.js +1 -1
- package/dist/esm/eds-card-project.entry.js +2 -2
- package/dist/esm/eds-card-section.entry.js +1 -1
- package/dist/esm/eds-card-tags.entry.js +2 -2
- package/dist/esm/eds-card-tool.entry.js +2 -2
- package/dist/esm/eds-cookies-preference.entry.js +2 -2
- package/dist/esm/eds-feedback.entry.js +2 -2
- package/dist/esm/eds-footer.entry.js +9 -3
- package/dist/esm/eds-frame.entry.js +2 -2
- package/dist/esm/eds-fullscreen-menu.entry.js +1 -1
- package/dist/esm/eds-gauge.entry.js +2 -2
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
- package/dist/esm/eds-icon-arrow-right.entry.js +2 -2
- package/dist/esm/eds-icon-bin.entry.js +2 -2
- package/dist/esm/eds-icon-bluesky.entry.js +2 -2
- package/dist/esm/eds-icon-bookmark.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-down.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-left.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-right.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-up.entry.js +2 -2
- package/dist/esm/eds-icon-clone.entry.js +14 -0
- package/dist/esm/eds-icon-close.entry.js +2 -2
- package/dist/esm/eds-icon-copy.entry.js +2 -2
- package/dist/esm/eds-icon-draft.entry.js +2 -2
- package/dist/esm/eds-icon-edit.entry.js +3 -3
- package/dist/esm/eds-icon-eu.entry.js +2 -2
- package/dist/esm/eds-icon-external.entry.js +2 -2
- package/dist/esm/eds-icon-facebook.entry.js +2 -2
- package/dist/esm/eds-icon-gitlab.entry.js +2 -2
- package/dist/esm/eds-icon-linkedin.entry.js +2 -2
- package/dist/esm/eds-icon-loader.entry.js +2 -2
- package/dist/esm/eds-icon-mastodon.entry.js +2 -2
- package/dist/esm/eds-icon-menu.entry.js +2 -2
- package/dist/esm/eds-icon-minus.entry.js +2 -2
- package/dist/esm/eds-icon-more.entry.js +2 -2
- package/dist/esm/eds-icon-paper.entry.js +2 -2
- package/dist/esm/eds-icon-plus.entry.js +2 -2
- package/dist/esm/eds-icon-portal.entry.js +2 -2
- package/dist/esm/eds-icon-private.entry.js +2 -2
- package/dist/esm/eds-icon-public.entry.js +2 -2
- package/dist/esm/eds-icon-search.entry.js +2 -2
- package/dist/esm/eds-icon-star.entry.js +2 -2
- package/dist/esm/eds-icon-start.entry.js +2 -2
- package/dist/esm/eds-icon-success.entry.js +2 -2
- package/dist/esm/eds-icon-thumbs-down.entry.js +2 -2
- package/dist/esm/eds-icon-thumbs-up.entry.js +2 -2
- package/dist/esm/eds-icon-tutorial.entry.js +2 -2
- package/dist/esm/eds-icon-twitter.entry.js +2 -2
- package/dist/esm/eds-icon-unknown.entry.js +2 -2
- package/dist/esm/eds-icon-updown.entry.js +2 -2
- package/dist/esm/eds-icon-user.entry.js +2 -2
- package/dist/esm/eds-icon-view.entry.js +14 -0
- package/dist/esm/eds-icon-youtube.entry.js +2 -2
- package/dist/esm/eds-modal.entry.js +3 -3
- package/dist/esm/eds-pie.entry.js +1 -1
- package/dist/esm/eds-progress-bar.entry.js +2 -2
- package/dist/esm/eds-section-core_2.entry.js +4 -4
- package/dist/esm/eds-social-networks.entry.js +2 -2
- package/dist/esm/eds-spinner.entry.js +2 -2
- package/dist/esm/eds-splash-screen.entry.js +1 -1
- package/dist/esm/eds-timeline.entry.js +2 -2
- package/dist/esm/eds-toast-manager.entry.js +2 -2
- package/dist/esm/eds-tooltip.entry.js +2 -2
- package/dist/esm/eds-trl.entry.js +2 -2
- package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
- package/dist/esm/{index-fdb33359.js → index-e84b871c.js} +15 -28
- 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 +8 -4
- package/dist/esm/token-list_3.entry.js +4 -4
- package/dist/esm/token-ratios.entry.js +2 -2
- package/dist/esm/token-spacing.entry.js +2 -2
- package/dist/esm/token-typography.entry.js +2 -2
- package/dist/esm/view-e900f2d4.js +3 -0
- package/dist/hydrate/index.js +690 -257
- package/dist/hydrate/index.mjs +690 -257
- package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +3 -1
- package/dist/types/components/eds-alert/eds-alert.d.ts +6 -0
- package/dist/types/components/eds-button/eds-button.d.ts +1 -0
- package/dist/types/components/eds-icons/eds-icon-clone/eds-icon-clone.d.ts +10 -0
- package/dist/types/components/eds-icons/eds-icon-view/eds-icon-view.d.ts +10 -0
- package/dist/types/components/eds-link/eds-link.d.ts +1 -0
- package/dist/types/components/eds-nps/eds-npm.stories.d.ts +28 -0
- package/dist/types/components/eds-nps/eds-nps.d.ts +20 -0
- package/dist/types/components/eds-pagination/eds-pagination.d.ts +23 -2
- package/dist/types/components/eds-rating/eds-rating.d.ts +3 -1
- package/dist/types/components/eds-switch/eds-switch.d.ts +1 -0
- package/dist/types/components/eds-table/eds-table.d.ts +3 -4
- package/dist/types/components/eds-table/eds-table.stories.d.ts +7 -2
- package/dist/types/components.d.ts +133 -12
- package/dist/types/shared-ui/eds-form/eds-form.d.ts +1 -0
- package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +7 -9
- package/dist/types/utils/eds-form/formValidators.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/edit-5714c144.js +0 -5
- package/dist/cjs/eds-accordion.cjs.entry.js +0 -87
- package/dist/cjs/eds-alert.cjs.entry.js +0 -104
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -145
- package/dist/cjs/eds-code-block.cjs.entry.js +0 -2489
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +0 -125
- package/dist/cjs/eds-switch.cjs.entry.js +0 -46
- package/dist/components/p-023bc47c.entry.js +0 -1
- package/dist/components/p-02df910c.entry.js +0 -1
- package/dist/components/p-0be79e08.entry.js +0 -1
- package/dist/components/p-0e74d8b4.entry.js +0 -1
- package/dist/components/p-11efb1d1.entry.js +0 -1
- package/dist/components/p-1791ce82.entry.js +0 -1
- package/dist/components/p-19d586e6.entry.js +0 -1
- package/dist/components/p-2679926c.entry.js +0 -1
- package/dist/components/p-2d1a7471.entry.js +0 -1
- package/dist/components/p-2ff16a39.entry.js +0 -1
- package/dist/components/p-32e18e48.entry.js +0 -1
- package/dist/components/p-38e99d4b.entry.js +0 -1
- package/dist/components/p-4088ae0e.entry.js +0 -1
- package/dist/components/p-4277fb1a.entry.js +0 -1
- package/dist/components/p-42a73db4.entry.js +0 -1
- package/dist/components/p-44055e68.entry.js +0 -1
- package/dist/components/p-4a5d0dcd.entry.js +0 -1
- package/dist/components/p-4a7412ec.entry.js +0 -1
- package/dist/components/p-4b88d84c.entry.js +0 -1
- package/dist/components/p-50f43dfd.entry.js +0 -1
- package/dist/components/p-562afa88.entry.js +0 -1
- package/dist/components/p-5aa4065a.entry.js +0 -1
- package/dist/components/p-5ae1c931.entry.js +0 -1
- package/dist/components/p-634258e6.entry.js +0 -1
- package/dist/components/p-68f45098.entry.js +0 -1
- package/dist/components/p-73a44c48.entry.js +0 -1
- package/dist/components/p-7dbe791f.entry.js +0 -1
- package/dist/components/p-7ec52188.entry.js +0 -1
- package/dist/components/p-7fc84bb2.js +0 -1
- package/dist/components/p-82559816.entry.js +0 -1
- package/dist/components/p-85683b18.entry.js +0 -1
- package/dist/components/p-8681e5d8.entry.js +0 -1
- package/dist/components/p-877d13d9.entry.js +0 -1
- package/dist/components/p-911b1c0b.entry.js +0 -1
- package/dist/components/p-960aa103.entry.js +0 -1
- package/dist/components/p-996005b7.entry.js +0 -1
- package/dist/components/p-aa5e75b4.entry.js +0 -1
- package/dist/components/p-ae9393b6.entry.js +0 -1
- package/dist/components/p-af137162.entry.js +0 -1
- package/dist/components/p-b630e51a.entry.js +0 -1
- package/dist/components/p-bb9af709.entry.js +0 -1
- package/dist/components/p-c2dc3692.entry.js +0 -1
- package/dist/components/p-c91b4eec.entry.js +0 -1
- package/dist/components/p-caff3355.entry.js +0 -1
- package/dist/components/p-ce66ea37.entry.js +0 -1
- package/dist/components/p-d4f239d7.entry.js +0 -1
- package/dist/components/p-d7251d4d.entry.js +0 -1
- package/dist/components/p-deb9bbed.entry.js +0 -1
- package/dist/components/p-ed4d9bf5.entry.js +0 -1
- package/dist/components/p-ed7696a2.entry.js +0 -1
- package/dist/components/p-f2416727.entry.js +0 -1
- package/dist/components/p-f28b5da7.entry.js +0 -1
- package/dist/components/p-f3839914.entry.js +0 -1
- package/dist/components/p-f42b6251.entry.js +0 -1
- package/dist/components/p-f7a31196.entry.js +0 -1
- package/dist/components/p-f973c83b.entry.js +0 -1
- package/dist/components/p-fe167c78.entry.js +0 -9
- package/dist/esm/edit-1dc8d11b.js +0 -3
- package/dist/esm/eds-accordion.entry.js +0 -83
- package/dist/esm/eds-alert.entry.js +0 -100
- package/dist/esm/eds-breadcrumb.entry.js +0 -141
- package/dist/esm/eds-code-block.entry.js +0 -2485
- package/dist/esm/eds-matomo-notice.entry.js +0 -121
- package/dist/esm/eds-switch.entry.js +0 -42
- /package/dist/collection/shared-ui/eds-toast-manager/{eds-toast-manager.stories.js → eds-toast-manager.st.js} +0 -0
- /package/dist/types/shared-ui/eds-toast-manager/{eds-toast-manager.stories.d.ts → eds-toast-manager.st.d.ts} +0 -0
package/dist/hydrate/index.js
CHANGED
|
@@ -127,7 +127,7 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
const NAMESPACE = 'components';
|
|
130
|
-
const BUILD = /* components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus:
|
|
130
|
+
const BUILD = /* components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
131
131
|
|
|
132
132
|
/*
|
|
133
133
|
Stencil Hydrate Platform v4.22.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -1911,7 +1911,10 @@ function proxyHostElement(elm, cmpMeta) {
|
|
|
1911
1911
|
}
|
|
1912
1912
|
if (!elm.shadowRoot && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1913
1913
|
{
|
|
1914
|
-
elm.attachShadow({
|
|
1914
|
+
elm.attachShadow({
|
|
1915
|
+
mode: "open",
|
|
1916
|
+
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
1917
|
+
});
|
|
1915
1918
|
}
|
|
1916
1919
|
}
|
|
1917
1920
|
if (cmpMeta.$members$ != null) {
|
|
@@ -2331,7 +2334,7 @@ class ColorPrimaryPalette {
|
|
|
2331
2334
|
];
|
|
2332
2335
|
}
|
|
2333
2336
|
render() {
|
|
2334
|
-
return (hAsync("ul", { key: '
|
|
2337
|
+
return (hAsync("ul", { key: '1de5ded5c58ad27b388c8c1af7938944cbea5096', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
2335
2338
|
}
|
|
2336
2339
|
static get cmpMeta() { return {
|
|
2337
2340
|
"$flags$": 0,
|
|
@@ -2403,7 +2406,7 @@ class ColorSecondaryPalette {
|
|
|
2403
2406
|
this.show = undefined;
|
|
2404
2407
|
}
|
|
2405
2408
|
render() {
|
|
2406
|
-
return (hAsync("ul", { key: '
|
|
2409
|
+
return (hAsync("ul", { key: '8346b6b6278e8e0c837722d760aa314586ece7f4', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
2407
2410
|
}
|
|
2408
2411
|
static get cmpMeta() { return {
|
|
2409
2412
|
"$flags$": 0,
|
|
@@ -2477,7 +2480,7 @@ class ColorSupportPalette {
|
|
|
2477
2480
|
return 'text-default';
|
|
2478
2481
|
}
|
|
2479
2482
|
render() {
|
|
2480
|
-
return (hAsync("ul", { key: '
|
|
2483
|
+
return (hAsync("ul", { key: '70965eb05a6b535bf4477e7413f7fd681c4f9768', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => {
|
|
2481
2484
|
// compute once
|
|
2482
2485
|
const textClass = this.getTextColor(color.background);
|
|
2483
2486
|
return (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: `f-body-02 ${textClass}` }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' }, class: textClass })), hAsync("div", { class: "grid" }, hAsync("span", { class: `f-body-02 ${textClass}` }, color.pantoneC), hAsync("span", { class: `f-body-02 ${textClass}` }, color.pantoneU)))));
|
|
@@ -2630,7 +2633,7 @@ class ComponentsSection {
|
|
|
2630
2633
|
}
|
|
2631
2634
|
}
|
|
2632
2635
|
render() {
|
|
2633
|
-
return hAsync("div", { key: '
|
|
2636
|
+
return hAsync("div", { key: 'dc274e3d76a296c8a8b18abcc4fc8741a6b9eddd', class: "container" }, this.renderContent());
|
|
2634
2637
|
}
|
|
2635
2638
|
static get cmpMeta() { return {
|
|
2636
2639
|
"$flags$": 0,
|
|
@@ -2708,7 +2711,7 @@ class CorrectUseOfColors {
|
|
|
2708
2711
|
registerInstance(this, hostRef);
|
|
2709
2712
|
}
|
|
2710
2713
|
render() {
|
|
2711
|
-
return (hAsync("div", { key: '
|
|
2714
|
+
return (hAsync("div", { key: '6a68ca6961f662740e3981dc788b99e3d4a0d420', class: "container" }, hAsync("p", { key: '3b7f675d96b1101c2d2a623082ab1987e06754de', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'cd4b48453834b32cf70aded20b3ebfc0109732cc', label: "primary", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '9c2d1c2d669bfef26b0ea45b113f727420d4a8c5', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '651d2e4bce17a2740372c1b56e772f12c906e45c', class: "flex" }, hAsync("div", { key: 'dd7b40bf2c9be26367cf4d65df0e93d5590b34e9', class: "w-full" }, hAsync("ul", { key: '62cb53477517807ad9535ca3b4474cf115f5ec03', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: 'bb8be387a4abe956a4941db1b381d25eee435453', class: "w-full" }, hAsync("ul", { key: '60834108dbdcc6872ff5cfd1509f08ca94847854', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: 'b3cdb208264e8d62b144dc9eb912501d3d59e35d', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '8b358d8027c603aab384028568acfba889df7f25', label: "purple", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '9712b5e1c2433f9b707469e4d9fde547ec14f7d9', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: 'cfb5e4ada2dab6de1e4df810f9eaae0abbabd864', class: "flex" }, hAsync("div", { key: 'c83e1bcd91700f4fc9eada969f9d349b6976b835', class: "w-full" }, hAsync("ul", { key: 'c0c6a2a223013a5cb7b0545d59eaea8b66454f65', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, purple$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '7b1ce7da35db835a2db620c0b4d97199f85070e5', class: "w-full" }, hAsync("ul", { key: '2a2f9e1d29a523d5b419ae27aa1df8f892f440e7', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: 'c6746faf400941b4eb92eb2b520a3a817615da9d', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '89405406d127380e8b5872357cfba121a17adc3c', label: "blue", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: 'a7c21a6afb1eb69e9e4cb5046f65c9a4fb193837', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '6097c0091a2c06e6e9e9e13db41329200a78d2d6', class: "flex" }, hAsync("div", { key: 'e8c272ad9b1066500d940044fd86a6c6dc52264f', class: "w-full" }, hAsync("ul", { key: '2902c01c108d7893d7e30e6401560034a2ed7a0f', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, blue.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: 'eca739bb09d6b509c1433069595a7e6fe9be38f2', class: "w-full" }, hAsync("ul", { key: 'cf0578a5943f54a98c6433e584397c0787ad0b4b', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: 'ead17e9a75227b4731116506bfbf9a2c656b37a9', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'd4e615ea5cc1c0a144ef0c2e0bd019ae9d58e3e8', label: "redish", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '52fe22c1055d44e4b6d772c0863abb72ffa49b5b', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '28487bfa952d4b2611ae1b03f71fdc6d5c46f2e7', class: "flex" }, hAsync("div", { key: '5cd6b4413b345bc81a69fcdfc0a723e4f1c2f438', class: "w-full" }, hAsync("ul", { key: 'c9ef7fe0eff085bb342d501f6505435220985214', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, red$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '65a67a40bc7cf64c19bbb1448813b1c34633cc60', class: "w-full" }, hAsync("ul", { key: '4f26bdccba86cba74da820c500f630d88b846631', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
2712
2715
|
}
|
|
2713
2716
|
static get cmpMeta() { return {
|
|
2714
2717
|
"$flags$": 0,
|
|
@@ -2747,7 +2750,7 @@ class DocsContent {
|
|
|
2747
2750
|
}
|
|
2748
2751
|
}
|
|
2749
2752
|
render() {
|
|
2750
|
-
return hAsync("div", { key: '
|
|
2753
|
+
return hAsync("div", { key: '86455a5f05b74d8d751a5d17ecf58c0046e8d0a3', class: "container" }, this.renderContent());
|
|
2751
2754
|
}
|
|
2752
2755
|
static get cmpMeta() { return {
|
|
2753
2756
|
"$flags$": 0,
|
|
@@ -2780,7 +2783,7 @@ class DocsPalettes {
|
|
|
2780
2783
|
}
|
|
2781
2784
|
}
|
|
2782
2785
|
render() {
|
|
2783
|
-
return hAsync("div", { key: '
|
|
2786
|
+
return hAsync("div", { key: '82b8de086298568ed7bbb4717da0f6f19ff9677c', class: "container" }, this.renderContent());
|
|
2784
2787
|
}
|
|
2785
2788
|
static get cmpMeta() { return {
|
|
2786
2789
|
"$flags$": 0,
|
|
@@ -2941,7 +2944,7 @@ class EdsAccordion {
|
|
|
2941
2944
|
return (hAsync("div", { key: '1abfd8bfea763bc10e6f17148dbc252d0c3ffdea', ref: (el) => (this.wrapperRef = el), class: `flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
2942
2945
|
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
2943
2946
|
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
2944
|
-
${this.description ? 'min-h-56' : ''}` }, hAsync("h3", { key: '137a3311195d51f46c6677558219828e5f4d06b5', ref: (el) => (this.headerRef = el), class: "mr-auto f-heading-06 text-left absolute inset-x-16 break-words top-16 pr-40" }, this.heading), hAsync("div", { key: '0fc6d493fd61726a53a8c4311bd183eb3ad5b270', class: "ml-auto" }, hAsync("eds-button", { key: '
|
|
2947
|
+
${this.description ? 'min-h-56' : ''}` }, hAsync("h3", { key: '137a3311195d51f46c6677558219828e5f4d06b5', ref: (el) => (this.headerRef = el), class: "mr-auto f-heading-06 text-left absolute inset-x-16 break-words top-16 pr-40" }, this.heading), hAsync("div", { key: '0fc6d493fd61726a53a8c4311bd183eb3ad5b270', class: "ml-auto" }, hAsync("eds-button", { key: 'cb8182e05c5c11950c0e624ce6b11e27a4d506ab', id: "toggleAccordion", intent: this.buttonIntent, "aria-expanded": this.isExpanded || this.shortContent, "aria-label": "Toggle accordion", "aria-controls": "accordionSection", class: `effect-color flex w-full items-center justify-between rounded-md`, onClick: this.handleClick, icon: "chevron-down" })), hAsync("div", { key: '084bfb116dcccadf7253ca8ac8de6a1e1d4aa41f', class: `w-full`, style: Number.isFinite(this.headerHeight) ? { marginTop: `${this.headerHeight}px` } : {} }, this.description ? (hAsync("span", { class: `text-light ${!this.isExpanded && this.clampText ? 'line-clamp-1' : ''}` }, this.description)) : null, hAsync("section", { key: 'c332a210fa4ce90f1974098ff790a7600dfb1721', id: "accordionSection", "aria-labelledby": "accordionHeader", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded && this.clampText ? 'overflow-hidden' : ''}`, style: { height: this.isExpanded ? 'auto' : '0' } }, hAsync("div", { key: '842bc3bc7a968ef5a428a97327f38253e8a32888', ref: (el) => (this.childContentRef = el), class: `accordion-content effect-color pt-4`, "aria-hidden": !this.isExpanded }, hAsync("span", { key: '7c8fa8040da18cc2c128b42cdf9e75bfffe4c439', class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}` }, hAsync("slot", { key: '852837c0c8c9d8a36f6263f7a943f50d82563a3c' })))))));
|
|
2945
2948
|
}
|
|
2946
2949
|
get el() { return getElement(this); }
|
|
2947
2950
|
static get style() { return EdsAccordionStyle0; }
|
|
@@ -3078,6 +3081,7 @@ const alertStyles = cva(['w-full bg-dark'], {
|
|
|
3078
3081
|
class EdsAlert {
|
|
3079
3082
|
constructor(hostRef) {
|
|
3080
3083
|
registerInstance(this, hostRef);
|
|
3084
|
+
this.edsalert = createEvent(this, "edsalert", 7);
|
|
3081
3085
|
this.message = undefined;
|
|
3082
3086
|
this.pressableLabel = undefined;
|
|
3083
3087
|
this.pressableUrl = undefined;
|
|
@@ -3090,6 +3094,11 @@ class EdsAlert {
|
|
|
3090
3094
|
this.withBtn = Boolean(this.pressableLabel);
|
|
3091
3095
|
}
|
|
3092
3096
|
componentDidLoad() {
|
|
3097
|
+
// Focus the alert container for immediate screen reader announcement
|
|
3098
|
+
/*if (this.intent === 'error' || this.intent === 'warning') {
|
|
3099
|
+
this.el.shadowRoot?.querySelector('[role="alert"]')?.setAttribute('tabindex', '-1');
|
|
3100
|
+
(this.el.shadowRoot?.querySelector('[role="alert"]') as HTMLElement)?.focus();
|
|
3101
|
+
}*/
|
|
3093
3102
|
var _a;
|
|
3094
3103
|
// Query for the 'eds-link' element inside the shadow root.
|
|
3095
3104
|
const lnk = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('eds-link');
|
|
@@ -3106,14 +3115,18 @@ class EdsAlert {
|
|
|
3106
3115
|
});
|
|
3107
3116
|
linkElement.dispatchEvent(event);
|
|
3108
3117
|
}
|
|
3118
|
+
handleAction() {
|
|
3119
|
+
// Emit the alertAction event for parent components to handle
|
|
3120
|
+
this.edsalert.emit();
|
|
3121
|
+
}
|
|
3109
3122
|
render() {
|
|
3110
|
-
|
|
3123
|
+
const ariaLabel = this.intent !== 'default' ? `${this.intent} alert` : 'alert';
|
|
3124
|
+
return (hAsync("div", { key: '2d22944e7ae86cf2523c194e20215a3d986083d9', class: alertStyles({
|
|
3111
3125
|
intent: this.intent,
|
|
3112
3126
|
brd: this.brd,
|
|
3113
3127
|
direction: this.direction,
|
|
3114
3128
|
withBtn: this.withBtn
|
|
3115
|
-
}), role: "alert" }, hAsync("p", { key: '
|
|
3116
|
-
(this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : null)));
|
|
3129
|
+
}), role: "alert", "aria-label": ariaLabel, "aria-live": this.intent === 'error' ? 'assertive' : 'polite', "aria-labelledby": "alert-message", "aria-describedby": this.withBtn ? 'alert-action' : undefined }, hAsync("p", { key: 'b6c22446b0d87fb01a3cb882fe205ef48ea60b05', id: "alert-message", class: "f-ui-01 py-8", innerHTML: this.message }), this.withBtn && (hAsync("div", { key: '8414820eb7b65c83459cfb90adef3ea696e42444', id: "alert-action" }, this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : (hAsync("eds-button", { class: "eds-alert-button", label: this.pressableLabel, intent: "secondary", onClick: () => this.handleAction() }))))));
|
|
3117
3130
|
}
|
|
3118
3131
|
get el() { return getElement(this); }
|
|
3119
3132
|
static get style() { return EdsAlertStyle0; }
|
|
@@ -3164,7 +3177,7 @@ class EdsAppRoot {
|
|
|
3164
3177
|
this.combinedInitPromise = Promise.all([initKeycloakPromise, authStatusPromise]);
|
|
3165
3178
|
}
|
|
3166
3179
|
render() {
|
|
3167
|
-
return (hAsync("div", { key: '
|
|
3180
|
+
return (hAsync("div", { key: '36bb7790b9e035749548410ba1d54092c7a40810' }, hAsync("eds-splash-screen", { key: '7be473b1c48f0ab2549077d7619a1dbd3a1fd90c', inverse: true, initPromise: this.combinedInitPromise }), hAsync("eds-login", { key: '824affc8c670317f2c1b8a22b9fe6223a477d364', "keycloak-url": "http://localhost:8080", "keycloak-realm": "nigeor-realm", "keycloak-client-id": "stencil-app" }), hAsync("main", { key: 'c5f6f9dae8608a49d3c47139f33735236a65091c' }, this.isAuthenticated ? hAsync("h1", null, "Welcome, authenticated user!") : hAsync("h1", null, "Please log in."))));
|
|
3168
3181
|
}
|
|
3169
3182
|
static get cmpMeta() { return {
|
|
3170
3183
|
"$flags$": 9,
|
|
@@ -3247,7 +3260,7 @@ class EdsAvatar {
|
|
|
3247
3260
|
* @returns {JSX.Element} The rendered avatar component.
|
|
3248
3261
|
*/
|
|
3249
3262
|
render() {
|
|
3250
|
-
return (hAsync("div", { key: '
|
|
3263
|
+
return (hAsync("div", { key: '34e86e50b1176efd8ae0cd9b30cd3823527d7eee', class: this.containerClasses }, this.picture ? (hAsync("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: true, withBg: true })) : (hAsync("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials))));
|
|
3251
3264
|
}
|
|
3252
3265
|
static get style() { return EdsAvatarStyle0; }
|
|
3253
3266
|
static get cmpMeta() { return {
|
|
@@ -3278,7 +3291,7 @@ class EdsBlockBreak {
|
|
|
3278
3291
|
this.inverse = false;
|
|
3279
3292
|
}
|
|
3280
3293
|
render() {
|
|
3281
|
-
return hAsync("hr", { key: '
|
|
3294
|
+
return hAsync("hr", { key: '688e11c730af1193f28db196cd144c6dd2efc3c6', class: `${this.inverse ? 'border-default' : 'border-softer'} my-16 inline-block w-full border-t-2` });
|
|
3282
3295
|
}
|
|
3283
3296
|
static get style() { return EdsBlockBreakStyle0; }
|
|
3284
3297
|
static get cmpMeta() { return {
|
|
@@ -3438,7 +3451,7 @@ class EdsBreadcrumb {
|
|
|
3438
3451
|
*/
|
|
3439
3452
|
render() {
|
|
3440
3453
|
const itemsToRender = this.getTruncatedItems();
|
|
3441
|
-
return (hAsync("nav", { key: '
|
|
3454
|
+
return (hAsync("nav", { key: '0625a234ec9f5095abbeaafa11e56bceb0432764', "aria-label": "Breadcrumb" }, hAsync("ol", { key: '3898a4b048eca6c606a6948b26ec25a608cb908e', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3442
3455
|
const isLast = index === itemsToRender.length - 1;
|
|
3443
3456
|
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
|
|
3444
3457
|
const { fullLabel } = this.getLabels(item, isLast);
|
|
@@ -3474,7 +3487,7 @@ class EdsBreadcrumb {
|
|
|
3474
3487
|
}; }
|
|
3475
3488
|
}
|
|
3476
3489
|
|
|
3477
|
-
const edsButtonCss = "*,\n::before,\n::after {\n box-sizing: border-box;\n border-width: 0;\n border-style: solid;\n border-color: currentColor;\n}\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\n 1. Change the font styles in all browsers.\n 2. Remove the margin in Firefox and Safari.\n 3. Remove default padding in all browsers.\n */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n font-size: 100%;\n font-weight: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n color: inherit;\n margin: 0;\n padding: 0;\n}\n\n/*\n Remove the inheritance of text transform in Edge and Firefox.\n */\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n 1. Correct the inability to style clickable types in iOS and Safari.\n 2. Remove default button styles.\n */\nbutton,\ninput:where([type='button']),\ninput:where([type='reset']),\ninput:where([type='submit']) {\n -webkit-appearance: button;\n /* 1 */\n background-color: transparent;\n /* 2 */\n background-image: none;\n /* 2 */\n}\n\np {\n margin: 0;\n}\n\n/*\n Set the default cursor for buttons.\n */\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\n Make sure disabled buttons don't get the pointer cursor.\n */\n:disabled {\n cursor: default;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n.f-body-01 {\n font-family: var(--f-body-01-fontFamily);\n font-weight: var(--f-body-01-fontWeight);\n font-size: var(--f-body-01-fontSize);\n line-height: var(--f-body-01-lineHeight);\n letter-spacing: var(--f-body-01-letterSpacing);\n}\n\n.f-body-02 {\n font-family: var(--f-body-02-fontFamily);\n font-weight: var(--f-body-02-fontWeight);\n font-size: var(--f-body-02-fontSize);\n line-height: var(--f-body-02-lineHeight);\n letter-spacing: var(--f-body-02-letterSpacing);\n}\n\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n\n.f-ui-02 {\n font-family: var(--f-ui-02-fontFamily);\n font-weight: var(--f-ui-02-fontWeight);\n font-size: var(--f-ui-02-fontSize);\n line-height: var(--f-ui-02-lineHeight);\n letter-spacing: var(--f-ui-02-letterSpacing);\n}\n\n.border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border-color: rgba(0, 0, 0, .1);\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-inverse {\n &::after {\n border-color: rgba(255, 255, 255, 0.3);\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-pill {\n &::after {\n border-radius: 100px;\n }\n\n &::after {\n content: '';\n }\n}\n\n.loader {\n box-sizing: border-box;\n display: inline-block;\n height: 1rem;\n width: 1rem;\n}\n\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n.loader {\n animation: spin 1s linear infinite;\n border-radius: 9999px;\n border: 3px solid rgba(0, 0, 0, .3);\n border-bottom-color: #000;\n}\n\n/** region TRANSITIONS */\n.effect-color {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n\n.effect-focus {\n outline-width: 3px;\n outline-offset: 2px;\n outline-color: var(--green-500);\n}\n\n.effect-focus:focus-visible {\n outline-style: solid;\n}\n\n.effect-focus-within {\n outline-width: 3px;\n outline-offset: 2px;\n outline-color: var(--green-500);\n}\n\n.effect-focus-within:focus-within {\n outline-style: solid;\n}\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.pointer-events-none {\n pointer-events: none;\n}\n\n.static {\n position: static;\n}\n\n.fixed {\n position: fixed;\n}\n\n.absolute {\n position: absolute;\n}\n\n.relative {\n position: relative;\n}\n\n.sticky {\n position: sticky;\n}\n\n.inset-0 {\n inset: 0rem;\n}\n\n.inset-x-16 {\n left: 1rem;\n right: 1rem;\n}\n\n.-top-8 {\n top: -0.5rem;\n}\n\n.left-0 {\n left: 0rem;\n}\n\n.left-1\\/2 {\n left: 50%;\n}\n\n.left-4 {\n left: 0.25rem;\n}\n\n.left-\\[4px\\] {\n left: 4px;\n}\n\n.right-0 {\n right: 0rem;\n}\n\n.right-4 {\n right: 0.25rem;\n}\n\n.right-8 {\n right: 0.5rem;\n}\n\n.right-\\[6px\\] {\n right: 6px;\n}\n\n.top-0 {\n top: 0rem;\n}\n\n.top-1\\/2 {\n top: 50%;\n}\n\n.m-0 {\n margin: 0rem;\n}\n\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n\n.-ml-16 {\n margin-left: -1rem;\n}\n\n.-mr-16 {\n margin-right: -1rem;\n}\n\n.ml-0 {\n margin-left: 0rem;\n}\n\n.ml-4 {\n margin-left: 0.25rem;\n}\n\n.ml-64 {\n margin-left: 4rem;\n}\n\n.ml-8 {\n margin-left: 0.5rem;\n}\n\n.ml-auto {\n margin-left: auto;\n}\n\n.mr-4 {\n margin-right: 0.25rem;\n}\n\n.mr-8 {\n margin-right: 0.5rem;\n}\n\n.mr-auto {\n margin-right: auto;\n}\n\n.block {\n display: block;\n}\n\n.inline-block {\n display: inline-block;\n}\n\n.inline {\n display: inline;\n}\n\n.flex {\n display: flex;\n}\n\n.inline-flex {\n display: inline-flex;\n}\n\n.hidden {\n display: none;\n}\n\n.h-20 {\n height: 1.25rem;\n}\n\n.h-24 {\n height: 1.5rem;\n}\n\n.h-36 {\n height: 2.25rem;\n}\n\n.h-44 {\n height: 2.75rem;\n}\n\n.h-auto {\n height: auto;\n}\n\n.h-full {\n height: 100%;\n}\n\n.\\!min-h-20 {\n min-height: 1.25rem !important;\n}\n\n.min-h-screen {\n min-height: 100vh;\n}\n\n.w-20 {\n width: 1.25rem;\n}\n\n.w-full {\n width: 100%;\n}\n\n.flex-none {\n flex: none;\n}\n\n.grow {\n flex-grow: 1;\n}\n\n.cursor-pointer {\n cursor: pointer;\n}\n\n.resize {\n resize: both;\n}\n\n.flex-row {\n flex-direction: row;\n}\n\n.flex-row-reverse {\n flex-direction: row-reverse;\n}\n\n.flex-col {\n flex-direction: column;\n}\n\n.flex-wrap {\n flex-wrap: wrap;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.space-x-2> :not([hidden])~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.125rem * var(--tw-space-x-reverse));\n margin-left: calc(0.125rem * calc(1 - var(--tw-space-x-reverse)));\n}\n\n.overflow-hidden {\n overflow: hidden;\n}\n\n.overflow-x-auto {\n overflow-x: auto;\n}\n\n.overflow-x-hidden {\n overflow-x: hidden;\n}\n\n.overflow-y-scroll {\n overflow-y: scroll;\n}\n\n.whitespace-nowrap {\n white-space: nowrap;\n}\n\n.break-words {\n overflow-wrap: break-word;\n}\n\n.rounded {\n border-radius: 0.25rem;\n}\n\n.rounded-full {\n border-radius: 9999px;\n}\n\n.rounded-lg {\n border-radius: 16px;\n}\n\n.rounded-md {\n border-radius: 12px;\n}\n\n.rounded-pill {\n border-radius: 100px;\n}\n\n.rounded-sm {\n border-radius: 8px;\n}\n\n.rounded-xxs {\n border-radius: 2px;\n}\n\n.border {\n border-width: 1px;\n}\n\n.border-\\[\\#0034CB\\] {\n --tw-border-opacity: 1;\n border-color: rgb(0 52 203 / var(--tw-border-opacity));\n}\n\n.border-\\[\\#d2d2d2\\] {\n --tw-border-opacity: 1;\n border-color: rgb(210 210 210 / var(--tw-border-opacity));\n}\n\n.border-softest {\n border-color: rgba(0, 0, 0, .05);\n}\n\n.border-b-softer {\n border-bottom-color: rgba(0, 0, 0, .1);\n}\n\n.\\!bg-accent-dark {\n background-color: var(--green-600) !important;\n}\n\n.\\!bg-darker {\n background-color: var(--grey-400) !important;\n}\n\n.\\!bg-strong-dark {\n background-color: var(--grey-800) !important;\n}\n\n.bg-accent {\n background-color: var(--green-500);\n}\n\n.bg-accent-dark {\n background-color: var(--green-600);\n}\n\n.bg-dark {\n background-color: var(--grey-300);\n}\n\n.bg-darker {\n background-color: var(--grey-400);\n}\n\n.bg-overlay {\n background-color: rgba(0, 0, 0, 0.25);\n}\n\n.bg-strong {\n background-color: var(--grey-700);\n}\n\n.bg-strong-dark {\n background-color: var(--grey-800);\n}\n\n.bg-stronger {\n background-color: var(--grey-900);\n}\n\n.bg-strongest {\n background-color: var(--black);\n}\n\n.p-12 {\n padding: 0.75rem;\n}\n\n.p-6 {\n padding: 0.375rem;\n}\n\n.p-8 {\n padding: 0.5rem;\n}\n\n.\\!px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n}\n\n.px-12 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n\n.px-16 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n\n.py-8 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.pl-4 {\n padding-left: 0.25rem;\n}\n\n.pl-8 {\n padding-left: 0.5rem;\n}\n\n.pr-4 {\n padding-right: 0.25rem;\n}\n\n.pr-8 {\n padding-right: 0.5rem;\n}\n\n.\\!text-current {\n color: currentColor !important;\n}\n\n.text-accent {\n color: var(--green-500);\n}\n\n.text-current {\n color: currentColor;\n}\n\n.text-default {\n color: var(--black);\n}\n\n.text-inverse {\n color: var(--white);\n}\n\n.text-lightest {\n color: var(--grey-500);\n}\n\n.opacity-0 {\n opacity: 0;\n}\n\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.shadow-accent {\n --tw-shadow: 0px 0px 12px rgba(0, 201, 89, 0.6);\n --tw-shadow-colored: 0px 0px 12px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.underline-offset-4 {\n text-underline-offset: 0.2em;\n}\n\n.\\@container {\n container-type: inline-size;\n}\n\n.after\\:effect-opacity::after {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n\n.even\\:bg-inverse-softer:nth-child(even) {\n background-color: rgba(255, 255, 255, .15);\n}\n\n.invalid\\:text-lightest:invalid {\n color: var(--grey-500);\n}\n\n.focus-within\\:bg-transparent:focus-within {\n background-color: var(--transparent);\n}\n\n.hover\\:bg-accent-dark:hover {\n background-color: var(--green-600);\n}\n\n.hover\\:bg-dark:hover {\n background-color: var(--grey-300);\n}\n\n.hover\\:bg-darker:hover {\n background-color: var(--grey-400);\n}\n\n.hover\\:bg-default:hover {\n background-color: var(--grey-200);\n}\n\n.hover\\:bg-inverse:hover {\n background-color: var(--white);\n}\n\n.hover\\:bg-strong-dark:hover {\n background-color: var(--grey-800);\n}\n\n.hover\\:bg-transparent:hover {\n background-color: var(--transparent);\n}\n\n.hover\\:text-default:hover {\n color: var(--black);\n}\n\n.hover\\:text-lighter:hover {\n color: var(--grey-600);\n}\n\n.hover\\:\\!underline:hover {\n text-decoration-line: underline !important;\n}\n\n.hover\\:no-underline:hover {\n text-decoration-line: none;\n}\n\n.hover\\:shadow-hover:hover {\n --tw-shadow: 0px 0px 16px rgba(0, 0, 0, 0.2);\n --tw-shadow-colored: 0px 0px 16px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.focus\\:shadow-none:focus {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n\n.disabled\\:bg-dark:disabled {\n background-color: var(--grey-300);\n}\n\n.disabled\\:text-lightest:disabled {\n color: var(--grey-500);\n}\n\n.aria-disabled\\:cursor-not-allowed[aria-disabled=\"true\"] {\n cursor: not-allowed;\n}\n\n.aria-disabled\\:\\!border-transparent[aria-disabled=\"true\"] {\n border-color: var(--transparent) !important;\n}\n\n.aria-disabled\\:bg-dark[aria-disabled=\"true\"] {\n background-color: var(--grey-300);\n}\n\n.aria-disabled\\:bg-transparent[aria-disabled=\"true\"] {\n background-color: var(--transparent);\n}\n\n.aria-disabled\\:text-light[aria-disabled=\"true\"] {\n color: var(--grey-700);\n}\n\n.aria-disabled\\:text-lightest[aria-disabled=\"true\"] {\n color: var(--grey-500);\n}\n\n.aria-disabled\\:line-through[aria-disabled=\"true\"] {\n text-decoration-line: line-through;\n}\n\n.aria-disabled\\:shadow-none[aria-disabled=\"true\"] {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.aria-current-page\\:bg-darker[aria-current=\"page\"] {\n background-color: var(--grey-400);\n}\n\n.after\\:absolute::after {\n position: absolute;\n}\n\n.after\\:inset-0::after {\n inset: 0rem;\n}\n\n.after\\:inset-x-0::after {\n left: 0rem;\n right: 0rem;\n}\n\n.after\\:bottom-0::after {\n bottom: 0rem;\n}\n\n.after\\:left-16::after {\n left: 1rem;\n}\n\n.after\\:right-16::after {\n right: 1rem;\n}\n\n.after\\:z-10::after {\n z-index: 10;\n}\n\n.after\\:rounded-lg::after {\n border-radius: 16px;\n}\n\n.after\\:rounded-t-lg::after {\n border-top-left-radius: 16px;\n border-top-right-radius: 16px;\n}\n\n.after\\:border-3::after {\n border-width: 3px;\n}\n\n.after\\:border-b-2::after {\n border-bottom-width: 2px;\n}\n\n.after\\:\\!border-transparent::after {\n border-color: var(--transparent) !important;\n}\n\n.after\\:border-accent::after {\n border-color: var(--green-500);\n}\n\n.after\\:border-softest::after {\n border-color: rgba(0, 0, 0, .05);\n}\n\n.after\\:opacity-0::after {\n opacity: 0;\n}\n\n.after\\:content-\\[\\'\\'\\]::after {\n --tw-content: '';\n content: var(--tw-content);\n}\n\n.hover\\:after\\:\\!border-transparent:hover::after {\n border-color: var(--transparent) !important;\n}\n\n.hover\\:after\\:opacity-100:hover::after {\n opacity: 1;\n}\n\n.focus-visible\\:after\\:opacity-100:focus-visible::after {\n opacity: 1;\n}\n\n.aria-disabled\\:after\\:\\!border-transparent[aria-disabled=\"true\"]::after {\n border-color: var(--transparent) !important;\n}\n\n.hover\\:before\\:opacity-100:hover::before {\n opacity: 1;\n}";
|
|
3490
|
+
const edsButtonCss = "*,\n::before,\n::after {\n box-sizing: border-box;\n border-width: 0;\n border-style: solid;\n border-color: currentColor;\n}\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\n 1. Change the font styles in all browsers.\n 2. Remove the margin in Firefox and Safari.\n 3. Remove default padding in all browsers.\n */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n font-size: 100%;\n font-weight: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n color: inherit;\n margin: 0;\n padding: 0;\n}\n\n/*\n Remove the inheritance of text transform in Edge and Firefox.\n */\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n 1. Correct the inability to style clickable types in iOS and Safari.\n 2. Remove default button styles.\n */\nbutton,\ninput:where([type='button']),\ninput:where([type='reset']),\ninput:where([type='submit']) {\n -webkit-appearance: button;\n /* 1 */\n background-color: transparent;\n /* 2 */\n background-image: none;\n /* 2 */\n}\n\np {\n margin: 0;\n}\n\n/*\n Set the default cursor for buttons.\n */\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\n Make sure disabled buttons don't get the pointer cursor.\n */\n:disabled {\n cursor: default;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n.f-body-01 {\n font-family: var(--f-body-01-fontFamily);\n font-weight: var(--f-body-01-fontWeight);\n font-size: var(--f-body-01-fontSize);\n line-height: var(--f-body-01-lineHeight);\n letter-spacing: var(--f-body-01-letterSpacing);\n}\n\n.f-body-02 {\n font-family: var(--f-body-02-fontFamily);\n font-weight: var(--f-body-02-fontWeight);\n font-size: var(--f-body-02-fontSize);\n line-height: var(--f-body-02-lineHeight);\n letter-spacing: var(--f-body-02-letterSpacing);\n}\n\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n\n.f-ui-02 {\n font-family: var(--f-ui-02-fontFamily);\n font-weight: var(--f-ui-02-fontWeight);\n font-size: var(--f-ui-02-fontSize);\n line-height: var(--f-ui-02-lineHeight);\n letter-spacing: var(--f-ui-02-letterSpacing);\n}\n\n.border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border-color: rgba(0, 0, 0, .1);\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-inverse {\n &::after {\n border-color: rgba(255, 255, 255, 0.3);\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-pill {\n &::after {\n border-radius: 100px;\n }\n\n &::after {\n content: '';\n }\n}\n\n.loader {\n box-sizing: border-box;\n display: inline-block;\n height: 1rem;\n width: 1rem;\n}\n\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n.loader {\n animation: spin 1s linear infinite;\n border-radius: 9999px;\n border: 3px solid rgba(0, 0, 0, .3);\n border-bottom-color: #000;\n}\n\n/** region TRANSITIONS */\n.effect-color {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n\n.effect-focus {\n outline-width: 3px;\n outline-offset: 2px;\n outline-color: var(--green-500);\n}\n\n.effect-focus:focus-visible {\n outline-style: solid;\n}\n\n.effect-focus-within {\n outline-width: 3px;\n outline-offset: 2px;\n outline-color: var(--green-500);\n}\n\n.effect-focus-within:focus-within {\n outline-style: solid;\n}\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.pointer-events-none {\n pointer-events: none;\n}\n\n.static {\n position: static;\n}\n\n.fixed {\n position: fixed;\n}\n\n.absolute {\n position: absolute;\n}\n\n.relative {\n position: relative;\n}\n\n.sticky {\n position: sticky;\n}\n\n.inset-0 {\n inset: 0rem;\n}\n\n.inset-x-16 {\n left: 1rem;\n right: 1rem;\n}\n\n.-top-8 {\n top: -0.5rem;\n}\n\n.left-0 {\n left: 0rem;\n}\n\n.left-1\\/2 {\n left: 50%;\n}\n\n.left-4 {\n left: 0.25rem;\n}\n\n.left-\\[4px\\] {\n left: 4px;\n}\n\n.right-0 {\n right: 0rem;\n}\n\n.right-4 {\n right: 0.25rem;\n}\n\n.right-8 {\n right: 0.5rem;\n}\n\n.right-\\[6px\\] {\n right: 6px;\n}\n\n.top-0 {\n top: 0rem;\n}\n\n.top-1\\/2 {\n top: 50%;\n}\n\n.m-0 {\n margin: 0rem;\n}\n\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n\n.-ml-16 {\n margin-left: -1rem;\n}\n\n.-mr-16 {\n margin-right: -1rem;\n}\n\n.ml-0 {\n margin-left: 0rem;\n}\n\n.ml-4 {\n margin-left: 0.25rem;\n}\n\n.ml-64 {\n margin-left: 4rem;\n}\n\n.ml-8 {\n margin-left: 0.5rem;\n}\n\n.ml-auto {\n margin-left: auto;\n}\n\n.mr-4 {\n margin-right: 0.25rem;\n}\n\n.mr-8 {\n margin-right: 0.5rem;\n}\n\n.mr-auto {\n margin-right: auto;\n}\n\n.block {\n display: block;\n}\n\n.\\!block {\n display: block !important;\n}\n\n.inline-block {\n display: inline-block;\n}\n\n.inline {\n display: inline;\n}\n\n.flex {\n display: flex;\n}\n\n.inline-flex {\n display: inline-flex;\n}\n\n.hidden {\n display: none;\n}\n\n.h-20 {\n height: 1.25rem;\n}\n\n.h-24 {\n height: 1.5rem;\n}\n\n.h-36 {\n height: 2.25rem;\n}\n\n.h-44 {\n height: 2.75rem;\n}\n\n.h-auto {\n height: auto;\n}\n\n.h-full {\n height: 100%;\n}\n\n.\\!min-h-20 {\n min-height: 1.25rem !important;\n}\n\n.min-h-screen {\n min-height: 100vh;\n}\n\n.w-20 {\n width: 1.25rem;\n}\n\n.w-full {\n width: 100%;\n}\n\n.flex-none {\n flex: none;\n}\n\n.grow {\n flex-grow: 1;\n}\n\n.cursor-pointer {\n cursor: pointer;\n}\n\n.resize {\n resize: both;\n}\n\n.flex-row {\n flex-direction: row;\n}\n\n.flex-row-reverse {\n flex-direction: row-reverse;\n}\n\n.flex-col {\n flex-direction: column;\n}\n\n.flex-wrap {\n flex-wrap: wrap;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.space-x-2> :not([hidden])~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.125rem * var(--tw-space-x-reverse));\n margin-left: calc(0.125rem * calc(1 - var(--tw-space-x-reverse)));\n}\n\n.overflow-hidden {\n overflow: hidden;\n}\n\n.overflow-x-auto {\n overflow-x: auto;\n}\n\n.overflow-x-hidden {\n overflow-x: hidden;\n}\n\n.overflow-y-scroll {\n overflow-y: scroll;\n}\n\n.whitespace-nowrap {\n white-space: nowrap;\n}\n\n.break-words {\n overflow-wrap: break-word;\n}\n\n.rounded {\n border-radius: 0.25rem;\n}\n\n.rounded-full {\n border-radius: 9999px;\n}\n\n.rounded-lg {\n border-radius: 16px;\n}\n\n.rounded-md {\n border-radius: 12px;\n}\n\n.rounded-pill {\n border-radius: 100px;\n}\n\n.rounded-sm {\n border-radius: 8px;\n}\n\n.rounded-xxs {\n border-radius: 2px;\n}\n\n.border {\n border-width: 1px;\n}\n\n.border-\\[\\#0034CB\\] {\n --tw-border-opacity: 1;\n border-color: rgb(0 52 203 / var(--tw-border-opacity));\n}\n\n.border-\\[\\#d2d2d2\\] {\n --tw-border-opacity: 1;\n border-color: rgb(210 210 210 / var(--tw-border-opacity));\n}\n\n.border-softest {\n border-color: rgba(0, 0, 0, .05);\n}\n\n.border-b-softer {\n border-bottom-color: rgba(0, 0, 0, .1);\n}\n\n.\\!bg-accent-dark {\n background-color: var(--green-600) !important;\n}\n\n.\\!bg-darker {\n background-color: var(--grey-400) !important;\n}\n\n.\\!bg-strong-dark {\n background-color: var(--grey-800) !important;\n}\n\n.bg-accent {\n background-color: var(--green-500);\n}\n\n.bg-accent-dark {\n background-color: var(--green-600);\n}\n\n.bg-dark {\n background-color: var(--grey-300);\n}\n\n.bg-darker {\n background-color: var(--grey-400);\n}\n\n.bg-overlay {\n background-color: rgba(0, 0, 0, 0.25);\n}\n\n.bg-strong {\n background-color: var(--grey-700);\n}\n\n.bg-strong-dark {\n background-color: var(--grey-800);\n}\n\n.bg-stronger {\n background-color: var(--grey-900);\n}\n\n.bg-strongest {\n background-color: var(--black);\n}\n\n.p-12 {\n padding: 0.75rem;\n}\n\n.p-6 {\n padding: 0.375rem;\n}\n\n.p-8 {\n padding: 0.5rem;\n}\n\n.\\!px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n}\n\n.px-12 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n\n.px-16 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n\n.py-8 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.pl-4 {\n padding-left: 0.25rem;\n}\n\n.pl-8 {\n padding-left: 0.5rem;\n}\n\n.pr-4 {\n padding-right: 0.25rem;\n}\n\n.pr-8 {\n padding-right: 0.5rem;\n}\n\n.\\!text-current {\n color: currentColor !important;\n}\n\n.text-accent {\n color: var(--green-500);\n}\n\n.text-current {\n color: currentColor;\n}\n\n.text-default {\n color: var(--black);\n}\n\n.text-inverse {\n color: var(--white);\n}\n\n.text-lightest {\n color: var(--grey-500);\n}\n\n.opacity-0 {\n opacity: 0;\n}\n\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.shadow-accent {\n --tw-shadow: 0px 0px 12px rgba(0, 201, 89, 0.6);\n --tw-shadow-colored: 0px 0px 12px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.underline-offset-4 {\n text-underline-offset: 0.2em;\n}\n\n.\\@container {\n container-type: inline-size;\n}\n\n.after\\:effect-opacity::after {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n\n.even\\:bg-inverse-softer:nth-child(even) {\n background-color: rgba(255, 255, 255, .15);\n}\n\n.invalid\\:text-lightest:invalid {\n color: var(--grey-500);\n}\n\n.focus-within\\:bg-transparent:focus-within {\n background-color: var(--transparent);\n}\n\n.hover\\:bg-accent-dark:hover {\n background-color: var(--green-600);\n}\n\n.hover\\:bg-dark:hover {\n background-color: var(--grey-300);\n}\n\n.hover\\:bg-darker:hover {\n background-color: var(--grey-400);\n}\n\n.hover\\:bg-default:hover {\n background-color: var(--grey-200);\n}\n\n.hover\\:bg-inverse:hover {\n background-color: var(--white);\n}\n\n.hover\\:bg-strong-dark:hover {\n background-color: var(--grey-800);\n}\n\n.hover\\:bg-transparent:hover {\n background-color: var(--transparent);\n}\n\n.hover\\:text-default:hover {\n color: var(--black);\n}\n\n.hover\\:text-lighter:hover {\n color: var(--grey-600);\n}\n\n.hover\\:\\!underline:hover {\n text-decoration-line: underline !important;\n}\n\n.hover\\:no-underline:hover {\n text-decoration-line: none;\n}\n\n.hover\\:shadow-hover:hover {\n --tw-shadow: 0px 0px 16px rgba(0, 0, 0, 0.2);\n --tw-shadow-colored: 0px 0px 16px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.focus\\:shadow-none:focus {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n\n.disabled\\:bg-dark:disabled {\n background-color: var(--grey-300);\n}\n\n.disabled\\:text-lightest:disabled {\n color: var(--grey-500);\n}\n\n.aria-disabled\\:cursor-not-allowed[aria-disabled=\"true\"] {\n cursor: not-allowed;\n}\n\n.aria-disabled\\:\\!border-transparent[aria-disabled=\"true\"] {\n border-color: var(--transparent) !important;\n}\n\n.aria-disabled\\:bg-dark[aria-disabled=\"true\"] {\n background-color: var(--grey-300);\n}\n\n.aria-disabled\\:bg-transparent[aria-disabled=\"true\"] {\n background-color: var(--transparent);\n}\n\n.aria-disabled\\:text-light[aria-disabled=\"true\"] {\n color: var(--grey-700);\n}\n\n.aria-disabled\\:text-lightest[aria-disabled=\"true\"] {\n color: var(--grey-500);\n}\n\n.aria-disabled\\:line-through[aria-disabled=\"true\"] {\n text-decoration-line: line-through;\n}\n\n.aria-disabled\\:shadow-none[aria-disabled=\"true\"] {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.aria-current-page\\:bg-darker[aria-current=\"page\"] {\n background-color: var(--grey-400);\n}\n\n.after\\:absolute::after {\n position: absolute;\n}\n\n.after\\:inset-0::after {\n inset: 0rem;\n}\n\n.after\\:inset-x-0::after {\n left: 0rem;\n right: 0rem;\n}\n\n.after\\:bottom-0::after {\n bottom: 0rem;\n}\n\n.after\\:left-16::after {\n left: 1rem;\n}\n\n.after\\:right-16::after {\n right: 1rem;\n}\n\n.after\\:z-10::after {\n z-index: 10;\n}\n\n.after\\:rounded-lg::after {\n border-radius: 16px;\n}\n\n.after\\:rounded-t-lg::after {\n border-top-left-radius: 16px;\n border-top-right-radius: 16px;\n}\n\n.after\\:border-3::after {\n border-width: 3px;\n}\n\n.after\\:border-b-2::after {\n border-bottom-width: 2px;\n}\n\n.after\\:\\!border-transparent::after {\n border-color: var(--transparent) !important;\n}\n\n.after\\:border-accent::after {\n border-color: var(--green-500);\n}\n\n.after\\:border-softest::after {\n border-color: rgba(0, 0, 0, .05);\n}\n\n.after\\:opacity-0::after {\n opacity: 0;\n}\n\n.after\\:content-\\[\\'\\'\\]::after {\n --tw-content: '';\n content: var(--tw-content);\n}\n\n.hover\\:after\\:\\!border-transparent:hover::after {\n border-color: var(--transparent) !important;\n}\n\n.hover\\:after\\:opacity-100:hover::after {\n opacity: 1;\n}\n\n.focus-visible\\:after\\:opacity-100:focus-visible::after {\n opacity: 1;\n}\n\n.aria-disabled\\:after\\:\\!border-transparent[aria-disabled=\"true\"]::after {\n border-color: var(--transparent) !important;\n}\n\n.hover\\:before\\:opacity-100:hover::before {\n opacity: 1;\n}";
|
|
3478
3491
|
var EdsButtonStyle0 = edsButtonCss;
|
|
3479
3492
|
|
|
3480
3493
|
/**
|
|
@@ -3507,7 +3520,7 @@ class EdsButton {
|
|
|
3507
3520
|
secondary: 'border-inside border-inside-inverse text-inverse bg-strongest hover:bg-strong-dark',
|
|
3508
3521
|
tertiary: 'border-inside after:border-softest bg-dark hover:bg-darker',
|
|
3509
3522
|
ghost: 'border-inside hover:bg-darker',
|
|
3510
|
-
ghostInverse: 'border-inside hover:bg-dark'
|
|
3523
|
+
ghostInverse: 'border-inside text-lightest hover:bg-dark'
|
|
3511
3524
|
},
|
|
3512
3525
|
loading: {
|
|
3513
3526
|
true: 'pointer-events-none',
|
|
@@ -3617,8 +3630,7 @@ class EdsButton {
|
|
|
3617
3630
|
}
|
|
3618
3631
|
handleClick(event) {
|
|
3619
3632
|
var _a, _b;
|
|
3620
|
-
if (this.disabled) {
|
|
3621
|
-
// Prevent navigation if the link is disabled
|
|
3633
|
+
if (this.disabled || this.loading) {
|
|
3622
3634
|
event.preventDefault();
|
|
3623
3635
|
return;
|
|
3624
3636
|
}
|
|
@@ -3634,6 +3646,16 @@ class EdsButton {
|
|
|
3634
3646
|
this.triggerClick(); // Trigger the passed-in function
|
|
3635
3647
|
}
|
|
3636
3648
|
}
|
|
3649
|
+
handleKeyDown(event) {
|
|
3650
|
+
if (this.disabled || this.loading) {
|
|
3651
|
+
// Fix: check loading too
|
|
3652
|
+
return;
|
|
3653
|
+
}
|
|
3654
|
+
if (event.key === 'Enter' || (this.elementType === 'a' && event.key === ' ')) {
|
|
3655
|
+
event.preventDefault();
|
|
3656
|
+
this.handleClick(event);
|
|
3657
|
+
}
|
|
3658
|
+
}
|
|
3637
3659
|
render() {
|
|
3638
3660
|
const classes = this.button({
|
|
3639
3661
|
intent: this.intent,
|
|
@@ -3645,18 +3667,20 @@ class EdsButton {
|
|
|
3645
3667
|
iconSmall: this.iconSmall
|
|
3646
3668
|
});
|
|
3647
3669
|
const ElementType = this.elementType;
|
|
3648
|
-
|
|
3670
|
+
const isInteractive = !this.disabled && !this.loading;
|
|
3671
|
+
return (hAsync(Host, { key: '835cc81d3563abf1b5cb4c21165de1ef726d1e43' }, hAsync(ElementType, { key: 'df05b2b2152e707e5fdd6028c5f557097d7e2b04', tabindex: isInteractive ? '0' : '-1', "aria-label": this.label ? undefined : this.ariaLabel, "aria-disabled": this.disabled || this.loading ? 'true' : undefined, "aria-busy": this.loading ? 'true' : undefined, disabled: this.elementType === 'button' ? this.disabled || this.loading : undefined, role: this.elementType === 'a' ? 'button' : undefined, class: `${classes || ''} ${this.extraClass || ''}`, onClick: (event) => this.handleClick(event), onKeyDown: (event) => this.handleKeyDown(event) }, this.label && (hAsync("span", { key: '27c7473403e7c1bfd3dfc270151d44dbb639ceb3', class: this.loading ? 'opacity-0' : '', "aria-hidden": this.loading ? 'true' : undefined }, this.label)), this.loading && (hAsync("span", { key: 'f52496884816bc299fb76c1afae5e4798bf642d2', class: "absolute inset-0 flex items-center justify-center", "aria-hidden": "true" }, hAsync("span", { key: 'd42bf2c229f6956a1e0dbe64aa6c79ad5608ca5c', class: "loader", style: {
|
|
3649
3672
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3650
3673
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3651
3674
|
} }))), this.icon ? (hAsync("eds-icon-wrapper", { class: `
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3675
|
+
flex inline-flex items-center justify-center
|
|
3676
|
+
${this.size === 'large' ? 'h-24 w-24' : 'h-20 w-20'}
|
|
3677
|
+
`, icon: this.icon, "aria-hidden": "true" })) : null)));
|
|
3655
3678
|
}
|
|
3679
|
+
static get delegatesFocus() { return true; }
|
|
3656
3680
|
get el() { return getElement(this); }
|
|
3657
3681
|
static get style() { return EdsButtonStyle0; }
|
|
3658
3682
|
static get cmpMeta() { return {
|
|
3659
|
-
"$flags$":
|
|
3683
|
+
"$flags$": 25,
|
|
3660
3684
|
"$tagName$": "eds-button",
|
|
3661
3685
|
"$members$": {
|
|
3662
3686
|
"label": [1],
|
|
@@ -3704,7 +3728,7 @@ class EdsCardDesc {
|
|
|
3704
3728
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
3705
3729
|
}
|
|
3706
3730
|
render() {
|
|
3707
|
-
return (hAsync("p", { key: '
|
|
3731
|
+
return (hAsync("p", { key: '302734334d08002f94c269977ebda7762fd19843', class: "text-light f-ui-03-light" }, hAsync("span", { key: '925f6cea41068b62d22902f33d80d700d0975f39', class: this.getTruncateClass() }, this.description)));
|
|
3708
3732
|
}
|
|
3709
3733
|
static get style() { return EdsCardDescStyle0; }
|
|
3710
3734
|
static get cmpMeta() { return {
|
|
@@ -4021,7 +4045,7 @@ class EdsCardProject {
|
|
|
4021
4045
|
this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
|
|
4022
4046
|
].join(' ');
|
|
4023
4047
|
const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
|
|
4024
|
-
return (hAsync("article", { key: '
|
|
4048
|
+
return (hAsync("article", { key: 'b4587158532ddc495a1cda29941b69934b93c7d3', class: cardClasses, onClick: (event) => this.handleClick(event) }, hAsync("div", { key: '96ab6c6b9f5e89db0ca29c678c0ff3d7643976de', class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}` }, hAsync("div", { key: '6b1e39c1b3445c2eff43f03efc0d14307e044428', class: "lg:max-w-[720px]" }, hAsync("eds-card-title", { key: 'a5a2c5916c35dec35d261da0bf10a3905ce0452e', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.titleProject, url: this.url }), this.editorialTitle && (hAsync("span", { key: '65f034e9ae8f7abbc37fb8fc3b03a440467c33f5', class: `block ${this.vertical ? 'f-ui-02' : 'mt-4 f-heading-06'}` }, this.editorialTitle))), this.categoryTitle && (hAsync("div", { key: '690f9157169e6344af51407fca8c25f7cf35ac74', class: "mt-auto flex items-center gap-x-12 pt-12" }, ((_a = this.categoryTitle) === null || _a === void 0 ? void 0 : _a.length) && hAsync("eds-tag", { key: '651b1f0424b45348c854b7ec98e4dae1e4952bbd', label: this.categoryTitle })))), this.parsedImage && (hAsync("div", { key: 'b761288da975f05bb558b0e60767292c20e767e8', class: imageClasses }, hAsync("div", { key: 'bf027b4359774454d9f866f4bb17872a1c0ba724', class: "aspect-1x1 w-full" }, hAsync("eds-img", Object.assign({ key: '19b4c37dcbe7c463afd3ece46d5c348c681771c8', sizes: this.vertical ? this.parsedImage.sizes || '' : '192px' }, this.parsedImage)))))));
|
|
4025
4049
|
}
|
|
4026
4050
|
get el() { return getElement(this); }
|
|
4027
4051
|
static get cmpMeta() { return {
|
|
@@ -4110,7 +4134,7 @@ class EdsCardTags {
|
|
|
4110
4134
|
this.tags = [];
|
|
4111
4135
|
}
|
|
4112
4136
|
render() {
|
|
4113
|
-
return (hAsync("div", { key: '
|
|
4137
|
+
return (hAsync("div", { key: '2acec4bb37d05bb40910cdd198e2ffac9f16610d', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: this.accent ? 'accent' : 'default', label: tag })))));
|
|
4114
4138
|
}
|
|
4115
4139
|
static get style() { return EdsCardTagsStyle0; }
|
|
4116
4140
|
static get cmpMeta() { return {
|
|
@@ -4174,7 +4198,7 @@ class EdsCardTitle {
|
|
|
4174
4198
|
render() {
|
|
4175
4199
|
//const Tag = this.getTag();
|
|
4176
4200
|
const Heading = this.headingLevel;
|
|
4177
|
-
return (hAsync(Heading, { key: '
|
|
4201
|
+
return (hAsync(Heading, { key: 'f3a72db6143e59ef04e589397126dcbf5b4d2d47', class: this.getTitleClass() }, hAsync("a", { key: '4fe1c9af922959b26824f01a0e5b52137c3854f2', class: "break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none", href: this.url, target: this.externalLink ? '_blank' : undefined, rel: this.externalLink ? 'noopener noreferrer' : undefined }, this.cardTitle)));
|
|
4178
4202
|
}
|
|
4179
4203
|
static get style() { return EdsCardTitleStyle0; }
|
|
4180
4204
|
static get cmpMeta() { return {
|
|
@@ -4262,7 +4286,7 @@ class EdsCardTool {
|
|
|
4262
4286
|
});
|
|
4263
4287
|
}
|
|
4264
4288
|
render() {
|
|
4265
|
-
return (hAsync("article", { key: '
|
|
4289
|
+
return (hAsync("article", { key: '2ae8e814b1509d167912424bb5093dba780f70e7', class: `${this.el.tagName.toLowerCase()} ${this.articleClasses()}`, onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: '1d0e4312589a917bc96b2c2dd3455ad0edc54b25', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, "external-link": this.external, hierarchy: this.hierarchy }), this.description && (hAsync("eds-card-desc", { key: '70b074fa7755e20627c50383e1a04a684dd1bab6', class: "mt-8", "truncate-lines": "3", description: this.description })), this.image ? (hAsync("eds-img", { src: this.image, alt: "Sample Image", width: 200, height: 150 })) : this.avatar || this.shortAbbreviation ? (hAsync("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, hAsync("div", { key: 'eb5b236057ef9044701d9662cdc2fa359d5c8053', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label }))))));
|
|
4266
4290
|
}
|
|
4267
4291
|
get el() { return getElement(this); }
|
|
4268
4292
|
static get style() { return EdsCardToolStyle0; }
|
|
@@ -6774,7 +6798,7 @@ class EdsCodeBlock {
|
|
|
6774
6798
|
return this.code; // Fallback if language is not provided or unsupported
|
|
6775
6799
|
}
|
|
6776
6800
|
render() {
|
|
6777
|
-
return (hAsync("div", { key: '
|
|
6801
|
+
return (hAsync("div", { key: '3cfaec27c58d05868313150f1a358ff64c8eafbd', class: "relative bg-stronger rounded-sm" }, hAsync("div", { key: 'ed91821385f30305348750dbfffec5fdd7b4dbb8', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (hAsync("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (hAsync("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, hAsync("code", { innerHTML: this.getHighlightedCode() }))), hAsync("span", { key: '3e419585214883c878a8e84c440dbd29d590002d', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, hAsync("eds-icon-wrapper", { key: '051fa9c714d5c077d5d96ec9b92f8a744ec123bc', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), hAsync("span", { key: '707950ce89cb0c24b1afac42a8801d13659b6bab', class: "sr-only" }, "Copy Code")), this.language && (hAsync("pre", { key: '59923dd4c16cfecafffa2edaaac5ef7579c3f128', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, hAsync("code", { key: '8c708992c04029d71685ad8922383ecdda05ac3c', innerHTML: this.getHighlightedCode() })))));
|
|
6778
6802
|
}
|
|
6779
6803
|
get el() { return getElement(this); }
|
|
6780
6804
|
static get style() { return EdsCodeBlockStyle0; }
|
|
@@ -6822,7 +6846,7 @@ class EdsCookiesPreference {
|
|
|
6822
6846
|
}
|
|
6823
6847
|
}
|
|
6824
6848
|
render() {
|
|
6825
|
-
return (hAsync("div", { key: '
|
|
6849
|
+
return (hAsync("div", { key: '76c90b0245f703ffd80e9aa8ccc587c74b813df2' }, hAsync("eds-link", { key: '5df4bcf1261c5afb610576e72720e0689cb2eb21', size: "small", intent: this.intent, label: this.buttonText, onClick: () => this.toggleCookiesPopup() }), this.showMatomoNotice && hAsync("eds-matomo-notice", { "force-show": true, key: this.noticeKey })));
|
|
6826
6850
|
}
|
|
6827
6851
|
static get style() { return EdsCookiesPreferenceStyle0; }
|
|
6828
6852
|
static get cmpMeta() { return {
|
|
@@ -6958,14 +6982,14 @@ class EdsDropdown {
|
|
|
6958
6982
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
6959
6983
|
*/
|
|
6960
6984
|
render() {
|
|
6961
|
-
return (hAsync("div", { key: '
|
|
6985
|
+
return (hAsync("div", { key: '31e8b1fd4e146cbcad4d74bd78dff1cd1e1950bd', class: "z-focus relative", ref: (el) => (this.dropdownContent = el) }, hAsync("eds-button", { key: '7021a0b0ff66780a324d7d9d1f6cff250ab64178', label: this.label, "aria-label": this.ariaLabel, icon: this.icon, intent: this.intent, onClick: this.handleClick, "aria-expanded": this.isOpen.toString(), "aria-haspopup": "menu" }), hAsync("nav", { key: '904fd2a7f727a8b3966eab6cf9ebdb0efa474ae0', role: "menu", class: {
|
|
6962
6986
|
'shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8': true,
|
|
6963
6987
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
6964
6988
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
6965
6989
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
6966
6990
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
6967
6991
|
'rounded-lg': this.rounded
|
|
6968
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '
|
|
6992
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: 'b416621930c7117775fef2ee91bdca0f660302f5' }))));
|
|
6969
6993
|
}
|
|
6970
6994
|
get host() { return getElement(this); }
|
|
6971
6995
|
static get style() { return EdsDropdownStyle0; }
|
|
@@ -7047,7 +7071,7 @@ class EdsFeedback {
|
|
|
7047
7071
|
const HeadingTag = this.headingLevel;
|
|
7048
7072
|
const levelNum = this.headingLevel.replace('h', '');
|
|
7049
7073
|
const headingClass = `f-heading-${levelNum.padStart(2, '0')} my-4`;
|
|
7050
|
-
return (hAsync("div", { key: '
|
|
7074
|
+
return (hAsync("div", { key: '5e1c1694270cd7504ca8ba942b6f108af5f0572e', class: "grid inline" }, hAsync(HeadingTag, { key: 'da068fd8d6fb9e9789472c418896688e40ab9d32', class: headingClass }, this.label), hAsync("p", { key: '5f896de20bc86c5f3b6596f1d73a3ef8419d8c56', class: "f-body-01 text-light" }, this.description), hAsync("eds-rating", { key: '4909638b6f5cec693075285f99f6881541c09d29', "rating-type": this.type, "rating-count": this.count }), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (hAsync("span", { key: 'cdafafb8e206ecc4bbb74edc16de94a5c26defc9', class: "f-ui-04 text-lighter" }, this.parsedMappings[this.selectedRating - 1]))));
|
|
7051
7075
|
}
|
|
7052
7076
|
get el() { return getElement(this); }
|
|
7053
7077
|
static get style() { return EdsFeedbackStyle0; }
|
|
@@ -7117,6 +7141,12 @@ class EdsFooter {
|
|
|
7117
7141
|
}
|
|
7118
7142
|
const shouldShow = window.scrollY > 100 && document.body.scrollHeight > window.innerHeight;
|
|
7119
7143
|
this.backBtn.style.opacity = shouldShow ? '1' : '0';
|
|
7144
|
+
this.backBtn.style.pointerEvents = shouldShow ? 'auto' : 'none';
|
|
7145
|
+
const btn = this.backBtn.querySelector('eds-button');
|
|
7146
|
+
if (btn) {
|
|
7147
|
+
btn.removeAttribute('aria-hidden');
|
|
7148
|
+
btn.setAttribute('tabindex', shouldShow ? '0' : '-1');
|
|
7149
|
+
}
|
|
7120
7150
|
}
|
|
7121
7151
|
toggleCookiesConsent() {
|
|
7122
7152
|
this.cookies.emit('toggle');
|
|
@@ -7129,9 +7159,9 @@ class EdsFooter {
|
|
|
7129
7159
|
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
7130
7160
|
*/
|
|
7131
7161
|
render() {
|
|
7132
|
-
return (hAsync("footer", { key: '
|
|
7162
|
+
return (hAsync("footer", { key: '4912d7994a636d5159d863339f0119e7b6bb1bc3' }, this.social ? (hAsync("div", { class: "border-softest border-t-2 pt-20 md:pt-28" }, hAsync("div", { class: "container pb-20" }, hAsync("div", { class: "grid-layout" }, hAsync("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, hAsync("eds-social-networks", { class: "mt-28" })))))) : null, hAsync("div", { key: 'fb1db2c19f29a0fd1474565759992be78c404251', class: `border-softest ${this.social ? 'border-t-2' : ''} pb-28 pt-20 md:pt-28` }, hAsync("div", { key: 'c7c6c6eb43f2ccb00df8b05247120763b3f665d3', class: "container flex items-center gap-20 lg:flex-nowrap" }, hAsync("div", { key: '45a29c7988edbf99ef5573dc77c9cc9a22faa666', class: "flex items-center gap-x-12" }, hAsync("a", { key: '0fbc8e7d275a07af6da8b520bddf62f4c13aecac', target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-europe_en", "aria-label": "Learn about Horizon Europe funding" }, hAsync("eds-img", { key: 'ec9e972f19d34cb13ea2022ab09ab6373d54be27', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg", alt: "European Union Flag" }))), hAsync("div", { key: '0281a7e09166bbd2e02913467fe3235585d0bf0a' }, hAsync("div", { key: '97b96a7f6718cbc79ff98874e5dc90d6e1ed614e', class: "f-ui-04 text-light" }, hAsync("p", { key: '810b11a720bdcb92ce587a125ac8d026f31e9872' }, this.fundedBy), hAsync("div", { key: '2973f13cc831fa3d1131b182958fa425b94897fd', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block" }, hAsync("span", { key: 'b4cb01b0601c8117ae427fc5ab9c43c20edc6536', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline mr-4" }, "\u00A9 ", this.rightsReserved), this.enableCookiesSettings ? (hAsync("eds-link", { label: this.cookiesPreferences, intent: "underline", "extra-class": "f-ui-04", onClick: () => {
|
|
7133
7163
|
this.toggleCookiesConsent();
|
|
7134
|
-
} })) : null))), hAsync("div", { key: '
|
|
7164
|
+
} })) : null))), hAsync("div", { key: 'd0b26e1911f55b44fb8a5253bab62b8db9141411', class: "ml-auto pl-12" }, this.enableScrollTop ? (hAsync("div", { id: "toTop", class: "transition-all transition duration-75 opacity-0" }, hAsync("eds-button", { id: "backToTop", "aria-label": this.backToTopAriaLabel, intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop, tabindex: "-1" }))) : null)))));
|
|
7135
7165
|
}
|
|
7136
7166
|
get el() { return getElement(this); }
|
|
7137
7167
|
static get style() { return EdsFooterStyle0; }
|
|
@@ -7239,6 +7269,13 @@ function findRatingElement(formEl) {
|
|
|
7239
7269
|
}
|
|
7240
7270
|
return null;
|
|
7241
7271
|
}
|
|
7272
|
+
function findNpsElement(formEl) {
|
|
7273
|
+
const elements = Array.from(formEl.querySelectorAll('eds-nps'));
|
|
7274
|
+
for (const element of elements) {
|
|
7275
|
+
return element;
|
|
7276
|
+
}
|
|
7277
|
+
return null;
|
|
7278
|
+
}
|
|
7242
7279
|
/**
|
|
7243
7280
|
* Validates all fields and returns an object containing the errors and a flag indicating any errors.
|
|
7244
7281
|
*/
|
|
@@ -7248,6 +7285,7 @@ isFieldVisible) {
|
|
|
7248
7285
|
const errors = {};
|
|
7249
7286
|
let hasError = false;
|
|
7250
7287
|
parsedFields.forEach((field) => {
|
|
7288
|
+
var _a;
|
|
7251
7289
|
// Only validate fields that are visible.
|
|
7252
7290
|
if (!isFieldVisible(field, values)) {
|
|
7253
7291
|
// If a field is hidden, clear its error.
|
|
@@ -7283,6 +7321,28 @@ isFieldVisible) {
|
|
|
7283
7321
|
}
|
|
7284
7322
|
}
|
|
7285
7323
|
}
|
|
7324
|
+
// NPS type
|
|
7325
|
+
else if (field.type === 'nps') {
|
|
7326
|
+
const npsEl = findNpsElement(formEl);
|
|
7327
|
+
if (npsEl && npsEl.shadowRoot) {
|
|
7328
|
+
const raw = (_a = npsEl.shadowRoot
|
|
7329
|
+
.querySelector('div[role="radio"][aria-checked="true"] eds-button')) === null || _a === void 0 ? void 0 : _a.getAttribute('aria-label');
|
|
7330
|
+
const value = raw !== null ? parseInt(raw, 10) : null;
|
|
7331
|
+
if (value === null) {
|
|
7332
|
+
// eslint-disable-next-line
|
|
7333
|
+
if (field.required) {
|
|
7334
|
+
errors[field.name] = ['This field is required.'];
|
|
7335
|
+
hasError = true;
|
|
7336
|
+
}
|
|
7337
|
+
}
|
|
7338
|
+
}
|
|
7339
|
+
else if (field.required) {
|
|
7340
|
+
// No NPS component found but required
|
|
7341
|
+
errors[field.name] = ['This field is required.'];
|
|
7342
|
+
hasError = true;
|
|
7343
|
+
}
|
|
7344
|
+
return;
|
|
7345
|
+
}
|
|
7286
7346
|
else {
|
|
7287
7347
|
// For all other types, find the first matching element.
|
|
7288
7348
|
const inputEl = findFieldElement(formEl, field.name);
|
|
@@ -7584,6 +7644,25 @@ class EdsForm {
|
|
|
7584
7644
|
message: `${field.name} updated`
|
|
7585
7645
|
});
|
|
7586
7646
|
}
|
|
7647
|
+
handleNPS(e, field) {
|
|
7648
|
+
const score = e.detail;
|
|
7649
|
+
this.values = Object.assign(Object.assign({}, this.values), { [field.name]: score });
|
|
7650
|
+
const newErrors = Object.assign({}, this.errors);
|
|
7651
|
+
if (field.required && score === null) {
|
|
7652
|
+
newErrors[field.name] = ['This field is required'];
|
|
7653
|
+
}
|
|
7654
|
+
else {
|
|
7655
|
+
delete newErrors[field.name];
|
|
7656
|
+
}
|
|
7657
|
+
this.errors = newErrors;
|
|
7658
|
+
this.hasError = Object.keys(newErrors).length > 0;
|
|
7659
|
+
this.form.emit({
|
|
7660
|
+
event: 'change',
|
|
7661
|
+
field: field.name,
|
|
7662
|
+
value: score,
|
|
7663
|
+
message: `${field.name} updated`
|
|
7664
|
+
});
|
|
7665
|
+
}
|
|
7587
7666
|
handleSubmit() {
|
|
7588
7667
|
var _a, _b;
|
|
7589
7668
|
if (this.isSubmitting) {
|
|
@@ -7652,7 +7731,7 @@ class EdsForm {
|
|
|
7652
7731
|
return map;
|
|
7653
7732
|
}
|
|
7654
7733
|
renderField(field) {
|
|
7655
|
-
var _a, _b;
|
|
7734
|
+
var _a, _b, _c;
|
|
7656
7735
|
if (!this.isFieldVisible(field)) {
|
|
7657
7736
|
return null;
|
|
7658
7737
|
}
|
|
@@ -7662,7 +7741,10 @@ class EdsForm {
|
|
|
7662
7741
|
const val = this.values[field.name] || 0;
|
|
7663
7742
|
return (hAsync("div", { class: "form-group rating-field", key: field.name }, hAsync("div", { class: "flex justify-between" }, field && (hAsync("eds-input-label", { name: `rating-${field.name}`, label: field.label, disabled: field.disabled, required: field.required }))), hAsync("eds-rating", { id: `rating-${field.name}`, "rating-type": field.ratingType, "rating-count": field.ratingCount, "selected-rating": val, onRating: (e) => this.handleRating(e, field) }), hAsync("div", { class: "mt-6" }, hAsync("eds-input-footer", { id: `${field.name}-footer`, name: field.name, message: field.message, "error-message": (_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.join('<br/>'), error: !!this.errors[field.name], link: field.link }))));
|
|
7664
7743
|
}
|
|
7665
|
-
|
|
7744
|
+
else if (field.type === 'nps') {
|
|
7745
|
+
return (hAsync("div", { class: "form-group nps-field", key: field.name }, hAsync("div", { class: "flex justify-between" }, field && (hAsync("eds-input-label", { name: `nps-${field.name}`, label: field.question, disabled: field.disabled, required: field.required }))), hAsync("eds-nps", { id: `nps-${field.name}`, "right-label": field.rightLabel, "left-label": field.leftLabel, onNps: (e) => this.handleNPS(e, field) }), hAsync("div", { class: "mt-6" }, hAsync("eds-input-footer", { id: `${field.name}-footer`, name: field.name, message: field.message, "error-message": (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br/>'), error: !!this.errors[field.name], link: field.link }))));
|
|
7746
|
+
}
|
|
7747
|
+
return (hAsync("eds-input-field", { key: field.name, name: field.name, label: field.label, placeholder: field.placeholder, type: field.type, value: this.values[field.name], required: field.required, hint: field.hint, message: field.message, error: !!this.errors[field.name], errorMessage: (_c = this.errors[field.name]) === null || _c === void 0 ? void 0 : _c.join('<br/>'), options: field.options, onInput: (e) => this.handleInput(e, field), onChangeNative: (e) => this.handleChange(e, field) }));
|
|
7666
7748
|
}
|
|
7667
7749
|
async getData() {
|
|
7668
7750
|
return this.makeFormData();
|
|
@@ -7671,9 +7753,9 @@ class EdsForm {
|
|
|
7671
7753
|
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
7672
7754
|
//const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
7673
7755
|
const buckets = this.groupedFields;
|
|
7674
|
-
return (hAsync("form", { key: '
|
|
7756
|
+
return (hAsync("form", { key: 'a66997f39b5be347a4d502f77bcd1da9d1a274ac', ref: (el) => (this.formEl = el), autocomplete: "on", onSubmit: this.handleSubmit }, hAsync("div", { key: 'f8800d2ebe64b3279234ab8ebe20e535dc822872' }, hAsync("slot", { key: 'b4194073b281dec35a79a6cc974fdf7476a67807' }), hiddenFields.map((field, index) => (hAsync("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), this.parsedGroups
|
|
7675
7757
|
.filter((g) => Array.isArray(buckets[g.id]) && buckets[g.id].length > 0)
|
|
7676
|
-
.map((g) => (hAsync("div", { class: "container mt-20", key: g.id }, hAsync("span", { class: "f-body-02" }, hAsync("b", null, g.title)), hAsync("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), hAsync("div", { key: '
|
|
7758
|
+
.map((g) => (hAsync("div", { class: "container mt-20", key: g.id }, hAsync("span", { class: "f-body-02" }, hAsync("b", null, g.title)), hAsync("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), hAsync("div", { key: '2fc83ebb6b0a472f6853618602c37ee83adae9ff', class: "flex flex-col mt-20 gap-y-24" }, buckets['__ungrouped'].map((f) => this.renderField(f)))), this.formBtn && (hAsync("div", { key: '91b569b1a4513945f3228c374ae45b52ea17f91d', class: "mt-32" }, hAsync("eds-button", { key: '1a8feaecd5a7f292f8aeae3db900700b4f7fb8d4', intent: "primary", label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
|
|
7677
7759
|
}
|
|
7678
7760
|
get el() { return getElement(this); }
|
|
7679
7761
|
static get watchers() { return {
|
|
@@ -7797,7 +7879,7 @@ class EdsFrame {
|
|
|
7797
7879
|
}
|
|
7798
7880
|
}
|
|
7799
7881
|
render() {
|
|
7800
|
-
return (hAsync("div", { key: '
|
|
7882
|
+
return (hAsync("div", { key: '9f5b6280292996b66fb3380678fae7748aba8cb3', class: this.articleClasses() }, hAsync("div", { key: '6e4f6e0ce9b44fe94ff4622285258747503d9034', class: "effect-height flex items-center justify-between py-8 px-12" }, hAsync("span", { key: '36bb5a7b005b4c23a7042e5cf06769efe29b07db', class: "f-ui-02" }, this.frameLabel), !this.iframeError && this.url && this.urlLabel ? (hAsync("eds-link", { label: this.urlLabel, url: this.url, intent: this.intent, class: "ml-auto", external: true, disabled: false, icon: "arrow-diagonal" })) : null), hAsync("div", { key: '9d64e26eaa9e79d68e13d6a0faf67c8ca68d2097', class: "border-softer" }, this.iframeError ? (hAsync("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage)) : (hAsync("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: true })))));
|
|
7801
7883
|
}
|
|
7802
7884
|
get el() { return getElement(this); }
|
|
7803
7885
|
static get style() { return EdsFrameStyle0; }
|
|
@@ -7961,7 +8043,7 @@ class EdsGauge {
|
|
|
7961
8043
|
const textStyle = {
|
|
7962
8044
|
fontSize: `${fontSize}px`
|
|
7963
8045
|
};
|
|
7964
|
-
return (hAsync("div", { key: '
|
|
8046
|
+
return (hAsync("div", { key: '798a7345ee5c3eeb59b5fe29a39827ce347dc756', role: "progressbar", "aria-valuemin": this.valueMin, "aria-valuemax": this.valueMax, "aria-valuenow": clamped, "aria-label": `Gauge value: ${clamped} of ${this.valueMax}`, class: "relative inline-block rounded-full overflow-hidden", style: containerStyle }, hAsync("div", { key: 'f255f7036a5b11de88fbb32648388905932eb56e', class: "absolute bg-inverse rounded-full", style: maskStyle }), hAsync("div", { key: '2a6dd1d88b32cb2c534f253703a8caa0099f2a43', class: "absolute inset-0 flex items-center justify-center" }, hAsync("span", { key: 'ccbf1852d2f43b925f565c7117aca4a878e7f636', class: "f-body-01 text-default", style: textStyle }, clamped))));
|
|
7965
8047
|
}
|
|
7966
8048
|
static get style() { return EdsGaugeStyle0; }
|
|
7967
8049
|
static get cmpMeta() { return {
|
|
@@ -8042,7 +8124,7 @@ class EdsHeader {
|
|
|
8042
8124
|
const classes = variantClasses[this.headerVariant] || variantClasses.default;
|
|
8043
8125
|
// Logo color variant: default and inverse use 'color', strong uses 'color-white'
|
|
8044
8126
|
const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
|
|
8045
|
-
return (hAsync("header", { key: '
|
|
8127
|
+
return (hAsync("header", { key: '812ad4427cbb3f4b0ca9e305870c35d63487dc59', class: `flex items-center justify-between relative z-10 ${classes}` }, hAsync("div", { key: '531acdceb12ca45fea125091dee4d8a0ff39a10b', class: "mr-auto w-[200px] h-[85px]" }, hAsync("eds-logo", { key: 'bb2708b3c8eacc575117bfed404b7c9db4fd05e2', type: logoType, href: this.homeUrl })), this.parsedLinks && (hAsync("nav", { key: 'a80192d7666416c29025a1ac5812946f14feec3f', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, hAsync("ul", { key: 'fae258c468367837a9738bcbe2442709fdc601a0', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (hAsync("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "large", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), hAsync("slot", { key: '9588ef20e19fda76115074c39d902eebead3c845' }), this.menuEnabled && (hAsync("div", { key: 'ce2e43645a1c33ca7d6495acd820ad0a93cefdf9', class: "md:hidden flex overflow-hidden px-16" }, hAsync("eds-button", { key: 'ed73c7e7a6544f60eea9dbf43379ffe4967c0dbd', "aria-label": "Menu", intent: this.headerVariant === 'default' ? 'ghost' : 'ghostInverse', icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })))));
|
|
8046
8128
|
}
|
|
8047
8129
|
get hostEl() { return getElement(this); }
|
|
8048
8130
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -9977,7 +10059,11 @@ var start = `<svg fill="#000000" width="20" height="20" viewBox="0 0 1920 1920"
|
|
|
9977
10059
|
|
|
9978
10060
|
var draft = `<svg width="20" height="20" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g> <path fill="none" d="M0 0L24 0 24 24 0 24z"></path> <path d="M20 2c.552 0 1 .448 1 1v3.757l-2 2V4H5v16h14v-2.758l2-2V21c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V3c0-.552.448-1 1-1h16zm1.778 6.808l1.414 1.414L15.414 18l-1.416-.002.002-1.412 7.778-7.778zM13 12v2H8v-2h5zm3-4v2H8V8h8z"></path> </g> </g></svg>`;
|
|
9979
10061
|
|
|
9980
|
-
var edit = `<svg width="20" height="20"
|
|
10062
|
+
var edit = `<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M12 3.99997H6C4.89543 3.99997 4 4.8954 4 5.99997V18C4 19.1045 4.89543 20 6 20H18C19.1046 20 20 19.1045 20 18V12M18.4142 8.41417L19.5 7.32842C20.281 6.54737 20.281 5.28104 19.5 4.5C18.7189 3.71895 17.4526 3.71895 16.6715 4.50001L15.5858 5.58575M18.4142 8.41417L12.3779 14.4505C12.0987 14.7297 11.7431 14.9201 11.356 14.9975L8.41422 15.5858L9.00257 12.6441C9.08001 12.2569 9.27032 11.9013 9.54951 11.6221L15.5858 5.58575M18.4142 8.41417L15.5858 5.58575" stroke="#000000" stroke-width="1.44" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg>`;
|
|
10063
|
+
|
|
10064
|
+
var view = `<svg width="20" height="20" viewBox="-102.4 -102.4 1228.80 1228.80" xmlns="http://www.w3.org/2000/svg" fill="#000000" stroke="#000000" stroke-width="0.01024" transform="matrix(1, 0, 0, 1, 0, 0)rotate(0)"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path fill="#000000" d="M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"></path></g></svg>`;
|
|
10065
|
+
|
|
10066
|
+
var clone = `<svg fill="#000000" height="20" width="20" version="1.1" id="XMLID_158_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g id="clone"> <g> <path d="M24,24H6V6h18V24z M8,22h14V8H8V22z M4,18H0v-4h2v2h2V18z M2,12H0V6h2V12z M18,4h-2V2h-2V0h4V4z M2,4H0V0h4v2H2V4z M12,2 H6V0h6V2z"></path> </g> </g> </g></svg>`;
|
|
9981
10067
|
|
|
9982
10068
|
var svgs = /*#__PURE__*/Object.freeze({
|
|
9983
10069
|
__proto__: null,
|
|
@@ -10042,7 +10128,9 @@ var svgs = /*#__PURE__*/Object.freeze({
|
|
|
10042
10128
|
bin: bin,
|
|
10043
10129
|
start: start,
|
|
10044
10130
|
draft: draft,
|
|
10045
|
-
edit: edit
|
|
10131
|
+
edit: edit,
|
|
10132
|
+
view: view,
|
|
10133
|
+
clone: clone
|
|
10046
10134
|
});
|
|
10047
10135
|
|
|
10048
10136
|
/**
|
|
@@ -10054,7 +10142,7 @@ class EdsIconArrowDiagonal {
|
|
|
10054
10142
|
this.class = '';
|
|
10055
10143
|
}
|
|
10056
10144
|
render() {
|
|
10057
|
-
return hAsync("span", { key: '
|
|
10145
|
+
return hAsync("span", { key: 'ef60986a4391dffcbb2a66109f217f3cec95a5fc', class: this.class, innerHTML: arrowDiagonal });
|
|
10058
10146
|
}
|
|
10059
10147
|
static get cmpMeta() { return {
|
|
10060
10148
|
"$flags$": 0,
|
|
@@ -10077,7 +10165,7 @@ class EdsIconArrowRight {
|
|
|
10077
10165
|
this.class = '';
|
|
10078
10166
|
}
|
|
10079
10167
|
render() {
|
|
10080
|
-
return hAsync("span", { key: '
|
|
10168
|
+
return hAsync("span", { key: '02288b13fa941076a5cc73fd3821bd78e206b2b3', class: this.class, innerHTML: arrowRight });
|
|
10081
10169
|
}
|
|
10082
10170
|
static get cmpMeta() { return {
|
|
10083
10171
|
"$flags$": 0,
|
|
@@ -10100,7 +10188,7 @@ class EdsIconBin {
|
|
|
10100
10188
|
this.class = '';
|
|
10101
10189
|
}
|
|
10102
10190
|
render() {
|
|
10103
|
-
return hAsync("span", { key: '
|
|
10191
|
+
return hAsync("span", { key: '5f314df297274d153638c96027c23632f47f6a3a', class: this.class, innerHTML: bin });
|
|
10104
10192
|
}
|
|
10105
10193
|
static get cmpMeta() { return {
|
|
10106
10194
|
"$flags$": 0,
|
|
@@ -10123,7 +10211,7 @@ class EdsIconBluesky {
|
|
|
10123
10211
|
this.class = '';
|
|
10124
10212
|
}
|
|
10125
10213
|
render() {
|
|
10126
|
-
return hAsync("span", { key: '
|
|
10214
|
+
return hAsync("span", { key: 'db8fea43b7888da43821083ecc706a16c949932e', class: this.class, innerHTML: bluesky });
|
|
10127
10215
|
}
|
|
10128
10216
|
static get cmpMeta() { return {
|
|
10129
10217
|
"$flags$": 0,
|
|
@@ -10146,7 +10234,7 @@ class EdsIconBookmark {
|
|
|
10146
10234
|
this.class = '';
|
|
10147
10235
|
}
|
|
10148
10236
|
render() {
|
|
10149
|
-
return hAsync("span", { key: '
|
|
10237
|
+
return hAsync("span", { key: 'b7c85131bafc5d7d3fcf8fde09cf646b4dd3fdab', class: this.class, innerHTML: bookmark });
|
|
10150
10238
|
}
|
|
10151
10239
|
static get cmpMeta() { return {
|
|
10152
10240
|
"$flags$": 0,
|
|
@@ -10169,7 +10257,7 @@ class EdsIconChevronDown {
|
|
|
10169
10257
|
this.class = '';
|
|
10170
10258
|
}
|
|
10171
10259
|
render() {
|
|
10172
|
-
return hAsync("span", { key: '
|
|
10260
|
+
return hAsync("span", { key: '5547e9d98f781dc03e88a014f726b3a402e6425d', class: this.class, innerHTML: chevronDown });
|
|
10173
10261
|
}
|
|
10174
10262
|
static get cmpMeta() { return {
|
|
10175
10263
|
"$flags$": 0,
|
|
@@ -10192,7 +10280,7 @@ class EdsIconChevronLeft {
|
|
|
10192
10280
|
this.class = '';
|
|
10193
10281
|
}
|
|
10194
10282
|
render() {
|
|
10195
|
-
return hAsync("span", { key: '
|
|
10283
|
+
return hAsync("span", { key: '49925425ac1fd676eb96b973b1419f1f2aec1c81', class: this.class, innerHTML: chevronLeft });
|
|
10196
10284
|
}
|
|
10197
10285
|
static get cmpMeta() { return {
|
|
10198
10286
|
"$flags$": 0,
|
|
@@ -10215,7 +10303,7 @@ class EdsIconChevronRight {
|
|
|
10215
10303
|
this.class = '';
|
|
10216
10304
|
}
|
|
10217
10305
|
render() {
|
|
10218
|
-
return hAsync("span", { key: '
|
|
10306
|
+
return hAsync("span", { key: 'e9abd378d28d9e2251e530f97a11973ea558fbe2', class: this.class, innerHTML: chevronRight });
|
|
10219
10307
|
}
|
|
10220
10308
|
static get cmpMeta() { return {
|
|
10221
10309
|
"$flags$": 0,
|
|
@@ -10238,7 +10326,7 @@ class EdsIconChevronUp {
|
|
|
10238
10326
|
this.class = '';
|
|
10239
10327
|
}
|
|
10240
10328
|
render() {
|
|
10241
|
-
return hAsync("span", { key: '
|
|
10329
|
+
return hAsync("span", { key: 'f81db967bf78d75a4a8e572cda6427046603f0a6', class: this.class, innerHTML: chevronUp });
|
|
10242
10330
|
}
|
|
10243
10331
|
static get cmpMeta() { return {
|
|
10244
10332
|
"$flags$": 0,
|
|
@@ -10252,6 +10340,29 @@ class EdsIconChevronUp {
|
|
|
10252
10340
|
}; }
|
|
10253
10341
|
}
|
|
10254
10342
|
|
|
10343
|
+
/**
|
|
10344
|
+
* @internal
|
|
10345
|
+
*/
|
|
10346
|
+
class EdsIconClone {
|
|
10347
|
+
constructor(hostRef) {
|
|
10348
|
+
registerInstance(this, hostRef);
|
|
10349
|
+
this.class = '';
|
|
10350
|
+
}
|
|
10351
|
+
render() {
|
|
10352
|
+
return hAsync("span", { key: 'ebbda9e150151cc6e6d2677307287f2d2f1ab4db', class: this.class, innerHTML: clone });
|
|
10353
|
+
}
|
|
10354
|
+
static get cmpMeta() { return {
|
|
10355
|
+
"$flags$": 0,
|
|
10356
|
+
"$tagName$": "eds-icon-clone",
|
|
10357
|
+
"$members$": {
|
|
10358
|
+
"class": [1]
|
|
10359
|
+
},
|
|
10360
|
+
"$listeners$": undefined,
|
|
10361
|
+
"$lazyBundleId$": "-",
|
|
10362
|
+
"$attrsToReflect$": []
|
|
10363
|
+
}; }
|
|
10364
|
+
}
|
|
10365
|
+
|
|
10255
10366
|
/**
|
|
10256
10367
|
* @internal
|
|
10257
10368
|
*/
|
|
@@ -10261,7 +10372,7 @@ class EdsIconClose {
|
|
|
10261
10372
|
this.class = '';
|
|
10262
10373
|
}
|
|
10263
10374
|
render() {
|
|
10264
|
-
return hAsync("span", { key: '
|
|
10375
|
+
return hAsync("span", { key: '91f33941205260a787d69146e390fa970a1c0d72', class: this.class, innerHTML: close });
|
|
10265
10376
|
}
|
|
10266
10377
|
static get cmpMeta() { return {
|
|
10267
10378
|
"$flags$": 0,
|
|
@@ -10284,7 +10395,7 @@ class EdsIconCopy {
|
|
|
10284
10395
|
this.class = '';
|
|
10285
10396
|
}
|
|
10286
10397
|
render() {
|
|
10287
|
-
return hAsync("span", { key: '
|
|
10398
|
+
return hAsync("span", { key: 'dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4', class: this.class, innerHTML: copy });
|
|
10288
10399
|
}
|
|
10289
10400
|
static get cmpMeta() { return {
|
|
10290
10401
|
"$flags$": 0,
|
|
@@ -10307,7 +10418,7 @@ class EdsIconDraft {
|
|
|
10307
10418
|
this.class = '';
|
|
10308
10419
|
}
|
|
10309
10420
|
render() {
|
|
10310
|
-
return hAsync("span", { key: '
|
|
10421
|
+
return hAsync("span", { key: '13898eb065f5a243104bc79293a5e6afcd276230', class: this.class, innerHTML: draft });
|
|
10311
10422
|
}
|
|
10312
10423
|
static get cmpMeta() { return {
|
|
10313
10424
|
"$flags$": 0,
|
|
@@ -10330,7 +10441,7 @@ class EdsIconEdit {
|
|
|
10330
10441
|
this.class = '';
|
|
10331
10442
|
}
|
|
10332
10443
|
render() {
|
|
10333
|
-
return hAsync("span", { key: '
|
|
10444
|
+
return hAsync("span", { key: '1758d925314772dc29c4349f71f186ba775d2b41', class: this.class, innerHTML: edit });
|
|
10334
10445
|
}
|
|
10335
10446
|
static get cmpMeta() { return {
|
|
10336
10447
|
"$flags$": 0,
|
|
@@ -10353,7 +10464,7 @@ class EdsIconEu {
|
|
|
10353
10464
|
this.class = '';
|
|
10354
10465
|
}
|
|
10355
10466
|
render() {
|
|
10356
|
-
return hAsync("span", { key: '
|
|
10467
|
+
return hAsync("span", { key: 'ac8c58eacb11b11be7928d7799a3eb6c8063597f', class: this.class, innerHTML: euSvg });
|
|
10357
10468
|
}
|
|
10358
10469
|
static get cmpMeta() { return {
|
|
10359
10470
|
"$flags$": 0,
|
|
@@ -10376,7 +10487,7 @@ class EdsIconExternal {
|
|
|
10376
10487
|
this.class = '';
|
|
10377
10488
|
}
|
|
10378
10489
|
render() {
|
|
10379
|
-
return hAsync("span", { key: '
|
|
10490
|
+
return hAsync("span", { key: 'e24ee8e9243fa2dcbe8df4fa9d84db5bbc136ec4', class: this.class, innerHTML: arrowDiagonal });
|
|
10380
10491
|
}
|
|
10381
10492
|
static get cmpMeta() { return {
|
|
10382
10493
|
"$flags$": 0,
|
|
@@ -10399,7 +10510,7 @@ class EdsIconFacebook {
|
|
|
10399
10510
|
this.class = '';
|
|
10400
10511
|
}
|
|
10401
10512
|
render() {
|
|
10402
|
-
return hAsync("span", { key: '
|
|
10513
|
+
return hAsync("span", { key: '6a6cbdd8f9e6b982af701b97681a98944c5c1797', class: this.class, innerHTML: facebook });
|
|
10403
10514
|
}
|
|
10404
10515
|
static get cmpMeta() { return {
|
|
10405
10516
|
"$flags$": 0,
|
|
@@ -10422,7 +10533,7 @@ class EdsIconGitlab {
|
|
|
10422
10533
|
this.class = '';
|
|
10423
10534
|
}
|
|
10424
10535
|
render() {
|
|
10425
|
-
return hAsync("span", { key: '
|
|
10536
|
+
return hAsync("span", { key: 'e6ce69e460242b20779766f62a3c7d23dad345d1', class: this.class, innerHTML: gitlabBlack });
|
|
10426
10537
|
}
|
|
10427
10538
|
static get cmpMeta() { return {
|
|
10428
10539
|
"$flags$": 0,
|
|
@@ -10445,7 +10556,7 @@ class EdsIconLinkedin {
|
|
|
10445
10556
|
this.class = '';
|
|
10446
10557
|
}
|
|
10447
10558
|
render() {
|
|
10448
|
-
return hAsync("span", { key: '
|
|
10559
|
+
return hAsync("span", { key: '1981b2c066cfa5f0fb4326017df4bfbdfff09873', class: this.class, innerHTML: linkedin });
|
|
10449
10560
|
}
|
|
10450
10561
|
static get cmpMeta() { return {
|
|
10451
10562
|
"$flags$": 0,
|
|
@@ -10468,7 +10579,7 @@ class EdsIconLoader {
|
|
|
10468
10579
|
this.class = '';
|
|
10469
10580
|
}
|
|
10470
10581
|
render() {
|
|
10471
|
-
return hAsync("span", { key: '
|
|
10582
|
+
return hAsync("span", { key: '9383784da3e52d22395288f8eba5b6f4ee826aa5', class: this.class, innerHTML: loader });
|
|
10472
10583
|
}
|
|
10473
10584
|
static get cmpMeta() { return {
|
|
10474
10585
|
"$flags$": 0,
|
|
@@ -10491,7 +10602,7 @@ class EdsIconMastodon {
|
|
|
10491
10602
|
this.class = '';
|
|
10492
10603
|
}
|
|
10493
10604
|
render() {
|
|
10494
|
-
return hAsync("span", { key: '
|
|
10605
|
+
return hAsync("span", { key: '8bba88cba6d29b204b4a4ceae3c41129bb6edcaa', class: this.class, innerHTML: mastodon });
|
|
10495
10606
|
}
|
|
10496
10607
|
static get cmpMeta() { return {
|
|
10497
10608
|
"$flags$": 0,
|
|
@@ -10514,7 +10625,7 @@ class EdsIconMenu {
|
|
|
10514
10625
|
this.class = '';
|
|
10515
10626
|
}
|
|
10516
10627
|
render() {
|
|
10517
|
-
return hAsync("span", { key: '
|
|
10628
|
+
return hAsync("span", { key: '15fa7c4b7d2dea5740d0926bb1ff6490b23667f8', class: this.class, innerHTML: menu });
|
|
10518
10629
|
}
|
|
10519
10630
|
static get cmpMeta() { return {
|
|
10520
10631
|
"$flags$": 0,
|
|
@@ -10537,7 +10648,7 @@ class EdsIconMinus {
|
|
|
10537
10648
|
this.class = '';
|
|
10538
10649
|
}
|
|
10539
10650
|
render() {
|
|
10540
|
-
return hAsync("span", { key: '
|
|
10651
|
+
return hAsync("span", { key: '0e8b57b9ae1a2e53ef6f50948c49b9a9218f66cc', class: this.class, innerHTML: minus });
|
|
10541
10652
|
}
|
|
10542
10653
|
static get cmpMeta() { return {
|
|
10543
10654
|
"$flags$": 0,
|
|
@@ -10560,7 +10671,7 @@ class EdsIconMore {
|
|
|
10560
10671
|
this.class = '';
|
|
10561
10672
|
}
|
|
10562
10673
|
render() {
|
|
10563
|
-
return hAsync("span", { key: '
|
|
10674
|
+
return hAsync("span", { key: '5f14cbe4b3ca88f7301c1561c092278b31d04326', class: this.class, innerHTML: more });
|
|
10564
10675
|
}
|
|
10565
10676
|
static get cmpMeta() { return {
|
|
10566
10677
|
"$flags$": 0,
|
|
@@ -10583,7 +10694,7 @@ class EdsIconPaper {
|
|
|
10583
10694
|
this.class = '';
|
|
10584
10695
|
}
|
|
10585
10696
|
render() {
|
|
10586
|
-
return hAsync("span", { key: '
|
|
10697
|
+
return hAsync("span", { key: 'b19c12426db0068934252c6197ba04789d42f5e2', class: this.class, innerHTML: paper });
|
|
10587
10698
|
}
|
|
10588
10699
|
static get cmpMeta() { return {
|
|
10589
10700
|
"$flags$": 0,
|
|
@@ -10606,7 +10717,7 @@ class EdsIconPlus {
|
|
|
10606
10717
|
this.class = '';
|
|
10607
10718
|
}
|
|
10608
10719
|
render() {
|
|
10609
|
-
return hAsync("span", { key: '
|
|
10720
|
+
return hAsync("span", { key: '520b8d5a7d45f101ef526432b45e4407446685cd', class: this.class, innerHTML: plus });
|
|
10610
10721
|
}
|
|
10611
10722
|
static get cmpMeta() { return {
|
|
10612
10723
|
"$flags$": 0,
|
|
@@ -10629,7 +10740,7 @@ class EdsIconPortal {
|
|
|
10629
10740
|
this.class = '';
|
|
10630
10741
|
}
|
|
10631
10742
|
render() {
|
|
10632
|
-
return hAsync("span", { key: '
|
|
10743
|
+
return hAsync("span", { key: 'f9b20e12497e199b7f596f4f457167080e81ccd1', class: this.class, innerHTML: portal });
|
|
10633
10744
|
}
|
|
10634
10745
|
static get cmpMeta() { return {
|
|
10635
10746
|
"$flags$": 0,
|
|
@@ -10652,7 +10763,7 @@ class EdsIconPrivate {
|
|
|
10652
10763
|
this.class = '';
|
|
10653
10764
|
}
|
|
10654
10765
|
render() {
|
|
10655
|
-
return hAsync("span", { key: '
|
|
10766
|
+
return hAsync("span", { key: 'a342e11087242f9b37365bcbfec2036bd2009c85', class: this.class, innerHTML: privat });
|
|
10656
10767
|
}
|
|
10657
10768
|
static get cmpMeta() { return {
|
|
10658
10769
|
"$flags$": 0,
|
|
@@ -10675,7 +10786,7 @@ class EdsIconPublic {
|
|
|
10675
10786
|
this.class = '';
|
|
10676
10787
|
}
|
|
10677
10788
|
render() {
|
|
10678
|
-
return hAsync("span", { key: '
|
|
10789
|
+
return hAsync("span", { key: 'e53f2ac899326e460b27b91772da9d2bee873fb3', class: this.class, innerHTML: pub });
|
|
10679
10790
|
}
|
|
10680
10791
|
static get cmpMeta() { return {
|
|
10681
10792
|
"$flags$": 0,
|
|
@@ -10698,7 +10809,7 @@ class EdsIconSearch {
|
|
|
10698
10809
|
this.class = '';
|
|
10699
10810
|
}
|
|
10700
10811
|
render() {
|
|
10701
|
-
return hAsync("span", { key: '
|
|
10812
|
+
return hAsync("span", { key: '6da0ae2a33a1680caecbaa6bbe1313329d32ef7e', class: this.class, innerHTML: search });
|
|
10702
10813
|
}
|
|
10703
10814
|
static get cmpMeta() { return {
|
|
10704
10815
|
"$flags$": 0,
|
|
@@ -10721,7 +10832,7 @@ class EdsIconStar {
|
|
|
10721
10832
|
this.class = '';
|
|
10722
10833
|
}
|
|
10723
10834
|
render() {
|
|
10724
|
-
return hAsync("span", { key: '
|
|
10835
|
+
return hAsync("span", { key: '4c4243f9e6c5c02a2d70eda34b28efe1ba7c696b', class: this.class, innerHTML: star });
|
|
10725
10836
|
}
|
|
10726
10837
|
static get cmpMeta() { return {
|
|
10727
10838
|
"$flags$": 0,
|
|
@@ -10744,7 +10855,7 @@ class EdsIconStart {
|
|
|
10744
10855
|
this.class = '';
|
|
10745
10856
|
}
|
|
10746
10857
|
render() {
|
|
10747
|
-
return hAsync("span", { key: '
|
|
10858
|
+
return hAsync("span", { key: 'a788a6ded2b42ad1138be4f74464d4dc08dc485f', class: this.class, innerHTML: start });
|
|
10748
10859
|
}
|
|
10749
10860
|
static get cmpMeta() { return {
|
|
10750
10861
|
"$flags$": 0,
|
|
@@ -10767,7 +10878,7 @@ class EdsIconSuccess {
|
|
|
10767
10878
|
this.class = '';
|
|
10768
10879
|
}
|
|
10769
10880
|
render() {
|
|
10770
|
-
return hAsync("span", { key: '
|
|
10881
|
+
return hAsync("span", { key: '68917ac759cd684a6f3f3f67cb174d7291841070', class: this.class, innerHTML: success });
|
|
10771
10882
|
}
|
|
10772
10883
|
static get cmpMeta() { return {
|
|
10773
10884
|
"$flags$": 0,
|
|
@@ -10790,7 +10901,7 @@ class EdsIconThumbsDown {
|
|
|
10790
10901
|
this.class = '';
|
|
10791
10902
|
}
|
|
10792
10903
|
render() {
|
|
10793
|
-
return hAsync("span", { key: '
|
|
10904
|
+
return hAsync("span", { key: 'fb0abd584eb41fcdf76479aa2953da2ed6a9f8ed', class: this.class, innerHTML: thumbsDown });
|
|
10794
10905
|
}
|
|
10795
10906
|
static get cmpMeta() { return {
|
|
10796
10907
|
"$flags$": 0,
|
|
@@ -10813,7 +10924,7 @@ class EdsIconThumbsUp {
|
|
|
10813
10924
|
this.class = '';
|
|
10814
10925
|
}
|
|
10815
10926
|
render() {
|
|
10816
|
-
return hAsync("span", { key: '
|
|
10927
|
+
return hAsync("span", { key: '53bc35a16795640e1fc5ac9a5ddd66015b98adb3', class: this.class, innerHTML: thumbsUp });
|
|
10817
10928
|
}
|
|
10818
10929
|
static get cmpMeta() { return {
|
|
10819
10930
|
"$flags$": 0,
|
|
@@ -10836,7 +10947,7 @@ class EdsIconTutorial {
|
|
|
10836
10947
|
this.class = '';
|
|
10837
10948
|
}
|
|
10838
10949
|
render() {
|
|
10839
|
-
return hAsync("span", { key: '
|
|
10950
|
+
return hAsync("span", { key: 'bbe35e4b8e341eb54820a661c6a6200e83fd0f3f', class: this.class, innerHTML: tutorial });
|
|
10840
10951
|
}
|
|
10841
10952
|
static get cmpMeta() { return {
|
|
10842
10953
|
"$flags$": 0,
|
|
@@ -10859,7 +10970,7 @@ class EdsIconTwitter {
|
|
|
10859
10970
|
this.class = '';
|
|
10860
10971
|
}
|
|
10861
10972
|
render() {
|
|
10862
|
-
return hAsync("span", { key: '
|
|
10973
|
+
return hAsync("span", { key: 'de551285a98e6e5340769e9d1422acb2e7bc826f', class: this.class, innerHTML: twitter });
|
|
10863
10974
|
}
|
|
10864
10975
|
static get cmpMeta() { return {
|
|
10865
10976
|
"$flags$": 0,
|
|
@@ -10882,7 +10993,7 @@ class EdsIconUnknown {
|
|
|
10882
10993
|
this.class = '';
|
|
10883
10994
|
}
|
|
10884
10995
|
render() {
|
|
10885
|
-
return hAsync("span", { key: '
|
|
10996
|
+
return hAsync("span", { key: 'c102d3ac082dab21cb23a322ded78d607ece10f5', class: this.class, innerHTML: unknown });
|
|
10886
10997
|
}
|
|
10887
10998
|
static get cmpMeta() { return {
|
|
10888
10999
|
"$flags$": 0,
|
|
@@ -10905,7 +11016,7 @@ class EdsIconUpdown {
|
|
|
10905
11016
|
this.class = '';
|
|
10906
11017
|
}
|
|
10907
11018
|
render() {
|
|
10908
|
-
return hAsync("span", { key: '
|
|
11019
|
+
return hAsync("span", { key: 'b2bf11e364727f13859be3c2ed00931ec3379d9d', class: this.class, innerHTML: upDonw });
|
|
10909
11020
|
}
|
|
10910
11021
|
static get cmpMeta() { return {
|
|
10911
11022
|
"$flags$": 0,
|
|
@@ -10928,7 +11039,7 @@ class EdsIconUser {
|
|
|
10928
11039
|
this.class = '';
|
|
10929
11040
|
}
|
|
10930
11041
|
render() {
|
|
10931
|
-
return hAsync("span", { key: '
|
|
11042
|
+
return hAsync("span", { key: '24acd317006255e7a5b29bd70b667c8ca9271f6c', class: this.class, innerHTML: user });
|
|
10932
11043
|
}
|
|
10933
11044
|
static get cmpMeta() { return {
|
|
10934
11045
|
"$flags$": 0,
|
|
@@ -10942,6 +11053,29 @@ class EdsIconUser {
|
|
|
10942
11053
|
}; }
|
|
10943
11054
|
}
|
|
10944
11055
|
|
|
11056
|
+
/**
|
|
11057
|
+
* @internal
|
|
11058
|
+
*/
|
|
11059
|
+
class EdsIconView {
|
|
11060
|
+
constructor(hostRef) {
|
|
11061
|
+
registerInstance(this, hostRef);
|
|
11062
|
+
this.class = '';
|
|
11063
|
+
}
|
|
11064
|
+
render() {
|
|
11065
|
+
return hAsync("span", { key: '652ea6ae2a82611114e71ed2d2422ad579f7ab54', class: this.class, innerHTML: view });
|
|
11066
|
+
}
|
|
11067
|
+
static get cmpMeta() { return {
|
|
11068
|
+
"$flags$": 0,
|
|
11069
|
+
"$tagName$": "eds-icon-view",
|
|
11070
|
+
"$members$": {
|
|
11071
|
+
"class": [1]
|
|
11072
|
+
},
|
|
11073
|
+
"$listeners$": undefined,
|
|
11074
|
+
"$lazyBundleId$": "-",
|
|
11075
|
+
"$attrsToReflect$": []
|
|
11076
|
+
}; }
|
|
11077
|
+
}
|
|
11078
|
+
|
|
10945
11079
|
/**
|
|
10946
11080
|
* `EdsIconWrapper` is a wrapper component for displaying icons with dynamic loading capabilities.
|
|
10947
11081
|
* It allows specifying the icon name, which is dynamically imported and rendered within the component.
|
|
@@ -11007,7 +11141,7 @@ class EdsIconYoutube {
|
|
|
11007
11141
|
this.class = '';
|
|
11008
11142
|
}
|
|
11009
11143
|
render() {
|
|
11010
|
-
return hAsync("span", { key: '
|
|
11144
|
+
return hAsync("span", { key: '6f1d0b5e073ef4d754aecb600a8578fc59950496', class: this.class, innerHTML: youtube });
|
|
11011
11145
|
}
|
|
11012
11146
|
static get cmpMeta() { return {
|
|
11013
11147
|
"$flags$": 0,
|
|
@@ -11083,10 +11217,10 @@ class EdsImg {
|
|
|
11083
11217
|
imgOpts['loading'] = 'lazy';
|
|
11084
11218
|
imgOpts['decoding'] = 'async';
|
|
11085
11219
|
}
|
|
11086
|
-
return (hAsync("div", { key: '
|
|
11220
|
+
return (hAsync("div", { key: '605bff5657ca79678517527a9462b31608e5af7a', class: {
|
|
11087
11221
|
'items-center justify-center': true,
|
|
11088
11222
|
'effect-bg-pattern': this.lazyload && this.showBg
|
|
11089
|
-
} }, hAsync("picture", { key: '
|
|
11223
|
+
} }, hAsync("picture", { key: '0d0def26688c1ec7214211d02875160965e2ce48' }, this.formats.map((format) => (hAsync("source", { type: format.type, srcSet: format.srcset, media: format.media, sizes: this.sizes }))), hAsync("img", Object.assign({ key: 'c9c307a5fdf25d9792db2a76f4d08fcd27b50401', ref: (el) => (this.img = el), class: {
|
|
11090
11224
|
'effect-opacity object-cover object-center': true,
|
|
11091
11225
|
'opacity-100': this.loaded,
|
|
11092
11226
|
'opacity-0': !this.loaded
|
|
@@ -11168,7 +11302,7 @@ class EdsInput {
|
|
|
11168
11302
|
render() {
|
|
11169
11303
|
const withIcon = !!this.icon;
|
|
11170
11304
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
|
|
11171
|
-
return (hAsync("div", { key: '
|
|
11305
|
+
return (hAsync("div", { key: 'a26224d6345099df6bc5110d42b701980603f7f7', class: "relative flex items-center" }, this.type === 'textarea' ? (hAsync("textarea", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, class: `min-h-80 input input-textarea ${withIcon ? 'input-with-icon' : ''} ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })) : this.type === 'select' ? (hAsync("select", { id: this.inputId || this.name, name: this.name, required: this.required, disabled: this.disabled, class: `input input-select ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, onInput: this.handleInput, onChange: this.handleInput }, this.options.map((option) => (hAsync("option", { value: option.value, selected: option.value === this.innerVal, key: option.value }, option.label))))) : (hAsync("input", Object.assign({ id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, type: this.type, checked: ['radio', 'checkbox'].includes(this.type) ? this.checked : undefined }, (this.type === 'number'
|
|
11172
11306
|
? {
|
|
11173
11307
|
min: this.min,
|
|
11174
11308
|
max: this.max,
|
|
@@ -11179,7 +11313,7 @@ class EdsInput {
|
|
|
11179
11313
|
input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
|
|
11180
11314
|
${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
|
|
11181
11315
|
${this.error ? 'input-error' : ''}
|
|
11182
|
-
`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }))), this.maxLength && this.type === 'textarea' && (hAsync("span", { key: '
|
|
11316
|
+
`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }))), this.maxLength && this.type === 'textarea' && (hAsync("span", { key: 'beb48d08d18b5ca5b054b1b579e2f9527af222e9', class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? 'input-counter-error' : ''}` }, this.maxLength)), this.icon && (hAsync("eds-icon-wrapper", { key: '06948fe33c35c5830edd50a37411281865ef6d12', class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled ? 'text-lightest' : 'text-lightest'}`, icon: this.icon }))));
|
|
11183
11317
|
}
|
|
11184
11318
|
get el() { return getElement(this); }
|
|
11185
11319
|
static get watchers() { return {
|
|
@@ -11318,7 +11452,7 @@ class EdsInputField {
|
|
|
11318
11452
|
}
|
|
11319
11453
|
render() {
|
|
11320
11454
|
const inputOpts = Object.assign({ name: this.name, id: this.inputId, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleNativeInput, onChange: this.handleNativeChange, type: this.type, required: this.required, value: this.value, error: this.error, icon: this.icon, checked: this.checked }, (this.type === 'number' ? { min: this.min, max: this.max, step: this.step } : {}));
|
|
11321
|
-
return (hAsync("div", { key: '
|
|
11455
|
+
return (hAsync("div", { key: '615165ebb5980d2da414ad4028e053b46358eb4e' }, this.type === 'checkbox' || this.type === 'radio' ? (this.parsedOptions.length > 0 ? (hAsync("fieldset", { class: "space-y-4 mt-8" }, hAsync("div", { class: "flex justify-between" }, this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required })), this.hint && (hAsync("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.parsedOptions.map((option) => (hAsync("div", { class: "flex items-center gap-x-4 gap-y-4", key: option.value }, hAsync("eds-input", Object.assign({}, inputOpts, { value: option.value, checked: typeof this.value === 'string' && this.value.split(',').includes(String(option.value)) })), hAsync("label", { htmlFor: this.name, class: `input-label-options ${this.disabled ? 'text-lighter' : ''}` }, option.label)))))) : (hAsync("div", { class: "flex items-center gap-x-8" }, hAsync("eds-input", Object.assign({}, inputOpts, { value: this.value, checked: this.value === 'on' || this.checked })), this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }))))) : (hAsync("div", null, hAsync("div", { class: "flex justify-between" }, this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })), this.hint && (hAsync("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.type === 'select' ? (hAsync("eds-input-select", Object.assign({}, inputOpts, { options: this.parsedOptions }))) : this.type === 'file' ? (hAsync("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChangeNative, disabled: this.disabled, required: this.required })) : this.type === 'search' ? (hAsync("eds-input-search", { name: "search-box" })) : this.type === 'range' ? ((() => {
|
|
11322
11456
|
var _a, _b, _c;
|
|
11323
11457
|
const rangeProps = {
|
|
11324
11458
|
name: inputOpts.name,
|
|
@@ -11331,12 +11465,13 @@ class EdsInputField {
|
|
|
11331
11465
|
const opt = this.parsedOptions;
|
|
11332
11466
|
const numberValue = typeof this.value === 'string' ? parseFloat(this.value) : this.value || 0;
|
|
11333
11467
|
return (hAsync("eds-input-range", Object.assign({}, rangeProps, { min: (_a = opt[0]) === null || _a === void 0 ? void 0 : _a.value, max: (_b = opt[1]) === null || _b === void 0 ? void 0 : _b.value, step: (_c = opt[2]) === null || _c === void 0 ? void 0 : _c.value, value: numberValue })));
|
|
11334
|
-
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("div", { key: '
|
|
11468
|
+
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("div", { key: '4ca8edfb4538caab53e89f16008683aea28adfbc', class: "mt-6" }, hAsync("eds-input-footer", { key: '68053a16f607a277a5c806f3c830b24acf3b1f50', id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link }))));
|
|
11335
11469
|
}
|
|
11470
|
+
static get delegatesFocus() { return true; }
|
|
11336
11471
|
get hostEl() { return getElement(this); }
|
|
11337
11472
|
static get style() { return EdsInputFieldStyle0; }
|
|
11338
11473
|
static get cmpMeta() { return {
|
|
11339
|
-
"$flags$":
|
|
11474
|
+
"$flags$": 25,
|
|
11340
11475
|
"$tagName$": "eds-input-field",
|
|
11341
11476
|
"$members$": {
|
|
11342
11477
|
"name": [1],
|
|
@@ -11382,7 +11517,7 @@ class EdsInputFooter {
|
|
|
11382
11517
|
this.link = undefined;
|
|
11383
11518
|
}
|
|
11384
11519
|
render() {
|
|
11385
|
-
return (hAsync("div", { key: '
|
|
11520
|
+
return (hAsync("div", { key: '58bce34f2ec417696ba03d6c8c0c77fa1d900f9a' }, this.error && this.errorMessage && (hAsync("div", { key: 'be14dc0f6e9494c1ee436fd8f822112eab6d2ce2', id: `error_${this.name}`, class: "text-error flex items-center" }, hAsync("eds-icon-wrapper", { key: 'aaa2010441b0bfe9445e4b6401115b29606ac507', icon: "warning" }), hAsync("p", { key: '277ac1de538e873c7da9b592e60dfd276738025d', class: "f-ui-04 ml-4 mb-4", innerHTML: this.errorMessage }))), this.message && hAsync("p", { key: '4f07c6efe398bb002322a35279e68b237eac860e', id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && (hAsync("a", { key: '50d042530985eeafd7334b0bb38fd2c14aed0e3f', href: this.link.url, class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4" }, this.link.label))));
|
|
11386
11521
|
}
|
|
11387
11522
|
static get style() { return EdsInputFooterStyle0; }
|
|
11388
11523
|
static get cmpMeta() { return {
|
|
@@ -11413,7 +11548,7 @@ class EdsInputLabel {
|
|
|
11413
11548
|
this.disabled = false;
|
|
11414
11549
|
}
|
|
11415
11550
|
render() {
|
|
11416
|
-
return (hAsync("label", { key: '
|
|
11551
|
+
return (hAsync("label", { key: '622cd7e26774448ca86c1168d0a287d7b61d3e29', htmlFor: this.name, class: `input-label ${this.disabled ? 'text-lighter' : ''}` }, this.label, this.required && (hAsync("span", { key: 'c3162e765af70dd972e3cd0ca360cd3f52003f76' }, hAsync("span", { key: '5bca5243c95399fefff4fa21b6c1477a287a3cb4', "aria-hidden": "true" }, "*"), hAsync("span", { key: 'bc1c229ac387161e4aa314498dbbc77fbab62955', class: "sr-only" }, "required")))));
|
|
11417
11552
|
}
|
|
11418
11553
|
static get style() { return EdsInputLabelStyle0; }
|
|
11419
11554
|
static get cmpMeta() { return {
|
|
@@ -11479,7 +11614,7 @@ class EdsInputRange {
|
|
|
11479
11614
|
return this.inputElement;
|
|
11480
11615
|
}
|
|
11481
11616
|
render() {
|
|
11482
|
-
return (hAsync("div", { key: '
|
|
11617
|
+
return (hAsync("div", { key: '51c9adb300d50eecb48de1547c0a0475692aa97b', class: "relative flex flex-col items-start" }, hAsync("input", { key: '65ac18497d2a4307d7f5161951b87bb38cdad892', id: this.inputId || this.name, name: this.name, min: this.min, max: this.max, step: this.step, value: this.sliderVal, required: this.required, disabled: this.disabled, type: "range", class: "w-full py-6 input", tabindex: "0", role: "slider", "aria-describedby": `desc_${this.name}`, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.sliderVal, onInput: this.onInput, onChange: this.onChange }), hAsync("p", { key: '9b717fce31d2340f3b4bc4b5583e6b1e7764314f', id: `desc_${this.name}`, class: "block f-ui-05 mt-4 text-lighter" }, "Current value: ", this.sliderVal)));
|
|
11483
11618
|
}
|
|
11484
11619
|
get el() { return getElement(this); }
|
|
11485
11620
|
static get watchers() { return {
|
|
@@ -11574,7 +11709,7 @@ class EdsInputSearch {
|
|
|
11574
11709
|
return this.inputElement;
|
|
11575
11710
|
}
|
|
11576
11711
|
render() {
|
|
11577
|
-
return (hAsync("div", { key: '
|
|
11712
|
+
return (hAsync("div", { key: '40f0faa26610671e0a89055e5a51fb17ab17c470', class: "relative flex items-center" }, hAsync("eds-icon-wrapper", { key: '910f6681ae719608c6f2787de4b3871742dd290a', icon: "search", class: "absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest", "aria-hidden": "true" }), hAsync("input", { key: '77534918bd9f2bcd4014e5b201a4f7eb2c0753b4', id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.value || '', required: this.required, disabled: this.disabled, type: "search", "aria-label": this.placeholder, class: `input pl-36 ${this.decorate}`,
|
|
11578
11713
|
//onInput={this.onInput}
|
|
11579
11714
|
onChange: this.onChange })));
|
|
11580
11715
|
}
|
|
@@ -11628,12 +11763,12 @@ class EdsInputSelect {
|
|
|
11628
11763
|
const selectId = this.inputId || this.name;
|
|
11629
11764
|
const placeholderText = this.placeholder || `Pick from the list`;
|
|
11630
11765
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : undefined;
|
|
11631
|
-
return (hAsync("div", { key: '
|
|
11766
|
+
return (hAsync("div", { key: 'f154a5f34a0d09cf6a02e24f13ed9af46532c76c', class: "relative" }, hAsync("select", { key: '0982936337bcbec3e2b81f7edc1436506841c782', id: selectId, name: this.name, class: {
|
|
11632
11767
|
input: true,
|
|
11633
11768
|
'input-error': this.error,
|
|
11634
11769
|
'px-4': true,
|
|
11635
11770
|
'py-2': true
|
|
11636
|
-
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '
|
|
11771
|
+
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '7656fa514dec6b8b05bbb8d02636bf5e2ee8d213', value: "", disabled: true, hidden: true }, placeholderText), this.options.map((opt, index) => (hAsync("option", { key: index, value: opt.value, selected: opt.value === this.value }, opt.label)))), hAsync("span", { key: '8464aa5ef3eab675f493b582736c25a7edd88224', class: "bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center" }, hAsync("eds-icon-wrapper", { key: '092271b13e4d496a85c55fbb5f1756805cd5d3de', class: "w-20 h-20", icon: "chevron-right" }))));
|
|
11637
11772
|
}
|
|
11638
11773
|
static get cmpMeta() { return {
|
|
11639
11774
|
"$flags$": 0,
|
|
@@ -11838,12 +11973,34 @@ class EdsLink {
|
|
|
11838
11973
|
action: 'click'
|
|
11839
11974
|
});
|
|
11840
11975
|
}
|
|
11976
|
+
handleKeyDown(event) {
|
|
11977
|
+
if (this.disabled) {
|
|
11978
|
+
return;
|
|
11979
|
+
}
|
|
11980
|
+
// Handle Enter and Space keys for activation
|
|
11981
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
11982
|
+
event.preventDefault();
|
|
11983
|
+
this.handleClick(event);
|
|
11984
|
+
// For actual navigation, trigger the native link behavior
|
|
11985
|
+
if (this.url && !this.disabled) {
|
|
11986
|
+
if (this.external) {
|
|
11987
|
+
window.open(this.url, '_blank', 'noopener,noreferrer');
|
|
11988
|
+
}
|
|
11989
|
+
else {
|
|
11990
|
+
window.location.href = this.url;
|
|
11991
|
+
}
|
|
11992
|
+
}
|
|
11993
|
+
}
|
|
11994
|
+
}
|
|
11841
11995
|
getLinkSize() {
|
|
11996
|
+
if (this.intent === 'underline') {
|
|
11997
|
+
return 'underline';
|
|
11998
|
+
}
|
|
11842
11999
|
return this.size;
|
|
11843
12000
|
}
|
|
11844
12001
|
renderLeftIcon() {
|
|
11845
12002
|
if (this.icon && this.iconPos === 'left') {
|
|
11846
|
-
return (hAsync("span", { class:
|
|
12003
|
+
return (hAsync("span", { class: "flex" }, hAsync("eds-icon-wrapper", { "aria-hidden": "true", class: `
|
|
11847
12004
|
flex inline-flex items-center justify-center
|
|
11848
12005
|
${this.size === 'large' ? 'h-24 w-24' : 'h-20 w-20'}
|
|
11849
12006
|
`, icon: this.icon })));
|
|
@@ -11852,7 +12009,7 @@ class EdsLink {
|
|
|
11852
12009
|
}
|
|
11853
12010
|
renderRightIcon() {
|
|
11854
12011
|
if (this.icon && this.iconPos === 'right') {
|
|
11855
|
-
return (hAsync("span", { class:
|
|
12012
|
+
return (hAsync("span", { class: "flex" }, hAsync("eds-icon-wrapper", { "aria-hidden": "true", class: `
|
|
11856
12013
|
flex inline-flex items-center justify-center
|
|
11857
12014
|
${this.size === 'large' ? 'h-24 w-24' : 'h-20 w-20'}
|
|
11858
12015
|
`, icon: this.icon })));
|
|
@@ -11860,8 +12017,6 @@ class EdsLink {
|
|
|
11860
12017
|
return null;
|
|
11861
12018
|
}
|
|
11862
12019
|
render() {
|
|
11863
|
-
// If the link is disabled, use a <span>; otherwise, use an <a> element.
|
|
11864
|
-
const ComponentType = this.disabled ? 'span' : 'a';
|
|
11865
12020
|
const classes = linkStyles({
|
|
11866
12021
|
intent: this.intent,
|
|
11867
12022
|
size: this.getLinkSize(),
|
|
@@ -11869,12 +12024,12 @@ class EdsLink {
|
|
|
11869
12024
|
isActive: this.current,
|
|
11870
12025
|
hasIcon: !!this.icon
|
|
11871
12026
|
});
|
|
11872
|
-
|
|
11873
|
-
const
|
|
12027
|
+
const isInteractive = !this.disabled;
|
|
12028
|
+
const isIconOnly = !this.label || (this.hideLabelOnSmallScreen && this.icon);
|
|
11874
12029
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
11875
12030
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
11876
12031
|
: '';
|
|
11877
|
-
return (hAsync(
|
|
12032
|
+
return (hAsync("a", { key: '929b7318ec6475113125e40d789476df76e59e38', class: `${classes || ''} ${this.extraClass || ''}`, href: isInteractive ? this.url : undefined, target: this.external && isInteractive ? '_blank' : undefined, rel: this.external && isInteractive ? 'noopener noreferrer' : undefined, tabIndex: isInteractive ? 0 : -1, "aria-label": isIconOnly ? this.ariaLabel || 'Link' : undefined, "aria-disabled": this.disabled ? 'true' : undefined, "aria-current": this.current ? 'page' : undefined, role: this.disabled ? 'link' : undefined, download: this.download ? '' : undefined, onClick: (event) => this.handleClick(event), onKeyDown: (event) => this.handleKeyDown(event) }, hAsync("span", { key: '4b965dcb07ebca43577b0dcd9f2d11495caa761a', class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), this.label && hAsync("span", { key: 'a4327fe130fb8c3962096eff3415ad62e19230f4', class: labelClasses }, this.label), this.renderRightIcon())));
|
|
11878
12033
|
}
|
|
11879
12034
|
get el() { return getElement(this); }
|
|
11880
12035
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -11982,7 +12137,7 @@ class EdsLogo {
|
|
|
11982
12137
|
}
|
|
11983
12138
|
render() {
|
|
11984
12139
|
const logoContent = this.getLogo();
|
|
11985
|
-
return (hAsync("a", { key: '
|
|
12140
|
+
return (hAsync("a", { key: 'fff2a45eb8b41f59026ff7033824484339e3c0a9', href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, hAsync("div", { key: 'bc13988a739af1c94d5eadbabf558cbbb10927b8', innerHTML: logoContent })));
|
|
11986
12141
|
}
|
|
11987
12142
|
get el() { return getElement(this); }
|
|
11988
12143
|
static get style() { return EdsLogoStyle0; }
|
|
@@ -12257,9 +12412,9 @@ class EdsModal {
|
|
|
12257
12412
|
render() {
|
|
12258
12413
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
12259
12414
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
12260
|
-
return (hAsync("div", { key: '
|
|
12415
|
+
return (hAsync("div", { key: '14c35228e2aaf72d59f1766fd8e69fcd06ea5270', id: "eds-modal", class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-9999999 flex`, role: "dialog", "aria-modal": "true", "aria-labelledby": titleId }, this.isOpen && (hAsync("div", { key: '34b5dad3a31cd9a66135ce9d93d48215712529b9', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
12261
12416
|
,
|
|
12262
|
-
onClick: () => this.close() })), hAsync("div", { key: '
|
|
12417
|
+
onClick: () => this.close() })), hAsync("div", { key: '5268780d170f080404d2c3ab0bb3f355b50895cb', class: `container absolute bg-inverse z-10 ${this.getModalPositionClasses()} grow justify-center` }, hAsync("div", { key: '20c094f3fb3cd31280118d687dec311a8aa59f57', class: `flex justify-between items-center border-b-2 border-softer px-20 py-20 ${this.inverseHeader ? 'bg-strongest text-inverse' : 'bg-dark text-default'}` }, hAsync("span", { key: 'de7ff288945cd6e0a8c97d9c40cf02cc5ba4ea41', id: titleId, class: `f-heading-04 ${this.getTruncateClass()}` }, this.heading), hAsync("eds-button", { key: 'a46dc51081ad99856cfa81ccdf2ab060f644c7cb', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8 text-default" })), hAsync("div", { key: '45557580b90ae4f5d176eaa4805ce527d6e59eec', class: "pt-8 px-20 py-20" }, hAsync("slot", { key: 'b67c888a32c615c5073768ec3cd4e342a34a84c6' })))));
|
|
12263
12418
|
}
|
|
12264
12419
|
get el() { return getElement(this); }
|
|
12265
12420
|
static get style() { return EdsModalStyle0; }
|
|
@@ -12282,7 +12437,99 @@ class EdsModal {
|
|
|
12282
12437
|
}; }
|
|
12283
12438
|
}
|
|
12284
12439
|
|
|
12285
|
-
const
|
|
12440
|
+
const edsNpsCss = ".flex{display:flex}.justify-between{justify-content:space-between}.mt-4{margin-top:0.25rem}.mt-8{margin-top:0.5rem}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.grid{display:grid}.grid-col-span-1{--container-grid-columns:1;grid-column:span 1 / span 1}.grid-cols-11{grid-template-columns:repeat(11, minmax(0, 1fr))}.grid-cols-11[class*=\"grid-line-x\"][class*=\"grid-line-x\"]>*:nth-child(n)::before{border-bottom-width:1px}.grid-cols-11[class*=\"grid-line-xfull\"]>*:nth-child(n)::before{inset-inline-start:calc(var(--inner-gutter) / -2);inset-inline-end:calc(var(--inner-gutter) / -2)}.grid-cols-11[class*=\"grid-line-x\"]>*:nth-child(11n+1)::before{inset-inline-start:0}.grid-cols-11[class*=\"grid-line-x\"]>*:nth-child(11n+11)::before{inset-inline-end:0}.grid-cols-11[class*=\"grid-line-x\"]>*:nth-child(11n+1):nth-last-child(-n+11)::before{border-bottom-width:0}.grid-cols-11[class*=\"grid-line-x\"]>*:nth-child(11n+1):nth-last-child(-n+11)~*::before{border-bottom-width:0}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(n)::after{border-inline-end-width:1px}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(11n+11)::after{border-inline-end-width:0}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(-n+11)::after{top:0}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(11n+1):nth-last-child(-n+11)::after{bottom:0}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(11n+1):nth-last-child(-n+11)~li::after{bottom:0}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.text-light{color:var(--grey-700)}";
|
|
12441
|
+
var EdsNpsStyle0 = edsNpsCss;
|
|
12442
|
+
|
|
12443
|
+
class EdsNps {
|
|
12444
|
+
constructor(hostRef) {
|
|
12445
|
+
registerInstance(this, hostRef);
|
|
12446
|
+
this.nps = createEvent(this, "nps", 7);
|
|
12447
|
+
this.min = 0;
|
|
12448
|
+
this.max = 10;
|
|
12449
|
+
this.question = undefined;
|
|
12450
|
+
this.leftLabel = undefined;
|
|
12451
|
+
this.rightLabel = undefined;
|
|
12452
|
+
this.selectedValue = null;
|
|
12453
|
+
}
|
|
12454
|
+
handleClick(value) {
|
|
12455
|
+
this.selectedValue = value;
|
|
12456
|
+
this.nps.emit(value);
|
|
12457
|
+
}
|
|
12458
|
+
handleKeyNav(e) {
|
|
12459
|
+
const radios = Array.from(this.el.shadowRoot.querySelectorAll('eds-button'));
|
|
12460
|
+
const currentIndex = radios.findIndex((r) => r.tabIndex === 0);
|
|
12461
|
+
switch (e.key) {
|
|
12462
|
+
case 'ArrowRight':
|
|
12463
|
+
case 'ArrowLeft': {
|
|
12464
|
+
e.preventDefault();
|
|
12465
|
+
const delta = e.key === 'ArrowRight' ? 1 : -1;
|
|
12466
|
+
const nextIndex = Math.min(this.max, Math.max(0, currentIndex + delta));
|
|
12467
|
+
this.activateRadio(radios, nextIndex);
|
|
12468
|
+
break;
|
|
12469
|
+
}
|
|
12470
|
+
case 'Home': {
|
|
12471
|
+
e.preventDefault();
|
|
12472
|
+
this.activateRadio(radios, 0);
|
|
12473
|
+
break;
|
|
12474
|
+
}
|
|
12475
|
+
case 'End': {
|
|
12476
|
+
e.preventDefault();
|
|
12477
|
+
this.activateRadio(radios, this.max);
|
|
12478
|
+
break;
|
|
12479
|
+
}
|
|
12480
|
+
case 'Enter':
|
|
12481
|
+
case ' ': {
|
|
12482
|
+
e.preventDefault();
|
|
12483
|
+
if (currentIndex >= 0) {
|
|
12484
|
+
this.handleClick(this.min + currentIndex);
|
|
12485
|
+
}
|
|
12486
|
+
break;
|
|
12487
|
+
}
|
|
12488
|
+
case 'Escape': {
|
|
12489
|
+
e.preventDefault();
|
|
12490
|
+
if (currentIndex >= 0) {
|
|
12491
|
+
radios[currentIndex].blur();
|
|
12492
|
+
}
|
|
12493
|
+
break;
|
|
12494
|
+
}
|
|
12495
|
+
default:
|
|
12496
|
+
return;
|
|
12497
|
+
}
|
|
12498
|
+
}
|
|
12499
|
+
activateRadio(radios, index) {
|
|
12500
|
+
const target = radios[index];
|
|
12501
|
+
const value = this.min + index;
|
|
12502
|
+
this.handleClick(value);
|
|
12503
|
+
target.focus();
|
|
12504
|
+
}
|
|
12505
|
+
render() {
|
|
12506
|
+
const count = this.max - this.min + 1;
|
|
12507
|
+
const fallback = 0;
|
|
12508
|
+
return (hAsync("div", { key: 'd675e1e4ecc306511c0324d0b76ee66237cb6738', class: "eds-nps" }, hAsync("eds-input-label", { key: '2eede06f6ee166c36b0cf315a35435c89c3c0ba5', id: "nps-question", name: "nps-question", label: this.question }), hAsync("div", { key: '16105649fe6b3b229127c9a741367a6381db774f', role: "group", id: "nps-buttons", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: count }, (_, i) => {
|
|
12509
|
+
const val = this.min + i;
|
|
12510
|
+
const isSelected = val === this.selectedValue;
|
|
12511
|
+
const tabIndex = this.selectedValue === null ? (i === fallback ? 0 : -1) : isSelected ? 0 : -1;
|
|
12512
|
+
return (hAsync("div", { class: "grid-col-span-1", key: val }, hAsync("eds-button", { tabindex: tabIndex, label: `${val}`, "aria-label": `${val}`, intent: isSelected ? 'primary' : 'ghost', "extra-class": "!block !px-0 w-full", triggerClick: () => this.handleClick(val) })));
|
|
12513
|
+
})), hAsync("div", { key: 'e7bd70a4f1a8083d9c3e08fdf8de55999a27d92d', class: "flex justify-between mt-8" }, hAsync("span", { key: 'ea3fbbac20a162e7cf5f2d5e3321c8bc9297014e', class: "f-ui-04 text-light ml-4" }, this.leftLabel), hAsync("span", { key: '3ff59cde0c532587ead8b8a1eaaff6c630e7e7ac', class: "f-ui-04 text-light mr-4" }, this.rightLabel))));
|
|
12514
|
+
}
|
|
12515
|
+
get el() { return getElement(this); }
|
|
12516
|
+
static get style() { return EdsNpsStyle0; }
|
|
12517
|
+
static get cmpMeta() { return {
|
|
12518
|
+
"$flags$": 9,
|
|
12519
|
+
"$tagName$": "eds-nps",
|
|
12520
|
+
"$members$": {
|
|
12521
|
+
"question": [1],
|
|
12522
|
+
"leftLabel": [1, "left-label"],
|
|
12523
|
+
"rightLabel": [1, "right-label"],
|
|
12524
|
+
"selectedValue": [32]
|
|
12525
|
+
},
|
|
12526
|
+
"$listeners$": undefined,
|
|
12527
|
+
"$lazyBundleId$": "-",
|
|
12528
|
+
"$attrsToReflect$": []
|
|
12529
|
+
}; }
|
|
12530
|
+
}
|
|
12531
|
+
|
|
12532
|
+
const edsPaginationCss = "ul,menu{list-style:none;margin:0;padding:0}.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)}.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)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-light{color:var(--grey-700)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}";
|
|
12286
12533
|
var EdsPaginationStyle0 = edsPaginationCss;
|
|
12287
12534
|
|
|
12288
12535
|
/**
|
|
@@ -12292,23 +12539,73 @@ var EdsPaginationStyle0 = edsPaginationCss;
|
|
|
12292
12539
|
* - Supports two display modes: "default" (shows numbered page links) and "navigator" (shows Previous/Next buttons).
|
|
12293
12540
|
* - Emits a `page` event when the page is changed in "default" mode.
|
|
12294
12541
|
* - Automatically generates pagination links based on the `currentPage` and `lastPage`.
|
|
12542
|
+
* - Full keyboard navigation support with arrow keys, Home, End
|
|
12543
|
+
* - Proper ARIA labels and screen reader support
|
|
12295
12544
|
*
|
|
12296
12545
|
* This component is designed for flexible and accessible pagination controls, suitable for various display needs.
|
|
12297
12546
|
*/
|
|
12298
12547
|
class EdsPagination {
|
|
12299
12548
|
constructor(hostRef) {
|
|
12300
12549
|
registerInstance(this, hostRef);
|
|
12550
|
+
/**
|
|
12551
|
+
* Handles keyboard navigation within the pagination
|
|
12552
|
+
*/
|
|
12553
|
+
this.handleKeyDown = (e) => {
|
|
12554
|
+
if (this.mode !== 'default' || !this.useButtons) {
|
|
12555
|
+
return;
|
|
12556
|
+
}
|
|
12557
|
+
const navigableItems = this.getNavigableItems();
|
|
12558
|
+
if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') {
|
|
12559
|
+
e.preventDefault();
|
|
12560
|
+
const increment = e.key === 'ArrowRight' ? 1 : -1;
|
|
12561
|
+
let currentIndex = this.focusedIndex;
|
|
12562
|
+
// If no item is focused, start from current page or first item
|
|
12563
|
+
if (currentIndex === -1) {
|
|
12564
|
+
const currentPageIndex = navigableItems.findIndex((item) => item.type === 'page' && item.page === this.currentPage);
|
|
12565
|
+
currentIndex = currentPageIndex !== -1 ? currentPageIndex : 0;
|
|
12566
|
+
}
|
|
12567
|
+
let newIndex = currentIndex + increment;
|
|
12568
|
+
// Wrap around navigation
|
|
12569
|
+
if (newIndex >= navigableItems.length) {
|
|
12570
|
+
newIndex = 0;
|
|
12571
|
+
}
|
|
12572
|
+
else if (newIndex < 0) {
|
|
12573
|
+
newIndex = navigableItems.length - 1;
|
|
12574
|
+
}
|
|
12575
|
+
this.focusedIndex = newIndex;
|
|
12576
|
+
this.focusPaginationItem(newIndex);
|
|
12577
|
+
}
|
|
12578
|
+
else if (e.key === 'Home') {
|
|
12579
|
+
e.preventDefault();
|
|
12580
|
+
this.focusedIndex = 0;
|
|
12581
|
+
this.focusPaginationItem(0);
|
|
12582
|
+
}
|
|
12583
|
+
else if (e.key === 'End') {
|
|
12584
|
+
e.preventDefault();
|
|
12585
|
+
const lastIndex = navigableItems.length - 1;
|
|
12586
|
+
this.focusedIndex = lastIndex;
|
|
12587
|
+
this.focusPaginationItem(lastIndex);
|
|
12588
|
+
}
|
|
12589
|
+
};
|
|
12590
|
+
/**
|
|
12591
|
+
* Handles focus events for pagination items
|
|
12592
|
+
*/
|
|
12593
|
+
this.handleItemFocus = (index) => {
|
|
12594
|
+
this.focusedIndex = index;
|
|
12595
|
+
};
|
|
12301
12596
|
this.currentPage = undefined;
|
|
12302
12597
|
this.lastPage = undefined;
|
|
12303
12598
|
this.perPage = 10;
|
|
12304
12599
|
this.total = 0;
|
|
12305
12600
|
this.url = '';
|
|
12306
12601
|
this.mode = 'default';
|
|
12602
|
+
this.useButtons = true;
|
|
12307
12603
|
this.prevLabel = 'Prev';
|
|
12308
12604
|
this.nextLabel = 'Next';
|
|
12309
12605
|
this.prevUrl = '';
|
|
12310
12606
|
this.nextUrl = '';
|
|
12311
12607
|
this.links = [];
|
|
12608
|
+
this.focusedIndex = -1;
|
|
12312
12609
|
}
|
|
12313
12610
|
/** Lifecycle hook to generate pagination links on component load */
|
|
12314
12611
|
componentWillLoad() {
|
|
@@ -12317,24 +12614,17 @@ class EdsPagination {
|
|
|
12317
12614
|
}
|
|
12318
12615
|
}
|
|
12319
12616
|
componentDidLoad() {
|
|
12320
|
-
//
|
|
12321
|
-
|
|
12322
|
-
|
|
12323
|
-
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
this.emitContext(links[0]);
|
|
12328
|
-
|
|
12329
|
-
// Emit context for the last link, if it's different from the first
|
|
12330
|
-
if (links.length > 1) {
|
|
12331
|
-
this.emitContext(links[links.length - 1]);
|
|
12332
|
-
}
|
|
12333
|
-
}*/
|
|
12617
|
+
// Only emit context for links, not buttons
|
|
12618
|
+
if (!this.useButtons) {
|
|
12619
|
+
const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
|
|
12620
|
+
links.forEach((lnk) => {
|
|
12621
|
+
this.emitContext(lnk);
|
|
12622
|
+
});
|
|
12623
|
+
}
|
|
12334
12624
|
}
|
|
12335
12625
|
/**
|
|
12336
12626
|
* Emits a custom event called `parentContext` for a given link element.
|
|
12337
|
-
* This event provides context information about the
|
|
12627
|
+
* This event provides context information about the pagination component.
|
|
12338
12628
|
*
|
|
12339
12629
|
* @param linkElement - The link element to which the event will be dispatched.
|
|
12340
12630
|
*/
|
|
@@ -12352,6 +12642,34 @@ class EdsPagination {
|
|
|
12352
12642
|
this.generateLinks();
|
|
12353
12643
|
}
|
|
12354
12644
|
}
|
|
12645
|
+
/**
|
|
12646
|
+
* Gets all navigable pagination items for keyboard navigation
|
|
12647
|
+
*/
|
|
12648
|
+
getNavigableItems() {
|
|
12649
|
+
const items = [];
|
|
12650
|
+
// Previous button
|
|
12651
|
+
items.push({ type: 'prev', disabled: this.isFirstPage() });
|
|
12652
|
+
// Page numbers
|
|
12653
|
+
this.links.forEach((link) => {
|
|
12654
|
+
if (typeof link === 'object') {
|
|
12655
|
+
items.push({ type: 'page', page: parseInt(link.label), disabled: false });
|
|
12656
|
+
}
|
|
12657
|
+
});
|
|
12658
|
+
// Next button
|
|
12659
|
+
items.push({ type: 'next', disabled: this.isLastPage() });
|
|
12660
|
+
return items.filter((item) => !item.disabled);
|
|
12661
|
+
}
|
|
12662
|
+
/**
|
|
12663
|
+
* Focuses a specific pagination item by index
|
|
12664
|
+
*/
|
|
12665
|
+
focusPaginationItem(index) {
|
|
12666
|
+
var _a;
|
|
12667
|
+
const buttons = (_a = this.hostEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.pagination-button');
|
|
12668
|
+
const targetButton = buttons === null || buttons === void 0 ? void 0 : buttons[index];
|
|
12669
|
+
if (targetButton) {
|
|
12670
|
+
targetButton.focus();
|
|
12671
|
+
}
|
|
12672
|
+
}
|
|
12355
12673
|
/**
|
|
12356
12674
|
* Checks if the current page is the first page
|
|
12357
12675
|
* @returns {boolean} - true if current page is the first page
|
|
@@ -12374,7 +12692,7 @@ class EdsPagination {
|
|
|
12374
12692
|
generateLink(page) {
|
|
12375
12693
|
const urlHasQuery = this.url.includes('?');
|
|
12376
12694
|
return {
|
|
12377
|
-
ariaLabel: `
|
|
12695
|
+
ariaLabel: `Go to page ${page}`,
|
|
12378
12696
|
url: `${this.url}${urlHasQuery ? '&' : '?'}page=${page}`,
|
|
12379
12697
|
label: page.toString(),
|
|
12380
12698
|
current: this.currentPage === page,
|
|
@@ -12394,7 +12712,6 @@ class EdsPagination {
|
|
|
12394
12712
|
* Creates a pagination range based on delta, current, and total pages
|
|
12395
12713
|
* @param {number} current - Current page number
|
|
12396
12714
|
* @param {number} total - Total number of pages
|
|
12397
|
-
* @param {number} delta - Range of pages to display around the current page
|
|
12398
12715
|
* @returns {(number | string)[]} - Range of page numbers or ellipses
|
|
12399
12716
|
*/
|
|
12400
12717
|
getPaginationGenerator(current, total) {
|
|
@@ -12409,7 +12726,7 @@ class EdsPagination {
|
|
|
12409
12726
|
else {
|
|
12410
12727
|
// Always show the first page
|
|
12411
12728
|
range.push(1);
|
|
12412
|
-
// Add ellipsis if there
|
|
12729
|
+
// Add ellipsis if there's a gap between the first page and the current range start
|
|
12413
12730
|
if (current - delta > 2) {
|
|
12414
12731
|
range.push('...');
|
|
12415
12732
|
}
|
|
@@ -12417,7 +12734,7 @@ class EdsPagination {
|
|
|
12417
12734
|
for (let i = Math.max(2, current - delta); i <= Math.min(total - 1, current + delta); i++) {
|
|
12418
12735
|
range.push(i);
|
|
12419
12736
|
}
|
|
12420
|
-
// Add ellipsis if there
|
|
12737
|
+
// Add ellipsis if there's a gap between the current range end and the last page
|
|
12421
12738
|
if (current + delta < total - 1) {
|
|
12422
12739
|
range.push('...');
|
|
12423
12740
|
}
|
|
@@ -12432,9 +12749,11 @@ class EdsPagination {
|
|
|
12432
12749
|
*/
|
|
12433
12750
|
pageResults() {
|
|
12434
12751
|
if (this.total > 0) {
|
|
12752
|
+
const start = this.perPage * ((this.currentPage || 1) - 1) + 1;
|
|
12753
|
+
const end = Math.min(this.perPage * (this.currentPage || 1), this.total);
|
|
12435
12754
|
return this.total > this.perPage
|
|
12436
|
-
?
|
|
12437
|
-
:
|
|
12755
|
+
? `Showing ${start} to ${end} of ${this.total} results`
|
|
12756
|
+
: `Showing ${this.total} result${this.total !== 1 ? 's' : ''}`;
|
|
12438
12757
|
}
|
|
12439
12758
|
return '';
|
|
12440
12759
|
}
|
|
@@ -12447,7 +12766,9 @@ class EdsPagination {
|
|
|
12447
12766
|
if (this.mode === 'navigator') {
|
|
12448
12767
|
return; // No page clicking logic for navigator mode
|
|
12449
12768
|
}
|
|
12450
|
-
|
|
12769
|
+
if (this.useButtons) {
|
|
12770
|
+
event.preventDefault(); // Prevent default for buttons
|
|
12771
|
+
}
|
|
12451
12772
|
if (newPage !== this.currentPage) {
|
|
12452
12773
|
this.links = this.links.map((link) => typeof link === 'object' ? Object.assign(Object.assign({}, link), { current: parseInt(link.label) === newPage }) : link);
|
|
12453
12774
|
const pageChangeEvent = new CustomEvent('page', {
|
|
@@ -12460,38 +12781,25 @@ class EdsPagination {
|
|
|
12460
12781
|
}
|
|
12461
12782
|
}
|
|
12462
12783
|
render() {
|
|
12463
|
-
|
|
12464
|
-
|
|
12784
|
+
const navigableIndex = -1; // Track index for keyboard navigation
|
|
12785
|
+
return (hAsync("div", { key: '753a7e573a09e7fcb66eac9e11e00f690c49543d' }, this.total > 0 && this.mode === 'default' && (hAsync("p", { key: '6286d71622614a835d471812a55d5c6bef37a13e', class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, hAsync("span", { key: 'daa7bfa31e736a40c46641fed88653d51eeabc67', class: "text-light sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (hAsync("nav", { "aria-label": "Pagination Navigation", "aria-describedby": this.mode === 'default' ? 'pagination-info' : undefined, onKeyDown: this.handleKeyDown }, hAsync("ul", { class: "flex items-center justify-center gap-x-8", role: "list" }, hAsync("li", { class: "mr-auto" }, this.useButtons ? (hAsync("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, hAsync("eds-button", { label: this.prevLabel, disabled: this.mode === 'navigator' ? !this.prevUrl : this.isFirstPage(), "aria-label": "Go to previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "ghost", "extra-class": "!p-8 lg:!pr-12 pagination-button", onClick: (event) => {
|
|
12786
|
+
if (this.mode === 'default' && !this.isFirstPage()) {
|
|
12787
|
+
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
12788
|
+
}
|
|
12789
|
+
} }))) : (hAsync("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
|
|
12790
|
+
? this.prevUrl || '#'
|
|
12465
12791
|
: this.isFirstPage()
|
|
12466
12792
|
? '#'
|
|
12467
|
-
: this.generateLink(this.currentPage - 1).url, disabled: this.mode === 'navigator'
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
if (this.isFirstPage()) {
|
|
12472
|
-
event.preventDefault(); // Prevent click if disabled
|
|
12473
|
-
}
|
|
12474
|
-
else {
|
|
12475
|
-
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
12476
|
-
}
|
|
12793
|
+
: this.generateLink(this.currentPage - 1).url, disabled: this.mode === 'navigator' ? !this.prevUrl : this.isFirstPage(), "aria-label": "Go to previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pr-12" }))), this.mode === 'default' &&
|
|
12794
|
+
this.links.map((link, index) => (hAsync("li", { key: index, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof link === 'string' ? (hAsync("span", { class: "flex items-center justify-center", "aria-hidden": "true" }, link)) : this.useButtons ? (hAsync("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, hAsync("eds-button", { label: link.label, "aria-label": link.current ? `Current page, page ${link.label}` : `Go to page ${link.label}`, "aria-current": link.current ? 'page' : undefined, size: "small", "extra-class": "!p-8 pagination-button", intent: link.current ? 'secondary' : 'ghost', onClick: (event) => this.handlePageClick(event, parseInt(link.label)) }))) : (hAsync("eds-link", { url: link.url, "aria-label": link.ariaLabel, label: link.label, current: link.current, "aria-current": link.current ? 'page' : undefined, size: "small", class: "!p-8", intent: link.current ? 'secondary' : 'ghost', onClick: (event) => this.handlePageClick(event, parseInt(link.label)) }))))), hAsync("li", { class: "ml-auto" }, this.useButtons ? (hAsync("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, hAsync("eds-button", { label: this.nextLabel, disabled: this.mode === 'navigator' ? !this.nextUrl : this.isLastPage(), "aria-label": "Go to next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "ghost", "extra-class": "!p-8 lg:!pl-12 pagination-button", onClick: (event) => {
|
|
12795
|
+
if (this.mode === 'default' && !this.isLastPage()) {
|
|
12796
|
+
this.handlePageClick(event, (this.currentPage || 1) + 1);
|
|
12477
12797
|
}
|
|
12478
|
-
} })), this.mode === '
|
|
12479
|
-
|
|
12480
|
-
? this.nextUrl || '#' // Use nextUrl if provided, otherwise disable with '#'
|
|
12798
|
+
} }))) : (hAsync("eds-link", { label: this.nextLabel, url: this.mode === 'navigator'
|
|
12799
|
+
? this.nextUrl || '#'
|
|
12481
12800
|
: this.isLastPage()
|
|
12482
12801
|
? '#'
|
|
12483
|
-
: this.generateLink(this.currentPage + 1).url, disabled: this.mode === 'navigator'
|
|
12484
|
-
? !this.nextUrl // Disable if nextUrl is not provided
|
|
12485
|
-
: this.isLastPage(), "aria-label": "Next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors", onClick: (event) => {
|
|
12486
|
-
if (this.mode === 'default') {
|
|
12487
|
-
if (this.isLastPage()) {
|
|
12488
|
-
event.preventDefault(); // Prevent click if disabled
|
|
12489
|
-
}
|
|
12490
|
-
else {
|
|
12491
|
-
this.handlePageClick(event, (this.currentPage || 1) + 1);
|
|
12492
|
-
}
|
|
12493
|
-
}
|
|
12494
|
-
} }))))) : null));
|
|
12802
|
+
: this.generateLink(this.currentPage + 1).url, disabled: this.mode === 'navigator' ? !this.nextUrl : this.isLastPage(), "aria-label": "Go to next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors" })))))) : null));
|
|
12495
12803
|
}
|
|
12496
12804
|
get hostEl() { return getElement(this); }
|
|
12497
12805
|
static get watchers() { return {
|
|
@@ -12509,11 +12817,13 @@ class EdsPagination {
|
|
|
12509
12817
|
"total": [2],
|
|
12510
12818
|
"url": [1],
|
|
12511
12819
|
"mode": [1],
|
|
12820
|
+
"useButtons": [4, "use-buttons"],
|
|
12512
12821
|
"prevLabel": [1, "prev-label"],
|
|
12513
12822
|
"nextLabel": [1, "next-label"],
|
|
12514
12823
|
"prevUrl": [1, "prev-url"],
|
|
12515
12824
|
"nextUrl": [1, "next-url"],
|
|
12516
|
-
"links": [32]
|
|
12825
|
+
"links": [32],
|
|
12826
|
+
"focusedIndex": [32]
|
|
12517
12827
|
},
|
|
12518
12828
|
"$listeners$": undefined,
|
|
12519
12829
|
"$lazyBundleId$": "-",
|
|
@@ -12679,7 +12989,7 @@ class EdsProgressBar {
|
|
|
12679
12989
|
]
|
|
12680
12990
|
.filter(Boolean)
|
|
12681
12991
|
.join(' ');
|
|
12682
|
-
return (hAsync("div", { key: '
|
|
12992
|
+
return (hAsync("div", { key: '2a620231eaa84ba7e89e05da48175624fdc92d31', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, hAsync("div", { key: '660e2c84ad358c0de1d9548b730308505e79bcd6', class: fillClasses, style: { width: `${progressValue}%` } }), hAsync("div", { key: '4d0fa2a209d315b658f80906b95a0bf255c82c78', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, hAsync("span", { key: '0d423e16659d84b2d050f7d60ced4aefeeef9022', class: "text-default f-body-02" }, progressValue, "%"))));
|
|
12683
12993
|
}
|
|
12684
12994
|
static get style() { return EdsProgressBarStyle0; }
|
|
12685
12995
|
static get cmpMeta() { return {
|
|
@@ -12703,6 +13013,7 @@ class EdsRating {
|
|
|
12703
13013
|
constructor(hostRef) {
|
|
12704
13014
|
registerInstance(this, hostRef);
|
|
12705
13015
|
this.rating = createEvent(this, "rating", 7);
|
|
13016
|
+
this.buttonRefs = [];
|
|
12706
13017
|
this.ratingType = 'star';
|
|
12707
13018
|
this.ratingCount = 5;
|
|
12708
13019
|
this.selectedRating = 0;
|
|
@@ -12736,16 +13047,37 @@ class EdsRating {
|
|
|
12736
13047
|
* Handles the click event on a star.
|
|
12737
13048
|
* @param rating - The selected rating value.
|
|
12738
13049
|
*/
|
|
12739
|
-
|
|
13050
|
+
onSelect(rating) {
|
|
12740
13051
|
this.selectedRating = rating;
|
|
12741
13052
|
this.rating.emit(rating);
|
|
13053
|
+
setTimeout(() => {
|
|
13054
|
+
const btn = this.buttonRefs[rating - 1];
|
|
13055
|
+
btn === null || btn === void 0 ? void 0 : btn.focus();
|
|
13056
|
+
}, 0);
|
|
13057
|
+
}
|
|
13058
|
+
handleKeyNav(e) {
|
|
13059
|
+
const { key } = e;
|
|
13060
|
+
if (!['ArrowRight', 'ArrowLeft', 'ArrowDown', 'ArrowUp'].includes(key)) {
|
|
13061
|
+
return;
|
|
13062
|
+
}
|
|
13063
|
+
e.preventDefault();
|
|
13064
|
+
const increment = key === 'ArrowRight' || key === 'ArrowDown' ? 1 : -1;
|
|
13065
|
+
let next = (this.selectedRating || 1) + increment;
|
|
13066
|
+
if (next > this.ratingCount) {
|
|
13067
|
+
next = 1;
|
|
13068
|
+
}
|
|
13069
|
+
if (next < 1) {
|
|
13070
|
+
next = this.ratingCount;
|
|
13071
|
+
}
|
|
13072
|
+
this.onSelect(next);
|
|
12742
13073
|
}
|
|
12743
13074
|
render() {
|
|
12744
|
-
return (hAsync("div", { key: '
|
|
13075
|
+
return (hAsync("div", { key: 'bd72970d86f2dbb21d58671fc85feea3011749b3', id: "rating-buttons", role: "radiogroup", "aria-labelledby": "rating", class: "stars flex space-x-1 my-8", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: this.ratingCount }, (_, index) => {
|
|
12745
13076
|
const starRating = index + 1;
|
|
12746
13077
|
const isSelected = starRating <= this.selectedRating;
|
|
12747
13078
|
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
12748
|
-
|
|
13079
|
+
const checked = this.selectedRating === starRating;
|
|
13080
|
+
return (hAsync("eds-button", { ref: (el) => (this.buttonRefs[index] = el), icon: this.ratingType, role: "radio", "aria-checked": checked, "aria-label": `${starRating} ${this.ratingType}${starRating > 1 ? 's' : ''}`, onClick: () => this.onSelect(starRating), tabIndex: checked || (this.selectedRating === 0 && index === 0) ? 0 : -1, intent: isSelected ? 'primary' : 'ghost', size: "large", "extra-class": "p-2" // Optional padding or styling for the star button
|
|
12749
13081
|
}));
|
|
12750
13082
|
})));
|
|
12751
13083
|
}
|
|
@@ -12790,7 +13122,7 @@ class EdsSectionCore {
|
|
|
12790
13122
|
}
|
|
12791
13123
|
render() {
|
|
12792
13124
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
12793
|
-
return (hAsync(TagType, { key: '
|
|
13125
|
+
return (hAsync(TagType, { key: 'b77b5af1c6f3acbc2696a9608b55199ed4110d71' }, hAsync("eds-section-heading", { key: '464dd4c67d69d1ef3ed1d932081c3195a2b51503', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: 'b5dbd4f55aee2df3bcbc44e21a134544ffd733f7' })));
|
|
12794
13126
|
}
|
|
12795
13127
|
static get style() { return EdsSectionCoreStyle0; }
|
|
12796
13128
|
static get cmpMeta() { return {
|
|
@@ -12845,12 +13177,12 @@ class EdsSectionHeading {
|
|
|
12845
13177
|
render() {
|
|
12846
13178
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
12847
13179
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
12848
|
-
return (hAsync(TagType, { key: '
|
|
13180
|
+
return (hAsync(TagType, { key: '4ae69ea354156a0e35a8884a63d7556ead8ada24', class: {
|
|
12849
13181
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
12850
13182
|
container: this.withContainer,
|
|
12851
13183
|
'pt-48': this.spacingLarge,
|
|
12852
13184
|
'pt-28': !this.spacingLarge
|
|
12853
|
-
} }, hAsync(HeadingTag, { key: '
|
|
13185
|
+
} }, hAsync(HeadingTag, { key: 'a3549fb733687c3ff31f17bdc362275eb0b29e31', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
12854
13186
|
}
|
|
12855
13187
|
static get cmpMeta() { return {
|
|
12856
13188
|
"$flags$": 0,
|
|
@@ -12926,7 +13258,7 @@ class EdsSocialNetworks {
|
|
|
12926
13258
|
* @returns {JSX.Element} The rendered JSX for the component.
|
|
12927
13259
|
*/
|
|
12928
13260
|
render() {
|
|
12929
|
-
return (hAsync("div", { key: '
|
|
13261
|
+
return (hAsync("div", { key: '7241de6d0a20687523e17a4455dff1dfac59a191' }, hAsync("p", { key: '8292c0dde1b3518ada53dddc2ea0134ff3035e83', class: "f-ui-02" }, this.heading), hAsync("ul", { key: 'b30922e6d1f51a52300c889464824fafad775f74', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (hAsync("li", { key: index }, hAsync("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
|
|
12930
13262
|
}
|
|
12931
13263
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
12932
13264
|
static get cmpMeta() { return {
|
|
@@ -13017,7 +13349,7 @@ class EdsSpinner {
|
|
|
13017
13349
|
alignItems: 'center',
|
|
13018
13350
|
justifyContent: 'center'
|
|
13019
13351
|
};
|
|
13020
|
-
return (hAsync(Host, { key: '
|
|
13352
|
+
return (hAsync(Host, { key: 'cbf9cead7c7c6bc5314c074f7249c920eb60d326' }, hAsync("div", { key: 'd22c71a76af3f53c649e547538e0f1627cd9ecd0', class: "spinner-overlay", style: overlayStyle }, hAsync("span", { key: '83b42f7ee9ba4d356bd82097989b8be1db8a8ef9', class: "spinner", style: spinnerStyle }), this.message && hAsync("p", { key: '0a2c4efe46b8f86a037d29de699534441bf7585e', class: "f-body-01" }, this.message))));
|
|
13021
13353
|
}
|
|
13022
13354
|
static get style() { return EdsSpinnerStyle0; }
|
|
13023
13355
|
static get cmpMeta() { return {
|
|
@@ -13309,7 +13641,7 @@ class EdsStepsV2 {
|
|
|
13309
13641
|
}; }
|
|
13310
13642
|
}
|
|
13311
13643
|
|
|
13312
|
-
const edsSwitchCss = ":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch
|
|
13644
|
+
const edsSwitchCss = ":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}.ml-8{margin-left:0.5rem}.mr-8{margin-right:0.5rem}.switch:focus{outline:2px solid #005fcc;outline-offset:2px}.switch:focus:not(:focus-visible){outline:none}.switch:focus-visible{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}";
|
|
13313
13645
|
var EdsSwitchStyle0 = edsSwitchCss;
|
|
13314
13646
|
|
|
13315
13647
|
class EdsSwitch {
|
|
@@ -13329,19 +13661,41 @@ class EdsSwitch {
|
|
|
13329
13661
|
action: 'checked'
|
|
13330
13662
|
});
|
|
13331
13663
|
};
|
|
13664
|
+
this.handleKeyDown = (e) => {
|
|
13665
|
+
if (this.disabled) {
|
|
13666
|
+
return;
|
|
13667
|
+
}
|
|
13668
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
13669
|
+
e.preventDefault();
|
|
13670
|
+
this.toggleSwitch();
|
|
13671
|
+
}
|
|
13672
|
+
};
|
|
13332
13673
|
this.checked = false;
|
|
13333
13674
|
this.disabled = false;
|
|
13334
13675
|
this.labelOn = '';
|
|
13335
13676
|
this.labelOff = '';
|
|
13336
13677
|
}
|
|
13337
13678
|
render() {
|
|
13338
|
-
|
|
13339
|
-
const
|
|
13340
|
-
|
|
13679
|
+
const switchId = `switch-${Math.random().toString(36).substr(2, 9)}`;
|
|
13680
|
+
const labelledBy = [];
|
|
13681
|
+
if (this.labelOff) {
|
|
13682
|
+
labelledBy.push(`${switchId}-off`);
|
|
13683
|
+
}
|
|
13684
|
+
if (this.labelOn) {
|
|
13685
|
+
labelledBy.push(`${switchId}-on`);
|
|
13686
|
+
}
|
|
13687
|
+
const accessibleLabel = labelledBy.length === 0
|
|
13688
|
+
? this.labelOn || this.labelOff
|
|
13689
|
+
? this.checked
|
|
13690
|
+
? this.labelOn
|
|
13691
|
+
: this.labelOff
|
|
13692
|
+
: 'Toggle switch'
|
|
13693
|
+
: undefined;
|
|
13694
|
+
return (hAsync("div", { key: 'f4c99a2ec360af6030de11698bab82833b3f415f', class: "switch-container" }, this.labelOff && (hAsync("span", { key: '8bb8d063e744c194c0d44a0c371ae8224f9611cb', id: `${switchId}-off`, class: "switch-label switch-label--off mr-8" }, this.labelOff)), hAsync("button", { key: 'ccc49c8ac6f639707c90822e24f3ae3ab8f2c26c', 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: {
|
|
13341
13695
|
switch: true,
|
|
13342
13696
|
'switch--checked': this.checked,
|
|
13343
13697
|
'switch--disabled': this.disabled
|
|
13344
|
-
}, onClick: this.toggleSwitch, disabled: this.disabled }, hAsync("span", { key: '
|
|
13698
|
+
}, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, hAsync("span", { key: '2275930bc9909c0a95c6c10e28f715fe1afe9294', class: "switch-handle" })), this.labelOn && (hAsync("span", { key: 'd789fd15943c1fadf1f87c55059261eaf5e05a8f', id: `${switchId}-on`, class: "switch-label switch-label--on ml-8" }, this.labelOn))));
|
|
13345
13699
|
}
|
|
13346
13700
|
get el() { return getElement(this); }
|
|
13347
13701
|
static get style() { return EdsSwitchStyle0; }
|
|
@@ -13367,7 +13721,6 @@ var EdsTableStyle0 = edsTableCss;
|
|
|
13367
13721
|
* `EdsTable` is a customizable data table component with support for dynamic data fetching, column configuration, pagination, and search functionality.
|
|
13368
13722
|
*
|
|
13369
13723
|
* Key Features:
|
|
13370
|
-
* - Accepts static data or fetches dynamic data from an endpoint.
|
|
13371
13724
|
* - Configurable columns with options to hide or apply text formatting (uppercase, bold, or code).
|
|
13372
13725
|
* - Pagination support with adjustable rows per page.
|
|
13373
13726
|
* - Searchable content for easier data filtering.
|
|
@@ -13381,8 +13734,33 @@ class EdsTable {
|
|
|
13381
13734
|
this.handleResize = () => {
|
|
13382
13735
|
this.updateContainerWidth();
|
|
13383
13736
|
};
|
|
13737
|
+
this.onActionKeyDown = (e) => {
|
|
13738
|
+
var _a;
|
|
13739
|
+
if (e.key !== 'ArrowRight' && e.key !== 'ArrowLeft') {
|
|
13740
|
+
return;
|
|
13741
|
+
}
|
|
13742
|
+
e.preventDefault();
|
|
13743
|
+
const currentButton = e.target;
|
|
13744
|
+
const toolbar = currentButton.closest('[role="toolbar"]');
|
|
13745
|
+
if (!toolbar) {
|
|
13746
|
+
return;
|
|
13747
|
+
}
|
|
13748
|
+
// Find all focusable action buttons in this row
|
|
13749
|
+
const actionButtons = Array.from(toolbar.querySelectorAll('eds-button'));
|
|
13750
|
+
const currentIndex = actionButtons.indexOf(currentButton);
|
|
13751
|
+
if (currentIndex === -1) {
|
|
13752
|
+
return;
|
|
13753
|
+
}
|
|
13754
|
+
let nextIndex;
|
|
13755
|
+
if (e.key === 'ArrowRight') {
|
|
13756
|
+
nextIndex = (currentIndex + 1) % actionButtons.length;
|
|
13757
|
+
}
|
|
13758
|
+
else {
|
|
13759
|
+
nextIndex = (currentIndex - 1 + actionButtons.length) % actionButtons.length;
|
|
13760
|
+
}
|
|
13761
|
+
(_a = actionButtons[nextIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
13762
|
+
};
|
|
13384
13763
|
this.data = null;
|
|
13385
|
-
this.endpoint = null;
|
|
13386
13764
|
this.config = {};
|
|
13387
13765
|
this.rowsPerPage = 10;
|
|
13388
13766
|
this.paginationEnabled = true;
|
|
@@ -13420,7 +13798,7 @@ class EdsTable {
|
|
|
13420
13798
|
componentWillLoad() {
|
|
13421
13799
|
this.parseConfig();
|
|
13422
13800
|
this.handleActionsChange();
|
|
13423
|
-
this.
|
|
13801
|
+
this.parseData();
|
|
13424
13802
|
}
|
|
13425
13803
|
componentDidLoad() {
|
|
13426
13804
|
this.updateContainerWidth();
|
|
@@ -13468,17 +13846,6 @@ class EdsTable {
|
|
|
13468
13846
|
this.parsedConfig = {};
|
|
13469
13847
|
}
|
|
13470
13848
|
}
|
|
13471
|
-
async fetchData() {
|
|
13472
|
-
try {
|
|
13473
|
-
const response = await fetch(this.endpoint);
|
|
13474
|
-
const data = await response.json();
|
|
13475
|
-
this.data = data;
|
|
13476
|
-
}
|
|
13477
|
-
catch (error) {
|
|
13478
|
-
// eslint-disable-next-line
|
|
13479
|
-
console.error('Failed to fetch data:', error);
|
|
13480
|
-
}
|
|
13481
|
-
}
|
|
13482
13849
|
setupPaginationListener() {
|
|
13483
13850
|
if (!this.shouldEnablePagination()) {
|
|
13484
13851
|
return;
|
|
@@ -13533,7 +13900,8 @@ class EdsTable {
|
|
|
13533
13900
|
const checked = !!row[boundField];
|
|
13534
13901
|
return (hAsync("eds-input-field", { name: `chc-${actionName}`, label: act.label, type: "checkbox", checked: checked, onChange: (e) => this.emitAction(act.name, row, e.target.checked) }));
|
|
13535
13902
|
}
|
|
13536
|
-
|
|
13903
|
+
// Let all action buttons be focusable naturally
|
|
13904
|
+
return (hAsync("eds-button", { label: act.label, icon: act.icon, pill: true, size: "small", intent: "ghost", tabIndex: 0, onClick: () => this.emitAction(act.name, row) }));
|
|
13537
13905
|
}
|
|
13538
13906
|
emitAction(actionName, row, checked) {
|
|
13539
13907
|
sendAnalytics({
|
|
@@ -13579,7 +13947,7 @@ class EdsTable {
|
|
|
13579
13947
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((currentContainerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
13580
13948
|
const paginatedRows = this.getPaginatedRows();
|
|
13581
13949
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
13582
|
-
return (hAsync("div", { key: '
|
|
13950
|
+
return (hAsync("div", { key: '87e7cc3c87618ede91bb51d7a07cd597a438d6c5' }, this.searchEnabled && (hAsync("div", { key: '6b77700a913e272eef4c932d40c5c5d001ff6b5c' }, hAsync("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...", onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: '6f2ffc7a3ba2cc8e8194670a7ecb9e237f7dc60a', class: "mt-20" }, hAsync("table", { key: '0227d3029f30ab9928cd01ba8dc2eccde2073f47', class: "block overflow-x-auto mt-6 p-0" }, hAsync("thead", { key: 'c1f844d8413b596d5ca07d6b79ebd36c8a17f51f' }, hAsync("tr", { key: 'caadaaf66314e3ea7d47a748b6e899389a7e2d55', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((col) => {
|
|
13583
13951
|
var _a;
|
|
13584
13952
|
if (col === 'actions') {
|
|
13585
13953
|
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }));
|
|
@@ -13588,17 +13956,22 @@ class EdsTable {
|
|
|
13588
13956
|
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.capitalize(col)));
|
|
13589
13957
|
}
|
|
13590
13958
|
return null;
|
|
13591
|
-
}))), hAsync("tbody", { key: '
|
|
13959
|
+
}))), hAsync("tbody", { key: 'da9286063f16a5c346ce8854361cb15573166a19' }, paginatedRows.map((row) => (hAsync("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((col) => {
|
|
13592
13960
|
var _a;
|
|
13593
13961
|
if (col === 'actions') {
|
|
13594
|
-
return (hAsync("td", { class: "text-center border border-softer m-0 f-ui-02 break-words actions-cell", style: { minWidth: `${columnWidth - 4}px` } }, hAsync("div", {
|
|
13962
|
+
return (hAsync("td", { class: "text-center border border-softer m-0 f-ui-02 break-words actions-cell", style: { minWidth: `${columnWidth - 4}px` } }, hAsync("div", { role: "toolbar", "aria-label": "Row actions", onKeyDown: this.onActionKeyDown, style: {
|
|
13963
|
+
display: 'flex',
|
|
13964
|
+
gap: '0.5rem',
|
|
13965
|
+
justifyContent: 'center',
|
|
13966
|
+
flexWrap: 'wrap'
|
|
13967
|
+
} }, this.parsedActions.map((act) => (hAsync("span", { style: { whiteSpace: 'nowrap' } }, this.renderSingleActionCell(act.name, row)))))));
|
|
13595
13968
|
}
|
|
13596
13969
|
if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
13597
13970
|
// Regular data cell
|
|
13598
13971
|
return (hAsync("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)));
|
|
13599
13972
|
}
|
|
13600
13973
|
return null;
|
|
13601
|
-
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '
|
|
13974
|
+
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: 'b7e7991225cf9fb16ca882dc42c7adead202aac5', class: "mt-20" }, hAsync("eds-pagination", { key: '011f209f89300357e6052ee4d118f353419d5a45', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
13602
13975
|
}
|
|
13603
13976
|
get hostEl() { return getElement(this); }
|
|
13604
13977
|
static get watchers() { return {
|
|
@@ -13612,7 +13985,6 @@ class EdsTable {
|
|
|
13612
13985
|
"$tagName$": "eds-table",
|
|
13613
13986
|
"$members$": {
|
|
13614
13987
|
"data": [1, "table-data"],
|
|
13615
|
-
"endpoint": [1],
|
|
13616
13988
|
"config": [1],
|
|
13617
13989
|
"rowsPerPage": [2, "rows-per-page"],
|
|
13618
13990
|
"paginationEnabled": [4, "pagination-enabled"],
|
|
@@ -13637,7 +14009,7 @@ class EdsTable {
|
|
|
13637
14009
|
}; }
|
|
13638
14010
|
}
|
|
13639
14011
|
|
|
13640
|
-
const edsTabsCss = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(147 197 253 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor;}::before,::after{--tw-content:''}a{color:inherit;text-decoration:inherit}.relative{position:relative}.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)}.whitespace-nowrap{white-space:nowrap}.effect-
|
|
14012
|
+
const edsTabsCss = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(147 197 253 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor;}::before,::after{--tw-content:''}a{color:inherit;text-decoration:inherit}.relative{position:relative}.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)}.whitespace-nowrap{white-space:nowrap}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus:focus-visible{outline-style:solid}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.focus-visible\\:text-default:focus-visible{color:var(--black)}.hover\\:text-default:hover{color:var(--black)}.border-2{border-width:2px}.after\\:content-\\[\\'\\'\\]::after{--tw-content:'';content:var(--tw-content)}.after\\:bottom-0::after{bottom:0rem}.after\\:border-0::after{border-width:0px}.after\\:border-b-2::after{border-bottom-width:2px}.after\\:absolute::after{position:absolute}.after\\:inset-0::after{inset:0rem}.after\\:rounded-lg::after{border-radius:16px}.after\\:border-solid::after{border-style:solid}.after\\:border-3::after{border-width:3px}.after\\:border-accent::after{border-color:var(--green-500)}.after\\:opacity-0::after{opacity:0}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:after\\:opacity-100:focus-visible::after{opacity:1}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.rounded-tl-lg{border-top-left-radius:16px}.rounded-tr-lg{border-top-right-radius:16px}.border-l-0{border-left-width:0px}.border-r-0{border-right-width:0px}.border-b-0{border-bottom-width:0px}.pr-28{padding-right:1.75rem}.pl-28{padding-left:1.75rem}.-mr-16{margin-right:-1rem}.-ml-16{margin-left:-1rem}.px-16{padding-left:1rem;padding-right:1rem}.py-12{padding-top:0.75rem;padding-bottom:0.75rem}.after\\:left-16::after{left:1rem}.after\\:right-16::after{right:1rem}.text-lighter{color:var(--grey-600)}.bg-dark{background-color:var(--grey-300)}.hover\\:bg-darker:hover{background-color:var(--grey-400)}.border-soft{border-color:var(--grey-400)}.border-softest{border-color:rgba(0, 0, 0, .05)}.bg-default{background-color:var(--grey-200)}.text-default{color:var(--black)}.z-99{z-index:99}.after\\:z-10::after{z-index:10}.before\\:bottom-0::before{bottom:0rem}.before\\:h-12::before{height:0.75rem}.before\\:opacity-5::before{opacity:0.05}.before\\:content-\\[\\'\\'\\]::before{--tw-content:'';content:var(--tw-content)}.before\\:absolute::before{position:absolute}.before\\:-bottom-2::before{bottom:-0.125rem}.after\\:inset-x-0::after{left:0rem;right:0rem}.before\\:inset-x-0::before{left:0rem;right:0rem}.before\\:h-3::before{height:0.1875rem}.before\\:bg-default::before{background-color:var(--grey-200)}.after\\:border-soft::after{border-color:rgba(0, 0, 0, .15 )}.after\\:border-softest::after{border-color:rgba(0, 0, 0, .05)}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.before\\:bg-gradient-y::before{background:linear-gradient(to bottom, transparent, ease-in-out, black)}.scroller-x{-ms-overflow-style:none;scrollbar-width:none}.overflow-x-auto{overflow-x:auto}.max-w-xxxl{max-width:2200px}.z-1{z-index:1}.mx-auto{margin-left:auto;margin-right:auto}.pt-8{padding-top:0.5rem}.pr-16{padding-right:1rem}.pl-16{padding-left:1rem}.inline-flex{display:inline-flex}@media (min-width: 900px){.lg\\:px-28{padding-left:1.75rem;padding-right:1.75rem}}@media (min-width: 2200px){.xxxl\\:px-0{padding-left:0rem;padding-right:0rem}}";
|
|
13641
14013
|
var EdsTabsStyle0 = edsTabsCss;
|
|
13642
14014
|
|
|
13643
14015
|
/**
|
|
@@ -13653,15 +14025,20 @@ class EdsTabs {
|
|
|
13653
14025
|
constructor(hostRef) {
|
|
13654
14026
|
registerInstance(this, hostRef);
|
|
13655
14027
|
this.tab = createEvent(this, "tab", 7);
|
|
14028
|
+
this.tabRefs = [];
|
|
14029
|
+
// Store tab reference
|
|
14030
|
+
this.setTabRef = (el, index) => {
|
|
14031
|
+
if (el) {
|
|
14032
|
+
this.tabRefs[index] = el;
|
|
14033
|
+
}
|
|
14034
|
+
};
|
|
13656
14035
|
// cva configuration
|
|
13657
14036
|
this.tabCva = cva([
|
|
13658
14037
|
'relative py-12',
|
|
13659
14038
|
'f-ui-03 whitespace-nowrap',
|
|
13660
|
-
'effect-color',
|
|
14039
|
+
'effect-color effect-focus',
|
|
13661
14040
|
'focus-visible:text-default hover:text-default',
|
|
13662
|
-
'border-2'
|
|
13663
|
-
"after:content-[''] after:absolute after:inset-0 after:rounded-t-lg after:opacity-0",
|
|
13664
|
-
'outline-none focus:outline-none focus-visible:outline-none focus-visible:after:opacity-100'
|
|
14041
|
+
'border-2'
|
|
13665
14042
|
], {
|
|
13666
14043
|
variants: {
|
|
13667
14044
|
position: {
|
|
@@ -13671,7 +14048,10 @@ class EdsTabs {
|
|
|
13671
14048
|
right: 'pl-28 pr-16 rounded-tr-lg border-l-0 -ml-16 after:left-16'
|
|
13672
14049
|
},
|
|
13673
14050
|
active: {
|
|
13674
|
-
false:
|
|
14051
|
+
false: [
|
|
14052
|
+
'text-lighter bg-dark hover:bg-darker border-softest border-b-0 z-1',
|
|
14053
|
+
"after:content-[''] after:absolute after:bottom-0 after:inset-x-0 after:h-2 after:border-soft"
|
|
14054
|
+
],
|
|
13675
14055
|
true: [
|
|
13676
14056
|
'bg-default text-default z-99',
|
|
13677
14057
|
'rounded-t-lg',
|
|
@@ -13690,28 +14070,35 @@ class EdsTabs {
|
|
|
13690
14070
|
componentWillLoad() {
|
|
13691
14071
|
this.parseTabs();
|
|
13692
14072
|
this.setActiveIndex();
|
|
13693
|
-
this.tab.emit({ tabId: this.identifier, index:
|
|
14073
|
+
this.tab.emit({ tabId: this.identifier, index: this.activeIndex });
|
|
13694
14074
|
}
|
|
13695
14075
|
/**
|
|
13696
|
-
* Parses the `
|
|
13697
|
-
* Returns an empty array if parsing fails or if `
|
|
13698
|
-
*
|
|
13699
|
-
* @returns {any[]} Array of parsed link objects
|
|
13700
|
-
*/
|
|
13701
|
-
/**
|
|
13702
|
-
* Parses the `links` prop into an array of link objects.
|
|
13703
|
-
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
14076
|
+
* Parses the `tabs` prop into an array of tab objects.
|
|
14077
|
+
* Returns an empty array if parsing fails or if `tabs` is not a valid JSON string or object.
|
|
13704
14078
|
*
|
|
13705
|
-
* @returns {any[]} Array of parsed
|
|
14079
|
+
* @returns {any[]} Array of parsed tab objects
|
|
13706
14080
|
*/
|
|
13707
14081
|
parseTabs() {
|
|
13708
14082
|
this.parsedTabs = parseData(this.tabs);
|
|
14083
|
+
// Reset tab refs when tabs change
|
|
14084
|
+
this.tabRefs = [];
|
|
13709
14085
|
}
|
|
13710
14086
|
componentDidLoad() {
|
|
13711
14087
|
this.scrollToActiveTab();
|
|
13712
14088
|
}
|
|
14089
|
+
componentDidUpdate() {
|
|
14090
|
+
// Ensure we have the correct number of tab refs after render
|
|
14091
|
+
if (this.tabRefs.length !== this.parsedTabs.length) {
|
|
14092
|
+
this.tabRefs = new Array(this.parsedTabs.length).fill(null);
|
|
14093
|
+
}
|
|
14094
|
+
}
|
|
13713
14095
|
setActiveIndex() {
|
|
13714
14096
|
this.activeIndex = this.parsedTabs.findIndex((tab) => tab.active);
|
|
14097
|
+
// If no active tab found, default to first tab
|
|
14098
|
+
if (this.activeIndex === -1 && this.parsedTabs.length > 0) {
|
|
14099
|
+
this.activeIndex = 0;
|
|
14100
|
+
this.parsedTabs[0].active = true;
|
|
14101
|
+
}
|
|
13715
14102
|
}
|
|
13716
14103
|
scrollToActiveTab() {
|
|
13717
14104
|
var _a;
|
|
@@ -13733,31 +14120,74 @@ class EdsTabs {
|
|
|
13733
14120
|
: index < this.activeIndex
|
|
13734
14121
|
? 'left'
|
|
13735
14122
|
: 'right';
|
|
13736
|
-
|
|
13737
|
-
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
14123
|
+
const rawZ = position === 'left' ? index : this.parsedTabs.length + 1 - index;
|
|
14124
|
+
// clamp inactive to at least 1
|
|
14125
|
+
const z = active ? this.parsedTabs.length + 99 : Math.max(rawZ, 1);
|
|
14126
|
+
return Object.assign({ class: this.tabCva({ active, position }), style: {
|
|
14127
|
+
// stringify the number so it matches { [key: string]: string }
|
|
14128
|
+
zIndex: `${z}`
|
|
13741
14129
|
} }, (active ? { 'data-tab-active': 'true' } : {}));
|
|
13742
14130
|
}
|
|
13743
|
-
handleTabClick(index, tabLabel) {
|
|
14131
|
+
handleTabClick(index, tabLabel, shouldFocus = true) {
|
|
14132
|
+
// Validate index
|
|
14133
|
+
if (index < 0 || index >= this.parsedTabs.length) {
|
|
14134
|
+
return;
|
|
14135
|
+
}
|
|
13744
14136
|
// Update the active index and set all tabs' active state accordingly
|
|
13745
14137
|
this.activeIndex = index;
|
|
13746
14138
|
this.parsedTabs = this.parsedTabs.map((tab, tabIndex) => (Object.assign(Object.assign({}, tab), { active: tabIndex === index })));
|
|
13747
14139
|
this.tab.emit({ tabId: this.identifier, index: index, name: tabLabel });
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
|
|
13751
|
-
|
|
13752
|
-
|
|
13753
|
-
|
|
14140
|
+
// Only send analytics for actual clicks, not keyboard navigation
|
|
14141
|
+
if (shouldFocus) {
|
|
14142
|
+
sendAnalytics({
|
|
14143
|
+
category: 'ui-component',
|
|
14144
|
+
tag: this.el.tagName.toLowerCase(),
|
|
14145
|
+
name: (tabLabel === null || tabLabel === void 0 ? void 0 : tabLabel.toLowerCase()) || '',
|
|
14146
|
+
action: 'click'
|
|
14147
|
+
});
|
|
14148
|
+
}
|
|
14149
|
+
// Focus management for keyboard navigation
|
|
14150
|
+
if (shouldFocus && this.tabRefs[index]) {
|
|
14151
|
+
// Use a small timeout to ensure the DOM has updated
|
|
14152
|
+
setTimeout(() => {
|
|
14153
|
+
var _a;
|
|
14154
|
+
(_a = this.tabRefs[index]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
14155
|
+
}, 0);
|
|
14156
|
+
}
|
|
14157
|
+
}
|
|
14158
|
+
onKeyDown(ev, idx) {
|
|
14159
|
+
let newIndex = idx;
|
|
14160
|
+
switch (ev.key) {
|
|
14161
|
+
case 'ArrowRight':
|
|
14162
|
+
newIndex = (idx + 1) % this.parsedTabs.length;
|
|
14163
|
+
ev.preventDefault();
|
|
14164
|
+
break;
|
|
14165
|
+
case 'ArrowLeft':
|
|
14166
|
+
newIndex = (idx - 1 + this.parsedTabs.length) % this.parsedTabs.length;
|
|
14167
|
+
ev.preventDefault();
|
|
14168
|
+
break;
|
|
14169
|
+
case 'Home':
|
|
14170
|
+
newIndex = 0;
|
|
14171
|
+
ev.preventDefault();
|
|
14172
|
+
break;
|
|
14173
|
+
case 'End':
|
|
14174
|
+
newIndex = this.parsedTabs.length - 1;
|
|
14175
|
+
ev.preventDefault();
|
|
14176
|
+
break;
|
|
14177
|
+
default:
|
|
14178
|
+
return; // Don't handle other keys
|
|
14179
|
+
}
|
|
14180
|
+
if (newIndex !== idx) {
|
|
14181
|
+
this.handleTabClick(newIndex, this.parsedTabs[newIndex].label, true);
|
|
14182
|
+
}
|
|
13754
14183
|
}
|
|
13755
14184
|
render() {
|
|
13756
|
-
return (hAsync("div", { key: '
|
|
13757
|
-
const TabComponent =
|
|
14185
|
+
return (hAsync("div", { key: 'e3bd802f08f460d5f3e89860669fefe2a8006e59', id: `${this.identifier}` }, hAsync("div", { key: 'bcbd4afb8febec0520075c8e34269f184e2d9738', 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-['']" }, hAsync("nav", { key: '32e93b3ee6831918fd863fb23f1a5af1ae979201', role: "tablist", ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
14186
|
+
const TabComponent = 'button';
|
|
13758
14187
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
13759
|
-
|
|
13760
|
-
|
|
14188
|
+
const isActive = index === this.activeIndex;
|
|
14189
|
+
return (hAsync(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));
|
|
14190
|
+
}))), hAsync("div", { key: 'ffe610574d342933121cbaca9bcb8fb483fde60b', class: "tab-panels" }, this.parsedTabs.map((_, index) => (hAsync("div", { role: "tabpanel", id: `panel-${index}`, "aria-labelledby": `tab-${index}`, hidden: index !== this.activeIndex, tabIndex: index === this.activeIndex ? 0 : -1, class: "effect-focus" }, hAsync("slot", { name: `panel-${index}` })))))));
|
|
13761
14191
|
}
|
|
13762
14192
|
get el() { return getElement(this); }
|
|
13763
14193
|
static get watchers() { return {
|
|
@@ -13820,7 +14250,7 @@ class EdsTag {
|
|
|
13820
14250
|
}
|
|
13821
14251
|
render() {
|
|
13822
14252
|
const classes = tagStyles({ intent: this.intent, size: this.size });
|
|
13823
|
-
return hAsync("span", { key: '
|
|
14253
|
+
return hAsync("span", { key: '939fafa4bc525b747956931f49b27e6125ecbb34', class: classes }, this.label);
|
|
13824
14254
|
}
|
|
13825
14255
|
static get style() { return EdsTagStyle0; }
|
|
13826
14256
|
static get cmpMeta() { return {
|
|
@@ -13882,7 +14312,7 @@ class EdsTimeline {
|
|
|
13882
14312
|
}
|
|
13883
14313
|
}
|
|
13884
14314
|
render() {
|
|
13885
|
-
return (hAsync("div", { key: '
|
|
14315
|
+
return (hAsync("div", { key: '3abe8b96a25fa575acc503eafa345c63b0c4c971', class: "max-w-sidebar mx-auto px-4 py-8" }, hAsync("div", { key: '23039a03d10a38aa96310be6456283b5d36041e7', class: "relative" }, hAsync("div", { key: '2bf447e7dd77a33b953ee1c7b49c72bb3e79a938', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), hAsync("div", { key: 'db44af20a0e09666b402e77ec739262a3506da48', class: "space-y-16" }, this.parsedEvents.map((event, index) => (hAsync("div", { class: "relative flex" }, hAsync("div", { class: `w-1/2 ${index % 2 === 0 ? 'pr-4' : ''}` }, index % 2 === 0 && (hAsync("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
|
|
13886
14316
|
? [{ label: 'completed', style: 'accent' }]
|
|
13887
14317
|
: [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))), hAsync("div", { class: "flex items-center justify-center relative" }, event.completed ? (hAsync("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" })) : (hAsync("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" }))), hAsync("div", { class: `w-1/2 ${index % 2 !== 0 ? 'pl-4' : ''}` }, index % 2 !== 0 && (hAsync("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
|
|
13888
14318
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -14056,7 +14486,7 @@ class EdsToastManager {
|
|
|
14056
14486
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
14057
14487
|
}
|
|
14058
14488
|
render() {
|
|
14059
|
-
return (hAsync("div", { key: '
|
|
14489
|
+
return (hAsync("div", { key: '85027aad9484f391686c4126e984a84e8045511c', class: "toast-container" }, this.toasts.map((t) => (hAsync("div", { key: t.id }, hAsync("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
|
|
14060
14490
|
}
|
|
14061
14491
|
get hostElement() { return getElement(this); }
|
|
14062
14492
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -14095,7 +14525,7 @@ class EdsTooltip {
|
|
|
14095
14525
|
}
|
|
14096
14526
|
render() {
|
|
14097
14527
|
const positionClass = this.position === 'bottom' ? 'top-full mt-2' : 'bottom-full mb-2';
|
|
14098
|
-
return (hAsync("div", { key: '
|
|
14528
|
+
return (hAsync("div", { key: 'ee76b787881bdaef986b73fb2775c900a8c33d05', class: "relative w-full inline-block group" }, hAsync("slot", { key: 'a5f9ade50e829efab02ef28ecff3edeedae9d469' }), hAsync("div", { key: '31bdc63d6263090578f6600ae32027c2b050b2bf', class: `absolute ${positionClass}
|
|
14099
14529
|
rounded-xs bg-strongest text-inverse
|
|
14100
14530
|
f-ui-03-light pointer-events-none
|
|
14101
14531
|
z-10 p-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
@@ -14159,7 +14589,7 @@ class EdsTrl {
|
|
|
14159
14589
|
Application: { format: 'code' },
|
|
14160
14590
|
'Current TRL Stage': { format: 'text' }
|
|
14161
14591
|
};
|
|
14162
|
-
return (hAsync("div", { key: '
|
|
14592
|
+
return (hAsync("div", { key: '51e2ef0877ef34a3c413d8bb690d659525845a92', class: "container mx-auto px-4 py-8" }, hAsync("eds-table", { key: 'b682cb9ce8182302b82042173fcc93aed65f7006', "table-data": JSON.stringify(tableData), config: JSON.stringify(tableConfig), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" })));
|
|
14163
14593
|
}
|
|
14164
14594
|
static get cmpMeta() { return {
|
|
14165
14595
|
"$flags$": 0,
|
|
@@ -14211,7 +14641,7 @@ class EdsUser {
|
|
|
14211
14641
|
}
|
|
14212
14642
|
render() {
|
|
14213
14643
|
const user = this.parsedUser;
|
|
14214
|
-
return (hAsync("div", { key: '
|
|
14644
|
+
return (hAsync("div", { key: '8a1f10cc85d8e2707042c85bc597b76fb2d25da4', class: "block" }, hAsync("div", { key: 'a744de3d113920b8ff0d01ce273672b2bff57c97', class: "flex items-center" }, hAsync("eds-dropdown", { key: 'e9230372d79936a785050ebb3e41f40e73282a57', label: `Hi, ${user.preferred_username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, hAsync("div", { key: '7d4bd0ee0985c840a18764cac784726ff1c987fb', class: "min-w-[280px] p-8" }, hAsync("div", { key: '603d6807988dd79cd4e7827918ff8932d8463fc3', class: "flex gap-x-16" }, hAsync("eds-avatar", { key: '65ba89139cb6e3b6cb90c2072eb68cc7dc1da49c', "first-name": user.given_name, "last-name": user.family_name, initials: this.initials, color: "grey" }), hAsync("div", { key: 'df35b758918ebccbdfe6630bd356e647522404e1', class: "max-w-full" }, user.name && hAsync("p", { key: '7174f34445bb1a0b77a3c1b893421bd104832485', class: "f-ui-01 text-default w-full text-ellipsis" }, user.name), user.preferred_username && hAsync("p", { key: '72d853f5014c03803dce7aa0a74d96847ed8c875', class: "f-ui-03-light text-light mt-4" }, user.preferred_username), user.email && hAsync("p", { key: 'e406e2f3ca8504220ee9586a1d176c15c7236502', class: "f-ui-03-light text-light mt-4" }, user.email))), hAsync("div", { key: '8fd3b42ab4eb3d1d70a0b827e3a03af8503c55d1', class: "text-default flex w-full flex-col gap-y-8" }, hAsync("slot", { key: '6a477155c256543b7793947d52feb3f5abb0df6e' })))))));
|
|
14215
14645
|
}
|
|
14216
14646
|
get hostEl() { return getElement(this); }
|
|
14217
14647
|
static get style() { return EdsUserStyle0; }
|
|
@@ -14262,7 +14692,7 @@ class GradientPrimaryPalette {
|
|
|
14262
14692
|
];
|
|
14263
14693
|
}
|
|
14264
14694
|
render() {
|
|
14265
|
-
return (hAsync("ul", { key: '
|
|
14695
|
+
return (hAsync("ul", { key: 'af35aa4016013cbed62463881c380330f80066a2', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
14266
14696
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
14267
14697
|
} }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16" }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
14268
14698
|
}
|
|
@@ -14335,19 +14765,19 @@ class GradientSecondaryPalette {
|
|
|
14335
14765
|
];
|
|
14336
14766
|
}
|
|
14337
14767
|
render() {
|
|
14338
|
-
return (hAsync("div", { key: '
|
|
14768
|
+
return (hAsync("div", { key: '8a494bd6783e8138f33dcfd37498fd69b249a2e8' }, hAsync("ul", { key: 'a2e6c31c2e2f3745ce1e4c01cc9afae02e8ebb87', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '4ed12da885c34a07657aef2a841c87a37ae9c8f7', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '337f66d14b0ce65b19f198b7efaf9230ca50b82c', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14339
14769
|
background: this.colors[0].background
|
|
14340
|
-
} }, hAsync("div", { key: '
|
|
14770
|
+
} }, hAsync("div", { key: 'c8c692658db9434f57e5ac264c3c9064910e9661', class: "grid" }, hAsync("span", { key: '9fd7ae1b75ff6b6c807dbaad783f6495dc2dd9bd', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: '9d4e59b1fab74ff781c8d73db3dd468b10ce0455', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: '96f8a8fa41459228e4d8097a616926f85765cf39', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'd7a68794a9682b619be1e087c983149d491c96db', class: "grid" }, hAsync("span", { key: '58bd1ad1029c3b121ac0d4bb5c70ae303e0352bb', class: "f-body-02" }, this.colors[0].pantoneC), hAsync("span", { key: '3193953b5f25d007cf19d93a1f68f20404687f1e', class: "f-body-02" }, this.colors[0].pantoneU))), hAsync("div", { key: 'cfbdd6e419b1616438c6331a1d25c18c4425acd8', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14341
14771
|
background: this.colors[1].background
|
|
14342
|
-
} }, hAsync("div", { key: '
|
|
14772
|
+
} }, hAsync("div", { key: 'd7cbace55477934af72160da781b7a8e3aa8e06a', class: "grid" }, hAsync("span", { key: '92751b8b5769b239e36ac130e339f8e360727cc4', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: '82fe5bf3213d8d581322b33fd5e71edac1c88fb3', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: '898008dc0c37aa6dac6cc41f2034cddd65768c14', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '4e447137643b72b3c6bf7c77d9487db3b6565774', class: "grid" }, hAsync("span", { key: 'dd6377e2669c91b70681faceef9a1a2e85aacc36', class: "f-body-02" }, this.colors[1].pantoneC), hAsync("span", { key: '06fc395fb9c0caf71d889031d5122da97c2d437c', class: "f-body-02" }, this.colors[1].pantoneU))))), hAsync("eds-block-break", { key: '7be7b3c75d184f3aa717f6319aeeac025760122e' }), hAsync("ul", { key: 'b97e4bde35db0630a312b97d501ce1c59f0c3e14', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '6a92a1a7d3e3680901e18dd48eb6658f4fb0fb20', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'e90a2a1cae3c1cde6b4326b56b72c61e1892140b', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14343
14773
|
background: this.colors[2].background
|
|
14344
|
-
} }, hAsync("div", { key: '
|
|
14774
|
+
} }, hAsync("div", { key: '61b77e314f1b0ba1a2091c8095ec202532c18606', class: "grid" }, hAsync("span", { key: '03dab364cc0dfec33698c44a204c454fb541e212', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: 'e691950b5345a2ede462f4e83cca168bdeb9ec15', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: '0221d7e314a813dc2c5b79911951bca9c0b41b25', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '3a0a7685f28da21ad72e03fde2466ef261d732c6', class: "grid" }, hAsync("span", { key: 'cb7b332c10b45eb9fd5db2d3fd8042e2bad64466', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: 'a2ce20d6c1f79933e63286f21cf2a2b46bae7c77', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: '22accd3b0973aef372c31e6e1f9098c20af0fe62', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14345
14775
|
background: this.colors[3].background
|
|
14346
|
-
} }, hAsync("div", { key: '
|
|
14776
|
+
} }, hAsync("div", { key: '20ac41e5ab5abf006915a588948b0a80ba6b6500', class: "grid" }, hAsync("span", { key: 'c45d31d03b5eed96970e573ffe9d6d7b0a4f55f2', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: 'c8615974f6fefcce9236f1dab2aa05acf79f476e', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: '4edca81579a78d5a981abd588d614e92b41e80f2', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'efb4443370dc4577f4bb0638f7189d8ebb41f7f6', class: "grid" }, hAsync("span", { key: 'e6859deb262bbb09411b23a829461a13bca7036c', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: 'a7b10ce34dbf351ed7c9ffddae8a078af2b2dfc7', class: "f-body-02" }, this.colors[3].pantoneU))))), hAsync("eds-block-break", { key: '1e7693f7830a8b23fbfe88a4db8ce86b8d0685f0' }), hAsync("ul", { key: 'e968be89adb2e35e19b3c6b373b6e12f4e746a16', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '96c60c4a9e257a292782d9effc9f0c72abf11b9e', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'c4568e420e1aa059777280831c2384eab3d92bcd', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14347
14777
|
background: this.colors[4].background
|
|
14348
|
-
} }, hAsync("div", { key: '
|
|
14778
|
+
} }, hAsync("div", { key: 'd6deb40f0bc0f42ba8dc5ce1f81f0ddffac1909c', class: "grid" }, hAsync("span", { key: 'dfe457e42121384072c1fa914a4b20dc4b838d01', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: 'ff18c95c23f62a02e56f017a3c4fd135942ca475', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: 'bd2c5dc66d42965991741eaa399c620dfd7ccd8e', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '95a9105cf2f1c2ce4f585d20cd3d7f51ab176860', class: "grid" }, hAsync("span", { key: '205d05eef3ead993524a70a6da8a1b99293d325b', class: "f-body-02" }, this.colors[4].pantoneC), hAsync("span", { key: '8bd0e5c38a50e61d1c4743b069ac33bbcabd6a90', class: "f-body-02" }, this.colors[4].pantoneU))), hAsync("div", { key: '1e23753de89b1954149cc3855dd18c35d8eff021', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14349
14779
|
background: this.colors[5].background
|
|
14350
|
-
} }, hAsync("div", { key: '
|
|
14780
|
+
} }, hAsync("div", { key: '89d94b65035bede7a8e6783ce12b28f0d19bc517', class: "grid" }, hAsync("span", { key: '68b5166da0440b8b71a353f112151f87ce5f0863', class: "f-body-02" }, this.colors[5].rgb), hAsync("span", { key: '5c5440685df35b5d7a46c3aaca50f34103d227da', class: "f-body-02 w-full" }, this.colors[5].cmyk), hAsync("eds-code-block", { key: 'bf98ce42ca5c85792f69233aa9339b76e404355e', code: this.colors[5].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'd3405eb9f4b55be2ca453857006b2e168f55b723', class: "grid" }, hAsync("span", { key: '7c5cc7a21f351c7054113feb2d08c73aa433b729', class: "f-body-02" }, this.colors[5].pantoneC), hAsync("span", { key: 'ab88dec48dc6bfbcf0ae6952bdc83898b9f3fe01', class: "f-body-02" }, this.colors[5].pantoneU)))))));
|
|
14351
14781
|
}
|
|
14352
14782
|
static get cmpMeta() { return {
|
|
14353
14783
|
"$flags$": 0,
|
|
@@ -14410,11 +14840,11 @@ class GradientSupportPalette {
|
|
|
14410
14840
|
];
|
|
14411
14841
|
}
|
|
14412
14842
|
render() {
|
|
14413
|
-
return (hAsync("ul", { key: '
|
|
14843
|
+
return (hAsync("ul", { key: 'cd8f1b760d9d12703e63d444206cd7cb8272dc23', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '4e06317b161b310f1d0a6c03ec4511e30121a9d1', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '09ee064b51f1f60eb94449a81889fcc1b04b034b', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[0].background } }, hAsync("div", { key: 'd03882aca184094d6bd6c7c1847fd825b5df391e', class: "grid" }, hAsync("span", { key: '56401b8b651fc59ab649017e24072b7aa9e66b09', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: 'f438f24aa6caee90e0aa8b45a8e3ef3905115165', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: '1185f4d1820c900e97e376aecfdb15c079bf47d6', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '81e189f2d4d59444419b4323595f233b5a7dd5c5', class: "grid" }, hAsync("span", { key: 'ed9c1690bc1a39a4ca10922d6954987025b75ab2', class: "f-body-02" }, this.colors[0].pantoneC || 'N/A'), hAsync("span", { key: '389c2782c0a19abdaa8bcb3bec35b08f7dc49699', class: "f-body-02" }, this.colors[0].pantoneU || 'N/A')))), hAsync("li", { key: '224ddf84a71da323318a93aed512785d765ff78c', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '6f65b95fafa248d35f3bbc6b2ca1796e75d5c75d', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[1].background } }, hAsync("div", { key: 'a5f7ce54255461e8955b770ba045873c4337317e', class: "grid" }, hAsync("span", { key: '344026348686a6c356012bddcb6019d2e33d2d1a', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: 'd21a077ed8b57fc7b03d3c9e8aad84a1d6921b7e', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: 'dfc3a8574e020c3e140a582e2f6548d7df18fc2f', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '370a21f614bfa27de7cd920d33a4bda8271cb9b2', class: "grid" }, hAsync("span", { key: 'dcd05c27f71e94ab52ab88647d7c16bdd8cb6824', class: "f-body-02" }, this.colors[1].pantoneC || 'N/A'), hAsync("span", { key: '3f596aa4db89c9444ab19a1fe6130532ea7a18de', class: "f-body-02" }, this.colors[1].pantoneU || 'N/A')))), hAsync("li", { key: '4360df4a8f5439fef848bef1aff0ba7e907c0873', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '7559365a22a412e249f860b2ccd42a40c686575e', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14414
14844
|
background: this.colors[2].background
|
|
14415
|
-
} }, hAsync("div", { key: '
|
|
14845
|
+
} }, hAsync("div", { key: '3027a68e48323ad82a7b9507902d43d3ebd5a9b5', class: "grid" }, hAsync("span", { key: '6889a4ba793f3f82c90e2b1b87b90d1d1e9fc551', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: '688e28e641c900a105605e8f6dd65efe8d1c663a', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: 'f344601cb7b1c0210478c4c8297365655d1db5b3', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'bbd401b28071a53db3e2648545c6de8004da98cd', class: "grid" }, hAsync("span", { key: 'e7eb3868b58336671fc8862b2dd67dd8c664b6d2', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: '97c2788da2fed4b22f11057d13ea2bd6f6041f9c', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: '8ea814cb2456d959a510b3bf2fe1348a796bf390', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14416
14846
|
background: this.colors[3].background
|
|
14417
|
-
} }, hAsync("div", { key: '
|
|
14847
|
+
} }, hAsync("div", { key: '4a223c4bad5b21ff8f80dcbca228a66500ab6a87', class: "grid" }, hAsync("span", { key: 'acfb82921e62c37dc091a10b2f093c41d50c32da', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: '1d8a0866567e954772be7fc950579a62aa719ade', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: 'e8fe52aefd86c81713f08bcd1cb8f27789bd9ca1', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '9925c5173dd15f16fe2b08eb522adf0d8ac37ef1', class: "grid" }, hAsync("span", { key: '78f7131ca9a960688c8957a79c4033573f7cfee1', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: '0fb4a0cfec9531e0e00b2d749d66ae6696a6db4a', class: "f-body-02" }, this.colors[3].pantoneU)))), hAsync("li", { key: '017c338c94189ad75c79ff9db903d18246a4af80', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'd75b7e97684b6ffe19bfcfdb8315f771c42de0f1', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[4].background } }, hAsync("div", { key: '63b0fc0c825edcba9f633a5b6972fdd72574ce3b', class: "grid" }, hAsync("span", { key: '389132cc0be0358b4805356ea216a9cfd4297514', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '902d41927973b8bf690cda7ca701a103f91dd511', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: 'f9fffe844840148e801e3b1c1c2891b2bec96bf7', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '7ecb1dc3d5e0c63cf191b1300f19cd88489e9bed', class: "grid" }, hAsync("span", { key: '9233731334557d6b37d96d9d7e328cb9b24e2766', class: "f-body-02" }, this.colors[4].pantoneC || 'N/A'), hAsync("span", { key: '5030f6c36dd0e07785c0f11092c9452d80763101', class: "f-body-02" }, this.colors[4].pantoneU || 'N/A'))))));
|
|
14418
14848
|
}
|
|
14419
14849
|
static get cmpMeta() { return {
|
|
14420
14850
|
"$flags$": 0,
|
|
@@ -14468,7 +14898,7 @@ class IncorrectUseOfColors {
|
|
|
14468
14898
|
registerInstance(this, hostRef);
|
|
14469
14899
|
}
|
|
14470
14900
|
render() {
|
|
14471
|
-
return (hAsync("div", { key: '
|
|
14901
|
+
return (hAsync("div", { key: '99f72ce6be806d58cdbe053d86a07e7769e7c298', class: "container" }, hAsync("div", { key: '4689bc35f56681d07747158f45bed8960bd764bb', class: "mb-8" }, hAsync("eds-alert", { key: 'bda983921ff3779dc947d13ff7b3c4f0509154ea', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" })), hAsync("div", { key: 'ef02b05fb6fb761cae3cc5120478d9670ae65508', class: "flex" }, hAsync("div", { key: '968ccc8bc1acec2856325c921d737f0ac2d0e26d', class: "w-full" }, hAsync("ul", { key: 'aafe0547a6f6185216cf5ba08cca1e5ed97f7fb8', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: 'f8af94ee21c7ed37b177fa3b5285e9bfe76e8e46', class: "w-full" }, hAsync("ul", { key: 'ef52e37263e0bfda9d631f7aa6abe2074cbebe78', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, incorrect.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
14472
14902
|
}
|
|
14473
14903
|
static get cmpMeta() { return {
|
|
14474
14904
|
"$flags$": 0,
|
|
@@ -14491,7 +14921,7 @@ class LogoSpace {
|
|
|
14491
14921
|
registerInstance(this, hostRef);
|
|
14492
14922
|
}
|
|
14493
14923
|
render() {
|
|
14494
|
-
return (hAsync("div", { key: '
|
|
14924
|
+
return (hAsync("div", { key: '715c9aab5f553f14a183efcec753ac3a7d2a6ef7', class: "container" }, hAsync("ul", { key: 'd552744d7c502654c1863a0e2bfe939aa5ab0447', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '06ea3756aa8416e11a0f8c3995e70112808791e8', class: "grid-col-span-6 xxl:grid-col-span-3 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: '186172fddc2a100fb5f757ce7175501f7b838896', class: "logo-container mx-auto w-[300px]", innerHTML: vLogoMargins })), hAsync("li", { key: '6131a46a1f7d4efac1feb05ffbd88ca35ba07d08', class: "grid-col-span-6 xxl:grid-col-span-3 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: 'df5acbe2348d1fcf069ddb55ce8c7180ecea0959', class: "text-center mt-16" }, hAsync("p", { key: '65b120c29fd408808ab2b6ca3e038915f386c033', class: "f-body-01" }, "To ensure legibility, follow these minimum size guidelines:"), hAsync("eds-table", { key: '137055ef0dd2e79db8dd0cfac8c297385c693338', data: '[\n { "Media": "Print", "Landscape": "0.75 cm", "Portrait": "1.75 cm" },\n { "Media": "Web", "Landscape": "29 px", "Portrait": "50 px" }\n ]', config: '{\n "Media": { "format": "bold" }\n }' }))), hAsync("li", { key: 'cbaf5b78b83fa1874d2555ae07dcd849007d9b28', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }))));
|
|
14495
14925
|
}
|
|
14496
14926
|
static get style() { return LogoSpaceStyle0; }
|
|
14497
14927
|
static get cmpMeta() { return {
|
|
@@ -14515,7 +14945,7 @@ class LogoVariationsHorizontal {
|
|
|
14515
14945
|
registerInstance(this, hostRef);
|
|
14516
14946
|
}
|
|
14517
14947
|
render() {
|
|
14518
|
-
return (hAsync("div", { key: '
|
|
14948
|
+
return (hAsync("div", { key: '42b4022e993bb4e340a4f930706ed61d487856af', class: "container" }, hAsync("ul", { key: '368cb376390f9cd4f311c34f35e227916bccc3aa', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'c144cf24fe85d4ca731cbcb47aee2ae6bbfb9500', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("p", { key: '9ebdf9fae31f6370bd469cf4c3964e5fa5dae53b', class: "f-body-01 text-center my-4" }, "#1 Coloured"), hAsync("div", { key: '347dfdc62a77f9bc2774870d0bce4803a9def6a1', class: "coloured" }, hAsync("eds-logo", { key: '642ed4f4dd0720b457e8871d8d39a3e6f8817919', type: "no-bg", href: "#" }))), hAsync("li", { key: '4b97f489fdc512de54c0f2c0bbf206f6d64fec57', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("p", { key: '217c5485599de77021d5b008952a7463a95e8d22', class: "f-body-01 text-center my-4" }, "#2 Black & White"), hAsync("div", { key: 'c3e7f3b4b770662cc83c261af241306e8449cddb', class: "bg-default" }, hAsync("eds-logo", { key: '1d0a90da209d8dbc28b91ccd3d3e112ed189428d', type: "black", href: "#" }))), hAsync("li", { key: 'f8879a7c790e1b5f0555d6d764e828fbc6a4e263', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("p", { key: '93f6729dc8f3e4cf0257e57c4b034e94cfefa99d', class: "f-body-01 text-center my-4" }, "#3 Dark"), hAsync("div", { key: 'd45eaff596387f93aabc377fa96f1b386b8c5e42' }, hAsync("eds-logo", { key: '4a8209824ad3dcec06be65303dc9f0cf01613a8f', type: "color-white", href: "#" }))))));
|
|
14519
14949
|
}
|
|
14520
14950
|
static get style() { return LogoVariationsHorizontalStyle0; }
|
|
14521
14951
|
static get cmpMeta() { return {
|
|
@@ -14547,7 +14977,7 @@ class LogoVariationsTabs {
|
|
|
14547
14977
|
}
|
|
14548
14978
|
}
|
|
14549
14979
|
render() {
|
|
14550
|
-
return hAsync("div", { key: '
|
|
14980
|
+
return hAsync("div", { key: 'ac936a8594bc4f5f8573da7ac2751103fe287e48', class: "container" }, this.renderContent());
|
|
14551
14981
|
}
|
|
14552
14982
|
static get cmpMeta() { return {
|
|
14553
14983
|
"$flags$": 0,
|
|
@@ -14574,7 +15004,7 @@ class LogoVariationsVertical {
|
|
|
14574
15004
|
this.type = undefined;
|
|
14575
15005
|
}
|
|
14576
15006
|
render() {
|
|
14577
|
-
return (hAsync("div", { key: '
|
|
15007
|
+
return (hAsync("div", { key: '9384d3b91a4b09c780a1bb8d6b49f441f7a7a22a', class: "container" }, hAsync("ul", { key: '60a89752afab4d76da7a3fc070bff2f7cc98d4b0', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '6a8b35e2eaa5b0b5f4aa233fbcaa2a21b1e340c7', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("p", { key: 'f9893c662898f97567d4a56eaf2d5a620e087743', class: "f-body-01 text-center my-4" }, "#1 Coloured"), hAsync("div", { key: '6fad2d66a3e34c11344210c3b8d92279d566f866', class: "mx-auto coloured w-[300px]" }, hAsync("eds-logo", { key: '66740c018c8f3aa3fbeb2cab8c392713b7e004ed', orientation: "vertical", type: "no-bg", href: "#" }))), hAsync("li", { key: '7a5a2ee2fab87b6ea7892134b5b1fb939cc5665c', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("p", { key: '79bd10816b9dfe8ab28d444d7dfb4b361afea94f', class: "f-body-01 text-center my-4" }, "#2 Black & White"), hAsync("div", { key: '10f00983923848d8e89b6d7c7990972a76fbaf80', class: "mx-auto bg-default w-[300px]" }, hAsync("eds-logo", { key: '3e10d0887921355c0974ad8a4c04cc86e901440d', orientation: "vertical", type: "black", href: "#" }))), hAsync("li", { key: 'eeaabdfa7d788647845d5488decfd06815fc2c47', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("p", { key: '1b058b1513f09eb8a1043ab3ff8a4cda28246576', class: "f-body-01 text-center my-4" }, "#3 Dark"), hAsync("div", { key: 'bd3698e6210ecbe356f0c334a983b21ef6b7b5e3', class: "mx-auto w-[300px]" }, hAsync("eds-logo", { key: 'c9321f6b80b68e74a02dbf77ba83f2bc2567c538', orientation: "vertical", type: "color-white", href: "#" }))))));
|
|
14578
15008
|
}
|
|
14579
15009
|
static get style() { return LogoVariationsVerticalStyle0; }
|
|
14580
15010
|
static get cmpMeta() { return {
|
|
@@ -14601,7 +15031,7 @@ class LogoWrongUsage {
|
|
|
14601
15031
|
registerInstance(this, hostRef);
|
|
14602
15032
|
}
|
|
14603
15033
|
render() {
|
|
14604
|
-
return (hAsync("div", { key: '
|
|
15034
|
+
return (hAsync("div", { key: 'db92af6471b73d6342c4c218ef26b7439e72e9c9', class: "container" }, hAsync("ul", { key: '57239717b1f53107a5bfbc94794568ea9fe3b392', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'c32313633ff55e2fbb28bca75f4d0e9bc2eb85d0', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: 'ec127af6b1b3c5e0aed8c4c5bf6fb34166a50e89', class: "mx-auto no-other-bg-color logo", innerHTML: hLogoColor }), hAsync("p", { key: '130ae0f920e4b4231d00bf46804176f9c2d2750a', class: "f-ui-02 text-center" }, "Do not use with backgrounds that make legibility difficult")), hAsync("li", { key: '4efd7dd8cbc1fdefd65a94891c465373ac05391e', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: 'ea7fbe7c25663e944d80d1feb52ab972edf73aa8', class: "mx-auto no-other-color logo non-brand-color", innerHTML: hLogoColor }), hAsync("p", { key: '373939ac376d7f95a77e84e35b8c2773cecca0e0', class: "f-ui-02 text-center" }, "Do not apply other colors")), hAsync("li", { key: '23351f40af859f9a36b108db8c95dbdefe7f889a', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: '6606581d39d6b1834eebc720be8695bec9052c5a', class: "mx-auto distorted logo", innerHTML: hLogoColor }), hAsync("p", { key: '10d459c1e0db7351b8d247bb0ab2c3db1f39cfc3', class: "f-ui-02 text-center" }, "Do not deform the logo")), hAsync("li", { key: '9253a8fdab1547c0a9282e44d7dfb586107c0916', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: '7db0f94ca0d2a7c6b3cde529028c2789794b31b5', class: "mx-auto effects logo", innerHTML: hLogoColor }), hAsync("p", { key: '39280d53b73bb6ad80d3398e508941604f4fc856', class: "f-ui-02 text-center" }, "Do not apply effects")), hAsync("li", { key: '24d87e264048c1f675cc0182c6dbf049af15f622', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: '35cac43885a2364650ab3e758071b1fd685019fa', class: "mx-auto rotated logo", innerHTML: hLogoColor }), hAsync("p", { key: 'cd3d762cd6889f764bedc6b4ccd241e1b52413f6', class: "f-ui-02 text-center" }, "Do not rotate the logo")), hAsync("li", { key: '0a5c20a333830b85c2943b44c3ad1c3066c582cc', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: 'e2ced6578e0ea0574b1025c708061436beaa0c32', class: "mx-auto outlined logo", innerHTML: hLogoColor }), hAsync("p", { key: 'e41cf94b8ba85c372fe3118497a61f5fd9d127a0', class: "f-ui-02 text-center" }, "Do not apply outlines")), hAsync("li", { key: '87b548c1183299d29b14e3159ec712e27e72632f', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: '1a96f1f9ffa1d9c3e29fa3c107893d440f259922', class: "mx-auto" }, hAsync("div", { key: 'a2cfab02c9328045d9833fa143d53cdb5cc249fc', class: "bg-accent p-16" }, hAsync("div", { key: 'fee8c2a733e1822b1b97db56f6b835a9694ee071', class: "text-inverse", innerHTML: hLogoColor })), hAsync("p", { key: 'a978cd92ca70c5dd3437e251e603bc33099bb250', class: "f-ui-02 text-center" }, "Do not use the green background for the logo version of the logo with backgrounds with the same tones"))))));
|
|
14605
15035
|
}
|
|
14606
15036
|
static get style() { return LogoWrongUsageStyle0; }
|
|
14607
15037
|
static get cmpMeta() { return {
|
|
@@ -14645,7 +15075,7 @@ class SvgRepository {
|
|
|
14645
15075
|
icon: { format: 'svg' },
|
|
14646
15076
|
name: { format: 'bold' }
|
|
14647
15077
|
};
|
|
14648
|
-
return (hAsync("div", { key: '
|
|
15078
|
+
return (hAsync("div", { key: '7182d9e62bbee54fe4787d4fdd00e454d4f9df44', class: "full-width" }, hAsync("eds-table", { key: '4f9e0681ce92a66ca09fd933663caf465208306d', "table-data": JSON.stringify(svgData), config: JSON.stringify(tableConfig), "rows-per-page": 10, "search-enabled": true, "pagination-enabled": true })));
|
|
14649
15079
|
}
|
|
14650
15080
|
get hostEl() { return getElement(this); }
|
|
14651
15081
|
static get style() { return SvgRepositoryStyle0; }
|
|
@@ -14902,7 +15332,7 @@ class TokenList {
|
|
|
14902
15332
|
render() {
|
|
14903
15333
|
// Check if `show` prop is provided; if not, display all sections
|
|
14904
15334
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
14905
|
-
return (hAsync("section", { key: '
|
|
15335
|
+
return (hAsync("section", { key: 'b8b778fe87179f77bb71705d89026c500b0293fb', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
14906
15336
|
// Only render sections that exist in `colors`
|
|
14907
15337
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
14908
15338
|
}
|
|
@@ -14935,7 +15365,7 @@ class TokenRadii {
|
|
|
14935
15365
|
registerInstance(this, hostRef);
|
|
14936
15366
|
}
|
|
14937
15367
|
render() {
|
|
14938
|
-
return (hAsync("section", { key: '
|
|
15368
|
+
return (hAsync("section", { key: '584f5f90e1e3813692870fbd8fd382956729dbf1', class: "w-full mt-28" }, hAsync("ul", { key: '81786b7835d62739d6ec034609e77209e15e3b38', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(radii).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: `w-full p-16 block lg:flex items-center justify-center text-center border-3 border-soft rounded-${key}` }, hAsync("eds-code-block", { language: "Utility Class", code: `rounded-${key}`, class: "mx-auto min-w-[200px] sm:mb-4 sm:max-w-[200px] mr-auto" }), hAsync("eds-code-block", { code: `border-radius:${value}`, language: "css", class: "mx-auto min-w-[200px] sm:max-w-[200px] ml-auto" }))))))));
|
|
14939
15369
|
}
|
|
14940
15370
|
static get cmpMeta() { return {
|
|
14941
15371
|
"$flags$": 0,
|
|
@@ -14964,7 +15394,7 @@ class TokenRatios {
|
|
|
14964
15394
|
registerInstance(this, hostRef);
|
|
14965
15395
|
}
|
|
14966
15396
|
render() {
|
|
14967
|
-
return (hAsync("section", { key: '
|
|
15397
|
+
return (hAsync("section", { key: '255775984f1d0edd52f48814776dfb5739b4885e', class: "w-full" }, hAsync("eds-section-core", { key: '7fd28e74db00800fcaa4adb13dd6b0b9cace371d', tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, hAsync("ul", { key: '1e4c0af9a699e69c5bc6c86df821c457bb20614a', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(ratios).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "container ratio-box flex items-center justify-center text-center border-2 border-soft", style: {
|
|
14968
15398
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
14969
15399
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
14970
15400
|
maxWidth: '300px'
|
|
@@ -15006,7 +15436,7 @@ class TokenShadows {
|
|
|
15006
15436
|
registerInstance(this, hostRef);
|
|
15007
15437
|
}
|
|
15008
15438
|
render() {
|
|
15009
|
-
return (hAsync("section", { key: '
|
|
15439
|
+
return (hAsync("section", { key: '8ca055cb3616c9bc3f6e8c1032671ff53a540156', class: "w-full mt-28" }, hAsync("ul", { key: '7b72868285aaffe0f31628b5ab142e39aaccd964', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(shadowTokens).map(([category, tokens]) => Object.entries(tokens).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-16 block lg:flex items-center justify-center text-center border-2 border-soft", style: { boxShadow: value } }, hAsync("eds-code-block", { code: `${category}-${key}`, language: "Utility Class", class: "mr-auto sm:mb-4 min-w-[200px]" }), hAsync("eds-code-block", { code: `${value}`, language: "css", class: "ml-auto min-w-[200px]" })))))))));
|
|
15010
15440
|
}
|
|
15011
15441
|
static get cmpMeta() { return {
|
|
15012
15442
|
"$flags$": 0,
|
|
@@ -15026,7 +15456,7 @@ class TokenSpacing {
|
|
|
15026
15456
|
registerInstance(this, hostRef);
|
|
15027
15457
|
}
|
|
15028
15458
|
render() {
|
|
15029
|
-
return (hAsync("div", { key: '
|
|
15459
|
+
return (hAsync("div", { key: '9967174337c771b175eb51d9cd77ec227071178e', class: "w-full" }, hAsync("ul", { key: 'db8df572ea997ea83600cb522c761ec5c99788bc', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '25a7b31970e56ce8ff62c81a69daac121984d9d6', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '1a1dfa005e39237c2fedb210c0082293770387c6', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '473024ed6927d1a140eee0e021af92790c3ec5b0', class: "spacing-sample m-16 bg-strong" }, hAsync("span", { key: '7b691bf830943134160396ddcd8f71e419eb29e2', class: "f-body-01 text-inverse" }, "Margin: 1rem / m-16")))), hAsync("li", { key: '38f1d4d7e78b1efdbc55cf732b6be2ac3a62b5b7', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '3a0fc8cdfa13bf0998a4829c36a74b17a6ee2314', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'ec730379e1041a68c9d980bb6b5d4b16560debb0', class: "spacing-sample ml-64 bg-strong" }, hAsync("span", { key: 'fd6f3ab787f1d43fb0b060e8408a1464eacd9875', class: "f-body-01 text-inverse" }, "Margin Left: 4rem / ml-64")))), hAsync("li", { key: '60a45420ca9cd7f4dab1524c8d6be31b39295b0c', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'ec433621396341959df05dd4becf2844c4266ea5', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'e2ae2d3a3f0eb5226fae09d70eff099ed79ca0e6', class: "spacing-sample mt-32 bg-strong" }, hAsync("span", { key: '1da10931bb4dae62a1a1c020c89463634a3c1630', class: "f-body-01 text-inverse" }, "Margin Top: 2rem / mt-32")))), hAsync("li", { key: 'f2f6ff5c992df7d4d426a3488cb7aa7ad9b7bc85', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '23700500e04f2ec99fb5329092b7e430f7ac4274', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'bc304e082326c02787a62681fa86d20382fbb2d7', class: "spacing-sample p-32 bg-strong" }, hAsync("span", { key: '32692a307c58603ac232bb1004b88e0b5bff0c3d', class: "f-body-01 text-inverse" }, "Padding: 2rem / p-32")))), hAsync("li", { key: '6fc5032427724389d29d200347e3f5de984d6ec5', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'f66687c53866291f4f455153e34813d53bbb6d68', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'c4305cf37d1f08f50be085664d9a4da0c4859805', class: "spacing-sample pt-32 bg-strong" }, hAsync("span", { key: '4bd0c2056950a34d119c11ffd04e1dce1b8136c5', class: "f-body-01 text-inverse" }, "Padding Top: 2rem / pt-32")))), hAsync("li", { key: '67053133a6c121e02b7cab1da4cf4bc025dcc28d', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'dc7c1198e284eb0d71d183017e99fca72c3fb2a7', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '3e69f16b8673007197f18b736e07a9e2c86e7eeb', class: "spacing-sample pl-32 bg-strong" }, hAsync("span", { key: '5a112de1bf2ce66ea278da76b8890aff02cce8af', class: "f-body-01 text-inverse" }, "Padding Left: 2rem / pl-32")))))));
|
|
15030
15460
|
}
|
|
15031
15461
|
static get cmpMeta() { return {
|
|
15032
15462
|
"$flags$": 0,
|
|
@@ -15244,7 +15674,7 @@ class TokenTypography {
|
|
|
15244
15674
|
registerInstance(this, hostRef);
|
|
15245
15675
|
}
|
|
15246
15676
|
render() {
|
|
15247
|
-
return (hAsync("section", { key: '
|
|
15677
|
+
return (hAsync("section", { key: 'b638ddc335ade66f9eb0af8752f56945270fc5ee', class: "w-full" }, hAsync("ul", { key: '40f638bc0eccdcc79aecaf5da8fc9c1332122d49', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(typography.typesets)
|
|
15248
15678
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
15249
15679
|
.flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-4 block lg:flex items-center border border-soft rounded" }, hAsync("div", { class: "mr-auto hidden lg:block", style: {
|
|
15250
15680
|
fontFamily: typography.families.sans,
|
|
@@ -15313,6 +15743,7 @@ registerComponents([
|
|
|
15313
15743
|
EdsIconChevronLeft,
|
|
15314
15744
|
EdsIconChevronRight,
|
|
15315
15745
|
EdsIconChevronUp,
|
|
15746
|
+
EdsIconClone,
|
|
15316
15747
|
EdsIconClose,
|
|
15317
15748
|
EdsIconCopy,
|
|
15318
15749
|
EdsIconDraft,
|
|
@@ -15343,6 +15774,7 @@ registerComponents([
|
|
|
15343
15774
|
EdsIconUnknown,
|
|
15344
15775
|
EdsIconUpdown,
|
|
15345
15776
|
EdsIconUser,
|
|
15777
|
+
EdsIconView,
|
|
15346
15778
|
EdsIconWrapper,
|
|
15347
15779
|
EdsIconYoutube,
|
|
15348
15780
|
EdsImg,
|
|
@@ -15357,6 +15789,7 @@ registerComponents([
|
|
|
15357
15789
|
EdsLogo,
|
|
15358
15790
|
EdsMatomoNotice,
|
|
15359
15791
|
EdsModal,
|
|
15792
|
+
EdsNps,
|
|
15360
15793
|
EdsPagination,
|
|
15361
15794
|
EdsPie,
|
|
15362
15795
|
EdsProgressBar,
|