@ebrains/components 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
- package/dist/cjs/components-section.cjs.entry.js +1 -1
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/docs-palettes.cjs.entry.js +1 -1
- package/dist/cjs/docs-tokens.cjs.entry.js +1 -1
- package/dist/cjs/{eds-accordion_52.cjs.entry.js → eds-accordion_53.cjs.entry.js} +1095 -336
- package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +1 -1
- package/dist/cjs/eds-feedback.cjs.entry.js +1 -1
- package/dist/cjs/eds-frame.cjs.entry.js +1 -1
- package/dist/cjs/eds-gauge.cjs.entry.js +1 -1
- package/dist/cjs/eds-gitlab-contributors.cjs.entry.js +35 -32
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
- package/dist/cjs/eds-input-search.cjs.entry.js +76 -0
- package/dist/cjs/eds-modal.cjs.entry.js +18 -9
- package/dist/cjs/eds-pie.cjs.entry.js +2 -2
- package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
- package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
- package/dist/cjs/eds-toast-manager.cjs.entry.js +1 -1
- package/dist/cjs/eds-trl-badge.cjs.entry.js +184 -0
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/index-50bc1aa4.js +10 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/logo-space.cjs.entry.js +58 -1
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +2 -2
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +1 -1
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +1 -1
- package/dist/cjs/svg-repository.cjs.entry.js +1 -1
- package/dist/cjs/token-list_3.cjs.entry.js +3 -3
- package/dist/cjs/token-ratios.cjs.entry.js +1 -1
- package/dist/cjs/token-spacing.cjs.entry.js +1 -1
- package/dist/cjs/token-typography.cjs.entry.js +8 -2
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/eds-accordion/eds-accordion.css +3 -2
- package/dist/collection/components/eds-accordion/eds-accordion.js +2 -5
- package/dist/collection/components/eds-accordion/eds-accordion.stories.js +7 -19
- package/dist/collection/components/eds-alert/eds-alert.css +14 -0
- package/dist/collection/components/eds-alert/eds-alert.js +2 -1
- package/dist/collection/components/eds-alert/eds-alert.stories.js +19 -147
- package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
- package/dist/collection/components/eds-avatar/eds-avatar.stories.js +2 -2
- package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +1 -1
- package/dist/collection/components/eds-button/eds-button.css +15 -0
- package/dist/collection/components/eds-button/eds-button.js +17 -14
- package/dist/collection/components/eds-button/eds-button.stories.js +4 -1
- package/dist/collection/components/eds-cards/eds-card-app/eds-card-app.js +2 -5
- 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-title/eds-card-title.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-cta/eds-card-cta.css +10 -1
- package/dist/collection/components/eds-cards/eds-card-cta/eds-card-cta.js +2 -5
- package/dist/collection/components/eds-cards/eds-card-cta/eds-card-cta.stories.js +4 -1
- package/dist/collection/components/eds-cards/eds-card-feature/eds-card-feature.js +2 -5
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +2 -4
- package/dist/collection/components/eds-cards/eds-card-hero/eds-card-hero.js +6 -7
- package/dist/collection/components/eds-cards/eds-card-stat/eds-card-stat.js +6 -7
- package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +1 -1
- package/dist/collection/components/eds-charts/eds-pie/eds-pie.js +2 -2
- package/dist/collection/components/eds-code-block/eds-code-block.css +72 -106
- package/dist/collection/components/eds-code-block/eds-code-block.js +1 -1
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +30 -4
- package/dist/collection/components/eds-feedback/eds-feedback.js +1 -1
- package/dist/collection/components/eds-footer/eds-footer.css +143 -203
- package/dist/collection/components/eds-footer/eds-footer.js +176 -74
- package/dist/collection/components/eds-footer/eds-footer.stories.js +109 -17
- package/dist/collection/components/eds-form/eds-form.css +493 -1
- package/dist/collection/components/eds-form/eds-form.js +256 -14
- package/dist/collection/components/eds-form/eds-form.stories.js +110 -3
- package/dist/collection/components/eds-frame/eds-frame.js +1 -1
- package/dist/collection/components/eds-header/eds-header.js +1 -1
- package/dist/collection/components/eds-header/eds-header.stories.js +26 -12
- package/dist/collection/components/eds-icon-wrapper/eds-icon-wrapper.js +20 -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/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-img/eds-img.stories.js +29 -52
- package/dist/collection/components/eds-input-dropzone/eds-input-dropzone.js +7 -4
- package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +20 -2
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.css +39 -0
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +2 -1
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.css +17 -5
- 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 +15 -5
- 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-search/eds-input-search.stories.js +30 -0
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +6 -2
- package/dist/collection/components/eds-input-field/eds-input-field.css +219 -0
- package/dist/collection/components/eds-input-field/eds-input-field.js +16 -5
- package/dist/collection/components/eds-input-field/eds-input-field.stories.js +105 -125
- package/dist/collection/components/eds-input-file/eds-input-file.js +5 -3
- package/dist/collection/components/eds-link/eds-link.js +4 -8
- package/dist/collection/components/eds-link/eds-link.stories.js +13 -8
- package/dist/collection/components/eds-logo/eds-logo.js +13 -66
- package/dist/collection/components/eds-logo/eds-logo.stories.js +36 -17
- package/dist/collection/components/eds-modal/eds-modal.js +18 -9
- package/dist/collection/components/eds-modal/eds-modal.stories.js +11 -8
- package/dist/collection/components/eds-nps/eds-nps.css +32 -0
- package/dist/collection/components/eds-nps/eds-nps.js +3 -3
- package/dist/collection/components/eds-pagination/eds-pagination.js +2 -2
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -8
- package/dist/collection/components/eds-rating/eds-rating.css +9 -0
- 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-sidebar/eds-sidebar.js +2 -2
- package/dist/collection/components/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
- package/dist/collection/components/eds-steps/eds-steps.css +56 -25
- package/dist/collection/components/eds-steps/eds-steps.js +27 -7
- package/dist/collection/components/eds-steps-v2/eds-steps-v2.css +93 -28
- package/dist/collection/components/eds-steps-v2/eds-steps-v2.js +57 -10
- package/dist/collection/components/eds-steps-v2/eds-steps-v2.stories.js +80 -17
- package/dist/collection/components/eds-switch/eds-switch.css +26 -3
- package/dist/collection/components/eds-switch/eds-switch.js +10 -7
- package/dist/collection/components/eds-switch/eds-switch.stories.js +20 -1
- package/dist/collection/components/eds-table/eds-table.css +21 -4
- package/dist/collection/components/eds-table/eds-table.js +16 -51
- package/dist/collection/components/eds-table/eds-table.stories.js +7 -115
- package/dist/collection/components/eds-tabs/eds-tabs.css +7 -1
- package/dist/collection/components/eds-tabs/eds-tabs.js +49 -18
- package/dist/collection/components/eds-tabs/eds-tabs.stories.js +2 -2
- package/dist/collection/components/eds-tag/eds-tag.js +1 -1
- package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
- package/dist/collection/components/eds-toast/eds-toast.css +146 -0
- package/dist/collection/components/eds-toast/eds-toast.js +106 -4
- package/dist/collection/components/eds-toast/eds-toast.stories.js +102 -5
- package/dist/collection/components/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.stories.js +7 -1
- package/dist/collection/components/eds-user/eds-user.js +2 -5
- package/dist/collection/components/eds-user/eds-user.stories.js +8 -11
- package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
- package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +8 -2
- 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 +58 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
- package/dist/collection/shared-ui/eds-gitlab-contributors/eds-gitlab-contributors.css +19 -0
- package/dist/collection/shared-ui/eds-gitlab-contributors/eds-gitlab-contributors.js +34 -31
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.css +166 -0
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.js +69 -7
- package/dist/collection/shared-ui/eds-kg-learning-resources/eds-kg-learning-resources.css +205 -0
- package/dist/collection/shared-ui/eds-kg-learning-resources/eds-kg-learning-resources.js +253 -0
- package/dist/collection/shared-ui/eds-kg-web-services-select/eds-kg-web-services-select.js +2 -2
- package/dist/collection/shared-ui/eds-kg-web-services-select/eds-kg-web-services-select.stories.js +1 -3
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.css +23 -102
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +7 -1
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.js +1 -1
- package/dist/collection/shared-ui/eds-search-select/eds-search-select.css +213 -0
- package/dist/collection/shared-ui/eds-search-select/eds-search-select.js +706 -0
- package/dist/collection/shared-ui/eds-search-select/eds-search-select.stories.js +90 -0
- package/dist/collection/shared-ui/eds-trl-badge/ebrains-mark.js +26 -0
- package/dist/collection/shared-ui/eds-trl-badge/eds-trl-badge.css +22 -0
- package/dist/collection/shared-ui/eds-trl-badge/eds-trl-badge.js +324 -0
- package/dist/collection/shared-ui/eds-trl-badge/eds-trl-badge.stories.js +99 -0
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/collection/utils/eds-form/formValidators.js +2 -1
- package/dist/collection/utils/eds-form/safeFormat.js +35 -0
- package/dist/components/components-section.js +1 -1
- package/dist/components/components.css +12 -11
- 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/eds-accordion2.js +3 -6
- package/dist/components/eds-alert2.js +3 -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 +16 -13
- package/dist/components/eds-card-app.js +2 -5
- package/dist/components/eds-card-cta.js +3 -6
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-feature.js +2 -5
- package/dist/components/eds-card-generic2.js +2 -4
- package/dist/components/eds-card-hero.js +6 -7
- package/dist/components/eds-card-stat.js +6 -7
- package/dist/components/eds-card-title2.js +1 -1
- package/dist/components/eds-code-block2.js +2 -2
- package/dist/components/eds-cookies-preference.js +1 -1
- package/dist/components/eds-dropdown2.js +30 -4
- package/dist/components/eds-feedback.js +1 -1
- package/dist/components/eds-footer2.js +118 -24
- package/dist/components/eds-form.js +146 -45
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-gauge.js +1 -1
- package/dist/components/eds-gitlab-contributors.js +35 -32
- package/dist/components/eds-global-search.js +55 -70
- package/dist/components/eds-header.js +1 -1
- package/dist/components/eds-icon-bluesky.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-mastodon.js +1 -1
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-wrapper2.js +5 -2
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +2 -2
- package/dist/components/eds-input-dropzone2.js +7 -4
- package/dist/components/eds-input-field2.js +31 -26
- package/dist/components/eds-input-file2.js +5 -3
- package/dist/components/eds-input-footer2.js +39 -3
- package/dist/components/eds-input-label2.js +2 -2
- package/dist/components/eds-input-range2.js +15 -5
- package/dist/components/eds-input-search.js +100 -1
- package/dist/components/eds-input-select2.js +6 -2
- package/dist/components/eds-input2.js +4 -2
- package/dist/components/eds-kg-learning-resources.d.ts +11 -0
- package/dist/components/eds-kg-learning-resources.js +217 -0
- package/dist/components/eds-kg-web-services-select2.js +18 -24
- package/dist/components/eds-link2.js +3 -7
- package/dist/components/eds-logo2.js +4 -22
- package/dist/components/eds-matomo-notice2.js +8 -2
- package/dist/components/eds-modal.js +18 -9
- package/dist/components/eds-nps2.js +4 -4
- package/dist/components/eds-pagination2.js +2 -2
- package/dist/components/eds-pie.js +2 -2
- package/dist/components/eds-progress-bar.js +1 -8
- package/dist/components/eds-rating2.js +3 -3
- package/dist/components/eds-search-select.d.ts +11 -0
- package/dist/components/eds-search-select.js +6 -0
- package/dist/components/eds-search-select2.js +382 -0
- package/dist/components/eds-section-core2.js +1 -1
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-sidebar.js +2 -2
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-steps-v2.js +41 -11
- package/dist/components/eds-steps2.js +28 -8
- package/dist/components/eds-switch2.js +8 -5
- package/dist/components/eds-table2.js +30 -54
- package/dist/components/eds-tabs.js +50 -19
- 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-toast2.js +39 -3
- package/dist/components/eds-tooltip2.js +1 -1
- package/dist/components/eds-trl-badge.d.ts +11 -0
- package/dist/components/eds-trl-badge.js +207 -0
- package/dist/components/eds-user.js +1 -4
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/logo-space.js +76 -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-05e96609.entry.js +1 -0
- package/dist/components/p-0d778d10.entry.js +1 -0
- package/dist/components/{p-d2576747.entry.js → p-114f6d54.entry.js} +1 -1
- package/dist/components/p-1534204d.entry.js +1 -0
- package/dist/components/p-337d4ee3.entry.js +9 -0
- package/dist/components/p-340bc935.entry.js +1 -0
- package/dist/components/{p-a6dc1f88.entry.js → p-37ef07d9.entry.js} +1 -1
- package/dist/components/p-39dbb964.entry.js +1 -0
- package/dist/components/{p-dfe93385.entry.js → p-3f66bc26.entry.js} +1 -1
- package/dist/components/p-43f9e64f.entry.js +1 -0
- package/dist/components/p-46cc6c1a.entry.js +1 -0
- package/dist/components/{p-773bd015.entry.js → p-4b8a7979.entry.js} +1 -1
- package/dist/components/p-6b94b2ec.entry.js +1 -0
- package/dist/components/p-6d965fef.entry.js +1 -0
- package/dist/components/{p-d16b5363.entry.js → p-6e370182.entry.js} +1 -1
- package/dist/components/{p-7b93a385.entry.js → p-6ffe581c.entry.js} +1 -1
- package/dist/components/p-726637b1.entry.js +1 -0
- package/dist/components/{p-a63e14bb.entry.js → p-86ccc09f.entry.js} +1 -1
- package/dist/components/{p-c2fc62f7.entry.js → p-8755a21b.entry.js} +1 -1
- package/dist/components/{p-0d7aee0b.entry.js → p-8ab461e2.entry.js} +1 -1
- package/dist/components/p-8cb162b8.entry.js +1 -0
- package/dist/components/p-8cdbc280.entry.js +1 -0
- package/dist/components/{p-940a2d42.entry.js → p-8e034c4e.entry.js} +1 -1
- package/dist/components/p-9f649fa3.entry.js +1 -0
- package/dist/components/{p-d1b3aa52.entry.js → p-a26dad9b.entry.js} +1 -1
- package/dist/components/p-a2d6a9ca.entry.js +1 -0
- package/dist/components/p-afabe1be.entry.js +1 -0
- package/dist/components/{p-c46675c8.entry.js → p-b1519098.entry.js} +1 -1
- package/dist/components/{p-04e9c2d7.entry.js → p-b1a10842.entry.js} +1 -1
- package/dist/components/{p-7aa4edef.entry.js → p-b4023b45.entry.js} +1 -1
- package/dist/components/p-c53b3563.entry.js +1 -0
- package/dist/components/p-c7d612d1.entry.js +1 -0
- package/dist/components/p-dc9aef22.entry.js +1 -0
- package/dist/components/{p-f364296f.entry.js → p-f66a7cf9.entry.js} +1 -1
- package/dist/components/p-f97f62f2.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 +19 -25
- 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 +8 -2
- package/dist/esm/color-primary-palette_6.entry.js +14 -14
- package/dist/esm/components-section.entry.js +1 -1
- package/dist/esm/components.js +1 -1
- package/dist/esm/correct-use-of-colors.entry.js +1 -1
- package/dist/esm/docs-palettes.entry.js +1 -1
- package/dist/esm/docs-tokens.entry.js +1 -1
- package/dist/esm/{eds-accordion_52.entry.js → eds-accordion_53.entry.js} +1094 -336
- package/dist/esm/eds-app-root.entry.js +1 -1
- package/dist/esm/eds-cookies-preference.entry.js +1 -1
- package/dist/esm/eds-feedback.entry.js +1 -1
- package/dist/esm/eds-frame.entry.js +1 -1
- package/dist/esm/eds-gauge.entry.js +1 -1
- package/dist/esm/eds-gitlab-contributors.entry.js +35 -32
- package/dist/esm/eds-icon-bluesky.entry.js +1 -1
- package/dist/esm/eds-icon-eu.entry.js +1 -1
- package/dist/esm/eds-icon-facebook.entry.js +1 -1
- package/dist/esm/eds-icon-gitlab.entry.js +1 -1
- package/dist/esm/eds-icon-linkedin.entry.js +1 -1
- package/dist/esm/eds-icon-mastodon.entry.js +1 -1
- package/dist/esm/eds-icon-twitter.entry.js +1 -1
- package/dist/esm/eds-icon-youtube.entry.js +1 -1
- package/dist/{components/eds-input-search2.js → esm/eds-input-search.entry.js} +9 -39
- package/dist/esm/eds-modal.entry.js +18 -9
- package/dist/esm/eds-pie.entry.js +2 -2
- package/dist/esm/eds-section-core_2.entry.js +3 -3
- package/dist/esm/eds-timeline.entry.js +1 -1
- package/dist/esm/eds-toast-manager.entry.js +1 -1
- package/dist/esm/eds-trl-badge.entry.js +180 -0
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/index-870ab08f.js +10 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/logo-space.entry.js +58 -1
- package/dist/esm/logo-variations-horizontal_2.entry.js +2 -2
- package/dist/esm/logo-variations-tabs.entry.js +1 -1
- package/dist/esm/logo-wrong-usage.entry.js +1 -1
- package/dist/esm/svg-repository.entry.js +1 -1
- package/dist/esm/token-list_3.entry.js +3 -3
- package/dist/esm/token-ratios.entry.js +1 -1
- package/dist/esm/token-spacing.entry.js +1 -1
- package/dist/esm/token-typography.entry.js +8 -2
- package/dist/hydrate/index.js +1616 -397
- package/dist/hydrate/index.mjs +1616 -397
- package/dist/types/components/eds-accordion/eds-accordion.stories.d.ts +4 -8
- package/dist/types/components/eds-alert/eds-alert.stories.d.ts +7 -73
- package/dist/types/components/eds-button/eds-button.d.ts +1 -1
- package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +1 -0
- package/dist/types/components/eds-footer/eds-footer.d.ts +84 -55
- package/dist/types/components/eds-footer/eds-footer.stories.d.ts +62 -1
- package/dist/types/components/eds-form/eds-form.d.ts +66 -0
- package/dist/types/components/eds-form/eds-form.stories.d.ts +63 -0
- package/dist/types/components/eds-header/eds-header.stories.d.ts +6 -6
- package/dist/types/components/eds-icon-wrapper/eds-icon-wrapper.d.ts +8 -0
- package/dist/types/components/eds-img/eds-img.stories.d.ts +6 -20
- package/dist/types/components/eds-input-elements/eds-input/eds-input.d.ts +7 -0
- package/dist/types/components/eds-input-elements/eds-input-search/eds-input-search.stories.d.ts +36 -0
- package/dist/types/components/eds-input-field/eds-input-field.stories.d.ts +97 -38
- package/dist/types/components/eds-link/eds-link.stories.d.ts +9 -6
- package/dist/types/components/eds-logo/eds-logo.d.ts +11 -28
- package/dist/types/components/eds-logo/eds-logo.stories.d.ts +22 -2
- package/dist/types/components/eds-steps/eds-steps.d.ts +7 -0
- package/dist/types/components/eds-steps-v2/eds-steps-v2.d.ts +14 -1
- package/dist/types/components/eds-steps-v2/eds-steps-v2.stories.d.ts +40 -9
- package/dist/types/components/eds-switch/eds-switch.d.ts +6 -2
- package/dist/types/components/eds-switch/eds-switch.stories.d.ts +8 -0
- package/dist/types/components/eds-table/eds-table.d.ts +8 -14
- package/dist/types/components/eds-table/eds-table.stories.d.ts +0 -107
- package/dist/types/components/eds-tabs/eds-tabs.d.ts +10 -0
- package/dist/types/components/eds-toast/eds-toast.d.ts +33 -1
- package/dist/types/components/eds-toast/eds-toast.stories.d.ts +49 -1
- package/dist/types/components/eds-user/eds-user.d.ts +0 -2
- package/dist/types/components/eds-user/eds-user.stories.d.ts +5 -9
- package/dist/types/components.d.ts +715 -144
- package/dist/types/shared-ui/eds-global-search/eds-global-search.d.ts +12 -0
- package/dist/types/shared-ui/eds-kg-learning-resources/eds-kg-learning-resources.d.ts +60 -0
- package/dist/types/shared-ui/eds-search-select/eds-search-select.d.ts +98 -0
- package/dist/types/shared-ui/eds-search-select/eds-search-select.stories.d.ts +81 -0
- package/dist/types/shared-ui/eds-trl-badge/ebrains-mark.d.ts +7 -0
- package/dist/types/shared-ui/eds-trl-badge/eds-trl-badge.d.ts +54 -0
- package/dist/types/shared-ui/eds-trl-badge/eds-trl-badge.stories.d.ts +112 -0
- package/dist/types/utils/eds-form/safeFormat.d.ts +21 -0
- package/package.json +1 -1
- package/dist/components/p-0fe10e6c.entry.js +0 -1
- package/dist/components/p-18e852e1.entry.js +0 -1
- package/dist/components/p-3ccd6948.entry.js +0 -1
- package/dist/components/p-3d3841d6.entry.js +0 -1
- package/dist/components/p-3f38df99.entry.js +0 -1
- package/dist/components/p-527e71d0.entry.js +0 -1
- package/dist/components/p-55047f7f.entry.js +0 -9
- package/dist/components/p-64c23098.entry.js +0 -1
- package/dist/components/p-74b9c9a8.entry.js +0 -1
- package/dist/components/p-878f65a6.entry.js +0 -1
- package/dist/components/p-92f6d9c0.entry.js +0 -1
- package/dist/components/p-9eedf771.entry.js +0 -1
- package/dist/components/p-b4355cec.entry.js +0 -1
- package/dist/components/p-d2f17fac.entry.js +0 -1
- package/dist/components/p-db5eea95.entry.js +0 -1
- package/dist/components/p-e205c269.entry.js +0 -1
- package/dist/components/p-f55dd314.entry.js +0 -1
- package/dist/components/p-f88b5f21.entry.js +0 -1
|
@@ -2,26 +2,48 @@ export default {
|
|
|
2
2
|
title: 'Components/Toast',
|
|
3
3
|
component: 'eds-toast',
|
|
4
4
|
argTypes: {
|
|
5
|
+
variant: {
|
|
6
|
+
control: 'select',
|
|
7
|
+
options: ['toast', 'banner'],
|
|
8
|
+
description: 'Visual variant: compact "toast" pill (default) or rich inline "banner".'
|
|
9
|
+
},
|
|
5
10
|
message: {
|
|
6
11
|
control: 'text',
|
|
7
|
-
description: 'The main message
|
|
12
|
+
description: 'The main message. In the banner variant this is the mono sub-line.'
|
|
13
|
+
},
|
|
14
|
+
heading: {
|
|
15
|
+
control: 'text',
|
|
16
|
+
description: 'Bold heading shown above the message. Banner variant only.'
|
|
8
17
|
},
|
|
9
18
|
intent: {
|
|
10
19
|
control: 'select',
|
|
11
|
-
options: ['default', 'success', 'error', 'warning', 'brand'],
|
|
12
|
-
description: 'The visual intent
|
|
20
|
+
options: ['default', 'neutral', 'info', 'success', 'error', 'warning', 'brand', 'brandInverse'],
|
|
21
|
+
description: 'The visual intent / tone.'
|
|
22
|
+
},
|
|
23
|
+
icon: {
|
|
24
|
+
control: 'text',
|
|
25
|
+
description: 'Leading icon name (banner variant). Falls back to a per-intent default when omitted.'
|
|
26
|
+
},
|
|
27
|
+
dismissible: {
|
|
28
|
+
control: 'boolean',
|
|
29
|
+
description: 'Show a dismiss (×) button even without a duration.'
|
|
13
30
|
},
|
|
14
31
|
duration: {
|
|
15
32
|
control: 'number',
|
|
16
|
-
description: '
|
|
33
|
+
description: 'Auto-dismiss delay in ms. When set, a close button is shown.'
|
|
17
34
|
}
|
|
18
35
|
},
|
|
19
36
|
args: {
|
|
37
|
+
variant: 'toast',
|
|
20
38
|
message: 'This is a toast message.',
|
|
39
|
+
heading: '',
|
|
21
40
|
intent: 'default',
|
|
41
|
+
icon: '',
|
|
42
|
+
dismissible: false,
|
|
22
43
|
duration: 5000
|
|
23
44
|
}
|
|
24
45
|
};
|
|
46
|
+
/* ── Classic toast (unchanged) ────────────────────────────────────────────── */
|
|
25
47
|
export const Default = {
|
|
26
48
|
render: (args) => `
|
|
27
49
|
<eds-toast
|
|
@@ -49,7 +71,7 @@ export const Brand = {
|
|
|
49
71
|
duration: 5000
|
|
50
72
|
}
|
|
51
73
|
};
|
|
52
|
-
export const
|
|
74
|
+
export const AllToastIntents = {
|
|
53
75
|
render: () => `
|
|
54
76
|
<div style="display: flex; flex-direction: column; gap: 1rem; align-items: flex-start;">
|
|
55
77
|
<eds-toast message="Default notification" intent="default" duration="0"></eds-toast>
|
|
@@ -60,3 +82,78 @@ export const AllVariants = {
|
|
|
60
82
|
</div>
|
|
61
83
|
`
|
|
62
84
|
};
|
|
85
|
+
/* ── Banner variant ───────────────────────────────────────────────────────── */
|
|
86
|
+
export const Banner = {
|
|
87
|
+
render: (args) => `
|
|
88
|
+
<eds-toast
|
|
89
|
+
variant="banner"
|
|
90
|
+
intent="${args.intent}"
|
|
91
|
+
heading="${args.heading}"
|
|
92
|
+
message="${args.message}"
|
|
93
|
+
${args.icon ? `icon="${args.icon}"` : ''}
|
|
94
|
+
${args.dismissible ? 'dismissible="true"' : ''}>
|
|
95
|
+
</eds-toast>
|
|
96
|
+
`,
|
|
97
|
+
args: {
|
|
98
|
+
variant: 'banner',
|
|
99
|
+
intent: 'warning',
|
|
100
|
+
heading: 'Closing soon',
|
|
101
|
+
message: 'This form closes in 2 days.',
|
|
102
|
+
icon: 'time',
|
|
103
|
+
dismissible: true
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
export const BannerClosed = {
|
|
107
|
+
name: 'Banner · Closed (error)',
|
|
108
|
+
render: () => `
|
|
109
|
+
<eds-toast
|
|
110
|
+
variant="banner"
|
|
111
|
+
intent="error"
|
|
112
|
+
icon="warning"
|
|
113
|
+
heading="This form has closed"
|
|
114
|
+
message="Closed on Jul 1, 2026. Submissions are no longer accepted.">
|
|
115
|
+
</eds-toast>
|
|
116
|
+
`
|
|
117
|
+
};
|
|
118
|
+
export const BannerClosingSoon = {
|
|
119
|
+
name: 'Banner · Closing soon (warning, dismissible)',
|
|
120
|
+
render: () => `
|
|
121
|
+
<eds-toast
|
|
122
|
+
variant="banner"
|
|
123
|
+
intent="warning"
|
|
124
|
+
icon="time"
|
|
125
|
+
dismissible="true"
|
|
126
|
+
heading="Closing soon"
|
|
127
|
+
message="This form closes in 2 days.">
|
|
128
|
+
</eds-toast>
|
|
129
|
+
`
|
|
130
|
+
};
|
|
131
|
+
export const BannerWithActions = {
|
|
132
|
+
name: 'Banner · Saved draft (brand, actions slot)',
|
|
133
|
+
render: () => `
|
|
134
|
+
<eds-toast
|
|
135
|
+
variant="banner"
|
|
136
|
+
intent="brand"
|
|
137
|
+
icon="resultDraft"
|
|
138
|
+
heading="You have a saved draft"
|
|
139
|
+
message="Last edited 4h ago · 17% complete">
|
|
140
|
+
<div slot="actions" style="display:flex; align-items:center; gap:16px;">
|
|
141
|
+
<a role="button" tabindex="0" style="font-size:13px; color:#5a5f5c; cursor:pointer; text-decoration:none;">Discard</a>
|
|
142
|
+
<eds-button label="Resume" intent="brand" size="small" pill="true" icon="arrow-right"></eds-button>
|
|
143
|
+
</div>
|
|
144
|
+
</eds-toast>
|
|
145
|
+
`
|
|
146
|
+
};
|
|
147
|
+
export const AllBanners = {
|
|
148
|
+
name: 'Banner · All intents',
|
|
149
|
+
render: () => `
|
|
150
|
+
<div style="display:flex; flex-direction:column; gap:1rem; max-width:640px;">
|
|
151
|
+
<eds-toast variant="banner" intent="brand" icon="resultDraft" heading="You have a saved draft" message="Last edited 4h ago · 17% complete"></eds-toast>
|
|
152
|
+
<eds-toast variant="banner" intent="info" heading="Heads up" message="Your progress is saved automatically."></eds-toast>
|
|
153
|
+
<eds-toast variant="banner" intent="success" icon="checkmark" heading="Submitted" message="Your response was recorded."></eds-toast>
|
|
154
|
+
<eds-toast variant="banner" intent="warning" icon="time" dismissible="true" heading="Closing soon" message="This form closes in 2 days."></eds-toast>
|
|
155
|
+
<eds-toast variant="banner" intent="error" icon="warning" heading="This form has closed" message="Submissions are no longer accepted."></eds-toast>
|
|
156
|
+
<eds-toast variant="banner" intent="neutral" heading="Note" message="Neutral, uncoloured tone."></eds-toast>
|
|
157
|
+
</div>
|
|
158
|
+
`
|
|
159
|
+
};
|
|
@@ -31,7 +31,7 @@ export class EdsToastManager {
|
|
|
31
31
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: 'bd01d186b0fa0dc2d44c169dfd2634cdcf80e906', class: "toast-container" }, this.toasts.map((t) => (h("div", { key: t.id }, h("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "eds-toast-manager"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class EdsTooltip {
|
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
21
|
const positionClass = this.position === 'bottom' ? 'top-full mt-2' : 'bottom-full mb-2';
|
|
22
|
-
return (h("div", { key: '
|
|
22
|
+
return (h("div", { key: '70fac9a2e9d60c2dd24961d162c5230dcf5d6232', class: "relative w-full inline-block group" }, h("slot", { key: '02e4f975a0b23905883663f773a221c747906a11' }), h("div", { key: 'cff74243e3b7bd0111bb0e6023367ac88b50c379', class: `absolute ${positionClass}
|
|
23
23
|
rounded-xs bg-strongest text-inverse
|
|
24
24
|
f-ui-03-light pointer-events-none
|
|
25
25
|
z-10 px-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
@@ -19,7 +19,13 @@ export const Default = {
|
|
|
19
19
|
render: (args) => html `
|
|
20
20
|
<div class="mt-32">
|
|
21
21
|
<eds-tooltip content="${args.content}" position="${args.position}">
|
|
22
|
-
<eds-button
|
|
22
|
+
<eds-button
|
|
23
|
+
label="Hover over me"
|
|
24
|
+
intent="brand"
|
|
25
|
+
pill="true"
|
|
26
|
+
size="large"
|
|
27
|
+
aria-label="Hover over me"
|
|
28
|
+
></eds-button>
|
|
23
29
|
</eds-tooltip>
|
|
24
30
|
</div>
|
|
25
31
|
`,
|
|
@@ -14,7 +14,6 @@ export class EdsUser {
|
|
|
14
14
|
this.intent = 'ghost';
|
|
15
15
|
this.dropdownLabel = 'Account';
|
|
16
16
|
this.expanded = false;
|
|
17
|
-
this.shortMode = false;
|
|
18
17
|
}
|
|
19
18
|
/**
|
|
20
19
|
* Helper getter to ensure we work with a User object.
|
|
@@ -31,7 +30,6 @@ export class EdsUser {
|
|
|
31
30
|
}
|
|
32
31
|
return this.user;
|
|
33
32
|
}
|
|
34
|
-
async componentWillLoad() { }
|
|
35
33
|
get initials() {
|
|
36
34
|
var _a, _b, _c, _d;
|
|
37
35
|
const user = this.parsedUser;
|
|
@@ -46,7 +44,7 @@ export class EdsUser {
|
|
|
46
44
|
render() {
|
|
47
45
|
const user = this.parsedUser;
|
|
48
46
|
//const iconName = this.expanded ? 'chevron-down' : 'chevron-right';
|
|
49
|
-
return (h("div", { key: '
|
|
47
|
+
return (h("div", { key: '680e43b28d6f449f1bc527a205bc8cb1593c2e3b', class: "block" }, h("div", { key: '472e128751bbd16584d2c17a0f05de9ce39b3618', class: "flex items-center" }, h("eds-dropdown", { key: 'b8e77167f98bcc07280a440ab8c086ab72650866', ref: (el) => (this.dropdownEl = el), intent: this.intent, "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "user", label: this.dropdownLabel, class: "text-default", onDropdown: this.handleDropdown }, h("div", { key: 'd55809a0ab5387f867d27669198c7e9bfc206383', class: "min-w-[280px] p-8" }, h("div", { key: 'e703e71577d4d1e78664fa807de67551483069c1', class: "flex gap-x-16", "data-dropdown-no-close": true }, h("eds-avatar", { key: '7672f9a4f84bc13ab079a7e6185eff87aa15a1f7', "first-name": user.given_name, "last-name": user.family_name, initials: this.initials, color: "black" }), h("div", { key: 'ac9e6e17465d52a247b289224ce3ea473989c1ee', class: "max-w-full" }, user.name && h("p", { key: 'caab9568a17e0bbc68c418f070b93ae6f21fad21', class: "f-ui-01 text-default w-full text-ellipsis" }, user.name), user.preferred_username && h("p", { key: '0ba0fbec86e6600ee4eb0e0827a78e7292808ab1', class: "f-ui-03-light text-light mt-4" }, user.preferred_username), user.email && h("p", { key: 'a3f8870af9bdd001cf5e894b71f8403bff639608', class: "f-ui-03-light text-light mt-4" }, user.email))), h("div", { key: 'd230d82178d53043406e26f264c3fe26d7a87211', class: "text-default flex w-full flex-col gap-y-8" }, h("slot", { key: '5d28ca2126fbd735560e6034ea1c24e225bf2ee5' })))))));
|
|
50
48
|
}
|
|
51
49
|
static get is() { return "eds-user"; }
|
|
52
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -129,8 +127,7 @@ export class EdsUser {
|
|
|
129
127
|
}
|
|
130
128
|
static get states() {
|
|
131
129
|
return {
|
|
132
|
-
"expanded": {}
|
|
133
|
-
"shortMode": {}
|
|
130
|
+
"expanded": {}
|
|
134
131
|
};
|
|
135
132
|
}
|
|
136
133
|
static get methods() {
|
|
@@ -5,6 +5,10 @@ export default {
|
|
|
5
5
|
user: {
|
|
6
6
|
control: 'object',
|
|
7
7
|
description: 'User object containing authentication information'
|
|
8
|
+
},
|
|
9
|
+
dropdownLabel: {
|
|
10
|
+
control: 'text',
|
|
11
|
+
description: 'Trigger label next to the user icon. Apps ship it empty (icon-only trigger); the component default is "Account".'
|
|
8
12
|
}
|
|
9
13
|
},
|
|
10
14
|
args: {
|
|
@@ -14,7 +18,9 @@ export default {
|
|
|
14
18
|
preferred_username: 'johndoe',
|
|
15
19
|
name: 'John Doe',
|
|
16
20
|
email: 'john.doe@example.com'
|
|
17
|
-
}
|
|
21
|
+
},
|
|
22
|
+
// Mirror real app usage (App.vue passes dropdown-label=""): icon-only.
|
|
23
|
+
dropdownLabel: ''
|
|
18
24
|
}
|
|
19
25
|
};
|
|
20
26
|
export const Default = {
|
|
@@ -24,7 +30,7 @@ export const Default = {
|
|
|
24
30
|
container.innerHTML = `
|
|
25
31
|
<eds-header>
|
|
26
32
|
<div class="px-16" slot="actions">
|
|
27
|
-
<eds-user></eds-user>
|
|
33
|
+
<eds-user dropdown-label="${args.dropdownLabel}"></eds-user>
|
|
28
34
|
</div>
|
|
29
35
|
</eds-header>
|
|
30
36
|
`;
|
|
@@ -32,14 +38,5 @@ export const Default = {
|
|
|
32
38
|
const edsUser = container.querySelector('eds-user');
|
|
33
39
|
edsUser.user = args.user;
|
|
34
40
|
return container;
|
|
35
|
-
},
|
|
36
|
-
args: {
|
|
37
|
-
user: {
|
|
38
|
-
given_name: 'John',
|
|
39
|
-
family_name: 'Doe',
|
|
40
|
-
preferred_username: 'johndoe',
|
|
41
|
-
name: 'John Doe',
|
|
42
|
-
email: 'john.doe@example.com'
|
|
43
|
-
}
|
|
44
41
|
}
|
|
45
42
|
};
|
|
@@ -33,7 +33,7 @@ export class ColorPrimaryPalette {
|
|
|
33
33
|
];
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("ul", { key: '
|
|
36
|
+
return (h("ul", { key: '8358291e8f5aa8791abe4cd701ccb2d4ed6d7175', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC), h("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "color-primary-palette"; }
|
|
39
39
|
}
|
|
@@ -58,7 +58,7 @@ export class ColorSecondaryPalette {
|
|
|
58
58
|
this.show = undefined;
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return (h("ul", { key: '
|
|
61
|
+
return (h("ul", { key: '52cbd3ddc78dd2a33c695bee28b9458636709dc2', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC), h("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "color-secondary-palette"; }
|
|
64
64
|
static get properties() {
|
|
@@ -58,7 +58,7 @@ export class ColorSupportPalette {
|
|
|
58
58
|
return 'text-default';
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return (h("ul", { key: '
|
|
61
|
+
return (h("ul", { key: '9e6c8c637680b5159548a3ac78ca69041d172e42', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => {
|
|
62
62
|
// compute once
|
|
63
63
|
const textClass = this.getTextColor(color.background);
|
|
64
64
|
return (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: `f-body-02 ${textClass}` }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' }, class: textClass })), h("div", { class: "grid" }, h("span", { class: `f-body-02 ${textClass}` }, color.pantoneC), h("span", { class: `f-body-02 ${textClass}` }, color.pantoneU)))));
|
|
@@ -33,7 +33,7 @@ export class GradientPrimaryPalette {
|
|
|
33
33
|
];
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("ul", { key: '
|
|
36
|
+
return (h("ul", { key: '3b0f811693a70082d267a916bcbd2be0e7226e94', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
37
37
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
38
38
|
} }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16" }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC), h("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
39
39
|
}
|
|
@@ -57,19 +57,19 @@ export class GradientSecondaryPalette {
|
|
|
57
57
|
];
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
|
-
return (h("div", { key: '
|
|
60
|
+
return (h("div", { key: '55954a3c8ed2d1ded3844fbab0c5c98f7562bd4d' }, h("ul", { key: 'ee33d6686f73a91f77ee7e1ad8932b86d116f0e1', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: '969b34615646cfe815f11534a54e512ff9abcd5d', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: 'd4d2700591ab1cfea36e8d2d06a28f0cad4367b0', class: "effect-height flex items-center justify-between p-16", style: {
|
|
61
61
|
background: this.colors[0].background
|
|
62
|
-
} }, h("div", { key: '
|
|
62
|
+
} }, h("div", { key: '8d8b8299c58871baea7eff4fab2844828117ef8c', class: "grid" }, h("span", { key: 'e1f34c4f267598e1eb0985d4d7b617e42e2fa5fd', class: "f-body-02" }, this.colors[0].rgb), h("span", { key: '0be1a29db0bb4406b77f518725342328996a900f', class: "f-body-02 w-full" }, this.colors[0].cmyk), h("eds-code-block", { key: 'af6fd66bfbafc1db14b5e805d6d04a48f944b5eb', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '808f2034ac8bc48606a63b6b3a2b4f4da8b8d77c', class: "grid" }, h("span", { key: '7920838708d98113eda841e6b83534afac6346b6', class: "f-body-02" }, this.colors[0].pantoneC), h("span", { key: '4144490f054eb1d80c0008fcb01bcc7274a5a1f2', class: "f-body-02" }, this.colors[0].pantoneU))), h("div", { key: '6e524575f1f6bb753223f4a91e3aa9a5d244183a', class: "effect-height flex items-center justify-between p-16", style: {
|
|
63
63
|
background: this.colors[1].background
|
|
64
|
-
} }, h("div", { key: '
|
|
64
|
+
} }, h("div", { key: '0464ed0bddfe36aec3e6b2df236bf320c7509881', class: "grid" }, h("span", { key: '6691afb081acbf9406e52457f7cbf29ed1a39443', class: "f-body-02" }, this.colors[1].rgb), h("span", { key: '4e51865950984835e15e99dc99a42febf89d90ab', class: "f-body-02 w-full" }, this.colors[1].cmyk), h("eds-code-block", { key: '36bab658fecf69caa0c9537597a3cc6b0ca5bb60', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '55c28465b04f7d927f557b281ae7910c7e72cd27', class: "grid" }, h("span", { key: '23df59a17b7b0aef5b3856ae0646b57eaf182de3', class: "f-body-02" }, this.colors[1].pantoneC), h("span", { key: 'b1c66632ffc7a8fc744d860d290b05a58a643b07', class: "f-body-02" }, this.colors[1].pantoneU))))), h("eds-block-break", { key: '1885cfb28019b3fb2a5ab3542f045ac0850ef350' }), h("ul", { key: 'c30a76ff0d2245893943f13f1893671e5c4f19ff', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: 'b83b8b81d235daaa96010bdf2163bb0ee9f4c298', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: 'c4ba97bcefa96d1fc18f9dceda5b9d03c9243768', class: "effect-height flex items-center justify-between p-16", style: {
|
|
65
65
|
background: this.colors[2].background
|
|
66
|
-
} }, h("div", { key: '
|
|
66
|
+
} }, h("div", { key: 'f9afe9bced7e90c769e89125cdda71466d09dad9', class: "grid" }, h("span", { key: '609fc9699aa5d08c32f859a415d900781846f41b', class: "f-body-02" }, this.colors[2].rgb), h("span", { key: '529d2beb8cd06e19a23849832d05faf025587743', class: "f-body-02 w-full" }, this.colors[2].cmyk), h("eds-code-block", { key: '8afbc63abcf2d9149fcd35665c31a9542df8242d', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '5c29b392b41dadc2dfe232e7863cf0c2f004f198', class: "grid" }, h("span", { key: '0cb9f0a85b34d945741ac1e9453ad07fc6843e25', class: "f-body-02" }, this.colors[2].pantoneC), h("span", { key: 'aa20e1fe79e2f527aa467e0a6be3aa792fa5b141', class: "f-body-02" }, this.colors[2].pantoneU))), h("div", { key: 'e0adb4b4b02e9871ca7257e840c82fa9359654b5', class: "effect-height flex items-center justify-between p-16", style: {
|
|
67
67
|
background: this.colors[3].background
|
|
68
|
-
} }, h("div", { key: '
|
|
68
|
+
} }, h("div", { key: '62039bb0fc41220d7ea29c7b3134e94171e4b023', class: "grid" }, h("span", { key: 'c1679b75a0c63a35b886d9170114c307245c642c', class: "f-body-02" }, this.colors[3].rgb), h("span", { key: 'de1c7ad0012fafd231671a2bb0ec86bcf90ae12e', class: "f-body-02 w-full" }, this.colors[3].cmyk), h("eds-code-block", { key: 'c68180939d5f82e3606efea5f757be8c3b03a009', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'fcf4161319341b53b4b231cad28fb70758c0dd94', class: "grid" }, h("span", { key: '3eab8efd130f25708f694e775aa7ac36c943df50', class: "f-body-02" }, this.colors[3].pantoneC), h("span", { key: 'b420abe12d8f5d2dfa39a51501316c5231c88d6c', class: "f-body-02" }, this.colors[3].pantoneU))))), h("eds-block-break", { key: 'f61e6b39b1e177214da443d951c5585554a06270' }), h("ul", { key: '749276ac2097b23d654da7a99de04032857d9785', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: 'caa5fc807aa92b8969a41545ab05cb3b3adc69c6', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '6be2aecc15bae9efa645b2d41ac8c3741787201b', class: "effect-height flex items-center justify-between p-16", style: {
|
|
69
69
|
background: this.colors[4].background
|
|
70
|
-
} }, h("div", { key: '
|
|
70
|
+
} }, h("div", { key: 'b47db3efc1d07f92d93f8efaaeb83f1924c5cb87', class: "grid" }, h("span", { key: '9cb73763d0f6b3650c9e0364ddd173d83726272f', class: "f-body-02" }, this.colors[4].rgb), h("span", { key: '9f9b556fe1826ea1094032f470061dfd3468985d', class: "f-body-02 w-full" }, this.colors[4].cmyk), h("eds-code-block", { key: 'ffa2fccdef2ac4360e4d92e068a3b790d4a0459a', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '7ebf088b7ffd31da2edc33be16da19595354b6e8', class: "grid" }, h("span", { key: 'd5b485ad41e9c35d6d52fd28be92f31080d41dbc', class: "f-body-02" }, this.colors[4].pantoneC), h("span", { key: '80d76b4944c48e6ac7f0bbd2eb05d5ecf427e8bc', class: "f-body-02" }, this.colors[4].pantoneU))), h("div", { key: '1e6c989cc32c59497f3eaa330e099c51c92e0056', class: "effect-height flex items-center justify-between p-16", style: {
|
|
71
71
|
background: this.colors[5].background
|
|
72
|
-
} }, h("div", { key: '
|
|
72
|
+
} }, h("div", { key: '5ccc68d4f200bd755b3bccec8f67c0cb5471ac27', class: "grid" }, h("span", { key: 'b5f71a9d4e8de4eec9f88765feeb39087b48dd1b', class: "f-body-02" }, this.colors[5].rgb), h("span", { key: '9f6a9886a899b3a37addc9bf312ae7e10b999866', class: "f-body-02 w-full" }, this.colors[5].cmyk), h("eds-code-block", { key: 'ae01dbf19c98571240867c52cf68a8fdebe24c5f', code: this.colors[5].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'dab594140bb31548e9ebae53bb525ab93691c086', class: "grid" }, h("span", { key: '088f126b8b288c0f2475c13a3aa85e5a22ef4728', class: "f-body-02" }, this.colors[5].pantoneC), h("span", { key: '853fad90eafd82e6381eaad65e5efb7a68362474', class: "f-body-02" }, this.colors[5].pantoneU)))))));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "gradient-secondary-palette"; }
|
|
75
75
|
}
|
|
@@ -49,11 +49,11 @@ export class GradientSupportPalette {
|
|
|
49
49
|
];
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h("ul", { key: '
|
|
52
|
+
return (h("ul", { key: '2bc6d57d63ae18aa162ed8a66f3ca270720fcf63', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: '5a96685deaaceb7ab166b022748b78d569c4b0ae', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '931d9f72eb8ac4d19f80b4e2f1a7d97b8df34841', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[0].background } }, h("div", { key: '62d6fb428628a3bd416ee470debd176fef9d8fc7', class: "grid" }, h("span", { key: '4bda9dd2bd7fe1d6023a7de77c90dfc30e352089', class: "f-body-02" }, this.colors[0].rgb), h("span", { key: '8ae8f17c22b7235baad34fc595040d9d51f07a43', class: "f-body-02 w-full" }, this.colors[0].cmyk), h("eds-code-block", { key: 'af14dfaa87fb6de3b528da4ecc3d3226c16c2c89', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '5f9040d0cf3768a602e9c3ef4605f3f957551251', class: "grid" }, h("span", { key: '4db5920188fe1916ab1f1998623fc7f4913f6972', class: "f-body-02" }, this.colors[0].pantoneC || 'N/A'), h("span", { key: '52402b3e615f2f674b6faef8c7a3a2ed15f1aad3', class: "f-body-02" }, this.colors[0].pantoneU || 'N/A')))), h("li", { key: '78a2b0b368946e40be43063cab0450843cac701c', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: 'd720a4a85437cbd0ab36ac89e150042b15cd6cf6', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[1].background } }, h("div", { key: '1ab1dce596f2dc0ebfd4bbddf4f0831c37d9460c', class: "grid" }, h("span", { key: '40ac839dd4933379ff391009155f35c682ae7927', class: "f-body-02" }, this.colors[1].rgb), h("span", { key: 'cf8df47df9313c06f98b156f082848a6a33d88c2', class: "f-body-02 w-full" }, this.colors[1].cmyk), h("eds-code-block", { key: '0ce5f69e74ce7b357f07f54e04df564b28687c4b', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'b2c3989b94876f2418e20528542e35316b86365e', class: "grid" }, h("span", { key: 'b2308e2721ab016eb788444c420c8667eb76e652', class: "f-body-02" }, this.colors[1].pantoneC || 'N/A'), h("span", { key: 'e587289f3b254a8d6ddc80bdc5806d7dc9220011', class: "f-body-02" }, this.colors[1].pantoneU || 'N/A')))), h("li", { key: '3da665043c0d50b3ca6019dcc1a7dc9286b5d375', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: 'dc1a6f96c760f5f8a3c08997d3b54aac9d9888b8', class: "effect-height flex items-center justify-between p-16", style: {
|
|
53
53
|
background: this.colors[2].background
|
|
54
|
-
} }, h("div", { key: '
|
|
54
|
+
} }, h("div", { key: '03a1133bd3081865b579ec9e2b6b05253d31b03a', class: "grid" }, h("span", { key: '7a29e5ffbe13527b4f624143ca1ed55a5a0bd5b7', class: "f-body-02" }, this.colors[2].rgb), h("span", { key: 'd7087945fa2a7a42b8b3bd84eb63f9049da7dc82', class: "f-body-02 w-full" }, this.colors[2].cmyk), h("eds-code-block", { key: 'cff25a4ed5ab919ba63ac52a0c6c61ab06029f41', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '0fa42c934995f16a76c0c4b17ac057187d1ee516', class: "grid" }, h("span", { key: '4e3a8c38cd60088275ca874d50b181f81f70aab2', class: "f-body-02" }, this.colors[2].pantoneC), h("span", { key: 'aeb9282692211a5708fdda19c4e4397c256fa981', class: "f-body-02" }, this.colors[2].pantoneU))), h("div", { key: '34f8ba04679de87eb1fe64270a3355d4730953f7', class: "effect-height flex items-center justify-between p-16", style: {
|
|
55
55
|
background: this.colors[3].background
|
|
56
|
-
} }, h("div", { key: '
|
|
56
|
+
} }, h("div", { key: '0d9d115feb671ea6a37f3679925f4de6748ef69c', class: "grid" }, h("span", { key: 'b6bb3e244a141000c880c9de1ff7fa13b8173a93', class: "f-body-02" }, this.colors[3].rgb), h("span", { key: 'db6b6a1506829dcd5becb9793e3393f6f189efc3', class: "f-body-02 w-full" }, this.colors[3].cmyk), h("eds-code-block", { key: '965fe2bfc65134f2c41c91c93ad7a6268e76b334', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '0139cb83f5cd3d2350721eef750d4069ccfe25c6', class: "grid" }, h("span", { key: '4da26735fc80c68461954fe9ed80ea23aedd4e59', class: "f-body-02" }, this.colors[3].pantoneC), h("span", { key: '58cb3656d60250f39536aacafd0b5587d34b8561', class: "f-body-02" }, this.colors[3].pantoneU)))), h("li", { key: '6ba0e69f38d17ac5c815ad080e0a47c29579e2d8', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '40c29529b7ad63c3206533af0a5025d5426a612d', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[4].background } }, h("div", { key: '054d8e9939f7ee072a639323df5c0c883144ff8e', class: "grid" }, h("span", { key: 'dac5d5b64277aab4e0caafd0e5e4baf1509975fe', class: "f-body-02" }, this.colors[4].rgb), h("span", { key: '8a93ed0436d2a27eda72c9f2a66014bc7c23bea8', class: "f-body-02 w-full" }, this.colors[4].cmyk), h("eds-code-block", { key: '5945fdf834b30dce6975ee39a32916a85cd671f4', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '6cb3c7e3e7a54ba48b3108b7733cfd8ac2ca9b73', class: "grid" }, h("span", { key: 'fe085679e7c4c948d99c0dfefd8b82d361160534', class: "f-body-02" }, this.colors[4].pantoneC || 'N/A'), h("span", { key: 'db516be172480131e88ee1a32a1e9d4b799960ee', class: "f-body-02" }, this.colors[4].pantoneU || 'N/A'))))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "gradient-support-palette"; }
|
|
59
59
|
}
|
|
@@ -60,7 +60,7 @@ const red = [
|
|
|
60
60
|
*/
|
|
61
61
|
export class CorrectUseOfColors {
|
|
62
62
|
render() {
|
|
63
|
-
return (h("div", { key: '
|
|
63
|
+
return (h("div", { key: 'afddc656b9217a2df98181fe7be846c779486efb', class: "container" }, h("p", { key: '995cb777ef605d3cfb4a1fa8a8acf538a0522b74', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: '5a14a5ea05e8b8bd58f2182594f4061986a9bfb0', label: "primary", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", h("eds-link", { key: '22b9d164e0b5d22a82813b22e00258b051fb5291', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), h("div", { key: '1bd417ab605d072d6c87b5fcb708a475b06c0b4d', class: "flex" }, h("div", { key: 'e43e1e84710ac1fd52d7b9cc0deebd0c4d5a7e2e', class: "w-full" }, h("ul", { key: '18a5a63c7beace0bd6ecf0fe315f227162d10483', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), h("div", { key: 'f3055c180b296dfb59863a754ffe6a06d726a6ff', class: "w-full" }, h("ul", { key: 'd341ddade09efdcc9d1af3964f9026a9707fbe0e', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), h("p", { key: 'af0b4403b93fffceea6ea1e5f06967b598028a99', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: '8ea91d6f8a9924da6a7f9bca61c127565aad9007', label: "purple", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", h("eds-link", { key: '50febc4ea15b0fa627d33d95ffc7095ac2d6c4ff', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), h("div", { key: '808176e6142ebf50f8f0b0202af6f3ef9af7a3b8', class: "flex" }, h("div", { key: '6d848442a7c7bcde5ef10c56ae3ab6d34e5cadc6', class: "w-full" }, h("ul", { key: '32578cc459e343292790a3ff842bed8ae807dd82', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, purple.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), h("div", { key: 'e12a82ccea09771605f012eadd6e84c34b26f185', class: "w-full" }, h("ul", { key: 'f1ee5355e9f21f53289c2d5849e72dcd5a8d7031', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), h("p", { key: '26077e0df6ae891c93681a7958f9edb20eaa818f', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: '14cb5e7a55efaedeff39f32cfa15745ee1182a68', label: "blue", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", h("eds-link", { key: '0b05ada6b2a2791508aa7acb74f3b9df083fa316', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), h("div", { key: '39a0425ecb995d6bf8d0c6587127f702fb658440', class: "flex" }, h("div", { key: 'ab4a5ffbcb73a88fea4ee67306be6bf30ea1dcff', class: "w-full" }, h("ul", { key: '1117d4f1541cb02b915aecae6c54545f3242a4df', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, blue.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), h("div", { key: 'ffa7b0017bb21b6608e99b60788c0ea4509fddfc', class: "w-full" }, h("ul", { key: '88517aeead68cb768814577987355c3f1421d3b3', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), h("p", { key: '220bc12066e60ee1912fe194c849ad9569de8d69', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: '51fb2578373998a1145c218d33f50c609fefc571', label: "redish", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", h("eds-link", { key: 'f11b329d33f72491c84b80b2094713673e0981b8', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), h("div", { key: '90c79cfa3aa9ca0c0ac9397d1f903ab3897e15ba', class: "flex" }, h("div", { key: 'e645ea51aac869eebd84e2f2d48bbd51c365b44c', class: "w-full" }, h("ul", { key: '7c7f731969f61d4b6005ee5c7855e1fe2f36e4b4', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, red.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), h("div", { key: '774507d20533e34dd712bea09b74858aff6d221a', class: "w-full" }, h("ul", { key: 'd270efd5cc0cca95117977a98aae34c037de82d0', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
64
64
|
}
|
|
65
65
|
static get is() { return "correct-use-of-colors"; }
|
|
66
66
|
}
|
|
@@ -38,7 +38,7 @@ const incorrect = [
|
|
|
38
38
|
*/
|
|
39
39
|
export class IncorrectUseOfColors {
|
|
40
40
|
render() {
|
|
41
|
-
return (h("div", { key: '
|
|
41
|
+
return (h("div", { key: 'a6d5c05544bb0af37aeec022d53c9ebd64e891cc', class: "container" }, h("div", { key: '058290373f57f7f887f79a41d0441f0791037220', class: "mb-8" }, h("eds-alert", { key: 'f6168be82e7a540a1940314134c9eb57dbd1fae4', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" })), h("div", { key: 'c05365d2dcdce23a750c752cef81a7843fe9b54f', class: "flex" }, h("div", { key: '16ca87385a2e3a8fc108df30d628f78534a1b057', class: "w-full" }, h("ul", { key: 'f8c62eec7f63fb153c1785ede3a2cf535dfad6e5', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), h("div", { key: '9c918b52798d9a50a4b4171dd3d2df0ff276a8fa', class: "w-full" }, h("ul", { key: 'f93524796d29dfc7d85da5a86a937519df10cdd3', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, incorrect.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "incorrect-use-of-colors"; }
|
|
44
44
|
}
|
|
@@ -28,7 +28,7 @@ export class ComponentsSection {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return h("div", { key: '
|
|
31
|
+
return h("div", { key: 'bc06ee85e7b45c9d45afa416ecb839c0a10aa576', class: "container" }, this.renderContent());
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "components-section"; }
|
|
34
34
|
static get properties() {
|
|
@@ -25,7 +25,7 @@ export class DocsContent {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return h("div", { key: '
|
|
28
|
+
return h("div", { key: '8819d91f67b1df2f4e2a7da791bce550003eaa41', class: "container" }, this.renderContent());
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "docs-tokens"; }
|
|
31
31
|
static get properties() {
|
|
@@ -69,7 +69,7 @@ export class TokenList {
|
|
|
69
69
|
render() {
|
|
70
70
|
// Check if `show` prop is provided; if not, display all sections
|
|
71
71
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
72
|
-
return (h("section", { key: '
|
|
72
|
+
return (h("section", { key: 'de737cb2dcf5942c1e4a8b67bf5c757c9ca6564b', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
73
73
|
// Only render sections that exist in `colors`
|
|
74
74
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
75
75
|
}
|
|
@@ -5,7 +5,7 @@ import radii from "../../../../../../../../packages/assets/tokens/radii"; // Adj
|
|
|
5
5
|
*/
|
|
6
6
|
export class TokenRadii {
|
|
7
7
|
render() {
|
|
8
|
-
return (h("section", { key: '
|
|
8
|
+
return (h("section", { key: '199f8893d44b2c1087056d8c6d922652e08d78bd', class: "w-full mt-28" }, h("ul", { key: '175e5d717cb3e8a2ef32d3ace1a37fa3b305fda2', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(radii).map(([key, value]) => (h("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { class: `w-full p-16 block lg:flex items-center justify-center text-center border-3 border-soft rounded-${key}` }, h("eds-code-block", { language: "Utility Class", code: `rounded-${key}`, class: "mx-auto min-w-[200px] sm:mb-4 sm:max-w-[200px] mr-auto" }), h("eds-code-block", { code: `border-radius:${value}`, language: "css", class: "mx-auto min-w-[200px] sm:max-w-[200px] ml-auto" }))))))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "token-radii"; }
|
|
11
11
|
}
|
|
@@ -5,7 +5,7 @@ import ratios from "../../../../../../../../packages/assets/tokens/ratios"; // A
|
|
|
5
5
|
*/
|
|
6
6
|
export class TokenRatios {
|
|
7
7
|
render() {
|
|
8
|
-
return (h("section", { key: '
|
|
8
|
+
return (h("section", { key: '0f19e93b3841aa49c36e1195c25b01aa445158ce', class: "w-full" }, h("eds-section-core", { key: '750e15f4957fa7b0d0e050be22a5fcc06d947203', tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, h("ul", { key: '217447bc36c9ce0ccd309d0712711e30f704f5ef', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(ratios).map(([key, value]) => (h("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { class: "container ratio-box flex items-center justify-center text-center border-2 border-soft", style: {
|
|
9
9
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
10
10
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
11
11
|
maxWidth: '300px'
|
|
@@ -5,7 +5,7 @@ import shadowTokens from "../../../../../../../../packages/assets/tokens/shadows
|
|
|
5
5
|
*/
|
|
6
6
|
export class TokenShadows {
|
|
7
7
|
render() {
|
|
8
|
-
return (h("section", { key: '
|
|
8
|
+
return (h("section", { key: '178756bcd7a0192ed59e4cca5850529ed79d14ff', class: "w-full mt-28" }, h("ul", { key: 'f50430eca17728500d9bf3a074530f29e02708fb', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(shadowTokens).map(([category, tokens]) => Object.entries(tokens).map(([key, value]) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16" }, h("div", { class: "w-full p-16 block lg:flex items-center justify-center text-center border-2 border-soft", style: { boxShadow: value } }, h("eds-code-block", { code: `${category}-${key}`, language: "Utility Class", class: "mr-auto sm:mb-4 min-w-[200px]" }), h("eds-code-block", { code: `${value}`, language: "css", class: "ml-auto min-w-[200px]" })))))))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "token-shadows"; }
|
|
11
11
|
}
|
|
@@ -4,7 +4,7 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class TokenSpacing {
|
|
6
6
|
render() {
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: '21c919b5124094eb34f820327f439c0198758b2a', class: "w-full" }, h("ul", { key: '9dea1c4eb37380b4cf00c1e2b4ccc3b69eca5536', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: 'bf719062fc2724411a54076a272acf4d06f8cdad', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: '6bab4e4c52e273faead36180c744593c5365d012', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: 'b1327b6ce1ccca9f3ea64cc5eac0987a76209e04', class: "spacing-sample m-16 bg-strong" }, h("span", { key: '188476bd66a4dff9fa395275088ef94c92f2afca', class: "f-body-01 text-inverse" }, "Margin: 1rem / m-16")))), h("li", { key: '8ba0cdfbde803aa803b21641e4c15917ccbd8988', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: 'b1b88688a7ff18ac204d49c0536875c0b5a717ab', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: 'b72362f8a8460253e39927f1efde1115aed0a873', class: "spacing-sample ml-64 bg-strong" }, h("span", { key: '156be8010b2a809d71354ba28c7908f4fe58064f', class: "f-body-01 text-inverse" }, "Margin Left: 4rem / ml-64")))), h("li", { key: '228d4fecc2d4b7f5958048d0d15c548455287392', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: '9c92a7fe82b51896bc1ee2462f66efa9251c2fcc', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: '7059294203bace35afd2ed57b77807e2db806219', class: "spacing-sample mt-32 bg-strong" }, h("span", { key: '2e8ec24a3c550ca536a5701c04e0bed7844bc297', class: "f-body-01 text-inverse" }, "Margin Top: 2rem / mt-32")))), h("li", { key: 'd79846088a37e1f03a409d11ba69b3ff3cafa5dd', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: '0bd8e24e7369fd83c3de2fe7e841c0f3e97cd80b', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: 'c502d2567fb9dc49516390a9a8405c31ab324f0a', class: "spacing-sample p-32 bg-strong" }, h("span", { key: '6f07cec99d6fe8c32053ca3c407c336c7a40a64c', class: "f-body-01 text-inverse" }, "Padding: 2rem / p-32")))), h("li", { key: 'f6ddca79e1ab773c7a2f64653fbae0d49c03e071', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: 'bad00c444c75c5a458f66f8b480b69263e9d1548', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: 'd889c0216ded4bc9fce48d68ab7d8008bf9bd045', class: "spacing-sample pt-32 bg-strong" }, h("span", { key: '3b00250165aeb560641e99b5859266f1cecd7baf', class: "f-body-01 text-inverse" }, "Padding Top: 2rem / pt-32")))), h("li", { key: '53077e307812a3d15f534070e4ceb8dd39e22255', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: '9e7e1a60ef73524b630845bc686e9a44714c6de7', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: 'c8e3e113b805376f03f9ffe2f2afa985f5e19739', class: "spacing-sample pl-32 bg-strong" }, h("span", { key: '924878b9f3c36c8b83112ed93ba354527037f6bd', class: "f-body-01 text-inverse" }, "Padding Left: 2rem / pl-32")))))));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "token-spacing"; }
|
|
10
10
|
}
|
|
@@ -5,7 +5,7 @@ import typography from "../../../../../../../../packages/assets/tokens/typograph
|
|
|
5
5
|
*/
|
|
6
6
|
export class TokenTypography {
|
|
7
7
|
render() {
|
|
8
|
-
return (h("section", { key: '
|
|
8
|
+
return (h("section", { key: 'cfb9e2e38963772af466109521bbaedbf5852e2a', class: "w-full" }, h("ul", { key: '452fa03a44c1082ae4c260245b7dcb2df308ef4f', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(typography.typesets)
|
|
9
9
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
10
10
|
.flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => (h("li", { class: "grid-col-span-12 flex flex-col mt-16" }, h("div", { class: "w-full p-16 border border-soft rounded", style: { display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '1.5rem', alignItems: 'center' } }, h("div", { style: {
|
|
11
11
|
fontFamily: style.fontFamily || typography.families['plex-sans'],
|
|
@@ -13,7 +13,13 @@ export class TokenTypography {
|
|
|
13
13
|
fontSize: style.fontSize,
|
|
14
14
|
lineHeight: style.lineHeight,
|
|
15
15
|
letterSpacing: style.letterSpacing
|
|
16
|
-
} }, h("span", { class: "text-default" }, `${typeKey}`), h("div", { style: {
|
|
16
|
+
} }, h("span", { class: "text-default" }, `${typeKey}`), h("div", { style: {
|
|
17
|
+
fontSize: '12px',
|
|
18
|
+
fontWeight: '400',
|
|
19
|
+
color: '#7A7B7A',
|
|
20
|
+
marginTop: '4px',
|
|
21
|
+
fontFamily: '"IBM Plex Mono", monospace'
|
|
22
|
+
} }, size, " \u00B7 class: f-", typeKey)), h("div", null, h("eds-code-block", { code: [
|
|
17
23
|
`/* Utility: f-${typeKey} | Screen: ${size}:f-${typeKey} */`,
|
|
18
24
|
style.fontSize && `font-size: ${style.fontSize};`,
|
|
19
25
|
style.lineHeight && `line-height: ${style.lineHeight};`,
|