@ebrains/components 0.6.0-alpha.0 → 0.7.0-alpha.1
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.cjs.js +2 -2
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/eds-accordion_22.cjs.entry.js +1959 -0
- package/dist/cjs/eds-alert.cjs.entry.js +1 -1
- package/dist/cjs/eds-app-root.cjs.entry.js +37 -0
- package/dist/cjs/eds-avatar_4.cjs.entry.js +180 -0
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +4 -18
- package/dist/cjs/eds-card-generic.cjs.entry.js +92 -0
- package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-section.cjs.entry.js +39 -0
- package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/eds-code-block.cjs.entry.js +1 -1
- package/dist/cjs/eds-components-section.cjs.entry.js +2 -2
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +2 -2
- package/dist/cjs/eds-docs-palettes.cjs.entry.js +2 -2
- package/dist/cjs/eds-docs-tokens.cjs.entry.js +2 -2
- package/dist/cjs/{eds-dropdown_2.cjs.entry.js → eds-dropdown.cjs.entry.js} +8 -41
- package/dist/cjs/eds-feedback.cjs.entry.js +66 -0
- package/dist/cjs/eds-form.cjs.entry.js +237 -254
- package/dist/cjs/eds-frame.cjs.entry.js +32 -32
- 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-bluesky.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-close.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-copy.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-eu.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-more.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 +18 -0
- package/dist/cjs/eds-icon-success.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-user.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +2 -2
- package/dist/{components/keycloak.js → cjs/eds-login_2.cjs.entry.js} +144 -1
- package/dist/cjs/eds-logo-variations.cjs.entry.js +2 -2
- package/dist/cjs/eds-modal.cjs.entry.js +15 -3
- package/dist/cjs/eds-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/eds-rating.cjs.entry.js +31 -25
- package/dist/cjs/eds-section-core_2.cjs.entry.js +4 -4
- package/dist/cjs/eds-spinner.cjs.entry.js +54 -0
- package/dist/cjs/eds-steps.cjs.entry.js +9 -19
- package/dist/cjs/eds-svg-repository.cjs.entry.js +9 -3
- package/dist/cjs/eds-switch.cjs.entry.js +3 -3
- package/dist/cjs/eds-tabs.cjs.entry.js +10 -24
- package/dist/cjs/eds-timeline.cjs.entry.js +4 -22
- package/dist/cjs/eds-toast-manager.cjs.entry.js +46 -0
- package/dist/cjs/eds-toast.cjs.entry.js +76 -0
- package/dist/cjs/eds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/eds-trl.cjs.entry.js +2 -2
- package/dist/cjs/eds-user.cjs.entry.js +9 -79
- package/dist/cjs/eds-vertical-stepper.cjs.entry.js +2 -2
- package/dist/cjs/formUtils-4315a99c.js +228 -0
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/{index-f08e4f5c.js → index-2f63169d.js} +51 -54
- 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-wrong-usage.cjs.entry.js +2 -2
- package/dist/cjs/sharedUtils-8e287250.js +21 -0
- package/dist/cjs/star-942eee9f.js +7 -0
- package/dist/cjs/thumbs-down-714036b1.js +7 -0
- package/dist/cjs/thumbs-up-411babb8.js +8 -0
- 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 +10 -6
- package/dist/collection/components/eds-accordion/eds-accordion.js +7 -7
- package/dist/collection/components/eds-accordion/eds-accordion.stories.js +2 -2
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +3 -17
- package/dist/collection/components/eds-button/eds-button.css +1 -19
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +3 -15
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +24 -2
- package/dist/collection/components/eds-form/eds-form.js +278 -268
- package/dist/collection/components/eds-form-v2/eds-form-v2.css +7153 -0
- package/dist/collection/components/eds-form-v2/eds-form-v2.js +405 -0
- package/dist/collection/components/eds-form-v2/eds-form-v2.stories.js +73 -0
- 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-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-eu/eds-icon-eu.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-more/eds-icon-more.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 +36 -0
- 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 +36 -0
- package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.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 +2 -2
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +57 -9
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +1 -1
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- package/dist/collection/components/eds-link/eds-link.js +1 -1
- package/dist/collection/components/eds-logo/eds-logo.js +1 -1
- package/dist/collection/components/eds-modal/eds-modal.js +26 -2
- package/dist/collection/components/eds-pagination/eds-pagination.js +3 -3
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
- package/dist/collection/components/eds-rating/eds-rating.css +31 -74
- package/dist/collection/components/eds-rating/eds-rating.js +44 -56
- package/dist/collection/components/eds-rating/eds-rating.stories.js +18 -51
- 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.css +17 -0
- package/dist/collection/components/eds-spinner/eds-spinner.js +166 -0
- package/dist/collection/components/eds-spinner/eds-spinner.stories.js +52 -0
- package/dist/collection/components/eds-steps/eds-steps.css +1 -1
- package/dist/collection/components/eds-steps/eds-steps.js +8 -18
- package/dist/collection/components/eds-steps/eds-vertical-stepper.js +1 -1
- package/dist/collection/components/eds-switch/eds-switch.css +57 -58
- package/dist/collection/components/eds-switch/eds-switch.js +2 -2
- package/dist/collection/components/eds-table/eds-table.js +11 -8
- package/dist/collection/components/eds-table/eds-table.stories.js +11 -6
- package/dist/collection/components/eds-tag/eds-tag.js +1 -1
- package/dist/collection/components/eds-timeline/eds-timeline.js +3 -21
- 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/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/eds-components-section/eds-components-section.js +1 -1
- package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
- package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/eds-frame/eds-frame.css +113 -0
- package/dist/collection/{components → eds-docs-ui}/eds-frame/eds-frame.js +47 -76
- package/dist/collection/eds-docs-ui/eds-frame/eds-frame.stories.js +52 -0
- package/dist/collection/eds-docs-ui/eds-logo-variations/eds-logo-variations.js +1 -1
- package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.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-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +3 -19
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.css +155 -0
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +191 -0
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.stories.js +121 -0
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +3 -28
- package/dist/collection/shared-ui/eds-header/eds-header.js +4 -20
- package/dist/collection/shared-ui/eds-header/eds-header.stories.js +1 -37
- package/dist/collection/shared-ui/eds-login/eds-login.js +34 -10
- package/dist/collection/{components → shared-ui}/eds-matomo-notice/eds-matomo-notice.js +32 -63
- package/dist/collection/{components → shared-ui}/eds-matomo-notice/eds-matomo-notice.stories.js +6 -4
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.css +29 -0
- package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.js +124 -0
- package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.stories.js +23 -0
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +7774 -0
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +12 -25
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +17 -30
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +4 -1
- package/dist/collection/shared-ui/eds-user/eds-user.js +17 -150
- package/dist/collection/shared-ui/eds-user/eds-user.stories.js +45 -0
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +39 -0
- package/dist/collection/utils/api.js +27 -0
- package/dist/collection/utils/eds-form/formUtils.js +95 -0
- package/dist/collection/utils/eds-form/formValidators.js +64 -0
- package/dist/collection/utils/eds-form/individualValidator.js +46 -0
- package/dist/collection/utils/eds-form/validateInput.js +23 -0
- package/dist/collection/utils/sharedUtils.js +17 -0
- package/dist/components/components.css +48 -72
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/eds-accordion2.js +5 -5
- package/dist/components/{eds-navigator.d.ts → eds-app-root.d.ts} +4 -4
- package/dist/components/eds-app-root.js +89 -0
- package/dist/components/eds-breadcrumb.js +3 -17
- package/dist/components/eds-button2.js +1 -1
- package/dist/components/eds-card-generic2.js +3 -15
- package/dist/components/eds-card-section.js +3 -19
- package/dist/components/eds-components-section.js +1 -1
- package/dist/components/eds-cookies-preference.js +1 -1
- package/dist/components/eds-docs-palettes.js +1 -1
- package/dist/components/eds-docs-tokens.js +1 -1
- package/dist/components/eds-dropdown2.js +8 -3
- package/dist/components/{eds-user-modal.d.ts → eds-feedback.d.ts} +4 -4
- package/dist/components/eds-feedback.js +105 -0
- package/dist/components/eds-footer2.js +1 -1
- package/dist/components/{eds-tab.d.ts → eds-form-v2.d.ts} +4 -4
- package/dist/{esm/eds-accordion_13.entry.js → components/eds-form-v2.js} +276 -854
- package/dist/components/eds-form.js +240 -255
- package/dist/components/eds-frame.js +33 -34
- package/dist/components/eds-fullscreen-menu.js +3 -28
- package/dist/components/eds-header.js +4 -20
- 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-bluesky.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-close.js +1 -1
- package/dist/components/eds-icon-copy.js +1 -1
- package/dist/components/eds-icon-eu.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-more.js +1 -1
- package/dist/components/eds-icon-search.js +1 -1
- package/dist/components/{eds-tabs-content.d.ts → eds-icon-star.d.ts} +4 -4
- package/dist/components/eds-icon-star.js +33 -0
- package/dist/components/eds-icon-success.js +1 -1
- package/dist/components/eds-icon-thumbs-down.d.ts +11 -0
- package/dist/components/eds-icon-thumbs-down.js +33 -0
- package/dist/components/eds-icon-thumbs-up.d.ts +11 -0
- package/dist/components/eds-icon-thumbs-up.js +33 -0
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-user.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 +2 -2
- package/dist/components/eds-input-search2.js +24 -9
- package/dist/components/eds-input-select2.js +1 -1
- package/dist/components/eds-input2.js +2 -2
- package/dist/components/eds-link2.js +1 -1
- package/dist/components/eds-login.js +1 -118
- package/dist/{cjs/keycloak-93fc0315.js → components/eds-login2.js} +128 -7
- package/dist/components/eds-logo-variations.js +1 -1
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-matomo-notice2.js +16 -13
- package/dist/components/eds-modal.js +15 -3
- package/dist/components/eds-pagination2.js +2 -2
- package/dist/components/eds-progress-bar2.js +1 -1
- package/dist/components/eds-rating.js +1 -84
- package/dist/components/eds-rating2.js +91 -0
- 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-spinner.d.ts +11 -0
- package/dist/components/eds-spinner.js +6 -0
- package/dist/components/eds-spinner2.js +72 -0
- package/dist/components/eds-splash-screen.d.ts +11 -0
- package/dist/components/eds-splash-screen.js +6 -0
- package/dist/components/eds-splash-screen2.js +78 -0
- package/dist/components/eds-steps.js +8 -18
- package/dist/components/eds-svg-repository.js +8 -2
- package/dist/components/eds-switch.js +2 -2
- package/dist/components/eds-table2.js +11 -8
- package/dist/components/eds-tabs.js +12 -31
- package/dist/components/eds-tag2.js +1 -1
- package/dist/components/eds-timeline.js +3 -21
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-tooltip.js +1 -1
- package/dist/components/eds-trl.js +1 -1
- package/dist/components/eds-user.js +23 -105
- package/dist/components/eds-vertical-stepper.js +1 -1
- package/dist/components/formUtils.js +223 -0
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/logo-space.js +1 -1
- package/dist/components/logo-variations-horizontal2.js +1 -1
- package/dist/components/logo-variations-vertical2.js +1 -1
- package/dist/components/logo-wrong-usage.js +1 -1
- package/dist/components/p-033480b2.entry.js +1 -0
- package/dist/components/{p-89f600a3.entry.js → p-0443ac40.entry.js} +1 -1
- package/dist/components/{p-a2621d66.entry.js → p-066f6d27.entry.js} +1 -1
- package/dist/components/p-0e0106fc.entry.js +1 -0
- package/dist/components/p-117d180f.entry.js +1 -0
- package/dist/components/p-20e9ae7f.entry.js +1 -0
- package/dist/components/{p-a535838c.entry.js → p-2354daeb.entry.js} +1 -1
- package/dist/components/{p-5097066f.entry.js → p-2b31ca60.entry.js} +1 -1
- package/dist/components/p-3368cfd5.entry.js +1 -0
- package/dist/components/p-33c5b937.entry.js +1 -0
- package/dist/components/p-3af94671.entry.js +1 -0
- package/dist/components/{p-b1af5000.entry.js → p-43350dff.entry.js} +2 -2
- package/dist/components/p-43b3579a.entry.js +1 -0
- package/dist/components/p-467fe746.entry.js +1 -0
- package/dist/components/p-46a6042d.entry.js +1 -0
- package/dist/components/p-4a860d5b.entry.js +1 -0
- package/dist/components/p-4ac27fe7.entry.js +1 -0
- package/dist/components/p-4b2e6f03.entry.js +1 -0
- package/dist/components/{p-b50c8d49.entry.js → p-4cd69983.entry.js} +1 -1
- package/dist/components/p-5520a3b6.entry.js +1 -0
- package/dist/components/p-552b6a50.entry.js +1 -0
- package/dist/components/p-56b4e0fe.entry.js +1 -0
- package/dist/components/{p-f36f2aeb.entry.js → p-56ec190f.entry.js} +1 -1
- package/dist/components/p-5aff1ea0.entry.js +1 -0
- package/dist/components/p-5c12a0df.entry.js +1 -0
- package/dist/components/{p-5ff31f14.entry.js → p-5e2216ae.entry.js} +1 -1
- package/dist/components/p-5e63e8a5.entry.js +1 -0
- package/dist/components/p-60e7e745.entry.js +1 -0
- package/dist/components/p-62f2f274.entry.js +1 -0
- package/dist/components/p-6404e157.entry.js +1 -0
- package/dist/components/p-69c5074b.js +1 -0
- package/dist/components/p-6fd0c3b3.entry.js +1 -0
- package/dist/components/p-77cc7c02.entry.js +1 -0
- package/dist/components/p-79c14cf1.entry.js +1 -0
- package/dist/components/{p-c034c395.entry.js → p-7dd81017.entry.js} +1 -1
- package/dist/components/p-7e0dd5d8.entry.js +1 -0
- package/dist/components/p-80dba155.js +1 -0
- package/dist/components/{p-b860b4aa.entry.js → p-8154d013.entry.js} +1 -1
- package/dist/components/p-86eed1b7.entry.js +1 -0
- package/dist/components/{p-d56d9dda.entry.js → p-8b70a350.entry.js} +1 -1
- package/dist/components/p-8e548691.entry.js +1 -0
- package/dist/components/p-90503a64.entry.js +1 -0
- package/dist/components/p-90f85604.entry.js +1 -0
- package/dist/components/p-94698510.entry.js +1 -0
- package/dist/components/p-950ecb1c.entry.js +1 -0
- package/dist/components/p-9b9fba38.entry.js +1 -0
- package/dist/components/p-9dc879c9.entry.js +1 -0
- package/dist/components/{p-b1de9a6c.entry.js → p-9eb2e870.entry.js} +1 -1
- package/dist/components/p-9ebc84d6.entry.js +1 -0
- package/dist/components/p-a56f0579.entry.js +1 -0
- package/dist/components/{p-88751c8b.entry.js → p-a5c61d1c.entry.js} +1 -1
- package/dist/components/p-a6cd418e.entry.js +1 -0
- package/dist/components/p-a8dd1953.entry.js +1 -0
- package/dist/components/{p-045681d7.entry.js → p-a91ab66e.entry.js} +1 -1
- package/dist/components/p-ab292dd5.entry.js +1 -0
- package/dist/components/p-ad746789.entry.js +1 -0
- package/dist/components/p-b80a9020.entry.js +1 -0
- package/dist/components/p-b8ba7e5c.entry.js +1 -0
- package/dist/components/p-ba720bf3.js +1 -0
- package/dist/components/p-c06d4f14.entry.js +1 -0
- package/dist/components/p-c12d9350.entry.js +1 -0
- package/dist/components/p-c3dda942.entry.js +1 -0
- package/dist/components/p-c6b32753.entry.js +1 -0
- package/dist/components/p-c776b6f8.js +1 -0
- package/dist/components/p-c935aa46.entry.js +1 -0
- package/dist/components/{p-7a8b9de5.js → p-cccacbd3.js} +2 -2
- package/dist/components/p-dbcf1f0e.entry.js +1 -0
- package/dist/components/p-dcc08064.entry.js +1 -0
- package/dist/components/p-dcd4de1f.entry.js +1 -0
- package/dist/components/p-e2d5a487.js +1 -0
- package/dist/components/p-e64cd6f7.entry.js +1 -0
- package/dist/components/p-e9a533e0.entry.js +1 -0
- package/dist/components/p-eac63c82.entry.js +1 -0
- package/dist/components/p-f5959676.entry.js +1 -0
- package/dist/components/{p-fad10768.entry.js → p-f905ac92.entry.js} +1 -1
- package/dist/components/p-fba4080d.entry.js +1 -0
- package/dist/components/p-fc619588.entry.js +1 -0
- package/dist/components/p-fcc32210.entry.js +1 -0
- package/dist/components/{p-81942665.entry.js → p-ff7acb55.entry.js} +1 -1
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/sharedUtils.js +19 -0
- package/dist/components/star.js +5 -0
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/thumbs-down.js +5 -0
- package/dist/components/thumbs-up.js +6 -0
- 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/eds/components.js +18 -0
- package/dist/eds/components.js.map +1 -0
- package/dist/esm/color-primary-palette_6.entry.js +15 -15
- package/dist/esm/components.js +3 -3
- package/dist/esm/correct-use-of-colors.entry.js +2 -2
- package/dist/esm/eds-accordion_22.entry.js +1934 -0
- package/dist/esm/eds-alert.entry.js +1 -1
- package/dist/esm/eds-app-root.entry.js +33 -0
- package/dist/esm/eds-avatar_4.entry.js +173 -0
- package/dist/esm/eds-breadcrumb.entry.js +4 -18
- package/dist/esm/eds-card-generic.entry.js +88 -0
- package/dist/esm/eds-card-project.entry.js +1 -1
- package/dist/esm/eds-card-section.entry.js +35 -0
- package/dist/esm/eds-card-tags.entry.js +1 -1
- package/dist/esm/eds-card-tool.entry.js +1 -1
- package/dist/esm/eds-card-wrapper.entry.js +1 -1
- package/dist/esm/eds-code-block.entry.js +1 -1
- package/dist/esm/eds-components-section.entry.js +2 -2
- package/dist/esm/eds-cookies-preference.entry.js +2 -2
- package/dist/esm/eds-docs-palettes.entry.js +2 -2
- package/dist/esm/eds-docs-tokens.entry.js +2 -2
- package/dist/esm/{eds-dropdown_2.entry.js → eds-dropdown.entry.js} +9 -41
- package/dist/esm/eds-feedback.entry.js +62 -0
- package/dist/esm/eds-form.entry.js +237 -254
- package/dist/esm/eds-frame.entry.js +32 -32
- 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-bluesky.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-close.entry.js +2 -2
- package/dist/esm/eds-icon-copy.entry.js +2 -2
- package/dist/esm/eds-icon-eu.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-more.entry.js +2 -2
- package/dist/esm/eds-icon-search.entry.js +2 -2
- package/dist/esm/eds-icon-star.entry.js +14 -0
- package/dist/esm/eds-icon-success.entry.js +2 -2
- package/dist/esm/eds-icon-thumbs-down.entry.js +14 -0
- package/dist/esm/eds-icon-thumbs-up.entry.js +14 -0
- package/dist/esm/eds-icon-twitter.entry.js +2 -2
- package/dist/esm/eds-icon-user.entry.js +2 -2
- package/dist/esm/eds-icon-youtube.entry.js +2 -2
- package/dist/esm/{keycloak-d502ec16.js → eds-login_2.entry.js} +139 -1
- package/dist/esm/eds-logo-variations.entry.js +2 -2
- package/dist/esm/eds-modal.entry.js +15 -3
- package/dist/esm/eds-progress-bar.entry.js +2 -2
- package/dist/esm/eds-rating.entry.js +31 -25
- package/dist/esm/eds-section-core_2.entry.js +4 -4
- package/dist/esm/eds-spinner.entry.js +50 -0
- package/dist/esm/eds-steps.entry.js +9 -19
- package/dist/esm/eds-svg-repository.entry.js +9 -3
- package/dist/esm/eds-switch.entry.js +3 -3
- package/dist/esm/eds-tabs.entry.js +10 -24
- package/dist/esm/eds-timeline.entry.js +4 -22
- package/dist/esm/eds-toast-manager.entry.js +42 -0
- package/dist/esm/eds-toast.entry.js +72 -0
- package/dist/esm/eds-tooltip.entry.js +2 -2
- package/dist/esm/eds-trl.entry.js +2 -2
- package/dist/esm/eds-user.entry.js +9 -79
- package/dist/esm/eds-vertical-stepper.entry.js +2 -2
- package/dist/esm/formUtils-ac68474d.js +223 -0
- package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
- package/dist/esm/{index-e96badea.js → index-8a71b9a7.js} +51 -55
- 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-wrong-usage.entry.js +2 -2
- package/dist/esm/sharedUtils-a550989c.js +19 -0
- package/dist/esm/star-0da9b5e9.js +5 -0
- package/dist/esm/thumbs-down-a18fd049.js +5 -0
- package/dist/esm/thumbs-up-c19a71bc.js +6 -0
- 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 +1353 -1001
- package/dist/hydrate/index.mjs +1353 -1001
- package/dist/stencil.config.js +26 -0
- package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +4 -1
- package/dist/types/components/eds-accordion/eds-accordion.d.ts +3 -3
- package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +5 -0
- package/dist/types/components/eds-form/eds-form.d.ts +52 -20
- package/dist/types/components/eds-form-v2/eds-form-v2.d.ts +99 -0
- package/dist/types/components/eds-form-v2/eds-form-v2.stories.d.ts +27 -0
- package/dist/types/components/eds-icons/eds-icon-star/eds-icon-star.d.ts +10 -0
- package/dist/types/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.d.ts +10 -0
- package/dist/types/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.d.ts +10 -0
- package/dist/types/components/eds-input-elements/eds-input-search/eds-input-search.d.ts +6 -1
- package/dist/types/components/eds-modal/eds-modal.d.ts +8 -0
- package/dist/types/components/eds-pagination/eds-pagination.d.ts +1 -1
- package/dist/types/components/eds-rating/eds-rating.d.ts +19 -11
- package/dist/types/components/eds-rating/eds-rating.stories.d.ts +13 -27
- package/dist/types/components/eds-spinner/eds-spinner.d.ts +27 -0
- package/dist/types/components/eds-spinner/eds-spinner.stories.d.ts +42 -0
- package/dist/types/components/eds-steps/eds-steps.d.ts +1 -1
- package/dist/types/components/eds-table/eds-table.stories.d.ts +6 -0
- package/dist/types/components.d.ts +610 -321
- package/dist/types/{components → eds-docs-ui}/eds-frame/eds-frame.d.ts +26 -6
- package/dist/types/{components → eds-docs-ui}/eds-frame/eds-frame.stories.d.ts +8 -13
- package/dist/types/shared-ui/eds-feedback/eds-feedback.d.ts +56 -0
- package/dist/types/shared-ui/eds-feedback/eds-feedback.stories.d.ts +77 -0
- package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +0 -28
- package/dist/types/shared-ui/eds-login/eds-login.d.ts +12 -1
- package/dist/types/{components → shared-ui}/eds-matomo-notice/eds-matomo-notice.d.ts +5 -12
- package/dist/types/{components → shared-ui}/eds-matomo-notice/eds-matomo-notice.stories.d.ts +2 -1
- package/dist/types/shared-ui/eds-splash-screen/eds-splash-screen.d.ts +31 -0
- package/dist/types/shared-ui/eds-splash-screen/eds-splash-screen.stories.d.ts +22 -0
- package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +3 -3
- package/dist/types/shared-ui/eds-tabs/eds-tabs.stories.d.ts +5 -2
- package/dist/types/shared-ui/eds-toast-manager/eds-toast-manager.d.ts +3 -0
- package/dist/types/shared-ui/eds-user/eds-user.d.ts +12 -66
- package/dist/types/shared-ui/eds-user/eds-user.stories.d.ts +32 -0
- package/dist/types/shared-ui/examples/eds-app-root/eds-app-root.d.ts +9 -0
- package/dist/types/utils/api.d.ts +5 -0
- package/dist/types/utils/eds-form/formUtils.d.ts +38 -0
- package/dist/types/utils/eds-form/formValidators.d.ts +17 -0
- package/dist/types/utils/eds-form/individualValidator.d.ts +3 -0
- package/dist/types/utils/eds-form/validateInput.d.ts +10 -0
- package/dist/types/utils/sharedUtils.d.ts +1 -0
- package/package.json +3 -3
- package/dist/cjs/eds-accordion_13.cjs.entry.js +0 -911
- package/dist/cjs/eds-block-break.cjs.entry.js +0 -21
- package/dist/cjs/eds-footer.cjs.entry.js +0 -41
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +0 -100
- package/dist/cjs/eds-header.cjs.entry.js +0 -97
- package/dist/cjs/eds-input_7.cjs.entry.js +0 -324
- package/dist/cjs/eds-link.cjs.entry.js +0 -214
- package/dist/cjs/eds-login.cjs.entry.js +0 -91
- package/dist/cjs/eds-logo.cjs.entry.js +0 -78
- package/dist/cjs/eds-navigator.cjs.entry.js +0 -43
- package/dist/cjs/eds-pagination_2.cjs.entry.js +0 -386
- package/dist/cjs/eds-social-networks.cjs.entry.js +0 -66
- package/dist/cjs/eds-tab.cjs.entry.js +0 -40
- package/dist/cjs/eds-tabs-content.cjs.entry.js +0 -133
- package/dist/collection/components/eds-frame/eds-frame.stories.js +0 -68
- package/dist/collection/components/eds-navigator/eds-navigator.js +0 -147
- package/dist/collection/components/eds-navigator/eds-navigator.stories.js +0 -101
- package/dist/collection/components/eds-tab/eds-tab.js +0 -109
- package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +0 -194
- package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.stories.js +0 -112
- package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +0 -109
- package/dist/components/eds-navigator.js +0 -75
- package/dist/components/eds-tab.js +0 -6
- package/dist/components/eds-tab2.js +0 -55
- package/dist/components/eds-tabs-content.js +0 -159
- package/dist/components/eds-user-modal.js +0 -6
- package/dist/components/eds-user-modal2.js +0 -87
- package/dist/components/p-06299762.entry.js +0 -1
- package/dist/components/p-0a3b2576.entry.js +0 -1
- package/dist/components/p-0ab85eee.entry.js +0 -1
- package/dist/components/p-0e7bdd2c.entry.js +0 -1
- package/dist/components/p-10b81c47.entry.js +0 -1
- package/dist/components/p-1ae529f3.entry.js +0 -1
- package/dist/components/p-1ed3fdb7.entry.js +0 -1
- package/dist/components/p-21d42cf3.entry.js +0 -1
- package/dist/components/p-2831a9d5.entry.js +0 -1
- package/dist/components/p-2c00bd76.entry.js +0 -1
- package/dist/components/p-34a65e58.entry.js +0 -1
- package/dist/components/p-38d70586.entry.js +0 -1
- package/dist/components/p-3a7aa1eb.entry.js +0 -1
- package/dist/components/p-42d3c324.entry.js +0 -1
- package/dist/components/p-4a12a131.entry.js +0 -1
- package/dist/components/p-4b3fbd6d.entry.js +0 -1
- package/dist/components/p-4ea027ac.entry.js +0 -1
- package/dist/components/p-5980a142.entry.js +0 -1
- package/dist/components/p-599c7b97.entry.js +0 -1
- package/dist/components/p-5a2b8b6c.entry.js +0 -1
- package/dist/components/p-65703520.entry.js +0 -1
- package/dist/components/p-659ed449.entry.js +0 -1
- package/dist/components/p-6af40c33.entry.js +0 -1
- package/dist/components/p-6df9db15.entry.js +0 -1
- package/dist/components/p-759b2640.entry.js +0 -1
- package/dist/components/p-7b3b26b0.entry.js +0 -1
- package/dist/components/p-80a185ba.entry.js +0 -1
- package/dist/components/p-86fbc239.entry.js +0 -1
- package/dist/components/p-8c4a0fc9.entry.js +0 -1
- package/dist/components/p-8eab748d.js +0 -1
- package/dist/components/p-911d9b37.entry.js +0 -1
- package/dist/components/p-9579f9c2.entry.js +0 -1
- package/dist/components/p-96fe2267.entry.js +0 -1
- package/dist/components/p-9739def5.entry.js +0 -1
- package/dist/components/p-9b441a1f.entry.js +0 -1
- package/dist/components/p-a5b7d72d.entry.js +0 -1
- package/dist/components/p-a5d00633.entry.js +0 -1
- package/dist/components/p-a63bd0c9.entry.js +0 -1
- package/dist/components/p-a846dbca.entry.js +0 -1
- package/dist/components/p-a927a455.entry.js +0 -1
- package/dist/components/p-aec9b8e1.entry.js +0 -1
- package/dist/components/p-b3c1aef5.entry.js +0 -1
- package/dist/components/p-b60ed774.entry.js +0 -1
- package/dist/components/p-b67aafe7.entry.js +0 -1
- package/dist/components/p-b79999d5.entry.js +0 -1
- package/dist/components/p-b80457ed.entry.js +0 -1
- package/dist/components/p-bd43d83c.entry.js +0 -1
- package/dist/components/p-c5fa170d.entry.js +0 -1
- package/dist/components/p-c683be2c.entry.js +0 -1
- package/dist/components/p-d2a0b896.entry.js +0 -1
- package/dist/components/p-d5850ab3.entry.js +0 -1
- package/dist/components/p-de12396f.entry.js +0 -1
- package/dist/components/p-de2fbcfc.entry.js +0 -1
- package/dist/components/p-e2c250c5.entry.js +0 -1
- package/dist/components/p-e334f5bc.entry.js +0 -1
- package/dist/components/p-f1cd83da.entry.js +0 -1
- package/dist/components/p-f5dafbc8.entry.js +0 -1
- package/dist/components/p-f7493f41.entry.js +0 -1
- package/dist/components/p-fce25541.entry.js +0 -1
- package/dist/esm/eds-block-break.entry.js +0 -17
- package/dist/esm/eds-footer.entry.js +0 -37
- package/dist/esm/eds-fullscreen-menu.entry.js +0 -96
- package/dist/esm/eds-header.entry.js +0 -93
- package/dist/esm/eds-input_7.entry.js +0 -314
- package/dist/esm/eds-link.entry.js +0 -210
- package/dist/esm/eds-login.entry.js +0 -87
- package/dist/esm/eds-logo.entry.js +0 -74
- package/dist/esm/eds-navigator.entry.js +0 -39
- package/dist/esm/eds-pagination_2.entry.js +0 -381
- package/dist/esm/eds-social-networks.entry.js +0 -62
- package/dist/esm/eds-tab.entry.js +0 -36
- package/dist/esm/eds-tabs-content.entry.js +0 -129
- package/dist/types/components/eds-navigator/eds-navigator.d.ts +0 -42
- package/dist/types/components/eds-navigator/eds-navigator.stories.d.ts +0 -46
- package/dist/types/components/eds-tab/eds-tab.d.ts +0 -15
- package/dist/types/shared-ui/eds-tabs-content/eds-tabs-content.d.ts +0 -36
- package/dist/types/shared-ui/eds-tabs-content/eds-tabs-content.stories.d.ts +0 -16
- package/dist/types/shared-ui/eds-user-modal/eds-user-modal.d.ts +0 -47
- /package/dist/collection/{components → shared-ui}/eds-matomo-notice/eds-matomo-notice.css +0 -0
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-f08e4f5c.js');
|
|
6
|
-
const index$1 = require('./index-ab9fbefe.js');
|
|
7
|
-
|
|
8
|
-
const EdsTab = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
index.registerInstance(this, hostRef);
|
|
11
|
-
this.tabCva = index$1.cva([
|
|
12
|
-
'cursor-pointer',
|
|
13
|
-
//'px-16 py-12',
|
|
14
|
-
//'border-b-2',
|
|
15
|
-
'text-gray-700',
|
|
16
|
-
'hover:text-black',
|
|
17
|
-
'focus:outline-none',
|
|
18
|
-
'focus-visible:ring'
|
|
19
|
-
], {
|
|
20
|
-
variants: {
|
|
21
|
-
active: {
|
|
22
|
-
true: 'border-blue-500 font-bold text-blue-600',
|
|
23
|
-
false: 'border-transparent'
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
defaultVariants: {
|
|
27
|
-
active: false
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
this.label = undefined;
|
|
31
|
-
this.url = undefined;
|
|
32
|
-
this.active = false;
|
|
33
|
-
this.ariaLabel = undefined;
|
|
34
|
-
}
|
|
35
|
-
render() {
|
|
36
|
-
return (index.h("a", { key: 'a55be2a07e554ab13a0d7e913710382d6126da57', "aria-label": this.label, "aria-current": this.active, class: this.tabCva({ active: this.active }) }, this.label));
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
exports.eds_tab = EdsTab;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-f08e4f5c.js');
|
|
6
|
-
const analytics = require('./analytics-d8fb3fdd.js');
|
|
7
|
-
const index$1 = require('./index-ab9fbefe.js');
|
|
8
|
-
|
|
9
|
-
const EdsTabsContent = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.tabContentChange = index.createEvent(this, "tabContentChange", 7);
|
|
13
|
-
// cva configuration
|
|
14
|
-
this.tabCva = index$1.cva([
|
|
15
|
-
'relative px-16 py-12',
|
|
16
|
-
'f-ui-03 whitespace-nowrap',
|
|
17
|
-
'effect-color',
|
|
18
|
-
'focus-visible:text-default hover:text-default',
|
|
19
|
-
'border-2',
|
|
20
|
-
"after:content-[''] after:absolute after:inset-0 after:rounded-t-lg after:border-3 after:border-accent after:opacity-0",
|
|
21
|
-
'outline-none focus:outline-none focus-visible:outline-none focus-visible:after:opacity-100'
|
|
22
|
-
], {
|
|
23
|
-
variants: {
|
|
24
|
-
position: {
|
|
25
|
-
left: 'rounded-tl-lg border-r-0 pr-28 -mr-16 after:right-16',
|
|
26
|
-
right: 'rounded-tr-lg border-l-0 pl-28 -ml-16 after:left-16',
|
|
27
|
-
center: '',
|
|
28
|
-
first: 'rounded-t-lg'
|
|
29
|
-
},
|
|
30
|
-
active: {
|
|
31
|
-
false: 'text-lighter bg-dark hover:bg-darker border-softest',
|
|
32
|
-
true: [
|
|
33
|
-
'bg-default text-default z-99',
|
|
34
|
-
'rounded-t-lg',
|
|
35
|
-
"before:content-[''] before:absolute before:-bottom-2 z-1 before:inset-x-0 before:h-3 before:bg-default",
|
|
36
|
-
'border-[#d2d2d2]'
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
this.navAriaLabel = 'Tabs';
|
|
42
|
-
this.tabs = undefined;
|
|
43
|
-
this.parsedTabs = [];
|
|
44
|
-
this.activeIndex = -1;
|
|
45
|
-
}
|
|
46
|
-
componentWillLoad() {
|
|
47
|
-
this.parseTabs();
|
|
48
|
-
this.setActiveIndex();
|
|
49
|
-
}
|
|
50
|
-
parseTabs() {
|
|
51
|
-
try {
|
|
52
|
-
this.parsedTabs = JSON.parse(this.tabs);
|
|
53
|
-
}
|
|
54
|
-
catch (error) {
|
|
55
|
-
//console.error('Invalid JSON format for tabs:', error);
|
|
56
|
-
this.parsedTabs = [];
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
componentDidLoad() {
|
|
60
|
-
this.initializeTabContentVisibility();
|
|
61
|
-
this.el.addEventListener('tabContentChange', (e) => {
|
|
62
|
-
this.updateTabContentVisibility(e.detail.index);
|
|
63
|
-
});
|
|
64
|
-
this.scrollToActiveTab();
|
|
65
|
-
}
|
|
66
|
-
initializeTabContentVisibility() {
|
|
67
|
-
const allContent = this.el.querySelectorAll('.tab-content');
|
|
68
|
-
allContent.forEach((content, index) => {
|
|
69
|
-
content.setAttribute('style', `display: ${index === this.activeIndex ? 'block' : 'none'}`);
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
updateTabContentVisibility(index) {
|
|
73
|
-
const allContent = this.el.querySelectorAll('.tab-content');
|
|
74
|
-
allContent.forEach((content, contentIndex) => {
|
|
75
|
-
content.setAttribute('style', `display: ${contentIndex === index ? 'block' : 'none'}`);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
setActiveIndex() {
|
|
79
|
-
this.activeIndex = this.parsedTabs.findIndex((tab) => tab.active);
|
|
80
|
-
}
|
|
81
|
-
scrollToActiveTab() {
|
|
82
|
-
var _a;
|
|
83
|
-
const activeTab = (_a = this.tabContainer) === null || _a === void 0 ? void 0 : _a.querySelector('[data-tab-active]');
|
|
84
|
-
if (activeTab) {
|
|
85
|
-
setTimeout(() => {
|
|
86
|
-
activeTab.scrollIntoView({
|
|
87
|
-
inline: 'center',
|
|
88
|
-
block: 'nearest'
|
|
89
|
-
});
|
|
90
|
-
}, 316);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
getTabOptions(active, index) {
|
|
94
|
-
const position = active
|
|
95
|
-
? 'center'
|
|
96
|
-
: this.activeIndex === -1 && index === 0
|
|
97
|
-
? 'first'
|
|
98
|
-
: index < this.activeIndex
|
|
99
|
-
? 'left'
|
|
100
|
-
: 'right';
|
|
101
|
-
return Object.assign({ class: this.tabCva({
|
|
102
|
-
active,
|
|
103
|
-
position
|
|
104
|
-
}), style: {
|
|
105
|
-
zIndex: `${active ? this.parsedTabs.length + 99 : position === 'left' ? index : this.parsedTabs.length + 1 - index}`
|
|
106
|
-
} }, (active ? { 'data-tab-active': 'true' } : {}));
|
|
107
|
-
}
|
|
108
|
-
handleTabClick(index, tabLabel) {
|
|
109
|
-
// Update the active index and set all tabs' active state accordingly
|
|
110
|
-
this.activeIndex = index;
|
|
111
|
-
this.parsedTabs = this.parsedTabs.map((tab, tabIndex) => (Object.assign(Object.assign({}, tab), { active: tabIndex === index })));
|
|
112
|
-
this.tabContentChange.emit({ index: index, name: tabLabel });
|
|
113
|
-
analytics.sendAnalytics({
|
|
114
|
-
category: 'ui-component',
|
|
115
|
-
tag: this.el.tagName.toLowerCase(),
|
|
116
|
-
name: (tabLabel === null || tabLabel === void 0 ? void 0 : tabLabel.toLowerCase()) || '',
|
|
117
|
-
action: 'click'
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
render() {
|
|
121
|
-
return (index.h("div", { key: 'd94df79c55522088de5445587758a5eea028b313', class: "after:border-softest 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-['']" }, index.h("div", { key: 'e7d01a2e6b424c25749c0d70305fb1c8c55bef74', class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, index.h("nav", { key: 'ef8ff8a02e570dfcf8143997ace793a65917e6ca', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index$1) => {
|
|
122
|
-
//const TabComponent = tab.active ? 'span' : 'a';
|
|
123
|
-
const tabProps = this.getTabOptions(tab.active, index$1);
|
|
124
|
-
return (index.h("eds-tab", Object.assign({}, tabProps, { label: tab.label, url: tab.url, active: index$1 === this.activeIndex, ariaLabel: tab.ariaLabel, onClick: () => this.handleTabClick(index$1, tab.label) })));
|
|
125
|
-
})), index.h("slot", { key: '8f014081c3bc2a8a3013aea3aff32690d6f71c85' }))));
|
|
126
|
-
}
|
|
127
|
-
get el() { return index.getElement(this); }
|
|
128
|
-
static get watchers() { return {
|
|
129
|
-
"tabs": ["parseTabs"]
|
|
130
|
-
}; }
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
exports.eds_tabs_content = EdsTabsContent;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { html } from "lit-html";
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Components/Frame',
|
|
4
|
-
component: 'eds-frame',
|
|
5
|
-
argTypes: {
|
|
6
|
-
frameLabel: { control: 'text', description: 'The label of the frame. This is displayed as the title.' },
|
|
7
|
-
urlLabel: { control: 'text', description: 'The label for the URL link.' },
|
|
8
|
-
urlLink: {
|
|
9
|
-
control: 'text',
|
|
10
|
-
description: 'The URL that the iframe will display and the title links to, if provided.'
|
|
11
|
-
},
|
|
12
|
-
src: { control: 'text', description: 'The source URL for the iframe.' },
|
|
13
|
-
intent: {
|
|
14
|
-
control: { type: 'select' },
|
|
15
|
-
options: ['primary', 'secondary', 'tertiary', 'ghost', 'strong', 'weak', 'inverse', 'underline'],
|
|
16
|
-
description: 'Intent for styling the link.'
|
|
17
|
-
},
|
|
18
|
-
tiny: { control: 'boolean', description: 'Determines whether the frame has a smaller height.' },
|
|
19
|
-
bg: { control: 'boolean', description: 'Determines whether the frame has a background color.' },
|
|
20
|
-
withHover: { control: 'boolean', description: 'Determines whether the frame has a hover effect.' }
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
const Template = ({ frameLabel, urlLabel, urlLink, src, intent, tiny, bg, withHover }) => html `
|
|
24
|
-
<eds-frame
|
|
25
|
-
frame-label=${frameLabel}
|
|
26
|
-
url-label=${urlLabel}
|
|
27
|
-
url-link=${urlLink}
|
|
28
|
-
src=${src}
|
|
29
|
-
intent=${intent}
|
|
30
|
-
?tiny=${tiny}
|
|
31
|
-
?bg=${bg}
|
|
32
|
-
?with-hover=${withHover}
|
|
33
|
-
></eds-frame>
|
|
34
|
-
`;
|
|
35
|
-
export const Default = Template.bind({});
|
|
36
|
-
Default.args = {
|
|
37
|
-
frameLabel: 'Default Frame',
|
|
38
|
-
urlLabel: 'Visit Site',
|
|
39
|
-
urlLink: 'https://gitlab-org.gitlab.io/gitlab-ui?path=%2Fstory%2Fbase-card--default',
|
|
40
|
-
src: 'https://gitlab-org.gitlab.io/gitlab-ui/iframe.html?id=base-card--default&viewMode=story',
|
|
41
|
-
intent: 'primary',
|
|
42
|
-
tiny: false,
|
|
43
|
-
bg: true,
|
|
44
|
-
withHover: true
|
|
45
|
-
};
|
|
46
|
-
/*export const SmallFrame = Template.bind({});
|
|
47
|
-
SmallFrame.args = {
|
|
48
|
-
frameLabel: 'Small Frame',
|
|
49
|
-
urlLabel: 'Small Frame Link',
|
|
50
|
-
urlLink: 'https://gitlab-org.gitlab.io/gitlab-ui?path=%2Fstory%2Fbase-card--default',
|
|
51
|
-
src: 'https://gitlab-org.gitlab.io/gitlab-ui/iframe.html?id=base-card--default&viewMode=story',
|
|
52
|
-
intent: 'secondary',
|
|
53
|
-
tiny: true,
|
|
54
|
-
bg: true,
|
|
55
|
-
withHover: false
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export const ErrorState = Template.bind({});
|
|
59
|
-
ErrorState.args = {
|
|
60
|
-
frameLabel: 'Error Frame',
|
|
61
|
-
urlLabel: 'Error Link',
|
|
62
|
-
urlLink: 'https://errorframe.com',
|
|
63
|
-
src: 'https://invalid-url.com', // Simulating a broken URL to trigger the error state
|
|
64
|
-
intent: 'inverse',
|
|
65
|
-
tiny: false,
|
|
66
|
-
bg: false,
|
|
67
|
-
withHover: true
|
|
68
|
-
};*/
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export class EdsNavigator {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.prevLabel = undefined;
|
|
8
|
-
this.nextLabel = undefined;
|
|
9
|
-
this.prevUrl = undefined;
|
|
10
|
-
this.nextUrl = undefined;
|
|
11
|
-
this.linkSize = 'small';
|
|
12
|
-
this.linkIntent = 'tertiary';
|
|
13
|
-
}
|
|
14
|
-
componentDidLoad() {
|
|
15
|
-
// Emit context for each eds-link element after the component is fully loaded
|
|
16
|
-
const links = this.el.querySelectorAll('eds-link');
|
|
17
|
-
links.forEach((link) => {
|
|
18
|
-
this.emitContext(link);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Emits a custom event 'parentContext' for a given link element with the component's context.
|
|
23
|
-
* @param linkElement - The eds-link element to emit the event for.
|
|
24
|
-
*/
|
|
25
|
-
emitContext(linkElement) {
|
|
26
|
-
const event = new CustomEvent('parentContext', {
|
|
27
|
-
detail: {
|
|
28
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
29
|
-
identifier: null
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
linkElement.dispatchEvent(event);
|
|
33
|
-
}
|
|
34
|
-
render() {
|
|
35
|
-
return (h("ul", { key: '712287e683436cc98c2d6ef195501add1929522e', class: "flex lg:flex grow items-center justify-center gap-x-8" }, this.prevLabel && (h("eds-link", { key: '4fda36ce37897284d7062f88133f147831d96a6f', label: this.prevLabel, url: this.prevUrl || undefined, disabled: !this.prevUrl, "aria-label": this.prevLabel, size: this.linkSize, intent: this.linkIntent, class: "mr-auto !p-8 lg:!pr-12" }, h("eds-icon-wrapper", { key: '9bfa6bbbdc68641f65bec49f207d96f075b9a5b0', icon: "chevron-left" }), this.prevLabel)), this.nextLabel && (h("eds-link", { key: '6ee8ebee011a2c30a74645b072c7c37929d0a55f', label: this.nextLabel, url: this.nextUrl || undefined, disabled: !this.nextUrl, "aria-label": this.nextLabel, size: this.linkSize, intent: this.linkIntent, class: "ml-auto !p-8 lg:!pl-12" }, this.nextLabel, h("eds-icon-wrapper", { key: '44ebd4dcce0e367df7d9035bb445e49fde35e913', icon: "chevron-right", class: "w-20 h-20" })))));
|
|
36
|
-
}
|
|
37
|
-
static get is() { return "eds-navigator"; }
|
|
38
|
-
static get properties() {
|
|
39
|
-
return {
|
|
40
|
-
"prevLabel": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"mutable": false,
|
|
43
|
-
"complexType": {
|
|
44
|
-
"original": "string",
|
|
45
|
-
"resolved": "string",
|
|
46
|
-
"references": {}
|
|
47
|
-
},
|
|
48
|
-
"required": false,
|
|
49
|
-
"optional": true,
|
|
50
|
-
"docs": {
|
|
51
|
-
"tags": [],
|
|
52
|
-
"text": "Label for the previous navigation link."
|
|
53
|
-
},
|
|
54
|
-
"attribute": "prev-label",
|
|
55
|
-
"reflect": false
|
|
56
|
-
},
|
|
57
|
-
"nextLabel": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"mutable": false,
|
|
60
|
-
"complexType": {
|
|
61
|
-
"original": "string",
|
|
62
|
-
"resolved": "string",
|
|
63
|
-
"references": {}
|
|
64
|
-
},
|
|
65
|
-
"required": false,
|
|
66
|
-
"optional": true,
|
|
67
|
-
"docs": {
|
|
68
|
-
"tags": [],
|
|
69
|
-
"text": "Label for the next navigation link."
|
|
70
|
-
},
|
|
71
|
-
"attribute": "next-label",
|
|
72
|
-
"reflect": false
|
|
73
|
-
},
|
|
74
|
-
"prevUrl": {
|
|
75
|
-
"type": "string",
|
|
76
|
-
"mutable": false,
|
|
77
|
-
"complexType": {
|
|
78
|
-
"original": "string",
|
|
79
|
-
"resolved": "string",
|
|
80
|
-
"references": {}
|
|
81
|
-
},
|
|
82
|
-
"required": false,
|
|
83
|
-
"optional": true,
|
|
84
|
-
"docs": {
|
|
85
|
-
"tags": [],
|
|
86
|
-
"text": "URL for the previous navigation link. If not provided, the link will be disabled."
|
|
87
|
-
},
|
|
88
|
-
"attribute": "prev-url",
|
|
89
|
-
"reflect": false
|
|
90
|
-
},
|
|
91
|
-
"nextUrl": {
|
|
92
|
-
"type": "string",
|
|
93
|
-
"mutable": false,
|
|
94
|
-
"complexType": {
|
|
95
|
-
"original": "string",
|
|
96
|
-
"resolved": "string",
|
|
97
|
-
"references": {}
|
|
98
|
-
},
|
|
99
|
-
"required": false,
|
|
100
|
-
"optional": true,
|
|
101
|
-
"docs": {
|
|
102
|
-
"tags": [],
|
|
103
|
-
"text": "URL for the next navigation link. If not provided, the link will be disabled."
|
|
104
|
-
},
|
|
105
|
-
"attribute": "next-url",
|
|
106
|
-
"reflect": false
|
|
107
|
-
},
|
|
108
|
-
"linkSize": {
|
|
109
|
-
"type": "string",
|
|
110
|
-
"mutable": false,
|
|
111
|
-
"complexType": {
|
|
112
|
-
"original": "'small' | 'large'",
|
|
113
|
-
"resolved": "\"large\" | \"small\"",
|
|
114
|
-
"references": {}
|
|
115
|
-
},
|
|
116
|
-
"required": false,
|
|
117
|
-
"optional": false,
|
|
118
|
-
"docs": {
|
|
119
|
-
"tags": [],
|
|
120
|
-
"text": "Size of the links. Can be 'small', 'medium', or 'large'.\nDefault is 'small'."
|
|
121
|
-
},
|
|
122
|
-
"attribute": "link-size",
|
|
123
|
-
"reflect": false,
|
|
124
|
-
"defaultValue": "'small'"
|
|
125
|
-
},
|
|
126
|
-
"linkIntent": {
|
|
127
|
-
"type": "string",
|
|
128
|
-
"mutable": false,
|
|
129
|
-
"complexType": {
|
|
130
|
-
"original": "'ghost' | 'primary' | 'secondary' | 'tertiary' | 'ghost'",
|
|
131
|
-
"resolved": "\"ghost\" | \"primary\" | \"secondary\" | \"tertiary\"",
|
|
132
|
-
"references": {}
|
|
133
|
-
},
|
|
134
|
-
"required": false,
|
|
135
|
-
"optional": false,
|
|
136
|
-
"docs": {
|
|
137
|
-
"tags": [],
|
|
138
|
-
"text": "Intent of the links. Can be 'ghost', 'primary', 'secondary', etc.\nDefault is 'ghost'."
|
|
139
|
-
},
|
|
140
|
-
"attribute": "link-intent",
|
|
141
|
-
"reflect": false,
|
|
142
|
-
"defaultValue": "'tertiary'"
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
static get elementRef() { return "el"; }
|
|
147
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'Components/Navigator',
|
|
3
|
-
component: 'eds-navigator',
|
|
4
|
-
includeStories: [], // Excludes all stories in this file
|
|
5
|
-
argTypes: {
|
|
6
|
-
prevLabel: {
|
|
7
|
-
control: 'text',
|
|
8
|
-
description: 'Label for the previous navigation link.',
|
|
9
|
-
defaultValue: 'Previous Page'
|
|
10
|
-
},
|
|
11
|
-
nextLabel: {
|
|
12
|
-
control: 'text',
|
|
13
|
-
description: 'Label for the next navigation link.',
|
|
14
|
-
defaultValue: 'Next Page'
|
|
15
|
-
},
|
|
16
|
-
prevUrl: {
|
|
17
|
-
control: 'text',
|
|
18
|
-
description: 'URL for the previous navigation link. If not provided, the link will be disabled.',
|
|
19
|
-
defaultValue: '#'
|
|
20
|
-
},
|
|
21
|
-
nextUrl: {
|
|
22
|
-
control: 'text',
|
|
23
|
-
description: 'URL for the next navigation link. If not provided, the link will be disabled.',
|
|
24
|
-
defaultValue: '#'
|
|
25
|
-
},
|
|
26
|
-
linkSize: {
|
|
27
|
-
control: 'select',
|
|
28
|
-
options: ['small', 'large'],
|
|
29
|
-
description: 'Size of the links. Can be small, medium, or large.',
|
|
30
|
-
defaultValue: 'small'
|
|
31
|
-
},
|
|
32
|
-
linkIntent: {
|
|
33
|
-
control: 'select',
|
|
34
|
-
options: ['ghost', 'primary', 'secondary', 'tertiary'],
|
|
35
|
-
description: 'Intent of the links. Can be ghost, primary, secondary, etc.',
|
|
36
|
-
defaultValue: 'ghost'
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
const Template = (args) => `
|
|
41
|
-
<eds-navigator
|
|
42
|
-
prev-label="${args.prevLabel}"
|
|
43
|
-
next-label="${args.nextLabel}"
|
|
44
|
-
prev-url="${args.prevUrl}"
|
|
45
|
-
next-url="${args.nextUrl}"
|
|
46
|
-
link-size="${args.linkSize}"
|
|
47
|
-
link-intent="${args.linkIntent}"
|
|
48
|
-
></eds-navigator>
|
|
49
|
-
`;
|
|
50
|
-
export const Default = Template.bind({});
|
|
51
|
-
Default.args = {
|
|
52
|
-
prevLabel: 'Previous Page',
|
|
53
|
-
nextLabel: 'Next Page',
|
|
54
|
-
prevUrl: '#',
|
|
55
|
-
nextUrl: '#',
|
|
56
|
-
linkSize: 'small',
|
|
57
|
-
linkIntent: 'ghost'
|
|
58
|
-
};
|
|
59
|
-
export const MediumPrimaryLinks = Template.bind({});
|
|
60
|
-
MediumPrimaryLinks.args = {
|
|
61
|
-
prevLabel: 'Back',
|
|
62
|
-
nextLabel: 'Continue',
|
|
63
|
-
prevUrl: '#',
|
|
64
|
-
nextUrl: '#',
|
|
65
|
-
linkSize: 'small',
|
|
66
|
-
linkIntent: 'primary'
|
|
67
|
-
};
|
|
68
|
-
export const LargeSecondaryLinks = Template.bind({});
|
|
69
|
-
LargeSecondaryLinks.args = {
|
|
70
|
-
prevLabel: 'Go Back',
|
|
71
|
-
nextLabel: 'Next Step',
|
|
72
|
-
prevUrl: '#',
|
|
73
|
-
nextUrl: '#',
|
|
74
|
-
linkSize: 'large',
|
|
75
|
-
linkIntent: 'secondary'
|
|
76
|
-
};
|
|
77
|
-
export const OnlyNextLink = Template.bind({});
|
|
78
|
-
OnlyNextLink.args = {
|
|
79
|
-
prevLabel: '',
|
|
80
|
-
nextLabel: 'Proceed',
|
|
81
|
-
nextUrl: '#',
|
|
82
|
-
linkSize: 'small',
|
|
83
|
-
linkIntent: 'primary'
|
|
84
|
-
};
|
|
85
|
-
export const OnlyPrevLink = Template.bind({});
|
|
86
|
-
OnlyPrevLink.args = {
|
|
87
|
-
prevLabel: 'Return',
|
|
88
|
-
nextLabel: '',
|
|
89
|
-
prevUrl: '#',
|
|
90
|
-
linkSize: 'small',
|
|
91
|
-
linkIntent: 'secondary'
|
|
92
|
-
};
|
|
93
|
-
export const DisabledLinks = Template.bind({});
|
|
94
|
-
DisabledLinks.args = {
|
|
95
|
-
prevLabel: 'Previous (Disabled)',
|
|
96
|
-
nextLabel: 'Next (Disabled)',
|
|
97
|
-
prevUrl: '',
|
|
98
|
-
nextUrl: '',
|
|
99
|
-
linkSize: 'small',
|
|
100
|
-
linkIntent: 'ghost'
|
|
101
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { cva } from "class-variance-authority";
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export class EdsTab {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.tabCva = cva([
|
|
9
|
-
'cursor-pointer',
|
|
10
|
-
//'px-16 py-12',
|
|
11
|
-
//'border-b-2',
|
|
12
|
-
'text-gray-700',
|
|
13
|
-
'hover:text-black',
|
|
14
|
-
'focus:outline-none',
|
|
15
|
-
'focus-visible:ring'
|
|
16
|
-
], {
|
|
17
|
-
variants: {
|
|
18
|
-
active: {
|
|
19
|
-
true: 'border-blue-500 font-bold text-blue-600',
|
|
20
|
-
false: 'border-transparent'
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
active: false
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
this.label = undefined;
|
|
28
|
-
this.url = undefined;
|
|
29
|
-
this.active = false;
|
|
30
|
-
this.ariaLabel = undefined;
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
return (h("a", { key: 'a55be2a07e554ab13a0d7e913710382d6126da57', "aria-label": this.label, "aria-current": this.active, class: this.tabCva({ active: this.active }) }, this.label));
|
|
34
|
-
}
|
|
35
|
-
static get is() { return "eds-tab"; }
|
|
36
|
-
static get properties() {
|
|
37
|
-
return {
|
|
38
|
-
"label": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"mutable": false,
|
|
41
|
-
"complexType": {
|
|
42
|
-
"original": "string",
|
|
43
|
-
"resolved": "string",
|
|
44
|
-
"references": {}
|
|
45
|
-
},
|
|
46
|
-
"required": false,
|
|
47
|
-
"optional": false,
|
|
48
|
-
"docs": {
|
|
49
|
-
"tags": [],
|
|
50
|
-
"text": "The label of the tab"
|
|
51
|
-
},
|
|
52
|
-
"attribute": "label",
|
|
53
|
-
"reflect": false
|
|
54
|
-
},
|
|
55
|
-
"url": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"mutable": false,
|
|
58
|
-
"complexType": {
|
|
59
|
-
"original": "string",
|
|
60
|
-
"resolved": "string",
|
|
61
|
-
"references": {}
|
|
62
|
-
},
|
|
63
|
-
"required": false,
|
|
64
|
-
"optional": true,
|
|
65
|
-
"docs": {
|
|
66
|
-
"tags": [],
|
|
67
|
-
"text": "The URL or href of the tab"
|
|
68
|
-
},
|
|
69
|
-
"attribute": "url",
|
|
70
|
-
"reflect": false
|
|
71
|
-
},
|
|
72
|
-
"active": {
|
|
73
|
-
"type": "boolean",
|
|
74
|
-
"mutable": false,
|
|
75
|
-
"complexType": {
|
|
76
|
-
"original": "boolean",
|
|
77
|
-
"resolved": "boolean",
|
|
78
|
-
"references": {}
|
|
79
|
-
},
|
|
80
|
-
"required": false,
|
|
81
|
-
"optional": false,
|
|
82
|
-
"docs": {
|
|
83
|
-
"tags": [],
|
|
84
|
-
"text": "Whether the tab is active"
|
|
85
|
-
},
|
|
86
|
-
"attribute": "active",
|
|
87
|
-
"reflect": false,
|
|
88
|
-
"defaultValue": "false"
|
|
89
|
-
},
|
|
90
|
-
"ariaLabel": {
|
|
91
|
-
"type": "string",
|
|
92
|
-
"mutable": false,
|
|
93
|
-
"complexType": {
|
|
94
|
-
"original": "string",
|
|
95
|
-
"resolved": "string",
|
|
96
|
-
"references": {}
|
|
97
|
-
},
|
|
98
|
-
"required": false,
|
|
99
|
-
"optional": false,
|
|
100
|
-
"docs": {
|
|
101
|
-
"tags": [],
|
|
102
|
-
"text": "Aria label for accessibility"
|
|
103
|
-
},
|
|
104
|
-
"attribute": "aria-label",
|
|
105
|
-
"reflect": false
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
}
|