@swisspost/design-system-components 10.0.0-next.55 → 10.0.0-next.57
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/{components/react/p-CJ80BZ06.js → cjs/breakpoints-Df03Ct7n.js} +103 -5
- package/dist/cjs/debounce-BsIBi_-2.js +13 -0
- package/dist/cjs/environment-BQE9Unf_.js +52 -0
- package/dist/cjs/{event-from-CLvtSUKf.js → event-from-CwMw19f8.js} +2 -2
- package/dist/cjs/fade-CPQhl1fP.js +26 -0
- package/dist/cjs/fade-slide-dPhQa-I1.js +38 -0
- package/dist/cjs/{get-focusable-children-Bx63XUQg.js → get-focusable-children-ChETM1wK.js} +29 -21
- package/dist/cjs/{get-root-CyMf3Vsd.js → get-root-CUAv4k4C.js} +2 -2
- package/dist/cjs/{index-B4gYpuJF.js → index-B4rc1pqu.js} +2150 -292
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-DkJrv93P.js → package-uQ5oiSiN.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +19 -15
- package/dist/cjs/post-avatar.cjs.entry.js +27 -17
- package/dist/cjs/post-back-to-top.cjs.entry.js +23 -43
- package/dist/cjs/post-banner.cjs.entry.js +15 -12
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +14 -12
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +33 -34
- package/dist/cjs/post-card-control.cjs.entry.js +42 -26
- package/dist/cjs/{post-closebutton_15.cjs.entry.js → post-closebutton_13.cjs.entry.js} +618 -531
- package/dist/cjs/post-collapsible_2.cjs.entry.js +41 -37
- package/dist/cjs/post-components.cjs.js +3 -3
- package/dist/cjs/post-env-test.cjs.entry.js +15 -0
- package/dist/cjs/post-footer.cjs.entry.js +24 -20
- package/dist/cjs/post-linkarea.cjs.entry.js +5 -5
- package/dist/cjs/post-pagination.cjs.entry.js +615 -0
- package/dist/cjs/post-popover-trigger.cjs.entry.js +54 -34
- package/dist/cjs/post-popover.cjs.entry.js +26 -17
- package/dist/cjs/post-rating.cjs.entry.js +24 -18
- package/dist/cjs/post-stepper-item.cjs.entry.js +5 -5
- package/dist/cjs/post-stepper.cjs.entry.js +40 -29
- package/dist/cjs/post-tab-item.cjs.entry.js +51 -0
- package/dist/cjs/post-tab-panel.cjs.entry.js +13 -11
- package/dist/cjs/post-tabs.cjs.entry.js +195 -40
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +13 -11
- package/dist/cjs/post-tooltip.cjs.entry.js +14 -12
- package/dist/cjs/utils-s05L2ulk.js +26 -0
- package/dist/collection/animations/collapse.js +3 -3
- package/dist/collection/animations/fade-slide.js +33 -0
- package/dist/collection/animations/fade.js +19 -7
- package/dist/collection/animations/index.js +2 -0
- package/dist/collection/animations/slide.js +25 -21
- package/dist/collection/animations/types.js +14 -0
- package/dist/collection/animations/utils.js +8 -0
- package/dist/collection/collection-manifest.json +8 -8
- package/dist/collection/components/post-accordion/post-accordion.css +1 -1
- package/dist/collection/components/post-accordion/post-accordion.js +5 -4
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +9 -8
- package/dist/collection/components/post-avatar/post-avatar.js +11 -11
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +15 -15
- package/dist/collection/components/post-banner/post-banner.css +4 -1
- package/dist/collection/components/post-banner/post-banner.js +6 -5
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +3 -3
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +29 -29
- package/dist/collection/components/post-card-control/post-card-control.js +18 -18
- package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
- package/dist/collection/components/post-closebutton/post-closebutton.js +4 -3
- package/dist/collection/components/post-collapsible/post-collapsible.js +28 -28
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +3 -3
- package/dist/collection/components/post-footer/post-footer.css +1 -1
- package/dist/collection/components/post-footer/post-footer.js +18 -16
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +144 -82
- package/dist/collection/components/post-icon/post-icon.js +18 -16
- package/dist/collection/components/post-language-menu/post-language-menu.css +1 -0
- package/dist/collection/components/{post-language-switch/post-language-switch.js → post-language-menu/post-language-menu.js} +45 -36
- package/dist/collection/components/post-language-menu-item/post-language-menu-item.css +1 -0
- package/dist/collection/components/{post-language-option/post-language-option.js → post-language-menu-item/post-language-menu-item.js} +24 -23
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-logo/post-logo.css +3 -1
- package/dist/collection/components/post-logo/post-logo.js +3 -3
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +41 -29
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +183 -74
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +3 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +81 -75
- package/dist/collection/components/post-menu/post-menu.css +1 -1
- package/dist/collection/components/post-menu/post-menu.js +39 -38
- package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +3 -3
- package/dist/collection/components/post-pagination/post-pagination.css +1 -0
- package/dist/collection/components/post-pagination/post-pagination.js +838 -0
- package/dist/collection/components/post-popover/post-popover.js +22 -16
- package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +45 -29
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +82 -131
- package/dist/collection/components/post-rating/post-rating.js +7 -7
- package/dist/collection/components/post-stepper/post-stepper.js +38 -35
- package/dist/collection/components/post-stepper-item/post-stepper-item.css +2 -2
- package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
- package/dist/collection/components/post-tab-item/post-tab-item.css +1 -0
- package/dist/collection/components/post-tab-item/post-tab-item.js +86 -0
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +10 -10
- package/dist/collection/components/post-tabs/post-tabs.js +232 -59
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +2 -2
- package/dist/collection/components/post-tooltip/post-tooltip.js +9 -27
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +4 -4
- package/dist/collection/utils/environment.js +47 -2
- package/dist/collection/utils/event-from.js +2 -2
- package/dist/collection/utils/get-focusable-children.js +29 -21
- package/dist/collection/utils/is-motion-reduced.js +1 -1
- package/dist/collection/utils/tests/environment/hydrate-app-helper.js +16 -0
- package/dist/collection/utils/tests/environment/post-env-test.js +9 -0
- package/dist/component-names.json +4 -5
- package/dist/components/breakpoints.js +1 -178
- package/dist/components/debounce.js +1 -0
- package/dist/components/environment.js +1 -0
- package/dist/components/event-from.js +1 -119
- package/dist/components/fade-slide.js +1 -0
- package/dist/components/fade.js +1 -11
- package/dist/components/focusable.js +1 -5018
- package/dist/components/get-focusable-children.js +1 -64
- package/dist/components/get-root.js +1 -15
- package/dist/components/heading-levels.js +1 -3
- package/dist/components/index.browser.js +1 -14
- package/dist/components/index.d.ts +11 -10
- package/dist/components/index.js +1 -39
- package/dist/components/long-press-event.js +1 -257
- package/dist/components/package.js +1 -3
- package/dist/components/post-accordion-item.js +1 -6
- package/dist/components/post-accordion-item2.js +1 -113
- package/dist/components/post-accordion.js +1 -6
- package/dist/components/post-accordion2.js +1 -138
- package/dist/components/post-avatar.js +1 -217
- package/dist/components/post-back-to-top.js +1 -144
- package/dist/components/post-banner.js +1 -98
- package/dist/components/post-breadcrumb-item.js +1 -6
- package/dist/components/post-breadcrumb-item2.js +1 -79
- package/dist/components/post-breadcrumbs.js +1 -196
- package/dist/components/post-card-control.js +1 -326
- package/dist/components/post-closebutton.js +1 -6
- package/dist/components/post-closebutton2.js +1 -77
- package/dist/components/post-collapsible-trigger.js +1 -6
- package/dist/components/post-collapsible-trigger2.js +1 -136
- package/dist/components/post-collapsible.js +1 -6
- package/dist/components/post-collapsible2.js +1 -110
- package/dist/components/{post-list.d.ts → post-env-test.d.ts} +4 -4
- package/dist/components/post-env-test.js +1 -0
- package/dist/components/post-footer.js +1 -116
- package/dist/components/post-header.js +1 -372
- package/dist/components/post-icon.js +1 -6
- package/dist/components/post-icon2.js +1 -159
- package/dist/components/post-language-menu-item.d.ts +11 -0
- package/dist/components/post-language-menu-item.js +1 -0
- package/dist/components/{post-language-switch.d.ts → post-language-menu.d.ts} +4 -4
- package/dist/components/post-language-menu.js +1 -0
- package/dist/components/post-linkarea.js +1 -58
- package/dist/components/post-logo.js +1 -58
- package/dist/components/post-mainnavigation.js +1 -180
- package/dist/components/post-megadropdown-trigger.js +1 -136
- package/dist/components/post-megadropdown.js +1 -267
- package/dist/components/post-menu-item.js +1 -6
- package/dist/components/post-menu-item2.js +1 -30
- package/dist/components/post-menu-trigger.js +1 -6
- package/dist/components/post-menu-trigger2.js +1 -110
- package/dist/components/post-menu.js +1 -6
- package/dist/components/post-menu2.js +1 -242
- package/dist/components/{post-tab-header.d.ts → post-pagination.d.ts} +4 -4
- package/dist/components/post-pagination.js +1 -0
- package/dist/components/post-popover-trigger.js +1 -132
- package/dist/components/post-popover.js +1 -118
- package/dist/components/post-popovercontainer.js +1 -6
- package/dist/components/post-popovercontainer2.js +1 -3127
- package/dist/components/post-rating.js +1 -148
- package/dist/components/post-stepper-item.js +1 -33
- package/dist/components/post-stepper.js +1 -134
- package/dist/components/{post-list-item.d.ts → post-tab-item.d.ts} +4 -4
- package/dist/components/post-tab-item.js +1 -0
- package/dist/components/post-tab-panel.js +1 -54
- package/dist/components/post-tabs.js +1 -196
- package/dist/components/post-togglebutton.js +1 -56
- package/dist/components/post-togglebutton2.js +1 -0
- package/dist/components/post-tooltip-trigger.js +1 -206
- package/dist/components/post-tooltip.js +1 -114
- package/dist/components/react/index.d.ts +2 -0
- package/dist/components/react/index.js +1 -2315
- package/dist/components/react/p-B8YiQ3mz.js +1 -0
- package/dist/components/react/p-BC5nlBvn.js +1 -0
- package/dist/components/react/p-BLchVpF6.js +1 -14
- package/dist/components/react/p-BVCjnh6Q.js +1 -0
- package/dist/{post-components/p-CBFgkSgY.js → components/react/p-BVGcVycs.js} +1 -1
- package/dist/components/react/p-B_XPj2c8.js +1 -0
- package/dist/components/react/p-BllOMLDs.js +1 -0
- package/dist/components/react/p-BmRNjQUZ.js +1 -0
- package/dist/components/react/p-ByFh05IW.js +1 -0
- package/dist/components/react/p-C9hMpmsD.js +1 -0
- package/dist/components/react/p-CJ13r5fi.js +1 -0
- package/dist/components/react/p-CZvbetqX.js +1 -0
- package/dist/components/react/p-C_2k3G1c.js +1 -257
- package/dist/components/react/p-CoDiS_Ik.js +1 -0
- package/dist/components/react/p-Cou17ld8.js +1 -0
- package/dist/components/react/p-D5knoiyy.js +1 -0
- package/dist/components/react/p-D9DDtvFM.js +1 -0
- package/dist/components/react/p-DY2U5CQt.js +1 -0
- package/dist/components/react/p-DjIHLduJ.js +1 -3
- package/dist/components/react/p-DpATRD2W.js +1 -0
- package/dist/components/react/p-FxUVQ4Tx.js +1 -0
- package/dist/components/react/p-HygIVKXC.js +1 -5018
- package/dist/components/react/p-YR7U0Z_g.js +1 -0
- package/dist/components/react/p-ZeKXASQs.js +1 -0
- package/dist/components/react/p-r4txK0AC.js +1 -3
- package/dist/components/react/p-sSn0kXFi.js +1 -0
- package/dist/components/react/post-accordion-item.js +1 -6
- package/dist/components/react/post-accordion.js +1 -6
- package/dist/components/react/post-avatar.js +1 -218
- package/dist/components/react/post-back-to-top.js +1 -145
- package/dist/components/react/post-banner.js +1 -99
- package/dist/components/react/post-breadcrumb-item.js +1 -6
- package/dist/components/react/post-breadcrumbs.js +1 -197
- package/dist/components/react/post-card-control.js +1 -327
- package/dist/components/react/post-closebutton.js +1 -6
- package/dist/components/react/post-collapsible-trigger.js +1 -6
- package/dist/components/react/post-collapsible.js +1 -6
- package/dist/components/react/{post-list.d.ts → post-env-test.d.ts} +4 -4
- package/dist/components/react/post-env-test.js +1 -0
- package/dist/components/react/post-footer.js +1 -117
- package/dist/components/react/post-header.js +1 -373
- package/dist/components/react/post-icon.js +1 -6
- package/dist/components/react/post-language-menu-item.d.ts +11 -0
- package/dist/components/react/post-language-menu-item.js +1 -0
- package/dist/components/react/{post-language-option.d.ts → post-language-menu.d.ts} +4 -4
- package/dist/components/react/post-language-menu.js +1 -0
- package/dist/components/react/post-linkarea.js +1 -59
- package/dist/components/react/post-logo.js +1 -59
- package/dist/components/react/post-mainnavigation.js +1 -181
- package/dist/components/react/post-megadropdown-trigger.js +1 -137
- package/dist/components/react/post-megadropdown.js +1 -268
- package/dist/components/react/post-menu-item.js +1 -6
- package/dist/components/react/post-menu-trigger.js +1 -6
- package/dist/components/react/post-menu.js +1 -6
- package/dist/components/react/{post-tab-header.d.ts → post-pagination.d.ts} +4 -4
- package/dist/components/react/post-pagination.js +1 -0
- package/dist/components/react/post-popover-trigger.js +1 -133
- package/dist/components/react/post-popover.js +1 -119
- package/dist/components/react/post-popovercontainer.js +1 -6
- package/dist/components/react/post-rating.js +1 -149
- package/dist/components/react/post-stepper-item.js +1 -34
- package/dist/components/react/post-stepper.js +1 -135
- package/dist/components/react/{post-list-item.d.ts → post-tab-item.d.ts} +4 -4
- package/dist/components/react/post-tab-item.js +1 -0
- package/dist/components/react/post-tab-panel.js +1 -55
- package/dist/components/react/post-tabs.js +1 -197
- package/dist/components/react/post-togglebutton.js +1 -57
- package/dist/components/react/post-tooltip-trigger.js +1 -207
- package/dist/components/react/post-tooltip.js +1 -115
- package/dist/components/switch-variants.js +1 -3
- package/dist/components/utils.js +1 -0
- package/dist/docs.d.ts +11 -0
- package/dist/docs.json +873 -631
- package/dist/{cjs/breakpoints-CEkeixld.js → esm/breakpoints-DYoSKGHO.js} +89 -6
- package/dist/esm/debounce-C9hMpmsD.js +11 -0
- package/dist/esm/environment-CEmnRoA6.js +49 -0
- package/dist/{components/react/p-CzIKqBrS.js → esm/event-from-rEfV4v4a.js} +2 -2
- package/dist/esm/fade-DsgPYmAa.js +24 -0
- package/dist/esm/fade-slide-CvOvauo9.js +36 -0
- package/dist/esm/{get-focusable-children-D9ZHp2FP.js → get-focusable-children-BXNs2_sw.js} +29 -21
- package/dist/{components/react/p-CBFgkSgY.js → esm/get-root-CXfAA093.js} +1 -1
- package/dist/esm/{index-wEFJ-c34.js → index-CDZBzSdV.js} +2150 -292
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-CZvbetqX.js +3 -0
- package/dist/esm/post-accordion_2.entry.js +17 -13
- package/dist/esm/post-avatar.entry.js +22 -12
- package/dist/esm/post-back-to-top.entry.js +23 -43
- package/dist/esm/post-banner.entry.js +14 -11
- package/dist/esm/post-breadcrumb-item_2.entry.js +13 -11
- package/dist/esm/post-breadcrumbs.entry.js +31 -32
- package/dist/esm/post-card-control.entry.js +32 -16
- package/dist/esm/{post-closebutton_15.entry.js → post-closebutton_13.entry.js} +599 -510
- package/dist/esm/post-collapsible_2.entry.js +38 -34
- package/dist/esm/post-components.js +4 -4
- package/dist/esm/post-env-test.entry.js +13 -0
- package/dist/esm/post-footer.entry.js +21 -17
- package/dist/esm/post-linkarea.entry.js +5 -5
- package/dist/esm/post-pagination.entry.js +613 -0
- package/dist/esm/post-popover-trigger.entry.js +52 -32
- package/dist/esm/post-popover.entry.js +25 -16
- package/dist/esm/post-rating.entry.js +16 -10
- package/dist/esm/post-stepper-item.entry.js +5 -5
- package/dist/esm/post-stepper.entry.js +39 -28
- package/dist/esm/post-tab-item.entry.js +49 -0
- package/dist/esm/post-tab-panel.entry.js +13 -11
- package/dist/esm/post-tabs.entry.js +195 -40
- package/dist/esm/post-tooltip-trigger.entry.js +10 -8
- package/dist/esm/post-tooltip.entry.js +13 -11
- package/dist/esm/utils-CoDiS_Ik.js +24 -0
- package/dist/post-components/p-09ba7cf9.entry.js +1 -0
- package/dist/post-components/p-0c091898.entry.js +1 -0
- package/dist/post-components/{p-cd03e6f2.entry.js → p-0e97fcfd.entry.js} +1 -1
- package/dist/post-components/p-296f1dd5.entry.js +1 -0
- package/dist/post-components/p-32ad2b21.entry.js +1 -0
- package/dist/post-components/p-366c28cb.entry.js +1 -0
- package/dist/post-components/p-41ae68d5.entry.js +1 -0
- package/dist/post-components/p-448e7265.entry.js +1 -0
- package/dist/post-components/p-554da188.entry.js +1 -0
- package/dist/post-components/p-5912f8f1.entry.js +1 -0
- package/dist/post-components/p-790f300d.entry.js +1 -0
- package/dist/post-components/p-7ed5a493.entry.js +1 -0
- package/dist/post-components/p-85bea1b6.entry.js +1 -0
- package/dist/post-components/p-8bcff4d2.entry.js +1 -0
- package/dist/post-components/p-9dc9c245.entry.js +1 -0
- package/dist/post-components/p-B7ebLhHc.js +1 -0
- package/dist/post-components/p-BVCjnh6Q.js +1 -0
- package/dist/post-components/p-BXNs2_sw.js +1 -0
- package/dist/post-components/p-C9hMpmsD.js +1 -0
- package/dist/post-components/p-CDZBzSdV.js +2 -0
- package/dist/post-components/p-CEmnRoA6.js +1 -0
- package/dist/post-components/p-CZvbetqX.js +1 -0
- package/dist/post-components/p-CoDiS_Ik.js +1 -0
- package/dist/post-components/p-D5knoiyy.js +1 -0
- package/dist/post-components/p-DI-h_mEL.js +1 -0
- package/dist/post-components/p-a06f9695.entry.js +1 -0
- package/dist/post-components/p-a191f1df.entry.js +1 -0
- package/dist/post-components/p-c5d19d62.entry.js +1 -0
- package/dist/post-components/{p-24dc54d1.entry.js → p-c8c4d05b.entry.js} +1 -1
- package/dist/post-components/{p-57288cb2.entry.js → p-d1a5c980.entry.js} +1 -1
- package/dist/post-components/p-d4e2c556.entry.js +1 -0
- package/dist/post-components/p-f96a310c.entry.js +1 -0
- package/dist/post-components/p-fab2327d.entry.js +1 -0
- package/dist/post-components/p-rEfV4v4a.js +1 -0
- package/dist/post-components/post-components.css +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/prebuild.js +46 -0
- package/dist/types/animations/collapse.d.ts +1 -0
- package/dist/types/animations/fade-slide.d.ts +11 -0
- package/dist/types/animations/fade.d.ts +2 -2
- package/dist/types/animations/index.d.ts +2 -0
- package/dist/types/animations/slide.d.ts +9 -2
- package/dist/types/animations/types.d.ts +13 -0
- package/dist/types/animations/utils.d.ts +2 -0
- package/dist/types/components/post-accordion-item/heading-levels.d.ts +1 -1
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +2 -2
- package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +2 -2
- package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +6 -6
- package/dist/types/components/post-collapsible/post-collapsible.d.ts +4 -5
- package/dist/types/components/post-footer/post-footer.d.ts +4 -4
- package/dist/types/components/post-header/post-header.d.ts +23 -13
- package/dist/types/components/{post-language-switch/post-language-switch.d.ts → post-language-menu/post-language-menu.d.ts} +12 -11
- package/dist/types/components/{post-language-option/post-language-option.d.ts → post-language-menu-item/post-language-menu-item.d.ts} +5 -5
- package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +6 -5
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +20 -2
- package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +17 -23
- package/dist/types/components/post-menu/post-menu.d.ts +4 -4
- package/dist/types/components/post-pagination/post-pagination.d.ts +224 -0
- package/dist/types/components/post-popover/post-popover.d.ts +4 -3
- package/dist/types/components/post-popover-trigger/post-popover-trigger.d.ts +2 -1
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +23 -21
- package/dist/types/components/post-rating/post-rating.d.ts +1 -1
- package/dist/types/components/post-stepper/post-stepper.d.ts +9 -8
- package/dist/types/components/post-tab-item/post-tab-item.d.ts +19 -0
- package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +3 -3
- package/dist/types/components/post-tabs/post-tabs.d.ts +33 -12
- package/dist/types/components/post-tooltip/post-tooltip.d.ts +1 -5
- package/dist/types/components.d.ts +322 -219
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/prebuild.d.ts +9 -0
- package/dist/types/stencil-public-runtime.d.ts +147 -10
- package/dist/types/types/heading-levels.d.ts +1 -1
- package/dist/types/utils/environment.d.ts +25 -1
- package/dist/types/utils/get-focusable-children.d.ts +2 -2
- package/dist/types/utils/tests/environment/hydrate-app-helper.d.ts +5 -0
- package/dist/types/utils/tests/environment/post-env-test.d.ts +3 -0
- package/hydrate/index.d.ts +14 -0
- package/hydrate/index.js +7494 -2714
- package/hydrate/index.mjs +7493 -2715
- package/package.json +7 -8
- package/dist/cjs/fade-nS5zzDQS.js +0 -14
- package/dist/cjs/index-UFKR6Ok0.js +0 -98
- package/dist/cjs/post-tab-header.cjs.entry.js +0 -31
- package/dist/collection/animations/slide-and-fade.js +0 -25
- package/dist/collection/components/post-language-option/post-language-option.css +0 -1
- package/dist/collection/components/post-language-switch/post-language-switch.css +0 -1
- package/dist/collection/components/post-list/post-list.css +0 -1
- package/dist/collection/components/post-list/post-list.js +0 -97
- package/dist/collection/components/post-list-item/post-list-item.css +0 -1
- package/dist/collection/components/post-list-item/post-list-item.js +0 -26
- package/dist/collection/components/post-tab-header/post-tab-header.css +0 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +0 -65
- package/dist/components/index2.js +0 -89
- package/dist/components/post-language-option.d.ts +0 -11
- package/dist/components/post-language-option.js +0 -99
- package/dist/components/post-language-switch.js +0 -157
- package/dist/components/post-list-item.js +0 -38
- package/dist/components/post-list.js +0 -61
- package/dist/components/post-tab-header.js +0 -52
- package/dist/components/react/p-BVXiQdHq.js +0 -64
- package/dist/components/react/p-BhxZzOEC.js +0 -3
- package/dist/components/react/p-CSAMO7iJ.js +0 -243
- package/dist/components/react/p-CYkf_7Y5.js +0 -89
- package/dist/components/react/p-Ccrl2AQn.js +0 -111
- package/dist/components/react/p-CewRvBtg.js +0 -139
- package/dist/components/react/p-Cwiv86_f.js +0 -111
- package/dist/components/react/p-D2waO0Zc.js +0 -31
- package/dist/components/react/p-DBPOV12C.js +0 -160
- package/dist/components/react/p-DVGEExot.js +0 -3128
- package/dist/components/react/p-Djvj8fd2.js +0 -80
- package/dist/components/react/p-LtiDhYis.js +0 -137
- package/dist/components/react/p-SbIC4aZX.js +0 -11
- package/dist/components/react/p-XrZzCOKT.js +0 -78
- package/dist/components/react/p-v3pOrMNQ.js +0 -114
- package/dist/components/react/post-language-option.js +0 -100
- package/dist/components/react/post-language-switch.d.ts +0 -11
- package/dist/components/react/post-language-switch.js +0 -158
- package/dist/components/react/post-list-item.js +0 -39
- package/dist/components/react/post-list.js +0 -62
- package/dist/components/react/post-tab-header.js +0 -53
- package/dist/esm/breakpoints-CJ80BZ06.js +0 -178
- package/dist/esm/event-from-CzIKqBrS.js +0 -119
- package/dist/esm/fade-SbIC4aZX.js +0 -11
- package/dist/esm/get-root-BkQ3CrLq.js +0 -15
- package/dist/esm/index-Beaz8wEe.js +0 -89
- package/dist/esm/package-BhxZzOEC.js +0 -3
- package/dist/esm/post-tab-header.entry.js +0 -29
- package/dist/post-components/p-01e678c9.entry.js +0 -1
- package/dist/post-components/p-034a453f.entry.js +0 -1
- package/dist/post-components/p-15a4cdbf.entry.js +0 -1
- package/dist/post-components/p-2a2030bf.entry.js +0 -1
- package/dist/post-components/p-2ed84cc3.entry.js +0 -1
- package/dist/post-components/p-3228968f.entry.js +0 -1
- package/dist/post-components/p-3c01ddfe.entry.js +0 -1
- package/dist/post-components/p-748b1f01.entry.js +0 -1
- package/dist/post-components/p-7745e46e.entry.js +0 -1
- package/dist/post-components/p-7f635728.entry.js +0 -1
- package/dist/post-components/p-82c178a3.entry.js +0 -1
- package/dist/post-components/p-9b5f8319.entry.js +0 -1
- package/dist/post-components/p-Beaz8wEe.js +0 -1
- package/dist/post-components/p-BhxZzOEC.js +0 -1
- package/dist/post-components/p-CJ80BZ06.js +0 -1
- package/dist/post-components/p-D9ZHp2FP.js +0 -1
- package/dist/post-components/p-SbIC4aZX.js +0 -1
- package/dist/post-components/p-a9644e54.entry.js +0 -1
- package/dist/post-components/p-af030a3a.entry.js +0 -1
- package/dist/post-components/p-b8ba8139.entry.js +0 -1
- package/dist/post-components/p-db935e8e.entry.js +0 -1
- package/dist/post-components/p-e62e1f57.entry.js +0 -1
- package/dist/post-components/p-fb4b1641.entry.js +0 -1
- package/dist/post-components/p-wEFJ-c34.js +0 -2
- package/dist/types/animations/slide-and-fade.d.ts +0 -2
- package/dist/types/components/post-list/post-list.d.ts +0 -24
- package/dist/types/components/post-list-item/post-list-item.d.ts +0 -8
- package/dist/types/components/post-tab-header/post-tab-header.d.ts +0 -14
- /package/dist/collection/components/{post-language-switch → post-language-menu}/switch-variants.js +0 -0
- /package/dist/{post-components/p-CzIKqBrS.js → components/react/p-rEfV4v4a.js} +0 -0
- /package/dist/types/components/{post-language-switch → post-language-menu}/switch-variants.d.ts +0 -0
|
@@ -10,7 +10,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
10
10
|
};
|
|
11
11
|
import { Host, h, } from "@stencil/core";
|
|
12
12
|
import { version } from "../../../../package";
|
|
13
|
-
import {
|
|
13
|
+
import { fade } from "../../animations/index";
|
|
14
14
|
import { checkEmptyOrOneOf, EventFrom } from "../../utils/index";
|
|
15
15
|
import { BANNER_TYPES } from "./banner-types";
|
|
16
16
|
/**
|
|
@@ -45,7 +45,7 @@ export class PostBanner {
|
|
|
45
45
|
* Triggers banner dismissal programmatically (same as clicking on the close button (×)).
|
|
46
46
|
*/
|
|
47
47
|
async dismiss() {
|
|
48
|
-
const dismissal =
|
|
48
|
+
const dismissal = fade(this.host, 'out');
|
|
49
49
|
await dismissal.finished;
|
|
50
50
|
this.host.remove();
|
|
51
51
|
this.postDismissed.emit();
|
|
@@ -57,7 +57,7 @@ export class PostBanner {
|
|
|
57
57
|
this.hasActions = this.host.querySelectorAll('[slot="actions"]').length > 0;
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: 'fd14b1f298bdc6cf2d53712cec07da43804caf4b', "data-version": version, role: "alert" }, h("slot", { key: '267a1f0a34b0787697d38ca483dcfbc40098fe09', name: "close-button" }), h("slot", { key: '104cf7d30e84747f1c76844cc36a9ef45e2568c6', name: "heading" }), h("slot", { key: 'cfa306ee64458b457d9bc792f46b92a60608aa4c' }), this.hasActions && (h("div", { key: 'dc2d9a30e6f53569e44c9ca7d587c3277db9a2db', class: "actions" }, h("slot", { key: '42b481df3fa4b4d495f90f160c9f604a3eeeba90', name: "actions" })))));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "post-banner"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -75,7 +75,6 @@ export class PostBanner {
|
|
|
75
75
|
return {
|
|
76
76
|
"type": {
|
|
77
77
|
"type": "string",
|
|
78
|
-
"attribute": "type",
|
|
79
78
|
"mutable": false,
|
|
80
79
|
"complexType": {
|
|
81
80
|
"original": "BannerType",
|
|
@@ -84,7 +83,8 @@ export class PostBanner {
|
|
|
84
83
|
"BannerType": {
|
|
85
84
|
"location": "import",
|
|
86
85
|
"path": "./banner-types",
|
|
87
|
-
"id": "src/components/post-banner/banner-types.ts::BannerType"
|
|
86
|
+
"id": "src/components/post-banner/banner-types.ts::BannerType",
|
|
87
|
+
"referenceLocation": "BannerType"
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
},
|
|
@@ -97,6 +97,7 @@ export class PostBanner {
|
|
|
97
97
|
"getter": false,
|
|
98
98
|
"setter": false,
|
|
99
99
|
"reflect": true,
|
|
100
|
+
"attribute": "type",
|
|
100
101
|
"defaultValue": "'info'"
|
|
101
102
|
}
|
|
102
103
|
};
|
|
@@ -37,7 +37,7 @@ export class PostBreadcrumbItem {
|
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
const BreadcrumbTag = this.validUrl ? 'a' : 'span';
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'ea3421ed24d2db8fc8c647eeafd04032996a4ae5', "data-version": version }, h("post-icon", { key: 'f2278fc5c68bbf509a44e53ec7f789d396bd75f1', name: "chevronright", class: "breadcrumb-item-icon" }), h(BreadcrumbTag, { key: '60d899795489fdbe9246fda24623289b5994af72', class: "breadcrumb-item", ...(this.validUrl ? { href: this.validUrl } : {}), onKeyDown: event => this.handleKeyDown(event) }, h("slot", { key: '7d87b12cba90f865ef02e1c66fd600703c00456e' }))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "post-breadcrumb-item"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -55,7 +55,6 @@ export class PostBreadcrumbItem {
|
|
|
55
55
|
return {
|
|
56
56
|
"url": {
|
|
57
57
|
"type": "string",
|
|
58
|
-
"attribute": "url",
|
|
59
58
|
"mutable": false,
|
|
60
59
|
"complexType": {
|
|
61
60
|
"original": "string | URL",
|
|
@@ -75,7 +74,8 @@ export class PostBreadcrumbItem {
|
|
|
75
74
|
},
|
|
76
75
|
"getter": false,
|
|
77
76
|
"setter": false,
|
|
78
|
-
"reflect": false
|
|
77
|
+
"reflect": false,
|
|
78
|
+
"attribute": "url"
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
}
|
|
@@ -24,23 +24,23 @@ export class PostBreadcrumbs {
|
|
|
24
24
|
validateHomeUrl() {
|
|
25
25
|
checkRequiredAndUrl(this, 'homeUrl');
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
checkRequiredAndType(this, '
|
|
27
|
+
validateTextHome() {
|
|
28
|
+
checkRequiredAndType(this, 'textHome', 'string');
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
checkRequiredAndType(this, '
|
|
30
|
+
validateTextBreadcrumbs() {
|
|
31
|
+
checkRequiredAndType(this, 'textBreadcrumbs', 'string');
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
checkRequiredAndType(this, '
|
|
33
|
+
validateTextMoreItems() {
|
|
34
|
+
checkRequiredAndType(this, 'textMoreItems', 'string');
|
|
35
35
|
}
|
|
36
36
|
componentWillLoad() {
|
|
37
37
|
this.updateBreadcrumbItems();
|
|
38
38
|
}
|
|
39
39
|
componentDidLoad() {
|
|
40
40
|
this.validateHomeUrl();
|
|
41
|
-
this.
|
|
42
|
-
this.
|
|
43
|
-
this.
|
|
41
|
+
this.validateTextHome();
|
|
42
|
+
this.validateTextBreadcrumbs();
|
|
43
|
+
this.validateTextMoreItems();
|
|
44
44
|
window.addEventListener('resize', this.handleResize);
|
|
45
45
|
this.waitForBreadcrumbsRef();
|
|
46
46
|
}
|
|
@@ -88,18 +88,18 @@ export class PostBreadcrumbs {
|
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
90
|
const visibleItems = this.breadcrumbItems.slice(0, -1);
|
|
91
|
-
return (h(Host, { key: '
|
|
91
|
+
return (h(Host, { key: 'f3c59a174634a6ca6d3b9beceb455563275d04a6', "data-version": version }, h("nav", { key: 'cdc7cd4bbad53c57cdcbb735804b548f20b39523', "aria-label": this.textBreadcrumbs, class: "breadcrumbs-nav", ref: el => (this.breadcrumbsNavRef = el) }, h("ol", { key: '419658d8f58822c3fbf8e58bfc0069f629fc46d9', class: "no-list breadcrumbs-list" }, h("li", { key: '52348e55a01f3236957e23fc502cce6cbb4eadb9' }, h("a", { key: '8d1d8acff9f33c52e82ff4ce920c3f6a8418cdaa', href: this.homeUrl, class: "breadcrumb-link" }, h("span", { key: '1aca58d1afb96580f4b2f744dd972a1556fd9ad3', class: "visually-hidden" }, this.textHome), h("post-icon", { key: 'dfe6d8b330f718408ac82024ebd89e13382119bf', name: "home", class: "home-icon" }))), this.isConcatenated ? (h("li", { class: "menu-trigger-wrapper" }, h("post-icon", { name: "chevronright", class: "breadcrumb-item-icon" }), h("div", { class: "actual-menu" }, h("post-menu-trigger", { for: "breadcrumb-menu", tabIndex: 0, onKeyDown: e => {
|
|
92
92
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
93
93
|
e.preventDefault();
|
|
94
94
|
this.handleBreadcrumbItemClick();
|
|
95
95
|
}
|
|
96
|
-
} }, h("button", { class: "btn", tabIndex: -1 }, "...")), h("post-menu", { id: "breadcrumb-menu", label: this.
|
|
96
|
+
} }, h("button", { class: "btn", tabIndex: -1 }, "...")), h("post-menu", { id: "breadcrumb-menu", label: this.textMoreItems }, visibleItems.map(item => (h("post-menu-item", { key: item.url || item.text, class: "breadcrumb-item", onKeyDown: e => {
|
|
97
97
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
98
98
|
const linkElement = e.currentTarget.querySelector('a');
|
|
99
99
|
linkElement?.click();
|
|
100
100
|
e.preventDefault();
|
|
101
101
|
}
|
|
102
|
-
} }, item.url ? h("a", { href: item.url }, item.text) : h("span", null, item.text)))))))) : (visibleItems.map(item => (h("li", null, h("post-breadcrumb-item", { url: item.url, key: item.url || item.text }, item.text))))), this.lastItem && (h("li", { key: '
|
|
102
|
+
} }, item.url ? h("a", { href: item.url }, item.text) : h("span", null, item.text)))))))) : (visibleItems.map(item => (h("li", null, h("post-breadcrumb-item", { url: item.url, key: item.url || item.text }, item.text))))), this.lastItem && (h("li", { key: '13d8b9834218f995a2e7404227c288ef6e87f583', "aria-current": "page" }, h("post-breadcrumb-item", { key: 'eb1b375fa201d81fa84a3b30cff0f64f58bfd3a4', url: this.lastItem.url, tabindex: -1 }, this.lastItem.text)))), h("div", { key: '5527023bc4109b42b20202404246a74bd3120eff', class: "hidden-items" }, h("a", { key: '0a7d14bb5d482790011c816599ddf663a2b32e80', href: this.homeUrl, class: "hidden-breadcrumb-item" }, h("span", { key: '715281201fd630b00306add80d68c87ade21f83c', class: "visually-hidden" }, this.textHome), h("post-icon", { key: 'e8c78c08c0eff93d180e927d4ebe6c7e4b5fd224', name: "home", class: "home-icon" })), this.breadcrumbItems.map(item => (h("post-breadcrumb-item", { url: item.url, key: `hidden-${item.url || item.text}`, class: "hidden-breadcrumb-item" }, item.text)))))));
|
|
103
103
|
}
|
|
104
104
|
static get is() { return "post-breadcrumbs"; }
|
|
105
105
|
static get encapsulation() { return "shadow"; }
|
|
@@ -117,7 +117,6 @@ export class PostBreadcrumbs {
|
|
|
117
117
|
return {
|
|
118
118
|
"homeUrl": {
|
|
119
119
|
"type": "string",
|
|
120
|
-
"attribute": "home-url",
|
|
121
120
|
"mutable": false,
|
|
122
121
|
"complexType": {
|
|
123
122
|
"original": "string",
|
|
@@ -132,11 +131,11 @@ export class PostBreadcrumbs {
|
|
|
132
131
|
},
|
|
133
132
|
"getter": false,
|
|
134
133
|
"setter": false,
|
|
135
|
-
"reflect": true
|
|
134
|
+
"reflect": true,
|
|
135
|
+
"attribute": "home-url"
|
|
136
136
|
},
|
|
137
|
-
"
|
|
137
|
+
"textHome": {
|
|
138
138
|
"type": "string",
|
|
139
|
-
"attribute": "home-text",
|
|
140
139
|
"mutable": false,
|
|
141
140
|
"complexType": {
|
|
142
141
|
"original": "string",
|
|
@@ -151,11 +150,11 @@ export class PostBreadcrumbs {
|
|
|
151
150
|
},
|
|
152
151
|
"getter": false,
|
|
153
152
|
"setter": false,
|
|
154
|
-
"reflect": true
|
|
153
|
+
"reflect": true,
|
|
154
|
+
"attribute": "text-home"
|
|
155
155
|
},
|
|
156
|
-
"
|
|
156
|
+
"textBreadcrumbs": {
|
|
157
157
|
"type": "string",
|
|
158
|
-
"attribute": "label",
|
|
159
158
|
"mutable": false,
|
|
160
159
|
"complexType": {
|
|
161
160
|
"original": "string",
|
|
@@ -170,11 +169,11 @@ export class PostBreadcrumbs {
|
|
|
170
169
|
},
|
|
171
170
|
"getter": false,
|
|
172
171
|
"setter": false,
|
|
173
|
-
"reflect": true
|
|
172
|
+
"reflect": true,
|
|
173
|
+
"attribute": "text-breadcrumbs"
|
|
174
174
|
},
|
|
175
|
-
"
|
|
175
|
+
"textMoreItems": {
|
|
176
176
|
"type": "string",
|
|
177
|
-
"attribute": "menu-label",
|
|
178
177
|
"mutable": false,
|
|
179
178
|
"complexType": {
|
|
180
179
|
"original": "string",
|
|
@@ -189,7 +188,8 @@ export class PostBreadcrumbs {
|
|
|
189
188
|
},
|
|
190
189
|
"getter": false,
|
|
191
190
|
"setter": false,
|
|
192
|
-
"reflect": true
|
|
191
|
+
"reflect": true,
|
|
192
|
+
"attribute": "text-more-items"
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
}
|
|
@@ -206,14 +206,14 @@ export class PostBreadcrumbs {
|
|
|
206
206
|
"propName": "homeUrl",
|
|
207
207
|
"methodName": "validateHomeUrl"
|
|
208
208
|
}, {
|
|
209
|
-
"propName": "
|
|
210
|
-
"methodName": "
|
|
209
|
+
"propName": "textHome",
|
|
210
|
+
"methodName": "validateTextHome"
|
|
211
211
|
}, {
|
|
212
|
-
"propName": "
|
|
213
|
-
"methodName": "
|
|
212
|
+
"propName": "textBreadcrumbs",
|
|
213
|
+
"methodName": "validateTextBreadcrumbs"
|
|
214
214
|
}, {
|
|
215
|
-
"propName": "
|
|
216
|
-
"methodName": "
|
|
215
|
+
"propName": "textMoreItems",
|
|
216
|
+
"methodName": "validateTextMoreItems"
|
|
217
217
|
}];
|
|
218
218
|
}
|
|
219
219
|
}
|
|
@@ -229,14 +229,14 @@ export class PostCardControl {
|
|
|
229
229
|
this.hasIcon = Boolean(this.host.querySelector('[slot="icon"]') || this.icon);
|
|
230
230
|
}
|
|
231
231
|
render() {
|
|
232
|
-
return (h(Host, { key: '
|
|
232
|
+
return (h(Host, { key: 'fd29968b1e13437fdfab8d7737c4a05c74ab7552', "data-version": version, onClick: this.cardClickHandler }, h("div", { key: '13e185a9a15cebb1b0337e13864492e542b1b2cc', class: {
|
|
233
233
|
'card-control': true,
|
|
234
234
|
'is-checked': this.checked,
|
|
235
235
|
'is-disabled': this.disabled,
|
|
236
236
|
'is-focused': this.focused,
|
|
237
237
|
'is-valid': this.validity !== undefined && this.validity !== false,
|
|
238
238
|
'is-invalid': this.validity === false,
|
|
239
|
-
} }, h("input", { key: '
|
|
239
|
+
} }, h("input", { key: 'f6d81341736cb5742e915a3ae1dffbc3721ddeda', ref: el => (this.control = el), id: this.controlId, class: "card-control--input", type: this.type, name: this.name, value: this.value, checked: this.checked, "aria-describedby": `${this.controlId}_content`, "aria-disabled": this.disabled, "aria-invalid": this.validity === false, onClick: this.controlClickHandler, onInput: this.controlChangeHandler, onChange: this.controlChangeHandler, onFocus: this.controlFocusHandler, onBlur: this.controlFocusHandler, onKeyDown: this.controlKeyDownHandler }), h("label", { key: '95c090b9f79138a09f2d43a23f027f0bfccf6b89', id: `${this.controlId}_label`, htmlFor: this.controlId, class: "card-control--label" }, this.label, this.description ? (h("div", { class: "card-control--description" }, this.description)) : null), this.hasIcon ? (h("div", { class: "card-control--icon" }, h("slot", { name: "icon" }, this.icon ? h("post-icon", { name: this.icon }) : null))) : null, h("div", { key: 'a0098faf5e3e13c2c6c75ea4c16458a875737e16', id: `${this.controlId}_content`, class: "card-control--content" }, h("slot", { key: 'b62d747027b2839912bbd90f13028847845aa00b' })))));
|
|
240
240
|
}
|
|
241
241
|
componentDidRender() {
|
|
242
242
|
this.setHostContext();
|
|
@@ -279,7 +279,6 @@ export class PostCardControl {
|
|
|
279
279
|
return {
|
|
280
280
|
"label": {
|
|
281
281
|
"type": "string",
|
|
282
|
-
"attribute": "label",
|
|
283
282
|
"mutable": false,
|
|
284
283
|
"complexType": {
|
|
285
284
|
"original": "string",
|
|
@@ -294,11 +293,11 @@ export class PostCardControl {
|
|
|
294
293
|
},
|
|
295
294
|
"getter": false,
|
|
296
295
|
"setter": false,
|
|
297
|
-
"reflect": true
|
|
296
|
+
"reflect": true,
|
|
297
|
+
"attribute": "label"
|
|
298
298
|
},
|
|
299
299
|
"description": {
|
|
300
300
|
"type": "string",
|
|
301
|
-
"attribute": "description",
|
|
302
301
|
"mutable": false,
|
|
303
302
|
"complexType": {
|
|
304
303
|
"original": "string",
|
|
@@ -313,11 +312,11 @@ export class PostCardControl {
|
|
|
313
312
|
},
|
|
314
313
|
"getter": false,
|
|
315
314
|
"setter": false,
|
|
316
|
-
"reflect": false
|
|
315
|
+
"reflect": false,
|
|
316
|
+
"attribute": "description"
|
|
317
317
|
},
|
|
318
318
|
"type": {
|
|
319
319
|
"type": "string",
|
|
320
|
-
"attribute": "type",
|
|
321
320
|
"mutable": false,
|
|
322
321
|
"complexType": {
|
|
323
322
|
"original": "'checkbox' | 'radio'",
|
|
@@ -332,11 +331,11 @@ export class PostCardControl {
|
|
|
332
331
|
},
|
|
333
332
|
"getter": false,
|
|
334
333
|
"setter": false,
|
|
335
|
-
"reflect": true
|
|
334
|
+
"reflect": true,
|
|
335
|
+
"attribute": "type"
|
|
336
336
|
},
|
|
337
337
|
"name": {
|
|
338
338
|
"type": "string",
|
|
339
|
-
"attribute": "name",
|
|
340
339
|
"mutable": false,
|
|
341
340
|
"complexType": {
|
|
342
341
|
"original": "string",
|
|
@@ -351,11 +350,11 @@ export class PostCardControl {
|
|
|
351
350
|
},
|
|
352
351
|
"getter": false,
|
|
353
352
|
"setter": false,
|
|
354
|
-
"reflect": false
|
|
353
|
+
"reflect": false,
|
|
354
|
+
"attribute": "name"
|
|
355
355
|
},
|
|
356
356
|
"value": {
|
|
357
357
|
"type": "string",
|
|
358
|
-
"attribute": "value",
|
|
359
358
|
"mutable": false,
|
|
360
359
|
"complexType": {
|
|
361
360
|
"original": "string",
|
|
@@ -370,11 +369,11 @@ export class PostCardControl {
|
|
|
370
369
|
},
|
|
371
370
|
"getter": false,
|
|
372
371
|
"setter": false,
|
|
373
|
-
"reflect": false
|
|
372
|
+
"reflect": false,
|
|
373
|
+
"attribute": "value"
|
|
374
374
|
},
|
|
375
375
|
"checked": {
|
|
376
376
|
"type": "boolean",
|
|
377
|
-
"attribute": "checked",
|
|
378
377
|
"mutable": true,
|
|
379
378
|
"complexType": {
|
|
380
379
|
"original": "boolean",
|
|
@@ -390,11 +389,11 @@ export class PostCardControl {
|
|
|
390
389
|
"getter": false,
|
|
391
390
|
"setter": false,
|
|
392
391
|
"reflect": false,
|
|
392
|
+
"attribute": "checked",
|
|
393
393
|
"defaultValue": "false"
|
|
394
394
|
},
|
|
395
395
|
"disabled": {
|
|
396
396
|
"type": "boolean",
|
|
397
|
-
"attribute": "disabled",
|
|
398
397
|
"mutable": true,
|
|
399
398
|
"complexType": {
|
|
400
399
|
"original": "boolean",
|
|
@@ -410,11 +409,11 @@ export class PostCardControl {
|
|
|
410
409
|
"getter": false,
|
|
411
410
|
"setter": false,
|
|
412
411
|
"reflect": false,
|
|
412
|
+
"attribute": "disabled",
|
|
413
413
|
"defaultValue": "false"
|
|
414
414
|
},
|
|
415
415
|
"validity": {
|
|
416
416
|
"type": "boolean",
|
|
417
|
-
"attribute": "validity",
|
|
418
417
|
"mutable": true,
|
|
419
418
|
"complexType": {
|
|
420
419
|
"original": "boolean",
|
|
@@ -429,11 +428,11 @@ export class PostCardControl {
|
|
|
429
428
|
},
|
|
430
429
|
"getter": false,
|
|
431
430
|
"setter": false,
|
|
432
|
-
"reflect": false
|
|
431
|
+
"reflect": false,
|
|
432
|
+
"attribute": "validity"
|
|
433
433
|
},
|
|
434
434
|
"icon": {
|
|
435
435
|
"type": "string",
|
|
436
|
-
"attribute": "icon",
|
|
437
436
|
"mutable": false,
|
|
438
437
|
"complexType": {
|
|
439
438
|
"original": "string",
|
|
@@ -448,7 +447,8 @@ export class PostCardControl {
|
|
|
448
447
|
},
|
|
449
448
|
"getter": false,
|
|
450
449
|
"setter": false,
|
|
451
|
-
"reflect": false
|
|
450
|
+
"reflect": false,
|
|
451
|
+
"attribute": "icon"
|
|
452
452
|
}
|
|
453
453
|
};
|
|
454
454
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}post-closebutton .btn{padding:0;border:unset;min-height:unset;min-width:unset;width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1);border-radius:var(--post-device-border-radius-round);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);display:flex;align-items:center;justify-content:center}post-closebutton .btn>post-icon{min-width:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);height:var(--post-device-sizing-interactive-icon-size4)}post-closebutton .btn:not(:disabled):hover,post-closebutton .btn.pretend-hover{cursor:pointer;background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-closebutton .btn:not(:disabled):hover,post-closebutton .btn.pretend-hover{color:HighlightText !important}}
|
|
1
|
+
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}post-closebutton .btn{padding:0;border:unset;min-height:unset;min-width:unset;width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1);border-radius:var(--post-device-border-radius-round);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);display:flex;align-items:center;justify-content:center}post-closebutton .btn>post-icon{min-width:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);height:var(--post-device-sizing-interactive-icon-size4)}post-closebutton .btn{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}post-closebutton .btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-closebutton .btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-closebutton .btn:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-closebutton .btn:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-closebutton .btn:not(:disabled):hover,post-closebutton .btn.pretend-hover{cursor:pointer;background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-closebutton .btn:not(:disabled):hover,post-closebutton .btn.pretend-hover{color:HighlightText !important}}
|
|
@@ -38,7 +38,7 @@ export class PostClosebutton {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '6965a8cb5fb765b4fcec0439ceeafe19d34970c2', "data-version": version }, h("button", { key: '7e718f70b0a4ac79e9439784dac46bd1ffd60fd1', class: "btn", type: this.buttonType }, h("post-icon", { key: '70acda3fbe6c9420f0be708fde6b29a7d5337d13', "aria-hidden": "true", name: "closex" }), h("span", { key: '899b3814c0898b521e4166e1cd951af628558e78', class: "visually-hidden" }, h("slot", { key: 'b13d0e95fd567c86e93e5185389909c7c0e7107d' })))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "post-closebutton"; }
|
|
44
44
|
static get originalStyleUrls() {
|
|
@@ -55,7 +55,6 @@ export class PostClosebutton {
|
|
|
55
55
|
return {
|
|
56
56
|
"buttonType": {
|
|
57
57
|
"type": "string",
|
|
58
|
-
"attribute": "button-type",
|
|
59
58
|
"mutable": false,
|
|
60
59
|
"complexType": {
|
|
61
60
|
"original": "ButtonType",
|
|
@@ -64,7 +63,8 @@ export class PostClosebutton {
|
|
|
64
63
|
"ButtonType": {
|
|
65
64
|
"location": "import",
|
|
66
65
|
"path": "./button-types",
|
|
67
|
-
"id": "src/components/post-closebutton/button-types.ts::ButtonType"
|
|
66
|
+
"id": "src/components/post-closebutton/button-types.ts::ButtonType",
|
|
67
|
+
"referenceLocation": "ButtonType"
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
},
|
|
@@ -77,6 +77,7 @@ export class PostClosebutton {
|
|
|
77
77
|
"getter": false,
|
|
78
78
|
"setter": false,
|
|
79
79
|
"reflect": false,
|
|
80
|
+
"attribute": "button-type",
|
|
80
81
|
"defaultValue": "'button'"
|
|
81
82
|
}
|
|
82
83
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
2
|
import { version } from "../../../../package";
|
|
3
|
-
import { collapse, expand } from "../../animations/collapse";
|
|
4
|
-
import {
|
|
3
|
+
import { collapsedKeyframe, collapse, expand } from "../../animations/collapse";
|
|
4
|
+
import { IS_BROWSER, checkEmptyOrType } from "../../utils/index";
|
|
5
5
|
/**
|
|
6
6
|
* @slot default - Slot for placing content within the collapsible element.
|
|
7
7
|
*/
|
|
8
8
|
export class PostCollapsible {
|
|
9
9
|
constructor() {
|
|
10
|
-
this.isLoaded = false;
|
|
11
|
-
this.isOpen = true;
|
|
12
10
|
/**
|
|
13
11
|
* If `true`, the element is collapsed otherwise it is displayed.
|
|
14
12
|
*/
|
|
@@ -16,34 +14,36 @@ export class PostCollapsible {
|
|
|
16
14
|
}
|
|
17
15
|
collapsedChange() {
|
|
18
16
|
checkEmptyOrType(this, 'collapsed', 'boolean');
|
|
19
|
-
|
|
17
|
+
}
|
|
18
|
+
get isExpanded() {
|
|
19
|
+
return !this.collapsed;
|
|
20
20
|
}
|
|
21
21
|
componentDidLoad() {
|
|
22
22
|
this.collapsedChange();
|
|
23
|
-
this.isLoaded = true;
|
|
24
23
|
this.updateTriggers();
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
26
|
* Triggers the collapse programmatically.
|
|
28
|
-
*
|
|
29
27
|
* If there is a collapsing transition running already, it will be reversed.
|
|
28
|
+
* If no parameter is provided, the current state (this.isExpanded) will be toggled.
|
|
30
29
|
*/
|
|
31
|
-
async toggle(
|
|
32
|
-
if (
|
|
33
|
-
|
|
34
|
-
this.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
if (isHostRendered)
|
|
30
|
+
async toggle(shouldExpand = !this.isExpanded) {
|
|
31
|
+
// if the parameter (shouldExpand) is set during the call (e.g. `document.querySelector('post-collapsible').toggle(true)`)
|
|
32
|
+
// and it matches the current state, the current state is returned and the function exits early
|
|
33
|
+
if (shouldExpand === this.isExpanded)
|
|
34
|
+
return this.isExpanded;
|
|
35
|
+
// applying the new state to this.collapsed will also indirectly update this.isExpanded,
|
|
36
|
+
// due to its implementation with the getter, which returns !this.collapsed
|
|
37
|
+
this.collapsed = !shouldExpand;
|
|
38
|
+
const isExpanded = this.isExpanded;
|
|
39
|
+
if (IS_BROWSER) {
|
|
40
|
+
const animation = isExpanded ? expand(this.host) : collapse(this.host);
|
|
41
|
+
await animation.finished;
|
|
44
42
|
animation.commitStyles();
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
this.updateTriggers();
|
|
44
|
+
this.postToggle.emit(isExpanded);
|
|
45
|
+
}
|
|
46
|
+
return isExpanded;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
* Update all post-collapsible-trigger elements referring to the collapsible
|
|
@@ -53,7 +53,7 @@ export class PostCollapsible {
|
|
|
53
53
|
triggers.forEach(trigger => trigger.update());
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '06400647373d6c66398e6f81561ab2c60b748af1', "data-version": version, tabindex: this.collapsed ? -1 : undefined, style: this.collapsed ? collapsedKeyframe : undefined }, h("slot", { key: '63653d2d89b80b03c7f139b1370eaf18fe839409' })));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "post-collapsible"; }
|
|
59
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,7 +71,6 @@ export class PostCollapsible {
|
|
|
71
71
|
return {
|
|
72
72
|
"collapsed": {
|
|
73
73
|
"type": "boolean",
|
|
74
|
-
"attribute": "collapsed",
|
|
75
74
|
"mutable": true,
|
|
76
75
|
"complexType": {
|
|
77
76
|
"original": "boolean",
|
|
@@ -87,6 +86,7 @@ export class PostCollapsible {
|
|
|
87
86
|
"getter": false,
|
|
88
87
|
"setter": false,
|
|
89
88
|
"reflect": false,
|
|
89
|
+
"attribute": "collapsed",
|
|
90
90
|
"defaultValue": "false"
|
|
91
91
|
}
|
|
92
92
|
};
|
|
@@ -100,7 +100,7 @@ export class PostCollapsible {
|
|
|
100
100
|
"composed": true,
|
|
101
101
|
"docs": {
|
|
102
102
|
"tags": [],
|
|
103
|
-
"text": "An event emitted when the collapse element is shown or hidden, before the transition.\n\nThe event payload is a boolean: `true` if the collapsible
|
|
103
|
+
"text": "An event emitted when the collapse element is shown or hidden, before the transition.\n\nThe event payload is a boolean: `true` if the collapsible is expanded, `false` if it is collapsed."
|
|
104
104
|
},
|
|
105
105
|
"complexType": {
|
|
106
106
|
"original": "boolean",
|
|
@@ -113,9 +113,9 @@ export class PostCollapsible {
|
|
|
113
113
|
return {
|
|
114
114
|
"toggle": {
|
|
115
115
|
"complexType": {
|
|
116
|
-
"signature": "(
|
|
116
|
+
"signature": "(shouldExpand?: boolean) => Promise<boolean>",
|
|
117
117
|
"parameters": [{
|
|
118
|
-
"name": "
|
|
118
|
+
"name": "shouldExpand",
|
|
119
119
|
"type": "boolean",
|
|
120
120
|
"docs": ""
|
|
121
121
|
}],
|
|
@@ -128,7 +128,7 @@ export class PostCollapsible {
|
|
|
128
128
|
"return": "Promise<boolean>"
|
|
129
129
|
},
|
|
130
130
|
"docs": {
|
|
131
|
-
"text": "Triggers the collapse programmatically.\
|
|
131
|
+
"text": "Triggers the collapse programmatically.\nIf there is a collapsing transition running already, it will be reversed.\nIf no parameter is provided, the current state (this.isExpanded) will be toggled.",
|
|
132
132
|
"tags": []
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -97,7 +97,7 @@ export class PostCollapsibleTrigger {
|
|
|
97
97
|
this.updateAriaAttributes();
|
|
98
98
|
}
|
|
99
99
|
render() {
|
|
100
|
-
return (h(Host, { key: '
|
|
100
|
+
return (h(Host, { key: 'f5055d5970eb900d345957f306c9a373680f257a', "data-version": version }, h("slot", { key: 'cf63bdbca00602b9c4e2a81f28723bd274561045' })));
|
|
101
101
|
}
|
|
102
102
|
static get is() { return "post-collapsible-trigger"; }
|
|
103
103
|
static get encapsulation() { return "shadow"; }
|
|
@@ -105,7 +105,6 @@ export class PostCollapsibleTrigger {
|
|
|
105
105
|
return {
|
|
106
106
|
"for": {
|
|
107
107
|
"type": "string",
|
|
108
|
-
"attribute": "for",
|
|
109
108
|
"mutable": false,
|
|
110
109
|
"complexType": {
|
|
111
110
|
"original": "string",
|
|
@@ -120,7 +119,8 @@ export class PostCollapsibleTrigger {
|
|
|
120
119
|
},
|
|
121
120
|
"getter": false,
|
|
122
121
|
"setter": false,
|
|
123
|
-
"reflect": true
|
|
122
|
+
"reflect": true,
|
|
123
|
+
"attribute": "for"
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:host{display:block}footer{background-color:#fc0;--post-footer-container-padding-block: 32px;--post-footer-container-padding-inline: 16px;--post-footer-container-max-width: 1200px;--post-footer-grid-template: auto / auto;--post-footer-grid-row-gap: 0;--post-footer-grid-column-gap: 0;--post-footer-grid-margin-block-end: 24px;--post-footer-grid-padding-block-end: 0;--post-footer-column-flex-direction: column;--post-footer-column-align-items: start;--post-footer-column-gap: 0;--post-footer-
|
|
1
|
+
:host{display:block}footer{background-color:#fc0;--post-footer-container-padding-block: 32px;--post-footer-container-padding-inline: 16px;--post-footer-container-max-width: 1200px;--post-footer-grid-template: auto / auto;--post-footer-grid-row-gap: 0;--post-footer-grid-column-gap: 0;--post-footer-grid-margin-block-end: 24px;--post-footer-grid-padding-block-end: 0;--post-footer-column-flex-direction: column;--post-footer-column-align-items: start;--post-footer-column-gap: 0;--post-footer-list-flex-direction: column;--post-footer-list-gap: 8px;--post-footer-list-align-items: start;--post-footer-socialmedia-margin-block-end: var(--post-footer-grid-margin-block-end);--post-footer-app-margin-block-end: var(--post-footer-grid-margin-block-end);--post-footer-businesssectors-margin-block-end: var(--post-footer-grid-margin-block-end);--post-footer-meta-margin-block-end: 16px;--post-footer-meta-font-size: inherit;--post-footer-copyright-font-size: var(--post-footer-meta-font-size)}@media screen and (min-width: 600px){footer{--post-footer-container-padding-block: 40px;--post-footer-grid-template: repeat(2, auto) / repeat(2, auto);--post-footer-grid-row-gap: 32px;--post-footer-grid-column-gap: 16px;--post-footer-grid-margin-block-end: 32px;--post-footer-grid-padding-block-end: 32px;--post-footer-list-flex-direction: row;--post-footer-list-gap: 16px;--post-footer-list-align-items: center;--post-footer-meta-margin-block-end: 8px}}@media screen and (min-width: 780px){footer{--post-footer-container-padding-inline: 40px}}@media screen and (min-width: 1024px){footer{--post-footer-container-padding-block: 56px;--post-footer-grid-template: auto / repeat(4, auto);--post-footer-grid-row-gap: 0;--post-footer-grid-column-gap: 24px;--post-footer-grid-margin-block-end: 40px;--post-footer-column-flex-direction: row;--post-footer-column-align-items: center;--post-footer-column-gap: 32px;--post-footer-list-gap: 24px;--post-footer-businesssectors-margin-block-end: 24px;--post-footer-meta-font-size: 16px}}:is(h3,.h3){margin:0;font-size:var(--post-device-font-size-6);line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-extra-black);text-wrap:balance}::slotted(ul){list-style:none;padding:0;margin:0}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.footer-container{box-sizing:content-box;margin:0 auto;padding:var(--post-footer-container-padding-block) var(--post-footer-container-padding-inline);max-width:var(--post-footer-container-max-width)}.footer-grid{display:grid;grid-template:var(--post-footer-grid-template);row-gap:var(--post-footer-grid-row-gap);column-gap:var(--post-footer-grid-column-gap);margin-block-end:var(--post-footer-grid-margin-block-end);padding-block-end:var(--post-footer-grid-padding-block-end)}.footer-grid ::part(button),.footer-grid ::part(body){padding-inline:0}.footer-column{display:flex;flex-direction:var(--post-footer-column-flex-direction);flex-wrap:wrap;justify-content:space-between;align-items:var(--post-footer-column-align-items);column-gap:var(--post-footer-column-gap)}.footer-socialmedia ::slotted(div),.footer-app ::slotted(div),.footer-businesssectors ::slotted(div),.footer-meta ::slotted(div){display:flex !important;flex-direction:var(--post-footer-list-flex-direction) !important;gap:var(--post-footer-list-gap) !important;align-items:var(--post-footer-list-align-items) !important}.footer-socialmedia{margin-block-end:var(--post-footer-socialmedia-margin-block-end)}.footer-app{margin-block-end:var(--post-footer-app-margin-block-end)}.footer-businesssectors{margin-block-end:var(--post-footer-businesssectors-margin-block-end)}.footer-meta{margin-block-end:var(--post-footer-meta-margin-block-end);font-size:var(--post-footer-meta-font-size)}.footer-copyright{display:flex;flex-wrap:wrap;column-gap:.5rem;font-size:var(--post-footer-copyright-font-size)}.d-none{display:none}
|