@swisspost/design-system-components 10.7.0 → 10.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/{create-validator-decorator-D7nAb9KJ.js → create-validator-decorator-DVm_SDrR.js} +1 -1
- package/dist/cjs/{index-DWIlRT6N.js → index-DY4QxKNv.js} +5 -5
- package/dist/cjs/is-focus-visible-B3CqVQsX.js +19 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{one-of-B8RUgrZk.js → one-of-qu7_EPxf.js} +1 -1
- package/dist/cjs/{package-BtKYhTNj.js → package-kgRYEtTJ.js} +1 -1
- package/dist/cjs/{pattern-B6VoDk_m.js → pattern-EpwCKMyC.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +6 -6
- package/dist/cjs/post-autocomplete.cjs.entry.js +5 -5
- package/dist/cjs/post-avatar.cjs.entry.js +85 -61
- package/dist/cjs/post-back-to-top.cjs.entry.js +6 -6
- package/dist/cjs/post-banner.cjs.entry.js +5 -5
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +8 -8
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +7 -7
- package/dist/cjs/post-closebutton_14.cjs.entry.js +545 -607
- package/dist/cjs/post-collapsible_2.cjs.entry.js +13 -7
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-date-picker.cjs.entry.js +24 -9
- package/dist/cjs/post-footer.cjs.entry.js +6 -6
- package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox-option.cjs.entry.js +4 -4
- package/dist/cjs/post-listbox.cjs.entry.js +4 -4
- package/dist/cjs/post-number-input.cjs.entry.js +5 -5
- package/dist/cjs/post-pagination.cjs.entry.js +6 -6
- package/dist/cjs/post-popover-trigger.cjs.entry.js +5 -5
- package/dist/cjs/post-popover.cjs.entry.js +9 -9
- package/dist/cjs/post-progressbar.cjs.entry.js +4 -4
- package/dist/cjs/post-rating.cjs.entry.js +6 -6
- package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +6 -6
- package/dist/cjs/post-side-navigation.cjs.entry.js +14 -9
- package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/post-stepper.cjs.entry.js +7 -7
- package/dist/cjs/post-tab-item.cjs.entry.js +6 -6
- package/dist/cjs/post-tab-panel.cjs.entry.js +6 -6
- package/dist/cjs/post-tabs.cjs.entry.js +37 -9
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +6 -6
- package/dist/cjs/post-tooltip.cjs.entry.js +8 -6
- package/dist/cjs/{required-bXtlqqaA.js → required-Dgzo-rb5.js} +1 -1
- package/dist/cjs/{type-BqLE7Uui.js → type-DBRxpBZI.js} +1 -1
- package/dist/cjs/{url-CUy3C3sH.js → url-Dl1JABeP.js} +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-avatar/avatar-utils.js +1 -2
- package/dist/collection/components/post-avatar/post-avatar.js +77 -59
- package/dist/collection/components/post-back-to-top/post-back-to-top.css +1 -1
- package/dist/collection/components/post-banner/post-banner.css +1 -1
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
- package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +9 -3
- package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
- package/dist/collection/components/post-date-picker/post-date-picker.js +18 -3
- package/dist/collection/components/post-footer/post-footer.css +1 -1
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +100 -18
- package/dist/collection/components/post-icon/post-icon.css +1 -1
- package/dist/collection/components/post-icon/post-icon.js +1 -2
- package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
- package/dist/collection/components/post-language-menu/post-language-menu.js +2 -2
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-listbox/post-listbox.css +1 -1
- package/dist/collection/components/post-listbox/post-listbox.js +1 -1
- package/dist/collection/components/post-listbox-option/post-listbox-option.js +2 -2
- package/dist/collection/components/post-logo/post-logo.css +1 -1
- package/dist/collection/components/post-logo/post-logo.js +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +34 -16
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
- package/dist/collection/components/post-menu/post-menu.css +1 -1
- package/dist/collection/components/post-menu/post-menu.js +3 -14
- package/dist/collection/components/post-menu-item/post-menu-item.css +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
- package/dist/collection/components/post-number-input/post-number-input.css +2 -2
- package/dist/collection/components/post-number-input/post-number-input.js +2 -2
- package/dist/collection/components/post-pagination/post-pagination.css +1 -1
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +2 -2
- package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +211 -323
- package/dist/collection/components/post-progressbar/post-progressbar.js +1 -1
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-side-navigation/post-side-navigation.css +1 -1
- package/dist/collection/components/post-side-navigation/post-side-navigation.js +7 -3
- package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.js +1 -1
- package/dist/collection/components/post-stepper/post-stepper.js +1 -1
- package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
- package/dist/collection/components/post-tab-item/post-tab-item.js +2 -2
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +31 -3
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +3 -1
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
- package/dist/collection/test-setup.js +28 -0
- package/dist/collection/utils/floating-ui/middleware/flip.js +77 -0
- package/dist/collection/utils/floating-ui/middleware/safe-space.js +52 -0
- package/dist/collection/utils/floating-ui/util.js +10 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/is-focus-visible.js +15 -0
- package/dist/components/is-focus-visible.js +1 -0
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +1 -1
- package/dist/components/post-avatar.js +1 -1
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/post-banner.js +1 -1
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-breadcrumbs.js +1 -1
- package/dist/components/post-closebutton2.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-date-picker.js +1 -1
- package/dist/components/post-footer.js +1 -1
- package/dist/components/post-header.js +1 -1
- package/dist/components/post-icon2.js +1 -1
- package/dist/components/post-language-menu.js +1 -1
- package/dist/components/post-linkarea.js +1 -1
- package/dist/components/post-listbox-option.js +1 -1
- package/dist/components/post-listbox.js +1 -1
- package/dist/components/post-logo.js +1 -1
- package/dist/components/post-mainnavigation.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-item2.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-pagination.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-progressbar.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-side-navigation-trigger.js +1 -1
- package/dist/components/post-side-navigation.js +1 -1
- package/dist/components/post-stepper-item.js +1 -1
- package/dist/components/post-stepper.js +1 -1
- package/dist/components/post-tab-item.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton2.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/react/index.js +1 -1
- package/dist/components/react/p-BWwWKRO5.js +1 -0
- package/dist/components/react/p-CAL337jJ.js +1 -0
- package/dist/components/react/p-CBVthgj-.js +1 -0
- package/dist/components/react/{p-DS46v3ju.js → p-CLkb55ud.js} +1 -1
- package/dist/components/react/{p-C8_zqgAP.js → p-CYBXVnUJ.js} +1 -1
- package/dist/components/react/p-Ci-TsJYj.js +1 -0
- package/dist/components/react/p-CtgMQs_Q.js +1 -0
- package/dist/components/react/p-D4LBzsbB.js +1 -0
- package/dist/components/react/p-D5lqOfVk.js +1 -0
- package/dist/components/react/p-DGpWjdFJ.js +1 -0
- package/dist/components/react/{p-BBv5JYsW.js → p-DSk0Nq8U.js} +1 -1
- package/dist/components/react/{p-1y1rv5Tw.js → p-Db3d6dKF.js} +1 -1
- package/dist/components/react/p-DkDIUTRi.js +1 -0
- package/dist/components/react/post-accordion-item.js +1 -1
- package/dist/components/react/post-accordion.js +1 -1
- package/dist/components/react/post-autocomplete.js +1 -1
- package/dist/components/react/post-avatar.js +1 -1
- package/dist/components/react/post-back-to-top.js +1 -1
- package/dist/components/react/post-banner.js +1 -1
- package/dist/components/react/post-breadcrumb-item.js +1 -1
- package/dist/components/react/post-breadcrumbs.js +1 -1
- package/dist/components/react/post-closebutton.js +1 -1
- package/dist/components/react/post-collapsible-trigger.js +1 -1
- package/dist/components/react/post-collapsible.js +1 -1
- package/dist/components/react/post-date-picker.js +1 -1
- package/dist/components/react/post-footer.js +1 -1
- package/dist/components/react/post-header.js +1 -1
- package/dist/components/react/post-icon.js +1 -1
- package/dist/components/react/post-language-menu-item.js +1 -1
- package/dist/components/react/post-language-menu.js +1 -1
- package/dist/components/react/post-linkarea.js +1 -1
- package/dist/components/react/post-listbox-option.js +1 -1
- package/dist/components/react/post-listbox.js +1 -1
- package/dist/components/react/post-logo.js +1 -1
- package/dist/components/react/post-mainnavigation.js +1 -1
- package/dist/components/react/post-megadropdown-trigger.js +1 -1
- package/dist/components/react/post-megadropdown.js +1 -1
- package/dist/components/react/post-menu-item.js +1 -1
- package/dist/components/react/post-menu-trigger.js +1 -1
- package/dist/components/react/post-menu.js +1 -1
- package/dist/components/react/post-number-input.js +1 -1
- package/dist/components/react/post-pagination.js +1 -1
- package/dist/components/react/post-popover-trigger.js +1 -1
- package/dist/components/react/post-popover.js +1 -1
- package/dist/components/react/post-popovercontainer.js +1 -1
- package/dist/components/react/post-progressbar.js +1 -1
- package/dist/components/react/post-rating.js +1 -1
- package/dist/components/react/post-side-navigation-trigger.js +1 -1
- package/dist/components/react/post-side-navigation.js +1 -1
- package/dist/components/react/post-stepper-item.js +1 -1
- package/dist/components/react/post-stepper.js +1 -1
- package/dist/components/react/post-tab-item.js +1 -1
- package/dist/components/react/post-tab-panel.js +1 -1
- package/dist/components/react/post-tabs.js +1 -1
- package/dist/components/react/post-togglebutton.js +1 -1
- package/dist/components/react/post-tooltip-trigger.js +1 -1
- package/dist/components/react/post-tooltip.js +1 -1
- package/dist/docs.json +67 -45
- package/dist/esm/{create-validator-decorator-DFpQtJzK.js → create-validator-decorator-Cp_NUmrr.js} +1 -1
- package/dist/esm/{index-Bs0zeM5Q.js → index-D0jX3Fts.js} +5 -5
- package/dist/esm/is-focus-visible-BWwWKRO5.js +17 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{one-of-DQCfaZpw.js → one-of-B9locHPx.js} +1 -1
- package/dist/esm/{package-BBz9PVf0.js → package-CAL337jJ.js} +1 -1
- package/dist/esm/{pattern-3lnaFlkk.js → pattern-BL3OBU8C.js} +1 -1
- package/dist/esm/post-accordion_2.entry.js +6 -6
- package/dist/esm/post-autocomplete.entry.js +5 -5
- package/dist/esm/post-avatar.entry.js +85 -61
- package/dist/esm/post-back-to-top.entry.js +6 -6
- package/dist/esm/post-banner.entry.js +5 -5
- package/dist/esm/post-breadcrumb-item.entry.js +8 -8
- package/dist/esm/post-breadcrumbs.entry.js +7 -7
- package/dist/esm/post-closebutton_14.entry.js +545 -607
- package/dist/esm/post-collapsible_2.entry.js +13 -7
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-date-picker.entry.js +24 -9
- package/dist/esm/post-footer.entry.js +6 -6
- package/dist/esm/post-linkarea.entry.js +3 -3
- package/dist/esm/post-listbox-option.entry.js +4 -4
- package/dist/esm/post-listbox.entry.js +4 -4
- package/dist/esm/post-number-input.entry.js +5 -5
- package/dist/esm/post-pagination.entry.js +6 -6
- package/dist/esm/post-popover-trigger.entry.js +5 -5
- package/dist/esm/post-popover.entry.js +9 -9
- package/dist/esm/post-progressbar.entry.js +4 -4
- package/dist/esm/post-rating.entry.js +6 -6
- package/dist/esm/post-side-navigation-trigger.entry.js +6 -6
- package/dist/esm/post-side-navigation.entry.js +14 -9
- package/dist/esm/post-stepper-item.entry.js +3 -3
- package/dist/esm/post-stepper.entry.js +7 -7
- package/dist/esm/post-tab-item.entry.js +6 -6
- package/dist/esm/post-tab-panel.entry.js +6 -6
- package/dist/esm/post-tabs.entry.js +37 -9
- package/dist/esm/post-tooltip-trigger.entry.js +6 -6
- package/dist/esm/post-tooltip.entry.js +8 -6
- package/dist/esm/{required-NuzPg5jZ.js → required-CDaQB1gC.js} +1 -1
- package/dist/esm/{type-ChnksJ25.js → type-CQ7XuPCZ.js} +1 -1
- package/dist/esm/{url-BCk3ZU-x.js → url-B-86gtTK.js} +1 -1
- package/dist/post-components/{p-63e570c4.entry.js → p-077be898.entry.js} +1 -1
- package/dist/post-components/{p-6a2f47af.entry.js → p-184bd61c.entry.js} +1 -1
- package/dist/post-components/p-1933e4fa.entry.js +1 -0
- package/dist/post-components/p-21e6f82a.entry.js +1 -0
- package/dist/post-components/{p-c2de3702.entry.js → p-2220db4c.entry.js} +1 -1
- package/dist/post-components/p-2aff3873.entry.js +1 -0
- package/dist/post-components/p-2b475cd7.entry.js +1 -0
- package/dist/post-components/p-33a898ec.entry.js +1 -0
- package/dist/post-components/p-405c1fff.entry.js +1 -0
- package/dist/post-components/{p-bd128657.entry.js → p-5efaca25.entry.js} +1 -1
- package/dist/post-components/p-6a9661d9.entry.js +1 -0
- package/dist/post-components/{p-f275b872.entry.js → p-7dd192b3.entry.js} +1 -1
- package/dist/post-components/p-8e5052d5.entry.js +1 -0
- package/dist/post-components/p-9440738d.entry.js +1 -0
- package/dist/post-components/{p-31550a50.entry.js → p-965a02fb.entry.js} +1 -1
- package/dist/post-components/{p-61a45246.entry.js → p-9740719e.entry.js} +1 -1
- package/dist/post-components/p-9af8f5af.entry.js +1 -0
- package/dist/post-components/{p-DeUk3rcv.js → p-BCPv4bcY.js} +1 -1
- package/dist/post-components/p-BWwWKRO5.js +1 -0
- package/dist/post-components/p-CAL337jJ.js +1 -0
- package/dist/post-components/{p-D1s6tESz.js → p-CP3LjuFR.js} +1 -1
- package/dist/post-components/p-D0jX3Fts.js +2 -0
- package/dist/post-components/{p-Bl-_v3aT.js → p-D6mVqZLg.js} +1 -1
- package/dist/post-components/{p-BwhzbRIR.js → p-DSaWK_q-.js} +1 -1
- package/dist/post-components/p-VPHnF9fB.js +1 -0
- package/dist/post-components/p-a6971c1c.entry.js +1 -0
- package/dist/post-components/p-a7d8f328.entry.js +1 -0
- package/dist/post-components/{p-f784e149.entry.js → p-bb9a0e1e.entry.js} +1 -1
- package/dist/post-components/{p-e6a4146b.entry.js → p-bf8c7dca.entry.js} +1 -1
- package/dist/post-components/p-c3351def.entry.js +1 -0
- package/dist/post-components/{p-31a97aae.entry.js → p-c87f33f0.entry.js} +1 -1
- package/dist/post-components/{p-64480e3a.entry.js → p-e30b534d.entry.js} +1 -1
- package/dist/post-components/{p-43240818.entry.js → p-e73eabac.entry.js} +1 -1
- package/dist/post-components/{p-f566768e.entry.js → p-e84fe883.entry.js} +1 -1
- package/dist/post-components/{p-aa33141b.entry.js → p-eaa28736.entry.js} +1 -1
- package/dist/post-components/{p-451ec8ee.entry.js → p-f2cb8ed1.entry.js} +1 -1
- package/dist/post-components/{p-58b66607.entry.js → p-ffbf2375.entry.js} +1 -1
- package/dist/post-components/p-gv9b-Z15.js +1 -0
- package/dist/post-components/post-components.css +2 -2
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-avatar/avatar-utils.d.ts +0 -2
- package/dist/types/components/post-avatar/post-avatar.d.ts +11 -9
- package/dist/types/components/post-date-picker/post-date-picker.d.ts +2 -0
- package/dist/types/components/post-header/post-header.d.ts +14 -0
- package/dist/types/components/post-language-menu/post-language-menu.d.ts +3 -0
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +1 -1
- package/dist/types/components/post-menu/post-menu.d.ts +0 -1
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +74 -69
- package/dist/types/components/post-tabs/post-tabs.d.ts +4 -0
- package/dist/types/components.d.ts +39 -26
- package/dist/types/utils/floating-ui/middleware/flip.d.ts +14 -0
- package/dist/types/utils/floating-ui/middleware/safe-space.d.ts +10 -0
- package/dist/types/utils/floating-ui/util.d.ts +4 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/is-focus-visible.d.ts +5 -0
- package/dist/vrt/helpers/header-test-config.js +2 -1
- package/hydrate/index.js +659 -634
- package/hydrate/index.mjs +659 -634
- package/package.json +22 -21
- package/dist/components/react/p-BBz9PVf0.js +0 -1
- package/dist/components/react/p-BgEY7xhT.js +0 -1
- package/dist/components/react/p-C3J7fIWx.js +0 -1
- package/dist/components/react/p-C5ibTdH5.js +0 -1
- package/dist/components/react/p-CUKzje9q.js +0 -1
- package/dist/components/react/p-DTBtJCjk.js +0 -1
- package/dist/components/react/p-XUkUhxaz.js +0 -1
- package/dist/components/react/p-ialuSSl2.js +0 -1
- package/dist/post-components/p-10e430c3.entry.js +0 -1
- package/dist/post-components/p-32e1e951.entry.js +0 -1
- package/dist/post-components/p-4f08b99b.entry.js +0 -1
- package/dist/post-components/p-54432b47.entry.js +0 -1
- package/dist/post-components/p-5d7de657.entry.js +0 -1
- package/dist/post-components/p-63dd9a76.entry.js +0 -1
- package/dist/post-components/p-96d07f2b.entry.js +0 -1
- package/dist/post-components/p-9a1e8b1d.entry.js +0 -1
- package/dist/post-components/p-BBz9PVf0.js +0 -1
- package/dist/post-components/p-Bs0zeM5Q.js +0 -2
- package/dist/post-components/p-DH-eJVHZ.js +0 -1
- package/dist/post-components/p-Dk-DtPZn.js +0 -1
- package/dist/post-components/p-aff180f5.entry.js +0 -1
- package/dist/post-components/p-d5327dd1.entry.js +0 -1
- package/dist/post-components/p-e1817744.entry.js +0 -1
- package/dist/post-components/p-f6da5e69.entry.js +0 -1
- package/dist/post-components/p-f917527c.entry.js +0 -1
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/vrt/helpers/header-variants.config.d.ts +0 -23
- package/dist/vrt/helpers/header-variants.config.js +0 -157
- /package/dist/collection/utils/{floating-ui.js → floating-ui/platform/safe-area.js} +0 -0
- /package/dist/types/utils/{floating-ui.d.ts → floating-ui/platform/safe-area.d.ts} +0 -0
|
@@ -1,66 +1,64 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { Placement } from '@floating-ui/dom';
|
|
3
|
-
import {
|
|
4
|
-
interface PopoverElement {
|
|
5
|
-
showPopover: () => void;
|
|
6
|
-
hidePopover: () => void;
|
|
7
|
-
togglePopover: (force?: boolean) => boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const ANIMATIONS: {
|
|
10
|
-
readonly 'pop-in': typeof popIn;
|
|
11
|
-
};
|
|
12
|
-
export type AnimationName = keyof typeof ANIMATIONS;
|
|
13
|
-
export type PostPopoverElement = HTMLElement & PopoverElement;
|
|
3
|
+
import { Side } from '@floating-ui/utils';
|
|
14
4
|
/**
|
|
15
|
-
* @slot - Default slot for placing content inside the
|
|
5
|
+
* @slot - Default slot for placing content inside the popover.
|
|
16
6
|
*/
|
|
17
7
|
export declare class PostPopovercontainer {
|
|
18
|
-
|
|
19
|
-
private
|
|
20
|
-
host: HTMLPostPopovercontainerElement;
|
|
8
|
+
/** The element the popover is anchored to */
|
|
9
|
+
private anchorRef;
|
|
21
10
|
private arrowRef;
|
|
22
|
-
private
|
|
23
|
-
private clearAutoUpdate;
|
|
11
|
+
private hasBeenOpened;
|
|
24
12
|
private toggleTimeoutId;
|
|
25
|
-
private
|
|
26
|
-
private
|
|
27
|
-
|
|
13
|
+
private runningAnimation;
|
|
14
|
+
private stopAutoUpdate;
|
|
15
|
+
host: HTMLPostPopovercontainerElement;
|
|
28
16
|
/**
|
|
29
|
-
*
|
|
17
|
+
* Emitted just before the popover is shown.
|
|
18
|
+
*
|
|
19
|
+
* The payload contains a `first` boolean, that is set to `true` when the popover is about to be
|
|
20
|
+
* shown for the first time.
|
|
30
21
|
*/
|
|
31
22
|
postBeforeShow: EventEmitter<{
|
|
32
23
|
first?: boolean;
|
|
33
24
|
}>;
|
|
34
25
|
/**
|
|
35
|
-
*
|
|
26
|
+
* Emitted just after the popover is shown.
|
|
27
|
+
*
|
|
28
|
+
* The payload contains a `first` boolean, that is set to `true` when the popover is shown for the
|
|
29
|
+
* first time.
|
|
36
30
|
*/
|
|
37
31
|
postShow: EventEmitter<{
|
|
38
32
|
first?: boolean;
|
|
39
33
|
}>;
|
|
40
34
|
/**
|
|
41
|
-
*
|
|
35
|
+
* Emitted just after the popover is hidden.
|
|
42
36
|
*/
|
|
43
37
|
postHide: EventEmitter;
|
|
44
38
|
/**
|
|
45
|
-
*
|
|
39
|
+
* Emitted just before the popover's state changes.
|
|
40
|
+
*
|
|
41
|
+
* The payload contains a `willOpen` boolean, that is set to `true` when the popover is about to
|
|
42
|
+
* be shown, `false` when it is about to be hidden.
|
|
46
43
|
*/
|
|
47
44
|
postBeforeToggle: EventEmitter<{
|
|
48
45
|
willOpen: boolean;
|
|
49
46
|
}>;
|
|
50
47
|
/**
|
|
51
|
-
*
|
|
48
|
+
* Emitted just after the popover's state changes.
|
|
49
|
+
*
|
|
50
|
+
* The payload contains a `isOpen` boolean, that is set to `true` when the popover is shown,
|
|
51
|
+
* `false` when it is hidden.
|
|
52
52
|
*/
|
|
53
53
|
postToggle: EventEmitter<{
|
|
54
54
|
isOpen: boolean;
|
|
55
55
|
}>;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
58
|
-
* Popovercontainers are automatically flipped to the opposite side if there is not enough available space and are shifted
|
|
59
|
-
* towards the viewport if they would overlap edge boundaries.
|
|
57
|
+
* Placement of the popover according to the floating-ui options.
|
|
60
58
|
*/
|
|
61
59
|
readonly placement?: Placement;
|
|
62
60
|
/**
|
|
63
|
-
* Gap between the edge of the
|
|
61
|
+
* Gap between the edge of the viewport and the popover.
|
|
64
62
|
*/
|
|
65
63
|
readonly edgeGap?: number;
|
|
66
64
|
/**
|
|
@@ -68,77 +66,84 @@ export declare class PostPopovercontainer {
|
|
|
68
66
|
*/
|
|
69
67
|
readonly offset?: number;
|
|
70
68
|
/**
|
|
71
|
-
*
|
|
69
|
+
* Show a little indicator arrow
|
|
72
70
|
*/
|
|
73
71
|
readonly arrow?: boolean;
|
|
74
|
-
dynamicPlacement?: string;
|
|
75
72
|
/**
|
|
76
|
-
*
|
|
73
|
+
* Whether to add a space through which the mouse can move without the popover being hidden.
|
|
77
74
|
*/
|
|
78
|
-
readonly safeSpace?:
|
|
75
|
+
readonly safeSpace?: boolean;
|
|
79
76
|
/**
|
|
80
|
-
* Whether to automatically hide the popover when the
|
|
77
|
+
* Whether to automatically hide the popover when the anchor moves outside the scrollport.
|
|
81
78
|
*
|
|
82
|
-
* If the `post-header` can cover the
|
|
83
|
-
*
|
|
79
|
+
* If the `post-header` can cover the anchor, the popover will also be hidden as soon as the
|
|
80
|
+
* anchor scrolls behind it.
|
|
84
81
|
*/
|
|
85
82
|
readonly autoHide?: boolean;
|
|
86
83
|
/**
|
|
87
|
-
*
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
84
|
+
* Whether to keep resizing the popover while it is open.
|
|
85
|
+
*
|
|
86
|
+
* Every popover is sized once when it opens: the space available around the anchor, minus the
|
|
87
|
+
* `edgeGap`, becomes the maximum width and height of the popover. The placement is then
|
|
88
|
+
* recalculated for that size.
|
|
89
|
+
*
|
|
90
|
+
* With `autoResize`, the popover's size is recalculated on every position update, for example
|
|
91
|
+
* when the anchor moves while scrolling.
|
|
94
92
|
*/
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
readonly autoResize?: boolean;
|
|
94
|
+
side: Side;
|
|
97
95
|
connectedCallback(): void;
|
|
98
96
|
componentDidLoad(): void;
|
|
99
97
|
disconnectedCallback(): void;
|
|
98
|
+
private cleanup;
|
|
99
|
+
private isOpen;
|
|
100
|
+
private getContent;
|
|
101
|
+
private getContentMinSize;
|
|
100
102
|
/**
|
|
101
|
-
*
|
|
102
|
-
* @param
|
|
103
|
+
* Shows the popover.
|
|
104
|
+
* @param anchor the element that the popover is visually anchored to.
|
|
103
105
|
*/
|
|
104
|
-
show(
|
|
106
|
+
show(anchor: HTMLElement): Promise<void>;
|
|
105
107
|
/**
|
|
106
|
-
*
|
|
108
|
+
* Hides the popover.
|
|
107
109
|
*/
|
|
108
110
|
hide(): Promise<void>;
|
|
109
111
|
/**
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
112
|
+
* Toggles the popover's state from hidden to showing and vice versa.
|
|
113
|
+
*
|
|
114
|
+
* If `state` is specified, the popover is forced to be shown if the is set to `true`, or hidden
|
|
115
|
+
* if it is set to `false`.
|
|
116
|
+
*
|
|
117
|
+
* @param anchor the element that the popover is visually anchored to.
|
|
118
|
+
* @param force the next state of the popover.
|
|
119
|
+
* @returns the new state of the popover: `true` if it is shown, `false` if it is hidden.
|
|
113
120
|
*/
|
|
114
|
-
toggle(
|
|
121
|
+
toggle(anchor: HTMLElement, force?: boolean): Promise<boolean>;
|
|
115
122
|
/**
|
|
116
|
-
* Handles the popover
|
|
123
|
+
* Handles the popover's state transition from hidden to showing and vice versa.
|
|
117
124
|
*/
|
|
118
|
-
private
|
|
125
|
+
private handleToggle;
|
|
119
126
|
/**
|
|
120
|
-
* Handles the popover
|
|
127
|
+
* Handles the popover's state transition from hidden to showing, emitting related events.
|
|
121
128
|
*/
|
|
122
|
-
private
|
|
129
|
+
private handleOpen;
|
|
123
130
|
/**
|
|
124
|
-
*
|
|
131
|
+
* Run the open animation for the popover.
|
|
125
132
|
*/
|
|
126
133
|
private runOpenAnimation;
|
|
127
134
|
/**
|
|
128
|
-
*
|
|
129
|
-
* Popovercontainers can be closed or opened with other methods than class members,
|
|
130
|
-
* therefore listening to the toggle event is safer for cleaning up.
|
|
131
|
-
* @param e ToggleEvent
|
|
135
|
+
* Handles the popover's state transition from showing to hidden, emitting related events.
|
|
132
136
|
*/
|
|
133
|
-
private
|
|
137
|
+
private handleClose;
|
|
138
|
+
/**
|
|
139
|
+
* Listen for changes that affect the popover's position and update it accordingly.
|
|
140
|
+
*/
|
|
141
|
+
private startAutoUpdate;
|
|
134
142
|
/**
|
|
135
|
-
*
|
|
136
|
-
*
|
|
143
|
+
* Updates the position of the popover based on the anchor's position and the specified placement.
|
|
144
|
+
* @param withSize whether to resize the popover based on the available space.
|
|
137
145
|
*/
|
|
138
|
-
private startAutoupdates;
|
|
139
146
|
private updatePosition;
|
|
140
|
-
private
|
|
141
|
-
private updateSafeSpaceBoundaries;
|
|
147
|
+
private computePosition;
|
|
142
148
|
render(): any;
|
|
143
149
|
}
|
|
144
|
-
export {};
|
|
@@ -13,6 +13,8 @@ export declare class PostTabs {
|
|
|
13
13
|
private contentObserver?;
|
|
14
14
|
private resizeObserver?;
|
|
15
15
|
private tabsContainer;
|
|
16
|
+
private pendingScroll?;
|
|
17
|
+
private hostWidth?;
|
|
16
18
|
host: HTMLPostTabsElement;
|
|
17
19
|
isPagesVariant: boolean;
|
|
18
20
|
private showLeftScrollButton;
|
|
@@ -56,6 +58,7 @@ export declare class PostTabs {
|
|
|
56
58
|
disconnectedCallback(): void;
|
|
57
59
|
private setupContentObserver;
|
|
58
60
|
private setupResizeObserver;
|
|
61
|
+
private readonly handleContainerResize;
|
|
59
62
|
private handleContentChange;
|
|
60
63
|
private shouldRedetectVariant;
|
|
61
64
|
private hasAriaCurrentChanged;
|
|
@@ -81,6 +84,7 @@ export declare class PostTabs {
|
|
|
81
84
|
private navigateTabs;
|
|
82
85
|
private readonly updateScrollButtons;
|
|
83
86
|
private scrollTabs;
|
|
87
|
+
private scrollToEnd;
|
|
84
88
|
private scrollTabIntoView;
|
|
85
89
|
private handleScrollButtons;
|
|
86
90
|
render(): any;
|
|
@@ -579,21 +579,25 @@ export namespace Components {
|
|
|
579
579
|
}
|
|
580
580
|
interface PostPopovercontainer {
|
|
581
581
|
/**
|
|
582
|
-
*
|
|
582
|
+
* Show a little indicator arrow
|
|
583
583
|
* @default false
|
|
584
584
|
*/
|
|
585
585
|
"arrow"?: boolean;
|
|
586
586
|
/**
|
|
587
|
-
* Whether to automatically hide the popover when the
|
|
587
|
+
* Whether to automatically hide the popover when the anchor moves outside the scrollport. If the `post-header` can cover the anchor, the popover will also be hidden as soon as the anchor scrolls behind it.
|
|
588
588
|
*/
|
|
589
589
|
"autoHide"?: boolean;
|
|
590
590
|
/**
|
|
591
|
-
*
|
|
591
|
+
* Whether to keep resizing the popover while it is open. Every popover is sized once when it opens: the space available around the anchor, minus the `edgeGap`, becomes the maximum width and height of the popover. The placement is then recalculated for that size. With `autoResize`, the popover's size is recalculated on every position update, for example when the anchor moves while scrolling.
|
|
592
|
+
*/
|
|
593
|
+
"autoResize"?: boolean;
|
|
594
|
+
/**
|
|
595
|
+
* Gap between the edge of the viewport and the popover.
|
|
592
596
|
* @default 8
|
|
593
597
|
*/
|
|
594
598
|
"edgeGap"?: number;
|
|
595
599
|
/**
|
|
596
|
-
*
|
|
600
|
+
* Hides the popover.
|
|
597
601
|
*/
|
|
598
602
|
"hide": () => Promise<void>;
|
|
599
603
|
/**
|
|
@@ -601,25 +605,26 @@ export namespace Components {
|
|
|
601
605
|
*/
|
|
602
606
|
"offset"?: number;
|
|
603
607
|
/**
|
|
604
|
-
*
|
|
608
|
+
* Placement of the popover according to the floating-ui options.
|
|
605
609
|
* @default 'top'
|
|
606
610
|
*/
|
|
607
611
|
"placement"?: Placement1;
|
|
608
612
|
/**
|
|
609
|
-
*
|
|
613
|
+
* Whether to add a space through which the mouse can move without the popover being hidden.
|
|
610
614
|
*/
|
|
611
|
-
"safeSpace"?:
|
|
615
|
+
"safeSpace"?: boolean;
|
|
612
616
|
/**
|
|
613
|
-
*
|
|
614
|
-
* @param
|
|
617
|
+
* Shows the popover.
|
|
618
|
+
* @param anchor the element that the popover is visually anchored to.
|
|
615
619
|
*/
|
|
616
|
-
"show": (
|
|
620
|
+
"show": (anchor: HTMLElement) => Promise<void>;
|
|
617
621
|
/**
|
|
618
|
-
*
|
|
619
|
-
* @param
|
|
620
|
-
* @param force
|
|
622
|
+
* Toggles the popover's state from hidden to showing and vice versa. If `state` is specified, the popover is forced to be shown if the is set to `true`, or hidden if it is set to `false`.
|
|
623
|
+
* @param anchor the element that the popover is visually anchored to.
|
|
624
|
+
* @param force the next state of the popover.
|
|
625
|
+
* @returns the new state of the popover: `true` if it is shown, `false` if it is hidden.
|
|
621
626
|
*/
|
|
622
|
-
"toggle": (
|
|
627
|
+
"toggle": (anchor: HTMLElement, force?: boolean) => Promise<boolean>;
|
|
623
628
|
}
|
|
624
629
|
interface PostProgressbar {
|
|
625
630
|
/**
|
|
@@ -1640,6 +1645,9 @@ declare namespace LocalJSX {
|
|
|
1640
1645
|
"url"?: string;
|
|
1641
1646
|
}
|
|
1642
1647
|
interface PostLanguageMenu {
|
|
1648
|
+
/**
|
|
1649
|
+
* An event emitted when the active language changes. The payload is the ISO 639 code of the newly active language.
|
|
1650
|
+
*/
|
|
1643
1651
|
"onPostChange"?: (event: PostLanguageMenuCustomEvent<string>) => void;
|
|
1644
1652
|
/**
|
|
1645
1653
|
* A title for the list of language options
|
|
@@ -1846,16 +1854,20 @@ declare namespace LocalJSX {
|
|
|
1846
1854
|
}
|
|
1847
1855
|
interface PostPopovercontainer {
|
|
1848
1856
|
/**
|
|
1849
|
-
*
|
|
1857
|
+
* Show a little indicator arrow
|
|
1850
1858
|
* @default false
|
|
1851
1859
|
*/
|
|
1852
1860
|
"arrow"?: boolean;
|
|
1853
1861
|
/**
|
|
1854
|
-
* Whether to automatically hide the popover when the
|
|
1862
|
+
* Whether to automatically hide the popover when the anchor moves outside the scrollport. If the `post-header` can cover the anchor, the popover will also be hidden as soon as the anchor scrolls behind it.
|
|
1855
1863
|
*/
|
|
1856
1864
|
"autoHide"?: boolean;
|
|
1857
1865
|
/**
|
|
1858
|
-
*
|
|
1866
|
+
* Whether to keep resizing the popover while it is open. Every popover is sized once when it opens: the space available around the anchor, minus the `edgeGap`, becomes the maximum width and height of the popover. The placement is then recalculated for that size. With `autoResize`, the popover's size is recalculated on every position update, for example when the anchor moves while scrolling.
|
|
1867
|
+
*/
|
|
1868
|
+
"autoResize"?: boolean;
|
|
1869
|
+
/**
|
|
1870
|
+
* Gap between the edge of the viewport and the popover.
|
|
1859
1871
|
* @default 8
|
|
1860
1872
|
*/
|
|
1861
1873
|
"edgeGap"?: number;
|
|
@@ -1864,34 +1876,34 @@ declare namespace LocalJSX {
|
|
|
1864
1876
|
*/
|
|
1865
1877
|
"offset"?: number;
|
|
1866
1878
|
/**
|
|
1867
|
-
*
|
|
1879
|
+
* Emitted just before the popover is shown. The payload contains a `first` boolean, that is set to `true` when the popover is about to be shown for the first time.
|
|
1868
1880
|
*/
|
|
1869
1881
|
"onPostBeforeShow"?: (event: PostPopovercontainerCustomEvent<{ first?: boolean }>) => void;
|
|
1870
1882
|
/**
|
|
1871
|
-
*
|
|
1883
|
+
* Emitted just before the popover's state changes. The payload contains a `willOpen` boolean, that is set to `true` when the popover is about to be shown, `false` when it is about to be hidden.
|
|
1872
1884
|
*/
|
|
1873
1885
|
"onPostBeforeToggle"?: (event: PostPopovercontainerCustomEvent<{ willOpen: boolean }>) => void;
|
|
1874
1886
|
/**
|
|
1875
|
-
*
|
|
1887
|
+
* Emitted just after the popover is hidden.
|
|
1876
1888
|
*/
|
|
1877
1889
|
"onPostHide"?: (event: PostPopovercontainerCustomEvent<any>) => void;
|
|
1878
1890
|
/**
|
|
1879
|
-
*
|
|
1891
|
+
* Emitted just after the popover is shown. The payload contains a `first` boolean, that is set to `true` when the popover is shown for the first time.
|
|
1880
1892
|
*/
|
|
1881
1893
|
"onPostShow"?: (event: PostPopovercontainerCustomEvent<{ first?: boolean }>) => void;
|
|
1882
1894
|
/**
|
|
1883
|
-
*
|
|
1895
|
+
* Emitted just after the popover's state changes. The payload contains a `isOpen` boolean, that is set to `true` when the popover is shown, `false` when it is hidden.
|
|
1884
1896
|
*/
|
|
1885
1897
|
"onPostToggle"?: (event: PostPopovercontainerCustomEvent<{ isOpen: boolean }>) => void;
|
|
1886
1898
|
/**
|
|
1887
|
-
*
|
|
1899
|
+
* Placement of the popover according to the floating-ui options.
|
|
1888
1900
|
* @default 'top'
|
|
1889
1901
|
*/
|
|
1890
1902
|
"placement"?: Placement1;
|
|
1891
1903
|
/**
|
|
1892
|
-
*
|
|
1904
|
+
* Whether to add a space through which the mouse can move without the popover being hidden.
|
|
1893
1905
|
*/
|
|
1894
|
-
"safeSpace"?:
|
|
1906
|
+
"safeSpace"?: boolean;
|
|
1895
1907
|
}
|
|
1896
1908
|
interface PostProgressbar {
|
|
1897
1909
|
/**
|
|
@@ -2212,8 +2224,9 @@ declare namespace LocalJSX {
|
|
|
2212
2224
|
"edgeGap": number;
|
|
2213
2225
|
"offset": number;
|
|
2214
2226
|
"arrow": boolean;
|
|
2215
|
-
"safeSpace":
|
|
2227
|
+
"safeSpace": boolean;
|
|
2216
2228
|
"autoHide": boolean;
|
|
2229
|
+
"autoResize": boolean;
|
|
2217
2230
|
}
|
|
2218
2231
|
interface PostProgressbarAttributes {
|
|
2219
2232
|
"min": number;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Derivable, DetectOverflowOptions, Middleware } from '@floating-ui/dom';
|
|
2
|
+
import { Dimensions } from '@floating-ui/utils';
|
|
3
|
+
export declare const FLIP_MIDDLEWARE = "post-flip";
|
|
4
|
+
export type FlipOptions = Omit<DetectOverflowOptions, 'elementContext'> & {
|
|
5
|
+
minSize?: Partial<Dimensions>;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Changes the placement of the floating element to keep it in view.
|
|
9
|
+
*
|
|
10
|
+
* Unlike the Floating UI `flip` middleware, placements are measured against `minSize` rather than
|
|
11
|
+
* against the current size of the floating element, and the placement with the smallest deficit is
|
|
12
|
+
* used when none of them fits.
|
|
13
|
+
*/
|
|
14
|
+
export declare function flip(options?: FlipOptions | Derivable<FlipOptions>): Middleware;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Middleware } from '@floating-ui/dom';
|
|
2
|
+
export declare const SAFE_SPACE_MIDDLEWARE = "post-safe-space";
|
|
3
|
+
export interface SafeSpaceData {
|
|
4
|
+
polygon: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Computes the safe space, the area the pointer can travel through to get from the reference to
|
|
8
|
+
* the floating element.
|
|
9
|
+
*/
|
|
10
|
+
export declare function safeSpace(): Middleware;
|
|
@@ -8,6 +8,7 @@ export * from './event-from';
|
|
|
8
8
|
export * from './get-focusable-children';
|
|
9
9
|
export * from './get-root';
|
|
10
10
|
export * from './get-slotted-element';
|
|
11
|
+
export * from './is-focus-visible';
|
|
11
12
|
export * from './is-iso-date';
|
|
12
13
|
export * from './is-motion-reduced';
|
|
13
14
|
export * from './is-value-empty';
|
|
@@ -113,5 +113,6 @@ export const TEST_MATRIX = {
|
|
|
113
113
|
'jobs-loggedout': stateComposeHelper(SCROLLED_ONLY, BURGER_FLOW_NO_SECOND),
|
|
114
114
|
'jobs-loggedin': stateComposeHelper(LOGGED_IN),
|
|
115
115
|
'onepager': stateComposeHelper(SCROLLED_ONLY, LANGUAGE_AND_SCROLL),
|
|
116
|
-
'application': stateComposeHelper(SCROLLED_ONLY, LANGUAGE_AND_SCROLL),
|
|
116
|
+
'application-compact': stateComposeHelper(SCROLLED_ONLY, LANGUAGE_AND_SCROLL),
|
|
117
|
+
'application-condensed': stateComposeHelper(SCROLLED_ONLY, LANGUAGE_AND_SCROLL),
|
|
117
118
|
};
|