@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,4 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { t as toast } from './toastManager.js';
|
|
2
3
|
import { d as defineCustomElement$1 } from './eds-icon-wrapper2.js';
|
|
3
4
|
|
|
4
5
|
const EdsInputSelect = /*@__PURE__*/ proxyCustomElement(class EdsInputSelect extends HTMLElement {
|
|
@@ -6,6 +7,12 @@ const EdsInputSelect = /*@__PURE__*/ proxyCustomElement(class EdsInputSelect ext
|
|
|
6
7
|
super();
|
|
7
8
|
this.__registerHost();
|
|
8
9
|
this.changeEvent = createEvent(this, "changeEvent", 7);
|
|
10
|
+
/**
|
|
11
|
+
* Event handler for the select input's change event.
|
|
12
|
+
* Emits the selected value.
|
|
13
|
+
*
|
|
14
|
+
* @param event The change event from the select input.
|
|
15
|
+
*/
|
|
9
16
|
this.handleChange = (event) => {
|
|
10
17
|
const target = event.target;
|
|
11
18
|
this.changeEvent.emit(target.value);
|
|
@@ -18,11 +25,64 @@ const EdsInputSelect = /*@__PURE__*/ proxyCustomElement(class EdsInputSelect ext
|
|
|
18
25
|
this.error = false;
|
|
19
26
|
this.required = false;
|
|
20
27
|
this.options = [];
|
|
28
|
+
this.labelKey = 'label';
|
|
29
|
+
this.valueKey = 'value';
|
|
21
30
|
this.value = undefined;
|
|
31
|
+
this.dynamicOptions = [];
|
|
32
|
+
this.loading = false;
|
|
33
|
+
this.dynamicValueKey = 'value';
|
|
34
|
+
this.dynamicLabelKey = 'label';
|
|
35
|
+
}
|
|
36
|
+
componentWillLoad() {
|
|
37
|
+
this.loadOptions();
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Watches for changes in the `options` prop and loads the options accordingly.
|
|
41
|
+
*
|
|
42
|
+
* If the first object in the options array contains an "endpoint" key,
|
|
43
|
+
* the component will fetch options from the specified endpoint using the configured keys.
|
|
44
|
+
* Otherwise, it will treat the options as static.
|
|
45
|
+
*
|
|
46
|
+
* @async
|
|
47
|
+
*/
|
|
48
|
+
async loadOptions() {
|
|
49
|
+
// If the first option contains an "endpoint" key, assume dynamic fetch mode.
|
|
50
|
+
if (this.options && this.options.length > 0 && this.options[0].endpoint) {
|
|
51
|
+
const config = this.options[0];
|
|
52
|
+
const endpoint = config.endpoint;
|
|
53
|
+
this.dynamicValueKey = config.value || 'value';
|
|
54
|
+
this.dynamicLabelKey = config.label || 'label';
|
|
55
|
+
this.loading = true;
|
|
56
|
+
try {
|
|
57
|
+
const response = await fetch(endpoint);
|
|
58
|
+
if (!response.ok) {
|
|
59
|
+
toast.show(`<eds-input-select> HTTP error! Status: ${response.status}`, 'error');
|
|
60
|
+
}
|
|
61
|
+
const data = await response.json();
|
|
62
|
+
// Assume the API returns an array of objects.
|
|
63
|
+
this.dynamicOptions = data;
|
|
64
|
+
}
|
|
65
|
+
catch (error) {
|
|
66
|
+
//console.error('Error fetching dynamic options:', error);
|
|
67
|
+
toast.show(`<eds-input-select> Error fetching dynamic options ${error}`, 'error');
|
|
68
|
+
}
|
|
69
|
+
finally {
|
|
70
|
+
this.loading = false;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
// No dynamic configuration found, assume static options.
|
|
75
|
+
this.dynamicOptions = this.options;
|
|
76
|
+
this.dynamicValueKey = this.valueKey;
|
|
77
|
+
this.dynamicLabelKey = this.labelKey;
|
|
78
|
+
}
|
|
22
79
|
}
|
|
23
80
|
render() {
|
|
24
|
-
return (h("div", { key: '
|
|
81
|
+
return (h("div", { key: 'd37107564a86281b3a3920a5eb128f47f6fd4ceb', class: "relative" }, h("select", { key: 'a69cd907ef6732ec42a99fd46bbf9a52ef03735a', id: this.inputId || this.name, name: this.name, class: `input invalid:text-lightest pr-32 ${this.error ? 'input-error' : ''}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": this.hasMessage || this.error ? `${this.name}-error` : '', disabled: this.disabled || this.loading, required: this.required, onChange: this.handleChange }, h("option", { key: '8b84a2b7edd7e989411908b16f35c46853889d8e', value: "", disabled: true, hidden: true }, this.loading ? 'Loading options...' : `Please select ${this.name}`), this.dynamicOptions.map((option, index) => (h("option", { key: index, value: option[this.dynamicValueKey] }, option[this.dynamicLabelKey])))), h("span", { key: 'dbccb6161aafc2dc31cc6dd5b3d8c812545eab9a', class: `bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center ${this.disabled || this.loading ? 'text-lightest bg-transparent' : ''}` }, h("eds-icon-wrapper", { key: 'b0fd24cb54185d8558dfabcb94d05b6257caacd1', class: "w-20 h-20", icon: "chevron-right" }))));
|
|
25
82
|
}
|
|
83
|
+
static get watchers() { return {
|
|
84
|
+
"options": ["loadOptions"]
|
|
85
|
+
}; }
|
|
26
86
|
}, [0, "eds-input-select", {
|
|
27
87
|
"inputId": [1, "input-id"],
|
|
28
88
|
"name": [1],
|
|
@@ -32,7 +92,15 @@ const EdsInputSelect = /*@__PURE__*/ proxyCustomElement(class EdsInputSelect ext
|
|
|
32
92
|
"error": [4],
|
|
33
93
|
"required": [4],
|
|
34
94
|
"options": [16],
|
|
35
|
-
"
|
|
95
|
+
"labelKey": [1, "label-key"],
|
|
96
|
+
"valueKey": [1, "value-key"],
|
|
97
|
+
"value": [8],
|
|
98
|
+
"dynamicOptions": [32],
|
|
99
|
+
"loading": [32],
|
|
100
|
+
"dynamicValueKey": [32],
|
|
101
|
+
"dynamicLabelKey": [32]
|
|
102
|
+
}, undefined, {
|
|
103
|
+
"options": ["loadOptions"]
|
|
36
104
|
}]);
|
|
37
105
|
function defineCustomElement() {
|
|
38
106
|
if (typeof customElements === "undefined") {
|
|
@@ -147,12 +147,11 @@ const EdsLink = /*@__PURE__*/ proxyCustomElement(class EdsLink extends HTMLEleme
|
|
|
147
147
|
this.hideLabelOnSmallScreen = false;
|
|
148
148
|
this.extraClass = undefined;
|
|
149
149
|
}
|
|
150
|
-
|
|
150
|
+
handleParentContext(event) {
|
|
151
151
|
if (event.target !== this.el) {
|
|
152
152
|
// Ignore the event if it's not targeted at this specific instance
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
|
-
//console.log(event.detail);
|
|
156
155
|
this.parentContext = event.detail;
|
|
157
156
|
event.stopPropagation();
|
|
158
157
|
}
|
|
@@ -203,7 +202,7 @@ const EdsLink = /*@__PURE__*/ proxyCustomElement(class EdsLink extends HTMLEleme
|
|
|
203
202
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
204
203
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
205
204
|
: '';
|
|
206
|
-
return (h(ComponentType, { key: '
|
|
205
|
+
return (h(ComponentType, { key: '58eb3c1c5c192c2855424864c9e3e9c7a5fe3378', class: `${classes || ''} ${this.extraClass || ''}`, href: !this.disabled ? this.url : undefined, target: this.external && !this.disabled ? '_blank' : undefined, rel: this.external && !this.disabled ? 'noopener noreferrer' : undefined, "aria-label": this.label || this.ariaLabel || undefined, "aria-disabled": this.disabled ? 'true' : null, download: this.download ? '' : undefined, onClick: (event) => this.handleClick(event) }, h("span", { key: 'd4033ba589552f60f8dc7559434a3c035d226de4', class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), h("span", { key: 'ca520cc66febaf8c8ddfd2fd8ee8a13b71a3078d', class: labelClasses }, this.label), this.renderRightIcon())));
|
|
207
206
|
}
|
|
208
207
|
get el() { return this; }
|
|
209
208
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -222,7 +221,7 @@ const EdsLink = /*@__PURE__*/ proxyCustomElement(class EdsLink extends HTMLEleme
|
|
|
222
221
|
"disabled": [4],
|
|
223
222
|
"hideLabelOnSmallScreen": [4, "hide-label-on-small-screen"],
|
|
224
223
|
"extraClass": [1, "extra-class"]
|
|
225
|
-
}, [[0, "parentContext", "
|
|
224
|
+
}, [[0, "parentContext", "handleParentContext"]]]);
|
|
226
225
|
function defineCustomElement() {
|
|
227
226
|
if (typeof customElements === "undefined") {
|
|
228
227
|
return;
|
|
@@ -7,6 +7,7 @@ const EdsLogin$1 = /*@__PURE__*/ proxyCustomElement(class EdsLogin extends HTMLE
|
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
9
9
|
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
10
11
|
this.authStatusChanged = createEvent(this, "authStatusChanged", 7);
|
|
11
12
|
// Method to handle user logout
|
|
12
13
|
this.handleLogout = () => {
|
|
@@ -64,9 +65,9 @@ const EdsLogin$1 = /*@__PURE__*/ proxyCustomElement(class EdsLogin extends HTMLE
|
|
|
64
65
|
return this.authenticated ? 'Logout' : 'Login';
|
|
65
66
|
}
|
|
66
67
|
render() {
|
|
67
|
-
return (h("
|
|
68
|
+
return (h("eds-button", { key: '35f298ecf951d5b1087f988262ae7d312c5e2d38', label: this.getBtnLabel(), intent: "primary", "extra-class": "text-default", "aria-label": this.getBtnLabel(), triggerClick: this.authenticated ? this.handleLogout : this.handleLogin.bind(this) }));
|
|
68
69
|
}
|
|
69
|
-
}, [
|
|
70
|
+
}, [1, "eds-login", {
|
|
70
71
|
"keycloakUrl": [1, "keycloak-url"],
|
|
71
72
|
"keycloakRealm": [1, "keycloak-realm"],
|
|
72
73
|
"keycloakClientId": [1, "keycloak-client-id"],
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface EdsLogoVariations extends Components.EdsLogoVariations, HTMLElement {}
|
|
4
|
+
export const EdsLogoVariations: {
|
|
5
|
+
prototype: EdsLogoVariations;
|
|
6
|
+
new (): EdsLogoVariations;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$4 } from './eds-logo2.js';
|
|
3
|
+
import { d as defineCustomElement$3 } from './logo-variations-horizontal2.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './logo-variations-vertical2.js';
|
|
5
|
+
|
|
6
|
+
const EdsLogoVariations$1 = /*@__PURE__*/ proxyCustomElement(class EdsLogoVariations extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.tabIndex = undefined;
|
|
11
|
+
}
|
|
12
|
+
renderContent() {
|
|
13
|
+
switch (this.tabIndex) {
|
|
14
|
+
case 0:
|
|
15
|
+
return h("logo-variations-horizontal", null);
|
|
16
|
+
case 1:
|
|
17
|
+
return h("logo-variations-vertical", null);
|
|
18
|
+
default:
|
|
19
|
+
return h("p", null, "Content not available.");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return h("div", { key: '9d6ce0e75030d6e636aab423181b0ce999f6f1b0', class: "container" }, this.renderContent());
|
|
24
|
+
}
|
|
25
|
+
}, [0, "eds-logo-variations", {
|
|
26
|
+
"tabIndex": [2, "tab-index"]
|
|
27
|
+
}]);
|
|
28
|
+
function defineCustomElement$1() {
|
|
29
|
+
if (typeof customElements === "undefined") {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const components = ["eds-logo-variations", "eds-logo", "logo-variations-horizontal", "logo-variations-vertical"];
|
|
33
|
+
components.forEach(tagName => { switch (tagName) {
|
|
34
|
+
case "eds-logo-variations":
|
|
35
|
+
if (!customElements.get(tagName)) {
|
|
36
|
+
customElements.define(tagName, EdsLogoVariations$1);
|
|
37
|
+
}
|
|
38
|
+
break;
|
|
39
|
+
case "eds-logo":
|
|
40
|
+
if (!customElements.get(tagName)) {
|
|
41
|
+
defineCustomElement$4();
|
|
42
|
+
}
|
|
43
|
+
break;
|
|
44
|
+
case "logo-variations-horizontal":
|
|
45
|
+
if (!customElements.get(tagName)) {
|
|
46
|
+
defineCustomElement$3();
|
|
47
|
+
}
|
|
48
|
+
break;
|
|
49
|
+
case "logo-variations-vertical":
|
|
50
|
+
if (!customElements.get(tagName)) {
|
|
51
|
+
defineCustomElement$2();
|
|
52
|
+
}
|
|
53
|
+
break;
|
|
54
|
+
} });
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const EdsLogoVariations = EdsLogoVariations$1;
|
|
58
|
+
const defineCustomElement = defineCustomElement$1;
|
|
59
|
+
|
|
60
|
+
export { EdsLogoVariations, defineCustomElement };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import './color.js';
|
|
3
|
+
import { s as sendAnalytics } from './analytics.js';
|
|
2
4
|
import { d as defineCustomElement$3 } from './eds-button2.js';
|
|
3
5
|
import { d as defineCustomElement$2 } from './eds-icon-wrapper2.js';
|
|
4
6
|
|
|
5
|
-
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}";
|
|
7
|
+
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%}.left-20{left:1.25rem}.right-20{right:1.25rem}.top-1\\/2{top:50%}.top-20{top:1.25rem}.bottom-20{bottom:1.25rem}.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}";
|
|
6
8
|
const EdsModalStyle0 = edsModalCss;
|
|
7
9
|
|
|
8
10
|
const EdsModal$1 = /*@__PURE__*/ proxyCustomElement(class EdsModal extends HTMLElement {
|
|
@@ -14,33 +16,59 @@ const EdsModal$1 = /*@__PURE__*/ proxyCustomElement(class EdsModal extends HTMLE
|
|
|
14
16
|
this.title = '';
|
|
15
17
|
this.truncate = true;
|
|
16
18
|
this.truncateLines = '1';
|
|
19
|
+
this.position = 'middle';
|
|
17
20
|
}
|
|
18
21
|
getTruncateClass() {
|
|
19
22
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
20
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns the Tailwind CSS classes to position the modal based on the `position` prop.
|
|
26
|
+
*
|
|
27
|
+
* @private
|
|
28
|
+
* @returns {string} The concatenated CSS classes for modal positioning.
|
|
29
|
+
*/
|
|
30
|
+
getModalPositionClasses() {
|
|
31
|
+
switch (this.position) {
|
|
32
|
+
case 'top':
|
|
33
|
+
return 'left-1/2 top-20 -translate-x-1/2';
|
|
34
|
+
case 'bottom':
|
|
35
|
+
return 'left-1/2 bottom-20 -translate-x-1/2';
|
|
36
|
+
case 'left':
|
|
37
|
+
return 'left-20 top-1/2 -translate-y-1/2';
|
|
38
|
+
case 'right':
|
|
39
|
+
return 'right-20 top-1/2 -translate-y-1/2';
|
|
40
|
+
case 'middle':
|
|
41
|
+
default:
|
|
42
|
+
return 'left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2';
|
|
43
|
+
}
|
|
44
|
+
}
|
|
21
45
|
/**
|
|
22
46
|
* Opens the modal.
|
|
23
47
|
*/
|
|
24
48
|
async open() {
|
|
49
|
+
var _a;
|
|
25
50
|
this.isOpen = true;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
51
|
+
sendAnalytics({
|
|
52
|
+
category: 'ui-component',
|
|
53
|
+
parentContext: null,
|
|
54
|
+
tag: this.el.tagName.toLowerCase(),
|
|
55
|
+
name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
56
|
+
action: 'opened'
|
|
57
|
+
});
|
|
32
58
|
}
|
|
33
59
|
/**
|
|
34
60
|
* Closes the modal.
|
|
35
61
|
*/
|
|
36
62
|
async close() {
|
|
63
|
+
var _a;
|
|
37
64
|
this.isOpen = false;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
65
|
+
sendAnalytics({
|
|
66
|
+
category: 'ui-component',
|
|
67
|
+
parentContext: null,
|
|
68
|
+
tag: this.el.tagName.toLowerCase(),
|
|
69
|
+
name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
70
|
+
action: 'closed'
|
|
71
|
+
});
|
|
44
72
|
}
|
|
45
73
|
/**
|
|
46
74
|
* Toggles the modal open or closed.
|
|
@@ -54,30 +82,27 @@ const EdsModal$1 = /*@__PURE__*/ proxyCustomElement(class EdsModal extends HTMLE
|
|
|
54
82
|
*/
|
|
55
83
|
componentDidLoad() {
|
|
56
84
|
// Emit context for each eds-link element after the component is fully loaded
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
this.emitContext(btn);
|
|
60
|
-
});
|
|
85
|
+
//const btn = this.el.shadowRoot.querySelector('eds-button');
|
|
86
|
+
//this.emitContext(btn);
|
|
61
87
|
}
|
|
62
88
|
/**
|
|
63
89
|
* Emits a custom event called `parentContext` for a given button element.
|
|
64
90
|
* This event provides context information about the eds-modal component.
|
|
65
|
-
*
|
|
66
|
-
* @param btnElement - The link element to which the event will be dispatched.
|
|
67
91
|
*/
|
|
68
|
-
emitContext(btnElement) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
92
|
+
/*emitContext(btnElement: HTMLElement) {
|
|
93
|
+
const event = new CustomEvent<ParentContextDetail>('parentContext', {
|
|
94
|
+
detail: {
|
|
95
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
96
|
+
identifier: null
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
btnElement.dispatchEvent(event);
|
|
101
|
+
}*/
|
|
77
102
|
render() {
|
|
78
|
-
return (h("div", { key: '
|
|
103
|
+
return (h("div", { key: 'eedcdc49c9f4a16ef4537ec02335757aa1143bd9', class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-50 flex` }, this.isOpen && (h("div", { key: '2b24903b85895fd5eca389d6897aa85c892e762f', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
79
104
|
,
|
|
80
|
-
onClick: () => this.close() })), h("div", { key: '
|
|
105
|
+
onClick: () => this.close() })), h("div", { key: 'd135a2d9eff1764b6335b9b16be54d8fec7d4112', class: `max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 ${this.getModalPositionClasses()} grow justify-center` }, h("div", { key: 'bc8ea6f95443f01d3e5b88953581e1f2eae4009c', class: "flex justify-between items-center border-b-2 border-softer pb-8" }, h("span", { key: '872b9a4bf44db478d38f18d3459a816c119f352d', class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.title), h("eds-button", { key: 'bdf27a3f564d295383985cb1f0ce7df7f13a97fb', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), h("div", { key: '600cc4d544d0a41d9d2be74aedbb0d2fe2028141', class: "pt-8" }, h("slot", { key: '8ce560804a6d960b4075e4b6d1607dda6530c08d' })))));
|
|
81
106
|
}
|
|
82
107
|
get el() { return this; }
|
|
83
108
|
static get style() { return EdsModalStyle0; }
|
|
@@ -85,6 +110,7 @@ const EdsModal$1 = /*@__PURE__*/ proxyCustomElement(class EdsModal extends HTMLE
|
|
|
85
110
|
"title": [1],
|
|
86
111
|
"truncate": [4],
|
|
87
112
|
"truncateLines": [1, "truncate-lines"],
|
|
113
|
+
"position": [1],
|
|
88
114
|
"isOpen": [32],
|
|
89
115
|
"open": [64],
|
|
90
116
|
"close": [64],
|
|
@@ -31,14 +31,18 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
|
|
|
31
31
|
componentDidLoad() {
|
|
32
32
|
// Emit context for each eds-link element after the component is fully loaded
|
|
33
33
|
const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
links.forEach((lnk) => {
|
|
35
|
+
this.emitContext(lnk);
|
|
36
|
+
});
|
|
37
|
+
/*if (links.length > 0) {
|
|
38
|
+
// Emit context for the first link
|
|
39
|
+
this.emitContext(links[0]);
|
|
40
|
+
|
|
41
|
+
// Emit context for the last link, if it's different from the first
|
|
42
|
+
if (links.length > 1) {
|
|
43
|
+
this.emitContext(links[links.length - 1]);
|
|
44
|
+
}
|
|
45
|
+
}*/
|
|
42
46
|
}
|
|
43
47
|
/**
|
|
44
48
|
* Emits a custom event called `parentContext` for a given link element.
|
|
@@ -168,7 +172,7 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
|
|
|
168
172
|
}
|
|
169
173
|
}
|
|
170
174
|
render() {
|
|
171
|
-
return (h("div", { key: '
|
|
175
|
+
return (h("div", { key: '584e0918b070eac25a7c4bfceff59b000b60076c' }, this.total > 0 && this.mode === 'default' && (h("p", { key: 'c688bd8e1f1d15904fc274454093f03213f59e38', class: "f-ui-03 text-lightest mb-28 w-full text-center" }, h("span", { key: 'c2472919bad41f76e26d518da27509e545ed9db6', class: "sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (h("nav", { "aria-label": "Pagination" }, h("ul", { class: "flex items-center justify-center gap-x-8" }, h("li", { class: "mr-auto" }, h("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
|
|
172
176
|
? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
|
|
173
177
|
: this.isFirstPage()
|
|
174
178
|
? '#'
|
|
@@ -15,10 +15,8 @@ const EdsRating$1 = /*@__PURE__*/ proxyCustomElement(class EdsRating extends HTM
|
|
|
15
15
|
this.selectedRating = 0;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Parses the `
|
|
19
|
-
* Returns an empty array if parsing fails
|
|
20
|
-
*
|
|
21
|
-
* @returns {any[]} Array of parsed link objects
|
|
18
|
+
* Parses the `textMapping` prop into an array of strings.
|
|
19
|
+
* Returns an empty array if parsing fails.
|
|
22
20
|
*/
|
|
23
21
|
get parsedMappings() {
|
|
24
22
|
if (typeof this.textMapping === 'object') {
|
|
@@ -30,7 +28,7 @@ const EdsRating$1 = /*@__PURE__*/ proxyCustomElement(class EdsRating extends HTM
|
|
|
30
28
|
}
|
|
31
29
|
catch (e) {
|
|
32
30
|
// eslint-disable-next-line
|
|
33
|
-
console.error('Error parsing
|
|
31
|
+
console.error('Error parsing textMapping prop:', e);
|
|
34
32
|
return [];
|
|
35
33
|
}
|
|
36
34
|
}
|
|
@@ -45,16 +43,16 @@ const EdsRating$1 = /*@__PURE__*/ proxyCustomElement(class EdsRating extends HTM
|
|
|
45
43
|
this.ratingChange.emit(rating);
|
|
46
44
|
}
|
|
47
45
|
render() {
|
|
48
|
-
return (h("div", { key: '
|
|
46
|
+
return (h("div", { key: 'c9147c2635f091d93f329d2b56a5fee8dce9126c', class: "relative w-full flex flex-col" }, h("span", { key: '39a84bc3d9bcd4b729a35737c883eca7144d13ac', class: "f-body-01" }, this.label), h("div", { key: '3cb84acf399cac0b23393c71df2f2b36aab4f43e', class: "stars" }, Array.from({ length: this.stars }, (_, index) => (h("span", { class: {
|
|
49
47
|
star: true,
|
|
50
48
|
filled: index < this.selectedRating
|
|
51
|
-
}, onClick: () => this.handleClick(index + 1) }, "\u2605")))), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (h("span", { key: '
|
|
49
|
+
}, onClick: () => this.handleClick(index + 1) }, "\u2605")))), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (h("span", { key: '60605ec21b542825da0dad629fc1618d9cf63b25', class: "f-ui-04 text-lighter" }, this.parsedMappings[this.selectedRating - 1]))));
|
|
52
50
|
}
|
|
53
51
|
static get style() { return EdsRatingStyle0; }
|
|
54
52
|
}, [1, "eds-rating", {
|
|
55
53
|
"stars": [2],
|
|
56
54
|
"label": [1],
|
|
57
|
-
"textMapping": [
|
|
55
|
+
"textMapping": [1, "text-mapping"],
|
|
58
56
|
"selectedRating": [32]
|
|
59
57
|
}]);
|
|
60
58
|
function defineCustomElement$1() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as
|
|
1
|
+
import { E as EdsSocialNetworks$1, d as defineCustomElement$1 } from './eds-social-networks2.js';
|
|
2
2
|
|
|
3
|
-
const EdsSocialNetworks =
|
|
3
|
+
const EdsSocialNetworks = EdsSocialNetworks$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
5
5
|
|
|
6
6
|
export { EdsSocialNetworks, defineCustomElement };
|
|
@@ -2,10 +2,10 @@ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/clien
|
|
|
2
2
|
import { d as defineCustomElement$2 } from './eds-icon-wrapper2.js';
|
|
3
3
|
import { d as defineCustomElement$1 } from './eds-link2.js';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
const EdsSocialNetworksStyle0 =
|
|
5
|
+
const edsSocialNetworksCss = "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}";
|
|
6
|
+
const EdsSocialNetworksStyle0 = edsSocialNetworksCss;
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const EdsSocialNetworks = /*@__PURE__*/ proxyCustomElement(class EdsSocialNetworks extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
10
10
|
super();
|
|
11
11
|
this.__registerHost();
|
|
@@ -58,7 +58,7 @@ const EdsSocialNetwork = /*@__PURE__*/ proxyCustomElement(class EdsSocialNetwork
|
|
|
58
58
|
* @returns {JSX.Element} The rendered JSX for the component.
|
|
59
59
|
*/
|
|
60
60
|
render() {
|
|
61
|
-
return (h("div", { key: '
|
|
61
|
+
return (h("div", { key: 'a6a3e2084eb01def71f6fee67ebe8c5f4f613c89' }, h("p", { key: '43b92e9c33f8abef6070a6a3cd77f7573e2ab454', class: "f-ui-02" }, this.title), h("ul", { key: 'c0e0dfdeff373885f62250c8bf4385268410406c', 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" })))))));
|
|
62
62
|
}
|
|
63
63
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
64
64
|
}, [1, "eds-social-networks", {
|
|
@@ -72,7 +72,7 @@ function defineCustomElement() {
|
|
|
72
72
|
components.forEach(tagName => { switch (tagName) {
|
|
73
73
|
case "eds-social-networks":
|
|
74
74
|
if (!customElements.get(tagName)) {
|
|
75
|
-
customElements.define(tagName,
|
|
75
|
+
customElements.define(tagName, EdsSocialNetworks);
|
|
76
76
|
}
|
|
77
77
|
break;
|
|
78
78
|
case "eds-icon-wrapper":
|
|
@@ -88,4 +88,4 @@ function defineCustomElement() {
|
|
|
88
88
|
} });
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
export {
|
|
91
|
+
export { EdsSocialNetworks as E, defineCustomElement as d };
|
|
@@ -315,6 +315,11 @@ const EdsSvgRepository$1 = /*@__PURE__*/ proxyCustomElement(class EdsSvgReposito
|
|
|
315
315
|
icon: svgContent // Pass SVG content as innerHTML
|
|
316
316
|
}));
|
|
317
317
|
}
|
|
318
|
+
get hostWidth() {
|
|
319
|
+
// Instead of using window.innerWidth, use the parent element's width.
|
|
320
|
+
const containerWidth = this.hostEl.parentElement ? this.hostEl.parentElement.offsetWidth : 400;
|
|
321
|
+
return containerWidth;
|
|
322
|
+
}
|
|
318
323
|
render() {
|
|
319
324
|
const svgData = this.getSvgData();
|
|
320
325
|
// Define table configuration
|
|
@@ -322,8 +327,9 @@ const EdsSvgRepository$1 = /*@__PURE__*/ proxyCustomElement(class EdsSvgReposito
|
|
|
322
327
|
icon: { format: 'svg' },
|
|
323
328
|
name: { format: 'bold' }
|
|
324
329
|
};
|
|
325
|
-
return (h("eds-table", { key: '
|
|
330
|
+
return (h("eds-table", { key: 'a1d4a1db6f0886a43513fc34707cdd6140ab685d', data: JSON.stringify(svgData), config: JSON.stringify(tableConfig), "rows-per-page": 10, "search-enabled": true, "pagination-enabled": true, "host-width": this.hostWidth }));
|
|
326
331
|
}
|
|
332
|
+
get hostEl() { return this; }
|
|
327
333
|
}, [1, "eds-svg-repository"]);
|
|
328
334
|
function defineCustomElement$1() {
|
|
329
335
|
if (typeof customElements === "undefined") {
|