@swisspost/design-system-components 2.0.0 → 2.0.2
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/LICENSE +183 -185
- package/dist/cjs/check-non-empty-eeaa8f77.js +0 -2
- package/dist/cjs/constants-238701d3.js +0 -2
- package/dist/cjs/fade-35a3633a.js +0 -2
- package/dist/cjs/index-8c288b1a.js +0 -2
- package/dist/cjs/{index-13695f3f.js → index-f243643b.js} +30 -4
- package/dist/cjs/index.cjs.js +15 -15
- package/dist/cjs/loader.cjs.js +1 -3
- package/dist/cjs/package-e8091039.js +5 -0
- package/dist/cjs/{post-accordion-9877919c.js → post-accordion-eebf7827.js} +5 -6
- package/dist/cjs/post-accordion-item-b2977ca5.js +51 -0
- package/dist/cjs/post-accordion-item.cjs.entry.js +5 -47
- package/dist/cjs/post-accordion.cjs.entry.js +3 -5
- package/dist/cjs/post-alert-af7728e6.js +98 -0
- package/dist/cjs/post-alert.cjs.entry.js +3 -5
- package/dist/cjs/{post-collapsible-ef0561b4.js → post-collapsible-15f79667.js} +5 -6
- package/dist/cjs/post-collapsible.cjs.entry.js +3 -5
- package/dist/cjs/post-components.cjs.js +2 -4
- package/dist/cjs/{post-icon-e9dcd643.js → post-icon-b80d7e24.js} +6 -7
- package/dist/cjs/post-icon.cjs.entry.js +3 -5
- package/dist/cjs/{post-popover-e114ebe7.js → post-popover-392b0554.js} +6 -7
- package/dist/cjs/post-popover.cjs.entry.js +3 -5
- package/dist/cjs/{post-popovercontainer-20fb22ee.js → post-popovercontainer-130193cf.js} +120 -30
- package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -5
- package/dist/cjs/post-tab-header-454cc178.js +32 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -5
- package/dist/cjs/{post-tab-panel-95cf7092.js → post-tab-panel-fc0bfcbe.js} +5 -6
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -5
- package/dist/cjs/{post-tabs-dbe7c341.js → post-tabs-3f909e1c.js} +5 -6
- package/dist/cjs/post-tabs.cjs.entry.js +3 -5
- package/dist/cjs/{post-tooltip-659af1e3.js → post-tooltip-e5b22230.js} +1863 -393
- package/dist/cjs/post-tooltip.cjs.entry.js +3 -5
- package/dist/collection/animations/collapse.js +0 -1
- package/dist/collection/animations/fade.js +0 -1
- package/dist/collection/animations/index.js +0 -1
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/post-accordion/post-accordion.js +4 -2
- package/dist/collection/components/post-accordion-item/heading-levels.js +0 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +5 -2
- package/dist/collection/components/post-alert/alert-types.js +0 -1
- package/dist/collection/components/post-alert/post-alert.css +2 -2
- package/dist/collection/components/post-alert/post-alert.js +10 -8
- package/dist/collection/components/post-collapsible/post-collapsible.js +4 -2
- 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-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +5 -3
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +8 -4
- package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +4 -2
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +4 -2
- package/dist/collection/components/post-tabs/post-tabs.js +5 -2
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +142 -45
- package/dist/collection/components/post-tooltip/types.js +0 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/index.spec.js +27 -0
- package/dist/collection/utils/index.js +0 -1
- package/dist/collection/utils/is-motion-reduced.js +0 -1
- package/dist/collection/utils/property-checkers/check-non-empty.js +0 -1
- package/dist/collection/utils/property-checkers/check-one-of.js +0 -1
- package/dist/collection/utils/property-checkers/check-pattern.js +0 -1
- package/dist/collection/utils/property-checkers/check-type.js +0 -1
- package/dist/collection/utils/property-checkers/constants.js +0 -1
- package/dist/collection/utils/property-checkers/empty-or.js +0 -1
- package/dist/collection/utils/property-checkers/index.js +0 -1
- package/dist/components/check-non-empty.js +0 -2
- package/dist/components/constants.js +0 -2
- package/dist/components/fade.js +0 -2
- package/dist/components/index.js +1 -2
- package/dist/components/index2.js +1 -3
- package/dist/components/package.js +1 -3
- package/dist/components/post-accordion-item.js +1 -77
- package/dist/components/post-accordion-item2.js +78 -0
- package/dist/components/post-accordion.js +0 -2
- package/dist/components/post-accordion2.js +3 -4
- package/dist/components/post-alert.js +0 -2
- package/dist/components/post-alert2.js +8 -11
- package/dist/components/post-collapsible.js +0 -2
- package/dist/components/post-collapsible2.js +3 -4
- package/dist/components/post-icon.js +0 -2
- package/dist/components/post-icon2.js +5 -6
- package/dist/components/post-popover.js +0 -2
- package/dist/components/post-popover2.js +4 -5
- package/dist/components/post-popovercontainer.js +0 -2
- package/dist/components/post-popovercontainer2.js +118 -28
- package/dist/components/post-tab-header.js +0 -2
- package/dist/components/post-tab-header2.js +4 -5
- package/dist/components/post-tab-panel.js +0 -2
- package/dist/components/post-tab-panel2.js +3 -4
- package/dist/components/post-tabs.js +0 -2
- package/dist/components/post-tabs2.js +3 -4
- package/dist/components/post-tooltip.js +0 -2
- package/dist/components/post-tooltip2.js +1864 -394
- package/dist/docs.json +152 -30
- package/dist/esm/check-non-empty-58bd6b17.js +0 -2
- package/dist/esm/constants-8d548297.js +0 -2
- package/dist/esm/fade-7fd71785.js +0 -2
- package/dist/esm/{index-74cf5c9d.js → index-1708db56.js} +30 -4
- package/dist/esm/{index-1427953c.js → index-b444db27.js} +1 -3
- package/dist/esm/index.js +15 -16
- package/dist/esm/loader.js +2 -4
- package/dist/esm/package-aa903c40.js +3 -0
- package/dist/esm/{post-accordion-3b137073.js → post-accordion-82b49f7b.js} +5 -6
- package/dist/esm/post-accordion-item-3deff76a.js +49 -0
- package/dist/esm/post-accordion-item.entry.js +4 -50
- package/dist/esm/post-accordion.entry.js +3 -5
- package/dist/esm/post-alert-c88451ba.js +96 -0
- package/dist/esm/post-alert.entry.js +4 -6
- package/dist/esm/{post-collapsible-a418570f.js → post-collapsible-87ce4e6e.js} +6 -7
- package/dist/esm/post-collapsible.entry.js +4 -6
- package/dist/esm/post-components.js +3 -5
- package/dist/esm/{post-icon-302d1767.js → post-icon-e0536000.js} +7 -8
- package/dist/esm/post-icon.entry.js +4 -6
- package/dist/esm/{post-popover-5725afc7.js → post-popover-00b006b4.js} +6 -7
- package/dist/esm/post-popover.entry.js +3 -5
- package/dist/esm/{post-popovercontainer-1c050e83.js → post-popovercontainer-6d1d7f76.js} +120 -30
- package/dist/esm/post-popovercontainer.entry.js +3 -5
- package/dist/esm/post-tab-header-0f7866f9.js +30 -0
- package/dist/esm/post-tab-header.entry.js +3 -5
- package/dist/esm/{post-tab-panel-16796ee3.js → post-tab-panel-b41d5d0f.js} +5 -6
- package/dist/esm/post-tab-panel.entry.js +3 -5
- package/dist/esm/{post-tabs-16f99043.js → post-tabs-97868e9c.js} +5 -6
- package/dist/esm/post-tabs.entry.js +3 -5
- package/dist/esm/{post-tooltip-03a6d578.js → post-tooltip-531b569d.js} +1863 -393
- package/dist/esm/post-tooltip.entry.js +3 -5
- package/dist/post-components/index.esm.js +1 -2
- package/dist/post-components/p-0ef425cd.entry.js +1 -0
- package/dist/post-components/p-10b4cf7a.js +2 -0
- package/dist/post-components/p-202a23d3.js +1 -0
- package/dist/post-components/p-23d55894.entry.js +1 -0
- package/dist/post-components/p-25766de1.js +1 -0
- package/dist/post-components/p-2737eaf5.js +1 -2
- package/dist/post-components/p-284ca5da.js +1 -0
- package/dist/post-components/p-2b5a940c.entry.js +1 -0
- package/dist/post-components/p-31c06741.entry.js +1 -0
- package/dist/post-components/p-320a90d8.entry.js +1 -0
- package/dist/post-components/p-3b8a1f9d.entry.js +1 -0
- package/dist/post-components/p-440193f4.js +1 -2
- package/dist/post-components/p-61ad6181.entry.js +1 -0
- package/dist/post-components/p-71a57911.js +1 -0
- package/dist/post-components/p-b095519d.js +1 -2
- package/dist/post-components/p-b111a381.js +1 -0
- package/dist/post-components/p-ba40e160.js +1 -0
- package/dist/post-components/p-be08f39f.entry.js +1 -0
- package/dist/post-components/p-bf1293e1.js +1 -0
- package/dist/post-components/p-c3dd84af.js +1 -0
- package/dist/post-components/p-c9ecada7.entry.js +1 -0
- package/dist/post-components/p-cdd7ad0a.js +15 -0
- package/dist/post-components/p-d7863a77.js +1 -0
- package/dist/post-components/p-d8ac8ae9.js +1 -0
- package/dist/post-components/p-dc9ffe1d.js +1 -0
- package/dist/post-components/p-f0e82e63.js +1 -0
- package/dist/post-components/p-fbf645c4.entry.js +1 -0
- package/dist/post-components/p-ff9016ce.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -2
- package/dist/types/components/post-accordion/post-accordion.d.ts +3 -0
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +4 -0
- package/dist/types/components/post-alert/post-alert.d.ts +5 -0
- package/dist/types/components/post-collapsible/post-collapsible.d.ts +3 -0
- package/dist/types/components/post-popover/post-popover.d.ts +3 -0
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +3 -0
- package/dist/types/components/post-tab-header/post-tab-header.d.ts +3 -0
- package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +3 -0
- package/dist/types/components/post-tabs/post-tabs.d.ts +4 -0
- package/dist/types/components/post-tooltip/post-tooltip.d.ts +14 -6
- package/dist/types/index.d.ts +1 -0
- package/package.json +13 -14
- package/dist/cjs/check-non-empty-eeaa8f77.js.map +0 -1
- package/dist/cjs/constants-238701d3.js.map +0 -1
- package/dist/cjs/fade-35a3633a.js.map +0 -1
- package/dist/cjs/index-13695f3f.js.map +0 -1
- package/dist/cjs/index-8c288b1a.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/package-8152e25e.js +0 -7
- package/dist/cjs/package-8152e25e.js.map +0 -1
- package/dist/cjs/post-accordion-9877919c.js.map +0 -1
- package/dist/cjs/post-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/post-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/post-alert-d87e6132.js +0 -101
- package/dist/cjs/post-alert-d87e6132.js.map +0 -1
- package/dist/cjs/post-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/post-collapsible-ef0561b4.js.map +0 -1
- package/dist/cjs/post-collapsible.cjs.entry.js.map +0 -1
- package/dist/cjs/post-components.cjs.js.map +0 -1
- package/dist/cjs/post-icon-e9dcd643.js.map +0 -1
- package/dist/cjs/post-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/post-popover-e114ebe7.js.map +0 -1
- package/dist/cjs/post-popover.cjs.entry.js.map +0 -1
- package/dist/cjs/post-popovercontainer-20fb22ee.js.map +0 -1
- package/dist/cjs/post-popovercontainer.cjs.entry.js.map +0 -1
- package/dist/cjs/post-tab-header-34c1cc21.js +0 -33
- package/dist/cjs/post-tab-header-34c1cc21.js.map +0 -1
- package/dist/cjs/post-tab-header.cjs.entry.js.map +0 -1
- package/dist/cjs/post-tab-panel-95cf7092.js.map +0 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js.map +0 -1
- package/dist/cjs/post-tabs-dbe7c341.js.map +0 -1
- package/dist/cjs/post-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/post-tooltip-659af1e3.js.map +0 -1
- package/dist/cjs/post-tooltip.cjs.entry.js.map +0 -1
- package/dist/collection/animations/collapse.js.map +0 -1
- package/dist/collection/animations/fade.js.map +0 -1
- package/dist/collection/animations/index.js.map +0 -1
- package/dist/collection/components/post-accordion/post-accordion.js.map +0 -1
- package/dist/collection/components/post-accordion-item/heading-levels.js.map +0 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js.map +0 -1
- package/dist/collection/components/post-alert/alert-types.js.map +0 -1
- package/dist/collection/components/post-alert/post-alert.js.map +0 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js.map +0 -1
- package/dist/collection/components/post-icon/post-icon.js.map +0 -1
- package/dist/collection/components/post-popover/post-popover.js.map +0 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js.map +0 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js.map +0 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js.map +0 -1
- package/dist/collection/components/post-tabs/post-tabs.js.map +0 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js.map +0 -1
- package/dist/collection/components/post-tooltip/types.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/index.js.map +0 -1
- package/dist/collection/utils/is-motion-reduced.js.map +0 -1
- package/dist/collection/utils/property-checkers/check-non-empty.js.map +0 -1
- package/dist/collection/utils/property-checkers/check-one-of.js.map +0 -1
- package/dist/collection/utils/property-checkers/check-pattern.js.map +0 -1
- package/dist/collection/utils/property-checkers/check-type.js.map +0 -1
- package/dist/collection/utils/property-checkers/constants.js.map +0 -1
- package/dist/collection/utils/property-checkers/empty-or.js.map +0 -1
- package/dist/collection/utils/property-checkers/index.js.map +0 -1
- package/dist/components/check-non-empty.js.map +0 -1
- package/dist/components/constants.js.map +0 -1
- package/dist/components/fade.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/index2.js.map +0 -1
- package/dist/components/package.js.map +0 -1
- package/dist/components/post-accordion-item.js.map +0 -1
- package/dist/components/post-accordion.js.map +0 -1
- package/dist/components/post-accordion2.js.map +0 -1
- package/dist/components/post-alert.js.map +0 -1
- package/dist/components/post-alert2.js.map +0 -1
- package/dist/components/post-collapsible.js.map +0 -1
- package/dist/components/post-collapsible2.js.map +0 -1
- package/dist/components/post-icon.js.map +0 -1
- package/dist/components/post-icon2.js.map +0 -1
- package/dist/components/post-popover.js.map +0 -1
- package/dist/components/post-popover2.js.map +0 -1
- package/dist/components/post-popovercontainer.js.map +0 -1
- package/dist/components/post-popovercontainer2.js.map +0 -1
- package/dist/components/post-tab-header.js.map +0 -1
- package/dist/components/post-tab-header2.js.map +0 -1
- package/dist/components/post-tab-panel.js.map +0 -1
- package/dist/components/post-tab-panel2.js.map +0 -1
- package/dist/components/post-tabs.js.map +0 -1
- package/dist/components/post-tabs2.js.map +0 -1
- package/dist/components/post-tooltip.js.map +0 -1
- package/dist/components/post-tooltip2.js.map +0 -1
- package/dist/esm/check-non-empty-58bd6b17.js.map +0 -1
- package/dist/esm/constants-8d548297.js.map +0 -1
- package/dist/esm/fade-7fd71785.js.map +0 -1
- package/dist/esm/index-1427953c.js.map +0 -1
- package/dist/esm/index-74cf5c9d.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/package-af0ef704.js +0 -5
- package/dist/esm/package-af0ef704.js.map +0 -1
- package/dist/esm/post-accordion-3b137073.js.map +0 -1
- package/dist/esm/post-accordion-item.entry.js.map +0 -1
- package/dist/esm/post-accordion.entry.js.map +0 -1
- package/dist/esm/post-alert-0dcc6ac7.js +0 -99
- package/dist/esm/post-alert-0dcc6ac7.js.map +0 -1
- package/dist/esm/post-alert.entry.js.map +0 -1
- package/dist/esm/post-collapsible-a418570f.js.map +0 -1
- package/dist/esm/post-collapsible.entry.js.map +0 -1
- package/dist/esm/post-components.js.map +0 -1
- package/dist/esm/post-icon-302d1767.js.map +0 -1
- package/dist/esm/post-icon.entry.js.map +0 -1
- package/dist/esm/post-popover-5725afc7.js.map +0 -1
- package/dist/esm/post-popover.entry.js.map +0 -1
- package/dist/esm/post-popovercontainer-1c050e83.js.map +0 -1
- package/dist/esm/post-popovercontainer.entry.js.map +0 -1
- package/dist/esm/post-tab-header-ede9f078.js +0 -31
- package/dist/esm/post-tab-header-ede9f078.js.map +0 -1
- package/dist/esm/post-tab-header.entry.js.map +0 -1
- package/dist/esm/post-tab-panel-16796ee3.js.map +0 -1
- package/dist/esm/post-tab-panel.entry.js.map +0 -1
- package/dist/esm/post-tabs-16f99043.js.map +0 -1
- package/dist/esm/post-tabs.entry.js.map +0 -1
- package/dist/esm/post-tooltip-03a6d578.js.map +0 -1
- package/dist/esm/post-tooltip.entry.js.map +0 -1
- package/dist/post-components/index.esm.js.map +0 -1
- package/dist/post-components/p-06566f88.js +0 -2
- package/dist/post-components/p-06566f88.js.map +0 -1
- package/dist/post-components/p-12a0f4b9.js +0 -2
- package/dist/post-components/p-12a0f4b9.js.map +0 -1
- package/dist/post-components/p-26dad3c3.js +0 -2
- package/dist/post-components/p-26dad3c3.js.map +0 -1
- package/dist/post-components/p-2737eaf5.js.map +0 -1
- package/dist/post-components/p-299a3e41.entry.js +0 -2
- package/dist/post-components/p-299a3e41.entry.js.map +0 -1
- package/dist/post-components/p-3241987a.entry.js +0 -2
- package/dist/post-components/p-3241987a.entry.js.map +0 -1
- package/dist/post-components/p-3fd14a00.js +0 -2
- package/dist/post-components/p-3fd14a00.js.map +0 -1
- package/dist/post-components/p-440193f4.js.map +0 -1
- package/dist/post-components/p-4b950d70.js +0 -2
- package/dist/post-components/p-4b950d70.js.map +0 -1
- package/dist/post-components/p-503ac49b.entry.js +0 -2
- package/dist/post-components/p-503ac49b.entry.js.map +0 -1
- package/dist/post-components/p-6391f970.js +0 -2
- package/dist/post-components/p-6391f970.js.map +0 -1
- package/dist/post-components/p-6d0226cd.entry.js +0 -2
- package/dist/post-components/p-6d0226cd.entry.js.map +0 -1
- package/dist/post-components/p-775859cc.entry.js +0 -2
- package/dist/post-components/p-775859cc.entry.js.map +0 -1
- package/dist/post-components/p-78589fac.entry.js +0 -2
- package/dist/post-components/p-78589fac.entry.js.map +0 -1
- package/dist/post-components/p-803284de.js +0 -9
- package/dist/post-components/p-803284de.js.map +0 -1
- package/dist/post-components/p-83cedb31.entry.js +0 -2
- package/dist/post-components/p-83cedb31.entry.js.map +0 -1
- package/dist/post-components/p-88481640.entry.js +0 -2
- package/dist/post-components/p-88481640.entry.js.map +0 -1
- package/dist/post-components/p-8f37921c.entry.js +0 -2
- package/dist/post-components/p-8f37921c.entry.js.map +0 -1
- package/dist/post-components/p-91236c61.js +0 -2
- package/dist/post-components/p-91236c61.js.map +0 -1
- package/dist/post-components/p-91f2291a.js +0 -2
- package/dist/post-components/p-91f2291a.js.map +0 -1
- package/dist/post-components/p-93ab273b.js +0 -2
- package/dist/post-components/p-93ab273b.js.map +0 -1
- package/dist/post-components/p-96f4ebc4.js +0 -2
- package/dist/post-components/p-96f4ebc4.js.map +0 -1
- package/dist/post-components/p-b095519d.js.map +0 -1
- package/dist/post-components/p-b4f01350.js +0 -3
- package/dist/post-components/p-b4f01350.js.map +0 -1
- package/dist/post-components/p-d96fbe33.entry.js +0 -2
- package/dist/post-components/p-d96fbe33.entry.js.map +0 -1
- package/dist/post-components/p-de4704fc.js +0 -2
- package/dist/post-components/p-de4704fc.js.map +0 -1
- package/dist/post-components/p-fe7650bc.entry.js +0 -2
- package/dist/post-components/p-fe7650bc.entry.js.map +0 -1
- package/dist/post-components/post-components.esm.js.map +0 -1
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postTooltip = require('./post-tooltip-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./package-
|
|
5
|
+
const postTooltip = require('./post-tooltip-e5b22230.js');
|
|
6
|
+
require('./index-f243643b.js');
|
|
7
|
+
require('./package-e8091039.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
exports.post_tooltip = postTooltip.PostTooltip;
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=post-tooltip.cjs.entry.js.map
|
|
@@ -3,4 +3,3 @@ const fadedOutKeyframe = { opacity: '0' };
|
|
|
3
3
|
const fadedInKeyframe = { opacity: '1' };
|
|
4
4
|
export const fadeIn = (el) => el.animate([fadedOutKeyframe, fadedInKeyframe], { duration: fadeDuration });
|
|
5
5
|
export const fadeOut = (el) => el.animate([fadedInKeyframe, fadedOutKeyframe], { duration: fadeDuration });
|
|
6
|
-
//# sourceMappingURL=fade.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
3
|
"components/post-accordion/post-accordion.js",
|
|
4
|
+
"components/post-accordion-item/post-accordion-item.js",
|
|
4
5
|
"components/post-alert/post-alert.js",
|
|
5
6
|
"components/post-collapsible/post-collapsible.js",
|
|
6
7
|
"components/post-icon/post-icon.js",
|
|
@@ -9,12 +10,11 @@
|
|
|
9
10
|
"components/post-tabs/post-tabs.js",
|
|
10
11
|
"components/post-tab-header/post-tab-header.js",
|
|
11
12
|
"components/post-tab-panel/post-tab-panel.js",
|
|
12
|
-
"components/post-tooltip/post-tooltip.js"
|
|
13
|
-
"components/post-accordion-item/post-accordion-item.js"
|
|
13
|
+
"components/post-tooltip/post-tooltip.js"
|
|
14
14
|
],
|
|
15
15
|
"compiler": {
|
|
16
16
|
"name": "@stencil/core",
|
|
17
|
-
"version": "4.
|
|
17
|
+
"version": "4.12.0",
|
|
18
18
|
"typescriptVersion": "5.3.3"
|
|
19
19
|
},
|
|
20
20
|
"collections": [],
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { version } from "../../../package.json";
|
|
3
|
+
/**
|
|
4
|
+
* @slot default - Slot for placing post-accordion-item components.
|
|
5
|
+
*/
|
|
3
6
|
export class PostAccordion {
|
|
4
7
|
constructor() {
|
|
5
8
|
this.expandedItems = new Set();
|
|
@@ -71,7 +74,7 @@ export class PostAccordion {
|
|
|
71
74
|
});
|
|
72
75
|
}
|
|
73
76
|
render() {
|
|
74
|
-
return (h(Host, { "data-version": version }, h("div", { class: "accordion" }, h("slot", { onSlotchange: () => this.registerAccordionItems() }))));
|
|
77
|
+
return (h(Host, { key: '08d0661a81fef59f3b74cbceceff49920cbfda0c', "data-version": version }, h("div", { key: '2625963e5f2952fd5bd5b4f05a14142a501b272c', class: "accordion" }, h("slot", { key: 'f2514ed051562c17fe852bd2bf39c10282915bfb', onSlotchange: () => this.registerAccordionItems() }))));
|
|
75
78
|
}
|
|
76
79
|
static get is() { return "post-accordion"; }
|
|
77
80
|
static get encapsulation() { return "shadow"; }
|
|
@@ -177,4 +180,3 @@ export class PostAccordion {
|
|
|
177
180
|
}];
|
|
178
181
|
}
|
|
179
182
|
}
|
|
180
|
-
//# sourceMappingURL=post-accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-danger post-accordion-item::part(accordion-item),.bg-nightblue post-accordion-item::part(accordion-item),.bg-nightblue-bright post-accordion-item::part(accordion-item),.bg-petrol post-accordion-item::part(accordion-item),.bg-petrol-bright post-accordion-item::part(accordion-item),.bg-coral post-accordion-item::part(accordion-item),.bg-coral-bright post-accordion-item::part(accordion-item),.bg-olive post-accordion-item::part(accordion-item),.bg-olive-bright post-accordion-item::part(accordion-item),.bg-purple post-accordion-item::part(accordion-item),.bg-purple-bright post-accordion-item::part(accordion-item),.bg-aubergine post-accordion-item::part(accordion-item),.bg-aubergine-bright post-accordion-item::part(accordion-item),.bg-success-green post-accordion-item::part(accordion-item),.bg-error-red post-accordion-item::part(accordion-item),.bg-warning-orange post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.accordion-item,.bg-yellow .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-primary .accordion-item,.bg-white .accordion-item,.bg-black .accordion-item,.bg-info .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-danger .accordion-item,.bg-nightblue .accordion-item,.bg-nightblue-bright .accordion-item,.bg-petrol .accordion-item,.bg-petrol-bright .accordion-item,.bg-coral .accordion-item,.bg-coral-bright .accordion-item,.bg-olive .accordion-item,.bg-olive-bright .accordion-item,.bg-purple .accordion-item,.bg-purple-bright .accordion-item,.bg-aubergine .accordion-item,.bg-aubergine-bright .accordion-item,.bg-success-green .accordion-item,.bg-error-red .accordion-item,.bg-warning-orange .accordion-item,.bg-success-background .accordion-item,.bg-error-background .accordion-item,.bg-warning-background .accordion-item{--post-bg-opacity: 1;background-color:rgba(var(--post-bg-rgb), var(--post-bg-opacity)) !important;color:var(--post-contrast-color) !important}post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-danger post-accordion-item::part(accordion-item),.bg-nightblue post-accordion-item::part(accordion-item),.bg-nightblue-bright post-accordion-item::part(accordion-item),.bg-petrol post-accordion-item::part(accordion-item),.bg-petrol-bright post-accordion-item::part(accordion-item),.bg-coral post-accordion-item::part(accordion-item),.bg-coral-bright post-accordion-item::part(accordion-item),.bg-olive post-accordion-item::part(accordion-item),.bg-olive-bright post-accordion-item::part(accordion-item),.bg-purple post-accordion-item::part(accordion-item),.bg-purple-bright post-accordion-item::part(accordion-item),.bg-aubergine post-accordion-item::part(accordion-item),.bg-aubergine-bright post-accordion-item::part(accordion-item),.bg-success-green post-accordion-item::part(accordion-item),.bg-error-red post-accordion-item::part(accordion-item),.bg-warning-orange post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.accordion-item,.bg-yellow .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-primary .accordion-item,.bg-white .accordion-item,.bg-black .accordion-item,.bg-info .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-danger .accordion-item,.bg-nightblue .accordion-item,.bg-nightblue-bright .accordion-item,.bg-petrol .accordion-item,.bg-petrol-bright .accordion-item,.bg-coral .accordion-item,.bg-coral-bright .accordion-item,.bg-olive .accordion-item,.bg-olive-bright .accordion-item,.bg-purple .accordion-item,.bg-purple-bright .accordion-item,.bg-aubergine .accordion-item,.bg-aubergine-bright .accordion-item,.bg-success-green .accordion-item,.bg-error-red .accordion-item,.bg-warning-orange .accordion-item,.bg-success-background .accordion-item,.bg-error-background .accordion-item,.bg-warning-background .accordion-item{--post-contrast-color: #000;--post-contrast-color-inverted: #fff;--post-gray-10: hsl(0, 0%, 90%);--post-gray-20: hsl(0, 0%, 80%);--post-gray-40: hsl(0, 0%, 60%);--post-gray-60: hsl(0, 0%, 40%);--post-gray-80: hsl(0, 0%, 20%);--post-yellow: #fc0;--post-light: #faf9f8;--post-gray: #f4f3f1;--post-dark: hsl(0, 0%, 20%);--post-primary: hsl(0, 0%, 20%);--post-white: #fff;--post-black: #000;--post-info: #cce4ee;--post-success: #2c911c;--post-warning: #f49e00;--post-danger: #a51728;--post-nightblue: #004976;--post-nightblue-bright: #0076a8;--post-petrol: #006d68;--post-petrol-bright: #00968f;--post-coral: #9e2a2f;--post-coral-bright: #e03c31;--post-olive: #716135;--post-olive-bright: #aa9d2e;--post-purple: #80276c;--post-purple-bright: #c5299b;--post-aubergine: #523178;--post-aubergine-bright: #7566a0;--post-success-green: #2c871d;--post-error-red: #a51728;--post-warning-orange: #f49e00;--post-success-background: #c0debb;--post-error-background: #ffdade;--post-warning-background: #fce2b2;--post-contrast-color-rgb: 0, 0, 0;--post-contrast-color-inverted-rgb: 255, 255, 255;--post-gray-10-rgb: 230, 230, 230;--post-gray-20-rgb: 204, 204, 204;--post-gray-40-rgb: 153, 153, 153;--post-gray-60-rgb: 102, 102, 102;--post-gray-80-rgb: 51, 51, 51;--post-yellow-rgb: 255, 204, 0;--post-light-rgb: 250, 249, 248;--post-gray-rgb: 244, 243, 241;--post-dark-rgb: 51, 51, 51;--post-primary-rgb: 51, 51, 51;--post-white-rgb: 255, 255, 255;--post-black-rgb: 0, 0, 0;--post-info-rgb: 204, 228, 238;--post-success-rgb: 44, 145, 28;--post-warning-rgb: 244, 158, 0;--post-danger-rgb: 165, 23, 40;--post-nightblue-rgb: 0, 73, 118;--post-nightblue-bright-rgb: 0, 118, 168;--post-petrol-rgb: 0, 109, 104;--post-petrol-bright-rgb: 0, 150, 143;--post-coral-rgb: 158, 42, 47;--post-coral-bright-rgb: 224, 60, 49;--post-olive-rgb: 113, 97, 53;--post-olive-bright-rgb: 170, 157, 46;--post-purple-rgb: 128, 39, 108;--post-purple-bright-rgb: 197, 41, 155;--post-aubergine-rgb: 82, 49, 120;--post-aubergine-bright-rgb: 117, 102, 160;--post-success-green-rgb: 44, 135, 29;--post-error-red-rgb: 165, 23, 40;--post-warning-orange-rgb: 244, 158, 0;--post-success-background-rgb: 192, 222, 187;--post-error-background-rgb: 255, 218, 222;--post-warning-background-rgb: 252, 226, 178}.accordion-item{--post-bg-rgb: 244, 243, 241;border-block:2px solid #666}.bg-yellow .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-light .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-gray .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-dark .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-primary .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-white .accordion-item{--post-bg-rgb: 244, 243, 241}.bg-black .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-info .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-success .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-warning .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-danger .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-nightblue .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-nightblue-bright .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-petrol .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-petrol-bright .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-coral .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-coral-bright .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-olive .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-olive-bright .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-purple .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-purple-bright .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-aubergine .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-aubergine-bright .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-success-green .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-error-red .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-warning-orange .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-success-background .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-error-background .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-warning-background .accordion-item{--post-bg-rgb: 255, 255, 255}.accordion-item+.accordion-item{border-block-start:0}.accordion-header{color:#333;font-size:1rem;font-weight:700;line-height:1.5;margin:0}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button;outline:none;width:100%;position:relative;padding-block:1rem;padding-inline-start:1rem;padding-inline-end:3rem;text-align:start;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.accordion-button:focus-visible{outline:2px solid #1976c8}.accordion-button:hover{color:#000;background-color:#e6e6e6}.accordion-button:disabled{opacity:.4;pointer-events:none}.accordion-button::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;content:"";display:block;height:1.5rem;width:1.5rem;position:absolute;inset-inline-end:1rem;inset-block-start:50%;transform:translateY(-50%);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed::after{transform:translateY(-50%) rotate(-180deg)}.accordion-button>.text-truncate{display:block}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover:not(:disabled),.accordion-button:focus-visible:not(:disabled){outline:2px solid Highlight}.accordion-button:disabled{opacity:1 !important}}.accordion-body{padding:.5rem 1rem 1rem;font-weight:300}.accordion-button>*,.accordion-body>:first-child{margin-block-start:0 !important}.accordion-button>*,.accordion-body>:last-child{margin-block-end:0 !important}:host{display:block}.accordion-button{cursor:pointer}.accordion-button>::slotted(.text-truncate){display:block}post-accordion-item::part(accordion-item){--post-bg-rgb: 244, 243, 241}.bg-yellow post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-light post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-gray post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-dark post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-primary post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-white post-accordion-item::part(accordion-item){--post-bg-rgb: 244, 243, 241}.bg-black post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-info post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-success post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-warning post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-danger post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-nightblue post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-nightblue-bright post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-petrol post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-petrol-bright post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-coral post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-coral-bright post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-olive post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-olive-bright post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-purple post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-purple-bright post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-aubergine post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-aubergine-bright post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-success-green post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-error-red post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-warning-orange post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-success-background post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-error-background post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-warning-background post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}post-accordion-item+post-accordion-item::part(accordion-item){border-block-start:0 !important}
|
|
1
|
+
post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-danger post-accordion-item::part(accordion-item),.bg-nightblue post-accordion-item::part(accordion-item),.bg-nightblue-bright post-accordion-item::part(accordion-item),.bg-petrol post-accordion-item::part(accordion-item),.bg-petrol-bright post-accordion-item::part(accordion-item),.bg-coral post-accordion-item::part(accordion-item),.bg-coral-bright post-accordion-item::part(accordion-item),.bg-olive post-accordion-item::part(accordion-item),.bg-olive-bright post-accordion-item::part(accordion-item),.bg-purple post-accordion-item::part(accordion-item),.bg-purple-bright post-accordion-item::part(accordion-item),.bg-aubergine post-accordion-item::part(accordion-item),.bg-aubergine-bright post-accordion-item::part(accordion-item),.bg-success-green post-accordion-item::part(accordion-item),.bg-error-red post-accordion-item::part(accordion-item),.bg-warning-orange post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.accordion-item,.bg-yellow .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-primary .accordion-item,.bg-white .accordion-item,.bg-black .accordion-item,.bg-info .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-danger .accordion-item,.bg-nightblue .accordion-item,.bg-nightblue-bright .accordion-item,.bg-petrol .accordion-item,.bg-petrol-bright .accordion-item,.bg-coral .accordion-item,.bg-coral-bright .accordion-item,.bg-olive .accordion-item,.bg-olive-bright .accordion-item,.bg-purple .accordion-item,.bg-purple-bright .accordion-item,.bg-aubergine .accordion-item,.bg-aubergine-bright .accordion-item,.bg-success-green .accordion-item,.bg-error-red .accordion-item,.bg-warning-orange .accordion-item,.bg-success-background .accordion-item,.bg-error-background .accordion-item,.bg-warning-background .accordion-item{--post-bg-opacity: 1;background-color:rgba(var(--post-bg-rgb), var(--post-bg-opacity)) !important;color:var(--post-contrast-color) !important}post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-danger post-accordion-item::part(accordion-item),.bg-nightblue post-accordion-item::part(accordion-item),.bg-nightblue-bright post-accordion-item::part(accordion-item),.bg-petrol post-accordion-item::part(accordion-item),.bg-petrol-bright post-accordion-item::part(accordion-item),.bg-coral post-accordion-item::part(accordion-item),.bg-coral-bright post-accordion-item::part(accordion-item),.bg-olive post-accordion-item::part(accordion-item),.bg-olive-bright post-accordion-item::part(accordion-item),.bg-purple post-accordion-item::part(accordion-item),.bg-purple-bright post-accordion-item::part(accordion-item),.bg-aubergine post-accordion-item::part(accordion-item),.bg-aubergine-bright post-accordion-item::part(accordion-item),.bg-success-green post-accordion-item::part(accordion-item),.bg-error-red post-accordion-item::part(accordion-item),.bg-warning-orange post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.accordion-item,.bg-yellow .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-primary .accordion-item,.bg-white .accordion-item,.bg-black .accordion-item,.bg-info .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-danger .accordion-item,.bg-nightblue .accordion-item,.bg-nightblue-bright .accordion-item,.bg-petrol .accordion-item,.bg-petrol-bright .accordion-item,.bg-coral .accordion-item,.bg-coral-bright .accordion-item,.bg-olive .accordion-item,.bg-olive-bright .accordion-item,.bg-purple .accordion-item,.bg-purple-bright .accordion-item,.bg-aubergine .accordion-item,.bg-aubergine-bright .accordion-item,.bg-success-green .accordion-item,.bg-error-red .accordion-item,.bg-warning-orange .accordion-item,.bg-success-background .accordion-item,.bg-error-background .accordion-item,.bg-warning-background .accordion-item{--post-contrast-color: #000;--post-contrast-color-inverted: #fff;--post-gray-10: hsl(0, 0%, 90%);--post-gray-20: hsl(0, 0%, 80%);--post-gray-40: hsl(0, 0%, 60%);--post-gray-60: hsl(0, 0%, 40%);--post-gray-80: hsl(0, 0%, 20%);--post-yellow: #fc0;--post-light: #faf9f8;--post-gray: #f4f3f1;--post-dark: hsl(0, 0%, 20%);--post-primary: hsl(0, 0%, 20%);--post-white: #fff;--post-black: #000;--post-info: #cce4ee;--post-success: #2c911c;--post-warning: #f49e00;--post-danger: #a51728;--post-nightblue: #004976;--post-nightblue-bright: #0076a8;--post-petrol: #006d68;--post-petrol-bright: #00968f;--post-coral: #9e2a2f;--post-coral-bright: #e03c31;--post-olive: #716135;--post-olive-bright: #aa9d2e;--post-purple: #80276c;--post-purple-bright: #c5299b;--post-aubergine: #523178;--post-aubergine-bright: #7566a0;--post-success-green: #2c871d;--post-error-red: #a51728;--post-warning-orange: #f49e00;--post-success-background: #c0debb;--post-error-background: #ffdade;--post-warning-background: #fce2b2;--post-contrast-color-rgb: 0, 0, 0;--post-contrast-color-inverted-rgb: 255, 255, 255;--post-gray-10-rgb: 230, 230, 230;--post-gray-20-rgb: 204, 204, 204;--post-gray-40-rgb: 153, 153, 153;--post-gray-60-rgb: 102, 102, 102;--post-gray-80-rgb: 51, 51, 51;--post-yellow-rgb: 255, 204, 0;--post-light-rgb: 250, 249, 248;--post-gray-rgb: 244, 243, 241;--post-dark-rgb: 51, 51, 51;--post-primary-rgb: 51, 51, 51;--post-white-rgb: 255, 255, 255;--post-black-rgb: 0, 0, 0;--post-info-rgb: 204, 228, 238;--post-success-rgb: 44, 145, 28;--post-warning-rgb: 244, 158, 0;--post-danger-rgb: 165, 23, 40;--post-nightblue-rgb: 0, 73, 118;--post-nightblue-bright-rgb: 0, 118, 168;--post-petrol-rgb: 0, 109, 104;--post-petrol-bright-rgb: 0, 150, 143;--post-coral-rgb: 158, 42, 47;--post-coral-bright-rgb: 224, 60, 49;--post-olive-rgb: 113, 97, 53;--post-olive-bright-rgb: 170, 157, 46;--post-purple-rgb: 128, 39, 108;--post-purple-bright-rgb: 197, 41, 155;--post-aubergine-rgb: 82, 49, 120;--post-aubergine-bright-rgb: 117, 102, 160;--post-success-green-rgb: 44, 135, 29;--post-error-red-rgb: 165, 23, 40;--post-warning-orange-rgb: 244, 158, 0;--post-success-background-rgb: 192, 222, 187;--post-error-background-rgb: 255, 218, 222;--post-warning-background-rgb: 252, 226, 178}.accordion-item{--post-bg-rgb: 244, 243, 241;border-block:2px solid #666}.bg-yellow .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-light .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-gray .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-dark .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-primary .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-white .accordion-item{--post-bg-rgb: 244, 243, 241}.bg-black .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-info .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-success .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-warning .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-danger .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-nightblue .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-nightblue-bright .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-petrol .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-petrol-bright .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-coral .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-coral-bright .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-olive .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-olive-bright .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-purple .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-purple-bright .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-aubergine .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-aubergine-bright .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-success-green .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-error-red .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-warning-orange .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-success-background .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-error-background .accordion-item{--post-bg-rgb: 255, 255, 255}.bg-warning-background .accordion-item{--post-bg-rgb: 255, 255, 255}.accordion-item+.accordion-item{border-block-start:0}.accordion-header{color:#333;font-size:1rem;font-weight:700;line-height:1.5;margin:0}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button;outline:none;width:100%;position:relative;padding-block:1rem;padding-inline-start:1rem;padding-inline-end:3rem;text-align:start;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.accordion-button:focus-visible{outline:2px solid #1976c8}.accordion-button:hover{color:#000;background-color:#e6e6e6}.accordion-button:disabled{opacity:.4;pointer-events:none}.accordion-button::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:"";display:block;height:1.5rem;width:1.5rem;position:absolute;inset-inline-end:1rem;inset-block-start:50%;transform:translateY(-50%);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed::after{transform:translateY(-50%) rotate(-180deg)}.accordion-button>.text-truncate{display:block}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover:not(:disabled),.accordion-button:focus-visible:not(:disabled){outline:2px solid Highlight}.accordion-button:disabled{opacity:1 !important}}.accordion-body{padding:.5rem 1rem 1rem;font-weight:300}.accordion-button>*,.accordion-body>:first-child{margin-block-start:0 !important}.accordion-button>*,.accordion-body>:last-child{margin-block-end:0 !important}:host{display:block}.accordion-button{cursor:pointer}.accordion-button>::slotted(.text-truncate){display:block}post-accordion-item::part(accordion-item){--post-bg-rgb: 244, 243, 241}.bg-yellow post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-light post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-gray post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-dark post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-primary post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-white post-accordion-item::part(accordion-item){--post-bg-rgb: 244, 243, 241}.bg-black post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-info post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-success post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-warning post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-danger post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-nightblue post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-nightblue-bright post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-petrol post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-petrol-bright post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-coral post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-coral-bright post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-olive post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-olive-bright post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-purple post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-purple-bright post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-aubergine post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-aubergine-bright post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-success-green post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-error-red post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-warning-orange post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-success-background post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-error-background post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}.bg-warning-background post-accordion-item::part(accordion-item){--post-bg-rgb: 255, 255, 255}:host(:not(:first-of-type)) .accordion-item{border-block-start:0}
|
|
@@ -2,6 +2,10 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
import { version } from "../../../package.json";
|
|
3
3
|
import { checkEmptyOrOneOf } from "../../utils";
|
|
4
4
|
import { HEADING_LEVELS } from "./heading-levels";
|
|
5
|
+
/**
|
|
6
|
+
* @slot header - Slot for placing custom content within the accordion item's header.
|
|
7
|
+
* @slot default - Slot for placing content within the accordion item's body.
|
|
8
|
+
*/
|
|
5
9
|
export class PostAccordionItem {
|
|
6
10
|
constructor() {
|
|
7
11
|
this.id = undefined;
|
|
@@ -31,7 +35,7 @@ export class PostAccordionItem {
|
|
|
31
35
|
render() {
|
|
32
36
|
var _a;
|
|
33
37
|
const HeadingTag = `h${(_a = this.headingLevel) !== null && _a !== void 0 ? _a : 2}`;
|
|
34
|
-
return (h(Host, { id: this.id, "data-version": version }, h("div", { part: "accordion-item", class: "accordion-item" }, h(HeadingTag, { class: "accordion-header", id: `${this.id}--header` }, h("button", { "aria-controls": `${this.id}--collapse`, "aria-expanded": `${this.isOpen}`, class: `accordion-button${this.isOpen ? '' : ' collapsed'}`, onClick: () => this.toggle(), type: "button" }, h("slot", { name: "header" }))), h("post-collapsible", { collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { class: "accordion-body" }, h("slot",
|
|
38
|
+
return (h(Host, { key: '795ccef5a57e07755df60f651712dff5eb3fcfaf', id: this.id, "data-version": version }, h("div", { key: '529feda41150180001d5535d0d79007e312b0d39', part: "accordion-item", class: "accordion-item" }, h(HeadingTag, { key: '4ddcc8f6ab703625ab072541b65ed0dcb7392129', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: '09dcd22dc3382fe442018649b392ba95ed3918f9', "aria-controls": `${this.id}--collapse`, "aria-expanded": `${this.isOpen}`, class: `accordion-button${this.isOpen ? '' : ' collapsed'}`, onClick: () => this.toggle(), type: "button" }, h("slot", { key: '8e4026adc26445aa84cce3587bf4cc82b816641a', name: "header" }))), h("post-collapsible", { key: '83aeca309682e6f0d9dc2f6fa0701a01229a8f2b', collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: 'c881ddf1fe72345d1e6fedaff9376cf43ad566b4', class: "accordion-body" }, h("slot", { key: '8d72ce66dd9b3b2059ea789ec5854d53b4895907' }))))));
|
|
35
39
|
}
|
|
36
40
|
static get is() { return "post-accordion-item"; }
|
|
37
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -139,4 +143,3 @@ export class PostAccordionItem {
|
|
|
139
143
|
}];
|
|
140
144
|
}
|
|
141
145
|
}
|
|
142
|
-
//# sourceMappingURL=post-accordion-item.js.map
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
27
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
28
28
|
* THE SOFTWARE.
|
|
29
|
-
*/.alert-primary,.alert-success,.alert-danger,.alert-warning,.alert-info,.alert-gray,.alert-notification,.alert-error{background-color:rgb(var(--post-bg-rgb)) !important;color:var(--post-contrast-color) !important}.alert-warning,.alert-info,.alert-gray{--post-contrast-color: #000;--post-contrast-color-inverted: #fff;--post-gray-10: hsl(0, 0%, 90%);--post-gray-20: hsl(0, 0%, 80%);--post-gray-40: hsl(0, 0%, 60%);--post-gray-60: hsl(0, 0%, 40%);--post-gray-80: hsl(0, 0%, 20%);--post-yellow: #fc0;--post-light: #faf9f8;--post-gray: #f4f3f1;--post-dark: hsl(0, 0%, 20%);--post-primary: hsl(0, 0%, 20%);--post-white: #fff;--post-black: #000;--post-info: #cce4ee;--post-success: #2c911c;--post-warning: #f49e00;--post-danger: #a51728;--post-nightblue: #004976;--post-nightblue-bright: #0076a8;--post-petrol: #006d68;--post-petrol-bright: #00968f;--post-coral: #9e2a2f;--post-coral-bright: #e03c31;--post-olive: #716135;--post-olive-bright: #aa9d2e;--post-purple: #80276c;--post-purple-bright: #c5299b;--post-aubergine: #523178;--post-aubergine-bright: #7566a0;--post-success-green: #2c871d;--post-error-red: #a51728;--post-warning-orange: #f49e00;--post-success-background: #c0debb;--post-error-background: #ffdade;--post-warning-background: #fce2b2;--post-contrast-color-rgb: 0, 0, 0;--post-contrast-color-inverted-rgb: 255, 255, 255;--post-gray-10-rgb: 230, 230, 230;--post-gray-20-rgb: 204, 204, 204;--post-gray-40-rgb: 153, 153, 153;--post-gray-60-rgb: 102, 102, 102;--post-gray-80-rgb: 51, 51, 51;--post-yellow-rgb: 255, 204, 0;--post-light-rgb: 250, 249, 248;--post-gray-rgb: 244, 243, 241;--post-dark-rgb: 51, 51, 51;--post-primary-rgb: 51, 51, 51;--post-white-rgb: 255, 255, 255;--post-black-rgb: 0, 0, 0;--post-info-rgb: 204, 228, 238;--post-success-rgb: 44, 145, 28;--post-warning-rgb: 244, 158, 0;--post-danger-rgb: 165, 23, 40;--post-nightblue-rgb: 0, 73, 118;--post-nightblue-bright-rgb: 0, 118, 168;--post-petrol-rgb: 0, 109, 104;--post-petrol-bright-rgb: 0, 150, 143;--post-coral-rgb: 158, 42, 47;--post-coral-bright-rgb: 224, 60, 49;--post-olive-rgb: 113, 97, 53;--post-olive-bright-rgb: 170, 157, 46;--post-purple-rgb: 128, 39, 108;--post-purple-bright-rgb: 197, 41, 155;--post-aubergine-rgb: 82, 49, 120;--post-aubergine-bright-rgb: 117, 102, 160;--post-success-green-rgb: 44, 135, 29;--post-error-red-rgb: 165, 23, 40;--post-warning-orange-rgb: 244, 158, 0;--post-success-background-rgb: 192, 222, 187;--post-error-background-rgb: 255, 218, 222;--post-warning-background-rgb: 252, 226, 178}.alert-primary,.alert-
|
|
29
|
+
*/.alert-primary,.alert-success,.alert-danger,.alert-warning,.alert-info,.alert-gray,.alert-notification,.alert-error{background-color:rgb(var(--post-bg-rgb)) !important;color:var(--post-contrast-color) !important}.alert-success,.alert-warning,.alert-info,.alert-gray{--post-contrast-color: #000;--post-contrast-color-inverted: #fff;--post-gray-10: hsl(0, 0%, 90%);--post-gray-20: hsl(0, 0%, 80%);--post-gray-40: hsl(0, 0%, 60%);--post-gray-60: hsl(0, 0%, 40%);--post-gray-80: hsl(0, 0%, 20%);--post-yellow: #fc0;--post-light: #faf9f8;--post-gray: #f4f3f1;--post-dark: hsl(0, 0%, 20%);--post-primary: hsl(0, 0%, 20%);--post-white: #fff;--post-black: #000;--post-info: #cce4ee;--post-success: #2c911c;--post-warning: #f49e00;--post-danger: #a51728;--post-nightblue: #004976;--post-nightblue-bright: #0076a8;--post-petrol: #006d68;--post-petrol-bright: #00968f;--post-coral: #9e2a2f;--post-coral-bright: #e03c31;--post-olive: #716135;--post-olive-bright: #aa9d2e;--post-purple: #80276c;--post-purple-bright: #c5299b;--post-aubergine: #523178;--post-aubergine-bright: #7566a0;--post-success-green: #2c871d;--post-error-red: #a51728;--post-warning-orange: #f49e00;--post-success-background: #c0debb;--post-error-background: #ffdade;--post-warning-background: #fce2b2;--post-contrast-color-rgb: 0, 0, 0;--post-contrast-color-inverted-rgb: 255, 255, 255;--post-gray-10-rgb: 230, 230, 230;--post-gray-20-rgb: 204, 204, 204;--post-gray-40-rgb: 153, 153, 153;--post-gray-60-rgb: 102, 102, 102;--post-gray-80-rgb: 51, 51, 51;--post-yellow-rgb: 255, 204, 0;--post-light-rgb: 250, 249, 248;--post-gray-rgb: 244, 243, 241;--post-dark-rgb: 51, 51, 51;--post-primary-rgb: 51, 51, 51;--post-white-rgb: 255, 255, 255;--post-black-rgb: 0, 0, 0;--post-info-rgb: 204, 228, 238;--post-success-rgb: 44, 145, 28;--post-warning-rgb: 244, 158, 0;--post-danger-rgb: 165, 23, 40;--post-nightblue-rgb: 0, 73, 118;--post-nightblue-bright-rgb: 0, 118, 168;--post-petrol-rgb: 0, 109, 104;--post-petrol-bright-rgb: 0, 150, 143;--post-coral-rgb: 158, 42, 47;--post-coral-bright-rgb: 224, 60, 49;--post-olive-rgb: 113, 97, 53;--post-olive-bright-rgb: 170, 157, 46;--post-purple-rgb: 128, 39, 108;--post-purple-bright-rgb: 197, 41, 155;--post-aubergine-rgb: 82, 49, 120;--post-aubergine-bright-rgb: 117, 102, 160;--post-success-green-rgb: 44, 135, 29;--post-error-red-rgb: 165, 23, 40;--post-warning-orange-rgb: 244, 158, 0;--post-success-background-rgb: 192, 222, 187;--post-error-background-rgb: 255, 218, 222;--post-warning-background-rgb: 252, 226, 178}.alert-primary,.alert-danger,.alert-notification,.alert-error{--post-contrast-color: #fff;--post-contrast-color-inverted: #000;--post-dark: #faf9f8;--post-light: hsl(0, 0%, 20%);--post-gray-80: hsl(0, 0%, 90%);--post-gray-60: hsl(0, 0%, 80%);--post-gray-40: hsl(0, 0%, 60%);--post-gray-20: hsl(0, 0%, 40%);--post-gray-10: hsl(0, 0%, 20%);--post-contrast-color-rgb: 255, 255, 255;--post-contrast-color-inverted-rgb: 0, 0, 0;--post-dark-rgb: 250, 249, 248;--post-light-rgb: 51, 51, 51;--post-gray-80-rgb: 230, 230, 230;--post-gray-60-rgb: 204, 204, 204;--post-gray-40-rgb: 153, 153, 153;--post-gray-20-rgb: 102, 102, 102;--post-gray-10-rgb: 51, 51, 51}.alert{position:relative;box-sizing:border-box;min-height:5rem;box-shadow:0 2px 4px 0 rgba(0,0,0,.2);border-radius:4px;padding:1rem 1.25rem;padding-inline-start:5.5rem;margin-block-end:1rem;font-size:1rem;font-weight:300}.alert.no-icon{min-height:3.5rem;padding-inline-start:1.25rem}.alert[class^=pi-],.alert[class*=" pi-"]{background-size:3rem;background-position:1.25rem 1rem;background-repeat:no-repeat}.alert[class^=pi-].no-icon,.alert[class*=" pi-"].no-icon{background-image:none}.alert::before{content:"";display:block}.alert::before,.alert>post-icon{position:absolute;height:3rem;width:3rem;left:1.25rem;top:1rem}.alert.no-icon::before,.alert[class^=pi-]::before,.alert[class*=" pi-"]::before{content:unset}.alert.no-icon>post-icon,.alert[class^=pi-]>post-icon,.alert[class*=" pi-"]>post-icon{display:none}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.alert{filter:none !important;border:2px solid CanvasText}}.alert:not(.alert-action){display:flex;flex-direction:column;justify-content:center;gap:.25rem}.alert:not(.alert-action) a{font-weight:400}.alert:not(.alert-action) hr{margin-block:.5rem .75rem !important}.alert:not(.alert-action)>:only-child,.alert:not(.alert-action)>post-icon:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert:not(.alert-action)>*{margin:0}.alert-heading{font-size:1.0625rem;font-weight:700}.alert-dismissible{pointer-events:auto;position:relative;padding-inline-end:4rem}.alert-dismissible>.btn-close{position:absolute;inset-block-start:1rem;inset-inline-end:1.25rem}.alert-dismissible>.btn-close:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert-action{display:flex;flex-direction:row;align-items:center;gap:1.25rem}.alert-action>.alert-content{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;gap:.25rem}.alert-action>.alert-content a{font-weight:400}.alert-action>.alert-content hr{margin-block:.5rem .75rem !important}.alert-action>.alert-content>:only-child,.alert-action>.alert-content>post-icon:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert-action>.alert-content>*{margin:0}.alert-action>.alert-buttons{flex:0 0 auto;display:flex;align-items:center;gap:.5rem}@media(min-width: 780px){.alert-action.alert-dismissible>.btn-close{inset-block-start:calc(50% - 0.75rem)}}@media(max-width: 779.98px){.alert-action{flex-direction:column;align-items:stretch;padding-inline:1.25rem}.alert-action>.alert-content{padding-inline-start:4.25rem;padding-inline-end:2.75rem}.alert-action>.alert-buttons{display:flex}.alert-action>.alert-buttons>.btn{flex:1 0 0;width:100%}.alert-action>.alert-buttons>.btn:first-child{margin-inline-start:0}}.alert-fixed-bottom{position:fixed;inset-block-end:0;inset-inline-start:0;inset-inline-end:0;margin-bottom:0;border-radius:0;z-index:1030}@media(min-width: 1441px){.alert-fixed-bottom{padding-inline-end:calc((100% - 1440px) / 2 + 120px + 1.25rem);padding-inline-start:calc(
|
|
30
30
|
(100% - 1440px) / 2 + 120px + 1.25rem + 3rem + 1.25rem
|
|
31
31
|
);background-position-x:calc((100% - 1440px) / 2 + 120px + 1.25rem + 1.5rem)}.alert-fixed-bottom::before{left:calc((100% - 1440px) / 2 + 120px + 1.25rem)}.alert-fixed-bottom.no-icon{padding-inline-start:calc((100% - 1440px) / 2 + 120px + 1.25rem)}.alert-fixed-bottom.alert-dismissible{padding-inline-end:calc(
|
|
32
32
|
(100% - 1440px) / 2 + 120px + 1.25rem + 1.25rem + 1.5rem
|
|
33
|
-
)}.alert-fixed-bottom.alert-dismissible>.btn-close{inset-inline-end:calc((100% - 1440px) / 2 + 120px + 1.25rem)}}.alert-primary{--post-bg-rgb: 51, 51, 51}.alert-primary:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor}.alert-primary:has(>post-icon)::before{content:none}.alert-primary>post-icon{background-color:#333}.alert-success{--post-bg-rgb: 44, 145, 28}.alert-success:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor}.alert-success:has(>post-icon)::before{content:none}.alert-success>post-icon{background-color:#2c911c}.alert-danger{--post-bg-rgb: 165, 23, 40}.alert-danger:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor}.alert-danger:has(>post-icon)::before{content:none}.alert-danger>post-icon{background-color:#a51728}.alert-warning{--post-bg-rgb: 244, 158, 0}.alert-warning:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor}.alert-warning:has(>post-icon)::before{content:none}.alert-warning>post-icon{background-color:#f49e00}.alert-info{--post-bg-rgb: 204, 228, 238}.alert-info:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M17.333 25.333v-16h-4.667V12h2v13.333h-2V28h6.667v-2.667zM14.667 4h2.667v2.667h-2.667z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M17.333 25.333v-16h-4.667V12h2v13.333h-2V28h6.667v-2.667zM14.667 4h2.667v2.667h-2.667z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor}.alert-info:has(>post-icon)::before{content:none}.alert-info>post-icon{background-color:#cce4ee}.alert-gray{--post-bg-rgb: 244, 243, 241}.alert-gray:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0c0-.735.599-1.333 1.334-1.333s1.333.598 1.333 1.333-.598 1.334-1.333 1.334-1.334-.598-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0c0-.735.599-1.333 1.334-1.333s1.333.598 1.333 1.333-.598 1.334-1.333 1.334-1.334-.598-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor}.alert-gray:has(>post-icon)::before{content:none}.alert-gray>post-icon{background-color:#f4f3f1}.alert-notification{--post-bg-rgb: 51, 51, 51}.alert-notification:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor}.alert-notification:has(>post-icon)::before{content:none}.alert-notification>post-icon{background-color:#333}.alert-error{--post-bg-rgb: 165, 23, 40}.alert-error:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor}.alert-error:has(>post-icon)::before{content:none}.alert-error>post-icon{background-color:#a51728}.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button;outline:none;outline-offset:2px;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color)}.btn-close::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;content:"";display:block;height:1.5rem;width:1.5rem}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:var(--post-contrast-color)}.btn-close:disabled{color:var(--post-gray-40)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}/*!
|
|
33
|
+
)}.alert-fixed-bottom.alert-dismissible>.btn-close{inset-inline-end:calc((100% - 1440px) / 2 + 120px + 1.25rem)}}.alert-primary{--post-bg-rgb: 51, 51, 51}.alert-primary:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-primary:has(>post-icon)::before{content:none}.alert-primary>post-icon{background-color:#333}.alert-success{--post-bg-rgb: 44, 145, 28}.alert-success:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-success:has(>post-icon)::before{content:none}.alert-success>post-icon{background-color:#2c911c}.alert-danger{--post-bg-rgb: 165, 23, 40}.alert-danger:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-danger:has(>post-icon)::before{content:none}.alert-danger>post-icon{background-color:#a51728}.alert-warning{--post-bg-rgb: 244, 158, 0}.alert-warning:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-warning:has(>post-icon)::before{content:none}.alert-warning>post-icon{background-color:#f49e00}.alert-info{--post-bg-rgb: 204, 228, 238}.alert-info:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M17.333 25.333v-16h-4.667V12h2v13.333h-2V28h6.667v-2.667zM14.667 4h2.667v2.667h-2.667z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M17.333 25.333v-16h-4.667V12h2v13.333h-2V28h6.667v-2.667zM14.667 4h2.667v2.667h-2.667z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-info:has(>post-icon)::before{content:none}.alert-info>post-icon{background-color:#cce4ee}.alert-gray{--post-bg-rgb: 244, 243, 241}.alert-gray:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0c0-.735.599-1.333 1.334-1.333s1.333.598 1.333 1.333-.598 1.334-1.333 1.334-1.334-.598-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0c0-.735.599-1.333 1.334-1.333s1.333.598 1.333 1.333-.598 1.334-1.333 1.334-1.334-.598-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-gray:has(>post-icon)::before{content:none}.alert-gray>post-icon{background-color:#f4f3f1}.alert-notification{--post-bg-rgb: 51, 51, 51}.alert-notification:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-notification:has(>post-icon)::before{content:none}.alert-notification>post-icon{background-color:#333}.alert-error{--post-bg-rgb: 165, 23, 40}.alert-error:not(.no-icon,[class^=pi-],[class*=" pi-"])::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-error:has(>post-icon)::before{content:none}.alert-error>post-icon{background-color:#a51728}.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button;outline:none;outline-offset:2px;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color)}.btn-close::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:"";display:block;height:1.5rem;width:1.5rem}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:var(--post-contrast-color)}.btn-close:disabled{color:var(--post-gray-40)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}/*!
|
|
34
34
|
* Copyright 2021 by Swiss Post, Information Technology
|
|
35
35
|
*/:host{display:block}:host ::slotted(*){margin:0 !important}.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption){position:absolute !important}.alert-heading>::slotted(h1){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h2){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h3){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h4){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h5){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h6){font-size:inherit !important;font-weight:inherit !important}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
1
|
+
import { h, Host, } from "@stencil/core";
|
|
2
2
|
import { version } from "../../../package.json";
|
|
3
3
|
import { fadeOut } from "../../animations";
|
|
4
4
|
import { checkEmptyOrOneOf, checkEmptyOrPattern, checkNonEmpty, checkType } from "../../utils";
|
|
5
5
|
import { ALERT_TYPES } from "./alert-types";
|
|
6
|
+
/**
|
|
7
|
+
* @slot heading - Slot for placing custom content within the alert's heading.
|
|
8
|
+
* @slot actions - Slot for placing custom actions (buttons, links, etc.) within the alert.
|
|
9
|
+
* @slot default - Slot for placing the main content/message of the alert.
|
|
10
|
+
*/
|
|
6
11
|
export class PostAlert {
|
|
7
12
|
constructor() {
|
|
8
13
|
this.alertId = crypto.randomUUID();
|
|
@@ -65,16 +70,14 @@ export class PostAlert {
|
|
|
65
70
|
}
|
|
66
71
|
render() {
|
|
67
72
|
const defaultAlertContent = [
|
|
68
|
-
this.hasHeading && (h("div", { key: `${this.alertId}-heading`, class: "alert-heading" }, h("slot", { name: "heading" }))),
|
|
69
|
-
h("slot", { key: `${this.alertId}-message` })
|
|
73
|
+
this.hasHeading && (h("div", { key: `${this.alertId}-heading`, class: "alert-heading" }, h("slot", { key: 'b151a1b8d49d08bd15b4a6661f7ecd25660971f8', name: "heading" }))),
|
|
74
|
+
h("slot", { key: `${this.alertId}-message` }),
|
|
70
75
|
];
|
|
71
76
|
const actionAlertContent = [
|
|
72
77
|
h("div", { key: `${this.alertId}-content`, class: "alert-content" }, defaultAlertContent),
|
|
73
|
-
h("div", { key: `${this.alertId}-buttons`, class: "alert-buttons" }, h("slot", { name: "actions" })),
|
|
78
|
+
h("div", { key: `${this.alertId}-buttons`, class: "alert-buttons" }, h("slot", { key: '6855a0e7c42527b628f3d76aeb13c86a1f708f38', name: "actions" })),
|
|
74
79
|
];
|
|
75
|
-
return (h(Host, { "data-version": version }, h("div", { role: "alert", class: this.classes }, this.dismissible && (h("button", { class: "btn-close", onClick: this.onDismissButtonClick }, h("span", { class: "visually-hidden" }, this.dismissLabel))), this.icon && this.icon !== 'none' && (h("post-icon", { key: `${this.alertId}-icon`, name: this.icon })), this.hasActions
|
|
76
|
-
? actionAlertContent
|
|
77
|
-
: defaultAlertContent)));
|
|
80
|
+
return (h(Host, { key: '959f326cf08711d6639678bfba195b8089b5cf6f', "data-version": version }, h("div", { key: '011f13e08ebc25fcec404c316b3b74d0f588e0fc', role: "alert", class: this.classes }, this.dismissible && (h("button", { class: "btn-close", onClick: this.onDismissButtonClick }, h("span", { class: "visually-hidden" }, this.dismissLabel))), this.icon && this.icon !== 'none' && (h("post-icon", { key: `${this.alertId}-icon`, name: this.icon })), this.hasActions ? actionAlertContent : defaultAlertContent)));
|
|
78
81
|
}
|
|
79
82
|
static get is() { return "post-alert"; }
|
|
80
83
|
static get encapsulation() { return "shadow"; }
|
|
@@ -254,4 +257,3 @@ export class PostAlert {
|
|
|
254
257
|
}];
|
|
255
258
|
}
|
|
256
259
|
}
|
|
257
|
-
//# sourceMappingURL=post-alert.js.map
|
|
@@ -2,6 +2,9 @@ import { h, Host, } from "@stencil/core";
|
|
|
2
2
|
import { version } from "../../../package.json";
|
|
3
3
|
import { collapse, expand } from "../../animations/collapse";
|
|
4
4
|
import { checkEmptyOrType, isMotionReduced } from "../../utils";
|
|
5
|
+
/**
|
|
6
|
+
* @slot default - Slot for placing content within the collapsible element.
|
|
7
|
+
*/
|
|
5
8
|
export class PostCollapsible {
|
|
6
9
|
constructor() {
|
|
7
10
|
this.isLoaded = false;
|
|
@@ -42,7 +45,7 @@ export class PostCollapsible {
|
|
|
42
45
|
return this.isOpen;
|
|
43
46
|
}
|
|
44
47
|
render() {
|
|
45
|
-
return (h(Host, { id: this.id, "data-version": version }, h("div", { class: "collapse", id: `${this.id}--collapse`, ref: el => (this.collapsible = el) }, h("slot",
|
|
48
|
+
return (h(Host, { key: 'cf0622c0844054ac31023781a393b174ac263397', id: this.id, "data-version": version }, h("div", { key: '4138a3402559b59bc2994eace597bbf27623f806', class: "collapse", id: `${this.id}--collapse`, ref: el => (this.collapsible = el) }, h("slot", { key: '9a6fd61dcc0925b8ac1bf2353c4a093ae23fac22' }))));
|
|
46
49
|
}
|
|
47
50
|
static get is() { return "post-collapsible"; }
|
|
48
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -135,4 +138,3 @@ export class PostCollapsible {
|
|
|
135
138
|
}];
|
|
136
139
|
}
|
|
137
140
|
}
|
|
138
|
-
//# sourceMappingURL=post-collapsible.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}
|
|
1
|
+
:host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}
|
|
@@ -81,7 +81,7 @@ export class PostIcon {
|
|
|
81
81
|
})
|
|
82
82
|
.filter(([_key, value]) => value !== null)
|
|
83
83
|
.reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
|
|
84
|
-
return (h(Host, { "data-version": version }, h("span", { style: svgStyles })));
|
|
84
|
+
return (h(Host, { key: '8a892fa9fa24e07995453e0e491328fde76dc496', "data-version": version }, h("span", { key: '14761a251eb0ab02df268aa23597151ccb71ebc8', style: svgStyles })));
|
|
85
85
|
}
|
|
86
86
|
static get is() { return "post-icon"; }
|
|
87
87
|
static get encapsulation() { return "shadow"; }
|
|
@@ -261,4 +261,3 @@ export class PostIcon {
|
|
|
261
261
|
}];
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
//# sourceMappingURL=post-icon.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 by Swiss Post, Information Technology
|
|
3
|
-
*/.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button;outline:none;outline-offset:2px;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color)}.btn-close::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;content:"";display:block;height:1.5rem;width:1.5rem}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:var(--post-contrast-color)}.btn-close:disabled{color:var(--post-gray-40)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{--post-contrast-color: #fff;--post-bg-rgb: 51, 51, 51;display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;max-width:min(66vw,60rem)}@media(max-width: 599.98px){.popover-container{max-width:100%}}.popover-content{padding:.5em}
|
|
3
|
+
*/.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button;outline:none;outline-offset:2px;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color)}.btn-close::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:"";display:block;height:1.5rem;width:1.5rem}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:var(--post-contrast-color)}.btn-close:disabled{color:var(--post-gray-40)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{--post-contrast-color: #fff;--post-bg-rgb: 51, 51, 51;display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;max-width:min(66vw,60rem)}@media(max-width: 599.98px){.popover-container{max-width:100%}}.popover-content{padding:.5em}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { version } from "../../../package.json";
|
|
3
|
+
/**
|
|
4
|
+
* @slot default - Slot for placing content inside the popover.
|
|
5
|
+
*/
|
|
3
6
|
export class PostPopover {
|
|
4
7
|
constructor() {
|
|
5
8
|
this.placement = 'top';
|
|
@@ -101,7 +104,7 @@ export class PostPopover {
|
|
|
101
104
|
e.stopImmediatePropagation();
|
|
102
105
|
}
|
|
103
106
|
render() {
|
|
104
|
-
return (h(Host, { "data-version": version }, h("post-popovercontainer", { arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e), onPostPopoverToggled: e => this.onToggle(e) }, h("div", { class: "popover-container", onPointerDown: e => this.stopImmediatePropagation(e), onPointerUp: e => this.stopImmediatePropagation(e) }, h("div", { class: "popover-content" }, h("slot",
|
|
107
|
+
return (h(Host, { key: 'f1580a33b1a6398ce0f32ce76365a1cebe68ceeb', "data-version": version }, h("post-popovercontainer", { key: '3fbf43896d0cb2c4d35b18302a66097499aa31c0', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e), onPostPopoverToggled: e => this.onToggle(e) }, h("div", { key: '3b698cdc50d72e59238a1dbc48aced03c0c7dc43', class: "popover-container", onPointerDown: e => this.stopImmediatePropagation(e), onPointerUp: e => this.stopImmediatePropagation(e) }, h("div", { key: '1e9f888bba7c54fa4ba956553e7668f3f37daa67', class: "popover-content" }, h("slot", { key: '433e2b5d75f7bf7b07ba2895c97fc362a98b653f' })), h("button", { key: 'ee88604aabea87068e5653a0d14111064c6e8829', class: "btn-close", onClick: () => this.hide() }, h("span", { key: 'f9fbd6ab73a99c293281c5a80e4c583fe5ca8f37', class: "visually-hidden" }, this.closeButtonCaption))))));
|
|
105
108
|
}
|
|
106
109
|
static get is() { return "post-popover"; }
|
|
107
110
|
static get encapsulation() { return "shadow"; }
|
|
@@ -127,7 +130,7 @@ export class PostPopover {
|
|
|
127
130
|
"Placement": {
|
|
128
131
|
"location": "import",
|
|
129
132
|
"path": "@floating-ui/dom",
|
|
130
|
-
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.
|
|
133
|
+
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.6.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts::Placement"
|
|
131
134
|
}
|
|
132
135
|
}
|
|
133
136
|
},
|
|
@@ -264,4 +267,3 @@ export class PostPopover {
|
|
|
264
267
|
}
|
|
265
268
|
static get elementRef() { return "host"; }
|
|
266
269
|
}
|
|
267
|
-
//# sourceMappingURL=post-popover.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer polyfill{
|
|
1
|
+
@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\:popover-open){display:none}}}.popover{box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;color:var(--post-contrast-color);background-color:rgb(var(--post-bg-rgb));border:1px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}.arrow{position:absolute;width:.7071067812rem;height:.7071067812rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1;border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}
|
|
@@ -9,6 +9,9 @@ const SIDE_MAP = {
|
|
|
9
9
|
bottom: 'top',
|
|
10
10
|
left: 'right',
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* @slot - Default slot for placing content inside the popovercontainer.
|
|
14
|
+
*/
|
|
12
15
|
export class PostPopovercontainer {
|
|
13
16
|
constructor() {
|
|
14
17
|
this.placement = 'top';
|
|
@@ -30,6 +33,7 @@ export class PostPopovercontainer {
|
|
|
30
33
|
*/
|
|
31
34
|
async show(target) {
|
|
32
35
|
this.eventTarget = target;
|
|
36
|
+
this.calculatePosition();
|
|
33
37
|
this.popoverRef.showPopover();
|
|
34
38
|
}
|
|
35
39
|
/**
|
|
@@ -46,6 +50,7 @@ export class PostPopovercontainer {
|
|
|
46
50
|
*/
|
|
47
51
|
async toggle(target, force) {
|
|
48
52
|
this.eventTarget = target;
|
|
53
|
+
this.calculatePosition();
|
|
49
54
|
this.popoverRef.togglePopover(force);
|
|
50
55
|
return this.popoverRef.matches(':popover-open');
|
|
51
56
|
}
|
|
@@ -119,9 +124,9 @@ export class PostPopovercontainer {
|
|
|
119
124
|
}
|
|
120
125
|
}
|
|
121
126
|
render() {
|
|
122
|
-
return (h(Host, { "data-version": version }, h("div", { class: "popover", part: "popover", ref: (el) => (this.popoverRef = el) }, this.arrow && (h("span", { class: "arrow", ref: el => {
|
|
127
|
+
return (h(Host, { key: '684e4cc286af23b25ca15f0ca3fd86ad017a16f1', "data-version": version }, h("div", { key: '6c34a3008e50b6aecfd176e9ca7fef08946ab18d', class: "popover", part: "popover", ref: (el) => (this.popoverRef = el) }, this.arrow && (h("span", { class: "arrow", ref: el => {
|
|
123
128
|
this.arrowRef = el;
|
|
124
|
-
} })), h("slot",
|
|
129
|
+
} })), h("slot", { key: 'a79f799160b2cda12517ccd684e190304d4eb4ae' }))));
|
|
125
130
|
}
|
|
126
131
|
static get is() { return "post-popovercontainer"; }
|
|
127
132
|
static get encapsulation() { return "shadow"; }
|
|
@@ -147,7 +152,7 @@ export class PostPopovercontainer {
|
|
|
147
152
|
"Placement": {
|
|
148
153
|
"location": "import",
|
|
149
154
|
"path": "@floating-ui/dom",
|
|
150
|
-
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.
|
|
155
|
+
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.6.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts::Placement"
|
|
151
156
|
}
|
|
152
157
|
}
|
|
153
158
|
},
|
|
@@ -285,4 +290,3 @@ export class PostPopovercontainer {
|
|
|
285
290
|
}
|
|
286
291
|
static get elementRef() { return "host"; }
|
|
287
292
|
}
|
|
288
|
-
//# sourceMappingURL=post-popovercontainer.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.tab-title[role=tab]{display:inline-block;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:#fff;color:var(--post-contrast-color)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:#fff;color:var(--post-contrast-color);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:#fff;color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:is(.bg-dark,.bg-primary,.bg-black,.bg-
|
|
1
|
+
.tab-title[role=tab]{display:inline-block;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:#fff;color:var(--post-contrast-color)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:#fff;color:var(--post-contrast-color);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:#fff;color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:is(.bg-dark,.bg-primary,.bg-black,.bg-danger,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.bg-success-green,.bg-error-red) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:is(.bg-dark,.bg-primary,.bg-black,.bg-danger,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.bg-success-green,.bg-error-red) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success .tab-title{background-color:#2c911c}.bg-success .tab-title.active{background-color:#2c911c}.bg-success .nav-item{background-color:#2c911c}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-danger .tab-title{background-color:#a51728}.bg-danger .tab-title.active{background-color:#a51728}.bg-danger .nav-item{background-color:#a51728}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}.bg-success-green .tab-title{background-color:#2c871d}.bg-success-green .tab-title.active{background-color:#2c871d}.bg-success-green .nav-item{background-color:#2c871d}.bg-error-red .tab-title{background-color:#a51728}.bg-error-red .tab-title.active{background-color:#a51728}.bg-error-red .nav-item{background-color:#a51728}.bg-warning-orange .tab-title{background-color:#f49e00}.bg-warning-orange .tab-title.active{background-color:#f49e00}.bg-warning-orange .nav-item{background-color:#f49e00}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!
|
|
2
2
|
* Copyright 2021 by Swiss Post, Information Technology
|
|
3
3
|
*/:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { version } from "../../../package.json";
|
|
3
3
|
import { checkNonEmpty } from "../../utils";
|
|
4
|
+
/**
|
|
5
|
+
* @slot default - Slot for the content of the tab header.
|
|
6
|
+
*/
|
|
4
7
|
export class PostTabHeader {
|
|
5
8
|
constructor() {
|
|
6
9
|
this.tabId = undefined;
|
|
@@ -13,7 +16,7 @@ export class PostTabHeader {
|
|
|
13
16
|
this.tabId = `tab-${this.host.id || crypto.randomUUID()}`;
|
|
14
17
|
}
|
|
15
18
|
render() {
|
|
16
|
-
return (h(Host, { "data-version": version }, h("button", { "aria-selected": "false", class: "tab-title", id: this.tabId, role: "tab", tabindex: "-1", type: "button" }, h("slot",
|
|
19
|
+
return (h(Host, { key: '5685ea424c0e59351a7df7e6b990740067f7e986', "data-version": version }, h("button", { key: 'f32ebddafa7450b081c88e44405f59396a0e6b97', "aria-selected": "false", class: "tab-title", id: this.tabId, role: "tab", tabindex: "-1", type: "button" }, h("slot", { key: '95022af953bbbaf41b5eac4594bf00dc4b12fb37' }))));
|
|
17
20
|
}
|
|
18
21
|
static get is() { return "post-tab-header"; }
|
|
19
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -66,4 +69,3 @@ export class PostTabHeader {
|
|
|
66
69
|
}];
|
|
67
70
|
}
|
|
68
71
|
}
|
|
69
|
-
//# sourceMappingURL=post-tab-header.js.map
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { version } from "../../../package.json";
|
|
3
|
+
/**
|
|
4
|
+
* @slot default - Slot for placing the content of the tab panel.
|
|
5
|
+
*/
|
|
3
6
|
export class PostTabPanel {
|
|
4
7
|
constructor() {
|
|
5
8
|
this.panelId = undefined;
|
|
@@ -10,7 +13,7 @@ export class PostTabPanel {
|
|
|
10
13
|
this.panelId = `panel-${this.host.id || crypto.randomUUID()}`;
|
|
11
14
|
}
|
|
12
15
|
render() {
|
|
13
|
-
return (h(Host, { "data-version": version }, h("div", { class: "tab-pane", id: this.panelId, role: "tabpanel" }, h("slot",
|
|
16
|
+
return (h(Host, { key: '95b6c12c52ef3aa66235d9c10e9c00730e1eb438', "data-version": version }, h("div", { key: '57dac4559c79ac5db11d6b945273b7126564f2d5', class: "tab-pane", id: this.panelId, role: "tabpanel" }, h("slot", { key: 'ee9c6c82a6e9cadb56d914c483bae83907709a17' }))));
|
|
14
17
|
}
|
|
15
18
|
static get is() { return "post-tab-panel"; }
|
|
16
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,4 +55,3 @@ export class PostTabPanel {
|
|
|
52
55
|
}
|
|
53
56
|
static get elementRef() { return "host"; }
|
|
54
57
|
}
|
|
55
|
-
//# sourceMappingURL=post-tab-panel.js.map
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { version } from "../../../package.json";
|
|
3
3
|
import { fadeIn, fadeOut } from "../../animations";
|
|
4
|
+
/**
|
|
5
|
+
* @slot tabs - Slot for placing tab headers. Each tab header should be a <post-tab-header> element.
|
|
6
|
+
* @slot default - Slot for placing tab panels. Each tab panel should be a <post-tab-panel> element.
|
|
7
|
+
*/
|
|
4
8
|
export class PostTabs {
|
|
5
9
|
constructor() {
|
|
6
10
|
this.isLoaded = false;
|
|
@@ -135,7 +139,7 @@ export class PostTabs {
|
|
|
135
139
|
nextTabTitle.focus();
|
|
136
140
|
}
|
|
137
141
|
render() {
|
|
138
|
-
return (h(Host, { "data-version": version }, h("div", { class: "tabs-wrapper" }, h("div", { class: "tabs", role: "tablist" }, h("slot", { name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { class: "tab-content" }, h("slot", { onSlotchange: () => this.moveMisplacedTabs() }))));
|
|
142
|
+
return (h(Host, { key: '9acb49f74c51e2d446dce1fcaef76049bcbaf97d', "data-version": version }, h("div", { key: 'dad67c5c56b0c158326cfd6d248bb3273398d93b', class: "tabs-wrapper" }, h("div", { key: '6110e4fd09185f7853503c1c399e16b8226ff032', class: "tabs", role: "tablist" }, h("slot", { key: '85028464cfdbd75d3fbfc27d672acef5acb68a49', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: 'abc56a3bc8a6f08066f0fe88048ed4281e05c30d', class: "tab-content" }, h("slot", { key: 'ecbbc08080d4a967448e620bdc9500162f6e6215', onSlotchange: () => this.moveMisplacedTabs() }))));
|
|
139
143
|
}
|
|
140
144
|
static get is() { return "post-tabs"; }
|
|
141
145
|
static get encapsulation() { return "shadow"; }
|
|
@@ -229,4 +233,3 @@ export class PostTabs {
|
|
|
229
233
|
}
|
|
230
234
|
static get elementRef() { return "host"; }
|
|
231
235
|
}
|
|
232
|
-
//# sourceMappingURL=post-tabs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:host{--post-contrast-color: #fff;--post-bg-rgb: 51, 51, 51}post-popovercontainer::part(popover){padding:.25rem .5rem;max-width:13.5rem;min-height:1rem}
|
|
1
|
+
:host{--post-contrast-color: #fff;--post-bg-rgb: 51, 51, 51}post-popovercontainer::part(popover){padding:.25rem .5rem;max-width:13.5rem;min-height:1rem}post-popovercontainer.has-arrow::part(popover)::after{position:absolute;content:"";inset:-13px;z-index:-1}
|