@ebrains/components 0.2.0-alpha.0 → 0.4.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{color-3ffe3072.js → color-88793e49.js} +2 -2
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/{eds-alert_28.cjs.entry.js → eds-accordion_33.cjs.entry.js} +773 -162
- package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-section.cjs.entry.js +18 -7
- package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/eds-code-block.cjs.entry.js +48 -1
- package/dist/cjs/eds-components-section.cjs.entry.js +44 -24
- package/dist/cjs/eds-docs-palettes.cjs.entry.js +1 -1
- package/dist/cjs/eds-docs-tokens.cjs.entry.js +1 -1
- package/dist/cjs/eds-login.cjs.entry.js +1 -1
- package/dist/cjs/eds-logo-variations.cjs.entry.js +27 -0
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +1 -1
- package/dist/cjs/{eds-pagination.cjs.entry.js → eds-pagination_2.cjs.entry.js} +184 -9
- package/dist/cjs/eds-progress-bar.cjs.entry.js +29 -0
- package/dist/cjs/eds-rating.cjs.entry.js +5 -7
- package/dist/cjs/eds-svg-repository.cjs.entry.js +7 -1
- package/dist/cjs/eds-tabs-content.cjs.entry.js +3 -3
- package/dist/cjs/eds-tabs.cjs.entry.js +27 -6
- package/dist/cjs/eds-timeline.cjs.entry.js +77 -0
- package/dist/cjs/eds-tooltip.cjs.entry.js +11 -1
- package/dist/cjs/eds-trl.cjs.entry.js +51 -0
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/index-f08e4f5c.js +20 -44
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/logo-space.cjs.entry.js +1 -1
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +36 -0
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
- package/dist/cjs/token-list_3.cjs.entry.js +3 -3
- package/dist/cjs/token-ratios.cjs.entry.js +1 -1
- package/dist/cjs/token-spacing.cjs.entry.js +1 -1
- package/dist/cjs/token-typography.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/eds-accordion/eds-accordion.js +11 -20
- package/dist/collection/components/eds-alert/eds-alert.js +5 -7
- package/dist/collection/components/eds-alert/eds-alert.stories.js +4 -4
- package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
- package/dist/collection/components/eds-avatar/eds-avatar.stories.js +24 -22
- package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +14 -12
- package/dist/collection/components/eds-button/eds-button.js +3 -3
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +9 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +14 -8
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +1 -1
- package/dist/collection/components/eds-code-block/eds-code-block.js +57 -2
- package/dist/collection/components/eds-code-block/eds-code-block.stories.js +78 -0
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +11 -21
- package/dist/collection/components/eds-form/eds-form.js +41 -31
- package/dist/collection/components/eds-form/eds-form.stories.js +0 -3
- package/dist/collection/components/eds-frame/eds-frame.stories.js +19 -18
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +142 -14
- package/dist/collection/components/eds-link/eds-link.js +3 -4
- package/dist/collection/components/eds-modal/eds-modal.css +16 -0
- package/dist/collection/components/eds-modal/eds-modal.js +71 -29
- package/dist/collection/components/eds-modal/eds-modal.stories.js +34 -18
- package/dist/collection/components/eds-pagination/eds-pagination.js +13 -9
- package/dist/collection/components/eds-rating/eds-rating.js +8 -10
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.stories.js +12 -11
- package/dist/collection/components/eds-table/eds-table.css +4 -0
- package/dist/collection/components/eds-table/eds-table.js +83 -12
- package/dist/collection/components/eds-table/eds-table.stories.js +14 -93
- package/dist/collection/components/eds-timeline/eds-timeline.js +27 -16
- package/dist/collection/components/eds-toast/eds-toast.js +21 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +10 -1
- package/dist/collection/components/eds-trl/eds-trl.js +29 -22
- package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
- package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -5
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
- package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +3 -6
- package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
- package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/eds-logo-variations/eds-logo-variations.js +44 -0
- package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +7 -1
- package/dist/collection/eds-docs-ui/functional/angular.js +1 -1
- package/dist/collection/eds-docs-ui/functional/installation.js +1 -1
- package/dist/collection/eds-docs-ui/functional/overview.js +1 -1
- package/dist/collection/eds-docs-ui/functional/react.js +1 -1
- package/dist/collection/eds-docs-ui/functional/vue.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +21 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +2 -54
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +4 -13
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +4 -0
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +22 -10
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +13 -11
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +4 -3
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +77 -0
- package/dist/collection/shared-ui/eds-header/eds-header.js +9 -5
- package/dist/collection/shared-ui/eds-header/eds-header.stories.js +16 -10
- package/dist/collection/shared-ui/eds-login/eds-login.js +3 -2
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +4 -4
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +21 -0
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +29 -8
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +22 -4
- package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +2 -2
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +48 -34
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/shared-ui/eds-user/eds-user.js +12 -6
- package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -11
- package/dist/components/analytics.js +2 -2
- package/dist/components/components.css +29 -10
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/eds-accordion2.js +12 -20
- package/dist/components/eds-alert2.js +5 -7
- package/dist/components/eds-avatar2.js +1 -1
- package/dist/components/eds-block-break2.js +1 -1
- package/dist/components/eds-breadcrumb.js +14 -12
- package/dist/components/eds-button2.js +1 -1
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-generic2.js +3 -3
- package/dist/components/eds-card-section.js +18 -7
- package/dist/components/eds-card-tags.js +1 -1
- package/dist/components/eds-card-title2.js +1 -1
- package/dist/components/eds-card-wrapper.js +1 -1
- package/dist/components/eds-code-block2.js +48 -1
- package/dist/components/eds-components-section.js +44 -24
- package/dist/components/eds-docs-palettes.js +1 -1
- package/dist/components/eds-docs-tokens.js +1 -1
- package/dist/components/eds-dropdown2.js +12 -21
- package/dist/components/eds-footer2.js +1 -1
- package/dist/components/eds-form.js +37 -12
- package/dist/components/eds-header.js +6 -2
- package/dist/components/eds-input-select2.js +70 -2
- package/dist/components/eds-link2.js +3 -4
- package/dist/components/eds-login.js +3 -2
- package/dist/components/eds-logo-variations.d.ts +11 -0
- package/dist/components/eds-logo-variations.js +60 -0
- package/dist/components/eds-modal.js +56 -30
- package/dist/components/eds-pagination2.js +13 -9
- package/dist/components/eds-rating.js +6 -8
- package/dist/components/eds-social-networks.js +2 -2
- package/dist/components/eds-social-networks2.js +6 -6
- package/dist/components/eds-svg-repository.js +7 -1
- package/dist/components/eds-table2.js +50 -14
- package/dist/components/eds-tabs-content.js +2 -2
- package/dist/components/eds-tabs.js +26 -5
- package/dist/components/eds-timeline.js +24 -10
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-toast2.js +21 -0
- package/dist/components/eds-tooltip.js +11 -1
- package/dist/components/eds-trl.js +94 -15
- package/dist/components/eds-user-modal2.js +1 -5
- package/dist/components/eds-user2.js +12 -6
- package/dist/components/incorrect-use-of-colors.js +20 -2
- package/dist/components/logo-space.js +1 -1
- package/dist/components/logo-variations-horizontal.js +2 -50
- package/dist/components/logo-variations-horizontal2.js +37 -0
- package/dist/components/logo-variations-vertical.js +2 -50
- package/dist/components/logo-variations-vertical2.js +42 -0
- package/dist/components/logo-wrong-usage.js +2 -2
- package/dist/components/p-005de86f.entry.js +1 -0
- package/dist/components/{p-5eb32f03.entry.js → p-0910d733.entry.js} +1 -1
- package/dist/components/{p-c9c3cc49.entry.js → p-22e6d7d5.entry.js} +1 -1
- package/dist/components/p-2851ff44.entry.js +1 -0
- package/dist/components/p-29648b47.entry.js +1 -0
- package/dist/components/p-2dda1ec4.entry.js +1 -0
- package/dist/components/{p-d9788b54.entry.js → p-35ec730b.entry.js} +1 -1
- package/dist/components/{p-bb60412b.entry.js → p-435a14c1.entry.js} +1 -1
- package/dist/components/{p-e6bfbf51.entry.js → p-5398d652.entry.js} +2 -2
- package/dist/components/p-57c964c5.entry.js +1 -0
- package/dist/components/p-5a43503a.entry.js +1 -0
- package/dist/components/{p-e20ed2c7.entry.js → p-610db2b2.entry.js} +1 -1
- package/dist/components/p-6378fb3e.entry.js +1 -0
- package/dist/components/p-762c8c83.entry.js +1 -0
- package/dist/components/p-7802e966.entry.js +1 -0
- package/dist/components/p-832dc95a.entry.js +1 -0
- package/dist/components/p-855aa1a3.entry.js +1 -0
- package/dist/components/{p-1bcfbaf1.entry.js → p-87830085.entry.js} +1 -1
- package/dist/components/p-8ddc67a1.entry.js +1 -0
- package/dist/components/p-ab32b3fc.entry.js +1 -0
- package/dist/components/p-ac0112d5.entry.js +1 -0
- package/dist/components/p-acb16e1c.entry.js +1 -0
- package/dist/components/p-ae5dbd41.entry.js +1 -0
- package/dist/components/p-b04eff31.entry.js +1 -0
- package/dist/components/p-b86a4985.js +1 -0
- package/dist/components/{p-9722811d.entry.js → p-ba6bafef.entry.js} +1 -1
- package/dist/components/{p-6fc62452.entry.js → p-c3b294a0.entry.js} +1 -1
- package/dist/components/p-c6038449.entry.js +1 -0
- package/dist/components/p-c72c8fb0.entry.js +1 -0
- package/dist/components/p-d53b7a75.entry.js +1 -0
- package/dist/components/{p-b717f95a.entry.js → p-d571d530.entry.js} +1 -1
- package/dist/components/p-dd6daa96.entry.js +1 -0
- package/dist/components/{p-73bd0c97.entry.js → p-df94285c.entry.js} +1 -1
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/token-list2.js +1 -1
- package/dist/components/token-radii2.js +1 -1
- package/dist/components/token-ratios.js +1 -1
- package/dist/components/token-shadows2.js +1 -1
- package/dist/components/token-spacing.js +1 -1
- package/dist/components/token-typography.js +1 -1
- package/dist/esm/{color-0ba8ed56.js → color-bb472c37.js} +2 -2
- package/dist/esm/color-primary-palette_6.entry.js +14 -14
- package/dist/esm/components.js +1 -1
- package/dist/esm/correct-use-of-colors.entry.js +1 -1
- package/dist/esm/{eds-alert_28.entry.js → eds-accordion_33.entry.js} +767 -161
- package/dist/esm/eds-card-project.entry.js +1 -1
- package/dist/esm/eds-card-section.entry.js +18 -7
- package/dist/esm/eds-card-tags.entry.js +1 -1
- package/dist/esm/eds-card-tool.entry.js +1 -1
- package/dist/esm/eds-card-wrapper.entry.js +1 -1
- package/dist/esm/eds-code-block.entry.js +49 -2
- package/dist/esm/eds-components-section.entry.js +44 -24
- package/dist/esm/eds-docs-palettes.entry.js +1 -1
- package/dist/esm/eds-docs-tokens.entry.js +1 -1
- package/dist/esm/eds-login.entry.js +1 -1
- package/dist/esm/eds-logo-variations.entry.js +23 -0
- package/dist/esm/eds-matomo-notice.entry.js +1 -1
- package/dist/esm/{eds-pagination.entry.js → eds-pagination_2.entry.js} +184 -10
- package/dist/esm/eds-progress-bar.entry.js +25 -0
- package/dist/esm/eds-rating.entry.js +5 -7
- package/dist/esm/eds-svg-repository.entry.js +8 -2
- package/dist/esm/eds-tabs-content.entry.js +3 -3
- package/dist/esm/eds-tabs.entry.js +27 -6
- package/dist/esm/eds-timeline.entry.js +73 -0
- package/dist/esm/eds-tooltip.entry.js +11 -1
- package/dist/esm/eds-trl.entry.js +47 -0
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/index-e96badea.js +20 -44
- package/dist/esm/loader.js +1 -1
- package/dist/esm/logo-space.entry.js +1 -1
- package/dist/esm/logo-variations-horizontal_2.entry.js +31 -0
- package/dist/esm/logo-wrong-usage.entry.js +2 -2
- package/dist/esm/token-list_3.entry.js +3 -3
- package/dist/esm/token-ratios.entry.js +1 -1
- package/dist/esm/token-spacing.entry.js +1 -1
- package/dist/esm/token-typography.entry.js +1 -1
- package/dist/hydrate/index.js +1116 -783
- package/dist/hydrate/index.mjs +1116 -783
- package/dist/types/components/eds-accordion/eds-accordion.d.ts +5 -12
- package/dist/types/components/eds-avatar/eds-avatar.stories.d.ts +0 -18
- package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +1 -5
- package/dist/types/components/eds-button/eds-button.d.ts +2 -2
- package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.d.ts +8 -0
- package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +6 -2
- package/dist/types/components/eds-code-block/eds-code-block.d.ts +43 -3
- package/dist/types/components/eds-code-block/eds-code-block.stories.d.ts +54 -0
- package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +0 -7
- package/dist/types/components/eds-form/eds-form.d.ts +3 -6
- package/dist/types/components/eds-form/eds-form.stories.d.ts +0 -5
- package/dist/types/components/eds-frame/eds-frame.stories.d.ts +0 -2
- package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +108 -2
- package/dist/types/components/eds-link/eds-link.d.ts +1 -1
- package/dist/types/components/eds-modal/eds-modal.d.ts +18 -3
- package/dist/types/components/eds-modal/eds-modal.stories.d.ts +9 -0
- package/dist/types/components/eds-rating/eds-rating.d.ts +4 -6
- package/dist/types/components/eds-section/eds-section-core/eds-section-core.stories.d.ts +0 -1
- package/dist/types/components/eds-table/eds-table.d.ts +9 -1
- package/dist/types/components/eds-table/eds-table.stories.d.ts +6 -67
- package/dist/types/components/eds-timeline/eds-timeline.d.ts +9 -12
- package/dist/types/components/eds-toast/eds-toast.d.ts +9 -0
- package/dist/types/components/eds-trl/eds-trl.d.ts +4 -1
- package/dist/types/components.d.ts +217 -56
- package/dist/types/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.d.ts +0 -4
- package/dist/types/eds-docs-ui/eds-logo-variations/eds-logo-variations.d.ts +9 -0
- package/dist/types/eds-docs-ui/eds-svg-repository/eds-svg-repository.d.ts +2 -0
- package/dist/types/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.d.ts +1 -7
- package/dist/types/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.d.ts +1 -1
- package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +1 -1
- package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +42 -2
- package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +8 -2
- package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.d.ts +29 -0
- package/dist/types/shared-ui/eds-header/eds-header.d.ts +7 -1
- package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +9 -1
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +13 -0
- package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +18 -1
- package/dist/types/shared-ui/eds-user/eds-user.d.ts +1 -2
- package/package.json +3 -3
- package/dist/cjs/eds-accordion.cjs.entry.js +0 -93
- package/dist/cjs/eds-block-break.cjs.entry.js +0 -21
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -153
- package/dist/cjs/eds-footer.cjs.entry.js +0 -50
- package/dist/cjs/eds-frame.cjs.entry.js +0 -91
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +0 -100
- package/dist/cjs/eds-modal.cjs.entry.js +0 -86
- package/dist/cjs/eds-social-networks.cjs.entry.js +0 -66
- package/dist/cjs/eds-table.cjs.entry.js +0 -143
- package/dist/cjs/logo-variations-horizontal.cjs.entry.js +0 -31
- package/dist/cjs/logo-variations-vertical.cjs.entry.js +0 -31
- package/dist/collection/components/eds-trl/eds-trl.css +0 -0
- package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.css +0 -0
- package/dist/components/p-02e2a62f.entry.js +0 -1
- package/dist/components/p-04e47e04.entry.js +0 -1
- package/dist/components/p-0a3b2576.entry.js +0 -1
- package/dist/components/p-0c99ef81.entry.js +0 -1
- package/dist/components/p-272d249f.entry.js +0 -1
- package/dist/components/p-2d8508cd.entry.js +0 -1
- package/dist/components/p-32f282a9.entry.js +0 -1
- package/dist/components/p-373673ca.js +0 -1
- package/dist/components/p-3a2e8ef3.entry.js +0 -1
- package/dist/components/p-3afafa59.entry.js +0 -1
- package/dist/components/p-3b40559e.entry.js +0 -1
- package/dist/components/p-42b4ecff.entry.js +0 -1
- package/dist/components/p-49958f77.entry.js +0 -1
- package/dist/components/p-54c75346.entry.js +0 -1
- package/dist/components/p-551c0b58.entry.js +0 -1
- package/dist/components/p-559b6ec9.entry.js +0 -1
- package/dist/components/p-5ae9722b.entry.js +0 -1
- package/dist/components/p-79887c2c.entry.js +0 -1
- package/dist/components/p-9000b245.entry.js +0 -1
- package/dist/components/p-96c4deda.entry.js +0 -1
- package/dist/components/p-b14ef448.entry.js +0 -1
- package/dist/components/p-b203eb1b.entry.js +0 -1
- package/dist/components/p-b33941a0.entry.js +0 -1
- package/dist/components/p-bca40434.entry.js +0 -1
- package/dist/components/p-df93db96.entry.js +0 -1
- package/dist/components/p-ebed87b8.entry.js +0 -1
- package/dist/components/p-ff5de62c.entry.js +0 -1
- package/dist/components/p-ffec8755.entry.js +0 -1
- package/dist/esm/eds-accordion.entry.js +0 -89
- package/dist/esm/eds-block-break.entry.js +0 -17
- package/dist/esm/eds-breadcrumb.entry.js +0 -149
- package/dist/esm/eds-footer.entry.js +0 -46
- package/dist/esm/eds-frame.entry.js +0 -87
- package/dist/esm/eds-fullscreen-menu.entry.js +0 -96
- package/dist/esm/eds-modal.entry.js +0 -82
- package/dist/esm/eds-social-networks.entry.js +0 -62
- package/dist/esm/eds-table.entry.js +0 -139
- package/dist/esm/logo-variations-horizontal.entry.js +0 -27
- package/dist/esm/logo-variations-vertical.entry.js +0 -27
- /package/dist/collection/shared-ui/eds-social-networks/{eds-social-network.css → eds-social-networks.css} +0 -0
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-e96badea.js';
|
|
2
|
-
|
|
3
|
-
const EdsFrame = class {
|
|
4
|
-
constructor(hostRef) {
|
|
5
|
-
registerInstance(this, hostRef);
|
|
6
|
-
this.frameLabel = undefined;
|
|
7
|
-
this.urlLabel = 'Open in Storybook';
|
|
8
|
-
this.errorMessage = 'Could not load the requested Storybook content. Please check the URL or try again later.';
|
|
9
|
-
this.storybookUrl = undefined;
|
|
10
|
-
this.storyPath = undefined;
|
|
11
|
-
this.intent = 'strong';
|
|
12
|
-
this.tiny = false;
|
|
13
|
-
this.size = 'auto';
|
|
14
|
-
this.bg = true;
|
|
15
|
-
this.iframeError = false;
|
|
16
|
-
}
|
|
17
|
-
articleClasses() {
|
|
18
|
-
return [
|
|
19
|
-
this.tiny ? 'min-h-120' : 'min-h-156',
|
|
20
|
-
this.bg ? 'bg-inverse' : 'bg-default',
|
|
21
|
-
'rounded border-softer effect-focus-within relative flex grow flex-col border-2',
|
|
22
|
-
'w-full h-full'
|
|
23
|
-
].join(' ');
|
|
24
|
-
}
|
|
25
|
-
getFrameHeight() {
|
|
26
|
-
switch (this.size) {
|
|
27
|
-
case 'sm':
|
|
28
|
-
return '100px';
|
|
29
|
-
case 'md':
|
|
30
|
-
return '200px';
|
|
31
|
-
case 'lg':
|
|
32
|
-
return '400px';
|
|
33
|
-
case 'xl':
|
|
34
|
-
return '700px';
|
|
35
|
-
default:
|
|
36
|
-
return 'auto';
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
async checkIframeAvailability() {
|
|
40
|
-
try {
|
|
41
|
-
const response = await fetch(this.frameSrc, { method: 'GET' });
|
|
42
|
-
if (!response.ok) {
|
|
43
|
-
throw new Error('Failed to load');
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
catch (error) {
|
|
47
|
-
this.iframeError = true;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
componentWillLoad() {
|
|
51
|
-
this.checkIframeAvailability();
|
|
52
|
-
}
|
|
53
|
-
componentDidLoad() {
|
|
54
|
-
// Emit context for each eds-link element after the component is fully loaded
|
|
55
|
-
const links = this.el.querySelectorAll('eds-link');
|
|
56
|
-
links.forEach((link) => {
|
|
57
|
-
this.emitContext(link);
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Emits a custom event called `parentContext` for a given link element.
|
|
62
|
-
* This event provides context information about the breadcrumb component.
|
|
63
|
-
*
|
|
64
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
65
|
-
*/
|
|
66
|
-
emitContext(linkElement) {
|
|
67
|
-
const event = new CustomEvent('parentContext', {
|
|
68
|
-
detail: {
|
|
69
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
70
|
-
identifier: this.frameLabel
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
linkElement.dispatchEvent(event);
|
|
74
|
-
}
|
|
75
|
-
get storyLink() {
|
|
76
|
-
return `${this.storybookUrl}/?path=/story/${this.storyPath}`;
|
|
77
|
-
}
|
|
78
|
-
get frameSrc() {
|
|
79
|
-
return `${this.storybookUrl}/iframe.html?id=${this.storyPath}&viewMode=story`;
|
|
80
|
-
}
|
|
81
|
-
render() {
|
|
82
|
-
return (h("div", { key: '0c3a43efc1a125af5999af88c4eb071b5c3bc6c5', class: this.articleClasses() }, h("div", { key: '32303d5e2c2f3b01efe1ceaf828346f873bea6b6', class: "effect-height flex items-center justify-between py-8 px-12" }, h("span", { key: '75f7f6750413dad4af2ea62c12ffb994491d5d01', class: "f-ui-02" }, this.frameLabel), !this.iframeError ? (h("eds-link", { label: this.urlLabel, url: this.storyLink, intent: this.intent, class: "ml-auto", external: true, disabled: false, icon: "arrow-diagonal" })) : null), h("div", { key: '1fd99f6eda026814910b0cd93635616b7d3ffe09', class: "border-softer border-t-2" }, this.iframeError ? (h("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage)) : (h("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: true })))));
|
|
83
|
-
}
|
|
84
|
-
get el() { return getElement(this); }
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export { EdsFrame as eds_frame };
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-e96badea.js';
|
|
2
|
-
|
|
3
|
-
const edsFullscreenMenuCss = "";
|
|
4
|
-
const EdsFullscreenMenuStyle0 = edsFullscreenMenuCss;
|
|
5
|
-
|
|
6
|
-
const EdsFullscreenMenu = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.menuClose = createEvent(this, "menuClose", 7);
|
|
10
|
-
this.links = undefined;
|
|
11
|
-
this.menuLinks = undefined;
|
|
12
|
-
this.homeUrl = '/';
|
|
13
|
-
this.inverseHeader = false;
|
|
14
|
-
this.isMenuOpen = false;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Listens for the toggleMenu event to open or close the menu.
|
|
18
|
-
* This event is emitted by the eds-header component.
|
|
19
|
-
*/
|
|
20
|
-
handleToggleMenu(event) {
|
|
21
|
-
this.isMenuOpen = event.detail; // Set isMenuOpen based on the event payload
|
|
22
|
-
}
|
|
23
|
-
/** Opens the menu */
|
|
24
|
-
openMenu() {
|
|
25
|
-
this.isMenuOpen = true;
|
|
26
|
-
}
|
|
27
|
-
/** Closes the menu */
|
|
28
|
-
closeMenu() {
|
|
29
|
-
this.isMenuOpen = false;
|
|
30
|
-
this.menuClose.emit();
|
|
31
|
-
}
|
|
32
|
-
// Lifecycle method to add the resize event listener when component loads
|
|
33
|
-
componentDidLoad() {
|
|
34
|
-
window.addEventListener('resize', this.handleResize.bind(this));
|
|
35
|
-
}
|
|
36
|
-
// Lifecycle method to remove the resize event listener when component unloads
|
|
37
|
-
disconnectedCallback() {
|
|
38
|
-
window.removeEventListener('resize', this.handleResize.bind(this));
|
|
39
|
-
}
|
|
40
|
-
// Function to close the menu if screen width is larger than a defined breakpoint (1024px)
|
|
41
|
-
handleResize() {
|
|
42
|
-
if (window.innerWidth >= 1024) {
|
|
43
|
-
this.isMenuOpen = false;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Parses the `links` prop into an array of link objects.
|
|
48
|
-
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
49
|
-
*
|
|
50
|
-
* @returns {any[]} Array of parsed link objects
|
|
51
|
-
*/
|
|
52
|
-
get parsedLinks() {
|
|
53
|
-
if (typeof this.links === 'object') {
|
|
54
|
-
return this.links;
|
|
55
|
-
}
|
|
56
|
-
else if (typeof this.links === 'string') {
|
|
57
|
-
try {
|
|
58
|
-
return JSON.parse(this.links);
|
|
59
|
-
}
|
|
60
|
-
catch (e) {
|
|
61
|
-
// eslint-disable-next-line
|
|
62
|
-
console.error('Error parsing links prop:', e);
|
|
63
|
-
return [];
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return [];
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Parses the `menuLinks` prop into an array of link objects.
|
|
70
|
-
* Returns an empty array if parsing fails or if `menuLinks` is not a valid JSON string or object.
|
|
71
|
-
*
|
|
72
|
-
* @returns {any[]} Array of parsed menu link objects
|
|
73
|
-
*/
|
|
74
|
-
get parsedMenuLinks() {
|
|
75
|
-
if (typeof this.menuLinks === 'object') {
|
|
76
|
-
return this.menuLinks;
|
|
77
|
-
}
|
|
78
|
-
else if (typeof this.menuLinks === 'string') {
|
|
79
|
-
try {
|
|
80
|
-
return JSON.parse(this.menuLinks);
|
|
81
|
-
}
|
|
82
|
-
catch (e) {
|
|
83
|
-
// eslint-disable-next-line
|
|
84
|
-
console.error('Error parsing menuLinks prop:', e);
|
|
85
|
-
return [];
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
return [];
|
|
89
|
-
}
|
|
90
|
-
render() {
|
|
91
|
-
return this.isMenuOpen ? (h("div", { class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll" }, h("div", { class: "flex min-h-full flex-col" }, h("div", { class: `bg-default w-full sticky top-0 ${this.inverseHeader ? 'bg-strongest' : 'bg-default'}` }, h("div", { class: "mx-auto flex items-center justify-between" }, h("div", { class: "mr-auto w-[200px] h-[85px]" }, h("eds-logo", { type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), h("div", { class: "px-16" }, h("eds-button", { "aria-label": "Close menu", intent: "ghostInverse", icon: "close", onClick: () => this.closeMenu() })))), h("div", { class: "py-16 px-16" }, h("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedLinks.map((link, index) => (h("eds-link", { label: link.label, key: index, url: link.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "arrow-right" })))), h("eds-block-break", null), h("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedMenuLinks.map((link, index) => (h("eds-link", { label: link.label, key: index, url: link.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "chevron-right" }))))), h("div", { class: "mt-auto" }, h("eds-footer", { social: true, "extra-class": "bg-darker" }))))) : null;
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
EdsFullscreenMenu.style = EdsFullscreenMenuStyle0;
|
|
95
|
-
|
|
96
|
-
export { EdsFullscreenMenu as eds_fullscreen_menu };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-e96badea.js';
|
|
2
|
-
|
|
3
|
-
const edsModalCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.fixed{position:fixed}.inset-0{inset:0rem}.z-10{z-index:10}.z-50{z-index:50}.max-w-full{max-width:100%}.absolute{position:absolute}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-20{padding-top:1.25rem;padding-bottom:1.25rem}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.rounded-lg{border-radius:16px}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1)}.pb-8{padding-bottom:0.5rem}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-8{margin-left:0.5rem}.pt-8{padding-top:0.5rem}.bg-opacity-90{opacity:0.9}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}";
|
|
4
|
-
const EdsModalStyle0 = edsModalCss;
|
|
5
|
-
|
|
6
|
-
const EdsModal = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.isOpen = false;
|
|
10
|
-
this.title = '';
|
|
11
|
-
this.truncate = true;
|
|
12
|
-
this.truncateLines = '1';
|
|
13
|
-
}
|
|
14
|
-
getTruncateClass() {
|
|
15
|
-
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Opens the modal.
|
|
19
|
-
*/
|
|
20
|
-
async open() {
|
|
21
|
-
this.isOpen = true;
|
|
22
|
-
/*sendAnalytics({
|
|
23
|
-
category: 'ui-component',
|
|
24
|
-
tag: this.el.tagName.toLowerCase(),
|
|
25
|
-
name: this.title,
|
|
26
|
-
action: 'show'
|
|
27
|
-
});*/
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Closes the modal.
|
|
31
|
-
*/
|
|
32
|
-
async close() {
|
|
33
|
-
this.isOpen = false;
|
|
34
|
-
/*sendAnalytics({
|
|
35
|
-
category: 'ui-component',
|
|
36
|
-
tag: this.el.tagName.toLowerCase(),
|
|
37
|
-
name: this.title,
|
|
38
|
-
action: 'hide'
|
|
39
|
-
});*/
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Toggles the modal open or closed.
|
|
43
|
-
*/
|
|
44
|
-
async toggle() {
|
|
45
|
-
this.isOpen = !this.isOpen;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Lifecycle method that runs when the component has fully loaded.
|
|
49
|
-
* It emits a custom event for each `eds-button` element contained within the breadcrumb.
|
|
50
|
-
*/
|
|
51
|
-
componentDidLoad() {
|
|
52
|
-
// Emit context for each eds-link element after the component is fully loaded
|
|
53
|
-
const btns = this.el.shadowRoot.querySelectorAll('eds-button');
|
|
54
|
-
btns.forEach((btn) => {
|
|
55
|
-
this.emitContext(btn);
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Emits a custom event called `parentContext` for a given button element.
|
|
60
|
-
* This event provides context information about the eds-modal component.
|
|
61
|
-
*
|
|
62
|
-
* @param btnElement - The link element to which the event will be dispatched.
|
|
63
|
-
*/
|
|
64
|
-
emitContext(btnElement) {
|
|
65
|
-
const event = new CustomEvent('parentContext', {
|
|
66
|
-
detail: {
|
|
67
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
68
|
-
identifier: null
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
btnElement.dispatchEvent(event);
|
|
72
|
-
}
|
|
73
|
-
render() {
|
|
74
|
-
return (h("div", { key: '00816ecb900bd9b68b31fdf6e48bef0223f9e10a', class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-50 flex` }, this.isOpen && (h("div", { key: '570fa8625f9ad4b1ea82633f11e2b289ab01b853', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
75
|
-
,
|
|
76
|
-
onClick: () => this.close() })), h("div", { key: 'ff658c763e3fbc98123f13483076399966b10515', class: "max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center " }, h("div", { key: 'd8b72acd90cc59ab1f82384aee4e311319f75aa9', class: "flex justify-between items-center border-b-2 border-softer pb-8" }, h("span", { key: 'ee61fc505c5a3eb93541d3762d37f28a5a788bae', class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.title), h("eds-button", { key: '3832772417d05a162eb5f2c4d0733f0ee845ed1c', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), h("div", { key: 'f71b38be8284a37d0d198df0a9858c64202b3d91', class: "pt-8" }, h("slot", { key: '1f80948334e5b4e9fc00a3bf01c6fc402d8220c3' })))));
|
|
77
|
-
}
|
|
78
|
-
get el() { return getElement(this); }
|
|
79
|
-
};
|
|
80
|
-
EdsModal.style = EdsModalStyle0;
|
|
81
|
-
|
|
82
|
-
export { EdsModal as eds_modal };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-e96badea.js';
|
|
2
|
-
|
|
3
|
-
const edsSocialNetworkCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.mt-12{margin-top:0.75rem}.mt-16{margin-top:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}";
|
|
4
|
-
const EdsSocialNetworksStyle0 = edsSocialNetworkCss;
|
|
5
|
-
|
|
6
|
-
const EdsSocialNetwork = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
/**
|
|
10
|
-
* Array of social network objects, each containing label, URL, and icon.
|
|
11
|
-
* These are used to render the social network links.
|
|
12
|
-
*
|
|
13
|
-
* @private
|
|
14
|
-
* @type {SocialNetworks[]}
|
|
15
|
-
*/
|
|
16
|
-
this.socialNetworks = [
|
|
17
|
-
{
|
|
18
|
-
label: 'Twitter',
|
|
19
|
-
url: 'https://twitter.com/ebrains_eu',
|
|
20
|
-
icon: 'twitter'
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
label: 'Linkedin',
|
|
24
|
-
url: 'https://www.linkedin.com/company/ebrains-eu/about/',
|
|
25
|
-
icon: 'linkedin'
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
label: 'Facebook',
|
|
29
|
-
url: 'https://www.facebook.com/people/Ebrains_eu/100046659909324/',
|
|
30
|
-
icon: 'facebook'
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
label: 'Youtube',
|
|
34
|
-
url: 'https://www.youtube.com/channel/UC6E796cVVR5Xrs2A5jJmleQ',
|
|
35
|
-
icon: 'youtube'
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
label: 'Mastodon',
|
|
39
|
-
url: 'https://mastodon.social/@ebrains',
|
|
40
|
-
icon: 'mastodon'
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: 'Bluesky',
|
|
44
|
-
url: 'https://bsky.app/profile/ebrains.bsky.social',
|
|
45
|
-
icon: 'bluesky'
|
|
46
|
-
}
|
|
47
|
-
];
|
|
48
|
-
this.title = 'Follow EBRAINS to keep up-to-date';
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Renders the component's HTML structure with links to EBRAINS social profiles.
|
|
52
|
-
* Each social network link uses the `eds-link` component with specific classes and styles.
|
|
53
|
-
*
|
|
54
|
-
* @returns {JSX.Element} The rendered JSX for the component.
|
|
55
|
-
*/
|
|
56
|
-
render() {
|
|
57
|
-
return (h("div", { key: '6169559327b728fd0f3a51a2b8a6439f80fba8fc' }, h("p", { key: 'df2e008500097af1b85660fe8b3fac122f5018a4', class: "f-ui-02" }, this.title), h("ul", { key: 'df01a2802412c4db4e5442fdfc0b6ef3f15c4109', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (h("li", { key: index }, h("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
EdsSocialNetwork.style = EdsSocialNetworksStyle0;
|
|
61
|
-
|
|
62
|
-
export { EdsSocialNetwork as eds_social_networks };
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-e96badea.js';
|
|
2
|
-
|
|
3
|
-
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}";
|
|
4
|
-
const EdsTableStyle0 = edsTableCss;
|
|
5
|
-
|
|
6
|
-
const EdsTable = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.minWidth = 400; // Minimum width for components in px
|
|
10
|
-
this.data = null;
|
|
11
|
-
this.endpoint = null;
|
|
12
|
-
this.config = {};
|
|
13
|
-
this.rowsPerPage = 10;
|
|
14
|
-
this.paginationEnabled = true;
|
|
15
|
-
this.searchEnabled = false;
|
|
16
|
-
this.tableData = [];
|
|
17
|
-
this.columns = [];
|
|
18
|
-
this.currentPage = 1;
|
|
19
|
-
this.parsedConfig = {};
|
|
20
|
-
this.totalRows = 0;
|
|
21
|
-
this.searchQuery = '';
|
|
22
|
-
}
|
|
23
|
-
handleDataChange() {
|
|
24
|
-
this.parseData();
|
|
25
|
-
}
|
|
26
|
-
handleConfigChange() {
|
|
27
|
-
this.parseConfig();
|
|
28
|
-
}
|
|
29
|
-
componentWillLoad() {
|
|
30
|
-
this.parseConfig();
|
|
31
|
-
this.data ? this.parseData() : this.endpoint && this.fetchData();
|
|
32
|
-
}
|
|
33
|
-
componentDidLoad() {
|
|
34
|
-
this.setupPaginationListener();
|
|
35
|
-
}
|
|
36
|
-
componentDidUpdate() {
|
|
37
|
-
this.setupPaginationListener();
|
|
38
|
-
}
|
|
39
|
-
parseData() {
|
|
40
|
-
try {
|
|
41
|
-
this.tableData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data || [];
|
|
42
|
-
this.totalRows = this.tableData.length;
|
|
43
|
-
this.updateColumns();
|
|
44
|
-
this.currentPage = 1;
|
|
45
|
-
}
|
|
46
|
-
catch (error) {
|
|
47
|
-
// eslint-disable-next-line
|
|
48
|
-
console.error('Failed to parse data:', error);
|
|
49
|
-
this.tableData = [];
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
parseConfig() {
|
|
53
|
-
try {
|
|
54
|
-
this.parsedConfig = typeof this.config === 'string' ? JSON.parse(this.config) : this.config;
|
|
55
|
-
}
|
|
56
|
-
catch (error) {
|
|
57
|
-
// eslint-disable-next-line
|
|
58
|
-
console.error('Failed to parse config:', error);
|
|
59
|
-
this.parsedConfig = {};
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
async fetchData() {
|
|
63
|
-
try {
|
|
64
|
-
const response = await fetch(this.endpoint);
|
|
65
|
-
const data = await response.json();
|
|
66
|
-
this.data = data;
|
|
67
|
-
}
|
|
68
|
-
catch (error) {
|
|
69
|
-
// eslint-disable-next-line
|
|
70
|
-
console.error('Failed to fetch data:', error);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
setupPaginationListener() {
|
|
74
|
-
if (!this.shouldEnablePagination()) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
const paginationEl = this.hostEl.shadowRoot.querySelector('eds-pagination');
|
|
78
|
-
if (paginationEl && !paginationEl.hasAttribute('listener-attached')) {
|
|
79
|
-
paginationEl.addEventListener('pageChange', (event) => this.handlePageChange(event.detail));
|
|
80
|
-
paginationEl.setAttribute('listener-attached', 'true');
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
getFilteredRows() {
|
|
84
|
-
return this.tableData.filter((row) => Object.values(row).some((value) => value.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
85
|
-
}
|
|
86
|
-
getPaginatedRows() {
|
|
87
|
-
const filteredRows = this.getFilteredRows();
|
|
88
|
-
this.totalRows = filteredRows.length;
|
|
89
|
-
const start = (this.currentPage - 1) * this.rowsPerPage;
|
|
90
|
-
return filteredRows.slice(start, start + this.rowsPerPage);
|
|
91
|
-
}
|
|
92
|
-
handlePageChange(newPage) {
|
|
93
|
-
this.currentPage = newPage;
|
|
94
|
-
}
|
|
95
|
-
handleSearch(event) {
|
|
96
|
-
this.searchQuery = event.target.value;
|
|
97
|
-
this.currentPage = 1;
|
|
98
|
-
}
|
|
99
|
-
renderCell(value, column) {
|
|
100
|
-
var _a;
|
|
101
|
-
const format = (_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.format;
|
|
102
|
-
return format === 'uppercase' ? (value === null || value === void 0 ? void 0 : value.toString().toUpperCase()) : format === 'svg' ? (h("div", { innerHTML: value })) : format === 'bold' ? (h("strong", null, value)) : format === 'code' ? (h("code", null, value)) : (value);
|
|
103
|
-
}
|
|
104
|
-
shouldEnablePagination() {
|
|
105
|
-
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
106
|
-
}
|
|
107
|
-
updateColumns() {
|
|
108
|
-
this.columns = this.tableData.length > 0 ? Object.keys(this.tableData[0]) : [];
|
|
109
|
-
}
|
|
110
|
-
getVisibleColumnsCount() {
|
|
111
|
-
return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
|
|
112
|
-
}
|
|
113
|
-
render() {
|
|
114
|
-
const paginatedRows = this.getPaginatedRows();
|
|
115
|
-
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
116
|
-
// Calculate column width based on minWidth and number of columns
|
|
117
|
-
//const columnWidth = Math.max(this.minWidth / this.columns.length, 100);
|
|
118
|
-
// Use the visible column count to calculate the column width
|
|
119
|
-
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
120
|
-
const columnWidth = visibleColumnsCount > 0 ? Math.max(this.minWidth / visibleColumnsCount, 100) : 100;
|
|
121
|
-
return (h("div", { key: 'c5e50673eb1ed5cf00e0294885bf9cd6d13f9366', class: "container", style: { minWidth: `${this.minWidth}px` } }, h("div", { key: '0e0814a8cb5ae1e11538a26cba630e59d39dde74' }, this.searchEnabled && (h("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
|
|
122
|
-
// @ts-ignore
|
|
123
|
-
onInput: (event) => this.handleSearch(event) }))), h("div", { key: '65e0c9057c313f220655ecd7692a83c932f441b3', class: "mt-20" }, h("table", { key: '9e77153c2e0983f7598a21ef55ebcf3107655e09', class: "block overflow-x-auto mt-6 p-0" }, h("thead", { key: '38e5ac67ffae80d896c29357615d19b5dfcc52d3' }, h("tr", { key: '526c5b30da0a2aa97bb90f5b473b3e9ea41dde6b', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
124
|
-
var _a;
|
|
125
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("th", { class: "m-0 px-20 py-8 border border-softer f-ui-02", style: { minWidth: `${columnWidth}px` } }, column));
|
|
126
|
-
}))), h("tbody", { key: '5a10525ed86eac82291746be4c6cce5f65942d2d' }, paginatedRows.map((row) => (h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
127
|
-
var _a;
|
|
128
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("td", { class: "text-center border border-softer m-0 px-20 py-8 f-ui-2", style: { minWidth: `${columnWidth}px` } }, this.renderCell(row[column], column)));
|
|
129
|
-
}))))))), h("div", { key: 'af1183fd3e635c7d7ac982231adfdd9d892f6979', class: "mt-20" }, this.shouldEnablePagination() && (h("eds-pagination", { key: 'a5de7f25054c2d67f0788bfd2bc37d07f46de02c', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
130
|
-
}
|
|
131
|
-
get hostEl() { return getElement(this); }
|
|
132
|
-
static get watchers() { return {
|
|
133
|
-
"data": ["handleDataChange"],
|
|
134
|
-
"config": ["handleConfigChange"]
|
|
135
|
-
}; }
|
|
136
|
-
};
|
|
137
|
-
EdsTable.style = EdsTableStyle0;
|
|
138
|
-
|
|
139
|
-
export { EdsTable as eds_table };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-e96badea.js';
|
|
2
|
-
|
|
3
|
-
const logoVariationsHorizontalCss = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.w-\\[150px\\]{width:150px}.w-\\[300px\\]{width:500px}.coloured{background:linear-gradient(to left, \n #9CE142 0%, \n #00C959 50%, \n #00A595 100%)}";
|
|
4
|
-
const LogoVariationsHorizontalStyle0 = logoVariationsHorizontalCss;
|
|
5
|
-
|
|
6
|
-
const LogoVariations = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.orientation = 'horizontal';
|
|
10
|
-
this.type = undefined;
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
if (this.type === 'coloured') {
|
|
14
|
-
return (h("div", { class: "container my-16" }, h("div", { class: "coloured w-[300px]" }, h("eds-logo", { type: "no-bg", href: "#" }))));
|
|
15
|
-
}
|
|
16
|
-
if (this.type === 'black') {
|
|
17
|
-
return (h("div", { class: "container my-16" }, h("div", { class: "bg-default w-[300px]" }, h("eds-logo", { type: "black", href: "#" }))));
|
|
18
|
-
}
|
|
19
|
-
if (this.type === 'color-white') {
|
|
20
|
-
return (h("div", { class: "container my-16" }, h("div", { class: "w-[300px]" }, h("eds-logo", { type: "color-white", href: "#" }))));
|
|
21
|
-
}
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
LogoVariations.style = LogoVariationsHorizontalStyle0;
|
|
26
|
-
|
|
27
|
-
export { LogoVariations as logo_variations_horizontal };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-e96badea.js';
|
|
2
|
-
|
|
3
|
-
const logoVariationsVerticalCss = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.w-\\[150px\\]{width:150px}.w-\\[200px\\]{width:200px}.w-\\[300px\\]{width:500px}.coloured{background:linear-gradient(to left, \n #9CE142 0%, \n #00C959 50%, \n #00A595 100%)}";
|
|
4
|
-
const LogoVariationsVerticalStyle0 = logoVariationsVerticalCss;
|
|
5
|
-
|
|
6
|
-
const LogoVariations = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.orientation = 'horizontal';
|
|
10
|
-
this.type = undefined;
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
if (this.type === 'coloured') {
|
|
14
|
-
return (h("div", { class: "container my-16" }, h("div", { class: "coloured w-[200px]" }, h("eds-logo", { orientation: "vertical", type: "no-bg", href: "#" }))));
|
|
15
|
-
}
|
|
16
|
-
if (this.type === 'black') {
|
|
17
|
-
return (h("div", { class: "container my-16" }, h("div", { class: "bg-default w-[200px]" }, h("eds-logo", { orientation: "vertical", type: "black", href: "#" }))));
|
|
18
|
-
}
|
|
19
|
-
if (this.type === 'color-white') {
|
|
20
|
-
return (h("div", { class: "container my-16" }, h("div", { class: "w-[200px]" }, h("eds-logo", { orientation: "vertical", type: "color-white", href: "#" }))));
|
|
21
|
-
}
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
LogoVariations.style = LogoVariationsVerticalStyle0;
|
|
26
|
-
|
|
27
|
-
export { LogoVariations as logo_variations_vertical };
|
|
File without changes
|