@ebrains/components 0.9.2-beta → 1.0.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/README.md +4 -2
- package/dist/cjs/analytics-28713bf7.js +60 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/arrow-diagonal-black-0eb8640e.js +5 -0
- package/dist/cjs/arrow-right-3e38e8a9.js +7 -0
- package/dist/cjs/bluesky-eb0d6051.js +16 -0
- package/dist/cjs/bookmark-c61853d9.js +18 -0
- package/dist/cjs/chevron-down-27344777.js +14 -0
- package/dist/cjs/chevron-left-6fc9c6ef.js +13 -0
- package/dist/cjs/chevron-right-6d95a117.js +7 -0
- package/dist/cjs/chevron-up-e37d7713.js +14 -0
- package/dist/cjs/close-51284af5.js +7 -0
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +340 -0
- package/dist/cjs/components-section.cjs.entry.js +145 -0
- package/dist/cjs/components.cjs.js +25 -0
- package/dist/cjs/copy-53102d0c.js +7 -0
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +68 -0
- package/dist/cjs/docs-palettes.cjs.entry.js +27 -0
- package/dist/cjs/docs-tokens.cjs.entry.js +35 -0
- package/dist/cjs/eds-accordion.cjs.entry.js +86 -0
- package/dist/cjs/eds-alert.cjs.entry.js +104 -0
- package/dist/cjs/eds-app-root.cjs.entry.js +37 -0
- package/dist/cjs/eds-avatar_34.cjs.entry.js +2731 -0
- package/dist/cjs/eds-card-project.cjs.entry.js +196 -0
- package/dist/cjs/eds-card-section.cjs.entry.js +39 -0
- package/dist/cjs/eds-card-tags.cjs.entry.js +22 -0
- package/dist/cjs/eds-card-tool.cjs.entry.js +79 -0
- package/dist/cjs/eds-code-block.cjs.entry.js +2489 -0
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +39 -0
- package/dist/cjs/eds-feedback.cjs.entry.js +71 -0
- package/dist/cjs/eds-frame.cjs.entry.js +85 -0
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-bookmark.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-close.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-copy.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-eu.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-external.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-loader.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-menu.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-minus.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-more.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-paper.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-plus.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-portal.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-private.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-public.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-search.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-star.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-success.cjs.entry.js +18 -0
- 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-tutorial.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-updown.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-user.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +18 -0
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +125 -0
- package/dist/cjs/eds-pagination_2.cjs.entry.js +403 -0
- package/dist/cjs/eds-progress-bar.cjs.entry.js +56 -0
- package/dist/cjs/eds-rating.cjs.entry.js +64 -0
- package/dist/cjs/eds-section-core_2.cjs.entry.js +59 -0
- package/dist/cjs/eds-spinner.cjs.entry.js +54 -0
- package/dist/cjs/eds-splash-screen.cjs.entry.js +60 -0
- package/dist/cjs/eds-switch.cjs.entry.js +46 -0
- package/dist/cjs/eds-timeline.cjs.entry.js +63 -0
- package/dist/cjs/eds-toast-manager.cjs.entry.js +75 -0
- package/dist/cjs/eds-toast.cjs.entry.js +77 -0
- package/dist/cjs/eds-trl.cjs.entry.js +51 -0
- package/dist/cjs/eu-b9665157.js +32 -0
- package/dist/cjs/facebook-7aa65e57.js +16 -0
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +50 -0
- package/dist/cjs/index-88c8039f.js +1941 -0
- package/dist/cjs/index-ab9fbefe.js +48 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/linkedin-46b0dd56.js +30 -0
- package/dist/cjs/loader-72f9d178.js +32 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/logo-color-6c787ac1.js +117 -0
- package/dist/cjs/logo-color-margins-b49c0f46.js +120 -0
- package/dist/cjs/logo-space.cjs.entry.js +21 -0
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +36 -0
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +27 -0
- package/dist/{components/index-7281d120.js → cjs/logo-white-no-bg-4a0e0f4b.js} +10 -941
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +21 -0
- package/dist/cjs/mastodon-20c5bb7d.js +16 -0
- package/dist/cjs/menu-7050a6d1.js +13 -0
- package/dist/cjs/minus-1da6a98a.js +13 -0
- package/dist/cjs/mono-2f3cd653.js +13 -0
- package/dist/cjs/more-1d3dd8bc.js +15 -0
- package/dist/cjs/paper-0d6302f6.js +17 -0
- package/dist/cjs/plus-d0e00ad0.js +14 -0
- package/dist/cjs/portal-46212559.js +20 -0
- package/dist/cjs/private-38835fe7.js +27 -0
- package/dist/cjs/public-b519b1f6.js +18 -0
- package/dist/cjs/search-5533d877.js +14 -0
- package/dist/cjs/sharedUtils-8e287250.js +21 -0
- package/dist/cjs/star-942eee9f.js +7 -0
- package/dist/cjs/success-ef661a11.js +20 -0
- package/dist/cjs/svg-repository.cjs.entry.js +337 -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 +300 -0
- package/dist/cjs/token-ratios.cjs.entry.js +29 -0
- package/dist/cjs/token-typography.cjs.entry.js +230 -0
- package/dist/cjs/tutotial-7855df3c.js +29 -0
- package/dist/cjs/twitter-73956e9a.js +16 -0
- package/dist/cjs/unknown-6814e551.js +24 -0
- package/dist/cjs/up-and-down-d71df67d.js +14 -0
- package/dist/cjs/user-a3c2230f.js +18 -0
- package/dist/cjs/youtube-c238a461.js +16 -0
- package/dist/collection/collection-manifest.json +128 -0
- package/dist/collection/components/eds-accordion/eds-accordion.css +256 -0
- package/dist/collection/components/eds-accordion/eds-accordion.js +222 -0
- package/dist/collection/components/eds-accordion/eds-accordion.stories.js +87 -0
- package/dist/collection/components/eds-alert/eds-alert.css +165 -0
- package/dist/collection/components/eds-alert/eds-alert.js +230 -0
- package/dist/collection/components/eds-alert/eds-alert.stories.js +62 -0
- package/dist/collection/components/eds-avatar/eds-avatar.css +202 -0
- package/dist/collection/components/eds-avatar/eds-avatar.js +173 -0
- package/dist/collection/components/eds-avatar/eds-avatar.stories.js +43 -0
- package/dist/collection/components/eds-block-break/eds-block-break.css +24 -0
- package/dist/collection/components/eds-block-break/eds-block-break.js +46 -0
- package/dist/collection/components/eds-breadcrump/eds-breadcrumb.css +112 -0
- package/dist/collection/components/eds-breadcrump/eds-breadcrumb.stories.js +40 -0
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +212 -0
- package/dist/collection/components/eds-button/eds-button.css +910 -0
- package/dist/collection/components/eds-button/eds-button.js +433 -0
- package/dist/collection/components/eds-button/eds-button.stories.js +50 -0
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.css +39 -0
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +94 -0
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.css +9 -0
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +63 -0
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.css +92 -0
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +169 -0
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +148 -0
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +338 -0
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +133 -0
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +228 -0
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.css +103 -0
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +314 -0
- package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.css +58 -0
- package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +172 -0
- package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.stories.js +57 -0
- package/dist/collection/components/eds-charts/eds-pie/eds-pie.css +135 -0
- package/dist/collection/components/eds-charts/eds-pie/eds-pie.js +229 -0
- package/dist/collection/components/eds-charts/eds-pie/eds-pie.stories.js +76 -0
- package/dist/collection/components/eds-code-block/eds-code-block.css +204 -0
- package/dist/collection/components/eds-code-block/eds-code-block.js +141 -0
- package/dist/collection/components/eds-code-block/eds-code-block.stories.js +78 -0
- package/dist/collection/components/eds-dropdown/eds-dropdown.css +117 -0
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +369 -0
- package/dist/collection/components/eds-icon-wrapper/eds-icon-wrapper.js +92 -0
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +36 -0
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +36 -0
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +36 -0
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +36 -0
- 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 +36 -0
- 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-tutorial/eds-icon-tutorial.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +36 -0
- package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +36 -0
- package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +36 -0
- package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +36 -0
- package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +36 -0
- package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +36 -0
- package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +36 -0
- package/dist/collection/components/eds-img/eds-img.css +83 -0
- package/dist/collection/components/eds-img/eds-img.js +252 -0
- package/dist/collection/components/eds-img/eds-img.stories.js +101 -0
- package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +317 -0
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +105 -0
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +90 -0
- package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +252 -0
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +263 -0
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +220 -0
- package/dist/collection/components/eds-input-field/eds-input-field.css +7760 -0
- package/dist/collection/components/eds-input-field/eds-input-field.js +478 -0
- package/dist/collection/components/eds-input-field/eds-input-field.stories.js +206 -0
- package/dist/collection/components/eds-link/eds-link.css +1238 -0
- package/dist/collection/components/eds-link/eds-link.js +493 -0
- package/dist/collection/components/eds-link/eds-link.stories.js +86 -0
- package/dist/collection/components/eds-logo/eds-logo.css +47 -0
- package/dist/collection/components/eds-logo/eds-logo.js +169 -0
- package/dist/collection/components/eds-logo/eds-logo.stories.js +38 -0
- package/dist/collection/components/eds-modal/eds-modal.css +304 -0
- package/dist/collection/components/eds-modal/eds-modal.js +298 -0
- package/dist/collection/components/eds-modal/eds-modal.stories.js +89 -0
- package/dist/collection/components/eds-pagination/eds-pagination.css +148 -0
- package/dist/collection/components/eds-pagination/eds-pagination.js +418 -0
- package/dist/collection/components/eds-pagination/eds-pagination.stories.js +135 -0
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.css +97 -0
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +124 -0
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.stories.js +24 -0
- package/dist/collection/components/eds-rating/eds-rating.css +79 -0
- package/dist/collection/components/eds-rating/eds-rating.js +126 -0
- package/dist/collection/components/eds-rating/eds-rating.stories.js +43 -0
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.css +0 -0
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.donotstories.js +75 -0
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +95 -0
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +140 -0
- 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-switch/eds-switch.css +69 -0
- package/dist/collection/components/eds-switch/eds-switch.js +139 -0
- package/dist/collection/components/eds-switch/eds-switch.stories.js +38 -0
- package/dist/collection/components/eds-table/eds-table.css +142 -0
- package/dist/collection/components/eds-table/eds-table.js +370 -0
- package/dist/collection/components/eds-table/eds-table.stories.js +89 -0
- package/dist/collection/components/eds-tag/eds-tag.css +111 -0
- package/dist/collection/components/eds-tag/eds-tag.js +110 -0
- package/dist/collection/components/eds-tag/eds-tag.stories.js +34 -0
- package/dist/collection/components/eds-timeline/eds-timeline.css +84 -0
- package/dist/collection/components/eds-timeline/eds-timeline.donot-stories.js +35 -0
- package/dist/collection/components/eds-timeline/eds-timeline.js +96 -0
- package/dist/collection/components/eds-toast/eds-toast.css +91 -0
- package/dist/collection/components/eds-toast/eds-toast.js +138 -0
- package/dist/collection/components/eds-toast/eds-toast.stories.js +38 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.css +90 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +65 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.stories.js +23 -0
- package/dist/collection/components/eds-trl/eds-trl.js +68 -0
- package/dist/{components/color-primary-palette.entry.js → collection/eds-docs-ui/colors/color-palette/primary.js} +9 -9
- package/dist/{components/color-secondary-palette.entry.js → collection/eds-docs-ui/colors/color-palette/secondary.js} +30 -9
- package/dist/{components/color-support-palette.entry.js → collection/eds-docs-ui/colors/color-palette/support.js} +9 -9
- package/dist/{components/gradient-primary-palette.entry.js → collection/eds-docs-ui/colors/gradient-palette/primary.js} +9 -9
- package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +75 -0
- package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +59 -0
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +66 -0
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +44 -0
- package/dist/collection/eds-docs-ui/components-section/components-section.js +55 -0
- package/dist/collection/eds-docs-ui/components-section/functional/angular.js +2 -0
- package/dist/collection/eds-docs-ui/components-section/functional/installation.js +2 -0
- package/dist/collection/eds-docs-ui/components-section/functional/overview.js +19 -0
- package/dist/collection/eds-docs-ui/components-section/functional/react.js +2 -0
- package/dist/collection/eds-docs-ui/components-section/functional/usage.js +2 -0
- package/dist/collection/eds-docs-ui/components-section/functional/vue.js +2 -0
- package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +52 -0
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +98 -0
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.stories.js +44 -0
- package/dist/{components/token-radii.entry.js → collection/eds-docs-ui/design-tokens/token-radii/token-radii.js} +9 -19
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +15 -0
- package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +11 -0
- package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +10 -0
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +27 -0
- package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +44 -0
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.css +154 -0
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +22 -0
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +161 -0
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +21 -0
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.css +169 -0
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +64 -0
- package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +44 -0
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +240 -0
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +22 -0
- package/dist/collection/eds-docs-ui/svg-repository/svg-repository.css +5 -0
- package/dist/{components/svg-repository.entry.js → collection/eds-docs-ui/svg-repository/svg-repository.js} +21 -15
- package/dist/collection/index.js +1 -0
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.css +249 -0
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +95 -0
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +71 -0
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.css +0 -0
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +86 -0
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.st.js +31 -0
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.css +163 -0
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +214 -0
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.stories.js +129 -0
- package/dist/collection/shared-ui/eds-footer/eds-footer.css +230 -0
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +233 -0
- package/dist/collection/shared-ui/eds-footer/eds-footer.stories.js +65 -0
- package/dist/collection/shared-ui/eds-form/eds-form.css +3 -0
- package/dist/collection/shared-ui/eds-form/eds-form.js +473 -0
- package/dist/collection/shared-ui/eds-form/eds-form.stories.js +82 -0
- package/dist/collection/shared-ui/eds-frame/eds-frame.css +148 -0
- package/dist/collection/shared-ui/eds-frame/eds-frame.js +234 -0
- package/dist/collection/shared-ui/eds-frame/eds-frame.stories.js +52 -0
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.css +152 -0
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +192 -0
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +77 -0
- package/dist/collection/shared-ui/eds-header/eds-header.css +184 -0
- package/dist/collection/shared-ui/eds-header/eds-header.js +183 -0
- package/dist/collection/shared-ui/eds-header/eds-header.stories.js +42 -0
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.css +109 -0
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +232 -0
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.js +31 -0
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.css +124 -0
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +92 -0
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +21 -0
- 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 +136 -0
- package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.stories.js +23 -0
- package/dist/collection/shared-ui/eds-steps/eds-steps.css +93 -0
- package/dist/collection/shared-ui/eds-steps/eds-steps.js +170 -0
- package/dist/collection/shared-ui/eds-steps/eds-steps.stories.js +35 -0
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +261 -0
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +219 -0
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.stories.js +79 -0
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +375 -0
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +221 -0
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +64 -0
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +51 -0
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +54 -0
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.stories.js +25 -0
- package/dist/collection/shared-ui/eds-user/eds-user.css +71 -0
- package/dist/collection/shared-ui/eds-user/eds-user.js +77 -0
- 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/{components/analytics-e29fcd53.js → collection/utils/analytics.js} +8 -10
- package/dist/collection/utils/api.js +27 -0
- package/dist/{components/color-47266964.js → collection/utils/color.js} +11 -14
- package/dist/collection/utils/eds-form/formUtils.js +65 -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/global.js +8 -0
- package/dist/collection/utils/keycloak.js +85 -0
- package/dist/collection/utils/sharedUtils.js +17 -0
- package/dist/{components/toastManager-b716afd8.js → collection/utils/toastManager.js} +1 -3
- package/dist/components/analytics.js +56 -0
- package/dist/components/arrow-diagonal-black.js +3 -0
- package/dist/components/arrow-right.js +5 -0
- package/dist/components/bluesky.js +14 -0
- package/dist/components/bookmark.js +16 -0
- package/dist/components/chevron-down.js +12 -0
- package/dist/components/chevron-left.js +11 -0
- package/dist/components/chevron-right.js +5 -0
- package/dist/components/chevron-up.js +12 -0
- package/dist/components/close.js +5 -0
- package/dist/components/color-primary-palette.d.ts +11 -0
- package/dist/components/color-primary-palette.js +6 -0
- package/dist/components/color-secondary-palette.d.ts +11 -0
- package/dist/components/color-secondary-palette.js +6 -0
- package/dist/components/color-support-palette.d.ts +11 -0
- package/dist/components/color-support-palette.js +6 -0
- package/dist/components/components-section.d.ts +11 -0
- package/dist/components/components-section.js +208 -0
- package/dist/components/components.css +7311 -0
- package/dist/components/components.esm.js +1 -47
- package/dist/components/copy.js +5 -0
- package/dist/components/correct-use-of-colors.d.ts +11 -0
- package/dist/components/correct-use-of-colors.js +93 -0
- package/dist/components/docs-palettes.d.ts +11 -0
- package/dist/components/docs-palettes.js +96 -0
- package/dist/components/docs-tokens.d.ts +11 -0
- package/dist/components/docs-tokens.js +80 -0
- package/dist/components/eds-accordion.d.ts +11 -0
- package/dist/components/eds-accordion.js +6 -0
- package/dist/components/eds-accordion2.js +119 -0
- package/dist/components/eds-alert.d.ts +11 -0
- package/dist/components/eds-alert.js +6 -0
- package/dist/components/eds-alert2.js +135 -0
- package/dist/components/eds-app-root.d.ts +11 -0
- package/dist/components/eds-app-root.js +71 -0
- package/dist/components/eds-avatar.d.ts +11 -0
- package/dist/components/eds-avatar.js +6 -0
- package/dist/components/eds-avatar2.js +92 -0
- package/dist/components/eds-block-break.d.ts +11 -0
- package/dist/components/eds-block-break.js +6 -0
- package/dist/components/eds-block-break2.js +34 -0
- package/dist/components/eds-breadcrumb.d.ts +11 -0
- package/dist/components/{eds-breadcrumb.entry.js → eds-breadcrumb.js} +49 -10
- package/dist/components/eds-button.d.ts +11 -0
- package/dist/components/eds-button.js +6 -0
- package/dist/components/eds-button2.js +210 -0
- package/dist/components/eds-card-desc.d.ts +11 -0
- package/dist/components/eds-card-desc.js +6 -0
- package/dist/components/eds-card-desc2.js +41 -0
- package/dist/components/eds-card-generic.d.ts +11 -0
- package/dist/components/eds-card-generic.js +6 -0
- package/dist/components/{eds-card-generic.entry.js → eds-card-generic2.js} +72 -12
- package/dist/components/eds-card-project.d.ts +11 -0
- package/dist/components/eds-card-project.js +238 -0
- package/dist/components/eds-card-section.d.ts +11 -0
- package/dist/components/eds-card-section.js +92 -0
- package/dist/components/eds-card-tags.d.ts +11 -0
- package/dist/components/eds-card-tags.js +45 -0
- package/dist/components/eds-card-title.d.ts +11 -0
- package/dist/components/eds-card-title.js +6 -0
- package/dist/components/{eds-card-title.entry.js → eds-card-title2.js} +31 -8
- package/dist/components/eds-card-tool.d.ts +11 -0
- package/dist/components/eds-card-tool.js +137 -0
- package/dist/components/eds-code-block.d.ts +11 -0
- package/dist/components/eds-code-block.js +6 -0
- package/dist/components/eds-code-block2.js +2510 -0
- package/dist/components/eds-cookies-preference.d.ts +11 -0
- package/dist/components/eds-cookies-preference.js +87 -0
- package/dist/components/eds-dropdown.d.ts +11 -0
- package/dist/components/eds-dropdown.js +6 -0
- package/dist/components/{eds-dropdown.entry.js → eds-dropdown2.js} +50 -11
- package/dist/components/eds-feedback.d.ts +11 -0
- package/dist/components/eds-feedback.js +111 -0
- package/dist/components/eds-footer.d.ts +11 -0
- package/dist/components/eds-footer.js +6 -0
- package/dist/components/eds-footer2.js +99 -0
- package/dist/components/eds-form.d.ts +11 -0
- package/dist/components/{eds-form.entry.js → eds-form.js} +114 -72
- package/dist/components/eds-frame.d.ts +11 -0
- package/dist/components/eds-frame.js +120 -0
- package/dist/components/eds-fullscreen-menu.d.ts +11 -0
- package/dist/components/{eds-fullscreen-menu.entry.js → eds-fullscreen-menu.js} +82 -9
- package/dist/components/eds-gauge.d.ts +11 -0
- package/dist/components/eds-gauge.js +81 -0
- package/dist/components/eds-header.d.ts +11 -0
- package/dist/components/eds-header.js +108 -0
- package/dist/components/eds-icon-arrow-diagonal.d.ts +11 -0
- package/dist/components/eds-icon-arrow-diagonal.js +33 -0
- package/dist/components/eds-icon-arrow-right.d.ts +11 -0
- package/dist/components/eds-icon-arrow-right.js +33 -0
- package/dist/components/eds-icon-bluesky.d.ts +11 -0
- package/dist/components/eds-icon-bluesky.js +33 -0
- package/dist/components/eds-icon-bookmark.d.ts +11 -0
- package/dist/components/eds-icon-bookmark.js +33 -0
- package/dist/components/eds-icon-chevron-down.d.ts +11 -0
- package/dist/components/eds-icon-chevron-down.js +33 -0
- package/dist/components/eds-icon-chevron-left.d.ts +11 -0
- package/dist/components/eds-icon-chevron-left.js +33 -0
- package/dist/components/eds-icon-chevron-right.d.ts +11 -0
- package/dist/components/eds-icon-chevron-right.js +33 -0
- package/dist/components/eds-icon-chevron-up.d.ts +11 -0
- package/dist/components/eds-icon-chevron-up.js +33 -0
- package/dist/components/eds-icon-close.d.ts +11 -0
- package/dist/components/eds-icon-close.js +33 -0
- package/dist/components/eds-icon-copy.d.ts +11 -0
- package/dist/components/eds-icon-copy.js +33 -0
- package/dist/components/eds-icon-eu.d.ts +11 -0
- package/dist/components/eds-icon-eu.js +33 -0
- package/dist/components/eds-icon-external.d.ts +11 -0
- package/dist/components/eds-icon-external.js +33 -0
- package/dist/components/eds-icon-facebook.d.ts +11 -0
- package/dist/components/eds-icon-facebook.js +33 -0
- package/dist/components/eds-icon-gitlab.d.ts +11 -0
- package/dist/components/eds-icon-gitlab.js +33 -0
- package/dist/components/eds-icon-linkedin.d.ts +11 -0
- package/dist/components/eds-icon-linkedin.js +33 -0
- package/dist/components/eds-icon-loader.d.ts +11 -0
- package/dist/components/eds-icon-loader.js +33 -0
- package/dist/components/eds-icon-mastodon.d.ts +11 -0
- package/dist/components/eds-icon-mastodon.js +33 -0
- package/dist/components/eds-icon-menu.d.ts +11 -0
- package/dist/components/eds-icon-menu.js +33 -0
- package/dist/components/eds-icon-minus.d.ts +11 -0
- package/dist/components/eds-icon-minus.js +33 -0
- package/dist/components/eds-icon-more.d.ts +11 -0
- package/dist/components/eds-icon-more.js +33 -0
- package/dist/components/eds-icon-paper.d.ts +11 -0
- package/dist/components/eds-icon-paper.js +33 -0
- package/dist/components/eds-icon-plus.d.ts +11 -0
- package/dist/components/eds-icon-plus.js +33 -0
- package/dist/components/eds-icon-portal.d.ts +11 -0
- package/dist/components/eds-icon-portal.js +33 -0
- package/dist/components/eds-icon-private.d.ts +11 -0
- package/dist/components/eds-icon-private.js +33 -0
- package/dist/components/eds-icon-public.d.ts +11 -0
- package/dist/components/eds-icon-public.js +33 -0
- package/dist/components/eds-icon-search.d.ts +11 -0
- package/dist/components/eds-icon-search.js +33 -0
- package/dist/components/eds-icon-star.d.ts +11 -0
- package/dist/components/eds-icon-star.js +33 -0
- package/dist/components/eds-icon-success.d.ts +11 -0
- package/dist/components/eds-icon-success.js +33 -0
- 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-tutorial.d.ts +11 -0
- package/dist/components/eds-icon-tutorial.js +33 -0
- package/dist/components/eds-icon-twitter.d.ts +11 -0
- package/dist/components/eds-icon-twitter.js +33 -0
- package/dist/components/eds-icon-unknown.d.ts +11 -0
- package/dist/components/eds-icon-unknown.js +33 -0
- package/dist/components/eds-icon-updown.d.ts +11 -0
- package/dist/components/eds-icon-updown.js +33 -0
- package/dist/components/eds-icon-user.d.ts +11 -0
- package/dist/components/eds-icon-user.js +33 -0
- package/dist/components/eds-icon-wrapper.d.ts +11 -0
- package/dist/components/eds-icon-wrapper.js +6 -0
- package/dist/components/{eds-icon-wrapper.entry.js → eds-icon-wrapper2.js} +26 -6
- package/dist/components/eds-icon-youtube.d.ts +11 -0
- package/dist/components/eds-icon-youtube.js +33 -0
- package/dist/components/eds-img.d.ts +11 -0
- package/dist/components/eds-img.js +6 -0
- package/dist/components/{eds-img.entry.js → eds-img2.js} +38 -10
- package/dist/components/eds-input-field.d.ts +11 -0
- package/dist/components/eds-input-field.js +6 -0
- package/dist/components/{eds-input-field.entry.js → eds-input-field2.js} +111 -23
- package/dist/components/eds-input-footer.d.ts +11 -0
- package/dist/components/eds-input-footer.js +6 -0
- package/dist/components/eds-input-footer2.js +43 -0
- package/dist/components/eds-input-label.d.ts +11 -0
- package/dist/components/eds-input-label.js +6 -0
- package/dist/components/eds-input-label2.js +35 -0
- package/dist/components/eds-input-range.d.ts +11 -0
- package/dist/components/eds-input-range.js +6 -0
- package/dist/components/{eds-input-range.entry.js → eds-input-range2.js} +35 -8
- package/dist/components/eds-input-search.d.ts +11 -0
- package/dist/components/eds-input-search.js +6 -0
- package/dist/components/{eds-input-search.entry.js → eds-input-search2.js} +39 -9
- package/dist/components/eds-input-select.d.ts +11 -0
- package/dist/components/eds-input-select.js +6 -0
- package/dist/components/eds-input-select2.js +64 -0
- package/dist/components/eds-input.d.ts +11 -0
- package/dist/components/eds-input.js +6 -0
- package/dist/components/{eds-input.entry.js → eds-input2.js} +48 -9
- package/dist/components/eds-link.d.ts +11 -0
- package/dist/components/eds-link.js +6 -0
- package/dist/components/eds-link2.js +255 -0
- package/dist/components/eds-logo.d.ts +11 -0
- package/dist/components/eds-logo.js +6 -0
- package/dist/components/{eds-logo.entry.js → eds-logo2.js} +33 -11
- package/dist/components/eds-matomo-notice.d.ts +11 -0
- package/dist/components/eds-matomo-notice.js +6 -0
- package/dist/components/eds-matomo-notice2.js +160 -0
- package/dist/components/eds-modal.d.ts +11 -0
- package/dist/components/eds-modal.js +166 -0
- package/dist/components/eds-pagination.d.ts +11 -0
- package/dist/components/eds-pagination.js +6 -0
- package/dist/components/{eds-pagination.entry.js → eds-pagination2.js} +52 -9
- package/dist/components/eds-pie.d.ts +11 -0
- package/dist/components/eds-pie.js +127 -0
- package/dist/components/eds-progress-bar.d.ts +11 -0
- package/dist/components/eds-progress-bar.js +6 -0
- package/dist/components/eds-progress-bar2.js +71 -0
- package/dist/components/eds-rating.d.ts +11 -0
- package/dist/components/eds-rating.js +6 -0
- package/dist/components/eds-rating2.js +91 -0
- package/dist/components/eds-section-core.d.ts +11 -0
- package/dist/components/eds-section-core.js +6 -0
- package/dist/components/eds-section-core2.js +45 -0
- package/dist/components/eds-section-heading.d.ts +11 -0
- package/dist/components/eds-section-heading.js +6 -0
- package/dist/components/eds-section-heading2.js +57 -0
- package/dist/components/eds-social-networks.d.ts +11 -0
- package/dist/components/eds-social-networks.js +6 -0
- package/dist/components/{eds-social-networks.entry.js → eds-social-networks2.js} +38 -8
- 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 +89 -0
- package/dist/components/eds-steps-v2.d.ts +11 -0
- package/dist/components/eds-steps-v2.js +137 -0
- package/dist/components/eds-steps.d.ts +11 -0
- package/dist/components/eds-steps.js +6 -0
- package/dist/components/{eds-steps.entry.js → eds-steps2.js} +44 -10
- package/dist/components/eds-switch.d.ts +11 -0
- package/dist/components/eds-switch.js +65 -0
- package/dist/components/eds-table.d.ts +11 -0
- package/dist/components/eds-table.js +6 -0
- package/dist/components/{eds-table.entry.js → eds-table2.js} +109 -14
- package/dist/components/eds-tabs.d.ts +11 -0
- package/dist/components/eds-tabs.js +152 -0
- package/dist/components/eds-tag.d.ts +11 -0
- package/dist/components/eds-tag.js +6 -0
- package/dist/components/eds-tag2.js +64 -0
- package/dist/components/eds-timeline.d.ts +11 -0
- package/dist/components/eds-timeline.js +119 -0
- package/dist/components/eds-toast-manager.d.ts +11 -0
- package/dist/components/eds-toast-manager.js +109 -0
- package/dist/components/eds-toast.d.ts +11 -0
- package/dist/components/eds-toast.js +6 -0
- package/dist/components/eds-toast2.js +105 -0
- package/dist/components/eds-tooltip.d.ts +11 -0
- package/dist/components/eds-tooltip.js +48 -0
- package/dist/components/eds-trl.d.ts +11 -0
- package/dist/components/eds-trl.js +138 -0
- package/dist/components/eds-user.d.ts +11 -0
- package/dist/components/eds-user.js +97 -0
- package/dist/components/eu.js +30 -0
- package/dist/components/facebook.js +14 -0
- package/dist/components/gradient-primary-palette.d.ts +11 -0
- package/dist/components/gradient-primary-palette.js +6 -0
- package/dist/components/gradient-secondary-palette.d.ts +11 -0
- package/dist/components/gradient-secondary-palette.js +6 -0
- package/dist/components/gradient-support-palette.d.ts +11 -0
- package/dist/components/gradient-support-palette.js +6 -0
- package/dist/components/incorrect-use-of-colors.d.ts +11 -0
- package/dist/components/incorrect-use-of-colors.js +81 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.esm.js +0 -1
- package/dist/components/index.js +1 -0
- package/dist/components/linkedin.js +28 -0
- package/dist/components/loader.js +30 -0
- package/dist/components/logo-color-margins.js +118 -0
- package/dist/components/logo-color.js +115 -0
- package/dist/components/logo-space.d.ts +11 -0
- package/dist/components/logo-space.js +101 -0
- package/dist/components/logo-variations-horizontal.d.ts +11 -0
- package/dist/components/logo-variations-horizontal.js +6 -0
- package/dist/components/{logo-variations-horizontal.entry.js → logo-variations-horizontal2.js} +30 -8
- package/dist/components/logo-variations-tabs.d.ts +11 -0
- package/dist/components/logo-variations-tabs.js +60 -0
- package/dist/components/logo-variations-vertical.d.ts +11 -0
- package/dist/components/logo-variations-vertical.js +6 -0
- package/dist/components/{logo-variations-vertical.entry.js → logo-variations-vertical2.js} +33 -8
- package/dist/components/logo-white-no-bg.js +1029 -0
- package/dist/components/logo-wrong-usage.d.ts +11 -0
- package/dist/components/logo-wrong-usage.js +35 -0
- package/dist/components/mastodon.js +14 -0
- package/dist/components/menu.js +11 -0
- package/dist/components/minus.js +11 -0
- package/dist/components/mono.js +11 -0
- package/dist/components/more.js +13 -0
- package/dist/components/p-019555e2.entry.js +1 -0
- package/dist/components/p-024c7937.js +1 -0
- package/dist/components/p-04b4e9d0.entry.js +1 -0
- package/dist/components/p-05754401.js +1 -0
- package/dist/components/p-0863352c.entry.js +1 -0
- package/dist/components/p-0be28996.js +1 -0
- package/dist/components/p-0d6434e1.entry.js +1 -0
- package/dist/components/p-0e6d43c5.js +1 -0
- package/dist/components/p-0e94a89f.entry.js +1 -0
- package/dist/components/p-0ed92872.entry.js +1 -0
- package/dist/components/p-0eeddc13.entry.js +1 -0
- package/dist/components/p-100909ce.entry.js +1 -0
- package/dist/components/p-10db551c.entry.js +1 -0
- package/dist/components/p-112122d6.js +1 -0
- package/dist/components/p-124b8747.entry.js +1 -0
- package/dist/components/p-14a223fe.entry.js +1 -0
- package/dist/components/p-1661f33c.entry.js +1 -0
- package/dist/components/p-18ceadd2.entry.js +1 -0
- package/dist/components/p-1b2913c8.js +1 -0
- package/dist/components/p-1ded61bd.js +1 -0
- package/dist/components/p-2066b033.js +1 -0
- package/dist/components/p-2117611b.js +1 -0
- package/dist/components/p-223ba66e.entry.js +1 -0
- package/dist/components/p-24dab785.entry.js +1 -0
- package/dist/components/p-2692f93d.js +1 -0
- package/dist/components/p-26d6679b.entry.js +1 -0
- package/dist/components/p-2810d568.entry.js +1 -0
- package/dist/components/p-28ae3f3a.js +2 -0
- package/dist/components/p-29041952.js +1 -0
- package/dist/components/p-2b1b2026.entry.js +1 -0
- package/dist/components/p-2c571550.entry.js +1 -0
- package/dist/components/p-326d9e55.entry.js +1 -0
- package/dist/components/p-32e6c4df.js +1 -0
- package/dist/components/p-36d6134f.entry.js +1 -0
- package/dist/components/p-373119b3.js +1 -0
- package/dist/components/p-3c642a30.entry.js +1 -0
- package/dist/components/p-4587d0ef.js +1 -0
- package/dist/components/p-46619042.entry.js +1 -0
- package/dist/components/p-4687b64c.js +1 -0
- package/dist/components/p-46a6ab04.entry.js +1 -0
- package/dist/components/p-46d0716d.js +1 -0
- package/dist/components/p-50e27321.js +1 -0
- package/dist/components/p-50ea5b07.entry.js +1 -0
- package/dist/components/p-511b23ec.entry.js +1 -0
- package/dist/components/p-5462923d.entry.js +1 -0
- package/dist/components/p-54b8f143.js +1 -0
- package/dist/components/p-5ab1d64a.js +1 -0
- package/dist/components/p-5d046674.js +1 -0
- package/dist/components/p-6199b8c0.entry.js +1 -0
- package/dist/components/p-624e653e.entry.js +1 -0
- package/dist/components/p-682f7376.entry.js +1 -0
- package/dist/components/p-6907a47c.entry.js +1 -0
- package/dist/components/p-694fc085.js +1 -0
- package/dist/components/p-69c5074b.js +1 -0
- package/dist/components/p-6ba42d02.entry.js +1 -0
- package/dist/components/p-6e929acb.entry.js +1 -0
- package/dist/components/p-6ede7101.entry.js +1 -0
- package/dist/components/p-70bac015.entry.js +1 -0
- package/dist/components/p-7198c024.js +1 -0
- package/dist/components/p-7af6b832.entry.js +1 -0
- package/dist/components/p-7f31622d.entry.js +1 -0
- package/dist/components/p-81899237.js +1 -0
- package/dist/components/p-822ac246.entry.js +1 -0
- package/dist/components/p-83ff4a95.js +1 -0
- package/dist/components/p-848506b8.entry.js +1 -0
- package/dist/components/p-84fd3e40.entry.js +1 -0
- package/dist/components/p-85634ad2.entry.js +1 -0
- package/dist/components/p-86bb73dc.js +1 -0
- package/dist/components/p-8983de37.js +1 -0
- package/dist/components/p-8ad05566.entry.js +1 -0
- package/dist/components/p-8b016d76.entry.js +1 -0
- package/dist/components/p-8bdf5841.entry.js +1 -0
- package/dist/components/p-8ff39cef.entry.js +1 -0
- package/dist/components/p-9c5a453b.js +1 -0
- package/dist/components/p-a4f552b2.entry.js +1 -0
- package/dist/components/p-a81cba86.entry.js +1 -0
- package/dist/components/p-abb2ad00.entry.js +1 -0
- package/dist/components/p-adbd0d7b.entry.js +1 -0
- package/dist/components/p-aefcb641.js +1 -0
- package/dist/components/p-affe2b55.entry.js +1 -0
- package/dist/components/p-b31591db.entry.js +1 -0
- package/dist/components/p-b4abff90.entry.js +1 -0
- package/dist/components/p-b50fc0d7.entry.js +1 -0
- package/dist/components/p-b73410de.js +1 -0
- package/dist/components/p-b7efd666.entry.js +1 -0
- package/dist/components/p-b822abb7.js +1 -0
- package/dist/components/p-ba720bf3.js +1 -0
- package/dist/components/p-ba784274.entry.js +1 -0
- package/dist/components/p-bb9af709.entry.js +1 -0
- package/dist/components/p-bfc62d3e.entry.js +1 -0
- package/dist/components/p-c0b22803.entry.js +1 -0
- package/dist/components/p-c1e4ef92.js +1 -0
- package/dist/components/p-c776b6f8.js +1 -0
- package/dist/components/p-c8e7c854.js +1 -0
- package/dist/components/p-cdd491f5.entry.js +1 -0
- package/dist/components/p-cde3d7a4.entry.js +1 -0
- package/dist/components/p-cdf19579.js +1 -0
- package/dist/components/p-cfccddc3.entry.js +1 -0
- package/dist/components/p-d15065c3.js +1 -0
- package/dist/components/p-d268c96b.entry.js +1 -0
- package/dist/components/p-d437bae2.entry.js +1 -0
- package/dist/components/p-d456e649.entry.js +1 -0
- package/dist/components/p-d962849c.js +1 -0
- package/dist/components/p-dae8f66a.entry.js +1 -0
- package/dist/components/p-e1255160.js +1 -0
- package/dist/components/p-e1791844.entry.js +1 -0
- package/dist/components/p-e2d5a487.js +1 -0
- package/dist/components/p-e82edd4a.entry.js +1 -0
- package/dist/components/p-e9f608a8.entry.js +1 -0
- package/dist/components/p-ea97a94e.entry.js +9 -0
- package/dist/components/p-eac593ee.entry.js +1 -0
- package/dist/components/p-ecbb679f.js +1 -0
- package/dist/components/p-ece618b3.js +1 -0
- package/dist/components/p-f26fd186.entry.js +1 -0
- package/dist/components/p-f2c23162.entry.js +1 -0
- package/dist/components/p-fc4edb18.entry.js +1 -0
- package/dist/components/p-fe1cba17.entry.js +1 -0
- package/dist/components/paper.js +15 -0
- package/dist/components/plus.js +12 -0
- package/dist/components/portal.js +18 -0
- package/dist/components/primary.js +65 -0
- package/dist/components/primary2.js +67 -0
- package/dist/components/private.js +25 -0
- package/dist/components/public.js +16 -0
- package/dist/components/search.js +12 -0
- package/dist/components/secondary.js +92 -0
- package/dist/components/secondary2.js +107 -0
- package/dist/components/star.js +5 -0
- package/dist/components/success.js +18 -0
- package/dist/components/support.js +94 -0
- package/dist/components/support2.js +85 -0
- package/dist/components/svg-repository.d.ts +11 -0
- package/dist/components/svg-repository.js +417 -0
- package/dist/components/thumbs-down.js +5 -0
- package/dist/components/thumbs-up.js +6 -0
- package/dist/components/token-list.d.ts +11 -0
- package/dist/components/token-list.js +6 -0
- package/dist/components/{token-list.entry.js → token-list2.js} +35 -7
- package/dist/components/token-radii.d.ts +11 -0
- package/dist/components/token-radii.js +6 -0
- package/dist/components/token-radii2.js +47 -0
- package/dist/components/token-ratios.d.ts +11 -0
- package/dist/components/token-ratios.js +54 -0
- package/dist/components/token-shadows.d.ts +11 -0
- package/dist/components/token-shadows.js +6 -0
- package/dist/components/token-shadows2.js +56 -0
- package/dist/components/token-spacing.d.ts +11 -0
- package/dist/components/token-spacing.js +29 -0
- package/dist/components/token-typography.d.ts +11 -0
- package/dist/components/token-typography.js +255 -0
- package/dist/components/tutotial.js +27 -0
- package/dist/components/twitter.js +14 -0
- package/dist/components/unknown.js +22 -0
- package/dist/components/up-and-down.js +12 -0
- package/dist/components/user.js +16 -0
- package/dist/components/youtube.js +14 -0
- package/dist/esm/analytics-d99780e3.js +56 -0
- package/dist/esm/arrow-diagonal-black-8f0494c3.js +3 -0
- package/dist/esm/arrow-right-9322ba8a.js +5 -0
- package/dist/esm/bluesky-cc5edd2d.js +14 -0
- package/dist/esm/bookmark-c200037c.js +16 -0
- package/dist/esm/chevron-down-6144c823.js +12 -0
- package/dist/esm/chevron-left-ca6c66e1.js +11 -0
- package/dist/esm/chevron-right-b88ed2d4.js +5 -0
- package/dist/esm/chevron-up-c66bd477.js +12 -0
- package/dist/esm/close-87fc0d63.js +5 -0
- package/dist/esm/color-primary-palette_6.entry.js +331 -0
- package/dist/{components → esm}/components-section.entry.js +23 -17
- package/dist/esm/components.js +20 -0
- package/dist/esm/copy-03b72cb6.js +5 -0
- package/dist/{components → esm}/correct-use-of-colors.entry.js +2 -2
- package/dist/{components → esm}/docs-palettes.entry.js +2 -2
- package/dist/{components → esm}/docs-tokens.entry.js +2 -2
- package/dist/{components → esm}/eds-accordion.entry.js +7 -6
- package/dist/esm/eds-alert.entry.js +100 -0
- package/dist/{components → esm}/eds-app-root.entry.js +2 -2
- package/dist/esm/eds-avatar_34.entry.js +2694 -0
- package/dist/esm/eds-card-project.entry.js +192 -0
- package/dist/{components → esm}/eds-card-section.entry.js +4 -3
- package/dist/{components → esm}/eds-card-tags.entry.js +4 -3
- package/dist/{components → esm}/eds-card-tool.entry.js +5 -4
- package/dist/{components → esm}/eds-code-block.entry.js +5 -35
- package/dist/{components → esm}/eds-cookies-preference.entry.js +4 -3
- package/dist/{components → esm}/eds-feedback.entry.js +10 -4
- package/dist/{components → esm}/eds-frame.entry.js +5 -4
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +14 -0
- package/dist/esm/eds-icon-arrow-right.entry.js +14 -0
- package/dist/esm/eds-icon-bluesky.entry.js +14 -0
- package/dist/esm/eds-icon-bookmark.entry.js +14 -0
- package/dist/esm/eds-icon-chevron-down.entry.js +14 -0
- package/dist/esm/eds-icon-chevron-left.entry.js +14 -0
- package/dist/esm/eds-icon-chevron-right.entry.js +14 -0
- package/dist/esm/eds-icon-chevron-up.entry.js +14 -0
- package/dist/esm/eds-icon-close.entry.js +14 -0
- package/dist/esm/eds-icon-copy.entry.js +14 -0
- package/dist/esm/eds-icon-eu.entry.js +14 -0
- package/dist/esm/eds-icon-external.entry.js +14 -0
- package/dist/esm/eds-icon-facebook.entry.js +14 -0
- package/dist/esm/eds-icon-gitlab.entry.js +14 -0
- package/dist/esm/eds-icon-linkedin.entry.js +14 -0
- package/dist/esm/eds-icon-loader.entry.js +14 -0
- package/dist/esm/eds-icon-mastodon.entry.js +14 -0
- package/dist/esm/eds-icon-menu.entry.js +14 -0
- package/dist/esm/eds-icon-minus.entry.js +14 -0
- package/dist/esm/eds-icon-more.entry.js +14 -0
- package/dist/esm/eds-icon-paper.entry.js +14 -0
- package/dist/esm/eds-icon-plus.entry.js +14 -0
- package/dist/esm/eds-icon-portal.entry.js +14 -0
- package/dist/esm/eds-icon-private.entry.js +14 -0
- package/dist/esm/eds-icon-public.entry.js +14 -0
- package/dist/esm/eds-icon-search.entry.js +14 -0
- package/dist/esm/eds-icon-star.entry.js +14 -0
- package/dist/esm/eds-icon-success.entry.js +14 -0
- 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-tutorial.entry.js +14 -0
- package/dist/esm/eds-icon-twitter.entry.js +14 -0
- package/dist/esm/eds-icon-unknown.entry.js +14 -0
- package/dist/esm/eds-icon-updown.entry.js +14 -0
- package/dist/esm/eds-icon-user.entry.js +14 -0
- package/dist/esm/eds-icon-youtube.entry.js +14 -0
- package/dist/{components → esm}/eds-matomo-notice.entry.js +12 -9
- package/dist/esm/eds-pagination_2.entry.js +398 -0
- package/dist/esm/eds-progress-bar.entry.js +52 -0
- package/dist/{components → esm}/eds-rating.entry.js +4 -3
- package/dist/{components/eds-section-heading.entry.js → esm/eds-section-core_2.entry.js} +21 -4
- package/dist/{components → esm}/eds-spinner.entry.js +4 -3
- package/dist/{components → esm}/eds-splash-screen.entry.js +3 -2
- package/dist/esm/eds-switch.entry.js +42 -0
- package/dist/esm/eds-timeline.entry.js +59 -0
- package/dist/{components → esm}/eds-toast-manager.entry.js +34 -4
- package/dist/{components → esm}/eds-toast.entry.js +8 -6
- package/dist/{components → esm}/eds-trl.entry.js +2 -2
- package/dist/esm/eu-9ddde93a.js +30 -0
- package/dist/esm/facebook-9cb5c17f.js +14 -0
- package/dist/esm/incorrect-use-of-colors.entry.js +46 -0
- package/dist/esm/index-39c58238.js +46 -0
- package/dist/esm/index-fdb33359.js +1912 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/linkedin-e8650abb.js +28 -0
- package/dist/esm/loader-c9628637.js +30 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/logo-color-7f1fd803.js +115 -0
- package/dist/esm/logo-color-margins-ff8ce71b.js +118 -0
- package/dist/{components → esm}/logo-space.entry.js +5 -4
- package/dist/esm/logo-variations-horizontal_2.entry.js +31 -0
- package/dist/{components → esm}/logo-variations-tabs.entry.js +2 -2
- package/dist/esm/logo-white-no-bg-f382f86f.js +1029 -0
- package/dist/{components → esm}/logo-wrong-usage.entry.js +5 -4
- package/dist/esm/mastodon-3703ec61.js +14 -0
- package/dist/esm/menu-340ea948.js +11 -0
- package/dist/esm/minus-b30a7c71.js +11 -0
- package/dist/esm/mono-53f70232.js +11 -0
- package/dist/esm/more-4449d549.js +13 -0
- package/dist/esm/paper-8e74ea31.js +15 -0
- package/dist/esm/plus-89c07be2.js +12 -0
- package/dist/esm/portal-d6c8ce56.js +18 -0
- package/dist/esm/private-1c25ff8e.js +25 -0
- package/dist/esm/public-d4d8c585.js +16 -0
- package/dist/esm/search-fbcd79c2.js +12 -0
- package/dist/esm/sharedUtils-a550989c.js +19 -0
- package/dist/esm/star-0da9b5e9.js +5 -0
- package/dist/esm/success-443809da.js +18 -0
- package/dist/esm/svg-repository.entry.js +333 -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 +294 -0
- package/dist/{components → esm}/token-ratios.entry.js +2 -2
- package/dist/{components → esm}/token-typography.entry.js +2 -2
- package/dist/esm/tutotial-150ee1fd.js +27 -0
- package/dist/esm/twitter-ac21b505.js +14 -0
- package/dist/esm/unknown-ed01a24c.js +22 -0
- package/dist/esm/up-and-down-d747abee.js +12 -0
- package/dist/esm/user-71ebdc15.js +16 -0
- package/dist/esm/youtube-efbfbdc4.js +14 -0
- package/dist/hydrate/index.d.ts +242 -0
- package/dist/hydrate/index.js +30683 -0
- package/dist/hydrate/index.mjs +30675 -0
- package/dist/hydrate/package.json +12 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.js +75 -0
- package/dist/types/components/eds-avatar/eds-avatar.d.ts +3 -4
- package/dist/types/components/eds-avatar/eds-avatar.stories.d.ts +2 -1
- package/dist/types/components/eds-block-break/eds-block-break.d.ts +2 -7
- package/dist/types/components/eds-button/eds-button.d.ts +0 -1
- package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.d.ts +0 -5
- package/dist/types/components/eds-charts/eds-gauge/eds-gauge.d.ts +14 -0
- package/dist/types/components/eds-charts/eds-gauge/eds-gauge.stories.d.ts +52 -0
- package/dist/types/components/eds-charts/eds-pie/eds-pie.d.ts +28 -0
- package/dist/types/components/eds-charts/eds-pie/eds-pie.stories.d.ts +60 -0
- package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +18 -116
- package/dist/types/components/eds-input-field/eds-input-field.d.ts +6 -0
- package/dist/types/components/eds-modal/eds-modal.d.ts +12 -12
- package/dist/types/components/eds-modal/eds-modal.stories.d.ts +17 -0
- package/dist/types/components/eds-progress-bar/eds-progress-bar.d.ts +3 -3
- package/dist/types/components/eds-progress-bar/eds-progress-bar.stories.d.ts +3 -0
- package/dist/types/components/eds-section/eds-section-core/eds-section-core.d.ts +3 -0
- package/dist/types/components/eds-switch/eds-switch.d.ts +2 -1
- package/dist/types/components/eds-table/eds-table.stories.d.ts +0 -8
- package/dist/types/components/eds-timeline/eds-timeline.d.ts +3 -0
- package/dist/types/components/eds-toast/eds-toast.d.ts +3 -2
- package/dist/types/components/eds-tooltip/eds-tooltip.d.ts +2 -36
- package/dist/types/components.d.ts +226 -256
- package/dist/types/shared-ui/eds-feedback/eds-feedback.d.ts +4 -0
- package/dist/types/shared-ui/eds-feedback/eds-feedback.stories.d.ts +8 -4
- package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +10 -0
- package/dist/types/shared-ui/eds-footer/eds-footer.stories.d.ts +10 -0
- package/dist/types/shared-ui/eds-form/eds-form.d.ts +1 -1
- package/dist/types/shared-ui/eds-header/eds-header.d.ts +6 -25
- package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +6 -3
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +0 -1
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.d.ts +0 -5
- package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.stories.d.ts +48 -0
- package/dist/types/shared-ui/eds-tabs/eds-tabs.stories.d.ts +0 -1
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +14 -4
- package/dist/components/eds-alert.entry.js +0 -99
- package/dist/components/eds-avatar.entry.js +0 -76
- package/dist/components/eds-block-break.entry.js +0 -16
- package/dist/components/eds-button.entry.js +0 -228
- package/dist/components/eds-card-desc.entry.js +0 -22
- package/dist/components/eds-card-project.entry.js +0 -64
- package/dist/components/eds-card-wrapper.entry.js +0 -28
- package/dist/components/eds-footer.entry.js +0 -42
- package/dist/components/eds-header.entry.js +0 -76
- package/dist/components/eds-icon-arrow-diagonal.entry.js +0 -14
- package/dist/components/eds-icon-arrow-right.entry.js +0 -14
- package/dist/components/eds-icon-bluesky.entry.js +0 -14
- package/dist/components/eds-icon-bookmark.entry.js +0 -14
- package/dist/components/eds-icon-chevron-down.entry.js +0 -14
- package/dist/components/eds-icon-chevron-left.entry.js +0 -14
- package/dist/components/eds-icon-chevron-right.entry.js +0 -14
- package/dist/components/eds-icon-chevron-up.entry.js +0 -14
- package/dist/components/eds-icon-close.entry.js +0 -14
- package/dist/components/eds-icon-copy.entry.js +0 -14
- package/dist/components/eds-icon-eu.entry.js +0 -14
- package/dist/components/eds-icon-external.entry.js +0 -14
- package/dist/components/eds-icon-facebook.entry.js +0 -14
- package/dist/components/eds-icon-gitlab.entry.js +0 -14
- package/dist/components/eds-icon-linkedin.entry.js +0 -14
- package/dist/components/eds-icon-loader.entry.js +0 -14
- package/dist/components/eds-icon-mastodon.entry.js +0 -14
- package/dist/components/eds-icon-menu.entry.js +0 -14
- package/dist/components/eds-icon-minus.entry.js +0 -14
- package/dist/components/eds-icon-more.entry.js +0 -14
- package/dist/components/eds-icon-paper.entry.js +0 -14
- package/dist/components/eds-icon-plus.entry.js +0 -14
- package/dist/components/eds-icon-portal.entry.js +0 -14
- package/dist/components/eds-icon-private.entry.js +0 -14
- package/dist/components/eds-icon-public.entry.js +0 -14
- package/dist/components/eds-icon-search.entry.js +0 -14
- package/dist/components/eds-icon-star.entry.js +0 -14
- package/dist/components/eds-icon-success.entry.js +0 -14
- package/dist/components/eds-icon-thumbs-down.entry.js +0 -14
- package/dist/components/eds-icon-thumbs-up.entry.js +0 -14
- package/dist/components/eds-icon-tutorial.entry.js +0 -14
- package/dist/components/eds-icon-twitter.entry.js +0 -14
- package/dist/components/eds-icon-unknown.entry.js +0 -14
- package/dist/components/eds-icon-updown.entry.js +0 -14
- package/dist/components/eds-icon-user.entry.js +0 -14
- package/dist/components/eds-icon-youtube.entry.js +0 -14
- package/dist/components/eds-input-footer.entry.js +0 -17
- package/dist/components/eds-input-label.entry.js +0 -16
- package/dist/components/eds-input-select.entry.js +0 -97
- package/dist/components/eds-link.entry.js +0 -217
- package/dist/components/eds-login.entry.js +0 -2052
- package/dist/components/eds-modal.entry.js +0 -104
- package/dist/components/eds-progress-bar.entry.js +0 -24
- package/dist/components/eds-section-core.entry.js +0 -19
- package/dist/components/eds-steps-v2.entry.js +0 -91
- package/dist/components/eds-switch.entry.js +0 -33
- package/dist/components/eds-tabs.entry.js +0 -125
- package/dist/components/eds-tag.entry.js +0 -44
- package/dist/components/eds-timeline.entry.js +0 -58
- package/dist/components/eds-tooltip.entry.js +0 -104
- package/dist/components/eds-user.entry.js +0 -40
- package/dist/components/gradient-secondary-palette.entry.js +0 -75
- package/dist/components/gradient-support-palette.entry.js +0 -59
- package/dist/components/incorrect-use-of-colors.entry.js +0 -46
- package/dist/components/index-9d277061.js +0 -3023
- package/dist/components/shadow-css-423dab2c.js +0 -332
- package/dist/components/token-shadows.entry.js +0 -30
- package/dist/components/token-spacing.entry.js +0 -12
- package/dist/types/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.d.ts +0 -23
- package/dist/types/shared-ui/eds-login/eds-login.d.ts +0 -67
- package/dist/types/shared-ui/eds-login/eds-login.stories.d.ts +0 -33
- /package/dist/components/{index-144c9ae8.js → index2.js} +0 -0
- /package/dist/components/{sharedUtils-6a231dd4.js → sharedUtils.js} +0 -0
- /package/dist/{components → esm}/app-globals-0f993ce5.js +0 -0
- /package/dist/types/components/eds-section/eds-section-core/{eds-section-core.stories.d.ts → eds-section-core.donotstories.d.ts} +0 -0
- /package/dist/types/components/eds-timeline/{eds-timeline.stories.d.ts → eds-timeline.donot-stories.d.ts} +0 -0
- /package/dist/types/{components → shared-ui}/eds-steps/eds-steps.d.ts +0 -0
- /package/dist/types/{components → shared-ui}/eds-steps/eds-steps.stories.d.ts +0 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
const primary = [
|
|
3
|
+
{
|
|
4
|
+
background: '#9CE142'
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
background: '#00C959'
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
background: '#00A595'
|
|
11
|
+
}
|
|
12
|
+
];
|
|
13
|
+
const support = [
|
|
14
|
+
{
|
|
15
|
+
background: '#141414'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
background: '#383838'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
background: '#CCCCCC'
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
background: '#E6E6E6'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
background: '#FFFFFF'
|
|
28
|
+
}
|
|
29
|
+
];
|
|
30
|
+
const blue = [
|
|
31
|
+
{
|
|
32
|
+
background: '#3FA9F5'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
background: '#0644F4'
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
const purple = [
|
|
39
|
+
{
|
|
40
|
+
background: '#C461FF'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
background: '#5D3DF9'
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
const red = [
|
|
47
|
+
{
|
|
48
|
+
background: '#FFA543'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
background: '#FF4D68'
|
|
52
|
+
}
|
|
53
|
+
];
|
|
54
|
+
/**
|
|
55
|
+
* `CorrectUseOfColors` is a component that combines the primary palette and support palette
|
|
56
|
+
* to display the correct use of colors.
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
export class CorrectUseOfColors {
|
|
62
|
+
render() {
|
|
63
|
+
return (h("div", { key: 'eb7fe8a13ba44aa0b8327fd042177817577aa9ca', class: "container" }, h("p", { key: 'b9e731a3184cc72a0dd4c31bc207185789b1c747', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: '9ac1f24993a47743b62504a9ac5cfaa67ea94867', 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: '82eb7946b881f69719a7785ded23355e34aa3023', 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: 'a1bde4ba25a05fdc3a43bd008748f0ae74224142', class: "flex" }, h("div", { key: 'e6399a78c1d41e79041ad0e91356468e9e94a004', class: "w-full" }, h("ul", { key: '438acfe268f49ca5b77c20af74213283ac68e851', 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: '41cf8ea398e273788e32889e705debd21f102a9f', class: "w-full" }, h("ul", { key: 'b200fe46847e64efee26fb863151f08e2a175220', 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: '9fe567482bfbad7fc0bc4083756622259fd83e45', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: 'bd26b1b4c4ac1082eef246f9d1b6b13245b1d69f', 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: 'b3a9897628cdcb7086397d7f7662591da4debdd4', 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: 'fc54b467ddd6faa62e81fe56170f0ed43fccd52e', class: "flex" }, h("div", { key: '930d475074e002439847f152d95ed1f764536791', class: "w-full" }, h("ul", { key: 'ad8085fd5a4dcc8cd4cc2a4c0d6522673b0f69c3', 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: 'c9d7c736f8248fa7f1b689ec7a8eed24853de384', class: "w-full" }, h("ul", { key: '9191d41ef9f3947f91420e925f4ae5029aaf0e73', 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: 'ed9e3ebc14a1ecd0744d8adf6b58df54a325565f', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: '5104e373031bc9381db7e274fba47f3d36d8fc14', 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: '2d0ff6d98eaf2b195725eb87b1cf8c264071787c', 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: 'a660e8df517ab4c1b4b47fa777bd0e5c06156161', class: "flex" }, h("div", { key: '7346d762b781cf27fdf784a1100608b74a28eaca', class: "w-full" }, h("ul", { key: '91a7f50ffb513045c7d52987ecd33f3707332083', 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: 'e4d61bb10342c7c27e19a5fc43a3823e2ac36db7', class: "w-full" }, h("ul", { key: 'ab40fb356845c3c15255a591299d3aa3a4bcd415', 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: '15c61baa18cac41eefdfd631e6e62d8ad665fd00', class: "f-body-01" }, "This guide demonstrates the correct usage of the", h("eds-link", { key: '8abd1e309700248f865906e667ffdb2db172c923', 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: '9cc22cdc51c4e6b5ea28afd62e5b7fe10b6f57bf', 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: '8cb15f36de63b4425be410d395b56829427a2b13', class: "flex" }, h("div", { key: 'e47f595ad0af29333fdb3090eae08b65b908e87d', class: "w-full" }, h("ul", { key: '27b7f0ee1650d169f17bee8a776ced534c2f8b37', 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: '40ed8de907089964f83ce2ebd2734b00ba378847', class: "w-full" }, h("ul", { key: '8b1bdd17aa9e0c60484120b58e67ec3d09ddc533', 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
|
+
}
|
|
65
|
+
static get is() { return "correct-use-of-colors"; }
|
|
66
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
const primary = [
|
|
3
|
+
{
|
|
4
|
+
background: '#9CE142'
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
background: '#00C959'
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
background: '#00A595'
|
|
11
|
+
}
|
|
12
|
+
];
|
|
13
|
+
const purple = [
|
|
14
|
+
{
|
|
15
|
+
background: '#C461FF'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
background: '#5D3DF9'
|
|
19
|
+
}
|
|
20
|
+
];
|
|
21
|
+
const red = [
|
|
22
|
+
{
|
|
23
|
+
background: '#FFA543'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
background: '#FF4D68'
|
|
27
|
+
}
|
|
28
|
+
];
|
|
29
|
+
const incorrect = [
|
|
30
|
+
{
|
|
31
|
+
background: '#3FA9F5'
|
|
32
|
+
},
|
|
33
|
+
...purple,
|
|
34
|
+
...red
|
|
35
|
+
];
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
export class IncorrectUseOfColors {
|
|
40
|
+
render() {
|
|
41
|
+
return (h("div", { key: '3503dcc0e2d3f5b08eec400e74484e5725d7b4af', class: "container" }, h("div", { key: '657857e8826e60c498450326306234c59b4e770b', class: "mb-8" }, h("eds-alert", { key: '88512240affc65314593f8573b3a13f58fb2806d', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" })), h("div", { key: '8614d445187d2614e5833b8c89c66b178762574e', class: "flex" }, h("div", { key: '1b36d52dbcbb65e1edb4513899ec898d691193c0', class: "w-full" }, h("ul", { key: '13fb2eaca0ad3fb93487f6c0c976142a18870b4d', 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: 'adec93113e4c02168906e1da65f48c20e9b2c7dc', class: "w-full" }, h("ul", { key: 'd0b43589866f53c92084b270afb3571ed2723fc8', 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
|
+
}
|
|
43
|
+
static get is() { return "incorrect-use-of-colors"; }
|
|
44
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { DocsOverview } from "./functional/overview";
|
|
3
|
+
import { DocsInstallation } from "./functional/installation";
|
|
4
|
+
import { DocsReact } from "./functional/react";
|
|
5
|
+
import { DocsVue } from "./functional/vue";
|
|
6
|
+
import { DocsAngular } from "./functional/angular";
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export class ComponentsSection {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.tabIndex = undefined;
|
|
13
|
+
}
|
|
14
|
+
renderContent() {
|
|
15
|
+
switch (this.tabIndex) {
|
|
16
|
+
case 0:
|
|
17
|
+
return h(DocsOverview, null);
|
|
18
|
+
case 1:
|
|
19
|
+
return h(DocsInstallation, null);
|
|
20
|
+
case 2:
|
|
21
|
+
return h(DocsReact, null);
|
|
22
|
+
case 3:
|
|
23
|
+
return h(DocsVue, null);
|
|
24
|
+
case 4:
|
|
25
|
+
return h(DocsAngular, null);
|
|
26
|
+
default:
|
|
27
|
+
return h("p", null, "Content not available.");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return h("div", { key: 'd68c9ede251456d88ef2a033691927c87c8ec163', class: "container" }, this.renderContent());
|
|
32
|
+
}
|
|
33
|
+
static get is() { return "components-section"; }
|
|
34
|
+
static get properties() {
|
|
35
|
+
return {
|
|
36
|
+
"tabIndex": {
|
|
37
|
+
"type": "number",
|
|
38
|
+
"mutable": false,
|
|
39
|
+
"complexType": {
|
|
40
|
+
"original": "number",
|
|
41
|
+
"resolved": "number",
|
|
42
|
+
"references": {}
|
|
43
|
+
},
|
|
44
|
+
"required": false,
|
|
45
|
+
"optional": false,
|
|
46
|
+
"docs": {
|
|
47
|
+
"tags": [],
|
|
48
|
+
"text": "Active tab index to determine the content to display"
|
|
49
|
+
},
|
|
50
|
+
"attribute": "tab-index",
|
|
51
|
+
"reflect": false
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export const DocsAngular = () => (h("div", null, h("h2", null, "Angular Wrappers"), h("p", null, "To use the EBRAINS web components in an Angular Application, simple install the package below and check out the examples. The Angular Stencil output type used for this package = `standalone`."), h("eds-code-block", { code: "npm install @ebrains/angular", language: "javascript", "copy-label": "Copy Code" }), h("p", null, "Install the components dependency as this important for the angular package to work properly."), h("eds-code-block", { code: "npm install @ebrains/components", language: "javascript", "copy-label": "Copy Code" }), h("p", null, "Define the custom elements"), h("eds-code-block", { code: "import { defineCustomElements } from '@ebrains/components/loader';\ndefineCustomElements();", language: "javascript", "copy-label": "Copy Code" }), h("eds-section-core", { "section-title": "Example Angular App", "heading-level": "h3" }, h("eds-code-block", { code: '\n<div class="container">\n <eds-breadcrumb\n intent="tertiary"\n items="[\n { "label": "Home", "url": "#" },\n { "label": "Products", "url": "#" },\n ]">\n </eds-breadcrumb>\n <eds-footer></eds-footer>\n</div>', language: "javascript", "copy-label": "Copy Code" }))));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export const DocsInstallation = () => (h("div", null, h("p", null, "Before proceeding, ensure that Node.js is installed on your machine\u2014you can download the latest version from the official website. If your project doesn\u2019t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."), h("div", { class: "my-8" }, h("eds-code-block", { code: "npm install @ebrains/components", language: "html", "copy-label": "Copy Code" })), h("div", { class: "my-8" }, h("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" })), h("div", { class: "my-8" }, h("eds-code-block", { code: "npm install @ebrains/vue", language: "html", "copy-label": "Copy Code" })), h("div", { class: "my-8" }, h("eds-code-block", { code: "npm install @ebrains/angular", language: "html", "copy-label": "Copy Code" })), h("div", { class: "my-8" }, h("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })), h("div", { class: "my-8" }, h("eds-code-block", { code: "npm install @ebrains/svgs", language: "html", "copy-label": "Copy Code" }))));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export const DocsOverview = () => (h("div", { class: "static-content container" }, h("h2", null, "Load the module"), h("p", null, "Integrating the EBRAINS UI Components to a project ", h("b", null, "with or without a JavaScript framework"), " is straight forward. If you\u2019re working on a simple HTML page, you can start using the components immediately by adding the tags below to the ", h("code", null, "head"), "."), h("eds-code-block", { code: "<script type='module'>\n import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js'; \n // Define custom elements\n defineCustomElements(window);\n</script>", language: "javascript", "copy-label": "Copy Code" }), h("p", null, "This snippet is part of the Stencil component loader system. Under the hood, it does the following:"), h("eds-steps", { steps: [
|
|
3
|
+
{
|
|
4
|
+
title: 'Import the Loader Module',
|
|
5
|
+
content: 'The script imports the defineCustomElements function from the Stencil-generated loader module hosted at a CDN. This module contains the registration logic for all your custom components.'
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
title: 'Register Custom Elements',
|
|
9
|
+
content: 'Calling defineCustomElements(window) loops through the available components and registers each one with the browser using customElements.define(). This makes your custom elements available in the DOM.'
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: 'Lazy Loading in Action',
|
|
13
|
+
content: "Although all components are registered on startup, their implementation code is lazy-loaded. This means a component's code is only fetched when it is first used, optimizing the initial load time."
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
title: 'Optimized Performance',
|
|
17
|
+
content: 'By registering components early and lazy-loading their implementations, the script helps maintain a fast startup while ensuring that all custom elements are ready for use when needed.'
|
|
18
|
+
}
|
|
19
|
+
] }), h("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"), h("eds-code-block", { code: '<eds-button \n label="my bytton" \n intent="primary">\n</eds-button>', language: "html", "copy-label": "Copy Code" }), h("h2", null, "Load the variables and styles"), h("p", null, "To directly use only the produced variables (colors, breakpoints, typography) add the tag below to the", ' ', h("code", null, "head"), ". This approach is recommended when you\u2019re working solely with the web components and want minimal integration. That said, the components are configured to require only these CSS variables and nothing more."), h("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/vars.css"/>', language: "css", "copy-label": "Copy Code" }), h("p", null, "To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the", ' ', h("code", null, "head"), ". Use this when you want quick access to ready-made utilities for building your own components or applications and you do not wish to dive deep to css configurations."), h("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }), h("p", null, "Note that, loading either the variables or the predefined CSS framework above,", ' ', h("b", null, "automatically loads the fonts so you can skip loading them separately"), ". If you wish, however, to load the fonts, add the tag below to the ", h("code", null, "head")), h("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/base/fonts.css"/>', language: "css", "copy-label": "Copy Code" })));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export const DocsReact = () => (h("div", null, h("h2", null, "React Wrappers"), h("p", null, "To use the EBRAINS web components in a React Application, simple install the package below and check out the examples"), h("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" }), h("eds-section-core", { "section-title": "Example React App", "heading-level": "h3" }, h("p", null, "This code displays a Stencil-based splash screen that stays visible until an initialization promise resolves (or errors), then hides itself and reveals the main React app content."), h("eds-code-block", { code: "\nimport React, { useMemo, useState } from 'react';\nimport {\n EdsHeader\n EdsSplashScreen,\n EdsMatomoNotice,\n EdsSteps\n} from '@ebrains/react';\nimport './app.css';\n\n// simulate 2s\nfunction fakeInit(): Promise<void> {\n return new Promise(resolve => setTimeout(resolve, 2000));\n}\n\nexport function App() {\n // 1) create init promise\n const initPromise = useMemo(() => fakeInit(), []);\n\n // 2) is splash still visible\n const [splashVisible, setSplashVisible] = useState(true);\n const [initError, setInitError] = useState<string | null>(null);\n\n // 3) show the UI after the splash has hidden\n const showApp = !splashVisible && !initError;\n\n return (\n <div>\n {splashVisible && (\n <EdsSplashScreen\n inverse={false}\n initPromise={initPromise}\n onSplash={(e: CustomEvent) => {\n if (e.detail.type === 'hidden') {\n setSplashVisible(false);\n } else if (e.detail.type === 'error') {\n setInitError(e.detail.message);\n setSplashVisible(false);\n }\n }}\n />\n )}\n\n {initError && (\n <div className='error'>\n Failed to initialize: {initError}\n </div>\n )}\n\n {/* Show App only when ready */}\n {showApp && (\n <>\n <EdsHeader></EdsHeader>\n <EdsSteps\n steps={[\n {\n title: 'Introduction',\n content: 'Begin by familiarizing yourself with the overall process.'\n },\n {\n title: 'Process Overview',\n content: 'Review the detailed steps and understand the workflow.'\n }\n ]}\n type='linear'\n />\n\n <EdsMatomoNotice />\n\n <div id='root'></div>\n </>\n )}\n </div>\n );\n}\nexport default App;\n", language: "javascript", "copy-label": "Copy Code" }))));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export const DocsVue = () => (h("div", null, h("h2", null, "Vue Wrappers"), h("p", null, "To use the EBRAINS web components in a Vue Application, simple install the package below and check out the examples."), h("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }), h("h2", null, "Passing Properties to Custom Elements Using the ", h("b", null, ".prop"), " Modifier in Vue Wrappers"), h("p", null, "When using Vue wrappers for Stencil components (or any custom elements), you might encounter issues with property names being altered due to HTML\u2019s attribute handling. By default, Vue binds values as HTML attributes, and HTML attributes are case-insensitive. This means that camelCase property names can be transformed into lowercase strings, which can prevent your component from receiving the correct data."), h("h3", null, "How to Use the ", h("b", null, ".prop"), " Modifier"), h("p", null, "When using Vue wrappers, you can pass properties with the .prop modifier by adding it to your binding expression. Here\u2019s an example of how to do it:"), h("div", { class: "my-8" }, h("eds-alert", { message: "This may lead to issues because Vue binds these as attributes .", intent: "error" })), h("eds-code-block", { code: '<EdsAlert\n message="This is a default informational alert."\n intent="default"\n :pressableLabel="Press Me"\n :pressableUrl="https://ebrains.eu"\n></EdsAlert>', language: "javascript", "copy-label": "Copy Code" }), h("div", { class: "my-8" }, h("eds-alert", { message: "Use the .prop modifier to ensure properties are passed correctly.", intent: "default" })), h("eds-code-block", { code: '<EdsAlert\n message="This is a default informational alert."\n intent="default"\n :pressableLabel.prop="Press Me"\n :pressableUrl.prop="https://ebrains.eu"\n></EdsAlert>', language: "javascript", "copy-label": "Copy Code" }), h("p", null, "Using the ", h("b", null, ".prop"), " modifier in Vue ensures that the data you pass to your custom elements is received as intended. It prevents Vue (and the browser) from transforming camelCase property names into lowercase attributes, thereby maintaining the correct data mapping in your Stencil components."), h("eds-section-core", { "section-title": "Example Vue App", "heading-level": "h3" }, h("eds-code-block", { code: '\n<template>\n <div>\n <EdsHeader></EdsHeader>\n <!-- render the splash until we manually hide it -->\n <EdsSplashScreen inverse="false" />\n\n <!-- then show main UI -->\n <div v-if="!splashVisible" class="container my-16">\n <EdsSteps \n :steps="JSON.stringify(stepsdata)"\n type="linear"\n />\n </div>\n </div>\n</template>\n\n<script>\nimport { EdsSplashScreen, EdsSteps, EdsHeader } from "@ebrains/vue";\n\nexport default {\n name: "App",\n components: { EdsHeader, EdsSplashScreen, EdsSteps },\n data() {\n return {\n stepsdata: [\n { title: "Introduction", content: "Begin by familiarizing yourself with the overall process." },\n { title: "Process Overview", content: "Review the detailed steps and understand the workflow." }\n ],\n splashVisible: true\n };\n },\n methods: {\n delay(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n },\n async initialize() {\n try {\n // simulate your init work\n await this.delay(2000);\n\n // fire the built-in event that EdsSplashScreen listens for\n window.dispatchEvent(new Event("hideSplash"));\n } catch (e) {\n console.error("Init error", e);\n window.dispatchEvent(new Event("hideSplash"));\n } finally {\n // show the rest of the app\n this.splashVisible = false;\n }\n }\n },\n mounted() {\n this.initialize();\n }\n};\n</script>\n', language: "javascript", "copy-label": "Copy Code" }))));
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export class DocsContent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.tabIndex = undefined;
|
|
8
|
+
}
|
|
9
|
+
renderContent() {
|
|
10
|
+
switch (this.tabIndex) {
|
|
11
|
+
case 0:
|
|
12
|
+
return h("token-list", { show: "background" });
|
|
13
|
+
case 1:
|
|
14
|
+
return h("token-list", { show: "text" });
|
|
15
|
+
case 2:
|
|
16
|
+
return h("token-list", { show: "border" });
|
|
17
|
+
case 3:
|
|
18
|
+
return h("token-radii", null);
|
|
19
|
+
case 4:
|
|
20
|
+
return h("token-list", { show: "outline" });
|
|
21
|
+
case 5:
|
|
22
|
+
return h("token-shadows", null);
|
|
23
|
+
default:
|
|
24
|
+
return h("p", null, "Content not available.");
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
return h("div", { key: '7d86f29bb4a82aec564b0600749d97aedc58925d', class: "container" }, this.renderContent());
|
|
29
|
+
}
|
|
30
|
+
static get is() { return "docs-tokens"; }
|
|
31
|
+
static get properties() {
|
|
32
|
+
return {
|
|
33
|
+
"tabIndex": {
|
|
34
|
+
"type": "number",
|
|
35
|
+
"mutable": false,
|
|
36
|
+
"complexType": {
|
|
37
|
+
"original": "number",
|
|
38
|
+
"resolved": "number",
|
|
39
|
+
"references": {}
|
|
40
|
+
},
|
|
41
|
+
"required": false,
|
|
42
|
+
"optional": false,
|
|
43
|
+
"docs": {
|
|
44
|
+
"tags": [],
|
|
45
|
+
"text": "Active tab index to determine the content to display"
|
|
46
|
+
},
|
|
47
|
+
"attribute": "tab-index",
|
|
48
|
+
"reflect": false
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import colors from "../../../../../../../../packages/assets/tokens/colors"; // Adjust the path as needed
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export class TokenList {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.show = undefined;
|
|
9
|
+
}
|
|
10
|
+
getTextColor(value) {
|
|
11
|
+
if (value.startsWith('rgba') || value.startsWith('rgb')) {
|
|
12
|
+
const rgba = value
|
|
13
|
+
.replace(/rgba?\(/, '')
|
|
14
|
+
.replace(')', '')
|
|
15
|
+
.split(',')
|
|
16
|
+
.map((v) => parseFloat(v.trim()));
|
|
17
|
+
const r = rgba[0];
|
|
18
|
+
const g = rgba[1];
|
|
19
|
+
const b = rgba[2];
|
|
20
|
+
const brightness = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
|
|
21
|
+
return brightness > 0.5 ? 'text-default' : 'text-inverse';
|
|
22
|
+
}
|
|
23
|
+
else if (value.startsWith('#')) {
|
|
24
|
+
const color = value.replace('#', '');
|
|
25
|
+
const r = parseInt(color.substring(0, 2), 16);
|
|
26
|
+
const g = parseInt(color.substring(2, 4), 16);
|
|
27
|
+
const b = parseInt(color.substring(4, 6), 16);
|
|
28
|
+
const brightness = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
|
|
29
|
+
return brightness > 0.5 ? 'text-default' : 'text-inverse';
|
|
30
|
+
}
|
|
31
|
+
return 'text-default';
|
|
32
|
+
}
|
|
33
|
+
resolveColor(value) {
|
|
34
|
+
if (colors.tokens[value]) {
|
|
35
|
+
return colors.tokens[value];
|
|
36
|
+
}
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
renderSection(sectionName, sectionContent) {
|
|
40
|
+
if (sectionName === 'tokens') {
|
|
41
|
+
const groupedTokens = this.groupTokensByCategory(sectionContent);
|
|
42
|
+
return Object.entries(groupedTokens).map(([, tokens]) => (h("ul", { class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, tokens.map((token) => {
|
|
43
|
+
const tokenName = Object.keys(token)[0];
|
|
44
|
+
const tokenValue = this.resolveColor(token[tokenName]);
|
|
45
|
+
const textColorClass = this.getTextColor(tokenValue);
|
|
46
|
+
return (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height items-center justify-between p-16 hidden lg:flex", style: { backgroundColor: tokenValue } }, h("span", { class: `${textColorClass} f-body-02` }, tokenName), h("div", { class: "inline-flex" }, h("eds-code-block", { code: tokenValue, language: "hex", class: "min-w-[210px] mr-4" }), h("eds-code-block", { language: "css", code: `var(--${tokenName})`, class: "min-w-[210px]" }))), h("div", { class: "effect-height items-center justify-between p-16 block lg:hidden", style: { backgroundColor: tokenValue } }, h("span", { class: `${textColorClass} f-body-02` }, tokenName), h("div", { class: "inline block" }, h("eds-code-block", { code: tokenValue, class: "min-w-[210px] mb-4" }), h("eds-code-block", { code: `var(--${tokenName})`, class: "min-w-[210px]" })))));
|
|
47
|
+
}))));
|
|
48
|
+
}
|
|
49
|
+
return (h("ul", { class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(sectionContent).map(([key, value]) => {
|
|
50
|
+
const resolvedValue = this.resolveColor(value);
|
|
51
|
+
const textColorClass = this.getTextColor(resolvedValue);
|
|
52
|
+
const style = resolvedValue.startsWith('#') || resolvedValue.startsWith('rgb')
|
|
53
|
+
? { backgroundColor: resolvedValue }
|
|
54
|
+
: { border: `2px solid ${resolvedValue}` };
|
|
55
|
+
return (h("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col" }, h("div", { class: "effect-height block lg:flex items-center justify-between p-16", style: style }, h("div", { class: "w-full flex" }, h("span", { class: `${textColorClass} mr-auto font-bold` }, key), h("span", { class: `${textColorClass} ml-auto mr-4 font-bold` }, value)), h("span", { class: `${textColorClass}` }, sectionName === 'background' ? (h("eds-code-block", { code: `bg-${key}`, class: "min-w-[210px] mr-4" })) : (h("eds-code-block", { code: `${sectionName}-${key}`, class: sectionName === 'border' ? 'min-w-[250px] mr-4' : 'min-w-[210px] mr-4' }))))));
|
|
56
|
+
})));
|
|
57
|
+
}
|
|
58
|
+
groupTokensByCategory(tokens) {
|
|
59
|
+
const grouped = {};
|
|
60
|
+
Object.entries(tokens).forEach(([key, value]) => {
|
|
61
|
+
const category = key.split('-')[0];
|
|
62
|
+
if (!grouped[category]) {
|
|
63
|
+
grouped[category] = [];
|
|
64
|
+
}
|
|
65
|
+
grouped[category].push({ [key]: value });
|
|
66
|
+
});
|
|
67
|
+
return grouped;
|
|
68
|
+
}
|
|
69
|
+
render() {
|
|
70
|
+
// Check if `show` prop is provided; if not, display all sections
|
|
71
|
+
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
72
|
+
return (h("section", { key: '1c949c3777a159f1a52baa4f27d1acf07bf86114', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
73
|
+
// Only render sections that exist in `colors`
|
|
74
|
+
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
75
|
+
}
|
|
76
|
+
static get is() { return "token-list"; }
|
|
77
|
+
static get properties() {
|
|
78
|
+
return {
|
|
79
|
+
"show": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"mutable": false,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "string",
|
|
84
|
+
"resolved": "string",
|
|
85
|
+
"references": {}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": false,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": ""
|
|
92
|
+
},
|
|
93
|
+
"attribute": "show",
|
|
94
|
+
"reflect": false
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { html } from "lit-html";
|
|
2
|
+
import colors from "../../../../../../../../packages/assets/tokens/colors"; // Adjust the path as needed
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Tokens/Colors',
|
|
5
|
+
component: 'token-list',
|
|
6
|
+
argTypes: {
|
|
7
|
+
section: {
|
|
8
|
+
control: 'select',
|
|
9
|
+
options: Object.keys(colors) // Sections like 'tokens', 'border', 'text', etc.
|
|
10
|
+
},
|
|
11
|
+
category: {
|
|
12
|
+
control: 'select',
|
|
13
|
+
options: [] // Will be dynamically set based on selected section
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
args: {
|
|
17
|
+
section: 'tokens',
|
|
18
|
+
category: 'grey' // Default category
|
|
19
|
+
},
|
|
20
|
+
parameters: {
|
|
21
|
+
actions: {
|
|
22
|
+
handles: ['section', 'category']
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const Template = ({ section, category }) => {
|
|
27
|
+
// Render function dynamically creates the categories based on section
|
|
28
|
+
if (section === 'tokens') {
|
|
29
|
+
const groupedTokens = Object.entries(colors.tokens).filter(([key]) => key.startsWith(`${category}-`));
|
|
30
|
+
return html `
|
|
31
|
+
<token-list .items=${JSON.stringify(groupedTokens.map(([key, value]) => ({ [key]: value })))}></token-list>
|
|
32
|
+
`;
|
|
33
|
+
}
|
|
34
|
+
const sectionContent = colors[section];
|
|
35
|
+
const filteredItems = Object.entries(sectionContent).filter(([key]) => key.startsWith(category));
|
|
36
|
+
return html `
|
|
37
|
+
<token-list .items=${JSON.stringify(filteredItems.map(([key, value]) => ({ [key]: value })))}></token-list>
|
|
38
|
+
`;
|
|
39
|
+
};
|
|
40
|
+
export const Tokens = Template.bind({});
|
|
41
|
+
Tokens.args = {
|
|
42
|
+
section: 'tokens',
|
|
43
|
+
category: 'grey'
|
|
44
|
+
};
|
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
md: '12px',
|
|
8
|
-
lg: '16px',
|
|
9
|
-
pill: '100px'
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const TokenRadii = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
registerInstance(this, hostRef);
|
|
15
|
-
}
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import radii from "../../../../../../../../packages/assets/tokens/radii"; // Adjust the path as needed
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export class TokenRadii {
|
|
16
7
|
render() {
|
|
17
|
-
return (h("section", { key: '
|
|
8
|
+
return (h("section", { key: '07f9d8424b849e486379f81764ad946b0b632fa7', class: "w-full mt-28" }, h("ul", { key: 'ec8cb4aaad010b24dc82b556fbc143c52f9824c2', 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" }))))))));
|
|
18
9
|
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { TokenRadii as token_radii };
|
|
10
|
+
static get is() { return "token-radii"; }
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import ratios from "../../../../../../../../packages/assets/tokens/ratios"; // Adjust the path as needed
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export class TokenRatios {
|
|
7
|
+
render() {
|
|
8
|
+
return (h("section", { key: 'a68e1101a6dfd99b0b48540f96792622b9837efc', class: "w-full" }, h("eds-section-core", { key: '1f32847d415fad34b9add511d7bc49907f351fe9', tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, h("ul", { key: 'e1dc4d7772bc3cd009458e781f5de0c078f686c0', 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
|
+
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
10
|
+
width: '100%', // Full width to show the aspect ratio correctly
|
|
11
|
+
maxWidth: '300px'
|
|
12
|
+
} }, h("span", { class: "text-default font-bold mr-auto" }, "aspect-", key), h("span", { class: "mt-2 text-sm ml-auto" }, value)))))))));
|
|
13
|
+
}
|
|
14
|
+
static get is() { return "token-ratios"; }
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import shadowTokens from "../../../../../../../../packages/assets/tokens/shadows"; // Adjust the path as needed
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export class TokenShadows {
|
|
7
|
+
render() {
|
|
8
|
+
return (h("section", { key: '50f470109606938085ed98480892d94ebcc2878c', class: "w-full mt-28" }, h("ul", { key: 'e9c982816b9117eacd1a9f721e7428f317087211', 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
|
+
}
|
|
10
|
+
static get is() { return "token-shadows"; }
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export class TokenSpacing {
|
|
6
|
+
render() {
|
|
7
|
+
return (h("div", { key: 'ad89d21ec01f11c77d85853f7c0dbefd8ea9f07f', class: "w-full" }, h("ul", { key: '6108fb2870c358de8e5c48e6d14f6c1e76af856f', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: 'cd0d1986b416f12164b8d0458262987a445662ca', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: 'f2cfd77fcba601b89605dabf109f599816bb118e', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: '69e4cb5660f5c51d2b9c1ba30a38f3b7decacc58', class: "spacing-sample m-16 bg-strong" }, h("span", { key: '70a07326b0a95655db3aad083637499f5ed4aa73', class: "f-body-01 text-inverse" }, "Margin: 1rem / m-16")))), h("li", { key: '97b8c127e9bbe9af4ec8f6876ebae3f87a52d130', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: '58537d6aa824b489ae9c5150400af21f11f1f447', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: '3f2913d232cb9de1b678b7f7903bef0642ef42df', class: "spacing-sample ml-64 bg-strong" }, h("span", { key: 'fe56d1a501dc219a1bac474b674586609499f3de', class: "f-body-01 text-inverse" }, "Margin Left: 4rem / ml-64")))), h("li", { key: 'e2dee648fd4bce503414d76f3afe64655285523c', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: 'e788fa22248ac92fb8bc89566c5b8a77cf14578f', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: '9629958b453aa831a1d871bb4e846d0926d9e57c', class: "spacing-sample mt-32 bg-strong" }, h("span", { key: '0efde7eaed0fe3e14f476617e7e9bf2e20131f2c', class: "f-body-01 text-inverse" }, "Margin Top: 2rem / mt-32")))), h("li", { key: '6dabfeb0086c784c50843abd12d5a505a56e0933', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: '164e7eec6ed3aad2847c4ede97f4bbfed34138d1', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: '9be99b05ba29204f6163df2c1522e7aa6211bd3d', class: "spacing-sample p-32 bg-strong" }, h("span", { key: 'ae0a7ea74e31ea324015b844848c3d5a68930e8d', class: "f-body-01 text-inverse" }, "Padding: 2rem / p-32")))), h("li", { key: '3804dbfb6a64a1dfd478bd0132ff83f51bcff33e', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: '75c96b0762c3fac8b4de897ab8147b2c5614a360', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: 'd00487531406fa89112bee34e05306c59dc4f497', class: "spacing-sample pt-32 bg-strong" }, h("span", { key: '8a750b7ac07739a71949b236421427b8bb05b067', class: "f-body-01 text-inverse" }, "Padding Top: 2rem / pt-32")))), h("li", { key: '5e5fe43383f13b4377aca7cfb07c97b6ac1dd79b', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { key: 'ed2ac88c543eba8c580d029ccacb1a8b26c1cae7', class: "container p-8 item-center border-2 border-soft" }, h("div", { key: 'cf9a94b61e598c0ee6da9e771717574b48264333', class: "spacing-sample pl-32 bg-strong" }, h("span", { key: 'a2d3fce66240c6b0d49d1a655c0b5a84be9c630d', class: "f-body-01 text-inverse" }, "Padding Left: 2rem / pl-32")))))));
|
|
8
|
+
}
|
|
9
|
+
static get is() { return "token-spacing"; }
|
|
10
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import typography from "../../../../../../../../packages/assets/tokens/typography"; // Adjust the path as needed
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export class TokenTypography {
|
|
7
|
+
render() {
|
|
8
|
+
return (h("section", { key: '60710505ef0a06883d83c6838b1eb246485bd548', class: "w-full" }, h("ul", { key: '3cac0e7f35f878e29ee45e21407609753099e077', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(typography.typesets)
|
|
9
|
+
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
10
|
+
.flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => (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-4 block lg:flex items-center border border-soft rounded" }, h("div", { class: "mr-auto hidden lg:block", style: {
|
|
11
|
+
fontFamily: typography.families.sans,
|
|
12
|
+
fontWeight: style.fontWeight,
|
|
13
|
+
fontSize: style.fontSize,
|
|
14
|
+
lineHeight: style.lineHeight,
|
|
15
|
+
letterSpacing: style.letterSpacing
|
|
16
|
+
} }, h("span", { class: "text-default font-bold" }, `${typeKey} (${size})`)), h("div", { class: "mr-auto block lg:hidden p-4" }, h("span", { class: "text-default f-heading-05" }, `${typeKey} (${size})`)), h("div", { class: "ml-auto" }, h("eds-code-block", { code: [
|
|
17
|
+
style.fontSize && `font-size: ${style.fontSize};`,
|
|
18
|
+
style.lineHeight && `line-height: ${style.lineHeight};`,
|
|
19
|
+
style.letterSpacing && `letter-spacing: ${style.letterSpacing};`,
|
|
20
|
+
style.fontWeight && `font-weight: ${style.fontWeight};`,
|
|
21
|
+
style.fontFamily && `font-family: ${style.fontFamily};`
|
|
22
|
+
]
|
|
23
|
+
.filter(Boolean) // Remove any falsy values (e.g., undefined, null)
|
|
24
|
+
.join('\n'), language: "css", class: "min-w-[250px] mb-4" }), h("eds-code-block", { code: `f-${typeKey}`, language: "Utility Class", class: "min-w-[250px] mb-4" }), h("eds-code-block", { code: `${size}:f-${typeKey}`, language: "Screen", class: "min-w-[250px] mb-4" }), h("eds-code-block", { code: `--var(--f-${typeKey}-fontFamily)`, class: "min-w-[250px] mb-4" }), h("eds-code-block", { code: `--var(--f-${typeKey}-fontWeight)`, class: "min-w-[250px] mb-4" }), h("eds-code-block", { code: `--var(--f-${typeKey}-fontSize)`, class: "min-w-[250px] mb-4" }), h("eds-code-block", { code: `--var(--f-${typeKey}-lineHeight)`, class: "min-w-[250px] mb-4" }), h("eds-code-block", { code: `--var(--f-${typeKey}-letterSpacing)`, class: "min-w-[250px] mb-4" }), h("eds-code-block", { code: `--sans: Inter, Helvetica, Arial, sans-serif;`, class: "min-w-[250px] mb-4" }))))))))));
|
|
25
|
+
}
|
|
26
|
+
static get is() { return "token-typography"; }
|
|
27
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export class DocsPalettes {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.tabIndex = undefined;
|
|
8
|
+
}
|
|
9
|
+
renderContent() {
|
|
10
|
+
switch (this.tabIndex) {
|
|
11
|
+
case 0:
|
|
12
|
+
return (h("div", null, h("h2", null, "Primary Palette"), h("color-primary-palette", null), h("h2", null, "Secondary Palette"), h("color-secondary-palette", null), h("h2", null, "Support Palette"), h("color-support-palette", null)));
|
|
13
|
+
case 1:
|
|
14
|
+
return (h("div", null, h("h2", null, "Primary Palette"), h("gradient-primary-palette", null), h("h2", null, "Secondary Palette"), h("gradient-secondary-palette", null), h("h2", null, "Support Palette"), h("gradient-support-palette", null)));
|
|
15
|
+
default:
|
|
16
|
+
return h("p", null, "Content not available.");
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return h("div", { key: '638d6345ed0e32bda5d350f7ee8e54055d7fe770', class: "container" }, this.renderContent());
|
|
21
|
+
}
|
|
22
|
+
static get is() { return "docs-palettes"; }
|
|
23
|
+
static get properties() {
|
|
24
|
+
return {
|
|
25
|
+
"tabIndex": {
|
|
26
|
+
"type": "number",
|
|
27
|
+
"mutable": false,
|
|
28
|
+
"complexType": {
|
|
29
|
+
"original": "number",
|
|
30
|
+
"resolved": "number",
|
|
31
|
+
"references": {}
|
|
32
|
+
},
|
|
33
|
+
"required": false,
|
|
34
|
+
"optional": false,
|
|
35
|
+
"docs": {
|
|
36
|
+
"tags": [],
|
|
37
|
+
"text": "Active tab index to determine the content to display"
|
|
38
|
+
},
|
|
39
|
+
"attribute": "tab-index",
|
|
40
|
+
"reflect": false
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|