@ebrains/components 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
- package/dist/cjs/components-section.cjs.entry.js +4 -6
- 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/download-9d17d025.js +20 -0
- package/dist/cjs/{eds-accordion_33.cjs.entry.js → eds-accordion_36.cjs.entry.js} +590 -110
- 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 +3 -3
- package/dist/cjs/eds-card-project.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-section.cjs.entry.js +2 -2
- 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 +3 -5
- package/dist/cjs/eds-frame.cjs.entry.js +2 -2
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +9 -4
- 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 +2 -2
- 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-download.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-draft.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-edit.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +2 -2
- package/dist/cjs/eds-modal.cjs.entry.js +4 -4
- 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 +3 -5
- 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-trl.cjs.entry.js +2 -2
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/{index-0249a32e.js → index-50bc1aa4.js} +8 -11
- 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 +4 -20
- package/dist/cjs/token-list_3.cjs.entry.js +4 -4
- package/dist/cjs/token-ratios.cjs.entry.js +2 -2
- package/dist/cjs/token-spacing.cjs.entry.js +2 -2
- package/dist/cjs/token-typography.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
- package/dist/collection/components/eds-alert/eds-alert.js +2 -2
- 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.js +1 -1
- 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-generic/eds-card-generic.css +8 -0
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +1 -1
- package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.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 +127 -11
- 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 +1 -1
- 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-download/eds-icon-download.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-draft/eds-icon-draft.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-edit/eds-icon-edit.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-start/eds-icon-start.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-view/eds-icon-view.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
- package/dist/collection/components/eds-img/eds-img.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +2 -2
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- package/dist/collection/components/eds-link/eds-link.js +1 -1
- package/dist/collection/components/eds-logo/eds-logo.js +1 -1
- package/dist/collection/components/eds-modal/eds-modal.css +41 -22
- package/dist/collection/components/eds-modal/eds-modal.js +2 -2
- package/dist/collection/components/eds-nps/eds-nps.js +4 -4
- package/dist/collection/components/eds-pagination/eds-pagination.css +12 -0
- package/dist/collection/components/eds-pagination/eds-pagination.js +2 -2
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
- package/dist/collection/components/eds-rating/eds-rating.js +2 -2
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
- package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
- package/dist/collection/components/eds-switch/eds-switch.js +2 -2
- package/dist/collection/components/eds-table/eds-table.css +4 -0
- package/dist/collection/components/eds-table/eds-table.js +8 -6
- package/dist/collection/components/eds-tag/eds-tag.js +3 -3
- package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.css +5 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +2 -2
- package/dist/collection/components/eds-trl/eds-trl.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
- package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/functional/overview.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
- package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +1 -1
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +1 -1
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +7 -6
- package/dist/collection/shared-ui/eds-form/eds-form.css +72 -0
- package/dist/collection/shared-ui/eds-form/eds-form.js +128 -7
- package/dist/collection/shared-ui/eds-form/eds-form.stories.js +32 -3
- package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +50 -16
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.css +222 -0
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.js +309 -0
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.stories.js +277 -0
- package/dist/collection/shared-ui/eds-header/eds-header.js +1 -1
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +20 -8
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.css +0 -20
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -3
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +6 -7
- package/dist/collection/shared-ui/eds-steps/eds-steps.css +138 -92
- package/dist/collection/shared-ui/eds-steps/eds-steps.js +265 -40
- package/dist/collection/shared-ui/eds-steps/eds-steps.stories.js +71 -7
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +47 -34
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +227 -19
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.stories.js +65 -4
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +2 -2
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/shared-ui/eds-user/eds-user.js +82 -1
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/collection/utils/eds-form/formValidators.js +4 -3
- package/dist/components/components-section.js +3 -5
- package/dist/components/components.css +3 -3
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/docs-palettes.js +1 -1
- package/dist/components/docs-tokens.js +1 -1
- package/dist/components/download.js +18 -0
- package/dist/components/eds-accordion2.js +2 -2
- package/dist/components/eds-alert2.js +2 -2
- 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 +1 -1
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-generic2.js +2 -2
- package/dist/components/eds-card-project.js +1 -1
- package/dist/components/eds-card-section.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 +53 -7
- package/dist/components/eds-feedback.js +1 -1
- package/dist/components/eds-footer2.js +2 -4
- package/dist/components/eds-form.js +61 -11
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-fullscreen-menu.js +8 -3
- package/dist/components/eds-gauge.js +1 -1
- package/dist/components/eds-global-search.d.ts +11 -0
- package/dist/components/eds-global-search.js +262 -0
- 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.js +1 -1
- package/dist/components/eds-icon-close.js +1 -1
- package/dist/components/eds-icon-copy.js +1 -1
- package/dist/components/eds-icon-download.d.ts +11 -0
- package/dist/components/eds-icon-download.js +33 -0
- package/dist/components/eds-icon-draft.js +1 -1
- package/dist/components/eds-icon-edit.js +1 -1
- package/dist/components/eds-icon-eu.js +1 -1
- package/dist/components/eds-icon-external.js +1 -1
- package/dist/components/eds-icon-facebook.js +1 -1
- package/dist/components/eds-icon-gitlab.js +1 -1
- package/dist/components/eds-icon-linkedin.js +1 -1
- package/dist/components/eds-icon-loader.js +1 -1
- package/dist/components/eds-icon-mastodon.js +1 -1
- package/dist/components/eds-icon-menu.js +1 -1
- package/dist/components/eds-icon-minus.js +1 -1
- package/dist/components/eds-icon-more.js +1 -1
- package/dist/components/eds-icon-paper.js +1 -1
- package/dist/components/eds-icon-plus.js +1 -1
- package/dist/components/eds-icon-portal.js +1 -1
- package/dist/components/eds-icon-private.js +1 -1
- package/dist/components/eds-icon-public.js +1 -1
- package/dist/components/eds-icon-search.js +1 -1
- package/dist/components/eds-icon-star.js +1 -1
- package/dist/components/eds-icon-start.js +1 -1
- package/dist/components/eds-icon-success.js +1 -1
- package/dist/components/eds-icon-thumbs-down.js +1 -1
- package/dist/components/eds-icon-thumbs-up.js +1 -1
- package/dist/components/eds-icon-tutorial.js +1 -1
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-unknown.js +1 -1
- package/dist/components/eds-icon-updown.js +1 -1
- package/dist/components/eds-icon-user.js +1 -1
- package/dist/components/eds-icon-view.js +1 -1
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +2 -2
- package/dist/components/eds-input-field2.js +2 -2
- package/dist/components/eds-input-footer2.js +1 -1
- package/dist/components/eds-input-label2.js +1 -1
- package/dist/components/eds-input-range2.js +1 -1
- package/dist/components/eds-input-search2.js +1 -1
- package/dist/components/eds-input-select2.js +2 -2
- package/dist/components/eds-input2.js +2 -2
- package/dist/components/eds-link2.js +1 -1
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-modal.js +3 -3
- package/dist/components/eds-nps2.js +4 -4
- package/dist/components/eds-pagination2.js +3 -3
- package/dist/components/eds-progress-bar2.js +1 -1
- package/dist/components/eds-rating2.js +2 -2
- package/dist/components/eds-section-core2.js +1 -1
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-social-networks2.js +2 -4
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-steps-v2.js +67 -13
- package/dist/components/eds-steps2.js +85 -35
- package/dist/components/eds-switch.js +2 -2
- package/dist/components/eds-table2.js +36 -28
- package/dist/components/eds-tabs.js +2 -2
- package/dist/components/eds-tag2.js +1 -1
- package/dist/components/eds-timeline.js +1 -1
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-tooltip.js +1 -50
- package/dist/components/eds-tooltip2.js +52 -0
- package/dist/components/eds-trl.js +33 -27
- package/dist/components/eds-user.js +20 -2
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/logo-space.js +31 -25
- package/dist/components/logo-variations-horizontal2.js +1 -1
- package/dist/components/logo-variations-tabs.js +1 -1
- package/dist/components/logo-variations-vertical2.js +1 -1
- package/dist/components/logo-wrong-usage.js +1 -1
- package/dist/components/p-03714413.entry.js +1 -0
- package/dist/components/{p-67ec46b4.entry.js → p-06428b6c.entry.js} +1 -1
- package/dist/components/{p-7a3f2576.entry.js → p-067a184b.entry.js} +1 -1
- package/dist/components/p-097665cb.entry.js +1 -0
- package/dist/components/p-09f1b358.entry.js +1 -0
- package/dist/components/p-0da7d1c9.js +1 -0
- package/dist/components/p-1297d926.entry.js +1 -0
- package/dist/components/p-1928711b.entry.js +1 -0
- package/dist/components/{p-2ef4dd11.entry.js → p-1fad228f.entry.js} +1 -1
- package/dist/components/p-204f97de.entry.js +1 -0
- package/dist/components/p-20e385b8.entry.js +1 -0
- package/dist/components/{p-8627afc0.entry.js → p-219842c0.entry.js} +1 -1
- package/dist/components/p-21b5ca1f.entry.js +1 -0
- package/dist/components/{p-efbc374c.js → p-271c61ff.js} +1 -1
- package/dist/components/p-290b3d61.entry.js +1 -0
- package/dist/components/p-2db9f80a.entry.js +1 -0
- package/dist/components/p-354857a8.entry.js +1 -0
- package/dist/components/p-37a3d3ba.entry.js +1 -0
- package/dist/components/p-3a295312.entry.js +1 -0
- package/dist/components/p-3ff1f198.entry.js +1 -0
- package/dist/components/p-404b4dec.entry.js +1 -0
- package/dist/components/p-422c08a9.entry.js +1 -0
- package/dist/components/p-44cc0966.entry.js +1 -0
- package/dist/components/p-473aeaa0.entry.js +1 -0
- package/dist/components/p-4b2d40d4.entry.js +1 -0
- package/dist/components/{p-d1927da7.entry.js → p-4beb1e06.entry.js} +1 -1
- package/dist/components/p-4faa0047.entry.js +1 -0
- package/dist/components/p-552125e3.entry.js +1 -0
- package/dist/components/p-5db8003b.entry.js +1 -0
- package/dist/components/p-5ea2afdf.entry.js +1 -0
- package/dist/components/p-5f2bb217.entry.js +1 -0
- package/dist/components/p-65d1c8e9.entry.js +1 -0
- package/dist/components/p-67823a16.entry.js +1 -0
- package/dist/components/p-69db1210.entry.js +1 -0
- package/dist/components/p-701dc6d8.entry.js +1 -0
- package/dist/components/{p-e5892379.entry.js → p-71e9b1e9.entry.js} +1 -1
- package/dist/components/p-71f4afdf.entry.js +1 -0
- package/dist/components/p-73daee37.entry.js +1 -0
- package/dist/components/p-77143afc.entry.js +1 -0
- package/dist/components/p-7a137d91.entry.js +1 -0
- package/dist/components/p-7a34b267.entry.js +1 -0
- package/dist/components/{p-b31babda.entry.js → p-7ada2015.entry.js} +1 -1
- package/dist/components/p-81cce4f8.entry.js +1 -0
- package/dist/components/{p-d2e485a1.entry.js → p-83dde536.entry.js} +1 -1
- package/dist/components/p-84a04d37.entry.js +1 -0
- package/dist/components/p-8d66718e.entry.js +1 -0
- package/dist/components/p-9154e892.entry.js +1 -0
- package/dist/components/{p-5f348b0e.entry.js → p-9385c5fd.entry.js} +1 -1
- package/dist/components/p-98501e25.entry.js +1 -0
- package/dist/components/p-98d79948.entry.js +1 -0
- package/dist/components/p-9992fbdb.entry.js +1 -0
- package/dist/components/{p-b88a2267.entry.js → p-9c68934f.entry.js} +1 -1
- package/dist/components/{p-b9a1aba3.entry.js → p-a258d382.entry.js} +1 -1
- package/dist/components/p-a82fc224.entry.js +1 -0
- package/dist/components/p-ad0519b7.entry.js +1 -0
- package/dist/components/p-b15b11de.entry.js +9 -0
- package/dist/components/p-b56a3fc9.entry.js +1 -0
- package/dist/components/{p-09079c5c.entry.js → p-b9b6ac74.entry.js} +1 -1
- package/dist/components/p-b9bd1209.entry.js +1 -0
- package/dist/components/{p-9c1c5e8d.entry.js → p-bce8a58d.entry.js} +1 -1
- package/dist/components/{p-2e0c3fc4.entry.js → p-c12b0af1.entry.js} +1 -1
- package/dist/components/{p-265150a1.entry.js → p-c51b90c2.entry.js} +1 -1
- package/dist/components/{p-d95d7353.entry.js → p-c5d6c2a5.entry.js} +1 -1
- package/dist/components/p-c6f5d9df.entry.js +1 -0
- package/dist/components/p-c770c97b.entry.js +1 -0
- package/dist/components/{p-706a106c.entry.js → p-c8cba3a9.entry.js} +1 -1
- package/dist/components/{p-64b7a6fc.entry.js → p-ca91952b.entry.js} +1 -1
- package/dist/components/p-cba7d276.entry.js +1 -0
- package/dist/components/p-cffb13fa.entry.js +1 -0
- package/dist/components/p-d3cbc8f9.entry.js +1 -0
- package/dist/components/{p-743f9f8f.entry.js → p-d650c6c3.entry.js} +1 -1
- package/dist/components/p-d6a6879c.entry.js +1 -0
- package/dist/components/p-d9e02227.entry.js +1 -0
- package/dist/components/{p-79afd8aa.entry.js → p-da96c7cd.entry.js} +1 -1
- package/dist/components/{p-e210ddbb.entry.js → p-dd34feaa.entry.js} +1 -1
- package/dist/components/p-df18ffd1.entry.js +1 -0
- package/dist/components/p-e3b89fab.entry.js +1 -0
- package/dist/components/p-e696531f.entry.js +1 -0
- package/dist/components/{p-4c84fcf4.entry.js → p-e7b7179f.entry.js} +1 -1
- package/dist/components/p-e8bc4649.entry.js +1 -0
- package/dist/components/p-ef86f330.entry.js +1 -0
- package/dist/components/p-f5470900.entry.js +1 -0
- package/dist/components/p-ff433e09.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 +32 -42
- package/dist/components/token-list2.js +1 -1
- package/dist/components/token-radii2.js +1 -1
- package/dist/components/token-ratios.js +1 -1
- package/dist/components/token-shadows2.js +1 -1
- package/dist/components/token-spacing.js +1 -1
- package/dist/components/token-typography.js +1 -1
- package/dist/esm/color-primary-palette_6.entry.js +15 -15
- package/dist/esm/components-section.entry.js +4 -6
- 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/download-47746956.js +18 -0
- package/dist/esm/{eds-accordion_33.entry.js → eds-accordion_36.entry.js} +588 -111
- 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 +3 -3
- package/dist/esm/eds-card-project.entry.js +2 -2
- package/dist/esm/eds-card-section.entry.js +2 -2
- 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 +3 -5
- package/dist/esm/eds-frame.entry.js +2 -2
- package/dist/esm/eds-fullscreen-menu.entry.js +9 -4
- 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 +2 -2
- package/dist/esm/eds-icon-close.entry.js +2 -2
- package/dist/esm/eds-icon-copy.entry.js +2 -2
- package/dist/esm/eds-icon-download.entry.js +14 -0
- package/dist/esm/eds-icon-draft.entry.js +2 -2
- package/dist/esm/eds-icon-edit.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/eds-icon-youtube.entry.js +2 -2
- package/dist/esm/eds-modal.entry.js +4 -4
- 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 +3 -5
- 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-trl.entry.js +2 -2
- package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
- package/dist/esm/{index-e84b871c.js → index-870ab08f.js} +8 -11
- 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 +3 -19
- package/dist/esm/token-list_3.entry.js +4 -4
- package/dist/esm/token-ratios.entry.js +2 -2
- package/dist/esm/token-spacing.entry.js +2 -2
- package/dist/esm/token-typography.entry.js +2 -2
- package/dist/hydrate/index.js +679 -236
- package/dist/hydrate/index.mjs +679 -236
- package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +1 -0
- package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +27 -6
- package/dist/types/components/eds-icons/eds-icon-download/eds-icon-download.d.ts +10 -0
- package/dist/types/components/eds-table/eds-table.d.ts +20 -4
- package/dist/types/components/eds-tag/eds-tag.d.ts +1 -1
- package/dist/types/components.d.ts +455 -55
- package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +4 -2
- package/dist/types/shared-ui/eds-form/eds-form.d.ts +18 -1
- package/dist/types/shared-ui/eds-form/eds-form.stories.d.ts +19 -0
- package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +44 -13
- package/dist/types/shared-ui/eds-global-search/eds-global-search.d.ts +72 -0
- package/dist/types/shared-ui/eds-global-search/eds-global-search.stories.d.ts +40 -0
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +11 -3
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +0 -2
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +1 -1
- package/dist/types/shared-ui/eds-steps/eds-steps.d.ts +73 -24
- package/dist/types/shared-ui/eds-steps/eds-steps.stories.d.ts +58 -0
- package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.d.ts +44 -19
- package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.stories.d.ts +33 -0
- package/dist/types/shared-ui/eds-user/eds-user.d.ts +9 -0
- package/dist/types/types/global.d.ts +11 -0
- package/package.json +1 -1
- package/dist/cjs/eds-spinner.cjs.entry.js +0 -88
- package/dist/cjs/eds-tooltip.cjs.entry.js +0 -38
- package/dist/components/p-05654483.entry.js +0 -1
- package/dist/components/p-10997947.entry.js +0 -1
- package/dist/components/p-19e69c03.entry.js +0 -1
- package/dist/components/p-1ab1ea29.entry.js +0 -1
- package/dist/components/p-1bcf743d.entry.js +0 -1
- package/dist/components/p-1d18106d.entry.js +0 -1
- package/dist/components/p-3360e1e2.entry.js +0 -1
- package/dist/components/p-38bc21e9.entry.js +0 -1
- package/dist/components/p-3b29e0fd.entry.js +0 -1
- package/dist/components/p-42457a0f.entry.js +0 -1
- package/dist/components/p-4a6a72db.entry.js +0 -1
- package/dist/components/p-4b33909d.entry.js +0 -1
- package/dist/components/p-4bf4bc93.entry.js +0 -1
- package/dist/components/p-5367bb59.entry.js +0 -1
- package/dist/components/p-547a53d6.entry.js +0 -1
- package/dist/components/p-560fc3a4.entry.js +0 -1
- package/dist/components/p-5a58f1c1.entry.js +0 -1
- package/dist/components/p-5b55f951.entry.js +0 -1
- package/dist/components/p-5ba49cf2.entry.js +0 -1
- package/dist/components/p-5dd85979.entry.js +0 -1
- package/dist/components/p-634b6ca2.entry.js +0 -1
- package/dist/components/p-6614881d.entry.js +0 -1
- package/dist/components/p-6b988c76.entry.js +0 -1
- package/dist/components/p-6cd6ff0c.entry.js +0 -1
- package/dist/components/p-71ee4af2.entry.js +0 -1
- package/dist/components/p-789f54cb.entry.js +0 -1
- package/dist/components/p-7a5623b5.entry.js +0 -1
- package/dist/components/p-7ca6db64.entry.js +0 -1
- package/dist/components/p-7fa46b01.entry.js +0 -1
- package/dist/components/p-86eff0cb.entry.js +0 -1
- package/dist/components/p-89048f87.entry.js +0 -1
- package/dist/components/p-8cf98230.entry.js +0 -1
- package/dist/components/p-8d363a3c.entry.js +0 -1
- package/dist/components/p-9261d27c.entry.js +0 -1
- package/dist/components/p-97323c46.entry.js +0 -1
- package/dist/components/p-9b90296c.entry.js +0 -1
- package/dist/components/p-9cb14b1f.entry.js +0 -1
- package/dist/components/p-9f0a34b4.entry.js +0 -1
- package/dist/components/p-a8ca8346.entry.js +0 -1
- package/dist/components/p-ab3b0a53.entry.js +0 -1
- package/dist/components/p-b0d38b78.entry.js +0 -1
- package/dist/components/p-b6ee4250.entry.js +0 -1
- package/dist/components/p-b9fdcb1b.entry.js +0 -1
- package/dist/components/p-ba9f41de.entry.js +0 -1
- package/dist/components/p-beacaa4f.entry.js +0 -1
- package/dist/components/p-bfa23535.entry.js +0 -1
- package/dist/components/p-c4ac0528.entry.js +0 -1
- package/dist/components/p-cb114bf4.entry.js +0 -1
- package/dist/components/p-cd05a97b.entry.js +0 -1
- package/dist/components/p-cd787744.entry.js +0 -1
- package/dist/components/p-cdc1c8e8.entry.js +0 -1
- package/dist/components/p-d1d1943b.entry.js +0 -1
- package/dist/components/p-e0ada7e0.entry.js +0 -1
- package/dist/components/p-e8374410.entry.js +0 -1
- package/dist/components/p-e90da4ba.entry.js +0 -1
- package/dist/components/p-ec706eed.entry.js +0 -1
- package/dist/components/p-f32963ff.entry.js +0 -9
- package/dist/components/p-f40dd50d.entry.js +0 -1
- package/dist/components/p-f6012c17.entry.js +0 -1
- package/dist/components/p-fcba31fa.entry.js +0 -1
- package/dist/esm/eds-spinner.entry.js +0 -84
- package/dist/esm/eds-tooltip.entry.js +0 -34
|
@@ -19,13 +19,17 @@ import { getFormInitData } from "../../utils/eds-form/formUtils";
|
|
|
19
19
|
export class EdsForm {
|
|
20
20
|
constructor() {
|
|
21
21
|
this.name = 'eds-form';
|
|
22
|
+
this.title = 'Form Title';
|
|
23
|
+
this.description = 'Form Description';
|
|
22
24
|
this.setFormUrl = true;
|
|
23
25
|
this.formBtn = true;
|
|
24
26
|
this.formBtnLabel = 'Submit';
|
|
27
|
+
this.buttonIntent = 'primary';
|
|
25
28
|
this.errorMessage = 'Some fields in your form are incorrect.';
|
|
26
29
|
this.fields = [];
|
|
27
30
|
this.groups = [];
|
|
28
31
|
this.initData = {};
|
|
32
|
+
this.formStyle = 'default';
|
|
29
33
|
this.values = {};
|
|
30
34
|
this.isSubmitting = false;
|
|
31
35
|
this.hasError = false;
|
|
@@ -147,6 +151,7 @@ export class EdsForm {
|
|
|
147
151
|
return formData;
|
|
148
152
|
}
|
|
149
153
|
makeFormData() {
|
|
154
|
+
var _a;
|
|
150
155
|
const formData = new FormData();
|
|
151
156
|
// Add the form name
|
|
152
157
|
formData.append('form_name', this.name);
|
|
@@ -158,6 +163,41 @@ export class EdsForm {
|
|
|
158
163
|
// Append each key-value pair to the FormData object.
|
|
159
164
|
formData.append(key, this.values[key]);
|
|
160
165
|
});
|
|
166
|
+
// 2) Only do the (slower) DOM scan if we actually have file fields in the config
|
|
167
|
+
const hasFileField = (_a = this.parsedFields) === null || _a === void 0 ? void 0 : _a.some((f) => (f === null || f === void 0 ? void 0 : f.type) === 'file');
|
|
168
|
+
if (hasFileField && this.formEl) {
|
|
169
|
+
// Find file inputs inside each eds-input-field's shadowRoot
|
|
170
|
+
const hosts = Array.from(this.formEl.querySelectorAll('eds-input-field'));
|
|
171
|
+
hosts.forEach((host) => {
|
|
172
|
+
const root = host.shadowRoot;
|
|
173
|
+
if (!root)
|
|
174
|
+
return;
|
|
175
|
+
const fileInputs = Array.from(root.querySelectorAll('input[type="file"][name]'));
|
|
176
|
+
console.log(fileInputs);
|
|
177
|
+
fileInputs.forEach((fi) => {
|
|
178
|
+
const name = fi.name;
|
|
179
|
+
const files = fi.files ? Array.from(fi.files) : [];
|
|
180
|
+
if (files.length > 0) {
|
|
181
|
+
// Append each file under the same field name (backend can use request.files.getlist(name))
|
|
182
|
+
files.forEach((file) => formData.append(name, file));
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
// If you need to ensure presence even when empty, uncomment:
|
|
186
|
+
// formData.append(name, new Blob([], { type: 'application/octet-stream' }), '');
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
// (Optional) mark that this payload includes files (handy in logs / policies)
|
|
191
|
+
// formData.set('_has_files', '1');
|
|
192
|
+
}
|
|
193
|
+
formData.forEach((value, key) => {
|
|
194
|
+
if (value instanceof File) {
|
|
195
|
+
console.log(`File field: ${key}, File name: ${value.name}, File size: ${value.size}`);
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
console.log(`Field: ${key}, Value: ${value}`);
|
|
199
|
+
}
|
|
200
|
+
});
|
|
161
201
|
return formData;
|
|
162
202
|
}
|
|
163
203
|
handleChange(e, field) {
|
|
@@ -268,11 +308,11 @@ export class EdsForm {
|
|
|
268
308
|
message: `${field.name} updated`
|
|
269
309
|
});
|
|
270
310
|
}
|
|
271
|
-
handleSubmit() {
|
|
311
|
+
handleSubmit(e) {
|
|
272
312
|
var _a, _b;
|
|
273
|
-
|
|
313
|
+
e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
314
|
+
if (this.isSubmitting)
|
|
274
315
|
return;
|
|
275
|
-
}
|
|
276
316
|
this.isSubmitting = true;
|
|
277
317
|
this.validateForm();
|
|
278
318
|
if (this.hasError) {
|
|
@@ -323,10 +363,15 @@ export class EdsForm {
|
|
|
323
363
|
}
|
|
324
364
|
get groupedFields() {
|
|
325
365
|
const map = {};
|
|
326
|
-
// initialize buckets for each group
|
|
366
|
+
// initialize buckets for each declared group
|
|
327
367
|
this.parsedGroups.forEach((g) => (map[g.id] = []));
|
|
368
|
+
// always keep an ungrouped bucket
|
|
328
369
|
map['__ungrouped'] = [];
|
|
370
|
+
// only bucket fields that are currently visible
|
|
329
371
|
this.parsedFields.forEach((f) => {
|
|
372
|
+
if (!this.isFieldVisible(f)) {
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
330
375
|
const gid = f.groupId || '__ungrouped';
|
|
331
376
|
if (!map[gid]) {
|
|
332
377
|
map[gid] = [];
|
|
@@ -347,7 +392,7 @@ export class EdsForm {
|
|
|
347
392
|
return (h("div", { class: "form-group rating-field", key: field.name }, h("div", { class: "flex justify-between" }, field && (h("eds-input-label", { name: `rating-${field.name}`, label: field.label, disabled: field.disabled, required: field.required }))), h("eds-rating", { id: `rating-${field.name}`, "rating-type": field.ratingType, "rating-count": field.ratingCount, "selected-rating": val, onRating: (e) => this.handleRating(e, field) }), h("div", { class: "mt-6" }, h("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 }))));
|
|
348
393
|
}
|
|
349
394
|
else if (field.type === 'nps') {
|
|
350
|
-
return (h("div", { class: "form-group nps-field", key: field.name }, h("div", { class: "flex justify-between" }, field && (h("eds-input-label", { name: `nps-${field.name}`, label: field.question, disabled: field.disabled, required: field.required }))), h("eds-nps", { id: `nps-${field.name}`, "right-label": field.rightLabel, "left-label": field.leftLabel, onNps: (e) => this.handleNPS(e, field) }), h("div", { class: "mt-6" }, h("eds-input-footer", { id: `${field.name}-footer`, name: field.name,
|
|
395
|
+
return (h("div", { class: "form-group nps-field", key: field.name }, h("div", { class: "flex justify-between" }, field && (h("eds-input-label", { name: `nps-${field.name}`, label: field.question, disabled: field.disabled, required: field.required }))), h("eds-nps", { id: `nps-${field.name}`, "right-label": field.rightLabel, "left-label": field.leftLabel, onNps: (e) => this.handleNPS(e, field) }), h("div", { class: "mt-6" }, h("eds-input-footer", { id: `${field.name}-footer`, name: field.name, "error-message": (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br/>'), error: !!this.errors[field.name] }))));
|
|
351
396
|
}
|
|
352
397
|
return (h("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) }));
|
|
353
398
|
}
|
|
@@ -358,9 +403,13 @@ export class EdsForm {
|
|
|
358
403
|
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
359
404
|
//const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
360
405
|
const buckets = this.groupedFields;
|
|
361
|
-
|
|
406
|
+
// build the shadow/bg classes if formStyle="shadow"
|
|
407
|
+
const styleClasses = this.formStyle === 'shadow'
|
|
408
|
+
? 'bg-inverse effect-shadow shadow-hover border-softer relative rounded-lg border-2 p-32'
|
|
409
|
+
: '';
|
|
410
|
+
return (h("form", { key: 'a2e7de988c60301b92f6b756702bfcc78e9f3d90', class: styleClasses, ref: (el) => (this.formEl = el), autocomplete: "on", onSubmit: this.handleSubmit }, h("div", { key: '22172631522aa6094d8b163b0774c57ef4404d60', class: "flex flex-col gap-y-24" }, this.title && (h("span", { key: '0597bbacbaf5f3d9ec1ab938cf755a10baafdf21', role: "heading", class: "f-heading-04" }, this.title)), this.description && h("span", { key: '5e636072bc2692071bd0b518af721999cc8b511e', class: "f-body-02 text-light" }, this.description), h("slot", { key: '79d21172208eb77ec6460e817d3c7bc3a680c806' })), hiddenFields.map((field, index) => (h("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), this.parsedGroups
|
|
362
411
|
.filter((g) => Array.isArray(buckets[g.id]) && buckets[g.id].length > 0)
|
|
363
|
-
.map((g) => (h("div", { class: "
|
|
412
|
+
.map((g) => (h("div", { class: "mt-32", key: g.id }, h("span", { class: "f-body-02" }, h("b", null, g.title)), h("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), h("div", { key: 'b99941e53dec1c8c4e167d8588d6e86793838d1a', class: "flex flex-col mt-32 gap-y-24" }, buckets['__ungrouped'].map((f) => this.renderField(f))), this.formBtn && (h("div", { key: '27365a4d7d8150ff4e94ffb3d27d011400c8c412', class: "mt-32" }, h("eds-button", { key: '66f89292b95d9549e3718d7e499b0724762127c6', intent: this.buttonIntent, label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
|
|
364
413
|
}
|
|
365
414
|
static get is() { return "eds-form"; }
|
|
366
415
|
static get encapsulation() { return "shadow"; }
|
|
@@ -394,6 +443,42 @@ export class EdsForm {
|
|
|
394
443
|
"reflect": false,
|
|
395
444
|
"defaultValue": "'eds-form'"
|
|
396
445
|
},
|
|
446
|
+
"title": {
|
|
447
|
+
"type": "string",
|
|
448
|
+
"mutable": false,
|
|
449
|
+
"complexType": {
|
|
450
|
+
"original": "string",
|
|
451
|
+
"resolved": "string",
|
|
452
|
+
"references": {}
|
|
453
|
+
},
|
|
454
|
+
"required": false,
|
|
455
|
+
"optional": false,
|
|
456
|
+
"docs": {
|
|
457
|
+
"tags": [],
|
|
458
|
+
"text": "The title displayed above the form."
|
|
459
|
+
},
|
|
460
|
+
"attribute": "title",
|
|
461
|
+
"reflect": false,
|
|
462
|
+
"defaultValue": "'Form Title'"
|
|
463
|
+
},
|
|
464
|
+
"description": {
|
|
465
|
+
"type": "string",
|
|
466
|
+
"mutable": false,
|
|
467
|
+
"complexType": {
|
|
468
|
+
"original": "string",
|
|
469
|
+
"resolved": "string",
|
|
470
|
+
"references": {}
|
|
471
|
+
},
|
|
472
|
+
"required": false,
|
|
473
|
+
"optional": true,
|
|
474
|
+
"docs": {
|
|
475
|
+
"tags": [],
|
|
476
|
+
"text": "The description displayed below the title."
|
|
477
|
+
},
|
|
478
|
+
"attribute": "description",
|
|
479
|
+
"reflect": false,
|
|
480
|
+
"defaultValue": "'Form Description'"
|
|
481
|
+
},
|
|
397
482
|
"setFormUrl": {
|
|
398
483
|
"type": "boolean",
|
|
399
484
|
"mutable": false,
|
|
@@ -448,6 +533,24 @@ export class EdsForm {
|
|
|
448
533
|
"reflect": false,
|
|
449
534
|
"defaultValue": "'Submit'"
|
|
450
535
|
},
|
|
536
|
+
"buttonIntent": {
|
|
537
|
+
"type": "string",
|
|
538
|
+
"mutable": false,
|
|
539
|
+
"complexType": {
|
|
540
|
+
"original": "'primary' | 'secondary' | 'tertiary' | 'ghost'",
|
|
541
|
+
"resolved": "\"ghost\" | \"primary\" | \"secondary\" | \"tertiary\"",
|
|
542
|
+
"references": {}
|
|
543
|
+
},
|
|
544
|
+
"required": false,
|
|
545
|
+
"optional": true,
|
|
546
|
+
"docs": {
|
|
547
|
+
"tags": [],
|
|
548
|
+
"text": "Variant/style intent for the submit button (e.g., primary, secondary, tertiary, ghost)."
|
|
549
|
+
},
|
|
550
|
+
"attribute": "button-intent",
|
|
551
|
+
"reflect": false,
|
|
552
|
+
"defaultValue": "'primary'"
|
|
553
|
+
},
|
|
451
554
|
"errorMessage": {
|
|
452
555
|
"type": "string",
|
|
453
556
|
"mutable": false,
|
|
@@ -517,6 +620,24 @@ export class EdsForm {
|
|
|
517
620
|
"text": "The init data the form will attempt to populate in the provided fields."
|
|
518
621
|
},
|
|
519
622
|
"defaultValue": "{}"
|
|
623
|
+
},
|
|
624
|
+
"formStyle": {
|
|
625
|
+
"type": "string",
|
|
626
|
+
"mutable": false,
|
|
627
|
+
"complexType": {
|
|
628
|
+
"original": "'default' | 'shadow'",
|
|
629
|
+
"resolved": "\"default\" | \"shadow\"",
|
|
630
|
+
"references": {}
|
|
631
|
+
},
|
|
632
|
+
"required": false,
|
|
633
|
+
"optional": false,
|
|
634
|
+
"docs": {
|
|
635
|
+
"tags": [],
|
|
636
|
+
"text": "Choose between default layout or an always-shadow style.\nWhen \"shadow\", the form gets the same effect-shadow + shadow-hover classes"
|
|
637
|
+
},
|
|
638
|
+
"attribute": "form-style",
|
|
639
|
+
"reflect": false,
|
|
640
|
+
"defaultValue": "'default'"
|
|
520
641
|
}
|
|
521
642
|
};
|
|
522
643
|
}
|
|
@@ -4,6 +4,8 @@ export default {
|
|
|
4
4
|
component: 'eds-form',
|
|
5
5
|
argTypes: {
|
|
6
6
|
name: { control: 'text', description: 'Form name', defaultValue: 'extended-form' },
|
|
7
|
+
title: { control: 'text', description: 'Form title displayed above the form' },
|
|
8
|
+
description: { control: 'text', description: 'Form description displayed below the title' },
|
|
7
9
|
fields: {
|
|
8
10
|
control: 'object',
|
|
9
11
|
description: 'Form fields as JSON array'
|
|
@@ -21,23 +23,38 @@ export default {
|
|
|
21
23
|
control: 'text',
|
|
22
24
|
description: 'Form button Label',
|
|
23
25
|
defaultValue: 'Validate'
|
|
26
|
+
},
|
|
27
|
+
buttonIntent: {
|
|
28
|
+
control: { type: 'select' },
|
|
29
|
+
options: ['primary', 'secondary', 'tertiary', 'ghost'],
|
|
30
|
+
description: 'Variant/style intent for the submit button'
|
|
31
|
+
},
|
|
32
|
+
formStyle: {
|
|
33
|
+
control: 'select',
|
|
34
|
+
options: ['default', 'shadow']
|
|
24
35
|
}
|
|
25
36
|
}
|
|
26
37
|
};
|
|
27
38
|
const Template = (args) => html `
|
|
28
39
|
<eds-form
|
|
29
40
|
name="${args.name}"
|
|
41
|
+
title="${args.title}"
|
|
42
|
+
description="${args.description}"
|
|
30
43
|
.fields=${args.fields}
|
|
31
44
|
.groups=${args.groups}
|
|
32
45
|
.initData=${args.initData}
|
|
33
46
|
.setFormUrl=${args.setFormUrl}
|
|
34
47
|
form-btn="${args.formBtn}"
|
|
35
48
|
form-btn-label="${args.formBtnLabel}"
|
|
49
|
+
button-intent="${args.buttonIntent}"
|
|
50
|
+
form-style="${args.formStyle}"
|
|
36
51
|
></eds-form>
|
|
37
52
|
`;
|
|
38
53
|
export const Default = Template.bind({});
|
|
39
54
|
Default.args = {
|
|
40
55
|
name: 'extended-form',
|
|
56
|
+
title: 'User Details',
|
|
57
|
+
description: 'Please fill out the form below.',
|
|
41
58
|
fields: [
|
|
42
59
|
{ name: 'username', label: 'Username', type: 'text', required: true, maxlength: 10, placeholder: 'Username' },
|
|
43
60
|
{ name: 'email', label: 'Email', type: 'email', required: true },
|
|
@@ -91,12 +108,17 @@ Default.args = {
|
|
|
91
108
|
disabled: true
|
|
92
109
|
}
|
|
93
110
|
],
|
|
111
|
+
setFormUrl: true,
|
|
94
112
|
formBtn: true,
|
|
95
|
-
formBtnLabel: 'Validate'
|
|
113
|
+
formBtnLabel: 'Validate',
|
|
114
|
+
buttonIntent: 'primary',
|
|
115
|
+
formStyle: 'default'
|
|
96
116
|
};
|
|
97
117
|
export const WithGroups = Template.bind({});
|
|
98
118
|
WithGroups.args = {
|
|
99
119
|
name: 'grouped-form',
|
|
120
|
+
title: 'Grouped Form',
|
|
121
|
+
description: 'Form with grouped fields',
|
|
100
122
|
fields: [
|
|
101
123
|
{ name: 'firstName', label: 'First Name', type: 'text', required: true, groupId: 'personal' },
|
|
102
124
|
{ name: 'lastName', label: 'Last Name', type: 'text', required: true, groupId: 'personal' },
|
|
@@ -106,12 +128,17 @@ WithGroups.args = {
|
|
|
106
128
|
{ id: 'personal', title: 'Personal Info' },
|
|
107
129
|
{ id: 'comments', title: 'Comments' }
|
|
108
130
|
],
|
|
131
|
+
setFormUrl: true,
|
|
109
132
|
formBtn: true,
|
|
110
|
-
formBtnLabel: 'Submit'
|
|
133
|
+
formBtnLabel: 'Submit',
|
|
134
|
+
buttonIntent: 'secondary',
|
|
135
|
+
formStyle: 'default'
|
|
111
136
|
};
|
|
112
137
|
export const WithInitData = Template.bind({});
|
|
113
138
|
WithInitData.args = {
|
|
114
139
|
name: 'prefill-form',
|
|
140
|
+
title: 'Prefilled Form',
|
|
141
|
+
description: 'Form with initial values',
|
|
115
142
|
fields: [
|
|
116
143
|
{ name: 'username', label: 'Username', type: 'text', required: true },
|
|
117
144
|
{ name: 'email', label: 'Email', type: 'email', required: true }
|
|
@@ -123,5 +150,7 @@ WithInitData.args = {
|
|
|
123
150
|
},
|
|
124
151
|
setFormUrl: false,
|
|
125
152
|
formBtn: true,
|
|
126
|
-
formBtnLabel: 'Save'
|
|
153
|
+
formBtnLabel: 'Save',
|
|
154
|
+
buttonIntent: 'ghost',
|
|
155
|
+
formStyle: 'default'
|
|
127
156
|
};
|
|
@@ -84,7 +84,7 @@ export class EdsFrame {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
|
-
return (h("div", { key: '
|
|
87
|
+
return (h("div", { key: '7b4f5eb19460a178b98586aa38088e3dc5625671', class: this.articleClasses() }, h("div", { key: '98aefbd4cab33f14c9aa3152c122a11b24df4a02', class: "effect-height flex items-center justify-between py-8 px-12" }, h("span", { key: 'd0cdd2f3354bddc99030ee5215f2bc24b139a261', class: "f-ui-02" }, this.frameLabel), !this.iframeError && this.url && this.urlLabel ? (h("eds-link", { label: this.urlLabel, url: this.url, intent: this.intent, class: "ml-auto", external: true, disabled: false, icon: "arrow-diagonal" })) : null), h("div", { key: '030c560bbd0209160c92bc2d152f8d42484dc86b', class: "border-softer" }, this.iframeError ? (h("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage)) : (h("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: true })))));
|
|
88
88
|
}
|
|
89
89
|
static get is() { return "eds-frame"; }
|
|
90
90
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,11 +21,16 @@ export class EdsFullscreenMenu {
|
|
|
21
21
|
this.isMenuOpen = false;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Listens
|
|
25
|
-
*
|
|
24
|
+
* Listens on `body` for `toggleheadermenu` to open/close the menu.
|
|
25
|
+
* The event detail should be a boolean (`true` = open, `false` = close).
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```js
|
|
29
|
+
* document.body.dispatchEvent(new CustomEvent('toggleheadermenu', { detail: true }));
|
|
30
|
+
* ```
|
|
26
31
|
*/
|
|
27
32
|
handleToggleMenu(event) {
|
|
28
|
-
this.isMenuOpen = event.detail;
|
|
33
|
+
this.isMenuOpen = !!event.detail;
|
|
29
34
|
}
|
|
30
35
|
/** Opens the menu */
|
|
31
36
|
openMenu() {
|
|
@@ -89,15 +94,23 @@ export class EdsFullscreenMenu {
|
|
|
89
94
|
"type": "string",
|
|
90
95
|
"mutable": false,
|
|
91
96
|
"complexType": {
|
|
92
|
-
"original": "string |
|
|
93
|
-
"resolved": "
|
|
94
|
-
"references": {
|
|
97
|
+
"original": "string | LinkItem[]",
|
|
98
|
+
"resolved": "LinkItem[] | string",
|
|
99
|
+
"references": {
|
|
100
|
+
"LinkItem": {
|
|
101
|
+
"location": "global",
|
|
102
|
+
"id": "global::LinkItem"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
95
105
|
},
|
|
96
106
|
"required": false,
|
|
97
107
|
"optional": false,
|
|
98
108
|
"docs": {
|
|
99
|
-
"tags": [
|
|
100
|
-
|
|
109
|
+
"tags": [{
|
|
110
|
+
"name": "example",
|
|
111
|
+
"text": "links='[{\"label\":\"Home\",\"url\":\"/\"},{\"label\":\"Docs\",\"url\":\"/docs\",\"icon\":\"book\"}]'"
|
|
112
|
+
}],
|
|
113
|
+
"text": "Primary navigation links.\nAccepts a JSON string or array of objects `{ label, url, icon?, external? }`."
|
|
101
114
|
},
|
|
102
115
|
"attribute": "links",
|
|
103
116
|
"reflect": false
|
|
@@ -113,8 +126,14 @@ export class EdsFullscreenMenu {
|
|
|
113
126
|
"required": false,
|
|
114
127
|
"optional": false,
|
|
115
128
|
"docs": {
|
|
116
|
-
"tags": [
|
|
117
|
-
|
|
129
|
+
"tags": [{
|
|
130
|
+
"name": "example",
|
|
131
|
+
"text": "menu-links='[{\"label\":\"Help\",\"url\":\"/help\"},{\"label\":\"Contact\",\"url\":\"/contact\"}]'"
|
|
132
|
+
}, {
|
|
133
|
+
"name": "attr",
|
|
134
|
+
"text": "menu-links"
|
|
135
|
+
}],
|
|
136
|
+
"text": "Secondary navigation links (extra menu items for small screens).\nAccepts a JSON string or array of objects `{ label, url }`."
|
|
118
137
|
},
|
|
119
138
|
"attribute": "menu-links",
|
|
120
139
|
"reflect": false
|
|
@@ -130,8 +149,14 @@ export class EdsFullscreenMenu {
|
|
|
130
149
|
"required": false,
|
|
131
150
|
"optional": false,
|
|
132
151
|
"docs": {
|
|
133
|
-
"tags": [
|
|
134
|
-
|
|
152
|
+
"tags": [{
|
|
153
|
+
"name": "default",
|
|
154
|
+
"text": "\"/\""
|
|
155
|
+
}, {
|
|
156
|
+
"name": "attr",
|
|
157
|
+
"text": "home-url"
|
|
158
|
+
}],
|
|
159
|
+
"text": "URL for the logo link in the header."
|
|
135
160
|
},
|
|
136
161
|
"attribute": "home-url",
|
|
137
162
|
"reflect": false,
|
|
@@ -148,8 +173,14 @@ export class EdsFullscreenMenu {
|
|
|
148
173
|
"required": false,
|
|
149
174
|
"optional": false,
|
|
150
175
|
"docs": {
|
|
151
|
-
"tags": [
|
|
152
|
-
|
|
176
|
+
"tags": [{
|
|
177
|
+
"name": "default",
|
|
178
|
+
"text": "false"
|
|
179
|
+
}, {
|
|
180
|
+
"name": "attr",
|
|
181
|
+
"text": "inverse-header"
|
|
182
|
+
}],
|
|
183
|
+
"text": "When true, uses an inverse (dark) header background."
|
|
153
184
|
},
|
|
154
185
|
"attribute": "inverse-header",
|
|
155
186
|
"reflect": false,
|
|
@@ -170,8 +201,11 @@ export class EdsFullscreenMenu {
|
|
|
170
201
|
"cancelable": true,
|
|
171
202
|
"composed": true,
|
|
172
203
|
"docs": {
|
|
173
|
-
"tags": [
|
|
174
|
-
|
|
204
|
+
"tags": [{
|
|
205
|
+
"name": "event",
|
|
206
|
+
"text": "menuClose"
|
|
207
|
+
}],
|
|
208
|
+
"text": "Emitted when the menu is closed (via UI or resize)."
|
|
175
209
|
},
|
|
176
210
|
"complexType": {
|
|
177
211
|
"original": "void",
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
p {
|
|
7
|
+
margin: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
ol,
|
|
11
|
+
ul,
|
|
12
|
+
menu {
|
|
13
|
+
list-style: none;
|
|
14
|
+
margin: 0;
|
|
15
|
+
padding: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.search-wrapper {
|
|
19
|
+
position: relative;
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.search-dropdown {
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: calc(100% + 8px);
|
|
26
|
+
left: 0;
|
|
27
|
+
right: 0;
|
|
28
|
+
background: white;
|
|
29
|
+
border: 1px solid #e0e0e0;
|
|
30
|
+
border-radius: 8px;
|
|
31
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
|
|
32
|
+
max-height: 500px;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
z-index: 9999;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* States */
|
|
40
|
+
.dropdown-state {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
gap: 8px;
|
|
45
|
+
padding: 24px;
|
|
46
|
+
color: #616161;
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Results List */
|
|
51
|
+
.dropdown-results {
|
|
52
|
+
list-style: none;
|
|
53
|
+
margin: 0;
|
|
54
|
+
overflow-y: auto;
|
|
55
|
+
overflow-x: hidden;
|
|
56
|
+
max-height: 440px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.result-item {
|
|
60
|
+
padding: 10px 14px;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
transition: background-color 0.15s ease;
|
|
63
|
+
border-left: 3px solid transparent;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
word-wrap: break-word;
|
|
66
|
+
word-break: break-word;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.result-item:hover,
|
|
70
|
+
.result-item--selected {
|
|
71
|
+
background-color: var(--grey-200);
|
|
72
|
+
border-left-color: var(--green-600);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.result-header {
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: space-between;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.result-snippet {
|
|
82
|
+
font-size: 13px;
|
|
83
|
+
color: #616161;
|
|
84
|
+
line-height: 1.4;
|
|
85
|
+
margin: 0;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
display: -webkit-box;
|
|
88
|
+
-webkit-line-clamp: 2;
|
|
89
|
+
-webkit-box-orient: vertical;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Footer */
|
|
93
|
+
.dropdown-footer {
|
|
94
|
+
border-top: 1px solid #e0e0e0;
|
|
95
|
+
padding: 8px 16px;
|
|
96
|
+
background: #fafafa;
|
|
97
|
+
flex-shrink: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.footer-hint {
|
|
101
|
+
font-size: 11px;
|
|
102
|
+
color: #757575;
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
gap: 4px;
|
|
106
|
+
flex-wrap: wrap;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
kbd {
|
|
110
|
+
display: inline-block;
|
|
111
|
+
padding: 2px 5px;
|
|
112
|
+
font-size: 10px;
|
|
113
|
+
font-family: monospace;
|
|
114
|
+
line-height: 1;
|
|
115
|
+
color: #424242;
|
|
116
|
+
background-color: #f5f5f5;
|
|
117
|
+
border: 1px solid #bdbdbd;
|
|
118
|
+
border-radius: 3px;
|
|
119
|
+
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Scrollbar */
|
|
123
|
+
.dropdown-results::-webkit-scrollbar {
|
|
124
|
+
width: 8px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.dropdown-results::-webkit-scrollbar-track {
|
|
128
|
+
background: #f5f5f5;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.dropdown-results::-webkit-scrollbar-thumb {
|
|
132
|
+
background: #bdbdbd;
|
|
133
|
+
border-radius: 4px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.dropdown-results::-webkit-scrollbar-thumb:hover {
|
|
137
|
+
background: #9e9e9e;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.flex {
|
|
141
|
+
display: flex;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.inline-flex {
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.text-center {
|
|
149
|
+
text-align: center;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.justify-center {
|
|
153
|
+
justify-content: center;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.justify-between {
|
|
157
|
+
justify-content: space-between;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.text-error {
|
|
161
|
+
color: var(--red-700);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.text-lighter {
|
|
165
|
+
color: var(--grey-600);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.text-lightest {
|
|
169
|
+
color: var(--grey-500);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.ml-4 {
|
|
173
|
+
margin-left: 0.25rem;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.ml-8 {
|
|
177
|
+
margin-left: 0.5rem;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.ml-16 {
|
|
181
|
+
margin-left: 1rem;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.p-16 {
|
|
185
|
+
padding: 1rem;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.p-64 {
|
|
189
|
+
padding: 4rem;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.f-body-02 {
|
|
193
|
+
font-family: var(--f-body-02-fontFamily);
|
|
194
|
+
font-weight: var(--f-body-02-fontWeight);
|
|
195
|
+
font-size: var(--f-body-02-fontSize);
|
|
196
|
+
line-height: var(--f-body-02-lineHeight);
|
|
197
|
+
letter-spacing: var(--f-body-02-letterSpacing);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.f-ui-03 {
|
|
201
|
+
font-family: var(--f-ui-03-fontFamily);
|
|
202
|
+
font-weight: var(--f-ui-03-fontWeight);
|
|
203
|
+
font-size: var(--f-ui-03-fontSize);
|
|
204
|
+
line-height: var(--f-ui-03-lineHeight);
|
|
205
|
+
letter-spacing: var(--f-ui-03-letterSpacing);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.f-ui-03-light {
|
|
209
|
+
font-family: var(--f-ui-03-light-fontFamily);
|
|
210
|
+
font-weight: var(--f-ui-03-light-fontWeight);
|
|
211
|
+
font-size: var(--f-ui-03-light-fontSize);
|
|
212
|
+
line-height: var(--f-ui-03-light-lineHeight);
|
|
213
|
+
letter-spacing: var(--f-ui-03-light-letterSpacing);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.f-ui-04 {
|
|
217
|
+
font-family: var(--f-ui-04-fontFamily);
|
|
218
|
+
font-weight: var(--f-ui-04-fontWeight);
|
|
219
|
+
font-size: var(--f-ui-04-fontSize);
|
|
220
|
+
line-height: var(--f-ui-04-lineHeight);
|
|
221
|
+
letter-spacing: var(--f-ui-04-letterSpacing);
|
|
222
|
+
}
|