@swisspost/design-system-components 9.0.0-next.2 → 9.0.0-next.21
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/.config/bindings.angular.js +4 -0
- package/dist/cjs/{attribute-observer-10f08c04.js → attribute-observer-6d8b886b.js} +4 -4
- package/dist/cjs/check-non-empty-bd99d236.js +15 -0
- package/dist/cjs/check-one-of-75d270b5.js +13 -0
- package/dist/cjs/check-type-cdbf6d29.js +21 -0
- package/dist/cjs/check-url-220a286c.js +19 -0
- package/dist/cjs/debounce-158fd76f.js +13 -0
- package/dist/cjs/fade-72d5ef55.js +14 -0
- package/dist/cjs/get-root-7a3498ef.js +11 -0
- package/dist/cjs/index-23e36ff7.js +37 -0
- package/dist/cjs/{index-c15bd800.js → index-5acef487.js} +54 -17
- package/dist/cjs/index.browser-2f65f583.js +15 -0
- package/dist/cjs/index.cjs.js +56 -27
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-a7150f64.js → package-c6bc9e82.js} +1 -1
- package/dist/cjs/{post-accordion-62d2fd79.js → post-accordion-d1345784.js} +9 -8
- package/dist/cjs/post-accordion-item-a796d803.js +64 -0
- package/dist/cjs/post-accordion-item.cjs.entry.js +8 -5
- package/dist/cjs/post-accordion.cjs.entry.js +4 -4
- package/dist/cjs/post-avatar-b4e96354.js +144 -0
- package/dist/cjs/post-avatar.cjs.entry.js +13 -0
- package/dist/cjs/post-back-to-top-fc541c6b.js +76 -0
- package/dist/cjs/post-back-to-top.cjs.entry.js +15 -0
- package/dist/cjs/post-banner-46522b4f.js +96 -0
- package/dist/cjs/post-banner.cjs.entry.js +19 -0
- package/dist/cjs/post-breadcrumb-799d34da.js +112 -0
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +17 -0
- package/dist/cjs/post-breadcrumb.cjs.entry.js +13 -0
- package/dist/cjs/post-card-control-7bf7d3f2.js +283 -0
- package/dist/cjs/post-card-control.cjs.entry.js +5 -5
- package/dist/cjs/post-closebutton_15.cjs.entry.js +34 -0
- package/dist/cjs/{post-collapsible-trigger-9dca8493.js → post-collapsible-trigger-0568e3ec.js} +50 -56
- package/dist/cjs/post-collapsible_2.cjs.entry.js +10 -6
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-footer-f87a556b.js +88 -0
- package/dist/cjs/post-footer.cjs.entry.js +11 -0
- package/dist/cjs/post-linkarea-0ccf93fc.js +30 -0
- package/dist/cjs/post-linkarea.cjs.entry.js +11 -0
- package/dist/cjs/post-menu-item-eba24c40.js +68 -0
- package/dist/cjs/post-popover-35f679f6.js +106 -0
- package/dist/cjs/post-popover.cjs.entry.js +4 -4
- package/dist/cjs/{post-rating-db5a397a.js → post-rating-d12fa214.js} +16 -6
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/post-tab-header-89dca04b.js +33 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +5 -4
- package/dist/cjs/{post-tab-panel-d59cf1ec.js → post-tab-panel-ad1ab180.js} +6 -5
- package/dist/cjs/post-tab-panel.cjs.entry.js +4 -3
- package/dist/cjs/{post-tabs-7afae61a.js → post-tabs-0db75745.js} +23 -16
- package/dist/cjs/post-tabs.cjs.entry.js +4 -4
- package/dist/cjs/post-tag-396a46c9.js +47 -0
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/post-togglebutton-69983699.js +3861 -0
- package/dist/cjs/{post-tooltip-432852c7.js → post-tooltip-7174ea97.js} +38 -25
- package/dist/cjs/post-tooltip.cjs.entry.js +8 -6
- package/dist/cjs/slide-8ae17ee4.js +28 -0
- package/dist/collection/animations/collapse.js +5 -5
- package/dist/collection/animations/fade.js +6 -2
- package/dist/collection/animations/slide.js +23 -0
- package/dist/collection/collection-manifest.json +22 -3
- package/dist/collection/components/post-accordion/post-accordion.css +1 -1
- package/dist/collection/components/post-accordion/post-accordion.js +5 -3
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +29 -11
- package/dist/collection/components/post-avatar/post-avatar.css +3 -0
- package/dist/collection/components/post-avatar/post-avatar.js +234 -0
- package/dist/collection/components/post-back-to-top/post-back-to-top.css +1 -0
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +109 -0
- package/dist/collection/components/post-banner/banner-types.js +1 -0
- package/dist/collection/components/post-banner/post-banner.css +3 -0
- package/dist/collection/components/{post-alert/post-alert.js → post-banner/post-banner.js} +51 -73
- package/dist/collection/components/post-breadcrumb/post-breadcrumb.css +3 -0
- package/dist/collection/components/post-breadcrumb/post-breadcrumb.js +163 -0
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -0
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +98 -0
- package/dist/collection/components/post-card-control/post-card-control.css +1 -1
- package/dist/collection/components/post-card-control/post-card-control.js +55 -43
- package/dist/collection/components/post-closebutton/post-closebutton.js +13 -0
- package/dist/collection/components/post-collapsible/post-collapsible.css +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +15 -6
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +21 -20
- package/dist/collection/components/post-footer/post-footer.css +1 -0
- package/dist/collection/components/post-footer/post-footer.js +76 -0
- package/dist/collection/components/post-header/post-header.css +1 -0
- package/dist/collection/components/post-header/post-header.js +267 -0
- package/dist/collection/components/post-icon/post-icon.js +80 -47
- package/dist/collection/components/post-language-option/post-language-option.css +3 -0
- package/dist/collection/components/post-language-option/post-language-option.js +224 -0
- package/dist/collection/components/post-language-switch/post-language-switch.css +1 -0
- package/dist/collection/components/post-language-switch/post-language-switch.js +164 -0
- package/dist/collection/components/post-language-switch/switch-variants.js +1 -0
- package/dist/collection/components/post-linkarea/post-linkarea.css +1 -0
- package/dist/collection/components/post-linkarea/post-linkarea.js +30 -0
- package/dist/collection/components/post-list/post-list.css +3 -0
- package/dist/collection/components/post-list/post-list.js +90 -0
- package/dist/collection/components/post-list-item/post-list-item.css +1 -0
- package/dist/collection/components/post-list-item/post-list-item.js +26 -0
- package/dist/collection/components/post-logo/post-logo.css +1 -1
- package/dist/collection/components/post-logo/post-logo.js +4 -3
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -0
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +255 -0
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -0
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +268 -0
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -0
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +127 -0
- package/dist/collection/components/post-menu/post-menu.css +3 -0
- package/dist/collection/components/post-menu/post-menu.js +297 -0
- package/dist/collection/components/post-menu-item/post-menu-item.js +8 -0
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.css +1 -0
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +122 -0
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +6 -3
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +193 -38
- package/dist/collection/components/post-rating/post-rating.css +1 -1
- package/dist/collection/components/post-rating/post-rating.js +13 -2
- package/dist/collection/components/post-tab-header/post-tab-header.css +2 -2
- package/dist/collection/components/post-tab-header/post-tab-header.js +6 -4
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +4 -2
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +17 -14
- package/dist/collection/components/post-tag/post-tag.css +1 -1
- package/dist/collection/components/post-tag/post-tag.js +3 -2
- package/dist/collection/components/post-togglebutton/post-togglebutton.css +1 -0
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +75 -0
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +35 -17
- package/dist/collection/index.js +21 -2
- package/dist/collection/utils/attribute-observer.js +4 -4
- package/dist/collection/utils/breakpoints.js +50 -0
- package/dist/collection/utils/component-on-ready.js +4 -4
- package/dist/collection/utils/debounce.js +2 -1
- package/dist/collection/utils/get-focusable-children.js +33 -0
- package/dist/collection/utils/property-checkers/check-non-empty.js +6 -2
- package/dist/collection/utils/property-checkers/check-one-of.js +8 -3
- package/dist/collection/utils/property-checkers/check-pattern.js +8 -3
- package/dist/collection/utils/property-checkers/check-type.js +11 -6
- package/dist/collection/utils/property-checkers/check-url.js +11 -6
- package/dist/collection/utils/property-checkers/empty-or.js +5 -2
- package/dist/collection/utils/sass-export.js +8 -5
- package/dist/components/attribute-observer.js +4 -4
- package/dist/components/check-non-empty.js +6 -2
- package/dist/components/check-one-of.js +8 -3
- package/dist/components/check-type.js +11 -6
- package/dist/components/debounce.js +11 -0
- package/dist/components/fade.js +6 -2
- package/dist/components/get-focusable-children.js +35 -0
- package/dist/components/get-root.js +9 -0
- package/dist/components/index.browser.js +13 -0
- package/dist/components/index.js +21 -2
- package/dist/components/index2.js +25 -12
- package/dist/components/index3.js +135 -0
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +36 -16
- package/dist/components/post-accordion2.js +6 -5
- package/dist/components/post-avatar.d.ts +11 -0
- package/dist/components/post-avatar.js +6 -0
- package/dist/components/post-avatar2.js +169 -0
- package/dist/components/post-back-to-top.d.ts +11 -0
- package/dist/components/post-back-to-top.js +6 -0
- package/dist/components/post-back-to-top2.js +101 -0
- package/dist/components/post-banner.d.ts +11 -0
- package/dist/components/post-banner.js +6 -0
- package/dist/components/post-banner2.js +131 -0
- package/dist/components/post-breadcrumb-item.d.ts +11 -0
- package/dist/components/post-breadcrumb-item.js +6 -0
- package/dist/components/post-breadcrumb-item2.js +82 -0
- package/dist/components/post-breadcrumb.d.ts +11 -0
- package/dist/components/post-breadcrumb.js +6 -0
- package/dist/components/post-breadcrumb2.js +169 -0
- package/dist/components/post-card-control2.js +50 -39
- package/dist/components/post-closebutton.d.ts +11 -0
- package/dist/components/post-closebutton.js +6 -0
- package/dist/components/post-closebutton2.js +34 -0
- package/dist/components/post-collapsible-trigger2.js +23 -38
- package/dist/components/post-collapsible2.js +22 -14
- package/dist/components/post-footer.d.ts +11 -0
- package/dist/components/post-footer.js +6 -0
- package/dist/components/post-footer2.js +128 -0
- package/dist/components/post-header.d.ts +11 -0
- package/dist/components/post-header.js +6 -0
- package/dist/components/post-header2.js +217 -0
- package/dist/components/post-icon2.js +82 -46
- package/dist/components/post-language-option.d.ts +11 -0
- package/dist/components/post-language-option.js +6 -0
- package/dist/components/post-language-option2.js +102 -0
- package/dist/components/post-language-switch.d.ts +11 -0
- package/dist/components/post-language-switch.js +6 -0
- package/dist/components/post-language-switch2.js +135 -0
- package/dist/components/post-linkarea.d.ts +11 -0
- package/dist/components/post-linkarea.js +6 -0
- package/dist/components/post-linkarea2.js +42 -0
- package/dist/components/post-list-item.d.ts +11 -0
- package/dist/components/post-list-item.js +6 -0
- package/dist/components/post-list-item2.js +35 -0
- package/dist/components/{post-alert.d.ts → post-list.d.ts} +4 -4
- package/dist/components/post-list.js +6 -0
- package/dist/components/post-list2.js +55 -0
- package/dist/components/post-logo2.js +5 -5
- package/dist/components/post-mainnavigation.d.ts +11 -0
- package/dist/components/post-mainnavigation.js +6 -0
- package/dist/components/post-mainnavigation2.js +258 -0
- package/dist/components/post-megadropdown-trigger.d.ts +11 -0
- package/dist/components/post-megadropdown-trigger.js +6 -0
- package/dist/components/post-megadropdown-trigger2.js +113 -0
- package/dist/components/post-megadropdown.d.ts +11 -0
- package/dist/components/post-megadropdown.js +6 -0
- package/dist/components/post-megadropdown2.js +186 -0
- package/dist/components/post-menu-item.d.ts +11 -0
- package/dist/components/post-menu-item.js +6 -0
- package/dist/components/post-menu-item2.js +27 -0
- package/dist/components/post-menu-trigger.d.ts +11 -0
- package/dist/components/post-menu-trigger.js +6 -0
- package/dist/components/post-menu-trigger2.js +109 -0
- package/dist/components/post-menu.d.ts +11 -0
- package/dist/components/post-menu.js +6 -0
- package/dist/components/post-menu2.js +193 -0
- package/dist/components/post-popover2.js +6 -4
- package/dist/components/post-popovercontainer2.js +227 -59
- package/dist/components/post-rating2.js +14 -4
- package/dist/components/post-tab-header2.js +7 -6
- package/dist/components/post-tab-panel2.js +4 -3
- package/dist/components/post-tabs2.js +20 -13
- package/dist/components/post-tag2.js +3 -3
- package/dist/components/post-togglebutton.d.ts +11 -0
- package/dist/components/post-togglebutton.js +6 -0
- package/dist/components/post-togglebutton2.js +61 -0
- package/dist/components/post-tooltip2.js +35 -22
- package/dist/components/slide.js +25 -0
- package/dist/docs.json +1956 -270
- package/dist/esm/{attribute-observer-37fa950a.js → attribute-observer-2f203993.js} +4 -4
- package/dist/esm/check-non-empty-258a56b3.js +13 -0
- package/dist/esm/check-one-of-0bee20f5.js +11 -0
- package/dist/esm/check-type-37d5d307.js +19 -0
- package/dist/esm/check-url-17962bc8.js +17 -0
- package/dist/esm/debounce-e54c7131.js +11 -0
- package/dist/esm/fade-1f3cacf4.js +11 -0
- package/dist/esm/get-root-7af2e0d1.js +9 -0
- package/dist/esm/{index-0b56fc28.js → index-40846676.js} +54 -17
- package/dist/esm/index-8f8fe5b0.js +32 -0
- package/dist/esm/index.browser-51485f85.js +13 -0
- package/dist/esm/index.js +32 -22
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-5614c98b.js +3 -0
- package/dist/esm/{post-accordion-6f4d2b9a.js → post-accordion-f6d1834d.js} +9 -8
- package/dist/esm/post-accordion-item-7cb93300.js +62 -0
- package/dist/esm/post-accordion-item.entry.js +8 -5
- package/dist/esm/post-accordion.entry.js +4 -4
- package/dist/esm/post-avatar-96108967.js +142 -0
- package/dist/esm/post-avatar.entry.js +5 -0
- package/dist/esm/post-back-to-top-7f8a61c8.js +74 -0
- package/dist/esm/post-back-to-top.entry.js +7 -0
- package/dist/esm/post-banner-bb69bce8.js +94 -0
- package/dist/esm/post-banner.entry.js +11 -0
- package/dist/esm/post-breadcrumb-9d9efa4e.js +110 -0
- package/dist/esm/post-breadcrumb-item_2.entry.js +8 -0
- package/dist/esm/post-breadcrumb.entry.js +5 -0
- package/dist/esm/post-card-control-fdced7d5.js +281 -0
- package/dist/esm/post-card-control.entry.js +5 -5
- package/dist/esm/post-closebutton_15.entry.js +12 -0
- package/dist/esm/{post-collapsible-trigger-85c2064a.js → post-collapsible-trigger-17b2f067.js} +49 -55
- package/dist/esm/post-collapsible_2.entry.js +10 -6
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-footer-2dcd8159.js +86 -0
- package/dist/esm/post-footer.entry.js +3 -0
- package/dist/esm/post-linkarea-06c5144d.js +28 -0
- package/dist/esm/post-linkarea.entry.js +3 -0
- package/dist/esm/post-menu-item-e917bf99.js +65 -0
- package/dist/esm/post-popover-67a3cbf2.js +104 -0
- package/dist/esm/post-popover.entry.js +4 -4
- package/dist/esm/{post-rating-d9fc0b40.js → post-rating-9613bee8.js} +16 -6
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/post-tab-header-dff3a025.js +31 -0
- package/dist/esm/post-tab-header.entry.js +5 -4
- package/dist/esm/{post-tab-panel-926439f4.js → post-tab-panel-2b3f82a8.js} +6 -5
- package/dist/esm/post-tab-panel.entry.js +4 -3
- package/dist/esm/{post-tabs-13b2d9a6.js → post-tabs-46d1165f.js} +23 -16
- package/dist/esm/post-tabs.entry.js +4 -4
- package/dist/esm/post-tag-4176268e.js +45 -0
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/post-togglebutton-5892c5bd.js +3845 -0
- package/dist/esm/{post-tooltip-3cde6b53.js → post-tooltip-5a45a569.js} +38 -25
- package/dist/esm/post-tooltip.entry.js +8 -6
- package/dist/esm/slide-62768431.js +25 -0
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-017dc6c7.js +1 -0
- package/dist/post-components/p-0227b899.js +1 -0
- package/dist/post-components/p-04895a54.js +1 -0
- package/dist/post-components/p-04c38bfe.entry.js +1 -0
- package/dist/post-components/p-07a0a626.js +1 -0
- package/dist/post-components/p-12573893.js +1 -0
- package/dist/post-components/p-1289b0a7.entry.js +1 -0
- package/dist/post-components/p-12a11565.js +1 -0
- package/dist/post-components/p-1542a80e.entry.js +1 -0
- package/dist/post-components/p-181c73d5.js +1 -0
- package/dist/post-components/p-254a9bd2.entry.js +1 -0
- package/dist/post-components/p-28500934.entry.js +1 -0
- package/dist/post-components/p-2b1281af.js +1 -0
- package/dist/post-components/p-2c69e7f2.entry.js +1 -0
- package/dist/post-components/p-30132b19.entry.js +1 -0
- package/dist/post-components/p-30af1d48.js +1 -0
- package/dist/post-components/p-3bdeb686.entry.js +1 -0
- package/dist/post-components/p-47cb31dd.js +1 -0
- package/dist/post-components/p-4af6dbed.js +1 -0
- package/dist/post-components/p-4f41f63e.js +1 -0
- package/dist/post-components/p-52790b8b.js +1 -0
- package/dist/post-components/p-5959f2bd.js +1 -0
- package/dist/post-components/{p-82dcf8c6.js → p-59ca0a13.js} +3 -3
- package/dist/post-components/p-5aaa5703.entry.js +1 -0
- package/dist/post-components/p-64e3de38.js +1 -0
- package/dist/post-components/p-67a45f16.js +1 -0
- package/dist/post-components/p-6d8ac9bd.entry.js +1 -0
- package/dist/post-components/p-7709c14a.js +1 -0
- package/dist/post-components/p-77cc2a5e.entry.js +1 -0
- package/dist/post-components/p-79c552fb.js +1 -0
- package/dist/post-components/p-7dd05e6d.entry.js +1 -0
- package/dist/post-components/p-803b7598.js +1 -0
- package/dist/post-components/p-85fdc2d3.js +1 -0
- package/dist/post-components/p-9748a355.js +1 -0
- package/dist/post-components/p-98fcf90b.entry.js +1 -0
- package/dist/post-components/p-994fae4c.entry.js +1 -0
- package/dist/post-components/p-a805515a.entry.js +1 -0
- package/dist/post-components/p-b5b48f66.entry.js +1 -0
- package/dist/post-components/p-b9bf5a5f.js +1 -0
- package/dist/post-components/p-c6b3a926.js +1 -0
- package/dist/post-components/p-c9dd3cdb.entry.js +1 -0
- package/dist/post-components/p-cb5e4a06.js +1 -0
- package/dist/post-components/p-d45df336.js +1 -0
- package/dist/post-components/p-dd4a5c0a.entry.js +1 -0
- package/dist/post-components/p-e1baac59.js +1 -0
- package/dist/post-components/p-e585c6fe.js +1 -0
- package/dist/post-components/p-e6d54838.entry.js +1 -0
- package/dist/post-components/p-f4b0cc7d.js +1 -0
- package/dist/post-components/p-fc91cbc2.js +1 -0
- package/dist/post-components/p-fe8c300c.js +1 -0
- package/dist/post-components/p-ff95dcd3.js +2 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/animations/collapse.d.ts +2 -2
- package/dist/types/animations/fade.d.ts +2 -2
- package/dist/types/animations/slide.d.ts +2 -0
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +8 -2
- package/dist/types/components/post-avatar/post-avatar.d.ts +51 -0
- package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +19 -0
- package/dist/types/components/post-banner/banner-types.d.ts +2 -0
- package/dist/types/components/post-banner/post-banner.d.ts +49 -0
- package/dist/types/components/post-breadcrumb/post-breadcrumb.d.ts +30 -0
- package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +20 -0
- package/dist/types/components/post-card-control/post-card-control.d.ts +9 -9
- package/dist/types/components/post-closebutton/post-closebutton.d.ts +7 -0
- package/dist/types/components/post-footer/post-footer.d.ts +23 -0
- package/dist/types/components/post-header/post-header.d.ts +45 -0
- package/dist/types/components/post-icon/post-icon.d.ts +14 -12
- package/dist/types/components/post-language-option/post-language-option.d.ts +45 -0
- package/dist/types/components/post-language-switch/post-language-switch.d.ts +31 -0
- package/dist/types/components/post-language-switch/switch-variants.d.ts +2 -0
- package/dist/types/components/post-linkarea/post-linkarea.d.ts +5 -0
- package/dist/types/components/post-list/post-list.d.ts +24 -0
- package/dist/types/components/post-list-item/post-list-item.d.ts +8 -0
- package/dist/types/components/post-logo/post-logo.d.ts +1 -1
- package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +70 -0
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +57 -0
- package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +31 -0
- package/dist/types/components/post-menu/post-menu.d.ts +48 -0
- package/dist/types/components/post-menu-item/post-menu-item.d.ts +3 -0
- package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +28 -0
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +23 -1
- package/dist/types/components/post-tab-header/post-tab-header.d.ts +1 -1
- package/dist/types/components/post-tabs/post-tabs.d.ts +1 -1
- package/dist/types/components/post-tag/post-tag.d.ts +1 -1
- package/dist/types/components/post-togglebutton/post-togglebutton.d.ts +15 -0
- package/dist/types/components.d.ts +609 -48
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/.config/bindings.angular.d.ts +2 -0
- package/dist/types/index.d.ts +22 -3
- package/dist/types/utils/attribute-observer.d.ts +1 -1
- package/dist/types/utils/breakpoints.d.ts +12 -0
- package/dist/types/utils/component-on-ready.d.ts +1 -1
- package/dist/types/utils/get-focusable-children.d.ts +1 -0
- package/dist/types/utils/get-root.d.ts +1 -1
- package/dist/types/utils/property-checkers/check-non-empty.d.ts +3 -1
- package/dist/types/utils/property-checkers/check-one-of.d.ts +3 -1
- package/dist/types/utils/property-checkers/check-pattern.d.ts +3 -1
- package/dist/types/utils/property-checkers/check-type.d.ts +3 -1
- package/dist/types/utils/property-checkers/check-url.d.ts +3 -1
- package/dist/types/utils/property-checkers/index.d.ts +12 -4
- package/dist/types/utils/sass-export.d.ts +5 -1
- package/loaders/attribute-observer.js +4 -4
- package/loaders/check-non-empty.js +6 -2
- package/loaders/check-one-of.js +8 -3
- package/loaders/check-type.js +11 -6
- package/loaders/debounce.js +11 -0
- package/loaders/fade.js +6 -2
- package/loaders/get-focusable-children.js +35 -0
- package/loaders/get-root.js +9 -0
- package/loaders/index.browser.js +13 -0
- package/loaders/index.d.ts +40 -2
- package/loaders/index.js +21 -2
- package/loaders/index2.js +25 -12
- package/loaders/index3.js +135 -0
- package/loaders/package.js +1 -1
- package/loaders/post-accordion-item.js +1 -81
- package/loaders/post-accordion-item2.js +103 -0
- package/loaders/post-accordion.js +6 -5
- package/loaders/post-avatar.d.ts +11 -0
- package/loaders/post-avatar.js +172 -0
- package/loaders/post-back-to-top.d.ts +11 -0
- package/loaders/post-back-to-top.js +104 -0
- package/loaders/post-banner.d.ts +11 -0
- package/loaders/post-banner.js +134 -0
- package/loaders/post-breadcrumb-item.d.ts +11 -0
- package/loaders/post-breadcrumb-item.js +6 -0
- package/loaders/post-breadcrumb-item2.js +82 -0
- package/loaders/post-breadcrumb.d.ts +11 -0
- package/loaders/post-breadcrumb.js +172 -0
- package/loaders/post-card-control.js +50 -39
- package/loaders/post-closebutton.d.ts +11 -0
- package/loaders/post-closebutton.js +37 -0
- package/loaders/post-collapsible-trigger2.js +23 -38
- package/loaders/post-collapsible2.js +21 -13
- package/loaders/post-footer.d.ts +11 -0
- package/loaders/post-footer.js +131 -0
- package/loaders/post-header.d.ts +11 -0
- package/loaders/post-header.js +220 -0
- package/loaders/post-icon2.js +82 -46
- package/loaders/post-language-option.d.ts +11 -0
- package/loaders/post-language-option.js +105 -0
- package/loaders/post-language-switch.d.ts +11 -0
- package/loaders/post-language-switch.js +138 -0
- package/loaders/post-linkarea.d.ts +11 -0
- package/loaders/post-linkarea.js +45 -0
- package/loaders/post-list-item.d.ts +11 -0
- package/loaders/post-list-item.js +38 -0
- package/loaders/{post-alert.d.ts → post-list.d.ts} +4 -4
- package/loaders/post-list.js +58 -0
- package/loaders/post-logo.js +6 -6
- package/loaders/post-mainnavigation.d.ts +11 -0
- package/loaders/post-mainnavigation.js +261 -0
- package/loaders/post-megadropdown-trigger.d.ts +11 -0
- package/loaders/post-megadropdown-trigger.js +116 -0
- package/loaders/post-megadropdown.d.ts +11 -0
- package/loaders/post-megadropdown.js +189 -0
- package/loaders/post-menu-item.d.ts +11 -0
- package/loaders/post-menu-item.js +6 -0
- package/loaders/post-menu-item2.js +27 -0
- package/loaders/post-menu-trigger.d.ts +11 -0
- package/loaders/post-menu-trigger.js +6 -0
- package/loaders/post-menu-trigger2.js +109 -0
- package/loaders/post-menu.d.ts +11 -0
- package/loaders/post-menu.js +6 -0
- package/loaders/post-menu2.js +193 -0
- package/loaders/post-popover.js +6 -4
- package/loaders/post-popovercontainer2.js +227 -59
- package/loaders/post-rating.js +14 -4
- package/loaders/post-tab-header.js +7 -6
- package/loaders/post-tab-panel.js +4 -3
- package/loaders/post-tabs.js +20 -13
- package/loaders/post-tag.js +3 -3
- package/loaders/post-togglebutton.d.ts +11 -0
- package/loaders/post-togglebutton.js +64 -0
- package/loaders/post-tooltip.js +34 -21
- package/loaders/slide.js +25 -0
- package/package.json +26 -20
- package/dist/cjs/check-non-empty-eeaa8f77.js +0 -11
- package/dist/cjs/check-one-of-f4f5d0c0.js +0 -8
- package/dist/cjs/fade-35a3633a.js +0 -10
- package/dist/cjs/index-01f30442.js +0 -52
- package/dist/cjs/post-accordion-item-7b348fa5.js +0 -51
- package/dist/cjs/post-alert-fca3a4a3.js +0 -98
- package/dist/cjs/post-alert.cjs.entry.js +0 -16
- package/dist/cjs/post-card-control-b4e4b4d5.js +0 -272
- package/dist/cjs/post-icon-3934be0b.js +0 -104
- package/dist/cjs/post-icon.cjs.entry.js +0 -15
- package/dist/cjs/post-logo-c3603fc7.js +0 -39
- package/dist/cjs/post-logo.cjs.entry.js +0 -14
- package/dist/cjs/post-popover-15f9620a.js +0 -104
- package/dist/cjs/post-popovercontainer-7d536276.js +0 -2186
- package/dist/cjs/post-popovercontainer.cjs.entry.js +0 -11
- package/dist/cjs/post-tab-header-29b8d4e1.js +0 -32
- package/dist/cjs/post-tag-b7d0bbff.js +0 -47
- package/dist/collection/components/post-alert/alert-types.js +0 -1
- package/dist/collection/components/post-alert/post-alert.css +0 -7
- package/dist/components/post-alert.js +0 -6
- package/dist/components/post-alert2.js +0 -136
- package/dist/esm/check-non-empty-58bd6b17.js +0 -9
- package/dist/esm/check-one-of-6b3ef8eb.js +0 -6
- package/dist/esm/fade-7fd71785.js +0 -7
- package/dist/esm/index-f41b763f.js +0 -46
- package/dist/esm/package-3d758f77.js +0 -3
- package/dist/esm/post-accordion-item-6b5a65ad.js +0 -49
- package/dist/esm/post-alert-f19db551.js +0 -96
- package/dist/esm/post-alert.entry.js +0 -8
- package/dist/esm/post-card-control-1b5df6cb.js +0 -270
- package/dist/esm/post-icon-40929043.js +0 -102
- package/dist/esm/post-icon.entry.js +0 -7
- package/dist/esm/post-logo-c6351ba8.js +0 -37
- package/dist/esm/post-logo.entry.js +0 -6
- package/dist/esm/post-popover-58149de7.js +0 -102
- package/dist/esm/post-popovercontainer-8bde9fc3.js +0 -2184
- package/dist/esm/post-popovercontainer.entry.js +0 -3
- package/dist/esm/post-tab-header-ae8feb19.js +0 -30
- package/dist/esm/post-tag-887d5fbe.js +0 -45
- package/dist/post-components/p-0b71bf5a.js +0 -1
- package/dist/post-components/p-0e09dc41.js +0 -1
- package/dist/post-components/p-19e54be9.js +0 -1
- package/dist/post-components/p-1e8f0f36.js +0 -1
- package/dist/post-components/p-22257eff.entry.js +0 -1
- package/dist/post-components/p-249ac168.entry.js +0 -1
- package/dist/post-components/p-2737eaf5.js +0 -1
- package/dist/post-components/p-2b10e265.js +0 -1
- package/dist/post-components/p-3325086e.js +0 -1
- package/dist/post-components/p-3b823fee.entry.js +0 -1
- package/dist/post-components/p-45f4c803.entry.js +0 -1
- package/dist/post-components/p-47935dbb.js +0 -1
- package/dist/post-components/p-486fbbce.entry.js +0 -1
- package/dist/post-components/p-4a7fb0f3.entry.js +0 -1
- package/dist/post-components/p-5f231c2c.js +0 -1
- package/dist/post-components/p-611b3c41.js +0 -1
- package/dist/post-components/p-6a28f8b9.js +0 -1
- package/dist/post-components/p-6adeaa6c.js +0 -1
- package/dist/post-components/p-6ed3497a.entry.js +0 -1
- package/dist/post-components/p-820c5c19.entry.js +0 -1
- package/dist/post-components/p-8aeb549f.entry.js +0 -1
- package/dist/post-components/p-92aeec3c.js +0 -1
- package/dist/post-components/p-9a99cfc7.js +0 -1
- package/dist/post-components/p-aa8a08dc.entry.js +0 -1
- package/dist/post-components/p-b095519d.js +0 -1
- package/dist/post-components/p-b99fdec3.js +0 -1
- package/dist/post-components/p-ba40b28a.entry.js +0 -1
- package/dist/post-components/p-c62de925.js +0 -1
- package/dist/post-components/p-d2101b8a.entry.js +0 -1
- package/dist/post-components/p-d2f9de94.js +0 -2
- package/dist/post-components/p-d7a44f45.js +0 -1
- package/dist/post-components/p-db4b8ea1.entry.js +0 -1
- package/dist/post-components/p-deb4131c.js +0 -1
- package/dist/post-components/p-eedc6ae8.entry.js +0 -1
- package/dist/post-components/p-f217f420.js +0 -1
- package/dist/post-components/p-f707d163.entry.js +0 -1
- package/dist/types/components/post-alert/alert-types.d.ts +0 -2
- package/dist/types/components/post-alert/post-alert.d.ts +0 -54
- package/loaders/post-alert.js +0 -139
|
@@ -3,27 +3,62 @@ import { arrow, autoUpdate, computePosition, flip, inline, limitShift, offset, s
|
|
|
3
3
|
// Polyfill for popovers, can be removed when https://caniuse.com/?search=popover is green
|
|
4
4
|
import "@oddbird/popover-polyfill";
|
|
5
5
|
import { version } from "../../../../package";
|
|
6
|
-
const SIDE_MAP = {
|
|
7
|
-
top: 'bottom',
|
|
8
|
-
right: 'left',
|
|
9
|
-
bottom: 'top',
|
|
10
|
-
left: 'right',
|
|
11
|
-
};
|
|
12
6
|
/**
|
|
13
7
|
* @slot - Default slot for placing content inside the popovercontainer.
|
|
14
8
|
*/
|
|
15
9
|
export class PostPopovercontainer {
|
|
16
10
|
constructor() {
|
|
11
|
+
this.manualClose = false;
|
|
17
12
|
this.placement = 'top';
|
|
13
|
+
this.edgeGap = 8;
|
|
18
14
|
this.arrow = false;
|
|
15
|
+
this.safeSpace = undefined;
|
|
16
|
+
}
|
|
17
|
+
static STATIC_SIDES = {
|
|
18
|
+
top: 'bottom',
|
|
19
|
+
right: 'left',
|
|
20
|
+
bottom: 'top',
|
|
21
|
+
left: 'right',
|
|
22
|
+
};
|
|
23
|
+
static PROPERTIES_TO_CLEAR = [
|
|
24
|
+
'--safe-space-popover-x',
|
|
25
|
+
'--safe-space-popover-y',
|
|
26
|
+
'--safe-space-popover-x-start',
|
|
27
|
+
'--safe-space-popover-x-end',
|
|
28
|
+
'--safe-space-popover-y-start',
|
|
29
|
+
'--safe-space-popover-y-end',
|
|
30
|
+
'--safe-space-trigger-x',
|
|
31
|
+
'--safe-space-trigger-y',
|
|
32
|
+
'--safe-space-trigger-x-start',
|
|
33
|
+
'--safe-space-trigger-x-end',
|
|
34
|
+
'--safe-space-trigger-y-start',
|
|
35
|
+
'--safe-space-trigger-y-end',
|
|
36
|
+
];
|
|
37
|
+
host;
|
|
38
|
+
arrowRef;
|
|
39
|
+
eventTarget;
|
|
40
|
+
clearAutoUpdate;
|
|
41
|
+
toggleTimeoutId;
|
|
42
|
+
/**
|
|
43
|
+
* Fires whenever the popover gets shown or hidden, passing the new state in event.details as a boolean
|
|
44
|
+
*/
|
|
45
|
+
postToggle;
|
|
46
|
+
/**
|
|
47
|
+
* Updates cursor position for safe space feature when popover is open.
|
|
48
|
+
* Sets CSS custom properties for dynamic styling of safe area.
|
|
49
|
+
* @param event MouseEvent with cursor position
|
|
50
|
+
*/
|
|
51
|
+
mouseTrackingHandler(event) {
|
|
52
|
+
this.host.style.setProperty('--safe-space-cursor-x', `${event.clientX}px`);
|
|
53
|
+
this.host.style.setProperty('--safe-space-cursor-y', `${event.clientY}px`);
|
|
19
54
|
}
|
|
20
55
|
componentDidLoad() {
|
|
21
|
-
this.host.setAttribute('popover', '');
|
|
22
56
|
this.host.addEventListener('beforetoggle', this.handleToggle.bind(this));
|
|
23
57
|
}
|
|
24
58
|
disconnectedCallback() {
|
|
25
|
-
if (typeof this.clearAutoUpdate === 'function')
|
|
59
|
+
if (typeof this.clearAutoUpdate === 'function') {
|
|
26
60
|
this.clearAutoUpdate();
|
|
61
|
+
}
|
|
27
62
|
}
|
|
28
63
|
/**
|
|
29
64
|
* Programmatically display the tooltip
|
|
@@ -58,7 +93,7 @@ export class PostPopovercontainer {
|
|
|
58
93
|
this.host.togglePopover(force);
|
|
59
94
|
this.toggleTimeoutId = null;
|
|
60
95
|
}
|
|
61
|
-
return this.host.matches(':where(:popover-open, .popover-open');
|
|
96
|
+
return this.host.matches(':where(:popover-open, .popover-open)');
|
|
62
97
|
}
|
|
63
98
|
/**
|
|
64
99
|
* Start or stop auto updates based on tooltip events.
|
|
@@ -71,10 +106,14 @@ export class PostPopovercontainer {
|
|
|
71
106
|
const isOpen = e.newState === 'open';
|
|
72
107
|
if (isOpen) {
|
|
73
108
|
this.startAutoupdates();
|
|
109
|
+
if (this.safeSpace)
|
|
110
|
+
window.addEventListener('mousemove', this.mouseTrackingHandler.bind(this));
|
|
74
111
|
}
|
|
75
112
|
else {
|
|
76
113
|
if (typeof this.clearAutoUpdate === 'function')
|
|
77
114
|
this.clearAutoUpdate();
|
|
115
|
+
if (this.safeSpace)
|
|
116
|
+
window.removeEventListener('mousemove', this.mouseTrackingHandler.bind(this));
|
|
78
117
|
}
|
|
79
118
|
this.postToggle.emit(isOpen);
|
|
80
119
|
}
|
|
@@ -86,13 +125,35 @@ export class PostPopovercontainer {
|
|
|
86
125
|
this.clearAutoUpdate = autoUpdate(this.eventTarget, this.host, this.calculatePosition.bind(this));
|
|
87
126
|
}
|
|
88
127
|
async calculatePosition() {
|
|
128
|
+
const { x, y, middlewareData, placement } = await this.computeMainPosition();
|
|
129
|
+
const currentPlacement = placement.split('-')[0];
|
|
130
|
+
// Position popover
|
|
131
|
+
this.host.style.left = `${x}px`;
|
|
132
|
+
this.host.style.top = `${y}px`;
|
|
133
|
+
// Position arrow if enabled
|
|
134
|
+
if (this.arrow && middlewareData.arrow) {
|
|
135
|
+
const { x: arrowX, y: arrowY } = middlewareData.arrow;
|
|
136
|
+
const staticSide = PostPopovercontainer.STATIC_SIDES[currentPlacement];
|
|
137
|
+
if (staticSide) {
|
|
138
|
+
Object.assign(this.arrowRef.style, {
|
|
139
|
+
left: arrowX ? `${arrowX}px` : '',
|
|
140
|
+
top: arrowY ? `${arrowY}px` : '',
|
|
141
|
+
[staticSide]: '-7px',
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
// Handle safe space if enabled
|
|
146
|
+
if (this.safeSpace && this.eventTarget) {
|
|
147
|
+
await this.updateSafeSpaceBoundaries(currentPlacement);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
async computeMainPosition() {
|
|
151
|
+
const gap = this.edgeGap;
|
|
89
152
|
const middleware = [
|
|
90
153
|
flip(),
|
|
91
154
|
inline(),
|
|
92
155
|
shift({
|
|
93
|
-
padding:
|
|
94
|
-
// Prevents shifting away from the anchor too far, while shifting as far as possible
|
|
95
|
-
// https://floating-ui.com/docs/shift#limiter
|
|
156
|
+
padding: gap,
|
|
96
157
|
limiter: limitShift({
|
|
97
158
|
offset: 32,
|
|
98
159
|
}),
|
|
@@ -100,44 +161,85 @@ export class PostPopovercontainer {
|
|
|
100
161
|
size({
|
|
101
162
|
apply({ availableWidth, elements }) {
|
|
102
163
|
Object.assign(elements.floating.style, {
|
|
103
|
-
maxWidth: `${availableWidth -
|
|
164
|
+
maxWidth: `${availableWidth - gap * 2}px`,
|
|
104
165
|
});
|
|
105
166
|
},
|
|
106
167
|
}),
|
|
107
|
-
offset(this.arrow ?
|
|
168
|
+
offset(this.arrow ? gap + 4 : gap),
|
|
108
169
|
];
|
|
109
170
|
if (this.arrow) {
|
|
110
|
-
middleware.push(arrow({ element: this.arrowRef, padding:
|
|
171
|
+
middleware.push(arrow({ element: this.arrowRef, padding: gap }));
|
|
111
172
|
}
|
|
112
|
-
|
|
173
|
+
return computePosition(this.eventTarget, this.host, {
|
|
113
174
|
placement: this.placement || 'top',
|
|
114
175
|
strategy: 'fixed',
|
|
115
176
|
middleware,
|
|
116
177
|
});
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
this.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
178
|
+
}
|
|
179
|
+
async updateSafeSpaceBoundaries(currentPlacement) {
|
|
180
|
+
const targetRect = this.eventTarget.getBoundingClientRect();
|
|
181
|
+
const popoverRect = this.host.getBoundingClientRect();
|
|
182
|
+
const isVertical = currentPlacement === 'top' || currentPlacement === 'bottom';
|
|
183
|
+
// Helper function to get positioning data based on placement
|
|
184
|
+
const getPositioningData = (placement, popoverRect, targetRect) => {
|
|
185
|
+
if (placement === 'top' || placement === 'bottom') {
|
|
186
|
+
return {
|
|
187
|
+
popover: {
|
|
188
|
+
y: placement === 'top' ? popoverRect.bottom : popoverRect.top,
|
|
189
|
+
xStart: popoverRect.left,
|
|
190
|
+
xEnd: popoverRect.right,
|
|
191
|
+
},
|
|
192
|
+
trigger: {
|
|
193
|
+
y: placement === 'top' ? targetRect.top : targetRect.bottom,
|
|
194
|
+
xStart: targetRect.left,
|
|
195
|
+
xEnd: targetRect.right,
|
|
196
|
+
},
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
// left or right
|
|
201
|
+
return {
|
|
202
|
+
popover: {
|
|
203
|
+
x: placement === 'left' ? popoverRect.right : popoverRect.left,
|
|
204
|
+
yStart: popoverRect.top,
|
|
205
|
+
yEnd: popoverRect.bottom,
|
|
206
|
+
},
|
|
207
|
+
trigger: {
|
|
208
|
+
x: placement === 'left' ? targetRect.left : targetRect.right,
|
|
209
|
+
yStart: targetRect.top,
|
|
210
|
+
yEnd: targetRect.bottom,
|
|
211
|
+
},
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
const posData = getPositioningData(currentPlacement, popoverRect, targetRect);
|
|
216
|
+
// Clear previous values
|
|
217
|
+
PostPopovercontainer.PROPERTIES_TO_CLEAR.forEach(prop => {
|
|
218
|
+
this.host.style.removeProperty(prop);
|
|
219
|
+
});
|
|
220
|
+
if (isVertical) {
|
|
221
|
+
// For top/bottom placement
|
|
222
|
+
this.host.style.setProperty('--safe-space-popover-y', `${posData.popover.y}px`);
|
|
223
|
+
this.host.style.setProperty('--safe-space-popover-x-start', `${posData.popover.xStart}px`);
|
|
224
|
+
this.host.style.setProperty('--safe-space-popover-x-end', `${posData.popover.xEnd}px`);
|
|
225
|
+
this.host.style.setProperty('--safe-space-trigger-y', `${posData.trigger.y}px`);
|
|
226
|
+
this.host.style.setProperty('--safe-space-trigger-x-start', `${posData.trigger.xStart}px`);
|
|
227
|
+
this.host.style.setProperty('--safe-space-trigger-x-end', `${posData.trigger.xEnd}px`);
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
// For left/right placement
|
|
231
|
+
this.host.style.setProperty('--safe-space-popover-x', `${posData.popover.x}px`);
|
|
232
|
+
this.host.style.setProperty('--safe-space-popover-y-start', `${posData.popover.yStart}px`);
|
|
233
|
+
this.host.style.setProperty('--safe-space-popover-y-end', `${posData.popover.yEnd}px`);
|
|
234
|
+
this.host.style.setProperty('--safe-space-trigger-x', `${posData.trigger.x}px`);
|
|
235
|
+
this.host.style.setProperty('--safe-space-trigger-y-start', `${posData.trigger.yStart}px`);
|
|
236
|
+
this.host.style.setProperty('--safe-space-trigger-y-end', `${posData.trigger.yEnd}px`);
|
|
135
237
|
}
|
|
136
238
|
}
|
|
137
239
|
render() {
|
|
138
|
-
return (h(Host, { key: '
|
|
240
|
+
return (h(Host, { key: '2d04c94fe2a6de0c0fe17c1e2dcb99481d13336b', "data-version": version, popover: this.manualClose ? 'manual' : 'auto' }, h("div", { key: '3653be7880e5b896ae85e97ad709838732032f2d' }, this.arrow && (h("span", { key: '770f1727acf0ccb47e3940d034850df9fc3a6096', class: "arrow", ref: el => {
|
|
139
241
|
this.arrowRef = el;
|
|
140
|
-
} })), h("slot", { key: '
|
|
242
|
+
} })), h("slot", { key: 'b12e95d51accec79a08fda3970f3b46ba7147ed7' }))));
|
|
141
243
|
}
|
|
142
244
|
static get is() { return "post-popovercontainer"; }
|
|
143
245
|
static get originalStyleUrls() {
|
|
@@ -152,6 +254,24 @@ export class PostPopovercontainer {
|
|
|
152
254
|
}
|
|
153
255
|
static get properties() {
|
|
154
256
|
return {
|
|
257
|
+
"manualClose": {
|
|
258
|
+
"type": "boolean",
|
|
259
|
+
"mutable": false,
|
|
260
|
+
"complexType": {
|
|
261
|
+
"original": "boolean",
|
|
262
|
+
"resolved": "boolean",
|
|
263
|
+
"references": {}
|
|
264
|
+
},
|
|
265
|
+
"required": false,
|
|
266
|
+
"optional": false,
|
|
267
|
+
"docs": {
|
|
268
|
+
"tags": [],
|
|
269
|
+
"text": "Whether or not the popover should close when user clicks outside of it"
|
|
270
|
+
},
|
|
271
|
+
"attribute": "manual-close",
|
|
272
|
+
"reflect": false,
|
|
273
|
+
"defaultValue": "false"
|
|
274
|
+
},
|
|
155
275
|
"placement": {
|
|
156
276
|
"type": "string",
|
|
157
277
|
"mutable": false,
|
|
@@ -162,7 +282,7 @@ export class PostPopovercontainer {
|
|
|
162
282
|
"Placement": {
|
|
163
283
|
"location": "import",
|
|
164
284
|
"path": "@floating-ui/dom",
|
|
165
|
-
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.6.
|
|
285
|
+
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.6.13/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts::Placement"
|
|
166
286
|
}
|
|
167
287
|
}
|
|
168
288
|
},
|
|
@@ -176,6 +296,24 @@ export class PostPopovercontainer {
|
|
|
176
296
|
"reflect": false,
|
|
177
297
|
"defaultValue": "'top'"
|
|
178
298
|
},
|
|
299
|
+
"edgeGap": {
|
|
300
|
+
"type": "number",
|
|
301
|
+
"mutable": false,
|
|
302
|
+
"complexType": {
|
|
303
|
+
"original": "number",
|
|
304
|
+
"resolved": "number",
|
|
305
|
+
"references": {}
|
|
306
|
+
},
|
|
307
|
+
"required": false,
|
|
308
|
+
"optional": true,
|
|
309
|
+
"docs": {
|
|
310
|
+
"tags": [],
|
|
311
|
+
"text": "Gap between the edge of the page and the popover"
|
|
312
|
+
},
|
|
313
|
+
"attribute": "edge-gap",
|
|
314
|
+
"reflect": false,
|
|
315
|
+
"defaultValue": "8"
|
|
316
|
+
},
|
|
179
317
|
"arrow": {
|
|
180
318
|
"type": "boolean",
|
|
181
319
|
"mutable": false,
|
|
@@ -188,11 +326,28 @@ export class PostPopovercontainer {
|
|
|
188
326
|
"optional": true,
|
|
189
327
|
"docs": {
|
|
190
328
|
"tags": [],
|
|
191
|
-
"text": "
|
|
329
|
+
"text": "Whether or not to display a little pointer arrow"
|
|
192
330
|
},
|
|
193
331
|
"attribute": "arrow",
|
|
194
332
|
"reflect": false,
|
|
195
333
|
"defaultValue": "false"
|
|
334
|
+
},
|
|
335
|
+
"safeSpace": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"mutable": false,
|
|
338
|
+
"complexType": {
|
|
339
|
+
"original": "'triangle' | 'trapezoid'",
|
|
340
|
+
"resolved": "\"trapezoid\" | \"triangle\"",
|
|
341
|
+
"references": {}
|
|
342
|
+
},
|
|
343
|
+
"required": false,
|
|
344
|
+
"optional": true,
|
|
345
|
+
"docs": {
|
|
346
|
+
"tags": [],
|
|
347
|
+
"text": "Enables a safespace through which the cursor can be moved without the popover being disabled"
|
|
348
|
+
},
|
|
349
|
+
"attribute": "safe-space",
|
|
350
|
+
"reflect": true
|
|
196
351
|
}
|
|
197
352
|
};
|
|
198
353
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 by Swiss Post, Information Technology
|
|
3
|
-
*/:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 -
|
|
3
|
+
*/:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 calc(var(--post-core-dimension-4)*-1);border-radius:4px}.rating .star{--post-rating-star-stroke: hsl(0, 0%, 40%);--post-rating-star-fill: #fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke: hsl(0, 0%, 40%);--post-rating-star-fill: #fc0}.rating .star.active{--post-rating-star-stroke: hsl(0, 0%, 20%);--post-rating-star-fill: #fc0}.rating .star.hover{--post-rating-star-stroke: hsl(0, 0%, 40%);--post-rating-star-fill: #fc0}.rating .star.after-active{--post-rating-star-stroke: hsl(0, 0%, 40%);--post-rating-star-fill: hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:var(--post-core-dimension-2);outline:var(--post-core-dimension-2) solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke: hsl(0, 0%, 60%);--post-rating-star-fill: #fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke: hsl(0, 0%, 60%);--post-rating-star-fill: hsl(0, 0%, 90%)}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { version } from "../../../../package";
|
|
3
3
|
export class PostRating {
|
|
4
|
+
hasChanged = false;
|
|
5
|
+
host;
|
|
6
|
+
/**
|
|
7
|
+
* An event emitted whenever the component's value has changed (on input).
|
|
8
|
+
* The event payload can be used like so: `event.detail.value`.
|
|
9
|
+
*/
|
|
10
|
+
postInput;
|
|
11
|
+
/**
|
|
12
|
+
* An event emitted whenever the component's value has changed (on blur).
|
|
13
|
+
* The event payload can be used like so: `event.detail.value`.
|
|
14
|
+
*/
|
|
15
|
+
postChange;
|
|
4
16
|
constructor() {
|
|
5
|
-
this.hasChanged = false;
|
|
6
17
|
this.hoveredIndex = undefined;
|
|
7
18
|
this.label = 'Rating';
|
|
8
19
|
this.stars = 5;
|
|
@@ -64,7 +75,7 @@ export class PostRating {
|
|
|
64
75
|
}
|
|
65
76
|
}
|
|
66
77
|
render() {
|
|
67
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: '4ccdf384b9a4cfc462d5d3f4a7caab659b6ba2b0', "data-version": version }, h("div", { key: '7ab53083bcdff6586b1de7f1c9e5fa546728fc6f', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
|
|
68
79
|
'star': true,
|
|
69
80
|
'before-hover': i < this.hoveredIndex,
|
|
70
81
|
'active': i < Math.round(this.currentRating),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color
|
|
1
|
+
.tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:#000;text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:#000}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(0,0,0,.6);color:#fff}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(0,0,0,.6);color:#fff;box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:#fff;color:#000;font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:var(--post-core-dimension-4);background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:var(--post-core-dimension-2) solid Highlight;outline-offset:calc(var(--post-core-dimension-4)*-1)}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}/*!
|
|
2
2
|
* Copyright 2021 by Swiss Post, Information Technology
|
|
3
|
-
*/:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:
|
|
3
|
+
*/:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title{background-color:ButtonFace !important}.tab-title:hover{background-color:Highlight !important}}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { version } from "../../../../package";
|
|
3
3
|
import { checkNonEmpty } from "../../utils/index";
|
|
4
|
+
import { nanoid } from "nanoid";
|
|
4
5
|
/**
|
|
5
6
|
* @slot default - Slot for the content of the tab header.
|
|
6
7
|
*/
|
|
@@ -9,14 +10,15 @@ export class PostTabHeader {
|
|
|
9
10
|
this.tabId = undefined;
|
|
10
11
|
this.panel = undefined;
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
host;
|
|
14
|
+
validateFor() {
|
|
15
|
+
checkNonEmpty(this, 'panel');
|
|
14
16
|
}
|
|
15
17
|
componentWillLoad() {
|
|
16
|
-
this.tabId = `tab-${this.host.id ||
|
|
18
|
+
this.tabId = `tab-${this.host.id || nanoid(6)}`;
|
|
17
19
|
}
|
|
18
20
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '336824660de90bf5c570e9739947927a32612fbd', id: this.tabId, role: "tab", "data-version": version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, h("slot", { key: '8bfe0b57fa96044692e2db3fd983ccde427558e7' })));
|
|
20
22
|
}
|
|
21
23
|
static get is() { return "post-tab-header"; }
|
|
22
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { version } from "../../../../package";
|
|
3
|
+
import { nanoid } from "nanoid";
|
|
3
4
|
/**
|
|
4
5
|
* @slot default - Slot for placing the content of the tab panel.
|
|
5
6
|
*/
|
|
@@ -8,12 +9,13 @@ export class PostTabPanel {
|
|
|
8
9
|
this.panelId = undefined;
|
|
9
10
|
this.name = undefined;
|
|
10
11
|
}
|
|
12
|
+
host;
|
|
11
13
|
componentWillLoad() {
|
|
12
14
|
// get the id set on the host element or use a random id by default
|
|
13
|
-
this.panelId = `panel-${this.host.id ||
|
|
15
|
+
this.panelId = `panel-${this.host.id || nanoid(6)}`;
|
|
14
16
|
}
|
|
15
17
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '8331ab54bda793a120dc467d8406cc0a02a5c480', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: '7da6d67b69150a70ee290ad8ef9b95684ea3f83d' })));
|
|
17
19
|
}
|
|
18
20
|
static get is() { return "post-tab-panel"; }
|
|
19
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(
|
|
1
|
+
.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(0,0,0,.02)}.tabs-wrapper::after{content:"";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;padding-inline-start:0;list-style:none}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}:host{display:block}
|
|
@@ -10,16 +10,25 @@ import { componentOnReady } from "../../utils/index";
|
|
|
10
10
|
*/
|
|
11
11
|
export class PostTabs {
|
|
12
12
|
constructor() {
|
|
13
|
-
this.isLoaded = false;
|
|
14
13
|
this.activePanel = undefined;
|
|
15
14
|
}
|
|
15
|
+
activeTab;
|
|
16
|
+
showing;
|
|
17
|
+
hiding;
|
|
18
|
+
isLoaded = false;
|
|
16
19
|
get tabs() {
|
|
17
|
-
return this.host.querySelectorAll('post-tab-header');
|
|
20
|
+
return Array.from(this.host.querySelectorAll('post-tab-header')).filter(tab => tab.closest('post-tabs') === this.host);
|
|
18
21
|
}
|
|
22
|
+
host;
|
|
23
|
+
/**
|
|
24
|
+
* An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.
|
|
25
|
+
* The payload is the name of the newly shown panel.
|
|
26
|
+
*/
|
|
27
|
+
postChange;
|
|
19
28
|
componentDidLoad() {
|
|
20
29
|
this.moveMisplacedTabs();
|
|
21
30
|
this.enableTabs();
|
|
22
|
-
const initiallyActivePanel = this.activePanel || this.tabs
|
|
31
|
+
const initiallyActivePanel = this.activePanel || this.tabs[0]?.panel;
|
|
23
32
|
void this.show(initiallyActivePanel);
|
|
24
33
|
this.isLoaded = true;
|
|
25
34
|
}
|
|
@@ -28,9 +37,8 @@ export class PostTabs {
|
|
|
28
37
|
* Any other panel that was previously shown becomes hidden and its associated tab is unselected.
|
|
29
38
|
*/
|
|
30
39
|
async show(panelName) {
|
|
31
|
-
var _a;
|
|
32
40
|
// do nothing if the tab is already active
|
|
33
|
-
if (panelName ===
|
|
41
|
+
if (panelName === this.activeTab?.panel) {
|
|
34
42
|
return;
|
|
35
43
|
}
|
|
36
44
|
const previousTab = this.activeTab;
|
|
@@ -90,7 +98,7 @@ export class PostTabs {
|
|
|
90
98
|
});
|
|
91
99
|
// if the currently active tab was removed from the DOM then select the first one
|
|
92
100
|
if (this.activeTab && !this.activeTab.isConnected) {
|
|
93
|
-
void this.show(this.tabs
|
|
101
|
+
void this.show(this.tabs[0]?.panel);
|
|
94
102
|
}
|
|
95
103
|
}
|
|
96
104
|
activateTab(tab) {
|
|
@@ -142,7 +150,7 @@ export class PostTabs {
|
|
|
142
150
|
nextTab.focus();
|
|
143
151
|
}
|
|
144
152
|
render() {
|
|
145
|
-
return (h(Host, { key: '
|
|
153
|
+
return (h(Host, { key: 'dae24eee55a75f9b825f590883a9c1e896c1e9fc', "data-version": version }, h("div", { key: '0a26de80b8267ddc30455b0b5afbf10ae521232b', class: "tabs-wrapper", part: "tabs" }, h("div", { key: '826cb0a4355eeb5ddc07288e1e68fc72785c095f', class: "tabs", role: "tablist" }, h("slot", { key: '94ce90bc3dc8ff4b5012fcfa3c0039b188c14002', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: '462f80f3368431344910cc317f1c0f42112dc99a', class: "tab-content", part: "content" }, h("slot", { key: '57a80ac790ca75f3b62382994c21a3a3c78004cc', onSlotchange: () => this.moveMisplacedTabs() }))));
|
|
146
154
|
}
|
|
147
155
|
static get is() { return "post-tabs"; }
|
|
148
156
|
static get encapsulation() { return "shadow"; }
|
|
@@ -194,14 +202,9 @@ export class PostTabs {
|
|
|
194
202
|
"text": "An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.\nThe payload is the name of the newly shown panel."
|
|
195
203
|
},
|
|
196
204
|
"complexType": {
|
|
197
|
-
"original": "
|
|
205
|
+
"original": "string",
|
|
198
206
|
"resolved": "string",
|
|
199
|
-
"references": {
|
|
200
|
-
"HTMLPostTabPanelElement": {
|
|
201
|
-
"location": "global",
|
|
202
|
-
"id": "global::HTMLPostTabPanelElement"
|
|
203
|
-
}
|
|
204
|
-
}
|
|
207
|
+
"references": {}
|
|
205
208
|
}
|
|
206
209
|
}];
|
|
207
210
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 by Swiss Post, Information Technology
|
|
3
|
-
*/.tag,.tag:where(:has(:not(pre))){--post-tag-bg: hsl(0, 0%, 90%);--post-tag-fg: #000;display:inline-flex;align-items:center;gap
|
|
3
|
+
*/.tag,.tag:where(:has(:not(pre))){--post-tag-bg: hsl(0, 0%, 90%);--post-tag-fg: #000;display:inline-flex;align-items:center;gap:var(--post-core-dimension-4);padding:0 var(--post-core-dimension-8);max-width:100%;background-color:var(--post-tag-bg);border:var(--post-core-dimension-1) solid rgba(0,0,0,0);border-radius:var(--post-core-dimension-4);font-size:1rem;line-height:calc(var(--post-core-dimension-32) - var(--post-core-dimension-1)*2);white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:var(--post-core-dimension-24)}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg: #fff;--post-tag-fg: #000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg: #fc0;--post-tag-fg: #000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg: #2c871d;--post-tag-fg: #fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg: #f49e00;--post-tag-fg: #000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg: #a51728;--post-tag-fg: #fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg: #cce4ee;--post-tag-fg: #000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:#000}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}*,*:before,*:after{box-sizing:border-box}.tag-text ::slotted(svg),.tag-text ::slotted(img){display:inline-block !important;height:1.25rem !important;vertical-align:text-top !important}
|
|
@@ -4,6 +4,7 @@ import { version } from "../../../../package";
|
|
|
4
4
|
* @slot default - Content to place in the `default` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Inline-level_content">inline content</a>.</p>
|
|
5
5
|
*/
|
|
6
6
|
export class PostTag {
|
|
7
|
+
host;
|
|
7
8
|
constructor() {
|
|
8
9
|
this.classes = undefined;
|
|
9
10
|
this.variant = undefined;
|
|
@@ -30,7 +31,7 @@ export class PostTag {
|
|
|
30
31
|
this.setClasses();
|
|
31
32
|
}
|
|
32
33
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '4ca273166b81099dd8fc0f69d3d38215e3d7ccbc', "data-version": version }, h("div", { key: 'b6c4eb6a3bf8cbaad18cf6277dab79bd6e350f0a', class: this.classes }, this.icon ? h("post-icon", { name: this.icon }) : null, h("div", { key: '4f9e8cf6b2c723e31d60e30464c1106a9f72b5b4', class: "tag-text" }, h("slot", { key: '819a4e6ff743386f8d5d6b1d94dea9ee4a612784' })))));
|
|
34
35
|
}
|
|
35
36
|
static get is() { return "post-tag"; }
|
|
36
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -93,7 +94,7 @@ export class PostTag {
|
|
|
93
94
|
"optional": false,
|
|
94
95
|
"docs": {
|
|
95
96
|
"tags": [],
|
|
96
|
-
"text": "Defines the icon `name` inside of the component.\n<span className=\"
|
|
97
|
+
"text": "Defines the icon `name` inside of the component.\n<span className=\"banner banner-sm banner-info\">If not set the icon will not show up.</span>\nTo learn which icons are available, please visit our <a href=\"/?path=/docs/5704bdc4-c5b5-45e6-b123-c54d01fce2f1--docs\">icon library</a>."
|
|
97
98
|
},
|
|
98
99
|
"attribute": "icon",
|
|
99
100
|
"reflect": false,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:host{cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-visible){outline-color:Highlight !important}}:host([aria-pressed=true]) ::slotted([data-showwhen=untoggled]){display:none}:host([aria-pressed=false]) ::slotted([data-showwhen=toggled]){display:none}
|