@ebrains/components 0.0.1-alpha.0 → 0.2.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-ac51ccf7.js → color-3ffe3072.js} +6 -6
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
- package/dist/cjs/components.cjs.js +3 -30
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/eds-accordion.cjs.entry.js +5 -4
- package/dist/cjs/{eds-accordion_23.cjs.entry.js → eds-alert_28.cjs.entry.js} +394 -221
- package/dist/cjs/eds-block-break.cjs.entry.js +3 -2
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +3 -2
- package/dist/cjs/eds-card-project.cjs.entry.js +5 -5
- package/dist/cjs/eds-card-section.cjs.entry.js +4 -3
- package/dist/cjs/eds-card-tags.cjs.entry.js +3 -2
- package/dist/cjs/eds-card-tool.cjs.entry.js +6 -5
- package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/eds-code-block.cjs.entry.js +4 -34
- package/dist/cjs/eds-components-section.cjs.entry.js +2 -2
- package/dist/cjs/eds-docs-palettes.cjs.entry.js +2 -2
- package/dist/cjs/eds-docs-tokens.cjs.entry.js +2 -2
- package/dist/cjs/eds-footer.cjs.entry.js +4 -3
- package/dist/cjs/eds-frame.cjs.entry.js +1 -1
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +3 -2
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-close.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-copy.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-eu.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-loader.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-menu.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-more.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-search.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-success.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-user.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +3 -3
- package/dist/cjs/eds-login.cjs.entry.js +3 -3
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +7 -6
- package/dist/cjs/eds-modal.cjs.entry.js +45 -5
- package/dist/cjs/eds-navigator.cjs.entry.js +1 -1
- package/dist/cjs/eds-pagination.cjs.entry.js +3 -2
- package/dist/cjs/eds-rating.cjs.entry.js +3 -2
- package/dist/cjs/eds-section-core_2.cjs.entry.js +1 -1
- package/dist/cjs/eds-social-networks.cjs.entry.js +4 -3
- package/dist/cjs/eds-svg-repository.cjs.entry.js +292 -4
- package/dist/cjs/eds-tab.cjs.entry.js +2 -2
- package/dist/cjs/eds-table.cjs.entry.js +3 -2
- package/dist/cjs/eds-tabs-content.cjs.entry.js +6 -6
- package/dist/cjs/eds-tabs.cjs.entry.js +7 -6
- package/dist/cjs/eds-tooltip.cjs.entry.js +4 -3
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/{index-2cc3495f.js → index-f08e4f5c.js} +22 -13
- package/dist/cjs/{loader-5efe2c21.js → loader-72f9d178.js} +2 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/logo-space.cjs.entry.js +5 -4
- package/dist/cjs/logo-variations-horizontal.cjs.entry.js +3 -2
- package/dist/cjs/logo-variations-vertical.cjs.entry.js +3 -2
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +5 -4
- package/dist/cjs/token-list_3.cjs.entry.js +4 -4
- package/dist/cjs/token-ratios.cjs.entry.js +2 -2
- package/dist/cjs/token-spacing.cjs.entry.js +2 -2
- package/dist/cjs/token-typography.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +21 -1
- package/dist/collection/components/eds-form/eds-form.css +10 -0
- package/dist/collection/components/eds-form/eds-form.js +111 -20
- package/dist/collection/components/eds-input-field/eds-input-field.css +16 -6
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- package/dist/collection/components/eds-modal/eds-modal.css +8 -0
- package/dist/collection/components/eds-modal/eds-modal.js +42 -2
- package/dist/collection/components/eds-timeline/eds-timeline.js +89 -0
- package/dist/collection/components/eds-timeline/eds-timeline.stories.js +35 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
- package/dist/collection/components/eds-trl/eds-trl.css +0 -0
- package/dist/collection/components/eds-trl/eds-trl.js +61 -0
- package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
- package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
- package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +1 -1
- package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
- package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +1 -1
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
- package/dist/collection/shared-ui/eds-header/eds-header.js +3 -3
- package/dist/collection/shared-ui/eds-login/eds-login.js +1 -1
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +1 -1
- 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.js +1 -1
- package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -1
- package/dist/components/analytics.js +6 -6
- package/dist/components/components.css +31 -0
- package/dist/components/components.esm.js +1 -47
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/eds-accordion2.js +4 -3
- package/dist/components/eds-alert2.js +3 -2
- package/dist/components/eds-avatar2.js +3 -2
- package/dist/components/eds-block-break2.js +2 -1
- package/dist/components/eds-breadcrumb.js +2 -1
- package/dist/components/eds-button2.js +5 -3
- package/dist/components/eds-card-desc2.js +2 -1
- package/dist/components/eds-card-generic2.js +17 -4
- package/dist/components/eds-card-project.js +2 -1
- package/dist/components/eds-card-section.js +3 -2
- package/dist/components/eds-card-tags.js +2 -1
- package/dist/components/eds-card-title2.js +2 -1
- package/dist/components/eds-card-tool.js +4 -2
- package/dist/components/eds-code-block2.js +3 -33
- package/dist/components/eds-components-section.js +1 -1
- package/dist/components/eds-docs-palettes.js +1 -1
- package/dist/components/eds-docs-tokens.js +1 -1
- package/dist/components/eds-dropdown2.js +2 -1
- package/dist/components/eds-footer2.js +3 -2
- package/dist/components/eds-form.js +97 -22
- package/dist/components/eds-fullscreen-menu.js +2 -1
- package/dist/components/eds-header.js +5 -4
- package/dist/components/eds-icon-arrow-diagonal.js +1 -1
- package/dist/components/eds-icon-arrow-right.js +1 -1
- package/dist/components/eds-icon-bluesky.js +1 -1
- package/dist/components/eds-icon-chevron-down.js +1 -1
- package/dist/components/eds-icon-chevron-left.js +1 -1
- package/dist/components/eds-icon-chevron-right.js +1 -1
- package/dist/components/eds-icon-chevron-up.js +1 -1
- package/dist/components/eds-icon-close.js +1 -1
- package/dist/components/eds-icon-copy.js +1 -1
- package/dist/components/eds-icon-eu.js +1 -1
- package/dist/components/eds-icon-facebook.js +1 -1
- package/dist/components/eds-icon-gitlab.js +1 -1
- package/dist/components/eds-icon-linkedin.js +1 -1
- package/dist/components/eds-icon-loader.js +1 -1
- package/dist/components/eds-icon-mastodon.js +1 -1
- package/dist/components/eds-icon-menu.js +1 -1
- package/dist/components/eds-icon-more.js +1 -1
- package/dist/components/eds-icon-search.js +1 -1
- package/dist/components/eds-icon-success.js +1 -1
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-user.js +1 -1
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +2 -1
- package/dist/components/eds-input-field2.js +5 -4
- package/dist/components/eds-link2.js +5 -3
- package/dist/components/eds-login.js +1 -1
- package/dist/components/eds-logo2.js +6 -3
- package/dist/components/eds-matomo-notice.js +4 -2
- package/dist/components/eds-modal.js +44 -4
- package/dist/components/eds-pagination2.js +2 -1
- package/dist/components/eds-progress-bar.js +1 -40
- package/dist/{esm/eds-progress-bar.entry.js → components/eds-progress-bar2.js} +26 -7
- package/dist/components/eds-rating.js +2 -1
- package/dist/components/eds-section-core2.js +2 -1
- package/dist/components/eds-social-networks2.js +3 -2
- package/dist/components/eds-svg-repository.js +290 -2
- package/dist/components/eds-tab2.js +1 -1
- package/dist/components/eds-table2.js +2 -1
- package/dist/components/eds-tabs-content.js +5 -4
- package/dist/components/eds-tabs.js +6 -4
- package/dist/components/eds-tag2.js +3 -2
- package/dist/components/eds-timeline.d.ts +11 -0
- package/dist/components/eds-timeline.js +118 -0
- package/dist/components/eds-toast-manager.js +3 -2
- package/dist/components/eds-toast2.js +1 -1
- package/dist/components/eds-tooltip.js +3 -2
- package/dist/components/eds-trl.d.ts +11 -0
- package/dist/components/eds-trl.js +59 -0
- package/dist/components/eds-user-modal2.js +3 -2
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/index.esm.js +0 -1
- package/dist/components/index2.js +44 -399
- package/dist/components/keycloak.js +0 -10
- package/dist/components/loader.js +2 -5
- package/dist/components/logo-space.js +4 -3
- package/dist/components/logo-variations-horizontal.js +2 -1
- package/dist/components/logo-variations-vertical.js +2 -1
- package/dist/components/logo-wrong-usage.js +4 -3
- package/dist/components/{p-877403df.entry.js → p-02e2a62f.entry.js} +1 -1
- package/dist/components/{p-e2e715a2.entry.js → p-04e47e04.entry.js} +1 -1
- package/dist/components/{p-e639818b.entry.js → p-0a3b2576.entry.js} +1 -1
- package/dist/components/{p-6bc00fad.entry.js → p-0c2e844e.entry.js} +1 -1
- package/dist/components/{p-1d94d663.entry.js → p-0c99ef81.entry.js} +1 -1
- package/dist/components/{p-378d371f.entry.js → p-145f13ad.entry.js} +1 -1
- package/dist/components/{p-0a195bfe.entry.js → p-16458a81.entry.js} +1 -1
- package/dist/components/{p-e69ff916.entry.js → p-1bcfbaf1.entry.js} +1 -1
- package/dist/components/p-2117611b.js +1 -0
- package/dist/components/{p-513bf756.entry.js → p-22762818.entry.js} +1 -1
- package/dist/components/p-22f9e720.js +1 -0
- package/dist/components/{p-e04097a2.entry.js → p-272d249f.entry.js} +1 -1
- package/dist/components/p-297b2bc3.entry.js +1 -0
- package/dist/components/p-2d8508cd.entry.js +1 -0
- package/dist/components/p-32cddd94.entry.js +1 -0
- package/dist/components/{p-0611bbac.entry.js → p-32f282a9.entry.js} +1 -1
- package/dist/components/p-373673ca.js +1 -0
- package/dist/components/{p-677f60bc.entry.js → p-388b4966.entry.js} +1 -1
- package/dist/components/p-3a2e8ef3.entry.js +1 -0
- package/dist/components/p-3afafa59.entry.js +1 -0
- package/dist/components/p-3b40559e.entry.js +1 -0
- package/dist/components/{p-ff6b25a1.entry.js → p-4037ad48.entry.js} +1 -1
- package/dist/components/{p-c16b3c0c.entry.js → p-42b4ecff.entry.js} +1 -1
- package/dist/components/p-490ba155.entry.js +1 -0
- package/dist/components/p-4932aab2.entry.js +1 -0
- package/dist/components/p-49958f77.entry.js +1 -0
- package/dist/components/p-4a24c2ce.entry.js +1 -0
- package/dist/components/{p-b544f216.entry.js → p-54c75346.entry.js} +1 -1
- package/dist/components/{p-42dfb426.entry.js → p-551c0b58.entry.js} +1 -1
- package/dist/components/{p-6f601454.entry.js → p-559b6ec9.entry.js} +1 -1
- package/dist/components/p-5aad9d3f.entry.js +1 -0
- package/dist/components/{p-9c74a5dd.entry.js → p-5ae9722b.entry.js} +1 -1
- package/dist/components/{p-3dbf2ac9.entry.js → p-5eb32f03.entry.js} +1 -1
- package/dist/components/{p-2728a189.entry.js → p-5fc68438.entry.js} +1 -1
- package/dist/components/p-673dce11.entry.js +1 -0
- package/dist/components/{p-c0afe524.entry.js → p-6fc62452.entry.js} +1 -1
- package/dist/components/{p-36c0f3ee.entry.js → p-73bd0c97.entry.js} +1 -1
- package/dist/components/p-79887c2c.entry.js +1 -0
- package/dist/components/{p-e9a1fb1e.js → p-7a8b9de5.js} +2 -2
- package/dist/components/p-846fc91c.entry.js +1 -0
- package/dist/components/p-8c56e39a.entry.js +1 -0
- package/dist/components/{p-caf2af08.entry.js → p-9000b245.entry.js} +1 -1
- package/dist/components/p-96c4deda.entry.js +1 -0
- package/dist/components/{p-4541cb5f.entry.js → p-9722811d.entry.js} +1 -1
- package/dist/components/p-a44a1abe.entry.js +1 -0
- package/dist/components/p-a4e9b68b.entry.js +1 -0
- package/dist/components/{p-55444767.entry.js → p-b14ef448.entry.js} +1 -1
- package/dist/components/{p-25eb1801.entry.js → p-b203eb1b.entry.js} +1 -1
- package/dist/components/{p-49a5eef5.entry.js → p-b33941a0.entry.js} +1 -1
- package/dist/components/{p-c11d93cf.entry.js → p-b717f95a.entry.js} +1 -1
- package/dist/components/{p-fa1276cc.entry.js → p-bb60412b.entry.js} +1 -1
- package/dist/components/{p-7a2b35b4.entry.js → p-bca40434.entry.js} +1 -1
- package/dist/components/{p-6cb8c52d.entry.js → p-bdd86a3c.entry.js} +1 -1
- package/dist/components/p-bf0f851d.entry.js +1 -0
- package/dist/components/{p-82453a66.entry.js → p-c2d369bc.entry.js} +1 -1
- package/dist/components/{p-94b74ae8.entry.js → p-c9c3cc49.entry.js} +1 -1
- package/dist/components/p-d1670eec.entry.js +1 -0
- package/dist/components/{p-bad2a33a.entry.js → p-d6d86366.entry.js} +1 -1
- package/dist/components/p-d9788b54.entry.js +1 -0
- package/dist/components/{p-64d4a6e0.entry.js → p-df93db96.entry.js} +1 -1
- package/dist/components/{p-606d8f86.entry.js → p-e20ed2c7.entry.js} +1 -1
- package/dist/components/{p-200ad980.entry.js → p-e6bfbf51.entry.js} +1 -1
- package/dist/components/{p-ddd005a3.entry.js → p-e74834bc.entry.js} +1 -1
- package/dist/components/p-ebed87b8.entry.js +1 -0
- package/dist/components/{p-b94318f2.entry.js → p-f7a6ce69.entry.js} +1 -1
- package/dist/components/{p-1a1b8e28.entry.js → p-ff5de62c.entry.js} +1 -1
- package/dist/components/p-ffec8755.entry.js +1 -0
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/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-49aa977d.js → color-0ba8ed56.js} +6 -6
- package/dist/esm/color-primary-palette_6.entry.js +15 -15
- package/dist/esm/components.js +4 -31
- package/dist/esm/correct-use-of-colors.entry.js +2 -2
- package/dist/esm/eds-accordion.entry.js +5 -4
- package/dist/esm/{eds-accordion_23.entry.js → eds-alert_28.entry.js} +385 -217
- package/dist/esm/eds-block-break.entry.js +3 -2
- package/dist/esm/eds-breadcrumb.entry.js +3 -2
- package/dist/esm/eds-card-project.entry.js +3 -3
- package/dist/esm/eds-card-section.entry.js +4 -3
- package/dist/esm/eds-card-tags.entry.js +3 -2
- package/dist/esm/eds-card-tool.entry.js +5 -4
- package/dist/esm/eds-card-wrapper.entry.js +1 -1
- package/dist/esm/eds-code-block.entry.js +4 -34
- package/dist/esm/eds-components-section.entry.js +2 -2
- package/dist/esm/eds-docs-palettes.entry.js +2 -2
- package/dist/esm/eds-docs-tokens.entry.js +2 -2
- package/dist/esm/eds-footer.entry.js +4 -3
- package/dist/esm/eds-frame.entry.js +1 -1
- package/dist/esm/eds-fullscreen-menu.entry.js +3 -2
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
- package/dist/esm/eds-icon-arrow-right.entry.js +2 -2
- package/dist/esm/eds-icon-bluesky.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-down.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-left.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-right.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-up.entry.js +2 -2
- package/dist/esm/eds-icon-close.entry.js +2 -2
- package/dist/esm/eds-icon-copy.entry.js +2 -2
- package/dist/esm/eds-icon-eu.entry.js +2 -2
- package/dist/esm/eds-icon-facebook.entry.js +2 -2
- package/dist/esm/eds-icon-gitlab.entry.js +2 -2
- package/dist/esm/eds-icon-linkedin.entry.js +2 -2
- package/dist/esm/eds-icon-loader.entry.js +2 -2
- package/dist/esm/eds-icon-mastodon.entry.js +2 -2
- package/dist/esm/eds-icon-menu.entry.js +2 -2
- package/dist/esm/eds-icon-more.entry.js +2 -2
- package/dist/esm/eds-icon-search.entry.js +2 -2
- package/dist/esm/eds-icon-success.entry.js +2 -2
- package/dist/esm/eds-icon-twitter.entry.js +2 -2
- package/dist/esm/eds-icon-user.entry.js +2 -2
- package/dist/esm/eds-icon-youtube.entry.js +2 -2
- package/dist/esm/eds-login.entry.js +3 -3
- package/dist/esm/eds-matomo-notice.entry.js +6 -5
- package/dist/esm/eds-modal.entry.js +45 -5
- package/dist/esm/eds-navigator.entry.js +1 -1
- package/dist/esm/eds-pagination.entry.js +3 -2
- package/dist/esm/eds-rating.entry.js +3 -2
- package/dist/esm/eds-section-core_2.entry.js +1 -1
- package/dist/esm/eds-social-networks.entry.js +4 -3
- package/dist/esm/eds-svg-repository.entry.js +291 -3
- package/dist/esm/eds-tab.entry.js +2 -2
- package/dist/esm/eds-table.entry.js +3 -2
- package/dist/esm/eds-tabs-content.entry.js +5 -5
- package/dist/esm/eds-tabs.entry.js +6 -5
- package/dist/esm/eds-tooltip.entry.js +4 -3
- package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
- package/dist/esm/{index-f1426055.js → index-e96badea.js} +22 -13
- package/dist/esm/{loader-66341740.js → loader-c9628637.js} +2 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/logo-space.entry.js +5 -4
- package/dist/esm/logo-variations-horizontal.entry.js +3 -2
- package/dist/esm/logo-variations-vertical.entry.js +3 -2
- package/dist/esm/logo-wrong-usage.entry.js +5 -4
- package/dist/esm/token-list_3.entry.js +4 -4
- package/dist/esm/token-ratios.entry.js +2 -2
- package/dist/esm/token-spacing.entry.js +2 -2
- package/dist/esm/token-typography.entry.js +2 -2
- package/dist/hydrate/index.js +363 -115
- package/dist/hydrate/index.mjs +363 -115
- package/dist/stencil.config.js +4 -3
- package/dist/types/components/eds-accordion/eds-accordion.d.ts +2 -2
- package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +2 -0
- package/dist/types/components/eds-form/eds-form.d.ts +8 -0
- package/dist/types/components/eds-modal/eds-modal.d.ts +16 -0
- package/dist/types/components/eds-timeline/eds-timeline.d.ts +29 -0
- package/dist/types/components/eds-timeline/eds-timeline.stories.d.ts +24 -0
- package/dist/types/components/eds-trl/eds-trl.d.ts +9 -0
- package/dist/types/components.d.ts +44 -0
- package/package.json +3 -3
- package/dist/cjs/color-primary-palette.cjs.entry.js +0 -43
- package/dist/cjs/color-secondary-palette.cjs.entry.js +0 -68
- package/dist/cjs/color-support-palette.cjs.entry.js +0 -59
- package/dist/cjs/eds-alert.cjs.entry.js +0 -95
- package/dist/cjs/eds-avatar.cjs.entry.js +0 -73
- package/dist/cjs/eds-button.cjs.entry.js +0 -233
- package/dist/cjs/eds-card-desc.cjs.entry.js +0 -26
- package/dist/cjs/eds-card-desc_3.cjs.entry.js +0 -117
- package/dist/cjs/eds-card-generic.cjs.entry.js +0 -93
- package/dist/cjs/eds-card-title.cjs.entry.js +0 -56
- package/dist/cjs/eds-dropdown.cjs.entry.js +0 -129
- package/dist/cjs/eds-form.cjs.entry.js +0 -249
- package/dist/cjs/eds-header.cjs.entry.js +0 -96
- package/dist/cjs/eds-icon-wrapper.cjs.entry.js +0 -40
- package/dist/cjs/eds-img.cjs.entry.js +0 -57
- package/dist/cjs/eds-input-field.cjs.entry.js +0 -72
- package/dist/cjs/eds-input-footer.cjs.entry.js +0 -21
- package/dist/cjs/eds-input-label.cjs.entry.js +0 -20
- package/dist/cjs/eds-input-range.cjs.entry.js +0 -39
- package/dist/cjs/eds-input-search.cjs.entry.js +0 -41
- package/dist/cjs/eds-input-select.cjs.entry.js +0 -30
- package/dist/cjs/eds-input.cjs.entry.js +0 -68
- package/dist/cjs/eds-link.cjs.entry.js +0 -211
- package/dist/cjs/eds-logo.cjs.entry.js +0 -76
- package/dist/cjs/eds-progress-bar.cjs.entry.js +0 -28
- package/dist/cjs/eds-section-core.cjs.entry.js +0 -23
- package/dist/cjs/eds-section-heading.cjs.entry.js +0 -41
- package/dist/cjs/eds-tag.cjs.entry.js +0 -44
- package/dist/cjs/eds-toast-manager.cjs.entry.js +0 -45
- package/dist/cjs/eds-toast.cjs.entry.js +0 -53
- package/dist/cjs/eds-user-modal.cjs.entry.js +0 -47
- package/dist/cjs/eds-user.cjs.entry.js +0 -90
- package/dist/cjs/gradient-primary-palette.cjs.entry.js +0 -45
- package/dist/cjs/gradient-secondary-palette.cjs.entry.js +0 -79
- package/dist/cjs/gradient-support-palette.cjs.entry.js +0 -63
- package/dist/cjs/index-1ff5f25c.js +0 -48
- package/dist/cjs/index-383d2951.js +0 -3449
- package/dist/cjs/index-96a4261e.js +0 -405
- package/dist/cjs/index-f62478aa.js +0 -1837
- package/dist/cjs/keycloak-940b83c1.js +0 -1910
- package/dist/cjs/shadow-css-988e4292.js +0 -334
- package/dist/cjs/token-list.cjs.entry.js +0 -253
- package/dist/cjs/token-radii.cjs.entry.js +0 -25
- package/dist/cjs/token-shadows.cjs.entry.js +0 -34
- package/dist/components/app-globals-0f993ce5.js +0 -3
- package/dist/components/color-primary-palette.entry.js +0 -39
- package/dist/components/color-secondary-palette.entry.js +0 -64
- package/dist/components/color-support-palette.entry.js +0 -55
- package/dist/components/correct-use-of-colors.entry.js +0 -64
- package/dist/components/eds-accordion.entry.js +0 -88
- package/dist/components/eds-alert.entry.js +0 -91
- package/dist/components/eds-avatar.entry.js +0 -69
- package/dist/components/eds-block-break.entry.js +0 -16
- package/dist/components/eds-breadcrumb.entry.js +0 -148
- package/dist/components/eds-button.entry.js +0 -229
- package/dist/components/eds-card-desc.entry.js +0 -22
- package/dist/components/eds-card-generic.entry.js +0 -89
- package/dist/components/eds-card-project.entry.js +0 -63
- package/dist/components/eds-card-section.entry.js +0 -39
- package/dist/components/eds-card-tags.entry.js +0 -17
- package/dist/components/eds-card-title.entry.js +0 -52
- package/dist/components/eds-card-tool.entry.js +0 -75
- package/dist/components/eds-card-wrapper.entry.js +0 -28
- package/dist/components/eds-code-block.entry.js +0 -2468
- package/dist/components/eds-components-section.entry.js +0 -92
- package/dist/components/eds-docs-palettes.entry.js +0 -23
- package/dist/components/eds-docs-tokens.entry.js +0 -31
- package/dist/components/eds-dropdown.entry.js +0 -125
- package/dist/components/eds-footer.entry.js +0 -45
- package/dist/components/eds-form.entry.js +0 -245
- package/dist/components/eds-frame.entry.js +0 -87
- package/dist/components/eds-fullscreen-menu.entry.js +0 -95
- package/dist/components/eds-header.entry.js +0 -92
- package/dist/components/eds-icon-arrow-diagonal.entry.js +0 -14
- package/dist/components/eds-icon-arrow-right.entry.js +0 -14
- package/dist/components/eds-icon-bluesky.entry.js +0 -14
- package/dist/components/eds-icon-chevron-down.entry.js +0 -14
- package/dist/components/eds-icon-chevron-left.entry.js +0 -14
- package/dist/components/eds-icon-chevron-right.entry.js +0 -14
- package/dist/components/eds-icon-chevron-up.entry.js +0 -14
- package/dist/components/eds-icon-close.entry.js +0 -14
- package/dist/components/eds-icon-copy.entry.js +0 -14
- package/dist/components/eds-icon-eu.entry.js +0 -14
- package/dist/components/eds-icon-facebook.entry.js +0 -14
- package/dist/components/eds-icon-gitlab.entry.js +0 -14
- package/dist/components/eds-icon-linkedin.entry.js +0 -14
- package/dist/components/eds-icon-loader.entry.js +0 -14
- package/dist/components/eds-icon-mastodon.entry.js +0 -14
- package/dist/components/eds-icon-menu.entry.js +0 -14
- package/dist/components/eds-icon-more.entry.js +0 -14
- package/dist/components/eds-icon-search.entry.js +0 -14
- package/dist/components/eds-icon-success.entry.js +0 -14
- package/dist/components/eds-icon-twitter.entry.js +0 -14
- package/dist/components/eds-icon-user.entry.js +0 -14
- package/dist/components/eds-icon-wrapper.entry.js +0 -36
- package/dist/components/eds-icon-youtube.entry.js +0 -14
- package/dist/components/eds-img.entry.js +0 -53
- package/dist/components/eds-input-field.entry.js +0 -68
- package/dist/components/eds-input-footer.entry.js +0 -17
- package/dist/components/eds-input-label.entry.js +0 -16
- package/dist/components/eds-input-range.entry.js +0 -35
- package/dist/components/eds-input-search.entry.js +0 -37
- package/dist/components/eds-input-select.entry.js +0 -26
- package/dist/components/eds-input.entry.js +0 -64
- package/dist/components/eds-link.entry.js +0 -207
- package/dist/components/eds-login.entry.js +0 -68
- package/dist/components/eds-logo.entry.js +0 -72
- package/dist/components/eds-matomo-notice.entry.js +0 -105
- package/dist/components/eds-modal.entry.js +0 -42
- package/dist/components/eds-navigator.entry.js +0 -39
- package/dist/components/eds-pagination.entry.js +0 -207
- package/dist/components/eds-progress-bar.entry.js +0 -24
- package/dist/components/eds-rating.entry.js +0 -53
- package/dist/components/eds-section-core.entry.js +0 -19
- package/dist/components/eds-section-heading.entry.js +0 -37
- package/dist/components/eds-social-networks.entry.js +0 -61
- package/dist/components/eds-svg-repository.entry.js +0 -28
- package/dist/components/eds-tab.entry.js +0 -36
- package/dist/components/eds-table.entry.js +0 -138
- package/dist/components/eds-tabs-content.entry.js +0 -129
- package/dist/components/eds-tabs.entry.js +0 -118
- package/dist/components/eds-tag.entry.js +0 -40
- package/dist/components/eds-toast-manager.entry.js +0 -41
- package/dist/components/eds-toast.entry.js +0 -49
- package/dist/components/eds-tooltip.entry.js +0 -95
- package/dist/components/eds-user-modal.entry.js +0 -43
- package/dist/components/eds-user.entry.js +0 -86
- package/dist/components/gradient-primary-palette.entry.js +0 -41
- package/dist/components/gradient-secondary-palette.entry.js +0 -75
- package/dist/components/gradient-support-palette.entry.js +0 -59
- package/dist/components/incorrect-use-of-colors.entry.js +0 -46
- package/dist/components/index-144c9ae8.js +0 -46
- package/dist/components/index-360dc790.js +0 -401
- package/dist/components/index-a9afa43f.js +0 -1802
- package/dist/components/index-b384416e.js +0 -3023
- package/dist/components/index3.js +0 -46
- package/dist/components/index4.js +0 -1802
- package/dist/components/keycloak-b647d452.js +0 -1903
- package/dist/components/logo-space.entry.js +0 -16
- package/dist/components/logo-variations-horizontal.entry.js +0 -26
- package/dist/components/logo-variations-vertical.entry.js +0 -26
- package/dist/components/logo-wrong-usage.entry.js +0 -16
- package/dist/components/p-0a6262b7.entry.js +0 -1
- package/dist/components/p-11a4ef34.entry.js +0 -1
- package/dist/components/p-145d8e4d.entry.js +0 -1
- package/dist/components/p-219d9f68.entry.js +0 -1
- package/dist/components/p-22ee5374.entry.js +0 -1
- package/dist/components/p-2b14f03a.entry.js +0 -1
- package/dist/components/p-3048bdec.entry.js +0 -1
- package/dist/components/p-52a487ee.entry.js +0 -1
- package/dist/components/p-5b900a2c.entry.js +0 -1
- package/dist/components/p-5edc806a.entry.js +0 -1
- package/dist/components/p-763cbe2f.entry.js +0 -1
- package/dist/components/p-77a81dfa.entry.js +0 -1
- package/dist/components/p-81d2a9be.entry.js +0 -1
- package/dist/components/p-8c1be2b6.entry.js +0 -1
- package/dist/components/p-923e4d23.entry.js +0 -1
- package/dist/components/p-9c05e349.entry.js +0 -1
- package/dist/components/p-abcdf35f.js +0 -1
- package/dist/components/p-ac083317.entry.js +0 -1
- package/dist/components/p-ad79cc3c.entry.js +0 -1
- package/dist/components/p-b4055691.entry.js +0 -1
- package/dist/components/p-bfd2fdf1.entry.js +0 -1
- package/dist/components/p-c3c61db1.entry.js +0 -1
- package/dist/components/p-d80de13e.entry.js +0 -1
- package/dist/components/p-e80f4f24.js +0 -1
- package/dist/components/p-ec95188c.entry.js +0 -1
- package/dist/components/p-f04946a5.entry.js +0 -1
- package/dist/components/shadow-css-423dab2c.js +0 -332
- package/dist/components/token-list.entry.js +0 -249
- package/dist/components/token-radii.entry.js +0 -21
- package/dist/components/token-ratios.entry.js +0 -25
- package/dist/components/token-shadows.entry.js +0 -30
- package/dist/components/token-spacing.entry.js +0 -12
- package/dist/components/token-typography.entry.js +0 -226
- package/dist/esm/color-primary-palette.entry.js +0 -39
- package/dist/esm/color-secondary-palette.entry.js +0 -64
- package/dist/esm/color-support-palette.entry.js +0 -55
- package/dist/esm/eds-alert.entry.js +0 -91
- package/dist/esm/eds-avatar.entry.js +0 -69
- package/dist/esm/eds-button.entry.js +0 -229
- package/dist/esm/eds-card-desc.entry.js +0 -22
- package/dist/esm/eds-card-desc_3.entry.js +0 -111
- package/dist/esm/eds-card-generic.entry.js +0 -89
- package/dist/esm/eds-card-title.entry.js +0 -52
- package/dist/esm/eds-dropdown.entry.js +0 -125
- package/dist/esm/eds-form.entry.js +0 -245
- package/dist/esm/eds-header.entry.js +0 -92
- package/dist/esm/eds-icon-wrapper.entry.js +0 -36
- package/dist/esm/eds-img.entry.js +0 -53
- package/dist/esm/eds-input-field.entry.js +0 -68
- package/dist/esm/eds-input-footer.entry.js +0 -17
- package/dist/esm/eds-input-label.entry.js +0 -16
- package/dist/esm/eds-input-range.entry.js +0 -35
- package/dist/esm/eds-input-search.entry.js +0 -37
- package/dist/esm/eds-input-select.entry.js +0 -26
- package/dist/esm/eds-input.entry.js +0 -64
- package/dist/esm/eds-link.entry.js +0 -207
- package/dist/esm/eds-logo.entry.js +0 -72
- package/dist/esm/eds-section-core.entry.js +0 -19
- package/dist/esm/eds-section-heading.entry.js +0 -37
- package/dist/esm/eds-tag.entry.js +0 -40
- package/dist/esm/eds-toast-manager.entry.js +0 -41
- package/dist/esm/eds-toast.entry.js +0 -49
- package/dist/esm/eds-user-modal.entry.js +0 -43
- package/dist/esm/eds-user.entry.js +0 -86
- package/dist/esm/gradient-primary-palette.entry.js +0 -41
- package/dist/esm/gradient-secondary-palette.entry.js +0 -75
- package/dist/esm/gradient-support-palette.entry.js +0 -59
- package/dist/esm/index-144c9ae8.js +0 -46
- package/dist/esm/index-360dc790.js +0 -401
- package/dist/esm/index-a9afa43f.js +0 -1802
- package/dist/esm/index-b384416e.js +0 -3416
- package/dist/esm/keycloak-b647d452.js +0 -1903
- package/dist/esm/shadow-css-423dab2c.js +0 -332
- package/dist/esm/toastManager-b716afd8.js +0 -31
- package/dist/esm/token-list.entry.js +0 -249
- package/dist/esm/token-radii.entry.js +0 -21
- package/dist/esm/token-shadows.entry.js +0 -30
- /package/dist/cjs/{toastManager-1fb1a402.js → toastManager-4e9535f3.js} +0 -0
- /package/dist/{components/toastManager-b716afd8.js → esm/toastManager-d9eee791.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as e}from"./p-e9a1fb1e.js";import{c as r}from"./p-8983de37.js";const a=class{constructor(e){s(this,e),this.class=""}render(){return e("span",{key:"365ad476b1be9c708e73598cad1dd42a908fa1cd",class:this.class,innerHTML:r})}};export{a as eds_icon_close}
|
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
// src/utils/regular-expression.ts
|
|
2
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
3
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
// src/utils/shadow-css.ts
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
10
|
-
*
|
|
11
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
12
|
-
* found in the LICENSE file at https://angular.io/license
|
|
13
|
-
*
|
|
14
|
-
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
15
|
-
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
16
|
-
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
17
|
-
*/
|
|
18
|
-
var safeSelector = (selector) => {
|
|
19
|
-
const placeholders = [];
|
|
20
|
-
let index = 0;
|
|
21
|
-
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
|
22
|
-
const replaceBy = `__ph-${index}__`;
|
|
23
|
-
placeholders.push(keep);
|
|
24
|
-
index++;
|
|
25
|
-
return replaceBy;
|
|
26
|
-
});
|
|
27
|
-
const content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
|
|
28
|
-
const replaceBy = `__ph-${index}__`;
|
|
29
|
-
placeholders.push(exp);
|
|
30
|
-
index++;
|
|
31
|
-
return pseudo + replaceBy;
|
|
32
|
-
});
|
|
33
|
-
const ss = {
|
|
34
|
-
content,
|
|
35
|
-
placeholders
|
|
36
|
-
};
|
|
37
|
-
return ss;
|
|
38
|
-
};
|
|
39
|
-
var restoreSafeSelector = (placeholders, content) => {
|
|
40
|
-
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
41
|
-
};
|
|
42
|
-
var _polyfillHost = "-shadowcsshost";
|
|
43
|
-
var _polyfillSlotted = "-shadowcssslotted";
|
|
44
|
-
var _polyfillHostContext = "-shadowcsscontext";
|
|
45
|
-
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
46
|
-
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
47
|
-
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
48
|
-
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
49
|
-
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
50
|
-
var _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
51
|
-
var _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
52
|
-
var _selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$";
|
|
53
|
-
var _polyfillHostRe = /-shadowcsshost/gim;
|
|
54
|
-
var createSupportsRuleRe = (selector) => new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${selector}\\b)`, "gim");
|
|
55
|
-
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
56
|
-
var _colonHostRe = createSupportsRuleRe(":host");
|
|
57
|
-
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
58
|
-
var _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
59
|
-
var stripComments = (input) => {
|
|
60
|
-
return input.replace(_commentRe, "");
|
|
61
|
-
};
|
|
62
|
-
var _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
|
|
63
|
-
var extractCommentsWithHash = (input) => {
|
|
64
|
-
return input.match(_commentWithHashRe) || [];
|
|
65
|
-
};
|
|
66
|
-
var _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
|
|
67
|
-
var _curlyRe = /([{}])/g;
|
|
68
|
-
var _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
|
|
69
|
-
var OPEN_CURLY = "{";
|
|
70
|
-
var CLOSE_CURLY = "}";
|
|
71
|
-
var BLOCK_PLACEHOLDER = "%BLOCK%";
|
|
72
|
-
var processRules = (input, ruleCallback) => {
|
|
73
|
-
const inputWithEscapedBlocks = escapeBlocks(input);
|
|
74
|
-
let nextBlockIndex = 0;
|
|
75
|
-
return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
|
|
76
|
-
const selector = m[2];
|
|
77
|
-
let content = "";
|
|
78
|
-
let suffix = m[4];
|
|
79
|
-
let contentPrefix = "";
|
|
80
|
-
if (suffix && suffix.startsWith("{" + BLOCK_PLACEHOLDER)) {
|
|
81
|
-
content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
|
|
82
|
-
suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
|
|
83
|
-
contentPrefix = "{";
|
|
84
|
-
}
|
|
85
|
-
const cssRule = {
|
|
86
|
-
selector,
|
|
87
|
-
content
|
|
88
|
-
};
|
|
89
|
-
const rule = ruleCallback(cssRule);
|
|
90
|
-
return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
var escapeBlocks = (input) => {
|
|
94
|
-
const inputParts = input.split(_curlyRe);
|
|
95
|
-
const resultParts = [];
|
|
96
|
-
const escapedBlocks = [];
|
|
97
|
-
let bracketCount = 0;
|
|
98
|
-
let currentBlockParts = [];
|
|
99
|
-
for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
|
|
100
|
-
const part = inputParts[partIndex];
|
|
101
|
-
if (part === CLOSE_CURLY) {
|
|
102
|
-
bracketCount--;
|
|
103
|
-
}
|
|
104
|
-
if (bracketCount > 0) {
|
|
105
|
-
currentBlockParts.push(part);
|
|
106
|
-
} else {
|
|
107
|
-
if (currentBlockParts.length > 0) {
|
|
108
|
-
escapedBlocks.push(currentBlockParts.join(""));
|
|
109
|
-
resultParts.push(BLOCK_PLACEHOLDER);
|
|
110
|
-
currentBlockParts = [];
|
|
111
|
-
}
|
|
112
|
-
resultParts.push(part);
|
|
113
|
-
}
|
|
114
|
-
if (part === OPEN_CURLY) {
|
|
115
|
-
bracketCount++;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
if (currentBlockParts.length > 0) {
|
|
119
|
-
escapedBlocks.push(currentBlockParts.join(""));
|
|
120
|
-
resultParts.push(BLOCK_PLACEHOLDER);
|
|
121
|
-
}
|
|
122
|
-
const strEscapedBlocks = {
|
|
123
|
-
escapedString: resultParts.join(""),
|
|
124
|
-
blocks: escapedBlocks
|
|
125
|
-
};
|
|
126
|
-
return strEscapedBlocks;
|
|
127
|
-
};
|
|
128
|
-
var insertPolyfillHostInCssText = (cssText) => {
|
|
129
|
-
cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
|
|
130
|
-
return cssText;
|
|
131
|
-
};
|
|
132
|
-
var convertColonRule = (cssText, regExp, partReplacer) => {
|
|
133
|
-
return cssText.replace(regExp, (...m) => {
|
|
134
|
-
if (m[2]) {
|
|
135
|
-
const parts = m[2].split(",");
|
|
136
|
-
const r = [];
|
|
137
|
-
for (let i = 0; i < parts.length; i++) {
|
|
138
|
-
const p = parts[i].trim();
|
|
139
|
-
if (!p) break;
|
|
140
|
-
r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
|
|
141
|
-
}
|
|
142
|
-
return r.join(",");
|
|
143
|
-
} else {
|
|
144
|
-
return _polyfillHostNoCombinator + m[3];
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
};
|
|
148
|
-
var colonHostPartReplacer = (host, part, suffix) => {
|
|
149
|
-
return host + part.replace(_polyfillHost, "") + suffix;
|
|
150
|
-
};
|
|
151
|
-
var convertColonHost = (cssText) => {
|
|
152
|
-
return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
|
|
153
|
-
};
|
|
154
|
-
var colonHostContextPartReplacer = (host, part, suffix) => {
|
|
155
|
-
if (part.indexOf(_polyfillHost) > -1) {
|
|
156
|
-
return colonHostPartReplacer(host, part, suffix);
|
|
157
|
-
} else {
|
|
158
|
-
return host + part + suffix + ", " + part + " " + host + suffix;
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
var convertColonSlotted = (cssText, slotScopeId) => {
|
|
162
|
-
const slotClass = "." + slotScopeId + " > ";
|
|
163
|
-
const selectors = [];
|
|
164
|
-
cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
|
|
165
|
-
if (m[2]) {
|
|
166
|
-
const compound = m[2].trim();
|
|
167
|
-
const suffix = m[3];
|
|
168
|
-
const slottedSelector = slotClass + compound + suffix;
|
|
169
|
-
let prefixSelector = "";
|
|
170
|
-
for (let i = m[4] - 1; i >= 0; i--) {
|
|
171
|
-
const char = m[5][i];
|
|
172
|
-
if (char === "}" || char === ",") {
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
prefixSelector = char + prefixSelector;
|
|
176
|
-
}
|
|
177
|
-
const orgSelector = (prefixSelector + slottedSelector).trim();
|
|
178
|
-
const addedSelector = `${prefixSelector.trimEnd()}${slottedSelector.trim()}`.trim();
|
|
179
|
-
if (orgSelector !== addedSelector) {
|
|
180
|
-
const updatedSelector = `${addedSelector}, ${orgSelector}`;
|
|
181
|
-
selectors.push({
|
|
182
|
-
orgSelector,
|
|
183
|
-
updatedSelector
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
return slottedSelector;
|
|
187
|
-
} else {
|
|
188
|
-
return _polyfillHostNoCombinator + m[3];
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
return {
|
|
192
|
-
selectors,
|
|
193
|
-
cssText
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
var convertColonHostContext = (cssText) => {
|
|
197
|
-
return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
|
|
198
|
-
};
|
|
199
|
-
var convertShadowDOMSelectors = (cssText) => {
|
|
200
|
-
return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, " "), cssText);
|
|
201
|
-
};
|
|
202
|
-
var makeScopeMatcher = (scopeSelector2) => {
|
|
203
|
-
const lre = /\[/g;
|
|
204
|
-
const rre = /\]/g;
|
|
205
|
-
scopeSelector2 = scopeSelector2.replace(lre, "\\[").replace(rre, "\\]");
|
|
206
|
-
return new RegExp("^(" + scopeSelector2 + ")" + _selectorReSuffix, "m");
|
|
207
|
-
};
|
|
208
|
-
var selectorNeedsScoping = (selector, scopeSelector2) => {
|
|
209
|
-
const re = makeScopeMatcher(scopeSelector2);
|
|
210
|
-
return !re.test(selector);
|
|
211
|
-
};
|
|
212
|
-
var injectScopingSelector = (selector, scopingSelector) => {
|
|
213
|
-
return selector.replace(_selectorPartsRe, (_, before = "", _colonGroup, colon = "", after = "") => {
|
|
214
|
-
return before + scopingSelector + colon + after;
|
|
215
|
-
});
|
|
216
|
-
};
|
|
217
|
-
var applySimpleSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
218
|
-
_polyfillHostRe.lastIndex = 0;
|
|
219
|
-
if (_polyfillHostRe.test(selector)) {
|
|
220
|
-
const replaceBy = `.${hostSelector}`;
|
|
221
|
-
return selector.replace(_polyfillHostNoCombinatorRe, (_, selector2) => injectScopingSelector(selector2, replaceBy)).replace(_polyfillHostRe, replaceBy + " ");
|
|
222
|
-
}
|
|
223
|
-
return scopeSelector2 + " " + selector;
|
|
224
|
-
};
|
|
225
|
-
var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
226
|
-
const isRe = /\[is=([^\]]*)\]/g;
|
|
227
|
-
scopeSelector2 = scopeSelector2.replace(isRe, (_, ...parts) => parts[0]);
|
|
228
|
-
const className = "." + scopeSelector2;
|
|
229
|
-
const _scopeSelectorPart = (p) => {
|
|
230
|
-
let scopedP = p.trim();
|
|
231
|
-
if (!scopedP) {
|
|
232
|
-
return "";
|
|
233
|
-
}
|
|
234
|
-
if (p.indexOf(_polyfillHostNoCombinator) > -1) {
|
|
235
|
-
scopedP = applySimpleSelectorScope(p, scopeSelector2, hostSelector);
|
|
236
|
-
} else {
|
|
237
|
-
const t = p.replace(_polyfillHostRe, "");
|
|
238
|
-
if (t.length > 0) {
|
|
239
|
-
scopedP = injectScopingSelector(t, className);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
return scopedP;
|
|
243
|
-
};
|
|
244
|
-
const safeContent = safeSelector(selector);
|
|
245
|
-
selector = safeContent.content;
|
|
246
|
-
let scopedSelector = "";
|
|
247
|
-
let startIndex = 0;
|
|
248
|
-
let res;
|
|
249
|
-
const sep = /( |>|\+|~(?!=))\s*/g;
|
|
250
|
-
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
251
|
-
let shouldScope = !hasHost;
|
|
252
|
-
while ((res = sep.exec(selector)) !== null) {
|
|
253
|
-
const separator = res[1];
|
|
254
|
-
const part2 = selector.slice(startIndex, res.index).trim();
|
|
255
|
-
shouldScope = shouldScope || part2.indexOf(_polyfillHostNoCombinator) > -1;
|
|
256
|
-
const scopedPart = shouldScope ? _scopeSelectorPart(part2) : part2;
|
|
257
|
-
scopedSelector += `${scopedPart} ${separator} `;
|
|
258
|
-
startIndex = sep.lastIndex;
|
|
259
|
-
}
|
|
260
|
-
const part = selector.substring(startIndex);
|
|
261
|
-
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
262
|
-
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
|
263
|
-
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
|
264
|
-
};
|
|
265
|
-
var scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
|
|
266
|
-
return selector.split(",").map((shallowPart) => {
|
|
267
|
-
if (slotSelector && shallowPart.indexOf("." + slotSelector) > -1) {
|
|
268
|
-
return shallowPart.trim();
|
|
269
|
-
}
|
|
270
|
-
if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
|
|
271
|
-
return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
|
|
272
|
-
} else {
|
|
273
|
-
return shallowPart.trim();
|
|
274
|
-
}
|
|
275
|
-
}).join(", ");
|
|
276
|
-
};
|
|
277
|
-
var scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector) => {
|
|
278
|
-
return processRules(cssText, (rule) => {
|
|
279
|
-
let selector = rule.selector;
|
|
280
|
-
let content = rule.content;
|
|
281
|
-
if (rule.selector[0] !== "@") {
|
|
282
|
-
selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
|
|
283
|
-
} else if (rule.selector.startsWith("@media") || rule.selector.startsWith("@supports") || rule.selector.startsWith("@page") || rule.selector.startsWith("@document")) {
|
|
284
|
-
content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
|
|
285
|
-
}
|
|
286
|
-
const cssRule = {
|
|
287
|
-
selector: selector.replace(/\s{2,}/g, " ").trim(),
|
|
288
|
-
content
|
|
289
|
-
};
|
|
290
|
-
return cssRule;
|
|
291
|
-
});
|
|
292
|
-
};
|
|
293
|
-
var scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId) => {
|
|
294
|
-
cssText = insertPolyfillHostInCssText(cssText);
|
|
295
|
-
cssText = convertColonHost(cssText);
|
|
296
|
-
cssText = convertColonHostContext(cssText);
|
|
297
|
-
const slotted = convertColonSlotted(cssText, slotScopeId);
|
|
298
|
-
cssText = slotted.cssText;
|
|
299
|
-
cssText = convertShadowDOMSelectors(cssText);
|
|
300
|
-
if (scopeId) {
|
|
301
|
-
cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
|
|
302
|
-
}
|
|
303
|
-
cssText = replaceShadowCssHost(cssText, hostScopeId);
|
|
304
|
-
cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, " $1 ");
|
|
305
|
-
return {
|
|
306
|
-
cssText: cssText.trim(),
|
|
307
|
-
// We need to replace the shadow CSS host string in each of these selectors since we created
|
|
308
|
-
// them prior to the replacement happening in the components CSS text.
|
|
309
|
-
slottedSelectors: slotted.selectors.map((ref) => ({
|
|
310
|
-
orgSelector: replaceShadowCssHost(ref.orgSelector, hostScopeId),
|
|
311
|
-
updatedSelector: replaceShadowCssHost(ref.updatedSelector, hostScopeId)
|
|
312
|
-
}))
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
var replaceShadowCssHost = (cssText, hostScopeId) => {
|
|
316
|
-
return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
|
317
|
-
};
|
|
318
|
-
var scopeCss = (cssText, scopeId) => {
|
|
319
|
-
const hostScopeId = scopeId + "-h";
|
|
320
|
-
const slotScopeId = scopeId + "-s";
|
|
321
|
-
const commentsWithHash = extractCommentsWithHash(cssText);
|
|
322
|
-
cssText = stripComments(cssText);
|
|
323
|
-
const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
|
|
324
|
-
cssText = [scoped.cssText, ...commentsWithHash].join("\n");
|
|
325
|
-
scoped.slottedSelectors.forEach((slottedSelector) => {
|
|
326
|
-
const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector), "g");
|
|
327
|
-
cssText = cssText.replace(regex, slottedSelector.updatedSelector);
|
|
328
|
-
});
|
|
329
|
-
return cssText;
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
export { scopeCss };
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-b384416e.js';
|
|
2
|
-
|
|
3
|
-
const colors = {
|
|
4
|
-
tokens: {
|
|
5
|
-
// grey
|
|
6
|
-
'grey-100': '#f8f8f8',
|
|
7
|
-
'grey-200': '#f2f2f2',
|
|
8
|
-
'grey-300': '#e6e6e6',
|
|
9
|
-
'grey-400': '#d8d8d8',
|
|
10
|
-
'grey-500': '#8c8c8c',
|
|
11
|
-
'grey-600': '#6e6e6e',
|
|
12
|
-
'grey-700': '#666666',
|
|
13
|
-
'grey-800': '#4d4d4d',
|
|
14
|
-
'grey-900': '#242424',
|
|
15
|
-
|
|
16
|
-
// green
|
|
17
|
-
'green-100': '#eaffee',
|
|
18
|
-
'green-200': '#d3ffdc',
|
|
19
|
-
'green-300': '#9dffb4',
|
|
20
|
-
'green-400': '#63fb92',
|
|
21
|
-
'green-500': '#00e766',
|
|
22
|
-
'green-600': '#00c959',
|
|
23
|
-
'green-700': '#009d45',
|
|
24
|
-
'green-800': '#007734',
|
|
25
|
-
'green-900': '#004f23',
|
|
26
|
-
|
|
27
|
-
// yellow
|
|
28
|
-
'yellow-100': '#fefee5',
|
|
29
|
-
'yellow-200': '#ffffcb',
|
|
30
|
-
'yellow-300': '#fdfdaa',
|
|
31
|
-
'yellow-400': '#ffff8b',
|
|
32
|
-
'yellow-500': '#ffff51',
|
|
33
|
-
'yellow-600': '#f3f30a',
|
|
34
|
-
'yellow-700': '#d7d72b',
|
|
35
|
-
'yellow-800': '#9a9a1e',
|
|
36
|
-
'yellow-900': '#636313',
|
|
37
|
-
|
|
38
|
-
// orange
|
|
39
|
-
'orange-100': '#fff4ee',
|
|
40
|
-
'orange-200': '#ffeade',
|
|
41
|
-
'orange-300': '#ffdcc5',
|
|
42
|
-
'orange-400': '#ffcca9',
|
|
43
|
-
'orange-500': '#ffb87e',
|
|
44
|
-
'orange-600': '#ffa543',
|
|
45
|
-
'orange-700': '#cb7f28',
|
|
46
|
-
'orange-800': '#995f1e',
|
|
47
|
-
'orange-900': '#653f14',
|
|
48
|
-
|
|
49
|
-
// red
|
|
50
|
-
'red-100': '#feefef',
|
|
51
|
-
'red-200': '#ffe0e1',
|
|
52
|
-
'red-300': '#ffc7c9',
|
|
53
|
-
'red-400': '#ff9ea2',
|
|
54
|
-
'red-500': '#ff7a7f',
|
|
55
|
-
'red-600': '#ff4d68',
|
|
56
|
-
'red-700': '#d01111',
|
|
57
|
-
'red-800': '#a3001a',
|
|
58
|
-
'red-900': '#6f0011',
|
|
59
|
-
|
|
60
|
-
// purple
|
|
61
|
-
'purple-100': '#f9f3ff',
|
|
62
|
-
'purple-200': '#f4e8ff',
|
|
63
|
-
'purple-300': '#e9ceff',
|
|
64
|
-
'purple-400': '#ddb1ff',
|
|
65
|
-
'purple-500': '#d18fff',
|
|
66
|
-
'purple-600': '#c461ff',
|
|
67
|
-
'purple-700': '#af56e4',
|
|
68
|
-
'purple-800': '#8337b1',
|
|
69
|
-
'purple-900': '#3d1e4f',
|
|
70
|
-
|
|
71
|
-
// blue
|
|
72
|
-
'blue-100': '#eff0ff',
|
|
73
|
-
'blue-200': '#dee0ff',
|
|
74
|
-
'blue-300': '#caceff',
|
|
75
|
-
'blue-400': '#b2b8ff',
|
|
76
|
-
'blue-500': '#7a89f5',
|
|
77
|
-
'blue-600': '#2b69fc',
|
|
78
|
-
'blue-700': '#0034cb',
|
|
79
|
-
'blue-800': '#002799',
|
|
80
|
-
'blue-900': '#001a65',
|
|
81
|
-
|
|
82
|
-
// cyan
|
|
83
|
-
'cyan-100': '#E0EEFF',
|
|
84
|
-
'cyan-200': '#D3E6FF',
|
|
85
|
-
'cyan-300': '#B5D8FF',
|
|
86
|
-
'cyan-400': '#92C8FF',
|
|
87
|
-
'cyan-500': '#6CBFFE',
|
|
88
|
-
'cyan-600': '#3FA9F5',
|
|
89
|
-
'cyan-700': '#267FBE',
|
|
90
|
-
'cyan-800': '#1F689B',
|
|
91
|
-
'cyan-900': '#15496D',
|
|
92
|
-
|
|
93
|
-
// Generics
|
|
94
|
-
black: '#000000',
|
|
95
|
-
white: '#ffffff',
|
|
96
|
-
transparent: 'transparent',
|
|
97
|
-
current: 'currentColor'
|
|
98
|
-
},
|
|
99
|
-
border: {
|
|
100
|
-
default: 'black',
|
|
101
|
-
inverse: 'white',
|
|
102
|
-
'inverse-soft': 'rgba(255, 255, 255, 0.3)',
|
|
103
|
-
'inverse-softer': 'rgba(255, 255, 255, 0.15)',
|
|
104
|
-
soft: 'rgba(0, 0, 0, .15 )',
|
|
105
|
-
softer: 'rgba(0, 0, 0, .1 )',
|
|
106
|
-
softest: 'rgba(0, 0, 0, .05 )',
|
|
107
|
-
accent: 'green-500',
|
|
108
|
-
error: 'red-700',
|
|
109
|
-
current: 'currentColor',
|
|
110
|
-
transparent: 'transparent'
|
|
111
|
-
},
|
|
112
|
-
text: {
|
|
113
|
-
inverse: 'white',
|
|
114
|
-
default: 'black',
|
|
115
|
-
current: 'currentColor',
|
|
116
|
-
transparent: 'transparent',
|
|
117
|
-
light: 'grey-700',
|
|
118
|
-
lighter: 'grey-600',
|
|
119
|
-
lightest: 'grey-500',
|
|
120
|
-
'extra-light': 'grey-300',
|
|
121
|
-
success: 'green-800',
|
|
122
|
-
warning: 'yellow-900',
|
|
123
|
-
error: 'red-700',
|
|
124
|
-
accent: 'green-500',
|
|
125
|
-
'on-gradient': 'rgba(0, 0, 0, 0.55)'
|
|
126
|
-
},
|
|
127
|
-
background: {
|
|
128
|
-
default: 'grey-200',
|
|
129
|
-
inverse: 'white',
|
|
130
|
-
'inverse-soft': 'rgba(255, 255, 255, .2)',
|
|
131
|
-
'inverse-softer': 'rgba(255, 255, 255, .15)',
|
|
132
|
-
dark: 'grey-300',
|
|
133
|
-
darker: 'grey-400',
|
|
134
|
-
strong: 'grey-700',
|
|
135
|
-
'strong-dark': 'grey-800',
|
|
136
|
-
stronger: 'grey-900',
|
|
137
|
-
strongest: 'black',
|
|
138
|
-
'strongest-soft': 'rgba(0, 0, 0, .05)',
|
|
139
|
-
accent: 'green-500',
|
|
140
|
-
'accent-dark': 'green-600',
|
|
141
|
-
'accent-darker': 'green-800',
|
|
142
|
-
success: 'green-200',
|
|
143
|
-
warning: 'yellow-200',
|
|
144
|
-
error: 'red-200',
|
|
145
|
-
current: 'currentColor',
|
|
146
|
-
transparent: 'transparent',
|
|
147
|
-
overlay: 'rgba(0, 0, 0, 0.25)',
|
|
148
|
-
'on-gradient': 'rgba(0, 0, 0, 0.1)',
|
|
149
|
-
'on-dark': 'rgba(255, 255, 255, 0.2)'
|
|
150
|
-
},
|
|
151
|
-
underline: {
|
|
152
|
-
accent: 'green-500',
|
|
153
|
-
light: 'grey-700',
|
|
154
|
-
lighter: 'grey-600',
|
|
155
|
-
lightest: 'grey-500',
|
|
156
|
-
'extra-light': 'grey-300'
|
|
157
|
-
},
|
|
158
|
-
outline: { default: 'black', accent: 'green-500' },
|
|
159
|
-
/**
|
|
160
|
-
* Gradients token are created manually inside gradients.css utility file.
|
|
161
|
-
* This mapping is here to generate gradients view inside storybook
|
|
162
|
-
* @file: ui-components/src/assets/styles/utilities/gradient.css
|
|
163
|
-
*/
|
|
164
|
-
gradients: {
|
|
165
|
-
'gradient-01-top': 'gradient-01-top',
|
|
166
|
-
'gradient-02-top': 'gradient-02-top',
|
|
167
|
-
'gradient-03-top': 'gradient-03-top',
|
|
168
|
-
'gradient-04-top': 'gradient-04-top',
|
|
169
|
-
'gradient-01-bottom': 'gradient-01-bottom',
|
|
170
|
-
'gradient-02-bottom': 'gradient-02-bottom',
|
|
171
|
-
'gradient-03-bottom': 'gradient-03-bottom',
|
|
172
|
-
'gradient-04-bottom': 'gradient-04-bottom'
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
const TokenList = class {
|
|
177
|
-
constructor(hostRef) {
|
|
178
|
-
registerInstance(this, hostRef);
|
|
179
|
-
this.show = undefined;
|
|
180
|
-
}
|
|
181
|
-
getTextColor(value) {
|
|
182
|
-
if (value.startsWith('rgba') || value.startsWith('rgb')) {
|
|
183
|
-
const rgba = value
|
|
184
|
-
.replace(/rgba?\(/, '')
|
|
185
|
-
.replace(')', '')
|
|
186
|
-
.split(',')
|
|
187
|
-
.map((v) => parseFloat(v.trim()));
|
|
188
|
-
const r = rgba[0];
|
|
189
|
-
const g = rgba[1];
|
|
190
|
-
const b = rgba[2];
|
|
191
|
-
const brightness = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
|
|
192
|
-
return brightness > 0.5 ? 'text-default' : 'text-inverse';
|
|
193
|
-
}
|
|
194
|
-
else if (value.startsWith('#')) {
|
|
195
|
-
const color = value.replace('#', '');
|
|
196
|
-
const r = parseInt(color.substring(0, 2), 16);
|
|
197
|
-
const g = parseInt(color.substring(2, 4), 16);
|
|
198
|
-
const b = parseInt(color.substring(4, 6), 16);
|
|
199
|
-
const brightness = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
|
|
200
|
-
return brightness > 0.5 ? 'text-default' : 'text-inverse';
|
|
201
|
-
}
|
|
202
|
-
return 'text-default';
|
|
203
|
-
}
|
|
204
|
-
resolveColor(value) {
|
|
205
|
-
if (colors.tokens[value]) {
|
|
206
|
-
return colors.tokens[value];
|
|
207
|
-
}
|
|
208
|
-
return value;
|
|
209
|
-
}
|
|
210
|
-
renderSection(sectionName, sectionContent) {
|
|
211
|
-
if (sectionName === 'tokens') {
|
|
212
|
-
const groupedTokens = this.groupTokensByCategory(sectionContent);
|
|
213
|
-
return Object.entries(groupedTokens).map(([, tokens]) => (h("ul", { class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, tokens.map((token) => {
|
|
214
|
-
const tokenName = Object.keys(token)[0];
|
|
215
|
-
const tokenValue = this.resolveColor(token[tokenName]);
|
|
216
|
-
const textColorClass = this.getTextColor(tokenValue);
|
|
217
|
-
return (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height items-center justify-between p-16 hidden lg:flex", style: { backgroundColor: tokenValue } }, h("span", { class: `${textColorClass} f-body-02` }, tokenName), h("div", { class: "inline-flex" }, h("eds-code-block", { code: tokenValue, language: "hex", class: "min-w-[210px] mr-4" }), h("eds-code-block", { language: "css", code: `var(--${tokenName})`, class: "min-w-[210px]" }))), h("div", { class: "effect-height items-center justify-between p-16 block lg:hidden", style: { backgroundColor: tokenValue } }, h("span", { class: `${textColorClass} f-body-02` }, tokenName), h("div", { class: "inline block" }, h("eds-code-block", { code: tokenValue, class: "min-w-[210px] mb-4" }), h("eds-code-block", { code: `var(--${tokenName})`, class: "min-w-[210px]" })))));
|
|
218
|
-
}))));
|
|
219
|
-
}
|
|
220
|
-
return (h("ul", { class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(sectionContent).map(([key, value]) => {
|
|
221
|
-
const resolvedValue = this.resolveColor(value);
|
|
222
|
-
const textColorClass = this.getTextColor(resolvedValue);
|
|
223
|
-
const style = resolvedValue.startsWith('#') || resolvedValue.startsWith('rgb')
|
|
224
|
-
? { backgroundColor: resolvedValue }
|
|
225
|
-
: { border: `2px solid ${resolvedValue}` };
|
|
226
|
-
return (h("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col" }, h("div", { class: "effect-height block lg:flex items-center justify-between p-16", style: style }, h("div", { class: "w-full flex" }, h("span", { class: `${textColorClass} mr-auto font-bold` }, key), h("span", { class: `${textColorClass} ml-auto mr-4 font-bold` }, value)), h("span", { class: `${textColorClass}` }, sectionName === 'background' ? (h("eds-code-block", { code: `bg-${key}`, class: "min-w-[210px] mr-4" })) : (h("eds-code-block", { code: `${sectionName}-${key}`, class: sectionName === 'border' ? 'min-w-[250px] mr-4' : 'min-w-[210px] mr-4' }))))));
|
|
227
|
-
})));
|
|
228
|
-
}
|
|
229
|
-
groupTokensByCategory(tokens) {
|
|
230
|
-
const grouped = {};
|
|
231
|
-
Object.entries(tokens).forEach(([key, value]) => {
|
|
232
|
-
const category = key.split('-')[0];
|
|
233
|
-
if (!grouped[category]) {
|
|
234
|
-
grouped[category] = [];
|
|
235
|
-
}
|
|
236
|
-
grouped[category].push({ [key]: value });
|
|
237
|
-
});
|
|
238
|
-
return grouped;
|
|
239
|
-
}
|
|
240
|
-
render() {
|
|
241
|
-
// Check if `show` prop is provided; if not, display all sections
|
|
242
|
-
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
243
|
-
return (h("section", { key: '3e1da1cf339496fb351d4ab2c6238ac389bccc10', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
244
|
-
// Only render sections that exist in `colors`
|
|
245
|
-
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
export { TokenList as token_list };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-b384416e.js';
|
|
2
|
-
|
|
3
|
-
const radii = {
|
|
4
|
-
xxs: '2px',
|
|
5
|
-
xs: '4px',
|
|
6
|
-
sm: '8px',
|
|
7
|
-
md: '12px',
|
|
8
|
-
lg: '16px',
|
|
9
|
-
pill: '100px'
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const TokenRadii = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
registerInstance(this, hostRef);
|
|
15
|
-
}
|
|
16
|
-
render() {
|
|
17
|
-
return (h("section", { key: '16cab4ed90701a89fe7586cb29e85e01156a2f9a', class: "w-full mt-28" }, h("ul", { key: 'e997b51855eb94a8cda474ce537ab81c88938ca9', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(radii).map(([key, value]) => (h("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { class: `w-full p-16 block lg:flex items-center justify-center text-center border-3 border-soft rounded-${key}` }, h("eds-code-block", { language: "Utility Class", code: `rounded-${key}`, class: "mx-auto min-w-[200px] sm:mb-4 sm:max-w-[200px] mr-auto" }), h("eds-code-block", { code: `border-radius:${value}`, language: "css", class: "mx-auto min-w-[200px] sm:max-w-[200px] ml-auto" }))))))));
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export { TokenRadii as token_radii };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-b384416e.js';
|
|
2
|
-
|
|
3
|
-
const ratios = {
|
|
4
|
-
'1x1': '1/1',
|
|
5
|
-
'21x9': '21/9',
|
|
6
|
-
'16x9': '16/9',
|
|
7
|
-
'3x2': '3/2',
|
|
8
|
-
'4x3': '4/3',
|
|
9
|
-
'4x5': '4/5'
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const TokenRatios = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
registerInstance(this, hostRef);
|
|
15
|
-
}
|
|
16
|
-
render() {
|
|
17
|
-
return (h("section", { key: '5e6ad389cf71ef5d70b7c4a92314b25ef7272f62', class: "w-full" }, h("eds-section-core", { key: '5dd2339752eddd0826987245e7b80edc64816a32', tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, h("ul", { key: 'd71c41ed6a9d8f6b45c03fb8fa7070810f3fe6ba', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(ratios).map(([key, value]) => (h("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { class: "container ratio-box flex items-center justify-center text-center border-2 border-soft", style: {
|
|
18
|
-
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
19
|
-
width: '100%', // Full width to show the aspect ratio correctly
|
|
20
|
-
maxWidth: '300px'
|
|
21
|
-
} }, h("span", { class: "text-default font-bold mr-auto" }, "aspect-", key), h("span", { class: "mt-2 text-sm ml-auto" }, value)))))))));
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export { TokenRatios as token_ratios };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-b384416e.js';
|
|
2
|
-
|
|
3
|
-
const shadows = {
|
|
4
|
-
small: '0px 1.5px 2px rgba(0, 0, 0, 0.1)',
|
|
5
|
-
hover: '0px 0px 16px rgba(0, 0, 0, 0.2)',
|
|
6
|
-
accent: '0px 0px 12px rgba(0, 201, 89, 0.6)',
|
|
7
|
-
podium: '0px 0px 8px 8px rgb(0 0 0 / 25%);',
|
|
8
|
-
border: '0 10px 10px rgba(0, 0, 0, 0.15);',
|
|
9
|
-
'border-top': '0 -10px 10px rgba(0, 0, 0, 0.15);'
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const dropShadows = {
|
|
13
|
-
small: '0px 0px 16px rgba(0, 0, 0, 0.3)'
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const shadowTokens = {
|
|
17
|
-
shadows,
|
|
18
|
-
dropShadows
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const TokenShadows = class {
|
|
22
|
-
constructor(hostRef) {
|
|
23
|
-
registerInstance(this, hostRef);
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
return (h("section", { key: '019be87dca82cd1edd392ef0758b8a2e37d09ff6', class: "w-full mt-28" }, h("ul", { key: 'ade136beb8b25087e26c3f2300b463aa3fda1e41', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(shadowTokens).map(([category, tokens]) => Object.entries(tokens).map(([key, value]) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16" }, h("div", { class: "w-full p-16 block lg:flex items-center justify-center text-center border-2 border-soft", style: { boxShadow: value } }, h("eds-code-block", { code: `${category}-${key}`, language: "Utility Class", class: "mr-auto sm:mb-4 min-w-[200px]" }), h("eds-code-block", { code: `${value}`, language: "css", class: "ml-auto min-w-[200px]" })))))))));
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export { TokenShadows as token_shadows };
|