@ebrains/components 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/clone-846acfdd.js +5 -0
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
- package/dist/cjs/components-section.cjs.entry.js +2 -2
- package/dist/cjs/components.cjs.js +2 -2
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/docs-palettes.cjs.entry.js +2 -2
- package/dist/cjs/docs-tokens.cjs.entry.js +2 -2
- package/dist/cjs/edit-ff5b84d8.js +5 -0
- package/dist/cjs/{eds-avatar_26.cjs.entry.js → eds-accordion_33.cjs.entry.js} +3467 -157
- package/dist/cjs/eds-app-root.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-desc_2.cjs.entry.js +3 -3
- package/dist/cjs/eds-card-generic.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-project.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-section.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tags.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-tool.cjs.entry.js +2 -2
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +2 -2
- package/dist/cjs/eds-feedback.cjs.entry.js +2 -2
- package/dist/cjs/eds-footer.cjs.entry.js +9 -3
- package/dist/cjs/eds-frame.cjs.entry.js +2 -2
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +1 -1
- package/dist/cjs/eds-gauge.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-bin.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-bookmark.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-clone.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-close.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-copy.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-draft.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-edit.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-eu.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-external.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-loader.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-menu.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-minus.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-more.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-paper.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-plus.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-portal.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-private.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-public.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-search.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-star.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-start.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-success.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-tutorial.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-updown.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-user.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-view.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +2 -2
- package/dist/cjs/eds-modal.cjs.entry.js +3 -3
- package/dist/cjs/eds-pie.cjs.entry.js +1 -1
- package/dist/cjs/eds-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/eds-section-core_2.cjs.entry.js +4 -4
- package/dist/cjs/eds-social-networks.cjs.entry.js +2 -2
- package/dist/cjs/eds-spinner.cjs.entry.js +2 -2
- package/dist/cjs/eds-splash-screen.cjs.entry.js +1 -1
- package/dist/cjs/eds-timeline.cjs.entry.js +2 -2
- package/dist/cjs/eds-toast-manager.cjs.entry.js +2 -2
- package/dist/cjs/eds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/eds-trl.cjs.entry.js +2 -2
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/{index-88c8039f.js → index-0249a32e.js} +15 -28
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/logo-space.cjs.entry.js +2 -2
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +3 -3
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +2 -2
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
- package/dist/cjs/svg-repository.cjs.entry.js +8 -4
- package/dist/cjs/token-list_3.cjs.entry.js +4 -4
- package/dist/cjs/token-ratios.cjs.entry.js +2 -2
- package/dist/cjs/token-spacing.cjs.entry.js +2 -2
- package/dist/cjs/token-typography.cjs.entry.js +2 -2
- package/dist/cjs/view-80d5c6c8.js +5 -0
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/eds-accordion/eds-accordion.js +1 -1
- package/dist/collection/components/eds-alert/eds-alert.js +30 -3
- package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
- package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +1 -1
- package/dist/collection/components/eds-button/eds-button.css +4 -0
- package/dist/collection/components/eds-button/eds-button.js +19 -8
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +1 -1
- package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +1 -1
- package/dist/collection/components/eds-code-block/eds-code-block.js +1 -1
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +2 -2
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-bin/eds-icon-bin.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-clone/eds-icon-clone.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-draft/eds-icon-draft.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-edit/eds-icon-edit.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-start/eds-icon-start.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-view/eds-icon-view.js +36 -0
- package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
- package/dist/collection/components/eds-img/eds-img.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +2 -2
- package/dist/collection/components/eds-input-field/eds-input-field.js +3 -2
- package/dist/collection/components/eds-link/eds-link.js +27 -7
- package/dist/collection/components/eds-link/eds-link.stories.js +3 -1
- package/dist/collection/components/eds-logo/eds-logo.js +1 -1
- package/dist/collection/components/eds-modal/eds-modal.js +2 -2
- package/dist/collection/components/eds-nps/eds-npm.stories.js +36 -0
- package/dist/collection/components/eds-nps/eds-nps.css +73 -0
- package/dist/collection/components/eds-nps/eds-nps.js +163 -0
- package/dist/collection/components/eds-pagination/eds-pagination.css +4 -0
- package/dist/collection/components/eds-pagination/eds-pagination.js +130 -50
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
- package/dist/collection/components/eds-rating/eds-rating.js +25 -3
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
- package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
- package/dist/collection/components/eds-switch/eds-switch.css +15 -5
- package/dist/collection/components/eds-switch/eds-switch.js +26 -4
- package/dist/collection/components/eds-table/eds-table.js +38 -37
- package/dist/collection/components/eds-table/eds-table.stories.js +1 -1
- package/dist/collection/components/eds-tag/eds-tag.js +1 -1
- package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
- package/dist/collection/components/eds-trl/eds-trl.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
- package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
- package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +1 -1
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +8 -2
- package/dist/collection/shared-ui/eds-form/eds-form.js +26 -4
- package/dist/collection/shared-ui/eds-form/eds-form.stories.js +1 -1
- package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
- package/dist/collection/shared-ui/eds-header/eds-header.js +1 -1
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +26 -5
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +89 -31
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/shared-ui/eds-user/eds-user.js +1 -1
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/collection/utils/eds-form/formValidators.js +33 -0
- package/dist/components/clone.js +3 -0
- package/dist/components/components-section.js +1 -1
- package/dist/components/components.css +7 -9
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/docs-palettes.js +1 -1
- package/dist/components/docs-tokens.js +1 -1
- package/dist/components/edit.js +1 -1
- package/dist/components/eds-accordion2.js +1 -1
- package/dist/components/eds-alert2.js +21 -5
- package/dist/components/eds-app-root.js +1 -1
- package/dist/components/eds-avatar2.js +1 -1
- package/dist/components/eds-block-break2.js +1 -1
- package/dist/components/eds-breadcrumb.js +1 -1
- package/dist/components/eds-button2.js +21 -10
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-project.js +1 -1
- package/dist/components/eds-card-tags.js +1 -1
- package/dist/components/eds-card-title2.js +1 -1
- package/dist/components/eds-card-tool.js +1 -1
- package/dist/components/eds-code-block2.js +1 -1
- package/dist/components/eds-cookies-preference.js +1 -1
- package/dist/components/eds-dropdown2.js +2 -2
- package/dist/components/eds-feedback.js +1 -1
- package/dist/components/eds-footer2.js +8 -2
- package/dist/components/eds-form.js +80 -22
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-gauge.js +1 -1
- package/dist/components/eds-header.js +1 -1
- package/dist/components/eds-icon-arrow-diagonal.js +1 -1
- package/dist/components/eds-icon-arrow-right.js +1 -1
- package/dist/components/eds-icon-bin.js +1 -1
- package/dist/components/eds-icon-bluesky.js +1 -1
- package/dist/components/eds-icon-bookmark.js +1 -1
- package/dist/components/eds-icon-chevron-down.js +1 -1
- package/dist/components/eds-icon-chevron-left.js +1 -1
- package/dist/components/eds-icon-chevron-right.js +1 -1
- package/dist/components/eds-icon-chevron-up.js +1 -1
- package/dist/components/eds-icon-clone.d.ts +11 -0
- package/dist/components/eds-icon-clone.js +33 -0
- package/dist/components/eds-icon-close.js +1 -1
- package/dist/components/eds-icon-copy.js +1 -1
- package/dist/components/eds-icon-draft.js +1 -1
- package/dist/components/eds-icon-edit.js +1 -1
- package/dist/components/eds-icon-eu.js +1 -1
- package/dist/components/eds-icon-external.js +1 -1
- package/dist/components/eds-icon-facebook.js +1 -1
- package/dist/components/eds-icon-gitlab.js +1 -1
- package/dist/components/eds-icon-linkedin.js +1 -1
- package/dist/components/eds-icon-loader.js +1 -1
- package/dist/components/eds-icon-mastodon.js +1 -1
- package/dist/components/eds-icon-menu.js +1 -1
- package/dist/components/eds-icon-minus.js +1 -1
- package/dist/components/eds-icon-more.js +1 -1
- package/dist/components/eds-icon-paper.js +1 -1
- package/dist/components/eds-icon-plus.js +1 -1
- package/dist/components/eds-icon-portal.js +1 -1
- package/dist/components/eds-icon-private.js +1 -1
- package/dist/components/eds-icon-public.js +1 -1
- package/dist/components/eds-icon-search.js +1 -1
- package/dist/components/eds-icon-star.js +1 -1
- package/dist/components/eds-icon-start.js +1 -1
- package/dist/components/eds-icon-success.js +1 -1
- package/dist/components/eds-icon-thumbs-down.js +1 -1
- package/dist/components/eds-icon-thumbs-up.js +1 -1
- package/dist/components/eds-icon-tutorial.js +1 -1
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-unknown.js +1 -1
- package/dist/components/eds-icon-updown.js +1 -1
- package/dist/components/eds-icon-user.js +1 -1
- package/dist/components/eds-icon-view.d.ts +11 -0
- package/dist/components/eds-icon-view.js +33 -0
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +2 -2
- package/dist/components/eds-input-field2.js +4 -3
- package/dist/components/eds-input-footer2.js +1 -1
- package/dist/components/eds-input-label2.js +1 -1
- package/dist/components/eds-input-range2.js +1 -1
- package/dist/components/eds-input-search2.js +1 -1
- package/dist/components/eds-input-select2.js +2 -2
- package/dist/components/eds-input2.js +2 -2
- package/dist/components/eds-link2.js +27 -7
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-modal.js +2 -2
- package/dist/components/eds-nps.d.ts +11 -0
- package/dist/components/eds-nps.js +6 -0
- package/dist/components/eds-nps2.js +120 -0
- package/dist/components/eds-pagination2.js +119 -52
- package/dist/components/eds-progress-bar2.js +1 -1
- package/dist/components/eds-rating2.js +25 -3
- package/dist/components/eds-section-core2.js +1 -1
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-switch.js +27 -5
- package/dist/components/eds-table2.js +45 -20
- package/dist/components/eds-tabs.js +90 -32
- package/dist/components/eds-tag2.js +1 -1
- package/dist/components/eds-timeline.js +1 -1
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-tooltip.js +1 -1
- package/dist/components/eds-trl.js +8 -2
- package/dist/components/eds-user.js +3 -9
- package/dist/components/incorrect-use-of-colors.js +9 -3
- package/dist/components/logo-space.js +8 -2
- package/dist/components/logo-variations-horizontal2.js +1 -1
- package/dist/components/logo-variations-tabs.js +1 -1
- package/dist/components/logo-variations-vertical2.js +1 -1
- package/dist/components/logo-wrong-usage.js +1 -1
- package/dist/components/p-05654483.entry.js +1 -0
- package/dist/components/{p-9e53eca3.entry.js → p-09079c5c.entry.js} +1 -1
- package/dist/components/p-10997947.entry.js +1 -0
- package/dist/components/p-19e69c03.entry.js +1 -0
- package/dist/components/p-1ab1ea29.entry.js +1 -0
- package/dist/components/p-1bcf743d.entry.js +1 -0
- package/dist/components/{p-9d18d7b1.entry.js → p-1d18106d.entry.js} +1 -1
- package/dist/components/{p-adbd0d7b.entry.js → p-265150a1.entry.js} +1 -1
- package/dist/components/p-27c4a06e.js +1 -0
- package/dist/components/{p-e35e156d.entry.js → p-2e0c3fc4.entry.js} +1 -1
- package/dist/components/{p-6d3b5818.entry.js → p-2ef4dd11.entry.js} +1 -1
- package/dist/components/p-3360e1e2.entry.js +1 -0
- package/dist/components/{p-93e6ba0f.entry.js → p-38bc21e9.entry.js} +1 -1
- package/dist/components/p-3b29e0fd.entry.js +1 -0
- package/dist/components/p-42457a0f.entry.js +1 -0
- package/dist/components/p-4a6a72db.entry.js +1 -0
- package/dist/components/p-4b33909d.entry.js +1 -0
- package/dist/components/p-4bf4bc93.entry.js +1 -0
- package/dist/components/{p-773a119a.entry.js → p-4c84fcf4.entry.js} +1 -1
- package/dist/components/p-4eb2cf7f.js +1 -0
- package/dist/components/p-5367bb59.entry.js +1 -0
- package/dist/components/p-547a53d6.entry.js +1 -0
- package/dist/components/p-560fc3a4.entry.js +1 -0
- package/dist/components/p-5a58f1c1.entry.js +1 -0
- package/dist/components/p-5b55f951.entry.js +1 -0
- package/dist/components/p-5ba49cf2.entry.js +1 -0
- package/dist/components/p-5dd85979.entry.js +1 -0
- package/dist/components/{p-356846cd.entry.js → p-5f348b0e.entry.js} +1 -1
- package/dist/components/p-634b6ca2.entry.js +1 -0
- package/dist/components/{p-b073d78f.entry.js → p-64b7a6fc.entry.js} +1 -1
- package/dist/components/{p-02d94d2d.entry.js → p-6614881d.entry.js} +1 -1
- package/dist/components/{p-2839899a.entry.js → p-67ec46b4.entry.js} +1 -1
- package/dist/components/p-6b988c76.entry.js +1 -0
- package/dist/components/p-6cd6ff0c.entry.js +1 -0
- package/dist/components/{p-f6ca2aa6.entry.js → p-706a106c.entry.js} +1 -1
- package/dist/components/p-71ee4af2.entry.js +1 -0
- package/dist/components/{p-794f11e7.entry.js → p-743f9f8f.entry.js} +1 -1
- package/dist/components/p-789f54cb.entry.js +1 -0
- package/dist/components/{p-8c0b0121.entry.js → p-79afd8aa.entry.js} +1 -1
- package/dist/components/{p-b3a40663.entry.js → p-7a3f2576.entry.js} +1 -1
- package/dist/components/p-7a5623b5.entry.js +1 -0
- package/dist/components/p-7ca6db64.entry.js +1 -0
- package/dist/components/p-7fa46b01.entry.js +1 -0
- package/dist/components/{p-3e183368.entry.js → p-8627afc0.entry.js} +1 -1
- package/dist/components/p-86eff0cb.entry.js +1 -0
- package/dist/components/p-89048f87.entry.js +1 -0
- package/dist/components/p-8cf98230.entry.js +1 -0
- package/dist/components/{p-8dee879d.entry.js → p-8d363a3c.entry.js} +1 -1
- package/dist/components/p-9261d27c.entry.js +1 -0
- package/dist/components/p-97323c46.entry.js +1 -0
- package/dist/components/p-9b90296c.entry.js +1 -0
- package/dist/components/{p-1f5c19b9.entry.js → p-9c1c5e8d.entry.js} +1 -1
- package/dist/components/p-9cb14b1f.entry.js +1 -0
- package/dist/components/p-9f0a34b4.entry.js +1 -0
- package/dist/components/p-a8ca8346.entry.js +1 -0
- package/dist/components/{p-43468b0f.entry.js → p-ab3b0a53.entry.js} +1 -1
- package/dist/components/p-b0d38b78.entry.js +1 -0
- package/dist/components/{p-66f4cdd9.entry.js → p-b31babda.entry.js} +1 -1
- package/dist/components/p-b6ee4250.entry.js +1 -0
- package/dist/components/{p-0687532c.entry.js → p-b88a2267.entry.js} +1 -1
- package/dist/components/{p-024789cc.entry.js → p-b9a1aba3.entry.js} +1 -1
- package/dist/components/p-b9fdcb1b.entry.js +1 -0
- package/dist/components/{p-73c74835.entry.js → p-ba9f41de.entry.js} +1 -1
- package/dist/components/p-beacaa4f.entry.js +1 -0
- package/dist/components/p-bfa23535.entry.js +1 -0
- package/dist/components/p-c4ac0528.entry.js +1 -0
- package/dist/components/p-cb114bf4.entry.js +1 -0
- package/dist/components/p-cd05a97b.entry.js +1 -0
- package/dist/components/{p-3a331c68.entry.js → p-cd787744.entry.js} +1 -1
- package/dist/components/p-cdc1c8e8.entry.js +1 -0
- package/dist/components/{p-4e473b4e.entry.js → p-d1927da7.entry.js} +1 -1
- package/dist/components/{p-564431ad.entry.js → p-d1d1943b.entry.js} +1 -1
- package/dist/components/{p-543f2347.entry.js → p-d2e485a1.entry.js} +1 -1
- package/dist/components/{p-e2e7250a.entry.js → p-d95d7353.entry.js} +1 -1
- package/dist/components/{p-76905315.entry.js → p-e0ada7e0.entry.js} +1 -1
- package/dist/components/{p-70e8e66f.entry.js → p-e210ddbb.entry.js} +1 -1
- package/dist/components/p-e5892379.entry.js +1 -0
- package/dist/components/p-e8374410.entry.js +1 -0
- package/dist/components/p-e90da4ba.entry.js +1 -0
- package/dist/components/p-ec706eed.entry.js +1 -0
- package/dist/components/{p-28ae3f3a.js → p-efbc374c.js} +2 -2
- package/dist/components/p-f2abe4d8.js +1 -0
- package/dist/components/p-f32963ff.entry.js +9 -0
- package/dist/components/p-f40dd50d.entry.js +1 -0
- package/dist/components/p-f6012c17.entry.js +1 -0
- package/dist/components/p-fcba31fa.entry.js +1 -0
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/svg-repository.js +13 -3
- package/dist/components/token-list2.js +1 -1
- package/dist/components/token-radii2.js +1 -1
- package/dist/components/token-ratios.js +1 -1
- package/dist/components/token-shadows2.js +1 -1
- package/dist/components/token-spacing.js +1 -1
- package/dist/components/token-typography.js +1 -1
- package/dist/components/view.js +3 -0
- package/dist/esm/clone-dab56639.js +3 -0
- package/dist/esm/color-primary-palette_6.entry.js +15 -15
- package/dist/esm/components-section.entry.js +2 -2
- package/dist/esm/components.js +3 -3
- package/dist/esm/correct-use-of-colors.entry.js +2 -2
- package/dist/esm/docs-palettes.entry.js +2 -2
- package/dist/esm/docs-tokens.entry.js +2 -2
- package/dist/esm/edit-3893a517.js +3 -0
- package/dist/esm/{eds-avatar_26.entry.js → eds-accordion_33.entry.js} +3462 -159
- package/dist/esm/eds-app-root.entry.js +2 -2
- package/dist/esm/eds-card-desc_2.entry.js +3 -3
- package/dist/esm/eds-card-generic.entry.js +1 -1
- package/dist/esm/eds-card-project.entry.js +2 -2
- package/dist/esm/eds-card-section.entry.js +1 -1
- package/dist/esm/eds-card-tags.entry.js +2 -2
- package/dist/esm/eds-card-tool.entry.js +2 -2
- package/dist/esm/eds-cookies-preference.entry.js +2 -2
- package/dist/esm/eds-feedback.entry.js +2 -2
- package/dist/esm/eds-footer.entry.js +9 -3
- package/dist/esm/eds-frame.entry.js +2 -2
- package/dist/esm/eds-fullscreen-menu.entry.js +1 -1
- package/dist/esm/eds-gauge.entry.js +2 -2
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
- package/dist/esm/eds-icon-arrow-right.entry.js +2 -2
- package/dist/esm/eds-icon-bin.entry.js +2 -2
- package/dist/esm/eds-icon-bluesky.entry.js +2 -2
- package/dist/esm/eds-icon-bookmark.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-down.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-left.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-right.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-up.entry.js +2 -2
- package/dist/esm/eds-icon-clone.entry.js +14 -0
- package/dist/esm/eds-icon-close.entry.js +2 -2
- package/dist/esm/eds-icon-copy.entry.js +2 -2
- package/dist/esm/eds-icon-draft.entry.js +2 -2
- package/dist/esm/eds-icon-edit.entry.js +3 -3
- package/dist/esm/eds-icon-eu.entry.js +2 -2
- package/dist/esm/eds-icon-external.entry.js +2 -2
- package/dist/esm/eds-icon-facebook.entry.js +2 -2
- package/dist/esm/eds-icon-gitlab.entry.js +2 -2
- package/dist/esm/eds-icon-linkedin.entry.js +2 -2
- package/dist/esm/eds-icon-loader.entry.js +2 -2
- package/dist/esm/eds-icon-mastodon.entry.js +2 -2
- package/dist/esm/eds-icon-menu.entry.js +2 -2
- package/dist/esm/eds-icon-minus.entry.js +2 -2
- package/dist/esm/eds-icon-more.entry.js +2 -2
- package/dist/esm/eds-icon-paper.entry.js +2 -2
- package/dist/esm/eds-icon-plus.entry.js +2 -2
- package/dist/esm/eds-icon-portal.entry.js +2 -2
- package/dist/esm/eds-icon-private.entry.js +2 -2
- package/dist/esm/eds-icon-public.entry.js +2 -2
- package/dist/esm/eds-icon-search.entry.js +2 -2
- package/dist/esm/eds-icon-star.entry.js +2 -2
- package/dist/esm/eds-icon-start.entry.js +2 -2
- package/dist/esm/eds-icon-success.entry.js +2 -2
- package/dist/esm/eds-icon-thumbs-down.entry.js +2 -2
- package/dist/esm/eds-icon-thumbs-up.entry.js +2 -2
- package/dist/esm/eds-icon-tutorial.entry.js +2 -2
- package/dist/esm/eds-icon-twitter.entry.js +2 -2
- package/dist/esm/eds-icon-unknown.entry.js +2 -2
- package/dist/esm/eds-icon-updown.entry.js +2 -2
- package/dist/esm/eds-icon-user.entry.js +2 -2
- package/dist/esm/eds-icon-view.entry.js +14 -0
- package/dist/esm/eds-icon-youtube.entry.js +2 -2
- package/dist/esm/eds-modal.entry.js +3 -3
- package/dist/esm/eds-pie.entry.js +1 -1
- package/dist/esm/eds-progress-bar.entry.js +2 -2
- package/dist/esm/eds-section-core_2.entry.js +4 -4
- package/dist/esm/eds-social-networks.entry.js +2 -2
- package/dist/esm/eds-spinner.entry.js +2 -2
- package/dist/esm/eds-splash-screen.entry.js +1 -1
- package/dist/esm/eds-timeline.entry.js +2 -2
- package/dist/esm/eds-toast-manager.entry.js +2 -2
- package/dist/esm/eds-tooltip.entry.js +2 -2
- package/dist/esm/eds-trl.entry.js +2 -2
- package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
- package/dist/esm/{index-fdb33359.js → index-e84b871c.js} +15 -28
- package/dist/esm/loader.js +3 -3
- package/dist/esm/logo-space.entry.js +2 -2
- package/dist/esm/logo-variations-horizontal_2.entry.js +3 -3
- package/dist/esm/logo-variations-tabs.entry.js +2 -2
- package/dist/esm/logo-wrong-usage.entry.js +2 -2
- package/dist/esm/svg-repository.entry.js +8 -4
- package/dist/esm/token-list_3.entry.js +4 -4
- package/dist/esm/token-ratios.entry.js +2 -2
- package/dist/esm/token-spacing.entry.js +2 -2
- package/dist/esm/token-typography.entry.js +2 -2
- package/dist/esm/view-e900f2d4.js +3 -0
- package/dist/hydrate/index.js +690 -257
- package/dist/hydrate/index.mjs +690 -257
- package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +3 -1
- package/dist/types/components/eds-alert/eds-alert.d.ts +6 -0
- package/dist/types/components/eds-button/eds-button.d.ts +1 -0
- package/dist/types/components/eds-icons/eds-icon-clone/eds-icon-clone.d.ts +10 -0
- package/dist/types/components/eds-icons/eds-icon-view/eds-icon-view.d.ts +10 -0
- package/dist/types/components/eds-link/eds-link.d.ts +1 -0
- package/dist/types/components/eds-nps/eds-npm.stories.d.ts +28 -0
- package/dist/types/components/eds-nps/eds-nps.d.ts +20 -0
- package/dist/types/components/eds-pagination/eds-pagination.d.ts +23 -2
- package/dist/types/components/eds-rating/eds-rating.d.ts +3 -1
- package/dist/types/components/eds-switch/eds-switch.d.ts +1 -0
- package/dist/types/components/eds-table/eds-table.d.ts +3 -4
- package/dist/types/components/eds-table/eds-table.stories.d.ts +7 -2
- package/dist/types/components.d.ts +133 -12
- package/dist/types/shared-ui/eds-form/eds-form.d.ts +1 -0
- package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +7 -9
- package/dist/types/utils/eds-form/formValidators.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/edit-5714c144.js +0 -5
- package/dist/cjs/eds-accordion.cjs.entry.js +0 -87
- package/dist/cjs/eds-alert.cjs.entry.js +0 -104
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -145
- package/dist/cjs/eds-code-block.cjs.entry.js +0 -2489
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +0 -125
- package/dist/cjs/eds-switch.cjs.entry.js +0 -46
- package/dist/components/p-023bc47c.entry.js +0 -1
- package/dist/components/p-02df910c.entry.js +0 -1
- package/dist/components/p-0be79e08.entry.js +0 -1
- package/dist/components/p-0e74d8b4.entry.js +0 -1
- package/dist/components/p-11efb1d1.entry.js +0 -1
- package/dist/components/p-1791ce82.entry.js +0 -1
- package/dist/components/p-19d586e6.entry.js +0 -1
- package/dist/components/p-2679926c.entry.js +0 -1
- package/dist/components/p-2d1a7471.entry.js +0 -1
- package/dist/components/p-2ff16a39.entry.js +0 -1
- package/dist/components/p-32e18e48.entry.js +0 -1
- package/dist/components/p-38e99d4b.entry.js +0 -1
- package/dist/components/p-4088ae0e.entry.js +0 -1
- package/dist/components/p-4277fb1a.entry.js +0 -1
- package/dist/components/p-42a73db4.entry.js +0 -1
- package/dist/components/p-44055e68.entry.js +0 -1
- package/dist/components/p-4a5d0dcd.entry.js +0 -1
- package/dist/components/p-4a7412ec.entry.js +0 -1
- package/dist/components/p-4b88d84c.entry.js +0 -1
- package/dist/components/p-50f43dfd.entry.js +0 -1
- package/dist/components/p-562afa88.entry.js +0 -1
- package/dist/components/p-5aa4065a.entry.js +0 -1
- package/dist/components/p-5ae1c931.entry.js +0 -1
- package/dist/components/p-634258e6.entry.js +0 -1
- package/dist/components/p-68f45098.entry.js +0 -1
- package/dist/components/p-73a44c48.entry.js +0 -1
- package/dist/components/p-7dbe791f.entry.js +0 -1
- package/dist/components/p-7ec52188.entry.js +0 -1
- package/dist/components/p-7fc84bb2.js +0 -1
- package/dist/components/p-82559816.entry.js +0 -1
- package/dist/components/p-85683b18.entry.js +0 -1
- package/dist/components/p-8681e5d8.entry.js +0 -1
- package/dist/components/p-877d13d9.entry.js +0 -1
- package/dist/components/p-911b1c0b.entry.js +0 -1
- package/dist/components/p-960aa103.entry.js +0 -1
- package/dist/components/p-996005b7.entry.js +0 -1
- package/dist/components/p-aa5e75b4.entry.js +0 -1
- package/dist/components/p-ae9393b6.entry.js +0 -1
- package/dist/components/p-af137162.entry.js +0 -1
- package/dist/components/p-b630e51a.entry.js +0 -1
- package/dist/components/p-bb9af709.entry.js +0 -1
- package/dist/components/p-c2dc3692.entry.js +0 -1
- package/dist/components/p-c91b4eec.entry.js +0 -1
- package/dist/components/p-caff3355.entry.js +0 -1
- package/dist/components/p-ce66ea37.entry.js +0 -1
- package/dist/components/p-d4f239d7.entry.js +0 -1
- package/dist/components/p-d7251d4d.entry.js +0 -1
- package/dist/components/p-deb9bbed.entry.js +0 -1
- package/dist/components/p-ed4d9bf5.entry.js +0 -1
- package/dist/components/p-ed7696a2.entry.js +0 -1
- package/dist/components/p-f2416727.entry.js +0 -1
- package/dist/components/p-f28b5da7.entry.js +0 -1
- package/dist/components/p-f3839914.entry.js +0 -1
- package/dist/components/p-f42b6251.entry.js +0 -1
- package/dist/components/p-f7a31196.entry.js +0 -1
- package/dist/components/p-f973c83b.entry.js +0 -1
- package/dist/components/p-fe167c78.entry.js +0 -9
- package/dist/esm/edit-1dc8d11b.js +0 -3
- package/dist/esm/eds-accordion.entry.js +0 -83
- package/dist/esm/eds-alert.entry.js +0 -100
- package/dist/esm/eds-breadcrumb.entry.js +0 -141
- package/dist/esm/eds-code-block.entry.js +0 -2485
- package/dist/esm/eds-matomo-notice.entry.js +0 -121
- package/dist/esm/eds-switch.entry.js +0 -42
- /package/dist/collection/shared-ui/eds-toast-manager/{eds-toast-manager.stories.js → eds-toast-manager.st.js} +0 -0
- /package/dist/types/shared-ui/eds-toast-manager/{eds-toast-manager.stories.d.ts → eds-toast-manager.st.d.ts} +0 -0
|
@@ -30,11 +30,6 @@ button.switch {
|
|
|
30
30
|
transition: background-color 0.2s;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
button.switch:focus {
|
|
34
|
-
outline: none;
|
|
35
|
-
box-shadow: 0 0 0 2px #007aff;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
33
|
button.switch.switch--checked {
|
|
39
34
|
background-color: var(--green-500);
|
|
40
35
|
}
|
|
@@ -66,4 +61,19 @@ button.switch.switch--checked .switch-handle {
|
|
|
66
61
|
|
|
67
62
|
.mr-8 {
|
|
68
63
|
margin-right: 0.5rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.switch:focus {
|
|
67
|
+
outline: 2px solid #005fcc;
|
|
68
|
+
outline-offset: 2px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.switch:focus:not(:focus-visible) {
|
|
72
|
+
outline: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.switch:focus-visible {
|
|
76
|
+
outline-width: 3px;
|
|
77
|
+
outline-offset: 2px;
|
|
78
|
+
outline-color: var(--green-500);
|
|
69
79
|
}
|
|
@@ -15,19 +15,41 @@ export class EdsSwitch {
|
|
|
15
15
|
action: 'checked'
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
|
+
this.handleKeyDown = (e) => {
|
|
19
|
+
if (this.disabled) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
23
|
+
e.preventDefault();
|
|
24
|
+
this.toggleSwitch();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
18
27
|
this.checked = false;
|
|
19
28
|
this.disabled = false;
|
|
20
29
|
this.labelOn = '';
|
|
21
30
|
this.labelOff = '';
|
|
22
31
|
}
|
|
23
32
|
render() {
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
|
|
33
|
+
const switchId = `switch-${Math.random().toString(36).substr(2, 9)}`;
|
|
34
|
+
const labelledBy = [];
|
|
35
|
+
if (this.labelOff) {
|
|
36
|
+
labelledBy.push(`${switchId}-off`);
|
|
37
|
+
}
|
|
38
|
+
if (this.labelOn) {
|
|
39
|
+
labelledBy.push(`${switchId}-on`);
|
|
40
|
+
}
|
|
41
|
+
const accessibleLabel = labelledBy.length === 0
|
|
42
|
+
? this.labelOn || this.labelOff
|
|
43
|
+
? this.checked
|
|
44
|
+
? this.labelOn
|
|
45
|
+
: this.labelOff
|
|
46
|
+
: 'Toggle switch'
|
|
47
|
+
: undefined;
|
|
48
|
+
return (h("div", { key: 'f4c99a2ec360af6030de11698bab82833b3f415f', class: "switch-container" }, this.labelOff && (h("span", { key: '8bb8d063e744c194c0d44a0c371ae8224f9611cb', id: `${switchId}-off`, class: "switch-label switch-label--off mr-8" }, this.labelOff)), h("button", { key: 'ccc49c8ac6f639707c90822e24f3ae3ab8f2c26c', id: switchId, tabindex: this.disabled ? '-1' : '0', type: "button", role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-labelledby": labelledBy.length > 0 ? labelledBy.join(' ') : undefined, "aria-label": accessibleLabel, class: {
|
|
27
49
|
switch: true,
|
|
28
50
|
'switch--checked': this.checked,
|
|
29
51
|
'switch--disabled': this.disabled
|
|
30
|
-
}, onClick: this.toggleSwitch, disabled: this.disabled }, h("span", { key: '
|
|
52
|
+
}, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, h("span", { key: '2275930bc9909c0a95c6c10e28f715fe1afe9294', class: "switch-handle" })), this.labelOn && (h("span", { key: 'd789fd15943c1fadf1f87c55059261eaf5e05a8f', id: `${switchId}-on`, class: "switch-label switch-label--on ml-8" }, this.labelOn))));
|
|
31
53
|
}
|
|
32
54
|
static get is() { return "eds-switch"; }
|
|
33
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,7 +33,6 @@ import { parseData } from "../../utils/sharedUtils";
|
|
|
33
33
|
* `EdsTable` is a customizable data table component with support for dynamic data fetching, column configuration, pagination, and search functionality.
|
|
34
34
|
*
|
|
35
35
|
* Key Features:
|
|
36
|
-
* - Accepts static data or fetches dynamic data from an endpoint.
|
|
37
36
|
* - Configurable columns with options to hide or apply text formatting (uppercase, bold, or code).
|
|
38
37
|
* - Pagination support with adjustable rows per page.
|
|
39
38
|
* - Searchable content for easier data filtering.
|
|
@@ -45,8 +44,33 @@ export class EdsTable {
|
|
|
45
44
|
this.handleResize = () => {
|
|
46
45
|
this.updateContainerWidth();
|
|
47
46
|
};
|
|
47
|
+
this.onActionKeyDown = (e) => {
|
|
48
|
+
var _a;
|
|
49
|
+
if (e.key !== 'ArrowRight' && e.key !== 'ArrowLeft') {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
e.preventDefault();
|
|
53
|
+
const currentButton = e.target;
|
|
54
|
+
const toolbar = currentButton.closest('[role="toolbar"]');
|
|
55
|
+
if (!toolbar) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
// Find all focusable action buttons in this row
|
|
59
|
+
const actionButtons = Array.from(toolbar.querySelectorAll('eds-button'));
|
|
60
|
+
const currentIndex = actionButtons.indexOf(currentButton);
|
|
61
|
+
if (currentIndex === -1) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
let nextIndex;
|
|
65
|
+
if (e.key === 'ArrowRight') {
|
|
66
|
+
nextIndex = (currentIndex + 1) % actionButtons.length;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
nextIndex = (currentIndex - 1 + actionButtons.length) % actionButtons.length;
|
|
70
|
+
}
|
|
71
|
+
(_a = actionButtons[nextIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
72
|
+
};
|
|
48
73
|
this.data = null;
|
|
49
|
-
this.endpoint = null;
|
|
50
74
|
this.config = {};
|
|
51
75
|
this.rowsPerPage = 10;
|
|
52
76
|
this.paginationEnabled = true;
|
|
@@ -84,7 +108,7 @@ export class EdsTable {
|
|
|
84
108
|
componentWillLoad() {
|
|
85
109
|
this.parseConfig();
|
|
86
110
|
this.handleActionsChange();
|
|
87
|
-
this.
|
|
111
|
+
this.parseData();
|
|
88
112
|
}
|
|
89
113
|
componentDidLoad() {
|
|
90
114
|
this.updateContainerWidth();
|
|
@@ -132,17 +156,6 @@ export class EdsTable {
|
|
|
132
156
|
this.parsedConfig = {};
|
|
133
157
|
}
|
|
134
158
|
}
|
|
135
|
-
async fetchData() {
|
|
136
|
-
try {
|
|
137
|
-
const response = await fetch(this.endpoint);
|
|
138
|
-
const data = await response.json();
|
|
139
|
-
this.data = data;
|
|
140
|
-
}
|
|
141
|
-
catch (error) {
|
|
142
|
-
// eslint-disable-next-line
|
|
143
|
-
console.error('Failed to fetch data:', error);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
159
|
setupPaginationListener() {
|
|
147
160
|
if (!this.shouldEnablePagination()) {
|
|
148
161
|
return;
|
|
@@ -197,7 +210,8 @@ export class EdsTable {
|
|
|
197
210
|
const checked = !!row[boundField];
|
|
198
211
|
return (h("eds-input-field", { name: `chc-${actionName}`, label: act.label, type: "checkbox", checked: checked, onChange: (e) => this.emitAction(act.name, row, e.target.checked) }));
|
|
199
212
|
}
|
|
200
|
-
|
|
213
|
+
// Let all action buttons be focusable naturally
|
|
214
|
+
return (h("eds-button", { label: act.label, icon: act.icon, pill: true, size: "small", intent: "ghost", tabIndex: 0, onClick: () => this.emitAction(act.name, row) }));
|
|
201
215
|
}
|
|
202
216
|
emitAction(actionName, row, checked) {
|
|
203
217
|
sendAnalytics({
|
|
@@ -243,7 +257,7 @@ export class EdsTable {
|
|
|
243
257
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((currentContainerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
244
258
|
const paginatedRows = this.getPaginatedRows();
|
|
245
259
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
246
|
-
return (h("div", { key: '
|
|
260
|
+
return (h("div", { key: '87e7cc3c87618ede91bb51d7a07cd597a438d6c5' }, this.searchEnabled && (h("div", { key: '6b77700a913e272eef4c932d40c5c5d001ff6b5c' }, h("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...", onInput: (event) => this.handleSearch(event) }))), h("div", { key: '6f2ffc7a3ba2cc8e8194670a7ecb9e237f7dc60a', class: "mt-20" }, h("table", { key: '0227d3029f30ab9928cd01ba8dc2eccde2073f47', class: "block overflow-x-auto mt-6 p-0" }, h("thead", { key: 'c1f844d8413b596d5ca07d6b79ebd36c8a17f51f' }, h("tr", { key: 'caadaaf66314e3ea7d47a748b6e899389a7e2d55', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((col) => {
|
|
247
261
|
var _a;
|
|
248
262
|
if (col === 'actions') {
|
|
249
263
|
return (h("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }));
|
|
@@ -252,17 +266,22 @@ export class EdsTable {
|
|
|
252
266
|
return (h("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.capitalize(col)));
|
|
253
267
|
}
|
|
254
268
|
return null;
|
|
255
|
-
}))), h("tbody", { key: '
|
|
269
|
+
}))), h("tbody", { key: 'da9286063f16a5c346ce8854361cb15573166a19' }, paginatedRows.map((row) => (h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((col) => {
|
|
256
270
|
var _a;
|
|
257
271
|
if (col === 'actions') {
|
|
258
|
-
return (h("td", { class: "text-center border border-softer m-0 f-ui-02 break-words actions-cell", style: { minWidth: `${columnWidth - 4}px` } }, h("div", {
|
|
272
|
+
return (h("td", { class: "text-center border border-softer m-0 f-ui-02 break-words actions-cell", style: { minWidth: `${columnWidth - 4}px` } }, h("div", { role: "toolbar", "aria-label": "Row actions", onKeyDown: this.onActionKeyDown, style: {
|
|
273
|
+
display: 'flex',
|
|
274
|
+
gap: '0.5rem',
|
|
275
|
+
justifyContent: 'center',
|
|
276
|
+
flexWrap: 'wrap'
|
|
277
|
+
} }, this.parsedActions.map((act) => (h("span", { style: { whiteSpace: 'nowrap' } }, this.renderSingleActionCell(act.name, row)))))));
|
|
259
278
|
}
|
|
260
279
|
if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
261
280
|
// Regular data cell
|
|
262
281
|
return (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[col], col)));
|
|
263
282
|
}
|
|
264
283
|
return null;
|
|
265
|
-
}))))))), this.shouldEnablePagination() && (h("div", { key: '
|
|
284
|
+
}))))))), this.shouldEnablePagination() && (h("div", { key: 'b7e7991225cf9fb16ca882dc42c7adead202aac5', class: "mt-20" }, h("eds-pagination", { key: '011f209f89300357e6052ee4d118f353419d5a45', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
266
285
|
}
|
|
267
286
|
static get is() { return "eds-table"; }
|
|
268
287
|
static get encapsulation() { return "shadow"; }
|
|
@@ -296,24 +315,6 @@ export class EdsTable {
|
|
|
296
315
|
"reflect": false,
|
|
297
316
|
"defaultValue": "null"
|
|
298
317
|
},
|
|
299
|
-
"endpoint": {
|
|
300
|
-
"type": "string",
|
|
301
|
-
"mutable": false,
|
|
302
|
-
"complexType": {
|
|
303
|
-
"original": "string | null",
|
|
304
|
-
"resolved": "string",
|
|
305
|
-
"references": {}
|
|
306
|
-
},
|
|
307
|
-
"required": false,
|
|
308
|
-
"optional": false,
|
|
309
|
-
"docs": {
|
|
310
|
-
"tags": [],
|
|
311
|
-
"text": "Endpoint to fetch data dynamically"
|
|
312
|
-
},
|
|
313
|
-
"attribute": "endpoint",
|
|
314
|
-
"reflect": false,
|
|
315
|
-
"defaultValue": "null"
|
|
316
|
-
},
|
|
317
318
|
"config": {
|
|
318
319
|
"type": "string",
|
|
319
320
|
"mutable": false,
|
|
@@ -111,7 +111,7 @@ export const WithActions = {
|
|
|
111
111
|
</div>
|
|
112
112
|
`,
|
|
113
113
|
args: Object.assign(Object.assign({}, Default.args), { actions: [
|
|
114
|
-
{ name: 'view', label: 'View' },
|
|
114
|
+
{ name: 'view', label: 'View', icon: 'view' },
|
|
115
115
|
{ name: 'edit', label: 'Edit' }
|
|
116
116
|
] })
|
|
117
117
|
};
|
|
@@ -36,7 +36,7 @@ export class EdsTag {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
const classes = tagStyles({ intent: this.intent, size: this.size });
|
|
39
|
-
return h("span", { key: '
|
|
39
|
+
return h("span", { key: '939fafa4bc525b747956931f49b27e6125ecbb34', class: classes }, this.label);
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "eds-tag"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,7 +41,7 @@ export class EdsTimeline {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: '3abe8b96a25fa575acc503eafa345c63b0c4c971', class: "max-w-sidebar mx-auto px-4 py-8" }, h("div", { key: '23039a03d10a38aa96310be6456283b5d36041e7', class: "relative" }, h("div", { key: '2bf447e7dd77a33b953ee1c7b49c72bb3e79a938', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), h("div", { key: 'db44af20a0e09666b402e77ec739262a3506da48', 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
|
|
45
45
|
? [{ label: 'completed', style: 'accent' }]
|
|
46
46
|
: [{ 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
|
|
47
47
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -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: 'ee76b787881bdaef986b73fb2775c900a8c33d05', class: "relative w-full inline-block group" }, h("slot", { key: 'a5f9ade50e829efab02ef28ecff3edeedae9d469' }), h("div", { key: '31bdc63d6263090578f6600ae32027c2b050b2bf', class: `absolute ${positionClass}
|
|
23
23
|
rounded-xs bg-strongest text-inverse
|
|
24
24
|
f-ui-03-light pointer-events-none
|
|
25
25
|
z-10 p-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
@@ -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: '51e2ef0877ef34a3c413d8bb690d659525845a92', class: "container mx-auto px-4 py-8" }, h("eds-table", { key: 'b682cb9ce8182302b82042173fcc93aed65f7006', "table-data": JSON.stringify(tableData), config: JSON.stringify(tableConfig), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" })));
|
|
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: '1de5ded5c58ad27b388c8c1af7938944cbea5096', 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: '8346b6b6278e8e0c837722d760aa314586ece7f4', 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: '70965eb05a6b535bf4477e7413f7fd681c4f9768', 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: 'af35aa4016013cbed62463881c380330f80066a2', 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: '8a494bd6783e8138f33dcfd37498fd69b249a2e8' }, h("ul", { key: 'a2e6c31c2e2f3745ce1e4c01cc9afae02e8ebb87', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: '4ed12da885c34a07657aef2a841c87a37ae9c8f7', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '337f66d14b0ce65b19f198b7efaf9230ca50b82c', 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: 'c8c692658db9434f57e5ac264c3c9064910e9661', class: "grid" }, h("span", { key: '9fd7ae1b75ff6b6c807dbaad783f6495dc2dd9bd', class: "f-body-02" }, this.colors[0].rgb), h("span", { key: '9d4e59b1fab74ff781c8d73db3dd468b10ce0455', class: "f-body-02 w-full" }, this.colors[0].cmyk), h("eds-code-block", { key: '96f8a8fa41459228e4d8097a616926f85765cf39', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'd7a68794a9682b619be1e087c983149d491c96db', class: "grid" }, h("span", { key: '58bd1ad1029c3b121ac0d4bb5c70ae303e0352bb', class: "f-body-02" }, this.colors[0].pantoneC), h("span", { key: '3193953b5f25d007cf19d93a1f68f20404687f1e', class: "f-body-02" }, this.colors[0].pantoneU))), h("div", { key: 'cfbdd6e419b1616438c6331a1d25c18c4425acd8', 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: 'd7cbace55477934af72160da781b7a8e3aa8e06a', class: "grid" }, h("span", { key: '92751b8b5769b239e36ac130e339f8e360727cc4', class: "f-body-02" }, this.colors[1].rgb), h("span", { key: '82fe5bf3213d8d581322b33fd5e71edac1c88fb3', class: "f-body-02 w-full" }, this.colors[1].cmyk), h("eds-code-block", { key: '898008dc0c37aa6dac6cc41f2034cddd65768c14', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '4e447137643b72b3c6bf7c77d9487db3b6565774', class: "grid" }, h("span", { key: 'dd6377e2669c91b70681faceef9a1a2e85aacc36', class: "f-body-02" }, this.colors[1].pantoneC), h("span", { key: '06fc395fb9c0caf71d889031d5122da97c2d437c', class: "f-body-02" }, this.colors[1].pantoneU))))), h("eds-block-break", { key: '7be7b3c75d184f3aa717f6319aeeac025760122e' }), h("ul", { key: 'b97e4bde35db0630a312b97d501ce1c59f0c3e14', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: '6a92a1a7d3e3680901e18dd48eb6658f4fb0fb20', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: 'e90a2a1cae3c1cde6b4326b56b72c61e1892140b', 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: '61b77e314f1b0ba1a2091c8095ec202532c18606', class: "grid" }, h("span", { key: '03dab364cc0dfec33698c44a204c454fb541e212', class: "f-body-02" }, this.colors[2].rgb), h("span", { key: 'e691950b5345a2ede462f4e83cca168bdeb9ec15', class: "f-body-02 w-full" }, this.colors[2].cmyk), h("eds-code-block", { key: '0221d7e314a813dc2c5b79911951bca9c0b41b25', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '3a0a7685f28da21ad72e03fde2466ef261d732c6', class: "grid" }, h("span", { key: 'cb7b332c10b45eb9fd5db2d3fd8042e2bad64466', class: "f-body-02" }, this.colors[2].pantoneC), h("span", { key: 'a2ce20d6c1f79933e63286f21cf2a2b46bae7c77', class: "f-body-02" }, this.colors[2].pantoneU))), h("div", { key: '22accd3b0973aef372c31e6e1f9098c20af0fe62', 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: '20ac41e5ab5abf006915a588948b0a80ba6b6500', class: "grid" }, h("span", { key: 'c45d31d03b5eed96970e573ffe9d6d7b0a4f55f2', class: "f-body-02" }, this.colors[3].rgb), h("span", { key: 'c8615974f6fefcce9236f1dab2aa05acf79f476e', class: "f-body-02 w-full" }, this.colors[3].cmyk), h("eds-code-block", { key: '4edca81579a78d5a981abd588d614e92b41e80f2', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'efb4443370dc4577f4bb0638f7189d8ebb41f7f6', class: "grid" }, h("span", { key: 'e6859deb262bbb09411b23a829461a13bca7036c', class: "f-body-02" }, this.colors[3].pantoneC), h("span", { key: 'a7b10ce34dbf351ed7c9ffddae8a078af2b2dfc7', class: "f-body-02" }, this.colors[3].pantoneU))))), h("eds-block-break", { key: '1e7693f7830a8b23fbfe88a4db8ce86b8d0685f0' }), h("ul", { key: 'e968be89adb2e35e19b3c6b373b6e12f4e746a16', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: '96c60c4a9e257a292782d9effc9f0c72abf11b9e', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: 'c4568e420e1aa059777280831c2384eab3d92bcd', 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: 'd6deb40f0bc0f42ba8dc5ce1f81f0ddffac1909c', class: "grid" }, h("span", { key: 'dfe457e42121384072c1fa914a4b20dc4b838d01', class: "f-body-02" }, this.colors[4].rgb), h("span", { key: 'ff18c95c23f62a02e56f017a3c4fd135942ca475', class: "f-body-02 w-full" }, this.colors[4].cmyk), h("eds-code-block", { key: 'bd2c5dc66d42965991741eaa399c620dfd7ccd8e', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '95a9105cf2f1c2ce4f585d20cd3d7f51ab176860', class: "grid" }, h("span", { key: '205d05eef3ead993524a70a6da8a1b99293d325b', class: "f-body-02" }, this.colors[4].pantoneC), h("span", { key: '8bd0e5c38a50e61d1c4743b069ac33bbcabd6a90', class: "f-body-02" }, this.colors[4].pantoneU))), h("div", { key: '1e23753de89b1954149cc3855dd18c35d8eff021', 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: '89d94b65035bede7a8e6783ce12b28f0d19bc517', class: "grid" }, h("span", { key: '68b5166da0440b8b71a353f112151f87ce5f0863', class: "f-body-02" }, this.colors[5].rgb), h("span", { key: '5c5440685df35b5d7a46c3aaca50f34103d227da', class: "f-body-02 w-full" }, this.colors[5].cmyk), h("eds-code-block", { key: 'bf98ce42ca5c85792f69233aa9339b76e404355e', code: this.colors[5].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'd3405eb9f4b55be2ca453857006b2e168f55b723', class: "grid" }, h("span", { key: '7c5cc7a21f351c7054113feb2d08c73aa433b729', class: "f-body-02" }, this.colors[5].pantoneC), h("span", { key: 'ab88dec48dc6bfbcf0ae6952bdc83898b9f3fe01', 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: 'cd8f1b760d9d12703e63d444206cd7cb8272dc23', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: '4e06317b161b310f1d0a6c03ec4511e30121a9d1', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '09ee064b51f1f60eb94449a81889fcc1b04b034b', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[0].background } }, h("div", { key: 'd03882aca184094d6bd6c7c1847fd825b5df391e', class: "grid" }, h("span", { key: '56401b8b651fc59ab649017e24072b7aa9e66b09', class: "f-body-02" }, this.colors[0].rgb), h("span", { key: 'f438f24aa6caee90e0aa8b45a8e3ef3905115165', class: "f-body-02 w-full" }, this.colors[0].cmyk), h("eds-code-block", { key: '1185f4d1820c900e97e376aecfdb15c079bf47d6', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '81e189f2d4d59444419b4323595f233b5a7dd5c5', class: "grid" }, h("span", { key: 'ed9c1690bc1a39a4ca10922d6954987025b75ab2', class: "f-body-02" }, this.colors[0].pantoneC || 'N/A'), h("span", { key: '389c2782c0a19abdaa8bcb3bec35b08f7dc49699', class: "f-body-02" }, this.colors[0].pantoneU || 'N/A')))), h("li", { key: '224ddf84a71da323318a93aed512785d765ff78c', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '6f65b95fafa248d35f3bbc6b2ca1796e75d5c75d', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[1].background } }, h("div", { key: 'a5f7ce54255461e8955b770ba045873c4337317e', class: "grid" }, h("span", { key: '344026348686a6c356012bddcb6019d2e33d2d1a', class: "f-body-02" }, this.colors[1].rgb), h("span", { key: 'd21a077ed8b57fc7b03d3c9e8aad84a1d6921b7e', class: "f-body-02 w-full" }, this.colors[1].cmyk), h("eds-code-block", { key: 'dfc3a8574e020c3e140a582e2f6548d7df18fc2f', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '370a21f614bfa27de7cd920d33a4bda8271cb9b2', class: "grid" }, h("span", { key: 'dcd05c27f71e94ab52ab88647d7c16bdd8cb6824', class: "f-body-02" }, this.colors[1].pantoneC || 'N/A'), h("span", { key: '3f596aa4db89c9444ab19a1fe6130532ea7a18de', class: "f-body-02" }, this.colors[1].pantoneU || 'N/A')))), h("li", { key: '4360df4a8f5439fef848bef1aff0ba7e907c0873', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '7559365a22a412e249f860b2ccd42a40c686575e', 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: '3027a68e48323ad82a7b9507902d43d3ebd5a9b5', class: "grid" }, h("span", { key: '6889a4ba793f3f82c90e2b1b87b90d1d1e9fc551', class: "f-body-02" }, this.colors[2].rgb), h("span", { key: '688e28e641c900a105605e8f6dd65efe8d1c663a', class: "f-body-02 w-full" }, this.colors[2].cmyk), h("eds-code-block", { key: 'f344601cb7b1c0210478c4c8297365655d1db5b3', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'bbd401b28071a53db3e2648545c6de8004da98cd', class: "grid" }, h("span", { key: 'e7eb3868b58336671fc8862b2dd67dd8c664b6d2', class: "f-body-02" }, this.colors[2].pantoneC), h("span", { key: '97c2788da2fed4b22f11057d13ea2bd6f6041f9c', class: "f-body-02" }, this.colors[2].pantoneU))), h("div", { key: '8ea814cb2456d959a510b3bf2fe1348a796bf390', 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: '4a223c4bad5b21ff8f80dcbca228a66500ab6a87', class: "grid" }, h("span", { key: 'acfb82921e62c37dc091a10b2f093c41d50c32da', class: "f-body-02" }, this.colors[3].rgb), h("span", { key: '1d8a0866567e954772be7fc950579a62aa719ade', class: "f-body-02 w-full" }, this.colors[3].cmyk), h("eds-code-block", { key: 'e8fe52aefd86c81713f08bcd1cb8f27789bd9ca1', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '9925c5173dd15f16fe2b08eb522adf0d8ac37ef1', class: "grid" }, h("span", { key: '78f7131ca9a960688c8957a79c4033573f7cfee1', class: "f-body-02" }, this.colors[3].pantoneC), h("span", { key: '0fb4a0cfec9531e0e00b2d749d66ae6696a6db4a', class: "f-body-02" }, this.colors[3].pantoneU)))), h("li", { key: '017c338c94189ad75c79ff9db903d18246a4af80', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: 'd75b7e97684b6ffe19bfcfdb8315f771c42de0f1', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[4].background } }, h("div", { key: '63b0fc0c825edcba9f633a5b6972fdd72574ce3b', class: "grid" }, h("span", { key: '389132cc0be0358b4805356ea216a9cfd4297514', class: "f-body-02" }, this.colors[4].rgb), h("span", { key: '902d41927973b8bf690cda7ca701a103f91dd511', class: "f-body-02 w-full" }, this.colors[4].cmyk), h("eds-code-block", { key: 'f9fffe844840148e801e3b1c1c2891b2bec96bf7', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '7ecb1dc3d5e0c63cf191b1300f19cd88489e9bed', class: "grid" }, h("span", { key: '9233731334557d6b37d96d9d7e328cb9b24e2766', class: "f-body-02" }, this.colors[4].pantoneC || 'N/A'), h("span", { key: '5030f6c36dd0e07785c0f11092c9452d80763101', 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: '6a68ca6961f662740e3981dc788b99e3d4a0d420', class: "container" }, h("p", { key: '3b7f675d96b1101c2d2a623082ab1987e06754de', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: 'cd4b48453834b32cf70aded20b3ebfc0109732cc', label: "primary", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", h("eds-link", { key: '9c2d1c2d669bfef26b0ea45b113f727420d4a8c5', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), h("div", { key: '651d2e4bce17a2740372c1b56e772f12c906e45c', class: "flex" }, h("div", { key: 'dd7b40bf2c9be26367cf4d65df0e93d5590b34e9', class: "w-full" }, h("ul", { key: '62cb53477517807ad9535ca3b4474cf115f5ec03', 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: 'bb8be387a4abe956a4941db1b381d25eee435453', class: "w-full" }, h("ul", { key: '60834108dbdcc6872ff5cfd1509f08ca94847854', 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: 'b3cdb208264e8d62b144dc9eb912501d3d59e35d', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: '8b358d8027c603aab384028568acfba889df7f25', label: "purple", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", h("eds-link", { key: '9712b5e1c2433f9b707469e4d9fde547ec14f7d9', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), h("div", { key: 'cfb5e4ada2dab6de1e4df810f9eaae0abbabd864', class: "flex" }, h("div", { key: 'c83e1bcd91700f4fc9eada969f9d349b6976b835', class: "w-full" }, h("ul", { key: 'c0c6a2a223013a5cb7b0545d59eaea8b66454f65', 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: '7b1ce7da35db835a2db620c0b4d97199f85070e5', class: "w-full" }, h("ul", { key: '2a2f9e1d29a523d5b419ae27aa1df8f892f440e7', 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: 'c6746faf400941b4eb92eb2b520a3a817615da9d', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: '89405406d127380e8b5872357cfba121a17adc3c', label: "blue", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", h("eds-link", { key: 'a7c21a6afb1eb69e9e4cb5046f65c9a4fb193837', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), h("div", { key: '6097c0091a2c06e6e9e9e13db41329200a78d2d6', class: "flex" }, h("div", { key: 'e8c272ad9b1066500d940044fd86a6c6dc52264f', class: "w-full" }, h("ul", { key: '2902c01c108d7893d7e30e6401560034a2ed7a0f', 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: 'eca739bb09d6b509c1433069595a7e6fe9be38f2', class: "w-full" }, h("ul", { key: 'cf0578a5943f54a98c6433e584397c0787ad0b4b', 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: 'ead17e9a75227b4731116506bfbf9a2c656b37a9', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: 'd4e615ea5cc1c0a144ef0c2e0bd019ae9d58e3e8', label: "redish", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", h("eds-link", { key: '52fe22c1055d44e4b6d772c0863abb72ffa49b5b', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), h("div", { key: '28487bfa952d4b2611ae1b03f71fdc6d5c46f2e7', class: "flex" }, h("div", { key: '5cd6b4413b345bc81a69fcdfc0a723e4f1c2f438', class: "w-full" }, h("ul", { key: 'c9ef7fe0eff085bb342d501f6505435220985214', 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: '65a67a40bc7cf64c19bbb1448813b1c34633cc60', class: "w-full" }, h("ul", { key: '4f26bdccba86cba74da820c500f630d88b846631', 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: '99f72ce6be806d58cdbe053d86a07e7769e7c298', class: "container" }, h("div", { key: '4689bc35f56681d07747158f45bed8960bd764bb', class: "mb-8" }, h("eds-alert", { key: 'bda983921ff3779dc947d13ff7b3c4f0509154ea', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" })), h("div", { key: 'ef02b05fb6fb761cae3cc5120478d9670ae65508', class: "flex" }, h("div", { key: '968ccc8bc1acec2856325c921d737f0ac2d0e26d', class: "w-full" }, h("ul", { key: 'aafe0547a6f6185216cf5ba08cca1e5ed97f7fb8', 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: 'f8af94ee21c7ed37b177fa3b5285e9bfe76e8e46', class: "w-full" }, h("ul", { key: 'ef52e37263e0bfda9d631f7aa6abe2074cbebe78', 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: 'dc274e3d76a296c8a8b18abcc4fc8741a6b9eddd', 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: '86455a5f05b74d8d751a5d17ecf58c0046e8d0a3', 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: 'b8b778fe87179f77bb71705d89026c500b0293fb', 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: '584f5f90e1e3813692870fbd8fd382956729dbf1', class: "w-full mt-28" }, h("ul", { key: '81786b7835d62739d6ec034609e77209e15e3b38', 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: '255775984f1d0edd52f48814776dfb5739b4885e', class: "w-full" }, h("eds-section-core", { key: '7fd28e74db00800fcaa4adb13dd6b0b9cace371d', tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, h("ul", { key: '1e4c0af9a699e69c5bc6c86df821c457bb20614a', 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: '8ca055cb3616c9bc3f6e8c1032671ff53a540156', class: "w-full mt-28" }, h("ul", { key: '7b72868285aaffe0f31628b5ab142e39aaccd964', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(shadowTokens).map(([category, tokens]) => Object.entries(tokens).map(([key, value]) => (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: '9967174337c771b175eb51d9cd77ec227071178e', class: "w-full" }, h("ul", { key: 'db8df572ea997ea83600cb522c761ec5c99788bc', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: '25a7b31970e56ce8ff62c81a69daac121984d9d6', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: '1a1dfa005e39237c2fedb210c0082293770387c6', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: '473024ed6927d1a140eee0e021af92790c3ec5b0', class: "spacing-sample m-16 bg-strong" }, h("span", { key: '7b691bf830943134160396ddcd8f71e419eb29e2', class: "f-body-01 text-inverse" }, "Margin: 1rem / m-16")))), h("li", { key: '38f1d4d7e78b1efdbc55cf732b6be2ac3a62b5b7', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: '3a0fc8cdfa13bf0998a4829c36a74b17a6ee2314', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: 'ec730379e1041a68c9d980bb6b5d4b16560debb0', class: "spacing-sample ml-64 bg-strong" }, h("span", { key: 'fd6f3ab787f1d43fb0b060e8408a1464eacd9875', class: "f-body-01 text-inverse" }, "Margin Left: 4rem / ml-64")))), h("li", { key: '60a45420ca9cd7f4dab1524c8d6be31b39295b0c', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: 'ec433621396341959df05dd4becf2844c4266ea5', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: 'e2ae2d3a3f0eb5226fae09d70eff099ed79ca0e6', class: "spacing-sample mt-32 bg-strong" }, h("span", { key: '1da10931bb4dae62a1a1c020c89463634a3c1630', class: "f-body-01 text-inverse" }, "Margin Top: 2rem / mt-32")))), h("li", { key: 'f2f6ff5c992df7d4d426a3488cb7aa7ad9b7bc85', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: '23700500e04f2ec99fb5329092b7e430f7ac4274', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: 'bc304e082326c02787a62681fa86d20382fbb2d7', class: "spacing-sample p-32 bg-strong" }, h("span", { key: '32692a307c58603ac232bb1004b88e0b5bff0c3d', class: "f-body-01 text-inverse" }, "Padding: 2rem / p-32")))), h("li", { key: '6fc5032427724389d29d200347e3f5de984d6ec5', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: 'f66687c53866291f4f455153e34813d53bbb6d68', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: 'c4305cf37d1f08f50be085664d9a4da0c4859805', class: "spacing-sample pt-32 bg-strong" }, h("span", { key: '4bd0c2056950a34d119c11ffd04e1dce1b8136c5', class: "f-body-01 text-inverse" }, "Padding Top: 2rem / pt-32")))), h("li", { key: '67053133a6c121e02b7cab1da4cf4bc025dcc28d', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: 'dc7c1198e284eb0d71d183017e99fca72c3fb2a7', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: '3e69f16b8673007197f18b736e07a9e2c86e7eeb', class: "spacing-sample pl-32 bg-strong" }, h("span", { key: '5a112de1bf2ce66ea278da76b8890aff02cce8af', class: "f-body-01 text-inverse" }, "Padding Left: 2rem / pl-32")))))));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "token-spacing"; }
|
|
10
10
|
}
|