@ebrains/components 0.6.0-alpha.0 → 0.7.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
- package/dist/cjs/components.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/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/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,59 +1,58 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
2
|
+
display: inline-block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.switch-container {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.switch-label {
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
margin: 0 8px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Base styling for the switch button */
|
|
16
|
+
button.switch {
|
|
17
|
+
position: relative;
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
width: 50px;
|
|
21
|
+
height: 26px;
|
|
22
|
+
border: none;
|
|
23
|
+
border-radius: 13px;
|
|
24
|
+
background-color: #ccc;
|
|
25
|
+
padding: 0;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
transition: background-color 0.2s;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
button.switch:focus {
|
|
31
|
+
outline: none;
|
|
32
|
+
box-shadow: 0 0 0 2px #007aff;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
button.switch.switch--checked {
|
|
36
|
+
background-color: var(--green-500);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
button.switch.switch--disabled {
|
|
40
|
+
opacity: 0.6;
|
|
41
|
+
cursor: not-allowed;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Styling for the handle */
|
|
45
|
+
.switch-handle {
|
|
46
|
+
position: absolute;
|
|
47
|
+
width: 22px;
|
|
48
|
+
height: 22px;
|
|
49
|
+
border-radius: 50%;
|
|
50
|
+
background-color: #fff;
|
|
51
|
+
top: 2px;
|
|
52
|
+
left: 2px;
|
|
53
|
+
transition: transform 0.2s;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
button.switch.switch--checked .switch-handle {
|
|
57
|
+
transform: translateX(24px);
|
|
58
|
+
}
|
|
@@ -16,11 +16,11 @@ export class EdsSwitch {
|
|
|
16
16
|
render() {
|
|
17
17
|
// Compute an accessible name based on state.
|
|
18
18
|
const accessibleLabel = this.labelOn || this.labelOff ? (this.checked ? this.labelOn : this.labelOff) : 'Toggle switch';
|
|
19
|
-
return (h("div", { key: '
|
|
19
|
+
return (h("div", { key: '624776d666ada7b31cb8e84b08380b888451b1a5', class: "switch-container" }, this.labelOff && h("span", { key: 'ced31e91b88f4cb032744bd846811dd012cb9dcd', class: "switch-label switch-label--off" }, this.labelOff), h("button", { key: '8cb4594687313076f18f30fc26062e1440ae0ab9', type: "button", role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": accessibleLabel, class: {
|
|
20
20
|
switch: true,
|
|
21
21
|
'switch--checked': this.checked,
|
|
22
22
|
'switch--disabled': this.disabled
|
|
23
|
-
}, onClick: this.toggleSwitch, disabled: this.disabled }, h("span", { key: '
|
|
23
|
+
}, onClick: this.toggleSwitch, disabled: this.disabled }, h("span", { key: '88897b4368c337ea2dc4a017a8503171117a2070', class: "switch-handle" })), this.labelOn && h("span", { key: 'bb66f4fd1d09935598d3e9485d3cdf28e182620e', class: "switch-label switch-label--on" }, this.labelOn)));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "eds-switch"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { sendAnalytics } from "../../utils/analytics";
|
|
2
2
|
import { h } from "@stencil/core";
|
|
3
|
+
import { parseData } from "../../utils/sharedUtils";
|
|
3
4
|
/**
|
|
4
5
|
* `EdsTable` is a customizable data table component with support for dynamic data fetching, column configuration, pagination, and search functionality.
|
|
5
6
|
*
|
|
@@ -46,7 +47,8 @@ export class EdsTable {
|
|
|
46
47
|
}
|
|
47
48
|
parseData() {
|
|
48
49
|
try {
|
|
49
|
-
this.tableData =
|
|
50
|
+
this.tableData = parseData(this.data);
|
|
51
|
+
//this.tableData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data || [];
|
|
50
52
|
this.totalRows = this.tableData.length;
|
|
51
53
|
this.updateColumns();
|
|
52
54
|
this.currentPage = 1;
|
|
@@ -59,6 +61,7 @@ export class EdsTable {
|
|
|
59
61
|
}
|
|
60
62
|
parseConfig() {
|
|
61
63
|
try {
|
|
64
|
+
//this.parsedConfig = parseData(this.config);
|
|
62
65
|
this.parsedConfig = typeof this.config === 'string' ? JSON.parse(this.config) : this.config;
|
|
63
66
|
}
|
|
64
67
|
catch (error) {
|
|
@@ -84,7 +87,7 @@ export class EdsTable {
|
|
|
84
87
|
}
|
|
85
88
|
const paginationEl = this.hostEl.shadowRoot.querySelector('eds-pagination');
|
|
86
89
|
if (paginationEl && !paginationEl.hasAttribute('listener-attached')) {
|
|
87
|
-
paginationEl.addEventListener('
|
|
90
|
+
paginationEl.addEventListener('page', (event) => this.handlePageChange(event.detail));
|
|
88
91
|
paginationEl.setAttribute('listener-attached', 'true');
|
|
89
92
|
}
|
|
90
93
|
}
|
|
@@ -157,15 +160,15 @@ export class EdsTable {
|
|
|
157
160
|
? this.hostEl.getRootNode().host.getBoundingClientRect().width
|
|
158
161
|
: 400;
|
|
159
162
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
160
|
-
return (h("div", { key: '
|
|
163
|
+
return (h("div", { key: 'b77c9a601d3c8c0eae3cf7754839fdf4ca9b3ad4' }, this.searchEnabled && (h("div", { key: 'a1e652ce7b75f17527b6d1c83968a3c50ee50e23' }, h("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
|
|
161
164
|
// @ts-ignore
|
|
162
|
-
onInput: (event) => this.handleSearch(event) }))), h("div", { key: '
|
|
165
|
+
onInput: (event) => this.handleSearch(event) }))), h("div", { key: 'fd3de252d0ae287cea5409c4e7f651fc557a8fc9', class: "mt-20" }, h("table", { key: '80f767759a6049fae588e150e0ff166db4bc20b4', class: "block overflow-x-auto mt-6 p-0" }, h("thead", { key: 'd7c39c1b36c9e247896082647372125d7cf11680' }, h("tr", { key: 'f32ca0941e118f89934c44dcad77a27880ea9e53', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
163
166
|
var _a;
|
|
164
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth -
|
|
165
|
-
}))), h("tbody", { key: '
|
|
167
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, column));
|
|
168
|
+
}))), h("tbody", { key: '85a9c3e55d12c6f62f0175613a4ff84e703dc4c5' }, paginatedRows.map((row) => (h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
166
169
|
var _a;
|
|
167
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth -
|
|
168
|
-
}))))))), this.shouldEnablePagination() && (h("div", { key: '
|
|
170
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.renderCell(row[column], column)));
|
|
171
|
+
}))))))), this.shouldEnablePagination() && (h("div", { key: '093e13235ad0041096f05e476e6199575bdb3265', class: "mt-20" }, h("eds-pagination", { key: 'a86d91875a3847d1b4735fe76910367ed1fd7875', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
169
172
|
}
|
|
170
173
|
static get is() { return "eds-table"; }
|
|
171
174
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,7 +25,8 @@ export default {
|
|
|
25
25
|
searchEnabled: {
|
|
26
26
|
control: { type: 'boolean' },
|
|
27
27
|
description: 'Enable search input for filtering'
|
|
28
|
-
}
|
|
28
|
+
},
|
|
29
|
+
columnSize: { control: 'select', options: ['default', 'medium', 'large'] }
|
|
29
30
|
},
|
|
30
31
|
args: {
|
|
31
32
|
data: [
|
|
@@ -40,7 +41,8 @@ export default {
|
|
|
40
41
|
},
|
|
41
42
|
rowsPerPage: 5,
|
|
42
43
|
paginationEnabled: true,
|
|
43
|
-
searchEnabled: true
|
|
44
|
+
searchEnabled: true,
|
|
45
|
+
columnSize: 'default'
|
|
44
46
|
}
|
|
45
47
|
};
|
|
46
48
|
// Sample data for the table
|
|
@@ -65,6 +67,7 @@ export const Default = {
|
|
|
65
67
|
pagination-enabled="${args.paginationEnabled}"
|
|
66
68
|
search-enabled="${args.searchEnabled}"
|
|
67
69
|
endpoint="${args.endpoint || ''}"
|
|
70
|
+
column-size="${args.columnSize}"
|
|
68
71
|
></eds-table>
|
|
69
72
|
`,
|
|
70
73
|
args: {
|
|
@@ -76,7 +79,8 @@ export const Default = {
|
|
|
76
79
|
rowsPerPage: 5,
|
|
77
80
|
paginationEnabled: true,
|
|
78
81
|
searchEnabled: true,
|
|
79
|
-
endpoint: '' // Leave empty for manual data entry
|
|
82
|
+
endpoint: '', // Leave empty for manual data entry
|
|
83
|
+
columnSize: 'default'
|
|
80
84
|
}
|
|
81
85
|
};
|
|
82
86
|
export const WithEndpoint = {
|
|
@@ -86,9 +90,10 @@ export const WithEndpoint = {
|
|
|
86
90
|
rows-per-page="${args.rowsPerPage}"
|
|
87
91
|
pagination-enabled="${args.paginationEnabled}"
|
|
88
92
|
search-enabled="${args.searchEnabled}"
|
|
89
|
-
host-width="600"
|
|
90
|
-
|
|
93
|
+
host-width="600"
|
|
94
|
+
column-size="${args.columnSize}"
|
|
95
|
+
></eds-table>`,
|
|
91
96
|
args: {
|
|
92
|
-
endpoint: 'http://127.0.0.1:5001/api/
|
|
97
|
+
endpoint: 'http://127.0.0.1:5001/api/catalogue'
|
|
93
98
|
}
|
|
94
99
|
};
|
|
@@ -28,7 +28,7 @@ export class EdsTag {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
const classes = tagStyles({ intent: this.intent });
|
|
31
|
-
return h("span", { key: '
|
|
31
|
+
return h("span", { key: '2f4b0011094538aaa0a7cc855eadc1b39c9dc028', class: classes }, this.label);
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "eds-tag"; }
|
|
34
34
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { parseData } from "../../utils/sharedUtils";
|
|
2
3
|
export class EdsTimeline {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.events = undefined;
|
|
@@ -6,26 +7,7 @@ export class EdsTimeline {
|
|
|
6
7
|
this.parsedEvents = [];
|
|
7
8
|
}
|
|
8
9
|
parseEvents(newValue) {
|
|
9
|
-
|
|
10
|
-
// If events is a string, try to parse it
|
|
11
|
-
if (typeof newValue === 'string') {
|
|
12
|
-
try {
|
|
13
|
-
parsed = JSON.parse(newValue);
|
|
14
|
-
}
|
|
15
|
-
catch (e) {
|
|
16
|
-
// eslint-disable-next-line
|
|
17
|
-
console.error('Error parsing timeline events JSON', e);
|
|
18
|
-
parsed = [];
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
// If events is already an array, use it directly
|
|
22
|
-
else if (Array.isArray(newValue)) {
|
|
23
|
-
parsed = newValue;
|
|
24
|
-
}
|
|
25
|
-
// Otherwise, default to an empty array
|
|
26
|
-
else {
|
|
27
|
-
parsed = [];
|
|
28
|
-
}
|
|
10
|
+
const parsed = parseData(newValue);
|
|
29
11
|
// Map over the parsed events to ensure boolean conversion for "completed"
|
|
30
12
|
this.parsedEvents = Array.isArray(parsed)
|
|
31
13
|
? parsed.map((event) => (Object.assign(Object.assign({}, event), { completed: event.completed === 'true' || event.completed === true })))
|
|
@@ -56,7 +38,7 @@ export class EdsTimeline {
|
|
|
56
38
|
}
|
|
57
39
|
}
|
|
58
40
|
render() {
|
|
59
|
-
return (h("div", { key: '
|
|
41
|
+
return (h("div", { key: '6d6eaccb876780be7c9e443a8d8a443fc0b4f779', class: "max-w-sidebar mx-auto px-4 py-8" }, h("div", { key: '122a6273fbd448a026fee899159872366cc01033', class: "relative" }, h("div", { key: 'bbf7359dacf3eb74f096d8c3e59344a6ceb67e8e', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), h("div", { key: 'e86895cccaf84f269a4ae0117deb5ef8bfa6e501', class: "space-y-16" }, this.parsedEvents.map((event, index) => (h("div", { class: "relative flex" }, h("div", { class: `w-1/2 ${index % 2 === 0 ? 'pr-4' : ''}` }, index % 2 === 0 && (h("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
60
42
|
? [{ label: 'completed', style: 'accent' }]
|
|
61
43
|
: [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))), h("div", { class: "flex items-center justify-center relative" }, event.completed ? (h("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" })) : (h("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" }))), h("div", { class: `w-1/2 ${index % 2 !== 0 ? 'pl-4' : ''}` }, index % 2 !== 0 && (h("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
62
44
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -90,7 +90,7 @@ export class EdsTooltip {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
|
-
return (h("div", { key: '
|
|
93
|
+
return (h("div", { key: '0d00052874b171639b9185412d8a3a9f917e6df5', class: "relative" }, h("slot", { key: '2cb9cdc51248c3c6cedcaf8ee113530f2675b870' }), this.isVisible && this.isPositioned && this.content && (h("div", { key: 'af54333ca0c8cf44dcc2b779a7378a9ecf256877', class: "rounded-xs bg-strongest text-inverse f-ui-03-light pointer-events-none absolute z-10 whitespace-nowrap p-6", role: "tooltip", style: {
|
|
94
94
|
top: this.tooltipStyle.top,
|
|
95
95
|
left: this.tooltipStyle.left,
|
|
96
96
|
transform: this.tooltipStyle.transform
|
|
@@ -41,7 +41,7 @@ export class EdsTrl {
|
|
|
41
41
|
Application: { format: 'code' },
|
|
42
42
|
'Current TRL Stage': { format: 'text' }
|
|
43
43
|
};
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: 'bd46e540a0dd3c09a91d1cff266b94a2bf9fba95', class: "container mx-auto px-4 py-8" }, h("eds-table", { key: 'd3ef10fc7e5ccd6029d1e62c2bb78765e78c8a13', data: JSON.stringify(tableData), config: JSON.stringify(tableConfig), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" })));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "eds-trl"; }
|
|
47
47
|
static get properties() {
|
|
@@ -33,7 +33,7 @@ export class ColorPrimaryPalette {
|
|
|
33
33
|
];
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("ul", { key: '
|
|
36
|
+
return (h("ul", { key: '7460398e9b55e735287f39e8a7fd6a6116bd8141', class: "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: '0910d36be4d6a7a7b8cf1d95a507bb3e1a2f5062', class: "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() {
|
|
@@ -49,7 +49,7 @@ export class ColorSupportPalette {
|
|
|
49
49
|
];
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h("ul", { key: '
|
|
52
|
+
return (h("ul", { key: 'dfac2328c0c7d8f9398ee7c6e7ad82f5acaaeb6a', class: "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 || 'N/A'), h("span", { class: "f-body-02" }, color.pantoneU || 'N/A'))))))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "color-support-palette"; }
|
|
55
55
|
}
|
|
@@ -33,7 +33,7 @@ export class GradientPrimaryPalette {
|
|
|
33
33
|
];
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("ul", { key: '
|
|
36
|
+
return (h("ul", { key: '64ac6b2a3c62ef21921d0aa75c1f85e672dab1a1', class: "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: '18563bbde4b325aed74ee0b01b138a23cdae495c' }, h("ul", { key: 'dbabf8a22ee06cafb4b4cefdd8b68f250ec83f12', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: '5f3cddf6bff2942681c67e464b5da2e3ac805d0b', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '22cf209919cac0811959841e6f2aa75728728d4a', 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: '7f1c4b5fa75f03395c272b3301d71d122b68d120', class: "grid" }, h("span", { key: 'a10f6c850e37a7e664e770f6a35c0b126cb8418a', class: "f-body-02" }, this.colors[0].rgb), h("span", { key: '0e3e4b4ea42aa3040e1367817824cbcb67e12564', class: "f-body-02 w-full" }, this.colors[0].cmyk), h("eds-code-block", { key: '7947f3621bfcc3a53f06f8067b2f64deea660993', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'bc30dd2504a253d142778e7c5a1a3fd60c90367e', class: "grid" }, h("span", { key: 'd2d183a462473ce02f80724cd3fa2280e4ceb8e0', class: "f-body-02" }, this.colors[0].pantoneC), h("span", { key: '91555d5a4e2b03aae6a887a890b848080781622e', class: "f-body-02" }, this.colors[0].pantoneU))), h("div", { key: 'b16c2c137bf4a738236f8b673f0f7810ad2746ab', 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: '1f7a698c4ad373d9513c5925074e81176a824c9a', class: "grid" }, h("span", { key: '2852eb1e5f3fa33a67887eceb315b32c4035f2eb', class: "f-body-02" }, this.colors[1].rgb), h("span", { key: '903756ee7952c079d9e9f3d349344ddac243f632', class: "f-body-02 w-full" }, this.colors[1].cmyk), h("eds-code-block", { key: '2db0546ebeef3538312a6477b92a736c444e503e', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'e61d36591eb298ea6f3fcbabd0b0f9362238fe4f', class: "grid" }, h("span", { key: '8b0ded8e23240b6d4d8edfa3a3aa6c85f25f988b', class: "f-body-02" }, this.colors[1].pantoneC), h("span", { key: 'fb40588691f07763cf9880d9f8f049002f3e8f06', class: "f-body-02" }, this.colors[1].pantoneU))))), h("eds-block-break", { key: 'c3ed43f27d147d4cb230fa1501e7831bc5147f1e' }), h("ul", { key: '9762bc8bedd63846dc4c0bec57efb65054c5a59c', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: 'ce9b3991c76437de7f7fc0c94fd6587c4991075a', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: 'c5d74cb6e29b296c7ed91894498c5bf924de2d0b', 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: '888b52e0276da7d9aa3c8e6f2554da86b22c5086', class: "grid" }, h("span", { key: 'a40cd60940f1d32360d0f757d47372319d8ecc9e', class: "f-body-02" }, this.colors[2].rgb), h("span", { key: '5a0cd8cb8e93b41be560d817bd5885c6b4461a0e', class: "f-body-02 w-full" }, this.colors[2].cmyk), h("eds-code-block", { key: 'fe48732aa72d3c35e5377bf0ae5ac475a2ca1de4', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '5693b3908af5f0787d965ab028363318639dfec5', class: "grid" }, h("span", { key: 'ae024e8c6d7c28d8c22cce3e98084533a56f4ca8', class: "f-body-02" }, this.colors[2].pantoneC), h("span", { key: '05340bf74e18c28154f8d4df08d32283a5ead23a', class: "f-body-02" }, this.colors[2].pantoneU))), h("div", { key: '06ab691118c23a05bebad65d640e5995e7e3af25', 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: '52dd0aab7a5809bbd082a3d3cff2695572ebf6c6', class: "grid" }, h("span", { key: 'bb918b8a0e618124fc55290df71c3813471ee1af', class: "f-body-02" }, this.colors[3].rgb), h("span", { key: '91a426d45df887346a9bb7f60bcbbd21718f8b22', class: "f-body-02 w-full" }, this.colors[3].cmyk), h("eds-code-block", { key: '0f4a629375447d8429c4b8ff2fc040a89e84b5fc', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'b53e0a653cffa7fb4a0988c5bec113efeb5641a7', class: "grid" }, h("span", { key: 'b6f08290063126ba39f73bb657dd10ad52bd8bad', class: "f-body-02" }, this.colors[3].pantoneC), h("span", { key: '9339e232d31c86a33e374f24f152a69e7e5c1a7b', class: "f-body-02" }, this.colors[3].pantoneU))))), h("eds-block-break", { key: '2e3f5b0f5683a67b8f8e9ce83ce250802a7c9004' }), h("ul", { key: '6b9aca7a8e164c6b401fc1a642aa143a468bbb66', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: '8bdd9fb9b08ab1ba07a17fdfb6acdd48ae11b28c', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '3d3ea47b21006a0771859a92e15ac4f9b7bf7897', 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: 'b1dace03d1388205556c95d49cbd756614def991', class: "grid" }, h("span", { key: '094ec7f3f8ddd1275a6fb1b58c84bb111e3ae404', class: "f-body-02" }, this.colors[4].rgb), h("span", { key: '336830747c0799da2661ac90a3afa8cb61cb1fab', class: "f-body-02 w-full" }, this.colors[4].cmyk), h("eds-code-block", { key: '18a585ce75dad73a2ed6a876634ed222db9fd994', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '88a46869e0d40d98cdcff22d82e03d1ac49af723', class: "grid" }, h("span", { key: 'bc766933761ebb18581f5099f08a61b841a267a3', class: "f-body-02" }, this.colors[4].pantoneC), h("span", { key: 'd3972a70e80e7267f427ec0d68205a778e339d74', class: "f-body-02" }, this.colors[4].pantoneU))), h("div", { key: 'ba98ae739932dc19d1aa4cc34f4ffc02c0e175c0', 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: '2249fc8c98d70a0be85aa516cf84d4fb624e78c7', class: "grid" }, h("span", { key: 'd89fe65247e3e0971a1c66f5e688f8fbd4d91400', class: "f-body-02" }, this.colors[5].rgb), h("span", { key: '39bbde5ac5c4ab66ccb28bd2c8c4495cc1593920', class: "f-body-02 w-full" }, this.colors[5].cmyk), h("eds-code-block", { key: '8cb9c77d7bb896ae6f18b445fb044267310ded19', code: this.colors[5].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '16f65aa08412f3fe478fb72d07a27537ada9804d', class: "grid" }, h("span", { key: '997dba028ea8e06c970a624309a82c7dda2316d9', class: "f-body-02" }, this.colors[5].pantoneC), h("span", { key: '64483b5a8f445664c816b275eb871ef0fcecda19', 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: 'dc57ff3bffa6aea0facf8d1e8fc186139f69e56e', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: 'e1d8dbfcb363cd25456d10ad4d9f500c3a324ab3', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: 'd11bbdbb71906dd7331aaaa1327ec2f7adb3914d', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[0].background } }, h("div", { key: '4badad0801b33acb2b098698bde99760bfd14b80', class: "grid" }, h("span", { key: '77380c331665e198b3a04a93b728d7448158bdf1', class: "f-body-02" }, this.colors[0].rgb), h("span", { key: '342dd1997afc6c83c28662101ba7f91ea8566a55', class: "f-body-02 w-full" }, this.colors[0].cmyk), h("eds-code-block", { key: 'ddcbdaf618dde60577034a7e861b4cf3bbe667f6', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '8a357ee33e9cd94eb30a5678d20cbf4ebf9498bd', class: "grid" }, h("span", { key: '22089c639c787de6f12441041d2f7a2a747f4242', class: "f-body-02" }, this.colors[0].pantoneC || 'N/A'), h("span", { key: '0423ab8c9d4e1797e6536829be719e09ca772e28', class: "f-body-02" }, this.colors[0].pantoneU || 'N/A')))), h("li", { key: '13c11bcd2017ae7dbbe8c83dcaa6ceeb4ed355e6', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '878df236a48f7c58dfc9fcf1041823efa5b86b6f', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[1].background } }, h("div", { key: '3c477c2733d98d2c3c918196274f73e21f1646fe', class: "grid" }, h("span", { key: 'ce1f49df809c94f3b5aaca8bda6b48cded46f0a2', class: "f-body-02" }, this.colors[1].rgb), h("span", { key: '99d3fe3b33328b1e2f025abf3622f715ed301f1b', class: "f-body-02 w-full" }, this.colors[1].cmyk), h("eds-code-block", { key: 'de3b2711377cdee0f78aca2391ec59af02e847e3', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'aeaf3c18d0b30e99290bd0bc471eab32540dc495', class: "grid" }, h("span", { key: 'e7665496b791ed0cc6593348ecf9def40a1e80ca', class: "f-body-02" }, this.colors[1].pantoneC || 'N/A'), h("span", { key: 'e205631d4697c84fc65fa93224cdb76e254ec951', class: "f-body-02" }, this.colors[1].pantoneU || 'N/A')))), h("li", { key: 'cc17448fa87f6aed9d590aa4f5e2b1110f5e0bda', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: 'eb68860fede226a32f4bccd49df7df4b4f29c125', 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: '377ef135def34f71d52870ebb16aead224b9b794', class: "grid" }, h("span", { key: '3117040c6a1c417dc9ac7629a885975cd459716b', class: "f-body-02" }, this.colors[2].rgb), h("span", { key: 'c800eb6acf0b6182e95ad74376b46f8907507b51', class: "f-body-02 w-full" }, this.colors[2].cmyk), h("eds-code-block", { key: 'b244b778b58b605d3f0939a36930a096763a10e7', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '95681ce98858d2ebc7dca572366eb314e9648d10', class: "grid" }, h("span", { key: '43573821ee81029875fa51580d9b043246a37f91', class: "f-body-02" }, this.colors[2].pantoneC), h("span", { key: 'c6083e98c351f4290617b3036a430d96350f6fe0', class: "f-body-02" }, this.colors[2].pantoneU))), h("div", { key: 'c2b7b895df7c4f8520e147b69ab51d988b5fc36a', 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: '6f95b56b195779568cb8ee8f2426a413e04efb24', class: "grid" }, h("span", { key: 'e5f3dcdaeefdc080d24bfc70e98c50206215b268', class: "f-body-02" }, this.colors[3].rgb), h("span", { key: 'f22aad83b9de337384791e3900934035e1dfcd6b', class: "f-body-02 w-full" }, this.colors[3].cmyk), h("eds-code-block", { key: 'ec068df8197f86f9d2f433ddd589b89708e035a4', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '61f27c8dccfdfe2004ed7774d06ca38b0ede285d', class: "grid" }, h("span", { key: '9a8e7b7cc4eead6b79423e97b3ff01d3b70a85ec', class: "f-body-02" }, this.colors[3].pantoneC), h("span", { key: '2b5a61e7cdab44181d44db06a3eb5031a31648b8', class: "f-body-02" }, this.colors[3].pantoneU)))), h("li", { key: '11e3f6ca45cbac17dd3bb8da99c6fd78e5a96b39', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '7e34069adbd3ed1509a35a22e4239e5e56d7f5b3', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[4].background } }, h("div", { key: 'c0047f8cb9bf28bec4230fa0aae28e7d3ecb1599', class: "grid" }, h("span", { key: 'a44db9793a74563015861206d3e6d10c3a3de998', class: "f-body-02" }, this.colors[4].rgb), h("span", { key: '51a8bce7027c8c151a2f56624dd340fe744d7da6', class: "f-body-02 w-full" }, this.colors[4].cmyk), h("eds-code-block", { key: '20d8bcda1aed4dd237dddb6079bba68f8f85dda7', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '8e30a85a4418f1173183be58eade4682c6c812dd', class: "grid" }, h("span", { key: '52fa4db1021aa08f5fe4c9cface5562050181eff', class: "f-body-02" }, this.colors[4].pantoneC || 'N/A'), h("span", { key: '7b0d375a2a63b3657eed9b4df0aead1db00255b5', 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: 'ade28f6aa4a670443a4d077ff534117acb265bfe', class: "container" }, h("p", { key: '23adcbeb3a15cd2b1248f63c808ddbe7cacef531', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: '9b8b9909d409565e2c37cd4048a84b7c3751147f', label: "primary", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", h("eds-link", { key: 'fb3fe62e34d86fe345cbe177eef5b9ac57b749d5', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), h("div", { key: 'e24ff6eed3125519961d1cdd7789ada200d8cc3b', class: "flex" }, h("div", { key: '670ef68f1f25d9267e9a8eb90a94e6300b9d78d3', class: "w-full" }, h("ul", { key: '2ed821a59b849dd540233371f831a16974a2dc99', class: "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: 'b72cc79258522b595d4bd024de51b2dec6458f57', class: "w-full" }, h("ul", { key: '9650c15d16fc184f0f5c518da5944567afe30fd6', class: "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: 'ff9c1ae248f5cdc91bf9fe902e2a5aa00394a27c', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: '1fcdd015426a1512ea9a70a732e4615447238e7f', label: "purple", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", h("eds-link", { key: 'ec0b3529cfcb402556274e83a2a62d899eb8c7e9', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), h("div", { key: 'edcd735b912341fdaaac6087c0d838a3341af687', class: "flex" }, h("div", { key: '8a96a72c29fb46b8189080ca257832cad444fd40', class: "w-full" }, h("ul", { key: 'a169a2f187db3fabc955ea28aed6019b5904b9f4', class: "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: 'ba11e5e1ce445aec36d4eb3baf5ae39c956704fe', class: "w-full" }, h("ul", { key: '01c6ee6e5a77cafbb38928afdd6716a5aec6c93c', class: "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: '91ff22c373f1ae354ab9f76008f16d5e5be21331', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: 'a58977e316d22cb662173cc9d2d76448808fb2f8', label: "blue", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", h("eds-link", { key: '0fd12af19848395b2a631a5ccb33b0530005bebc', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), h("div", { key: '38c4eea411b4021dbf15cc7d73ff26371d8175a4', class: "flex" }, h("div", { key: 'bdd75c354631d54fa03ea35e798ab5dcbde4f248', class: "w-full" }, h("ul", { key: '8777390f722798653df7ec72e6596a36246a5f2b', class: "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: 'c61047b695bdc8d29f5c665753b4ebfa2cbb272a', class: "w-full" }, h("ul", { key: '7de74c3a918a30cacaf4ffb78d24145d78e4511a', class: "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: 'd0c3a7170ba185caccf3cecf7e4d39cce5292c49', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: '16ae6a94124ea87782095058857d47a4a91789a9', label: "redish", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", h("eds-link", { key: 'c5c4d82a809a586637f00013782e69fa6bab2879', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), h("div", { key: '83d408a58b5bf5dddbcceb2336ffa7c58bdcea44', class: "flex" }, h("div", { key: 'dca88ee121c036f50f23105cd8a430ed883f19db', class: "w-full" }, h("ul", { key: '9b12b41325dfb100e87e1ced15f4b1b9c3457822', class: "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: '013e039ef9ebecdde9b59c82d819047976e77523', class: "w-full" }, h("ul", { key: '7c6125cc0f7e9998c1f74be9456a8a171545edf1', class: "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: '6906da67ca0b6e67545b0daac34d476e4c80c75f', class: "container" }, h("eds-alert", { key: '0930bacd11792156dd000b14ed7e82a1fa41012f', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" }), h("div", { key: 'da773bedfa3591351b2425e14d084213e5d90fdb', class: "flex" }, h("div", { key: '894b7e13066eb40ee1ea19a62bf7a059407313c7', class: "w-full" }, h("ul", { key: 'fba6f9c9d34edd373841a9888971de7b08b6450d', class: "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: 'af7e2036fbe979299f2657a7ab3472d7d4196db2', class: "w-full" }, h("ul", { key: 'ad46e717be4200796424c6f72f022d6e163975ff', class: "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
|
}
|
|
@@ -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: 'bca88363ffc01f45526068bd95e96950a3920f0f', 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: 'f5a5ae4bf9096ac5f9aa23e76e45e103a0867bf6', class: "w-full mt-28" }, h("ul", { key: '54815bbb3e0dcdd381d711dedd126050813cf6c0', class: "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: 'a0af49b94d449dfe4b02f6fec8623504ad37d5b8', class: "w-full" }, h("eds-section-core", { key: '0e52b86dc5dc6dab5dba6d3ae3d902fbc2f93ef4', tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, h("ul", { key: '5dc637b53903ebdb599693fe36b956c7d6008085', 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: '1b87e2999f2b29677869d9651181135566ba64ff', class: "w-full mt-28" }, h("ul", { key: '010dcbd18c54ee35dc402a26990a37cb0730c5b0', class: "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
|
}
|