@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.mjs
CHANGED
|
@@ -123,7 +123,7 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
const NAMESPACE = 'components';
|
|
126
|
-
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:
|
|
126
|
+
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 };
|
|
127
127
|
|
|
128
128
|
/*
|
|
129
129
|
Stencil Hydrate Platform v4.22.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -1907,7 +1907,10 @@ function proxyHostElement(elm, cmpMeta) {
|
|
|
1907
1907
|
}
|
|
1908
1908
|
if (!elm.shadowRoot && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1909
1909
|
{
|
|
1910
|
-
elm.attachShadow({
|
|
1910
|
+
elm.attachShadow({
|
|
1911
|
+
mode: "open",
|
|
1912
|
+
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
1913
|
+
});
|
|
1911
1914
|
}
|
|
1912
1915
|
}
|
|
1913
1916
|
if (cmpMeta.$members$ != null) {
|
|
@@ -2327,7 +2330,7 @@ class ColorPrimaryPalette {
|
|
|
2327
2330
|
];
|
|
2328
2331
|
}
|
|
2329
2332
|
render() {
|
|
2330
|
-
return (hAsync("ul", { key: '
|
|
2333
|
+
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))))))));
|
|
2331
2334
|
}
|
|
2332
2335
|
static get cmpMeta() { return {
|
|
2333
2336
|
"$flags$": 0,
|
|
@@ -2399,7 +2402,7 @@ class ColorSecondaryPalette {
|
|
|
2399
2402
|
this.show = undefined;
|
|
2400
2403
|
}
|
|
2401
2404
|
render() {
|
|
2402
|
-
return (hAsync("ul", { key: '
|
|
2405
|
+
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))))))));
|
|
2403
2406
|
}
|
|
2404
2407
|
static get cmpMeta() { return {
|
|
2405
2408
|
"$flags$": 0,
|
|
@@ -2473,7 +2476,7 @@ class ColorSupportPalette {
|
|
|
2473
2476
|
return 'text-default';
|
|
2474
2477
|
}
|
|
2475
2478
|
render() {
|
|
2476
|
-
return (hAsync("ul", { key: '
|
|
2479
|
+
return (hAsync("ul", { key: '70965eb05a6b535bf4477e7413f7fd681c4f9768', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => {
|
|
2477
2480
|
// compute once
|
|
2478
2481
|
const textClass = this.getTextColor(color.background);
|
|
2479
2482
|
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)))));
|
|
@@ -2626,7 +2629,7 @@ class ComponentsSection {
|
|
|
2626
2629
|
}
|
|
2627
2630
|
}
|
|
2628
2631
|
render() {
|
|
2629
|
-
return hAsync("div", { key: '
|
|
2632
|
+
return hAsync("div", { key: 'dc274e3d76a296c8a8b18abcc4fc8741a6b9eddd', class: "container" }, this.renderContent());
|
|
2630
2633
|
}
|
|
2631
2634
|
static get cmpMeta() { return {
|
|
2632
2635
|
"$flags$": 0,
|
|
@@ -2704,7 +2707,7 @@ class CorrectUseOfColors {
|
|
|
2704
2707
|
registerInstance(this, hostRef);
|
|
2705
2708
|
}
|
|
2706
2709
|
render() {
|
|
2707
|
-
return (hAsync("div", { key: '
|
|
2710
|
+
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 } })))))))));
|
|
2708
2711
|
}
|
|
2709
2712
|
static get cmpMeta() { return {
|
|
2710
2713
|
"$flags$": 0,
|
|
@@ -2743,7 +2746,7 @@ class DocsContent {
|
|
|
2743
2746
|
}
|
|
2744
2747
|
}
|
|
2745
2748
|
render() {
|
|
2746
|
-
return hAsync("div", { key: '
|
|
2749
|
+
return hAsync("div", { key: '86455a5f05b74d8d751a5d17ecf58c0046e8d0a3', class: "container" }, this.renderContent());
|
|
2747
2750
|
}
|
|
2748
2751
|
static get cmpMeta() { return {
|
|
2749
2752
|
"$flags$": 0,
|
|
@@ -2776,7 +2779,7 @@ class DocsPalettes {
|
|
|
2776
2779
|
}
|
|
2777
2780
|
}
|
|
2778
2781
|
render() {
|
|
2779
|
-
return hAsync("div", { key: '
|
|
2782
|
+
return hAsync("div", { key: '82b8de086298568ed7bbb4717da0f6f19ff9677c', class: "container" }, this.renderContent());
|
|
2780
2783
|
}
|
|
2781
2784
|
static get cmpMeta() { return {
|
|
2782
2785
|
"$flags$": 0,
|
|
@@ -2937,7 +2940,7 @@ class EdsAccordion {
|
|
|
2937
2940
|
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
|
|
2938
2941
|
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
2939
2942
|
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
2940
|
-
${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: '
|
|
2943
|
+
${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' })))))));
|
|
2941
2944
|
}
|
|
2942
2945
|
get el() { return getElement(this); }
|
|
2943
2946
|
static get style() { return EdsAccordionStyle0; }
|
|
@@ -3074,6 +3077,7 @@ const alertStyles = cva(['w-full bg-dark'], {
|
|
|
3074
3077
|
class EdsAlert {
|
|
3075
3078
|
constructor(hostRef) {
|
|
3076
3079
|
registerInstance(this, hostRef);
|
|
3080
|
+
this.edsalert = createEvent(this, "edsalert", 7);
|
|
3077
3081
|
this.message = undefined;
|
|
3078
3082
|
this.pressableLabel = undefined;
|
|
3079
3083
|
this.pressableUrl = undefined;
|
|
@@ -3086,6 +3090,11 @@ class EdsAlert {
|
|
|
3086
3090
|
this.withBtn = Boolean(this.pressableLabel);
|
|
3087
3091
|
}
|
|
3088
3092
|
componentDidLoad() {
|
|
3093
|
+
// Focus the alert container for immediate screen reader announcement
|
|
3094
|
+
/*if (this.intent === 'error' || this.intent === 'warning') {
|
|
3095
|
+
this.el.shadowRoot?.querySelector('[role="alert"]')?.setAttribute('tabindex', '-1');
|
|
3096
|
+
(this.el.shadowRoot?.querySelector('[role="alert"]') as HTMLElement)?.focus();
|
|
3097
|
+
}*/
|
|
3089
3098
|
var _a;
|
|
3090
3099
|
// Query for the 'eds-link' element inside the shadow root.
|
|
3091
3100
|
const lnk = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('eds-link');
|
|
@@ -3102,14 +3111,18 @@ class EdsAlert {
|
|
|
3102
3111
|
});
|
|
3103
3112
|
linkElement.dispatchEvent(event);
|
|
3104
3113
|
}
|
|
3114
|
+
handleAction() {
|
|
3115
|
+
// Emit the alertAction event for parent components to handle
|
|
3116
|
+
this.edsalert.emit();
|
|
3117
|
+
}
|
|
3105
3118
|
render() {
|
|
3106
|
-
|
|
3119
|
+
const ariaLabel = this.intent !== 'default' ? `${this.intent} alert` : 'alert';
|
|
3120
|
+
return (hAsync("div", { key: '2d22944e7ae86cf2523c194e20215a3d986083d9', class: alertStyles({
|
|
3107
3121
|
intent: this.intent,
|
|
3108
3122
|
brd: this.brd,
|
|
3109
3123
|
direction: this.direction,
|
|
3110
3124
|
withBtn: this.withBtn
|
|
3111
|
-
}), role: "alert" }, hAsync("p", { key: '
|
|
3112
|
-
(this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : null)));
|
|
3125
|
+
}), 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() }))))));
|
|
3113
3126
|
}
|
|
3114
3127
|
get el() { return getElement(this); }
|
|
3115
3128
|
static get style() { return EdsAlertStyle0; }
|
|
@@ -3160,7 +3173,7 @@ class EdsAppRoot {
|
|
|
3160
3173
|
this.combinedInitPromise = Promise.all([initKeycloakPromise, authStatusPromise]);
|
|
3161
3174
|
}
|
|
3162
3175
|
render() {
|
|
3163
|
-
return (hAsync("div", { key: '
|
|
3176
|
+
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."))));
|
|
3164
3177
|
}
|
|
3165
3178
|
static get cmpMeta() { return {
|
|
3166
3179
|
"$flags$": 9,
|
|
@@ -3243,7 +3256,7 @@ class EdsAvatar {
|
|
|
3243
3256
|
* @returns {JSX.Element} The rendered avatar component.
|
|
3244
3257
|
*/
|
|
3245
3258
|
render() {
|
|
3246
|
-
return (hAsync("div", { key: '
|
|
3259
|
+
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))));
|
|
3247
3260
|
}
|
|
3248
3261
|
static get style() { return EdsAvatarStyle0; }
|
|
3249
3262
|
static get cmpMeta() { return {
|
|
@@ -3274,7 +3287,7 @@ class EdsBlockBreak {
|
|
|
3274
3287
|
this.inverse = false;
|
|
3275
3288
|
}
|
|
3276
3289
|
render() {
|
|
3277
|
-
return hAsync("hr", { key: '
|
|
3290
|
+
return hAsync("hr", { key: '688e11c730af1193f28db196cd144c6dd2efc3c6', class: `${this.inverse ? 'border-default' : 'border-softer'} my-16 inline-block w-full border-t-2` });
|
|
3278
3291
|
}
|
|
3279
3292
|
static get style() { return EdsBlockBreakStyle0; }
|
|
3280
3293
|
static get cmpMeta() { return {
|
|
@@ -3434,7 +3447,7 @@ class EdsBreadcrumb {
|
|
|
3434
3447
|
*/
|
|
3435
3448
|
render() {
|
|
3436
3449
|
const itemsToRender = this.getTruncatedItems();
|
|
3437
|
-
return (hAsync("nav", { key: '
|
|
3450
|
+
return (hAsync("nav", { key: '0625a234ec9f5095abbeaafa11e56bceb0432764', "aria-label": "Breadcrumb" }, hAsync("ol", { key: '3898a4b048eca6c606a6948b26ec25a608cb908e', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3438
3451
|
const isLast = index === itemsToRender.length - 1;
|
|
3439
3452
|
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
|
|
3440
3453
|
const { fullLabel } = this.getLabels(item, isLast);
|
|
@@ -3470,7 +3483,7 @@ class EdsBreadcrumb {
|
|
|
3470
3483
|
}; }
|
|
3471
3484
|
}
|
|
3472
3485
|
|
|
3473
|
-
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}";
|
|
3486
|
+
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}";
|
|
3474
3487
|
var EdsButtonStyle0 = edsButtonCss;
|
|
3475
3488
|
|
|
3476
3489
|
/**
|
|
@@ -3503,7 +3516,7 @@ class EdsButton {
|
|
|
3503
3516
|
secondary: 'border-inside border-inside-inverse text-inverse bg-strongest hover:bg-strong-dark',
|
|
3504
3517
|
tertiary: 'border-inside after:border-softest bg-dark hover:bg-darker',
|
|
3505
3518
|
ghost: 'border-inside hover:bg-darker',
|
|
3506
|
-
ghostInverse: 'border-inside hover:bg-dark'
|
|
3519
|
+
ghostInverse: 'border-inside text-lightest hover:bg-dark'
|
|
3507
3520
|
},
|
|
3508
3521
|
loading: {
|
|
3509
3522
|
true: 'pointer-events-none',
|
|
@@ -3613,8 +3626,7 @@ class EdsButton {
|
|
|
3613
3626
|
}
|
|
3614
3627
|
handleClick(event) {
|
|
3615
3628
|
var _a, _b;
|
|
3616
|
-
if (this.disabled) {
|
|
3617
|
-
// Prevent navigation if the link is disabled
|
|
3629
|
+
if (this.disabled || this.loading) {
|
|
3618
3630
|
event.preventDefault();
|
|
3619
3631
|
return;
|
|
3620
3632
|
}
|
|
@@ -3630,6 +3642,16 @@ class EdsButton {
|
|
|
3630
3642
|
this.triggerClick(); // Trigger the passed-in function
|
|
3631
3643
|
}
|
|
3632
3644
|
}
|
|
3645
|
+
handleKeyDown(event) {
|
|
3646
|
+
if (this.disabled || this.loading) {
|
|
3647
|
+
// Fix: check loading too
|
|
3648
|
+
return;
|
|
3649
|
+
}
|
|
3650
|
+
if (event.key === 'Enter' || (this.elementType === 'a' && event.key === ' ')) {
|
|
3651
|
+
event.preventDefault();
|
|
3652
|
+
this.handleClick(event);
|
|
3653
|
+
}
|
|
3654
|
+
}
|
|
3633
3655
|
render() {
|
|
3634
3656
|
const classes = this.button({
|
|
3635
3657
|
intent: this.intent,
|
|
@@ -3641,18 +3663,20 @@ class EdsButton {
|
|
|
3641
3663
|
iconSmall: this.iconSmall
|
|
3642
3664
|
});
|
|
3643
3665
|
const ElementType = this.elementType;
|
|
3644
|
-
|
|
3666
|
+
const isInteractive = !this.disabled && !this.loading;
|
|
3667
|
+
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: {
|
|
3645
3668
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3646
3669
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3647
3670
|
} }))), this.icon ? (hAsync("eds-icon-wrapper", { class: `
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3671
|
+
flex inline-flex items-center justify-center
|
|
3672
|
+
${this.size === 'large' ? 'h-24 w-24' : 'h-20 w-20'}
|
|
3673
|
+
`, icon: this.icon, "aria-hidden": "true" })) : null)));
|
|
3651
3674
|
}
|
|
3675
|
+
static get delegatesFocus() { return true; }
|
|
3652
3676
|
get el() { return getElement(this); }
|
|
3653
3677
|
static get style() { return EdsButtonStyle0; }
|
|
3654
3678
|
static get cmpMeta() { return {
|
|
3655
|
-
"$flags$":
|
|
3679
|
+
"$flags$": 25,
|
|
3656
3680
|
"$tagName$": "eds-button",
|
|
3657
3681
|
"$members$": {
|
|
3658
3682
|
"label": [1],
|
|
@@ -3700,7 +3724,7 @@ class EdsCardDesc {
|
|
|
3700
3724
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
3701
3725
|
}
|
|
3702
3726
|
render() {
|
|
3703
|
-
return (hAsync("p", { key: '
|
|
3727
|
+
return (hAsync("p", { key: '302734334d08002f94c269977ebda7762fd19843', class: "text-light f-ui-03-light" }, hAsync("span", { key: '925f6cea41068b62d22902f33d80d700d0975f39', class: this.getTruncateClass() }, this.description)));
|
|
3704
3728
|
}
|
|
3705
3729
|
static get style() { return EdsCardDescStyle0; }
|
|
3706
3730
|
static get cmpMeta() { return {
|
|
@@ -4017,7 +4041,7 @@ class EdsCardProject {
|
|
|
4017
4041
|
this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
|
|
4018
4042
|
].join(' ');
|
|
4019
4043
|
const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
|
|
4020
|
-
return (hAsync("article", { key: '
|
|
4044
|
+
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)))))));
|
|
4021
4045
|
}
|
|
4022
4046
|
get el() { return getElement(this); }
|
|
4023
4047
|
static get cmpMeta() { return {
|
|
@@ -4106,7 +4130,7 @@ class EdsCardTags {
|
|
|
4106
4130
|
this.tags = [];
|
|
4107
4131
|
}
|
|
4108
4132
|
render() {
|
|
4109
|
-
return (hAsync("div", { key: '
|
|
4133
|
+
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 })))));
|
|
4110
4134
|
}
|
|
4111
4135
|
static get style() { return EdsCardTagsStyle0; }
|
|
4112
4136
|
static get cmpMeta() { return {
|
|
@@ -4170,7 +4194,7 @@ class EdsCardTitle {
|
|
|
4170
4194
|
render() {
|
|
4171
4195
|
//const Tag = this.getTag();
|
|
4172
4196
|
const Heading = this.headingLevel;
|
|
4173
|
-
return (hAsync(Heading, { key: '
|
|
4197
|
+
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)));
|
|
4174
4198
|
}
|
|
4175
4199
|
static get style() { return EdsCardTitleStyle0; }
|
|
4176
4200
|
static get cmpMeta() { return {
|
|
@@ -4258,7 +4282,7 @@ class EdsCardTool {
|
|
|
4258
4282
|
});
|
|
4259
4283
|
}
|
|
4260
4284
|
render() {
|
|
4261
|
-
return (hAsync("article", { key: '
|
|
4285
|
+
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 }))))));
|
|
4262
4286
|
}
|
|
4263
4287
|
get el() { return getElement(this); }
|
|
4264
4288
|
static get style() { return EdsCardToolStyle0; }
|
|
@@ -6770,7 +6794,7 @@ class EdsCodeBlock {
|
|
|
6770
6794
|
return this.code; // Fallback if language is not provided or unsupported
|
|
6771
6795
|
}
|
|
6772
6796
|
render() {
|
|
6773
|
-
return (hAsync("div", { key: '
|
|
6797
|
+
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() })))));
|
|
6774
6798
|
}
|
|
6775
6799
|
get el() { return getElement(this); }
|
|
6776
6800
|
static get style() { return EdsCodeBlockStyle0; }
|
|
@@ -6818,7 +6842,7 @@ class EdsCookiesPreference {
|
|
|
6818
6842
|
}
|
|
6819
6843
|
}
|
|
6820
6844
|
render() {
|
|
6821
|
-
return (hAsync("div", { key: '
|
|
6845
|
+
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 })));
|
|
6822
6846
|
}
|
|
6823
6847
|
static get style() { return EdsCookiesPreferenceStyle0; }
|
|
6824
6848
|
static get cmpMeta() { return {
|
|
@@ -6954,14 +6978,14 @@ class EdsDropdown {
|
|
|
6954
6978
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
6955
6979
|
*/
|
|
6956
6980
|
render() {
|
|
6957
|
-
return (hAsync("div", { key: '
|
|
6981
|
+
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: {
|
|
6958
6982
|
'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,
|
|
6959
6983
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
6960
6984
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
6961
6985
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
6962
6986
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
6963
6987
|
'rounded-lg': this.rounded
|
|
6964
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '
|
|
6988
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: 'b416621930c7117775fef2ee91bdca0f660302f5' }))));
|
|
6965
6989
|
}
|
|
6966
6990
|
get host() { return getElement(this); }
|
|
6967
6991
|
static get style() { return EdsDropdownStyle0; }
|
|
@@ -7043,7 +7067,7 @@ class EdsFeedback {
|
|
|
7043
7067
|
const HeadingTag = this.headingLevel;
|
|
7044
7068
|
const levelNum = this.headingLevel.replace('h', '');
|
|
7045
7069
|
const headingClass = `f-heading-${levelNum.padStart(2, '0')} my-4`;
|
|
7046
|
-
return (hAsync("div", { key: '
|
|
7070
|
+
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]))));
|
|
7047
7071
|
}
|
|
7048
7072
|
get el() { return getElement(this); }
|
|
7049
7073
|
static get style() { return EdsFeedbackStyle0; }
|
|
@@ -7113,6 +7137,12 @@ class EdsFooter {
|
|
|
7113
7137
|
}
|
|
7114
7138
|
const shouldShow = window.scrollY > 100 && document.body.scrollHeight > window.innerHeight;
|
|
7115
7139
|
this.backBtn.style.opacity = shouldShow ? '1' : '0';
|
|
7140
|
+
this.backBtn.style.pointerEvents = shouldShow ? 'auto' : 'none';
|
|
7141
|
+
const btn = this.backBtn.querySelector('eds-button');
|
|
7142
|
+
if (btn) {
|
|
7143
|
+
btn.removeAttribute('aria-hidden');
|
|
7144
|
+
btn.setAttribute('tabindex', shouldShow ? '0' : '-1');
|
|
7145
|
+
}
|
|
7116
7146
|
}
|
|
7117
7147
|
toggleCookiesConsent() {
|
|
7118
7148
|
this.cookies.emit('toggle');
|
|
@@ -7125,9 +7155,9 @@ class EdsFooter {
|
|
|
7125
7155
|
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
7126
7156
|
*/
|
|
7127
7157
|
render() {
|
|
7128
|
-
return (hAsync("footer", { key: '
|
|
7158
|
+
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: () => {
|
|
7129
7159
|
this.toggleCookiesConsent();
|
|
7130
|
-
} })) : null))), hAsync("div", { key: '
|
|
7160
|
+
} })) : 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)))));
|
|
7131
7161
|
}
|
|
7132
7162
|
get el() { return getElement(this); }
|
|
7133
7163
|
static get style() { return EdsFooterStyle0; }
|
|
@@ -7235,6 +7265,13 @@ function findRatingElement(formEl) {
|
|
|
7235
7265
|
}
|
|
7236
7266
|
return null;
|
|
7237
7267
|
}
|
|
7268
|
+
function findNpsElement(formEl) {
|
|
7269
|
+
const elements = Array.from(formEl.querySelectorAll('eds-nps'));
|
|
7270
|
+
for (const element of elements) {
|
|
7271
|
+
return element;
|
|
7272
|
+
}
|
|
7273
|
+
return null;
|
|
7274
|
+
}
|
|
7238
7275
|
/**
|
|
7239
7276
|
* Validates all fields and returns an object containing the errors and a flag indicating any errors.
|
|
7240
7277
|
*/
|
|
@@ -7244,6 +7281,7 @@ isFieldVisible) {
|
|
|
7244
7281
|
const errors = {};
|
|
7245
7282
|
let hasError = false;
|
|
7246
7283
|
parsedFields.forEach((field) => {
|
|
7284
|
+
var _a;
|
|
7247
7285
|
// Only validate fields that are visible.
|
|
7248
7286
|
if (!isFieldVisible(field, values)) {
|
|
7249
7287
|
// If a field is hidden, clear its error.
|
|
@@ -7279,6 +7317,28 @@ isFieldVisible) {
|
|
|
7279
7317
|
}
|
|
7280
7318
|
}
|
|
7281
7319
|
}
|
|
7320
|
+
// NPS type
|
|
7321
|
+
else if (field.type === 'nps') {
|
|
7322
|
+
const npsEl = findNpsElement(formEl);
|
|
7323
|
+
if (npsEl && npsEl.shadowRoot) {
|
|
7324
|
+
const raw = (_a = npsEl.shadowRoot
|
|
7325
|
+
.querySelector('div[role="radio"][aria-checked="true"] eds-button')) === null || _a === void 0 ? void 0 : _a.getAttribute('aria-label');
|
|
7326
|
+
const value = raw !== null ? parseInt(raw, 10) : null;
|
|
7327
|
+
if (value === null) {
|
|
7328
|
+
// eslint-disable-next-line
|
|
7329
|
+
if (field.required) {
|
|
7330
|
+
errors[field.name] = ['This field is required.'];
|
|
7331
|
+
hasError = true;
|
|
7332
|
+
}
|
|
7333
|
+
}
|
|
7334
|
+
}
|
|
7335
|
+
else if (field.required) {
|
|
7336
|
+
// No NPS component found but required
|
|
7337
|
+
errors[field.name] = ['This field is required.'];
|
|
7338
|
+
hasError = true;
|
|
7339
|
+
}
|
|
7340
|
+
return;
|
|
7341
|
+
}
|
|
7282
7342
|
else {
|
|
7283
7343
|
// For all other types, find the first matching element.
|
|
7284
7344
|
const inputEl = findFieldElement(formEl, field.name);
|
|
@@ -7580,6 +7640,25 @@ class EdsForm {
|
|
|
7580
7640
|
message: `${field.name} updated`
|
|
7581
7641
|
});
|
|
7582
7642
|
}
|
|
7643
|
+
handleNPS(e, field) {
|
|
7644
|
+
const score = e.detail;
|
|
7645
|
+
this.values = Object.assign(Object.assign({}, this.values), { [field.name]: score });
|
|
7646
|
+
const newErrors = Object.assign({}, this.errors);
|
|
7647
|
+
if (field.required && score === null) {
|
|
7648
|
+
newErrors[field.name] = ['This field is required'];
|
|
7649
|
+
}
|
|
7650
|
+
else {
|
|
7651
|
+
delete newErrors[field.name];
|
|
7652
|
+
}
|
|
7653
|
+
this.errors = newErrors;
|
|
7654
|
+
this.hasError = Object.keys(newErrors).length > 0;
|
|
7655
|
+
this.form.emit({
|
|
7656
|
+
event: 'change',
|
|
7657
|
+
field: field.name,
|
|
7658
|
+
value: score,
|
|
7659
|
+
message: `${field.name} updated`
|
|
7660
|
+
});
|
|
7661
|
+
}
|
|
7583
7662
|
handleSubmit() {
|
|
7584
7663
|
var _a, _b;
|
|
7585
7664
|
if (this.isSubmitting) {
|
|
@@ -7648,7 +7727,7 @@ class EdsForm {
|
|
|
7648
7727
|
return map;
|
|
7649
7728
|
}
|
|
7650
7729
|
renderField(field) {
|
|
7651
|
-
var _a, _b;
|
|
7730
|
+
var _a, _b, _c;
|
|
7652
7731
|
if (!this.isFieldVisible(field)) {
|
|
7653
7732
|
return null;
|
|
7654
7733
|
}
|
|
@@ -7658,7 +7737,10 @@ class EdsForm {
|
|
|
7658
7737
|
const val = this.values[field.name] || 0;
|
|
7659
7738
|
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 }))));
|
|
7660
7739
|
}
|
|
7661
|
-
|
|
7740
|
+
else if (field.type === 'nps') {
|
|
7741
|
+
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 }))));
|
|
7742
|
+
}
|
|
7743
|
+
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) }));
|
|
7662
7744
|
}
|
|
7663
7745
|
async getData() {
|
|
7664
7746
|
return this.makeFormData();
|
|
@@ -7667,9 +7749,9 @@ class EdsForm {
|
|
|
7667
7749
|
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
7668
7750
|
//const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
7669
7751
|
const buckets = this.groupedFields;
|
|
7670
|
-
return (hAsync("form", { key: '
|
|
7752
|
+
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
|
|
7671
7753
|
.filter((g) => Array.isArray(buckets[g.id]) && buckets[g.id].length > 0)
|
|
7672
|
-
.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: '
|
|
7754
|
+
.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() })))));
|
|
7673
7755
|
}
|
|
7674
7756
|
get el() { return getElement(this); }
|
|
7675
7757
|
static get watchers() { return {
|
|
@@ -7793,7 +7875,7 @@ class EdsFrame {
|
|
|
7793
7875
|
}
|
|
7794
7876
|
}
|
|
7795
7877
|
render() {
|
|
7796
|
-
return (hAsync("div", { key: '
|
|
7878
|
+
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 })))));
|
|
7797
7879
|
}
|
|
7798
7880
|
get el() { return getElement(this); }
|
|
7799
7881
|
static get style() { return EdsFrameStyle0; }
|
|
@@ -7957,7 +8039,7 @@ class EdsGauge {
|
|
|
7957
8039
|
const textStyle = {
|
|
7958
8040
|
fontSize: `${fontSize}px`
|
|
7959
8041
|
};
|
|
7960
|
-
return (hAsync("div", { key: '
|
|
8042
|
+
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))));
|
|
7961
8043
|
}
|
|
7962
8044
|
static get style() { return EdsGaugeStyle0; }
|
|
7963
8045
|
static get cmpMeta() { return {
|
|
@@ -8038,7 +8120,7 @@ class EdsHeader {
|
|
|
8038
8120
|
const classes = variantClasses[this.headerVariant] || variantClasses.default;
|
|
8039
8121
|
// Logo color variant: default and inverse use 'color', strong uses 'color-white'
|
|
8040
8122
|
const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
|
|
8041
|
-
return (hAsync("header", { key: '
|
|
8123
|
+
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() })))));
|
|
8042
8124
|
}
|
|
8043
8125
|
get hostEl() { return getElement(this); }
|
|
8044
8126
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -9973,7 +10055,11 @@ var start = `<svg fill="#000000" width="20" height="20" viewBox="0 0 1920 1920"
|
|
|
9973
10055
|
|
|
9974
10056
|
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>`;
|
|
9975
10057
|
|
|
9976
|
-
var edit = `<svg width="20" height="20"
|
|
10058
|
+
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>`;
|
|
10059
|
+
|
|
10060
|
+
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>`;
|
|
10061
|
+
|
|
10062
|
+
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>`;
|
|
9977
10063
|
|
|
9978
10064
|
var svgs = /*#__PURE__*/Object.freeze({
|
|
9979
10065
|
__proto__: null,
|
|
@@ -10038,7 +10124,9 @@ var svgs = /*#__PURE__*/Object.freeze({
|
|
|
10038
10124
|
bin: bin,
|
|
10039
10125
|
start: start,
|
|
10040
10126
|
draft: draft,
|
|
10041
|
-
edit: edit
|
|
10127
|
+
edit: edit,
|
|
10128
|
+
view: view,
|
|
10129
|
+
clone: clone
|
|
10042
10130
|
});
|
|
10043
10131
|
|
|
10044
10132
|
/**
|
|
@@ -10050,7 +10138,7 @@ class EdsIconArrowDiagonal {
|
|
|
10050
10138
|
this.class = '';
|
|
10051
10139
|
}
|
|
10052
10140
|
render() {
|
|
10053
|
-
return hAsync("span", { key: '
|
|
10141
|
+
return hAsync("span", { key: 'ef60986a4391dffcbb2a66109f217f3cec95a5fc', class: this.class, innerHTML: arrowDiagonal });
|
|
10054
10142
|
}
|
|
10055
10143
|
static get cmpMeta() { return {
|
|
10056
10144
|
"$flags$": 0,
|
|
@@ -10073,7 +10161,7 @@ class EdsIconArrowRight {
|
|
|
10073
10161
|
this.class = '';
|
|
10074
10162
|
}
|
|
10075
10163
|
render() {
|
|
10076
|
-
return hAsync("span", { key: '
|
|
10164
|
+
return hAsync("span", { key: '02288b13fa941076a5cc73fd3821bd78e206b2b3', class: this.class, innerHTML: arrowRight });
|
|
10077
10165
|
}
|
|
10078
10166
|
static get cmpMeta() { return {
|
|
10079
10167
|
"$flags$": 0,
|
|
@@ -10096,7 +10184,7 @@ class EdsIconBin {
|
|
|
10096
10184
|
this.class = '';
|
|
10097
10185
|
}
|
|
10098
10186
|
render() {
|
|
10099
|
-
return hAsync("span", { key: '
|
|
10187
|
+
return hAsync("span", { key: '5f314df297274d153638c96027c23632f47f6a3a', class: this.class, innerHTML: bin });
|
|
10100
10188
|
}
|
|
10101
10189
|
static get cmpMeta() { return {
|
|
10102
10190
|
"$flags$": 0,
|
|
@@ -10119,7 +10207,7 @@ class EdsIconBluesky {
|
|
|
10119
10207
|
this.class = '';
|
|
10120
10208
|
}
|
|
10121
10209
|
render() {
|
|
10122
|
-
return hAsync("span", { key: '
|
|
10210
|
+
return hAsync("span", { key: 'db8fea43b7888da43821083ecc706a16c949932e', class: this.class, innerHTML: bluesky });
|
|
10123
10211
|
}
|
|
10124
10212
|
static get cmpMeta() { return {
|
|
10125
10213
|
"$flags$": 0,
|
|
@@ -10142,7 +10230,7 @@ class EdsIconBookmark {
|
|
|
10142
10230
|
this.class = '';
|
|
10143
10231
|
}
|
|
10144
10232
|
render() {
|
|
10145
|
-
return hAsync("span", { key: '
|
|
10233
|
+
return hAsync("span", { key: 'b7c85131bafc5d7d3fcf8fde09cf646b4dd3fdab', class: this.class, innerHTML: bookmark });
|
|
10146
10234
|
}
|
|
10147
10235
|
static get cmpMeta() { return {
|
|
10148
10236
|
"$flags$": 0,
|
|
@@ -10165,7 +10253,7 @@ class EdsIconChevronDown {
|
|
|
10165
10253
|
this.class = '';
|
|
10166
10254
|
}
|
|
10167
10255
|
render() {
|
|
10168
|
-
return hAsync("span", { key: '
|
|
10256
|
+
return hAsync("span", { key: '5547e9d98f781dc03e88a014f726b3a402e6425d', class: this.class, innerHTML: chevronDown });
|
|
10169
10257
|
}
|
|
10170
10258
|
static get cmpMeta() { return {
|
|
10171
10259
|
"$flags$": 0,
|
|
@@ -10188,7 +10276,7 @@ class EdsIconChevronLeft {
|
|
|
10188
10276
|
this.class = '';
|
|
10189
10277
|
}
|
|
10190
10278
|
render() {
|
|
10191
|
-
return hAsync("span", { key: '
|
|
10279
|
+
return hAsync("span", { key: '49925425ac1fd676eb96b973b1419f1f2aec1c81', class: this.class, innerHTML: chevronLeft });
|
|
10192
10280
|
}
|
|
10193
10281
|
static get cmpMeta() { return {
|
|
10194
10282
|
"$flags$": 0,
|
|
@@ -10211,7 +10299,7 @@ class EdsIconChevronRight {
|
|
|
10211
10299
|
this.class = '';
|
|
10212
10300
|
}
|
|
10213
10301
|
render() {
|
|
10214
|
-
return hAsync("span", { key: '
|
|
10302
|
+
return hAsync("span", { key: 'e9abd378d28d9e2251e530f97a11973ea558fbe2', class: this.class, innerHTML: chevronRight });
|
|
10215
10303
|
}
|
|
10216
10304
|
static get cmpMeta() { return {
|
|
10217
10305
|
"$flags$": 0,
|
|
@@ -10234,7 +10322,7 @@ class EdsIconChevronUp {
|
|
|
10234
10322
|
this.class = '';
|
|
10235
10323
|
}
|
|
10236
10324
|
render() {
|
|
10237
|
-
return hAsync("span", { key: '
|
|
10325
|
+
return hAsync("span", { key: 'f81db967bf78d75a4a8e572cda6427046603f0a6', class: this.class, innerHTML: chevronUp });
|
|
10238
10326
|
}
|
|
10239
10327
|
static get cmpMeta() { return {
|
|
10240
10328
|
"$flags$": 0,
|
|
@@ -10248,6 +10336,29 @@ class EdsIconChevronUp {
|
|
|
10248
10336
|
}; }
|
|
10249
10337
|
}
|
|
10250
10338
|
|
|
10339
|
+
/**
|
|
10340
|
+
* @internal
|
|
10341
|
+
*/
|
|
10342
|
+
class EdsIconClone {
|
|
10343
|
+
constructor(hostRef) {
|
|
10344
|
+
registerInstance(this, hostRef);
|
|
10345
|
+
this.class = '';
|
|
10346
|
+
}
|
|
10347
|
+
render() {
|
|
10348
|
+
return hAsync("span", { key: 'ebbda9e150151cc6e6d2677307287f2d2f1ab4db', class: this.class, innerHTML: clone });
|
|
10349
|
+
}
|
|
10350
|
+
static get cmpMeta() { return {
|
|
10351
|
+
"$flags$": 0,
|
|
10352
|
+
"$tagName$": "eds-icon-clone",
|
|
10353
|
+
"$members$": {
|
|
10354
|
+
"class": [1]
|
|
10355
|
+
},
|
|
10356
|
+
"$listeners$": undefined,
|
|
10357
|
+
"$lazyBundleId$": "-",
|
|
10358
|
+
"$attrsToReflect$": []
|
|
10359
|
+
}; }
|
|
10360
|
+
}
|
|
10361
|
+
|
|
10251
10362
|
/**
|
|
10252
10363
|
* @internal
|
|
10253
10364
|
*/
|
|
@@ -10257,7 +10368,7 @@ class EdsIconClose {
|
|
|
10257
10368
|
this.class = '';
|
|
10258
10369
|
}
|
|
10259
10370
|
render() {
|
|
10260
|
-
return hAsync("span", { key: '
|
|
10371
|
+
return hAsync("span", { key: '91f33941205260a787d69146e390fa970a1c0d72', class: this.class, innerHTML: close });
|
|
10261
10372
|
}
|
|
10262
10373
|
static get cmpMeta() { return {
|
|
10263
10374
|
"$flags$": 0,
|
|
@@ -10280,7 +10391,7 @@ class EdsIconCopy {
|
|
|
10280
10391
|
this.class = '';
|
|
10281
10392
|
}
|
|
10282
10393
|
render() {
|
|
10283
|
-
return hAsync("span", { key: '
|
|
10394
|
+
return hAsync("span", { key: 'dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4', class: this.class, innerHTML: copy });
|
|
10284
10395
|
}
|
|
10285
10396
|
static get cmpMeta() { return {
|
|
10286
10397
|
"$flags$": 0,
|
|
@@ -10303,7 +10414,7 @@ class EdsIconDraft {
|
|
|
10303
10414
|
this.class = '';
|
|
10304
10415
|
}
|
|
10305
10416
|
render() {
|
|
10306
|
-
return hAsync("span", { key: '
|
|
10417
|
+
return hAsync("span", { key: '13898eb065f5a243104bc79293a5e6afcd276230', class: this.class, innerHTML: draft });
|
|
10307
10418
|
}
|
|
10308
10419
|
static get cmpMeta() { return {
|
|
10309
10420
|
"$flags$": 0,
|
|
@@ -10326,7 +10437,7 @@ class EdsIconEdit {
|
|
|
10326
10437
|
this.class = '';
|
|
10327
10438
|
}
|
|
10328
10439
|
render() {
|
|
10329
|
-
return hAsync("span", { key: '
|
|
10440
|
+
return hAsync("span", { key: '1758d925314772dc29c4349f71f186ba775d2b41', class: this.class, innerHTML: edit });
|
|
10330
10441
|
}
|
|
10331
10442
|
static get cmpMeta() { return {
|
|
10332
10443
|
"$flags$": 0,
|
|
@@ -10349,7 +10460,7 @@ class EdsIconEu {
|
|
|
10349
10460
|
this.class = '';
|
|
10350
10461
|
}
|
|
10351
10462
|
render() {
|
|
10352
|
-
return hAsync("span", { key: '
|
|
10463
|
+
return hAsync("span", { key: 'ac8c58eacb11b11be7928d7799a3eb6c8063597f', class: this.class, innerHTML: euSvg });
|
|
10353
10464
|
}
|
|
10354
10465
|
static get cmpMeta() { return {
|
|
10355
10466
|
"$flags$": 0,
|
|
@@ -10372,7 +10483,7 @@ class EdsIconExternal {
|
|
|
10372
10483
|
this.class = '';
|
|
10373
10484
|
}
|
|
10374
10485
|
render() {
|
|
10375
|
-
return hAsync("span", { key: '
|
|
10486
|
+
return hAsync("span", { key: 'e24ee8e9243fa2dcbe8df4fa9d84db5bbc136ec4', class: this.class, innerHTML: arrowDiagonal });
|
|
10376
10487
|
}
|
|
10377
10488
|
static get cmpMeta() { return {
|
|
10378
10489
|
"$flags$": 0,
|
|
@@ -10395,7 +10506,7 @@ class EdsIconFacebook {
|
|
|
10395
10506
|
this.class = '';
|
|
10396
10507
|
}
|
|
10397
10508
|
render() {
|
|
10398
|
-
return hAsync("span", { key: '
|
|
10509
|
+
return hAsync("span", { key: '6a6cbdd8f9e6b982af701b97681a98944c5c1797', class: this.class, innerHTML: facebook });
|
|
10399
10510
|
}
|
|
10400
10511
|
static get cmpMeta() { return {
|
|
10401
10512
|
"$flags$": 0,
|
|
@@ -10418,7 +10529,7 @@ class EdsIconGitlab {
|
|
|
10418
10529
|
this.class = '';
|
|
10419
10530
|
}
|
|
10420
10531
|
render() {
|
|
10421
|
-
return hAsync("span", { key: '
|
|
10532
|
+
return hAsync("span", { key: 'e6ce69e460242b20779766f62a3c7d23dad345d1', class: this.class, innerHTML: gitlabBlack });
|
|
10422
10533
|
}
|
|
10423
10534
|
static get cmpMeta() { return {
|
|
10424
10535
|
"$flags$": 0,
|
|
@@ -10441,7 +10552,7 @@ class EdsIconLinkedin {
|
|
|
10441
10552
|
this.class = '';
|
|
10442
10553
|
}
|
|
10443
10554
|
render() {
|
|
10444
|
-
return hAsync("span", { key: '
|
|
10555
|
+
return hAsync("span", { key: '1981b2c066cfa5f0fb4326017df4bfbdfff09873', class: this.class, innerHTML: linkedin });
|
|
10445
10556
|
}
|
|
10446
10557
|
static get cmpMeta() { return {
|
|
10447
10558
|
"$flags$": 0,
|
|
@@ -10464,7 +10575,7 @@ class EdsIconLoader {
|
|
|
10464
10575
|
this.class = '';
|
|
10465
10576
|
}
|
|
10466
10577
|
render() {
|
|
10467
|
-
return hAsync("span", { key: '
|
|
10578
|
+
return hAsync("span", { key: '9383784da3e52d22395288f8eba5b6f4ee826aa5', class: this.class, innerHTML: loader });
|
|
10468
10579
|
}
|
|
10469
10580
|
static get cmpMeta() { return {
|
|
10470
10581
|
"$flags$": 0,
|
|
@@ -10487,7 +10598,7 @@ class EdsIconMastodon {
|
|
|
10487
10598
|
this.class = '';
|
|
10488
10599
|
}
|
|
10489
10600
|
render() {
|
|
10490
|
-
return hAsync("span", { key: '
|
|
10601
|
+
return hAsync("span", { key: '8bba88cba6d29b204b4a4ceae3c41129bb6edcaa', class: this.class, innerHTML: mastodon });
|
|
10491
10602
|
}
|
|
10492
10603
|
static get cmpMeta() { return {
|
|
10493
10604
|
"$flags$": 0,
|
|
@@ -10510,7 +10621,7 @@ class EdsIconMenu {
|
|
|
10510
10621
|
this.class = '';
|
|
10511
10622
|
}
|
|
10512
10623
|
render() {
|
|
10513
|
-
return hAsync("span", { key: '
|
|
10624
|
+
return hAsync("span", { key: '15fa7c4b7d2dea5740d0926bb1ff6490b23667f8', class: this.class, innerHTML: menu });
|
|
10514
10625
|
}
|
|
10515
10626
|
static get cmpMeta() { return {
|
|
10516
10627
|
"$flags$": 0,
|
|
@@ -10533,7 +10644,7 @@ class EdsIconMinus {
|
|
|
10533
10644
|
this.class = '';
|
|
10534
10645
|
}
|
|
10535
10646
|
render() {
|
|
10536
|
-
return hAsync("span", { key: '
|
|
10647
|
+
return hAsync("span", { key: '0e8b57b9ae1a2e53ef6f50948c49b9a9218f66cc', class: this.class, innerHTML: minus });
|
|
10537
10648
|
}
|
|
10538
10649
|
static get cmpMeta() { return {
|
|
10539
10650
|
"$flags$": 0,
|
|
@@ -10556,7 +10667,7 @@ class EdsIconMore {
|
|
|
10556
10667
|
this.class = '';
|
|
10557
10668
|
}
|
|
10558
10669
|
render() {
|
|
10559
|
-
return hAsync("span", { key: '
|
|
10670
|
+
return hAsync("span", { key: '5f14cbe4b3ca88f7301c1561c092278b31d04326', class: this.class, innerHTML: more });
|
|
10560
10671
|
}
|
|
10561
10672
|
static get cmpMeta() { return {
|
|
10562
10673
|
"$flags$": 0,
|
|
@@ -10579,7 +10690,7 @@ class EdsIconPaper {
|
|
|
10579
10690
|
this.class = '';
|
|
10580
10691
|
}
|
|
10581
10692
|
render() {
|
|
10582
|
-
return hAsync("span", { key: '
|
|
10693
|
+
return hAsync("span", { key: 'b19c12426db0068934252c6197ba04789d42f5e2', class: this.class, innerHTML: paper });
|
|
10583
10694
|
}
|
|
10584
10695
|
static get cmpMeta() { return {
|
|
10585
10696
|
"$flags$": 0,
|
|
@@ -10602,7 +10713,7 @@ class EdsIconPlus {
|
|
|
10602
10713
|
this.class = '';
|
|
10603
10714
|
}
|
|
10604
10715
|
render() {
|
|
10605
|
-
return hAsync("span", { key: '
|
|
10716
|
+
return hAsync("span", { key: '520b8d5a7d45f101ef526432b45e4407446685cd', class: this.class, innerHTML: plus });
|
|
10606
10717
|
}
|
|
10607
10718
|
static get cmpMeta() { return {
|
|
10608
10719
|
"$flags$": 0,
|
|
@@ -10625,7 +10736,7 @@ class EdsIconPortal {
|
|
|
10625
10736
|
this.class = '';
|
|
10626
10737
|
}
|
|
10627
10738
|
render() {
|
|
10628
|
-
return hAsync("span", { key: '
|
|
10739
|
+
return hAsync("span", { key: 'f9b20e12497e199b7f596f4f457167080e81ccd1', class: this.class, innerHTML: portal });
|
|
10629
10740
|
}
|
|
10630
10741
|
static get cmpMeta() { return {
|
|
10631
10742
|
"$flags$": 0,
|
|
@@ -10648,7 +10759,7 @@ class EdsIconPrivate {
|
|
|
10648
10759
|
this.class = '';
|
|
10649
10760
|
}
|
|
10650
10761
|
render() {
|
|
10651
|
-
return hAsync("span", { key: '
|
|
10762
|
+
return hAsync("span", { key: 'a342e11087242f9b37365bcbfec2036bd2009c85', class: this.class, innerHTML: privat });
|
|
10652
10763
|
}
|
|
10653
10764
|
static get cmpMeta() { return {
|
|
10654
10765
|
"$flags$": 0,
|
|
@@ -10671,7 +10782,7 @@ class EdsIconPublic {
|
|
|
10671
10782
|
this.class = '';
|
|
10672
10783
|
}
|
|
10673
10784
|
render() {
|
|
10674
|
-
return hAsync("span", { key: '
|
|
10785
|
+
return hAsync("span", { key: 'e53f2ac899326e460b27b91772da9d2bee873fb3', class: this.class, innerHTML: pub });
|
|
10675
10786
|
}
|
|
10676
10787
|
static get cmpMeta() { return {
|
|
10677
10788
|
"$flags$": 0,
|
|
@@ -10694,7 +10805,7 @@ class EdsIconSearch {
|
|
|
10694
10805
|
this.class = '';
|
|
10695
10806
|
}
|
|
10696
10807
|
render() {
|
|
10697
|
-
return hAsync("span", { key: '
|
|
10808
|
+
return hAsync("span", { key: '6da0ae2a33a1680caecbaa6bbe1313329d32ef7e', class: this.class, innerHTML: search });
|
|
10698
10809
|
}
|
|
10699
10810
|
static get cmpMeta() { return {
|
|
10700
10811
|
"$flags$": 0,
|
|
@@ -10717,7 +10828,7 @@ class EdsIconStar {
|
|
|
10717
10828
|
this.class = '';
|
|
10718
10829
|
}
|
|
10719
10830
|
render() {
|
|
10720
|
-
return hAsync("span", { key: '
|
|
10831
|
+
return hAsync("span", { key: '4c4243f9e6c5c02a2d70eda34b28efe1ba7c696b', class: this.class, innerHTML: star });
|
|
10721
10832
|
}
|
|
10722
10833
|
static get cmpMeta() { return {
|
|
10723
10834
|
"$flags$": 0,
|
|
@@ -10740,7 +10851,7 @@ class EdsIconStart {
|
|
|
10740
10851
|
this.class = '';
|
|
10741
10852
|
}
|
|
10742
10853
|
render() {
|
|
10743
|
-
return hAsync("span", { key: '
|
|
10854
|
+
return hAsync("span", { key: 'a788a6ded2b42ad1138be4f74464d4dc08dc485f', class: this.class, innerHTML: start });
|
|
10744
10855
|
}
|
|
10745
10856
|
static get cmpMeta() { return {
|
|
10746
10857
|
"$flags$": 0,
|
|
@@ -10763,7 +10874,7 @@ class EdsIconSuccess {
|
|
|
10763
10874
|
this.class = '';
|
|
10764
10875
|
}
|
|
10765
10876
|
render() {
|
|
10766
|
-
return hAsync("span", { key: '
|
|
10877
|
+
return hAsync("span", { key: '68917ac759cd684a6f3f3f67cb174d7291841070', class: this.class, innerHTML: success });
|
|
10767
10878
|
}
|
|
10768
10879
|
static get cmpMeta() { return {
|
|
10769
10880
|
"$flags$": 0,
|
|
@@ -10786,7 +10897,7 @@ class EdsIconThumbsDown {
|
|
|
10786
10897
|
this.class = '';
|
|
10787
10898
|
}
|
|
10788
10899
|
render() {
|
|
10789
|
-
return hAsync("span", { key: '
|
|
10900
|
+
return hAsync("span", { key: 'fb0abd584eb41fcdf76479aa2953da2ed6a9f8ed', class: this.class, innerHTML: thumbsDown });
|
|
10790
10901
|
}
|
|
10791
10902
|
static get cmpMeta() { return {
|
|
10792
10903
|
"$flags$": 0,
|
|
@@ -10809,7 +10920,7 @@ class EdsIconThumbsUp {
|
|
|
10809
10920
|
this.class = '';
|
|
10810
10921
|
}
|
|
10811
10922
|
render() {
|
|
10812
|
-
return hAsync("span", { key: '
|
|
10923
|
+
return hAsync("span", { key: '53bc35a16795640e1fc5ac9a5ddd66015b98adb3', class: this.class, innerHTML: thumbsUp });
|
|
10813
10924
|
}
|
|
10814
10925
|
static get cmpMeta() { return {
|
|
10815
10926
|
"$flags$": 0,
|
|
@@ -10832,7 +10943,7 @@ class EdsIconTutorial {
|
|
|
10832
10943
|
this.class = '';
|
|
10833
10944
|
}
|
|
10834
10945
|
render() {
|
|
10835
|
-
return hAsync("span", { key: '
|
|
10946
|
+
return hAsync("span", { key: 'bbe35e4b8e341eb54820a661c6a6200e83fd0f3f', class: this.class, innerHTML: tutorial });
|
|
10836
10947
|
}
|
|
10837
10948
|
static get cmpMeta() { return {
|
|
10838
10949
|
"$flags$": 0,
|
|
@@ -10855,7 +10966,7 @@ class EdsIconTwitter {
|
|
|
10855
10966
|
this.class = '';
|
|
10856
10967
|
}
|
|
10857
10968
|
render() {
|
|
10858
|
-
return hAsync("span", { key: '
|
|
10969
|
+
return hAsync("span", { key: 'de551285a98e6e5340769e9d1422acb2e7bc826f', class: this.class, innerHTML: twitter });
|
|
10859
10970
|
}
|
|
10860
10971
|
static get cmpMeta() { return {
|
|
10861
10972
|
"$flags$": 0,
|
|
@@ -10878,7 +10989,7 @@ class EdsIconUnknown {
|
|
|
10878
10989
|
this.class = '';
|
|
10879
10990
|
}
|
|
10880
10991
|
render() {
|
|
10881
|
-
return hAsync("span", { key: '
|
|
10992
|
+
return hAsync("span", { key: 'c102d3ac082dab21cb23a322ded78d607ece10f5', class: this.class, innerHTML: unknown });
|
|
10882
10993
|
}
|
|
10883
10994
|
static get cmpMeta() { return {
|
|
10884
10995
|
"$flags$": 0,
|
|
@@ -10901,7 +11012,7 @@ class EdsIconUpdown {
|
|
|
10901
11012
|
this.class = '';
|
|
10902
11013
|
}
|
|
10903
11014
|
render() {
|
|
10904
|
-
return hAsync("span", { key: '
|
|
11015
|
+
return hAsync("span", { key: 'b2bf11e364727f13859be3c2ed00931ec3379d9d', class: this.class, innerHTML: upDonw });
|
|
10905
11016
|
}
|
|
10906
11017
|
static get cmpMeta() { return {
|
|
10907
11018
|
"$flags$": 0,
|
|
@@ -10924,7 +11035,7 @@ class EdsIconUser {
|
|
|
10924
11035
|
this.class = '';
|
|
10925
11036
|
}
|
|
10926
11037
|
render() {
|
|
10927
|
-
return hAsync("span", { key: '
|
|
11038
|
+
return hAsync("span", { key: '24acd317006255e7a5b29bd70b667c8ca9271f6c', class: this.class, innerHTML: user });
|
|
10928
11039
|
}
|
|
10929
11040
|
static get cmpMeta() { return {
|
|
10930
11041
|
"$flags$": 0,
|
|
@@ -10938,6 +11049,29 @@ class EdsIconUser {
|
|
|
10938
11049
|
}; }
|
|
10939
11050
|
}
|
|
10940
11051
|
|
|
11052
|
+
/**
|
|
11053
|
+
* @internal
|
|
11054
|
+
*/
|
|
11055
|
+
class EdsIconView {
|
|
11056
|
+
constructor(hostRef) {
|
|
11057
|
+
registerInstance(this, hostRef);
|
|
11058
|
+
this.class = '';
|
|
11059
|
+
}
|
|
11060
|
+
render() {
|
|
11061
|
+
return hAsync("span", { key: '652ea6ae2a82611114e71ed2d2422ad579f7ab54', class: this.class, innerHTML: view });
|
|
11062
|
+
}
|
|
11063
|
+
static get cmpMeta() { return {
|
|
11064
|
+
"$flags$": 0,
|
|
11065
|
+
"$tagName$": "eds-icon-view",
|
|
11066
|
+
"$members$": {
|
|
11067
|
+
"class": [1]
|
|
11068
|
+
},
|
|
11069
|
+
"$listeners$": undefined,
|
|
11070
|
+
"$lazyBundleId$": "-",
|
|
11071
|
+
"$attrsToReflect$": []
|
|
11072
|
+
}; }
|
|
11073
|
+
}
|
|
11074
|
+
|
|
10941
11075
|
/**
|
|
10942
11076
|
* `EdsIconWrapper` is a wrapper component for displaying icons with dynamic loading capabilities.
|
|
10943
11077
|
* It allows specifying the icon name, which is dynamically imported and rendered within the component.
|
|
@@ -11003,7 +11137,7 @@ class EdsIconYoutube {
|
|
|
11003
11137
|
this.class = '';
|
|
11004
11138
|
}
|
|
11005
11139
|
render() {
|
|
11006
|
-
return hAsync("span", { key: '
|
|
11140
|
+
return hAsync("span", { key: '6f1d0b5e073ef4d754aecb600a8578fc59950496', class: this.class, innerHTML: youtube });
|
|
11007
11141
|
}
|
|
11008
11142
|
static get cmpMeta() { return {
|
|
11009
11143
|
"$flags$": 0,
|
|
@@ -11079,10 +11213,10 @@ class EdsImg {
|
|
|
11079
11213
|
imgOpts['loading'] = 'lazy';
|
|
11080
11214
|
imgOpts['decoding'] = 'async';
|
|
11081
11215
|
}
|
|
11082
|
-
return (hAsync("div", { key: '
|
|
11216
|
+
return (hAsync("div", { key: '605bff5657ca79678517527a9462b31608e5af7a', class: {
|
|
11083
11217
|
'items-center justify-center': true,
|
|
11084
11218
|
'effect-bg-pattern': this.lazyload && this.showBg
|
|
11085
|
-
} }, hAsync("picture", { key: '
|
|
11219
|
+
} }, 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: {
|
|
11086
11220
|
'effect-opacity object-cover object-center': true,
|
|
11087
11221
|
'opacity-100': this.loaded,
|
|
11088
11222
|
'opacity-0': !this.loaded
|
|
@@ -11164,7 +11298,7 @@ class EdsInput {
|
|
|
11164
11298
|
render() {
|
|
11165
11299
|
const withIcon = !!this.icon;
|
|
11166
11300
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
|
|
11167
|
-
return (hAsync("div", { key: '
|
|
11301
|
+
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'
|
|
11168
11302
|
? {
|
|
11169
11303
|
min: this.min,
|
|
11170
11304
|
max: this.max,
|
|
@@ -11175,7 +11309,7 @@ class EdsInput {
|
|
|
11175
11309
|
input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
|
|
11176
11310
|
${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
|
|
11177
11311
|
${this.error ? 'input-error' : ''}
|
|
11178
|
-
`, "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: '
|
|
11312
|
+
`, "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 }))));
|
|
11179
11313
|
}
|
|
11180
11314
|
get el() { return getElement(this); }
|
|
11181
11315
|
static get watchers() { return {
|
|
@@ -11314,7 +11448,7 @@ class EdsInputField {
|
|
|
11314
11448
|
}
|
|
11315
11449
|
render() {
|
|
11316
11450
|
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 } : {}));
|
|
11317
|
-
return (hAsync("div", { key: '
|
|
11451
|
+
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' ? ((() => {
|
|
11318
11452
|
var _a, _b, _c;
|
|
11319
11453
|
const rangeProps = {
|
|
11320
11454
|
name: inputOpts.name,
|
|
@@ -11327,12 +11461,13 @@ class EdsInputField {
|
|
|
11327
11461
|
const opt = this.parsedOptions;
|
|
11328
11462
|
const numberValue = typeof this.value === 'string' ? parseFloat(this.value) : this.value || 0;
|
|
11329
11463
|
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 })));
|
|
11330
|
-
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("div", { key: '
|
|
11464
|
+
})()) : (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 }))));
|
|
11331
11465
|
}
|
|
11466
|
+
static get delegatesFocus() { return true; }
|
|
11332
11467
|
get hostEl() { return getElement(this); }
|
|
11333
11468
|
static get style() { return EdsInputFieldStyle0; }
|
|
11334
11469
|
static get cmpMeta() { return {
|
|
11335
|
-
"$flags$":
|
|
11470
|
+
"$flags$": 25,
|
|
11336
11471
|
"$tagName$": "eds-input-field",
|
|
11337
11472
|
"$members$": {
|
|
11338
11473
|
"name": [1],
|
|
@@ -11378,7 +11513,7 @@ class EdsInputFooter {
|
|
|
11378
11513
|
this.link = undefined;
|
|
11379
11514
|
}
|
|
11380
11515
|
render() {
|
|
11381
|
-
return (hAsync("div", { key: '
|
|
11516
|
+
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))));
|
|
11382
11517
|
}
|
|
11383
11518
|
static get style() { return EdsInputFooterStyle0; }
|
|
11384
11519
|
static get cmpMeta() { return {
|
|
@@ -11409,7 +11544,7 @@ class EdsInputLabel {
|
|
|
11409
11544
|
this.disabled = false;
|
|
11410
11545
|
}
|
|
11411
11546
|
render() {
|
|
11412
|
-
return (hAsync("label", { key: '
|
|
11547
|
+
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")))));
|
|
11413
11548
|
}
|
|
11414
11549
|
static get style() { return EdsInputLabelStyle0; }
|
|
11415
11550
|
static get cmpMeta() { return {
|
|
@@ -11475,7 +11610,7 @@ class EdsInputRange {
|
|
|
11475
11610
|
return this.inputElement;
|
|
11476
11611
|
}
|
|
11477
11612
|
render() {
|
|
11478
|
-
return (hAsync("div", { key: '
|
|
11613
|
+
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)));
|
|
11479
11614
|
}
|
|
11480
11615
|
get el() { return getElement(this); }
|
|
11481
11616
|
static get watchers() { return {
|
|
@@ -11570,7 +11705,7 @@ class EdsInputSearch {
|
|
|
11570
11705
|
return this.inputElement;
|
|
11571
11706
|
}
|
|
11572
11707
|
render() {
|
|
11573
|
-
return (hAsync("div", { key: '
|
|
11708
|
+
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}`,
|
|
11574
11709
|
//onInput={this.onInput}
|
|
11575
11710
|
onChange: this.onChange })));
|
|
11576
11711
|
}
|
|
@@ -11624,12 +11759,12 @@ class EdsInputSelect {
|
|
|
11624
11759
|
const selectId = this.inputId || this.name;
|
|
11625
11760
|
const placeholderText = this.placeholder || `Pick from the list`;
|
|
11626
11761
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : undefined;
|
|
11627
|
-
return (hAsync("div", { key: '
|
|
11762
|
+
return (hAsync("div", { key: 'f154a5f34a0d09cf6a02e24f13ed9af46532c76c', class: "relative" }, hAsync("select", { key: '0982936337bcbec3e2b81f7edc1436506841c782', id: selectId, name: this.name, class: {
|
|
11628
11763
|
input: true,
|
|
11629
11764
|
'input-error': this.error,
|
|
11630
11765
|
'px-4': true,
|
|
11631
11766
|
'py-2': true
|
|
11632
|
-
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '
|
|
11767
|
+
}, "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" }))));
|
|
11633
11768
|
}
|
|
11634
11769
|
static get cmpMeta() { return {
|
|
11635
11770
|
"$flags$": 0,
|
|
@@ -11834,12 +11969,34 @@ class EdsLink {
|
|
|
11834
11969
|
action: 'click'
|
|
11835
11970
|
});
|
|
11836
11971
|
}
|
|
11972
|
+
handleKeyDown(event) {
|
|
11973
|
+
if (this.disabled) {
|
|
11974
|
+
return;
|
|
11975
|
+
}
|
|
11976
|
+
// Handle Enter and Space keys for activation
|
|
11977
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
11978
|
+
event.preventDefault();
|
|
11979
|
+
this.handleClick(event);
|
|
11980
|
+
// For actual navigation, trigger the native link behavior
|
|
11981
|
+
if (this.url && !this.disabled) {
|
|
11982
|
+
if (this.external) {
|
|
11983
|
+
window.open(this.url, '_blank', 'noopener,noreferrer');
|
|
11984
|
+
}
|
|
11985
|
+
else {
|
|
11986
|
+
window.location.href = this.url;
|
|
11987
|
+
}
|
|
11988
|
+
}
|
|
11989
|
+
}
|
|
11990
|
+
}
|
|
11837
11991
|
getLinkSize() {
|
|
11992
|
+
if (this.intent === 'underline') {
|
|
11993
|
+
return 'underline';
|
|
11994
|
+
}
|
|
11838
11995
|
return this.size;
|
|
11839
11996
|
}
|
|
11840
11997
|
renderLeftIcon() {
|
|
11841
11998
|
if (this.icon && this.iconPos === 'left') {
|
|
11842
|
-
return (hAsync("span", { class:
|
|
11999
|
+
return (hAsync("span", { class: "flex" }, hAsync("eds-icon-wrapper", { "aria-hidden": "true", class: `
|
|
11843
12000
|
flex inline-flex items-center justify-center
|
|
11844
12001
|
${this.size === 'large' ? 'h-24 w-24' : 'h-20 w-20'}
|
|
11845
12002
|
`, icon: this.icon })));
|
|
@@ -11848,7 +12005,7 @@ class EdsLink {
|
|
|
11848
12005
|
}
|
|
11849
12006
|
renderRightIcon() {
|
|
11850
12007
|
if (this.icon && this.iconPos === 'right') {
|
|
11851
|
-
return (hAsync("span", { class:
|
|
12008
|
+
return (hAsync("span", { class: "flex" }, hAsync("eds-icon-wrapper", { "aria-hidden": "true", class: `
|
|
11852
12009
|
flex inline-flex items-center justify-center
|
|
11853
12010
|
${this.size === 'large' ? 'h-24 w-24' : 'h-20 w-20'}
|
|
11854
12011
|
`, icon: this.icon })));
|
|
@@ -11856,8 +12013,6 @@ class EdsLink {
|
|
|
11856
12013
|
return null;
|
|
11857
12014
|
}
|
|
11858
12015
|
render() {
|
|
11859
|
-
// If the link is disabled, use a <span>; otherwise, use an <a> element.
|
|
11860
|
-
const ComponentType = this.disabled ? 'span' : 'a';
|
|
11861
12016
|
const classes = linkStyles({
|
|
11862
12017
|
intent: this.intent,
|
|
11863
12018
|
size: this.getLinkSize(),
|
|
@@ -11865,12 +12020,12 @@ class EdsLink {
|
|
|
11865
12020
|
isActive: this.current,
|
|
11866
12021
|
hasIcon: !!this.icon
|
|
11867
12022
|
});
|
|
11868
|
-
|
|
11869
|
-
const
|
|
12023
|
+
const isInteractive = !this.disabled;
|
|
12024
|
+
const isIconOnly = !this.label || (this.hideLabelOnSmallScreen && this.icon);
|
|
11870
12025
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
11871
12026
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
11872
12027
|
: '';
|
|
11873
|
-
return (hAsync(
|
|
12028
|
+
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())));
|
|
11874
12029
|
}
|
|
11875
12030
|
get el() { return getElement(this); }
|
|
11876
12031
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -11978,7 +12133,7 @@ class EdsLogo {
|
|
|
11978
12133
|
}
|
|
11979
12134
|
render() {
|
|
11980
12135
|
const logoContent = this.getLogo();
|
|
11981
|
-
return (hAsync("a", { key: '
|
|
12136
|
+
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 })));
|
|
11982
12137
|
}
|
|
11983
12138
|
get el() { return getElement(this); }
|
|
11984
12139
|
static get style() { return EdsLogoStyle0; }
|
|
@@ -12253,9 +12408,9 @@ class EdsModal {
|
|
|
12253
12408
|
render() {
|
|
12254
12409
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
12255
12410
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
12256
|
-
return (hAsync("div", { key: '
|
|
12411
|
+
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
|
|
12257
12412
|
,
|
|
12258
|
-
onClick: () => this.close() })), hAsync("div", { key: '
|
|
12413
|
+
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' })))));
|
|
12259
12414
|
}
|
|
12260
12415
|
get el() { return getElement(this); }
|
|
12261
12416
|
static get style() { return EdsModalStyle0; }
|
|
@@ -12278,7 +12433,99 @@ class EdsModal {
|
|
|
12278
12433
|
}; }
|
|
12279
12434
|
}
|
|
12280
12435
|
|
|
12281
|
-
const
|
|
12436
|
+
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)}";
|
|
12437
|
+
var EdsNpsStyle0 = edsNpsCss;
|
|
12438
|
+
|
|
12439
|
+
class EdsNps {
|
|
12440
|
+
constructor(hostRef) {
|
|
12441
|
+
registerInstance(this, hostRef);
|
|
12442
|
+
this.nps = createEvent(this, "nps", 7);
|
|
12443
|
+
this.min = 0;
|
|
12444
|
+
this.max = 10;
|
|
12445
|
+
this.question = undefined;
|
|
12446
|
+
this.leftLabel = undefined;
|
|
12447
|
+
this.rightLabel = undefined;
|
|
12448
|
+
this.selectedValue = null;
|
|
12449
|
+
}
|
|
12450
|
+
handleClick(value) {
|
|
12451
|
+
this.selectedValue = value;
|
|
12452
|
+
this.nps.emit(value);
|
|
12453
|
+
}
|
|
12454
|
+
handleKeyNav(e) {
|
|
12455
|
+
const radios = Array.from(this.el.shadowRoot.querySelectorAll('eds-button'));
|
|
12456
|
+
const currentIndex = radios.findIndex((r) => r.tabIndex === 0);
|
|
12457
|
+
switch (e.key) {
|
|
12458
|
+
case 'ArrowRight':
|
|
12459
|
+
case 'ArrowLeft': {
|
|
12460
|
+
e.preventDefault();
|
|
12461
|
+
const delta = e.key === 'ArrowRight' ? 1 : -1;
|
|
12462
|
+
const nextIndex = Math.min(this.max, Math.max(0, currentIndex + delta));
|
|
12463
|
+
this.activateRadio(radios, nextIndex);
|
|
12464
|
+
break;
|
|
12465
|
+
}
|
|
12466
|
+
case 'Home': {
|
|
12467
|
+
e.preventDefault();
|
|
12468
|
+
this.activateRadio(radios, 0);
|
|
12469
|
+
break;
|
|
12470
|
+
}
|
|
12471
|
+
case 'End': {
|
|
12472
|
+
e.preventDefault();
|
|
12473
|
+
this.activateRadio(radios, this.max);
|
|
12474
|
+
break;
|
|
12475
|
+
}
|
|
12476
|
+
case 'Enter':
|
|
12477
|
+
case ' ': {
|
|
12478
|
+
e.preventDefault();
|
|
12479
|
+
if (currentIndex >= 0) {
|
|
12480
|
+
this.handleClick(this.min + currentIndex);
|
|
12481
|
+
}
|
|
12482
|
+
break;
|
|
12483
|
+
}
|
|
12484
|
+
case 'Escape': {
|
|
12485
|
+
e.preventDefault();
|
|
12486
|
+
if (currentIndex >= 0) {
|
|
12487
|
+
radios[currentIndex].blur();
|
|
12488
|
+
}
|
|
12489
|
+
break;
|
|
12490
|
+
}
|
|
12491
|
+
default:
|
|
12492
|
+
return;
|
|
12493
|
+
}
|
|
12494
|
+
}
|
|
12495
|
+
activateRadio(radios, index) {
|
|
12496
|
+
const target = radios[index];
|
|
12497
|
+
const value = this.min + index;
|
|
12498
|
+
this.handleClick(value);
|
|
12499
|
+
target.focus();
|
|
12500
|
+
}
|
|
12501
|
+
render() {
|
|
12502
|
+
const count = this.max - this.min + 1;
|
|
12503
|
+
const fallback = 0;
|
|
12504
|
+
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) => {
|
|
12505
|
+
const val = this.min + i;
|
|
12506
|
+
const isSelected = val === this.selectedValue;
|
|
12507
|
+
const tabIndex = this.selectedValue === null ? (i === fallback ? 0 : -1) : isSelected ? 0 : -1;
|
|
12508
|
+
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) })));
|
|
12509
|
+
})), 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))));
|
|
12510
|
+
}
|
|
12511
|
+
get el() { return getElement(this); }
|
|
12512
|
+
static get style() { return EdsNpsStyle0; }
|
|
12513
|
+
static get cmpMeta() { return {
|
|
12514
|
+
"$flags$": 9,
|
|
12515
|
+
"$tagName$": "eds-nps",
|
|
12516
|
+
"$members$": {
|
|
12517
|
+
"question": [1],
|
|
12518
|
+
"leftLabel": [1, "left-label"],
|
|
12519
|
+
"rightLabel": [1, "right-label"],
|
|
12520
|
+
"selectedValue": [32]
|
|
12521
|
+
},
|
|
12522
|
+
"$listeners$": undefined,
|
|
12523
|
+
"$lazyBundleId$": "-",
|
|
12524
|
+
"$attrsToReflect$": []
|
|
12525
|
+
}; }
|
|
12526
|
+
}
|
|
12527
|
+
|
|
12528
|
+
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}}";
|
|
12282
12529
|
var EdsPaginationStyle0 = edsPaginationCss;
|
|
12283
12530
|
|
|
12284
12531
|
/**
|
|
@@ -12288,23 +12535,73 @@ var EdsPaginationStyle0 = edsPaginationCss;
|
|
|
12288
12535
|
* - Supports two display modes: "default" (shows numbered page links) and "navigator" (shows Previous/Next buttons).
|
|
12289
12536
|
* - Emits a `page` event when the page is changed in "default" mode.
|
|
12290
12537
|
* - Automatically generates pagination links based on the `currentPage` and `lastPage`.
|
|
12538
|
+
* - Full keyboard navigation support with arrow keys, Home, End
|
|
12539
|
+
* - Proper ARIA labels and screen reader support
|
|
12291
12540
|
*
|
|
12292
12541
|
* This component is designed for flexible and accessible pagination controls, suitable for various display needs.
|
|
12293
12542
|
*/
|
|
12294
12543
|
class EdsPagination {
|
|
12295
12544
|
constructor(hostRef) {
|
|
12296
12545
|
registerInstance(this, hostRef);
|
|
12546
|
+
/**
|
|
12547
|
+
* Handles keyboard navigation within the pagination
|
|
12548
|
+
*/
|
|
12549
|
+
this.handleKeyDown = (e) => {
|
|
12550
|
+
if (this.mode !== 'default' || !this.useButtons) {
|
|
12551
|
+
return;
|
|
12552
|
+
}
|
|
12553
|
+
const navigableItems = this.getNavigableItems();
|
|
12554
|
+
if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') {
|
|
12555
|
+
e.preventDefault();
|
|
12556
|
+
const increment = e.key === 'ArrowRight' ? 1 : -1;
|
|
12557
|
+
let currentIndex = this.focusedIndex;
|
|
12558
|
+
// If no item is focused, start from current page or first item
|
|
12559
|
+
if (currentIndex === -1) {
|
|
12560
|
+
const currentPageIndex = navigableItems.findIndex((item) => item.type === 'page' && item.page === this.currentPage);
|
|
12561
|
+
currentIndex = currentPageIndex !== -1 ? currentPageIndex : 0;
|
|
12562
|
+
}
|
|
12563
|
+
let newIndex = currentIndex + increment;
|
|
12564
|
+
// Wrap around navigation
|
|
12565
|
+
if (newIndex >= navigableItems.length) {
|
|
12566
|
+
newIndex = 0;
|
|
12567
|
+
}
|
|
12568
|
+
else if (newIndex < 0) {
|
|
12569
|
+
newIndex = navigableItems.length - 1;
|
|
12570
|
+
}
|
|
12571
|
+
this.focusedIndex = newIndex;
|
|
12572
|
+
this.focusPaginationItem(newIndex);
|
|
12573
|
+
}
|
|
12574
|
+
else if (e.key === 'Home') {
|
|
12575
|
+
e.preventDefault();
|
|
12576
|
+
this.focusedIndex = 0;
|
|
12577
|
+
this.focusPaginationItem(0);
|
|
12578
|
+
}
|
|
12579
|
+
else if (e.key === 'End') {
|
|
12580
|
+
e.preventDefault();
|
|
12581
|
+
const lastIndex = navigableItems.length - 1;
|
|
12582
|
+
this.focusedIndex = lastIndex;
|
|
12583
|
+
this.focusPaginationItem(lastIndex);
|
|
12584
|
+
}
|
|
12585
|
+
};
|
|
12586
|
+
/**
|
|
12587
|
+
* Handles focus events for pagination items
|
|
12588
|
+
*/
|
|
12589
|
+
this.handleItemFocus = (index) => {
|
|
12590
|
+
this.focusedIndex = index;
|
|
12591
|
+
};
|
|
12297
12592
|
this.currentPage = undefined;
|
|
12298
12593
|
this.lastPage = undefined;
|
|
12299
12594
|
this.perPage = 10;
|
|
12300
12595
|
this.total = 0;
|
|
12301
12596
|
this.url = '';
|
|
12302
12597
|
this.mode = 'default';
|
|
12598
|
+
this.useButtons = true;
|
|
12303
12599
|
this.prevLabel = 'Prev';
|
|
12304
12600
|
this.nextLabel = 'Next';
|
|
12305
12601
|
this.prevUrl = '';
|
|
12306
12602
|
this.nextUrl = '';
|
|
12307
12603
|
this.links = [];
|
|
12604
|
+
this.focusedIndex = -1;
|
|
12308
12605
|
}
|
|
12309
12606
|
/** Lifecycle hook to generate pagination links on component load */
|
|
12310
12607
|
componentWillLoad() {
|
|
@@ -12313,24 +12610,17 @@ class EdsPagination {
|
|
|
12313
12610
|
}
|
|
12314
12611
|
}
|
|
12315
12612
|
componentDidLoad() {
|
|
12316
|
-
//
|
|
12317
|
-
|
|
12318
|
-
|
|
12319
|
-
|
|
12320
|
-
|
|
12321
|
-
|
|
12322
|
-
|
|
12323
|
-
this.emitContext(links[0]);
|
|
12324
|
-
|
|
12325
|
-
// Emit context for the last link, if it's different from the first
|
|
12326
|
-
if (links.length > 1) {
|
|
12327
|
-
this.emitContext(links[links.length - 1]);
|
|
12328
|
-
}
|
|
12329
|
-
}*/
|
|
12613
|
+
// Only emit context for links, not buttons
|
|
12614
|
+
if (!this.useButtons) {
|
|
12615
|
+
const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
|
|
12616
|
+
links.forEach((lnk) => {
|
|
12617
|
+
this.emitContext(lnk);
|
|
12618
|
+
});
|
|
12619
|
+
}
|
|
12330
12620
|
}
|
|
12331
12621
|
/**
|
|
12332
12622
|
* Emits a custom event called `parentContext` for a given link element.
|
|
12333
|
-
* This event provides context information about the
|
|
12623
|
+
* This event provides context information about the pagination component.
|
|
12334
12624
|
*
|
|
12335
12625
|
* @param linkElement - The link element to which the event will be dispatched.
|
|
12336
12626
|
*/
|
|
@@ -12348,6 +12638,34 @@ class EdsPagination {
|
|
|
12348
12638
|
this.generateLinks();
|
|
12349
12639
|
}
|
|
12350
12640
|
}
|
|
12641
|
+
/**
|
|
12642
|
+
* Gets all navigable pagination items for keyboard navigation
|
|
12643
|
+
*/
|
|
12644
|
+
getNavigableItems() {
|
|
12645
|
+
const items = [];
|
|
12646
|
+
// Previous button
|
|
12647
|
+
items.push({ type: 'prev', disabled: this.isFirstPage() });
|
|
12648
|
+
// Page numbers
|
|
12649
|
+
this.links.forEach((link) => {
|
|
12650
|
+
if (typeof link === 'object') {
|
|
12651
|
+
items.push({ type: 'page', page: parseInt(link.label), disabled: false });
|
|
12652
|
+
}
|
|
12653
|
+
});
|
|
12654
|
+
// Next button
|
|
12655
|
+
items.push({ type: 'next', disabled: this.isLastPage() });
|
|
12656
|
+
return items.filter((item) => !item.disabled);
|
|
12657
|
+
}
|
|
12658
|
+
/**
|
|
12659
|
+
* Focuses a specific pagination item by index
|
|
12660
|
+
*/
|
|
12661
|
+
focusPaginationItem(index) {
|
|
12662
|
+
var _a;
|
|
12663
|
+
const buttons = (_a = this.hostEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.pagination-button');
|
|
12664
|
+
const targetButton = buttons === null || buttons === void 0 ? void 0 : buttons[index];
|
|
12665
|
+
if (targetButton) {
|
|
12666
|
+
targetButton.focus();
|
|
12667
|
+
}
|
|
12668
|
+
}
|
|
12351
12669
|
/**
|
|
12352
12670
|
* Checks if the current page is the first page
|
|
12353
12671
|
* @returns {boolean} - true if current page is the first page
|
|
@@ -12370,7 +12688,7 @@ class EdsPagination {
|
|
|
12370
12688
|
generateLink(page) {
|
|
12371
12689
|
const urlHasQuery = this.url.includes('?');
|
|
12372
12690
|
return {
|
|
12373
|
-
ariaLabel: `
|
|
12691
|
+
ariaLabel: `Go to page ${page}`,
|
|
12374
12692
|
url: `${this.url}${urlHasQuery ? '&' : '?'}page=${page}`,
|
|
12375
12693
|
label: page.toString(),
|
|
12376
12694
|
current: this.currentPage === page,
|
|
@@ -12390,7 +12708,6 @@ class EdsPagination {
|
|
|
12390
12708
|
* Creates a pagination range based on delta, current, and total pages
|
|
12391
12709
|
* @param {number} current - Current page number
|
|
12392
12710
|
* @param {number} total - Total number of pages
|
|
12393
|
-
* @param {number} delta - Range of pages to display around the current page
|
|
12394
12711
|
* @returns {(number | string)[]} - Range of page numbers or ellipses
|
|
12395
12712
|
*/
|
|
12396
12713
|
getPaginationGenerator(current, total) {
|
|
@@ -12405,7 +12722,7 @@ class EdsPagination {
|
|
|
12405
12722
|
else {
|
|
12406
12723
|
// Always show the first page
|
|
12407
12724
|
range.push(1);
|
|
12408
|
-
// Add ellipsis if there
|
|
12725
|
+
// Add ellipsis if there's a gap between the first page and the current range start
|
|
12409
12726
|
if (current - delta > 2) {
|
|
12410
12727
|
range.push('...');
|
|
12411
12728
|
}
|
|
@@ -12413,7 +12730,7 @@ class EdsPagination {
|
|
|
12413
12730
|
for (let i = Math.max(2, current - delta); i <= Math.min(total - 1, current + delta); i++) {
|
|
12414
12731
|
range.push(i);
|
|
12415
12732
|
}
|
|
12416
|
-
// Add ellipsis if there
|
|
12733
|
+
// Add ellipsis if there's a gap between the current range end and the last page
|
|
12417
12734
|
if (current + delta < total - 1) {
|
|
12418
12735
|
range.push('...');
|
|
12419
12736
|
}
|
|
@@ -12428,9 +12745,11 @@ class EdsPagination {
|
|
|
12428
12745
|
*/
|
|
12429
12746
|
pageResults() {
|
|
12430
12747
|
if (this.total > 0) {
|
|
12748
|
+
const start = this.perPage * ((this.currentPage || 1) - 1) + 1;
|
|
12749
|
+
const end = Math.min(this.perPage * (this.currentPage || 1), this.total);
|
|
12431
12750
|
return this.total > this.perPage
|
|
12432
|
-
?
|
|
12433
|
-
:
|
|
12751
|
+
? `Showing ${start} to ${end} of ${this.total} results`
|
|
12752
|
+
: `Showing ${this.total} result${this.total !== 1 ? 's' : ''}`;
|
|
12434
12753
|
}
|
|
12435
12754
|
return '';
|
|
12436
12755
|
}
|
|
@@ -12443,7 +12762,9 @@ class EdsPagination {
|
|
|
12443
12762
|
if (this.mode === 'navigator') {
|
|
12444
12763
|
return; // No page clicking logic for navigator mode
|
|
12445
12764
|
}
|
|
12446
|
-
|
|
12765
|
+
if (this.useButtons) {
|
|
12766
|
+
event.preventDefault(); // Prevent default for buttons
|
|
12767
|
+
}
|
|
12447
12768
|
if (newPage !== this.currentPage) {
|
|
12448
12769
|
this.links = this.links.map((link) => typeof link === 'object' ? Object.assign(Object.assign({}, link), { current: parseInt(link.label) === newPage }) : link);
|
|
12449
12770
|
const pageChangeEvent = new CustomEvent('page', {
|
|
@@ -12456,38 +12777,25 @@ class EdsPagination {
|
|
|
12456
12777
|
}
|
|
12457
12778
|
}
|
|
12458
12779
|
render() {
|
|
12459
|
-
|
|
12460
|
-
|
|
12780
|
+
const navigableIndex = -1; // Track index for keyboard navigation
|
|
12781
|
+
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) => {
|
|
12782
|
+
if (this.mode === 'default' && !this.isFirstPage()) {
|
|
12783
|
+
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
12784
|
+
}
|
|
12785
|
+
} }))) : (hAsync("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
|
|
12786
|
+
? this.prevUrl || '#'
|
|
12461
12787
|
: this.isFirstPage()
|
|
12462
12788
|
? '#'
|
|
12463
|
-
: this.generateLink(this.currentPage - 1).url, disabled: this.mode === 'navigator'
|
|
12464
|
-
|
|
12465
|
-
|
|
12466
|
-
|
|
12467
|
-
if (this.isFirstPage()) {
|
|
12468
|
-
event.preventDefault(); // Prevent click if disabled
|
|
12469
|
-
}
|
|
12470
|
-
else {
|
|
12471
|
-
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
12472
|
-
}
|
|
12789
|
+
: 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' &&
|
|
12790
|
+
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) => {
|
|
12791
|
+
if (this.mode === 'default' && !this.isLastPage()) {
|
|
12792
|
+
this.handlePageClick(event, (this.currentPage || 1) + 1);
|
|
12473
12793
|
}
|
|
12474
|
-
} })), this.mode === '
|
|
12475
|
-
|
|
12476
|
-
? this.nextUrl || '#' // Use nextUrl if provided, otherwise disable with '#'
|
|
12794
|
+
} }))) : (hAsync("eds-link", { label: this.nextLabel, url: this.mode === 'navigator'
|
|
12795
|
+
? this.nextUrl || '#'
|
|
12477
12796
|
: this.isLastPage()
|
|
12478
12797
|
? '#'
|
|
12479
|
-
: this.generateLink(this.currentPage + 1).url, disabled: this.mode === 'navigator'
|
|
12480
|
-
? !this.nextUrl // Disable if nextUrl is not provided
|
|
12481
|
-
: 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) => {
|
|
12482
|
-
if (this.mode === 'default') {
|
|
12483
|
-
if (this.isLastPage()) {
|
|
12484
|
-
event.preventDefault(); // Prevent click if disabled
|
|
12485
|
-
}
|
|
12486
|
-
else {
|
|
12487
|
-
this.handlePageClick(event, (this.currentPage || 1) + 1);
|
|
12488
|
-
}
|
|
12489
|
-
}
|
|
12490
|
-
} }))))) : null));
|
|
12798
|
+
: 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));
|
|
12491
12799
|
}
|
|
12492
12800
|
get hostEl() { return getElement(this); }
|
|
12493
12801
|
static get watchers() { return {
|
|
@@ -12505,11 +12813,13 @@ class EdsPagination {
|
|
|
12505
12813
|
"total": [2],
|
|
12506
12814
|
"url": [1],
|
|
12507
12815
|
"mode": [1],
|
|
12816
|
+
"useButtons": [4, "use-buttons"],
|
|
12508
12817
|
"prevLabel": [1, "prev-label"],
|
|
12509
12818
|
"nextLabel": [1, "next-label"],
|
|
12510
12819
|
"prevUrl": [1, "prev-url"],
|
|
12511
12820
|
"nextUrl": [1, "next-url"],
|
|
12512
|
-
"links": [32]
|
|
12821
|
+
"links": [32],
|
|
12822
|
+
"focusedIndex": [32]
|
|
12513
12823
|
},
|
|
12514
12824
|
"$listeners$": undefined,
|
|
12515
12825
|
"$lazyBundleId$": "-",
|
|
@@ -12675,7 +12985,7 @@ class EdsProgressBar {
|
|
|
12675
12985
|
]
|
|
12676
12986
|
.filter(Boolean)
|
|
12677
12987
|
.join(' ');
|
|
12678
|
-
return (hAsync("div", { key: '
|
|
12988
|
+
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, "%"))));
|
|
12679
12989
|
}
|
|
12680
12990
|
static get style() { return EdsProgressBarStyle0; }
|
|
12681
12991
|
static get cmpMeta() { return {
|
|
@@ -12699,6 +13009,7 @@ class EdsRating {
|
|
|
12699
13009
|
constructor(hostRef) {
|
|
12700
13010
|
registerInstance(this, hostRef);
|
|
12701
13011
|
this.rating = createEvent(this, "rating", 7);
|
|
13012
|
+
this.buttonRefs = [];
|
|
12702
13013
|
this.ratingType = 'star';
|
|
12703
13014
|
this.ratingCount = 5;
|
|
12704
13015
|
this.selectedRating = 0;
|
|
@@ -12732,16 +13043,37 @@ class EdsRating {
|
|
|
12732
13043
|
* Handles the click event on a star.
|
|
12733
13044
|
* @param rating - The selected rating value.
|
|
12734
13045
|
*/
|
|
12735
|
-
|
|
13046
|
+
onSelect(rating) {
|
|
12736
13047
|
this.selectedRating = rating;
|
|
12737
13048
|
this.rating.emit(rating);
|
|
13049
|
+
setTimeout(() => {
|
|
13050
|
+
const btn = this.buttonRefs[rating - 1];
|
|
13051
|
+
btn === null || btn === void 0 ? void 0 : btn.focus();
|
|
13052
|
+
}, 0);
|
|
13053
|
+
}
|
|
13054
|
+
handleKeyNav(e) {
|
|
13055
|
+
const { key } = e;
|
|
13056
|
+
if (!['ArrowRight', 'ArrowLeft', 'ArrowDown', 'ArrowUp'].includes(key)) {
|
|
13057
|
+
return;
|
|
13058
|
+
}
|
|
13059
|
+
e.preventDefault();
|
|
13060
|
+
const increment = key === 'ArrowRight' || key === 'ArrowDown' ? 1 : -1;
|
|
13061
|
+
let next = (this.selectedRating || 1) + increment;
|
|
13062
|
+
if (next > this.ratingCount) {
|
|
13063
|
+
next = 1;
|
|
13064
|
+
}
|
|
13065
|
+
if (next < 1) {
|
|
13066
|
+
next = this.ratingCount;
|
|
13067
|
+
}
|
|
13068
|
+
this.onSelect(next);
|
|
12738
13069
|
}
|
|
12739
13070
|
render() {
|
|
12740
|
-
return (hAsync("div", { key: '
|
|
13071
|
+
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) => {
|
|
12741
13072
|
const starRating = index + 1;
|
|
12742
13073
|
const isSelected = starRating <= this.selectedRating;
|
|
12743
13074
|
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
12744
|
-
|
|
13075
|
+
const checked = this.selectedRating === starRating;
|
|
13076
|
+
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
|
|
12745
13077
|
}));
|
|
12746
13078
|
})));
|
|
12747
13079
|
}
|
|
@@ -12786,7 +13118,7 @@ class EdsSectionCore {
|
|
|
12786
13118
|
}
|
|
12787
13119
|
render() {
|
|
12788
13120
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
12789
|
-
return (hAsync(TagType, { key: '
|
|
13121
|
+
return (hAsync(TagType, { key: 'b77b5af1c6f3acbc2696a9608b55199ed4110d71' }, hAsync("eds-section-heading", { key: '464dd4c67d69d1ef3ed1d932081c3195a2b51503', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: 'b5dbd4f55aee2df3bcbc44e21a134544ffd733f7' })));
|
|
12790
13122
|
}
|
|
12791
13123
|
static get style() { return EdsSectionCoreStyle0; }
|
|
12792
13124
|
static get cmpMeta() { return {
|
|
@@ -12841,12 +13173,12 @@ class EdsSectionHeading {
|
|
|
12841
13173
|
render() {
|
|
12842
13174
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
12843
13175
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
12844
|
-
return (hAsync(TagType, { key: '
|
|
13176
|
+
return (hAsync(TagType, { key: '4ae69ea354156a0e35a8884a63d7556ead8ada24', class: {
|
|
12845
13177
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
12846
13178
|
container: this.withContainer,
|
|
12847
13179
|
'pt-48': this.spacingLarge,
|
|
12848
13180
|
'pt-28': !this.spacingLarge
|
|
12849
|
-
} }, hAsync(HeadingTag, { key: '
|
|
13181
|
+
} }, hAsync(HeadingTag, { key: 'a3549fb733687c3ff31f17bdc362275eb0b29e31', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
12850
13182
|
}
|
|
12851
13183
|
static get cmpMeta() { return {
|
|
12852
13184
|
"$flags$": 0,
|
|
@@ -12922,7 +13254,7 @@ class EdsSocialNetworks {
|
|
|
12922
13254
|
* @returns {JSX.Element} The rendered JSX for the component.
|
|
12923
13255
|
*/
|
|
12924
13256
|
render() {
|
|
12925
|
-
return (hAsync("div", { key: '
|
|
13257
|
+
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" })))))));
|
|
12926
13258
|
}
|
|
12927
13259
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
12928
13260
|
static get cmpMeta() { return {
|
|
@@ -13013,7 +13345,7 @@ class EdsSpinner {
|
|
|
13013
13345
|
alignItems: 'center',
|
|
13014
13346
|
justifyContent: 'center'
|
|
13015
13347
|
};
|
|
13016
|
-
return (hAsync(Host, { key: '
|
|
13348
|
+
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))));
|
|
13017
13349
|
}
|
|
13018
13350
|
static get style() { return EdsSpinnerStyle0; }
|
|
13019
13351
|
static get cmpMeta() { return {
|
|
@@ -13305,7 +13637,7 @@ class EdsStepsV2 {
|
|
|
13305
13637
|
}; }
|
|
13306
13638
|
}
|
|
13307
13639
|
|
|
13308
|
-
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
|
|
13640
|
+
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)}";
|
|
13309
13641
|
var EdsSwitchStyle0 = edsSwitchCss;
|
|
13310
13642
|
|
|
13311
13643
|
class EdsSwitch {
|
|
@@ -13325,19 +13657,41 @@ class EdsSwitch {
|
|
|
13325
13657
|
action: 'checked'
|
|
13326
13658
|
});
|
|
13327
13659
|
};
|
|
13660
|
+
this.handleKeyDown = (e) => {
|
|
13661
|
+
if (this.disabled) {
|
|
13662
|
+
return;
|
|
13663
|
+
}
|
|
13664
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
13665
|
+
e.preventDefault();
|
|
13666
|
+
this.toggleSwitch();
|
|
13667
|
+
}
|
|
13668
|
+
};
|
|
13328
13669
|
this.checked = false;
|
|
13329
13670
|
this.disabled = false;
|
|
13330
13671
|
this.labelOn = '';
|
|
13331
13672
|
this.labelOff = '';
|
|
13332
13673
|
}
|
|
13333
13674
|
render() {
|
|
13334
|
-
|
|
13335
|
-
const
|
|
13336
|
-
|
|
13675
|
+
const switchId = `switch-${Math.random().toString(36).substr(2, 9)}`;
|
|
13676
|
+
const labelledBy = [];
|
|
13677
|
+
if (this.labelOff) {
|
|
13678
|
+
labelledBy.push(`${switchId}-off`);
|
|
13679
|
+
}
|
|
13680
|
+
if (this.labelOn) {
|
|
13681
|
+
labelledBy.push(`${switchId}-on`);
|
|
13682
|
+
}
|
|
13683
|
+
const accessibleLabel = labelledBy.length === 0
|
|
13684
|
+
? this.labelOn || this.labelOff
|
|
13685
|
+
? this.checked
|
|
13686
|
+
? this.labelOn
|
|
13687
|
+
: this.labelOff
|
|
13688
|
+
: 'Toggle switch'
|
|
13689
|
+
: undefined;
|
|
13690
|
+
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: {
|
|
13337
13691
|
switch: true,
|
|
13338
13692
|
'switch--checked': this.checked,
|
|
13339
13693
|
'switch--disabled': this.disabled
|
|
13340
|
-
}, onClick: this.toggleSwitch, disabled: this.disabled }, hAsync("span", { key: '
|
|
13694
|
+
}, 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))));
|
|
13341
13695
|
}
|
|
13342
13696
|
get el() { return getElement(this); }
|
|
13343
13697
|
static get style() { return EdsSwitchStyle0; }
|
|
@@ -13363,7 +13717,6 @@ var EdsTableStyle0 = edsTableCss;
|
|
|
13363
13717
|
* `EdsTable` is a customizable data table component with support for dynamic data fetching, column configuration, pagination, and search functionality.
|
|
13364
13718
|
*
|
|
13365
13719
|
* Key Features:
|
|
13366
|
-
* - Accepts static data or fetches dynamic data from an endpoint.
|
|
13367
13720
|
* - Configurable columns with options to hide or apply text formatting (uppercase, bold, or code).
|
|
13368
13721
|
* - Pagination support with adjustable rows per page.
|
|
13369
13722
|
* - Searchable content for easier data filtering.
|
|
@@ -13377,8 +13730,33 @@ class EdsTable {
|
|
|
13377
13730
|
this.handleResize = () => {
|
|
13378
13731
|
this.updateContainerWidth();
|
|
13379
13732
|
};
|
|
13733
|
+
this.onActionKeyDown = (e) => {
|
|
13734
|
+
var _a;
|
|
13735
|
+
if (e.key !== 'ArrowRight' && e.key !== 'ArrowLeft') {
|
|
13736
|
+
return;
|
|
13737
|
+
}
|
|
13738
|
+
e.preventDefault();
|
|
13739
|
+
const currentButton = e.target;
|
|
13740
|
+
const toolbar = currentButton.closest('[role="toolbar"]');
|
|
13741
|
+
if (!toolbar) {
|
|
13742
|
+
return;
|
|
13743
|
+
}
|
|
13744
|
+
// Find all focusable action buttons in this row
|
|
13745
|
+
const actionButtons = Array.from(toolbar.querySelectorAll('eds-button'));
|
|
13746
|
+
const currentIndex = actionButtons.indexOf(currentButton);
|
|
13747
|
+
if (currentIndex === -1) {
|
|
13748
|
+
return;
|
|
13749
|
+
}
|
|
13750
|
+
let nextIndex;
|
|
13751
|
+
if (e.key === 'ArrowRight') {
|
|
13752
|
+
nextIndex = (currentIndex + 1) % actionButtons.length;
|
|
13753
|
+
}
|
|
13754
|
+
else {
|
|
13755
|
+
nextIndex = (currentIndex - 1 + actionButtons.length) % actionButtons.length;
|
|
13756
|
+
}
|
|
13757
|
+
(_a = actionButtons[nextIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
13758
|
+
};
|
|
13380
13759
|
this.data = null;
|
|
13381
|
-
this.endpoint = null;
|
|
13382
13760
|
this.config = {};
|
|
13383
13761
|
this.rowsPerPage = 10;
|
|
13384
13762
|
this.paginationEnabled = true;
|
|
@@ -13416,7 +13794,7 @@ class EdsTable {
|
|
|
13416
13794
|
componentWillLoad() {
|
|
13417
13795
|
this.parseConfig();
|
|
13418
13796
|
this.handleActionsChange();
|
|
13419
|
-
this.
|
|
13797
|
+
this.parseData();
|
|
13420
13798
|
}
|
|
13421
13799
|
componentDidLoad() {
|
|
13422
13800
|
this.updateContainerWidth();
|
|
@@ -13464,17 +13842,6 @@ class EdsTable {
|
|
|
13464
13842
|
this.parsedConfig = {};
|
|
13465
13843
|
}
|
|
13466
13844
|
}
|
|
13467
|
-
async fetchData() {
|
|
13468
|
-
try {
|
|
13469
|
-
const response = await fetch(this.endpoint);
|
|
13470
|
-
const data = await response.json();
|
|
13471
|
-
this.data = data;
|
|
13472
|
-
}
|
|
13473
|
-
catch (error) {
|
|
13474
|
-
// eslint-disable-next-line
|
|
13475
|
-
console.error('Failed to fetch data:', error);
|
|
13476
|
-
}
|
|
13477
|
-
}
|
|
13478
13845
|
setupPaginationListener() {
|
|
13479
13846
|
if (!this.shouldEnablePagination()) {
|
|
13480
13847
|
return;
|
|
@@ -13529,7 +13896,8 @@ class EdsTable {
|
|
|
13529
13896
|
const checked = !!row[boundField];
|
|
13530
13897
|
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) }));
|
|
13531
13898
|
}
|
|
13532
|
-
|
|
13899
|
+
// Let all action buttons be focusable naturally
|
|
13900
|
+
return (hAsync("eds-button", { label: act.label, icon: act.icon, pill: true, size: "small", intent: "ghost", tabIndex: 0, onClick: () => this.emitAction(act.name, row) }));
|
|
13533
13901
|
}
|
|
13534
13902
|
emitAction(actionName, row, checked) {
|
|
13535
13903
|
sendAnalytics({
|
|
@@ -13575,7 +13943,7 @@ class EdsTable {
|
|
|
13575
13943
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((currentContainerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
13576
13944
|
const paginatedRows = this.getPaginatedRows();
|
|
13577
13945
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
13578
|
-
return (hAsync("div", { key: '
|
|
13946
|
+
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) => {
|
|
13579
13947
|
var _a;
|
|
13580
13948
|
if (col === 'actions') {
|
|
13581
13949
|
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }));
|
|
@@ -13584,17 +13952,22 @@ class EdsTable {
|
|
|
13584
13952
|
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.capitalize(col)));
|
|
13585
13953
|
}
|
|
13586
13954
|
return null;
|
|
13587
|
-
}))), hAsync("tbody", { key: '
|
|
13955
|
+
}))), 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) => {
|
|
13588
13956
|
var _a;
|
|
13589
13957
|
if (col === 'actions') {
|
|
13590
|
-
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", {
|
|
13958
|
+
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: {
|
|
13959
|
+
display: 'flex',
|
|
13960
|
+
gap: '0.5rem',
|
|
13961
|
+
justifyContent: 'center',
|
|
13962
|
+
flexWrap: 'wrap'
|
|
13963
|
+
} }, this.parsedActions.map((act) => (hAsync("span", { style: { whiteSpace: 'nowrap' } }, this.renderSingleActionCell(act.name, row)))))));
|
|
13591
13964
|
}
|
|
13592
13965
|
if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
13593
13966
|
// Regular data cell
|
|
13594
13967
|
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)));
|
|
13595
13968
|
}
|
|
13596
13969
|
return null;
|
|
13597
|
-
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '
|
|
13970
|
+
}))))))), 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" })))));
|
|
13598
13971
|
}
|
|
13599
13972
|
get hostEl() { return getElement(this); }
|
|
13600
13973
|
static get watchers() { return {
|
|
@@ -13608,7 +13981,6 @@ class EdsTable {
|
|
|
13608
13981
|
"$tagName$": "eds-table",
|
|
13609
13982
|
"$members$": {
|
|
13610
13983
|
"data": [1, "table-data"],
|
|
13611
|
-
"endpoint": [1],
|
|
13612
13984
|
"config": [1],
|
|
13613
13985
|
"rowsPerPage": [2, "rows-per-page"],
|
|
13614
13986
|
"paginationEnabled": [4, "pagination-enabled"],
|
|
@@ -13633,7 +14005,7 @@ class EdsTable {
|
|
|
13633
14005
|
}; }
|
|
13634
14006
|
}
|
|
13635
14007
|
|
|
13636
|
-
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-
|
|
14008
|
+
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}}";
|
|
13637
14009
|
var EdsTabsStyle0 = edsTabsCss;
|
|
13638
14010
|
|
|
13639
14011
|
/**
|
|
@@ -13649,15 +14021,20 @@ class EdsTabs {
|
|
|
13649
14021
|
constructor(hostRef) {
|
|
13650
14022
|
registerInstance(this, hostRef);
|
|
13651
14023
|
this.tab = createEvent(this, "tab", 7);
|
|
14024
|
+
this.tabRefs = [];
|
|
14025
|
+
// Store tab reference
|
|
14026
|
+
this.setTabRef = (el, index) => {
|
|
14027
|
+
if (el) {
|
|
14028
|
+
this.tabRefs[index] = el;
|
|
14029
|
+
}
|
|
14030
|
+
};
|
|
13652
14031
|
// cva configuration
|
|
13653
14032
|
this.tabCva = cva([
|
|
13654
14033
|
'relative py-12',
|
|
13655
14034
|
'f-ui-03 whitespace-nowrap',
|
|
13656
|
-
'effect-color',
|
|
14035
|
+
'effect-color effect-focus',
|
|
13657
14036
|
'focus-visible:text-default hover:text-default',
|
|
13658
|
-
'border-2'
|
|
13659
|
-
"after:content-[''] after:absolute after:inset-0 after:rounded-t-lg after:opacity-0",
|
|
13660
|
-
'outline-none focus:outline-none focus-visible:outline-none focus-visible:after:opacity-100'
|
|
14037
|
+
'border-2'
|
|
13661
14038
|
], {
|
|
13662
14039
|
variants: {
|
|
13663
14040
|
position: {
|
|
@@ -13667,7 +14044,10 @@ class EdsTabs {
|
|
|
13667
14044
|
right: 'pl-28 pr-16 rounded-tr-lg border-l-0 -ml-16 after:left-16'
|
|
13668
14045
|
},
|
|
13669
14046
|
active: {
|
|
13670
|
-
false:
|
|
14047
|
+
false: [
|
|
14048
|
+
'text-lighter bg-dark hover:bg-darker border-softest border-b-0 z-1',
|
|
14049
|
+
"after:content-[''] after:absolute after:bottom-0 after:inset-x-0 after:h-2 after:border-soft"
|
|
14050
|
+
],
|
|
13671
14051
|
true: [
|
|
13672
14052
|
'bg-default text-default z-99',
|
|
13673
14053
|
'rounded-t-lg',
|
|
@@ -13686,28 +14066,35 @@ class EdsTabs {
|
|
|
13686
14066
|
componentWillLoad() {
|
|
13687
14067
|
this.parseTabs();
|
|
13688
14068
|
this.setActiveIndex();
|
|
13689
|
-
this.tab.emit({ tabId: this.identifier, index:
|
|
14069
|
+
this.tab.emit({ tabId: this.identifier, index: this.activeIndex });
|
|
13690
14070
|
}
|
|
13691
14071
|
/**
|
|
13692
|
-
* Parses the `
|
|
13693
|
-
* Returns an empty array if parsing fails or if `
|
|
13694
|
-
*
|
|
13695
|
-
* @returns {any[]} Array of parsed link objects
|
|
13696
|
-
*/
|
|
13697
|
-
/**
|
|
13698
|
-
* Parses the `links` prop into an array of link objects.
|
|
13699
|
-
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
14072
|
+
* Parses the `tabs` prop into an array of tab objects.
|
|
14073
|
+
* Returns an empty array if parsing fails or if `tabs` is not a valid JSON string or object.
|
|
13700
14074
|
*
|
|
13701
|
-
* @returns {any[]} Array of parsed
|
|
14075
|
+
* @returns {any[]} Array of parsed tab objects
|
|
13702
14076
|
*/
|
|
13703
14077
|
parseTabs() {
|
|
13704
14078
|
this.parsedTabs = parseData(this.tabs);
|
|
14079
|
+
// Reset tab refs when tabs change
|
|
14080
|
+
this.tabRefs = [];
|
|
13705
14081
|
}
|
|
13706
14082
|
componentDidLoad() {
|
|
13707
14083
|
this.scrollToActiveTab();
|
|
13708
14084
|
}
|
|
14085
|
+
componentDidUpdate() {
|
|
14086
|
+
// Ensure we have the correct number of tab refs after render
|
|
14087
|
+
if (this.tabRefs.length !== this.parsedTabs.length) {
|
|
14088
|
+
this.tabRefs = new Array(this.parsedTabs.length).fill(null);
|
|
14089
|
+
}
|
|
14090
|
+
}
|
|
13709
14091
|
setActiveIndex() {
|
|
13710
14092
|
this.activeIndex = this.parsedTabs.findIndex((tab) => tab.active);
|
|
14093
|
+
// If no active tab found, default to first tab
|
|
14094
|
+
if (this.activeIndex === -1 && this.parsedTabs.length > 0) {
|
|
14095
|
+
this.activeIndex = 0;
|
|
14096
|
+
this.parsedTabs[0].active = true;
|
|
14097
|
+
}
|
|
13711
14098
|
}
|
|
13712
14099
|
scrollToActiveTab() {
|
|
13713
14100
|
var _a;
|
|
@@ -13729,31 +14116,74 @@ class EdsTabs {
|
|
|
13729
14116
|
: index < this.activeIndex
|
|
13730
14117
|
? 'left'
|
|
13731
14118
|
: 'right';
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
13735
|
-
|
|
13736
|
-
|
|
14119
|
+
const rawZ = position === 'left' ? index : this.parsedTabs.length + 1 - index;
|
|
14120
|
+
// clamp inactive to at least 1
|
|
14121
|
+
const z = active ? this.parsedTabs.length + 99 : Math.max(rawZ, 1);
|
|
14122
|
+
return Object.assign({ class: this.tabCva({ active, position }), style: {
|
|
14123
|
+
// stringify the number so it matches { [key: string]: string }
|
|
14124
|
+
zIndex: `${z}`
|
|
13737
14125
|
} }, (active ? { 'data-tab-active': 'true' } : {}));
|
|
13738
14126
|
}
|
|
13739
|
-
handleTabClick(index, tabLabel) {
|
|
14127
|
+
handleTabClick(index, tabLabel, shouldFocus = true) {
|
|
14128
|
+
// Validate index
|
|
14129
|
+
if (index < 0 || index >= this.parsedTabs.length) {
|
|
14130
|
+
return;
|
|
14131
|
+
}
|
|
13740
14132
|
// Update the active index and set all tabs' active state accordingly
|
|
13741
14133
|
this.activeIndex = index;
|
|
13742
14134
|
this.parsedTabs = this.parsedTabs.map((tab, tabIndex) => (Object.assign(Object.assign({}, tab), { active: tabIndex === index })));
|
|
13743
14135
|
this.tab.emit({ tabId: this.identifier, index: index, name: tabLabel });
|
|
13744
|
-
|
|
13745
|
-
|
|
13746
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
13749
|
-
|
|
14136
|
+
// Only send analytics for actual clicks, not keyboard navigation
|
|
14137
|
+
if (shouldFocus) {
|
|
14138
|
+
sendAnalytics({
|
|
14139
|
+
category: 'ui-component',
|
|
14140
|
+
tag: this.el.tagName.toLowerCase(),
|
|
14141
|
+
name: (tabLabel === null || tabLabel === void 0 ? void 0 : tabLabel.toLowerCase()) || '',
|
|
14142
|
+
action: 'click'
|
|
14143
|
+
});
|
|
14144
|
+
}
|
|
14145
|
+
// Focus management for keyboard navigation
|
|
14146
|
+
if (shouldFocus && this.tabRefs[index]) {
|
|
14147
|
+
// Use a small timeout to ensure the DOM has updated
|
|
14148
|
+
setTimeout(() => {
|
|
14149
|
+
var _a;
|
|
14150
|
+
(_a = this.tabRefs[index]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
14151
|
+
}, 0);
|
|
14152
|
+
}
|
|
14153
|
+
}
|
|
14154
|
+
onKeyDown(ev, idx) {
|
|
14155
|
+
let newIndex = idx;
|
|
14156
|
+
switch (ev.key) {
|
|
14157
|
+
case 'ArrowRight':
|
|
14158
|
+
newIndex = (idx + 1) % this.parsedTabs.length;
|
|
14159
|
+
ev.preventDefault();
|
|
14160
|
+
break;
|
|
14161
|
+
case 'ArrowLeft':
|
|
14162
|
+
newIndex = (idx - 1 + this.parsedTabs.length) % this.parsedTabs.length;
|
|
14163
|
+
ev.preventDefault();
|
|
14164
|
+
break;
|
|
14165
|
+
case 'Home':
|
|
14166
|
+
newIndex = 0;
|
|
14167
|
+
ev.preventDefault();
|
|
14168
|
+
break;
|
|
14169
|
+
case 'End':
|
|
14170
|
+
newIndex = this.parsedTabs.length - 1;
|
|
14171
|
+
ev.preventDefault();
|
|
14172
|
+
break;
|
|
14173
|
+
default:
|
|
14174
|
+
return; // Don't handle other keys
|
|
14175
|
+
}
|
|
14176
|
+
if (newIndex !== idx) {
|
|
14177
|
+
this.handleTabClick(newIndex, this.parsedTabs[newIndex].label, true);
|
|
14178
|
+
}
|
|
13750
14179
|
}
|
|
13751
14180
|
render() {
|
|
13752
|
-
return (hAsync("div", { key: '
|
|
13753
|
-
const TabComponent =
|
|
14181
|
+
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) => {
|
|
14182
|
+
const TabComponent = 'button';
|
|
13754
14183
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
13755
|
-
|
|
13756
|
-
|
|
14184
|
+
const isActive = index === this.activeIndex;
|
|
14185
|
+
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));
|
|
14186
|
+
}))), 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}` })))))));
|
|
13757
14187
|
}
|
|
13758
14188
|
get el() { return getElement(this); }
|
|
13759
14189
|
static get watchers() { return {
|
|
@@ -13816,7 +14246,7 @@ class EdsTag {
|
|
|
13816
14246
|
}
|
|
13817
14247
|
render() {
|
|
13818
14248
|
const classes = tagStyles({ intent: this.intent, size: this.size });
|
|
13819
|
-
return hAsync("span", { key: '
|
|
14249
|
+
return hAsync("span", { key: '939fafa4bc525b747956931f49b27e6125ecbb34', class: classes }, this.label);
|
|
13820
14250
|
}
|
|
13821
14251
|
static get style() { return EdsTagStyle0; }
|
|
13822
14252
|
static get cmpMeta() { return {
|
|
@@ -13878,7 +14308,7 @@ class EdsTimeline {
|
|
|
13878
14308
|
}
|
|
13879
14309
|
}
|
|
13880
14310
|
render() {
|
|
13881
|
-
return (hAsync("div", { key: '
|
|
14311
|
+
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
|
|
13882
14312
|
? [{ label: 'completed', style: 'accent' }]
|
|
13883
14313
|
: [{ 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
|
|
13884
14314
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -14052,7 +14482,7 @@ class EdsToastManager {
|
|
|
14052
14482
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
14053
14483
|
}
|
|
14054
14484
|
render() {
|
|
14055
|
-
return (hAsync("div", { key: '
|
|
14485
|
+
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) }))))));
|
|
14056
14486
|
}
|
|
14057
14487
|
get hostElement() { return getElement(this); }
|
|
14058
14488
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -14091,7 +14521,7 @@ class EdsTooltip {
|
|
|
14091
14521
|
}
|
|
14092
14522
|
render() {
|
|
14093
14523
|
const positionClass = this.position === 'bottom' ? 'top-full mt-2' : 'bottom-full mb-2';
|
|
14094
|
-
return (hAsync("div", { key: '
|
|
14524
|
+
return (hAsync("div", { key: 'ee76b787881bdaef986b73fb2775c900a8c33d05', class: "relative w-full inline-block group" }, hAsync("slot", { key: 'a5f9ade50e829efab02ef28ecff3edeedae9d469' }), hAsync("div", { key: '31bdc63d6263090578f6600ae32027c2b050b2bf', class: `absolute ${positionClass}
|
|
14095
14525
|
rounded-xs bg-strongest text-inverse
|
|
14096
14526
|
f-ui-03-light pointer-events-none
|
|
14097
14527
|
z-10 p-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
@@ -14155,7 +14585,7 @@ class EdsTrl {
|
|
|
14155
14585
|
Application: { format: 'code' },
|
|
14156
14586
|
'Current TRL Stage': { format: 'text' }
|
|
14157
14587
|
};
|
|
14158
|
-
return (hAsync("div", { key: '
|
|
14588
|
+
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" })));
|
|
14159
14589
|
}
|
|
14160
14590
|
static get cmpMeta() { return {
|
|
14161
14591
|
"$flags$": 0,
|
|
@@ -14207,7 +14637,7 @@ class EdsUser {
|
|
|
14207
14637
|
}
|
|
14208
14638
|
render() {
|
|
14209
14639
|
const user = this.parsedUser;
|
|
14210
|
-
return (hAsync("div", { key: '
|
|
14640
|
+
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' })))))));
|
|
14211
14641
|
}
|
|
14212
14642
|
get hostEl() { return getElement(this); }
|
|
14213
14643
|
static get style() { return EdsUserStyle0; }
|
|
@@ -14258,7 +14688,7 @@ class GradientPrimaryPalette {
|
|
|
14258
14688
|
];
|
|
14259
14689
|
}
|
|
14260
14690
|
render() {
|
|
14261
|
-
return (hAsync("ul", { key: '
|
|
14691
|
+
return (hAsync("ul", { key: 'af35aa4016013cbed62463881c380330f80066a2', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
14262
14692
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
14263
14693
|
} }, 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))))))));
|
|
14264
14694
|
}
|
|
@@ -14331,19 +14761,19 @@ class GradientSecondaryPalette {
|
|
|
14331
14761
|
];
|
|
14332
14762
|
}
|
|
14333
14763
|
render() {
|
|
14334
|
-
return (hAsync("div", { key: '
|
|
14764
|
+
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: {
|
|
14335
14765
|
background: this.colors[0].background
|
|
14336
|
-
} }, hAsync("div", { key: '
|
|
14766
|
+
} }, 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: {
|
|
14337
14767
|
background: this.colors[1].background
|
|
14338
|
-
} }, hAsync("div", { key: '
|
|
14768
|
+
} }, 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: {
|
|
14339
14769
|
background: this.colors[2].background
|
|
14340
|
-
} }, hAsync("div", { key: '
|
|
14770
|
+
} }, 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: {
|
|
14341
14771
|
background: this.colors[3].background
|
|
14342
|
-
} }, hAsync("div", { key: '
|
|
14772
|
+
} }, 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: {
|
|
14343
14773
|
background: this.colors[4].background
|
|
14344
|
-
} }, hAsync("div", { key: '
|
|
14774
|
+
} }, 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: {
|
|
14345
14775
|
background: this.colors[5].background
|
|
14346
|
-
} }, hAsync("div", { key: '
|
|
14776
|
+
} }, 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)))))));
|
|
14347
14777
|
}
|
|
14348
14778
|
static get cmpMeta() { return {
|
|
14349
14779
|
"$flags$": 0,
|
|
@@ -14406,11 +14836,11 @@ class GradientSupportPalette {
|
|
|
14406
14836
|
];
|
|
14407
14837
|
}
|
|
14408
14838
|
render() {
|
|
14409
|
-
return (hAsync("ul", { key: '
|
|
14839
|
+
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: {
|
|
14410
14840
|
background: this.colors[2].background
|
|
14411
|
-
} }, hAsync("div", { key: '
|
|
14841
|
+
} }, 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: {
|
|
14412
14842
|
background: this.colors[3].background
|
|
14413
|
-
} }, hAsync("div", { key: '
|
|
14843
|
+
} }, 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'))))));
|
|
14414
14844
|
}
|
|
14415
14845
|
static get cmpMeta() { return {
|
|
14416
14846
|
"$flags$": 0,
|
|
@@ -14464,7 +14894,7 @@ class IncorrectUseOfColors {
|
|
|
14464
14894
|
registerInstance(this, hostRef);
|
|
14465
14895
|
}
|
|
14466
14896
|
render() {
|
|
14467
|
-
return (hAsync("div", { key: '
|
|
14897
|
+
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 } })))))))));
|
|
14468
14898
|
}
|
|
14469
14899
|
static get cmpMeta() { return {
|
|
14470
14900
|
"$flags$": 0,
|
|
@@ -14487,7 +14917,7 @@ class LogoSpace {
|
|
|
14487
14917
|
registerInstance(this, hostRef);
|
|
14488
14918
|
}
|
|
14489
14919
|
render() {
|
|
14490
|
-
return (hAsync("div", { key: '
|
|
14920
|
+
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" }))));
|
|
14491
14921
|
}
|
|
14492
14922
|
static get style() { return LogoSpaceStyle0; }
|
|
14493
14923
|
static get cmpMeta() { return {
|
|
@@ -14511,7 +14941,7 @@ class LogoVariationsHorizontal {
|
|
|
14511
14941
|
registerInstance(this, hostRef);
|
|
14512
14942
|
}
|
|
14513
14943
|
render() {
|
|
14514
|
-
return (hAsync("div", { key: '
|
|
14944
|
+
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: "#" }))))));
|
|
14515
14945
|
}
|
|
14516
14946
|
static get style() { return LogoVariationsHorizontalStyle0; }
|
|
14517
14947
|
static get cmpMeta() { return {
|
|
@@ -14543,7 +14973,7 @@ class LogoVariationsTabs {
|
|
|
14543
14973
|
}
|
|
14544
14974
|
}
|
|
14545
14975
|
render() {
|
|
14546
|
-
return hAsync("div", { key: '
|
|
14976
|
+
return hAsync("div", { key: 'ac936a8594bc4f5f8573da7ac2751103fe287e48', class: "container" }, this.renderContent());
|
|
14547
14977
|
}
|
|
14548
14978
|
static get cmpMeta() { return {
|
|
14549
14979
|
"$flags$": 0,
|
|
@@ -14570,7 +15000,7 @@ class LogoVariationsVertical {
|
|
|
14570
15000
|
this.type = undefined;
|
|
14571
15001
|
}
|
|
14572
15002
|
render() {
|
|
14573
|
-
return (hAsync("div", { key: '
|
|
15003
|
+
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: "#" }))))));
|
|
14574
15004
|
}
|
|
14575
15005
|
static get style() { return LogoVariationsVerticalStyle0; }
|
|
14576
15006
|
static get cmpMeta() { return {
|
|
@@ -14597,7 +15027,7 @@ class LogoWrongUsage {
|
|
|
14597
15027
|
registerInstance(this, hostRef);
|
|
14598
15028
|
}
|
|
14599
15029
|
render() {
|
|
14600
|
-
return (hAsync("div", { key: '
|
|
15030
|
+
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"))))));
|
|
14601
15031
|
}
|
|
14602
15032
|
static get style() { return LogoWrongUsageStyle0; }
|
|
14603
15033
|
static get cmpMeta() { return {
|
|
@@ -14641,7 +15071,7 @@ class SvgRepository {
|
|
|
14641
15071
|
icon: { format: 'svg' },
|
|
14642
15072
|
name: { format: 'bold' }
|
|
14643
15073
|
};
|
|
14644
|
-
return (hAsync("div", { key: '
|
|
15074
|
+
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 })));
|
|
14645
15075
|
}
|
|
14646
15076
|
get hostEl() { return getElement(this); }
|
|
14647
15077
|
static get style() { return SvgRepositoryStyle0; }
|
|
@@ -14898,7 +15328,7 @@ class TokenList {
|
|
|
14898
15328
|
render() {
|
|
14899
15329
|
// Check if `show` prop is provided; if not, display all sections
|
|
14900
15330
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
14901
|
-
return (hAsync("section", { key: '
|
|
15331
|
+
return (hAsync("section", { key: 'b8b778fe87179f77bb71705d89026c500b0293fb', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
14902
15332
|
// Only render sections that exist in `colors`
|
|
14903
15333
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
14904
15334
|
}
|
|
@@ -14931,7 +15361,7 @@ class TokenRadii {
|
|
|
14931
15361
|
registerInstance(this, hostRef);
|
|
14932
15362
|
}
|
|
14933
15363
|
render() {
|
|
14934
|
-
return (hAsync("section", { key: '
|
|
15364
|
+
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" }))))))));
|
|
14935
15365
|
}
|
|
14936
15366
|
static get cmpMeta() { return {
|
|
14937
15367
|
"$flags$": 0,
|
|
@@ -14960,7 +15390,7 @@ class TokenRatios {
|
|
|
14960
15390
|
registerInstance(this, hostRef);
|
|
14961
15391
|
}
|
|
14962
15392
|
render() {
|
|
14963
|
-
return (hAsync("section", { key: '
|
|
15393
|
+
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: {
|
|
14964
15394
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
14965
15395
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
14966
15396
|
maxWidth: '300px'
|
|
@@ -15002,7 +15432,7 @@ class TokenShadows {
|
|
|
15002
15432
|
registerInstance(this, hostRef);
|
|
15003
15433
|
}
|
|
15004
15434
|
render() {
|
|
15005
|
-
return (hAsync("section", { key: '
|
|
15435
|
+
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]" })))))))));
|
|
15006
15436
|
}
|
|
15007
15437
|
static get cmpMeta() { return {
|
|
15008
15438
|
"$flags$": 0,
|
|
@@ -15022,7 +15452,7 @@ class TokenSpacing {
|
|
|
15022
15452
|
registerInstance(this, hostRef);
|
|
15023
15453
|
}
|
|
15024
15454
|
render() {
|
|
15025
|
-
return (hAsync("div", { key: '
|
|
15455
|
+
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")))))));
|
|
15026
15456
|
}
|
|
15027
15457
|
static get cmpMeta() { return {
|
|
15028
15458
|
"$flags$": 0,
|
|
@@ -15240,7 +15670,7 @@ class TokenTypography {
|
|
|
15240
15670
|
registerInstance(this, hostRef);
|
|
15241
15671
|
}
|
|
15242
15672
|
render() {
|
|
15243
|
-
return (hAsync("section", { key: '
|
|
15673
|
+
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)
|
|
15244
15674
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
15245
15675
|
.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: {
|
|
15246
15676
|
fontFamily: typography.families.sans,
|
|
@@ -15309,6 +15739,7 @@ registerComponents([
|
|
|
15309
15739
|
EdsIconChevronLeft,
|
|
15310
15740
|
EdsIconChevronRight,
|
|
15311
15741
|
EdsIconChevronUp,
|
|
15742
|
+
EdsIconClone,
|
|
15312
15743
|
EdsIconClose,
|
|
15313
15744
|
EdsIconCopy,
|
|
15314
15745
|
EdsIconDraft,
|
|
@@ -15339,6 +15770,7 @@ registerComponents([
|
|
|
15339
15770
|
EdsIconUnknown,
|
|
15340
15771
|
EdsIconUpdown,
|
|
15341
15772
|
EdsIconUser,
|
|
15773
|
+
EdsIconView,
|
|
15342
15774
|
EdsIconWrapper,
|
|
15343
15775
|
EdsIconYoutube,
|
|
15344
15776
|
EdsImg,
|
|
@@ -15353,6 +15785,7 @@ registerComponents([
|
|
|
15353
15785
|
EdsLogo,
|
|
15354
15786
|
EdsMatomoNotice,
|
|
15355
15787
|
EdsModal,
|
|
15788
|
+
EdsNps,
|
|
15356
15789
|
EdsPagination,
|
|
15357
15790
|
EdsPie,
|
|
15358
15791
|
EdsProgressBar,
|