@swisspost/design-system-components 2.0.3 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/dist/cjs/index-f243643b.js +4 -0
  2. package/dist/cjs/index.cjs.js +14 -12
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{package-628f6e9c.js → package-96a46572.js} +1 -1
  5. package/dist/cjs/{post-accordion-da546aa2.js → post-accordion-9d27458a.js} +1 -1
  6. package/dist/cjs/{post-accordion-item-33d5593a.js → post-accordion-item-61fb55fa.js} +1 -1
  7. package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
  8. package/dist/cjs/post-accordion.cjs.entry.js +2 -2
  9. package/dist/cjs/{post-alert-26c1bcda.js → post-alert-a810f5b9.js} +1 -1
  10. package/dist/cjs/post-alert.cjs.entry.js +2 -2
  11. package/dist/cjs/{post-collapsible-278b2a71.js → post-collapsible-1867015c.js} +1 -1
  12. package/dist/cjs/post-collapsible.cjs.entry.js +2 -2
  13. package/dist/cjs/post-components.cjs.js +1 -1
  14. package/dist/cjs/{post-icon-fd09bc54.js → post-icon-07a67b83.js} +1 -1
  15. package/dist/cjs/post-icon.cjs.entry.js +2 -2
  16. package/dist/cjs/{post-popover-1e454296.js → post-popover-9610b64c.js} +1 -1
  17. package/dist/cjs/post-popover.cjs.entry.js +2 -2
  18. package/dist/cjs/{post-popovercontainer-5e355de3.js → post-popovercontainer-003c0819.js} +1 -1
  19. package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
  20. package/dist/cjs/post-rating-75574abd.js +88 -0
  21. package/dist/cjs/post-rating.cjs.entry.js +11 -0
  22. package/dist/cjs/post-tab-header-85424e32.js +32 -0
  23. package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
  24. package/dist/cjs/{post-tab-panel-67ba226d.js → post-tab-panel-6a9c4a4f.js} +2 -2
  25. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  26. package/dist/cjs/{post-tabs-71510ced.js → post-tabs-2eb6f376.js} +3 -3
  27. package/dist/cjs/post-tabs.cjs.entry.js +2 -2
  28. package/dist/cjs/{post-tooltip-b6bbb3e4.js → post-tooltip-260d0627.js} +2 -2
  29. package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
  30. package/dist/collection/collection-manifest.json +1 -0
  31. package/dist/collection/components/post-rating/post-rating.css +3 -0
  32. package/dist/collection/components/post-rating/post-rating.js +202 -0
  33. package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
  34. package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
  35. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  36. package/dist/collection/components/post-tabs/post-tabs.css +1 -1
  37. package/dist/collection/components/post-tabs/post-tabs.js +1 -1
  38. package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
  39. package/dist/collection/index.js +1 -0
  40. package/dist/components/index.js +1 -0
  41. package/dist/components/package.js +1 -1
  42. package/dist/components/post-rating.d.ts +11 -0
  43. package/dist/components/post-rating.js +6 -0
  44. package/dist/components/post-rating2.js +113 -0
  45. package/dist/components/post-tab-header2.js +2 -2
  46. package/dist/components/post-tab-panel2.js +1 -1
  47. package/dist/components/post-tabs2.js +2 -2
  48. package/dist/components/post-tooltip2.js +1 -1
  49. package/dist/docs.json +149 -2
  50. package/dist/esm/index-1708db56.js +4 -0
  51. package/dist/esm/index.js +13 -12
  52. package/dist/esm/loader.js +1 -1
  53. package/dist/esm/{package-15929f57.js → package-50a9c0c3.js} +1 -1
  54. package/dist/esm/{post-accordion-be080240.js → post-accordion-33fe4f0e.js} +1 -1
  55. package/dist/esm/{post-accordion-item-7b3c726b.js → post-accordion-item-1fd95c9f.js} +1 -1
  56. package/dist/esm/post-accordion-item.entry.js +2 -2
  57. package/dist/esm/post-accordion.entry.js +2 -2
  58. package/dist/esm/{post-alert-37f853eb.js → post-alert-65d67f69.js} +1 -1
  59. package/dist/esm/post-alert.entry.js +2 -2
  60. package/dist/esm/{post-collapsible-967bb191.js → post-collapsible-50dc361b.js} +1 -1
  61. package/dist/esm/post-collapsible.entry.js +2 -2
  62. package/dist/esm/post-components.js +1 -1
  63. package/dist/esm/{post-icon-ba163099.js → post-icon-00f314ae.js} +1 -1
  64. package/dist/esm/post-icon.entry.js +2 -2
  65. package/dist/esm/{post-popover-69694fa6.js → post-popover-40bfd1b7.js} +1 -1
  66. package/dist/esm/post-popover.entry.js +2 -2
  67. package/dist/esm/{post-popovercontainer-da870ff0.js → post-popovercontainer-62e1fd82.js} +1 -1
  68. package/dist/esm/post-popovercontainer.entry.js +2 -2
  69. package/dist/esm/post-rating-f7a79ed4.js +86 -0
  70. package/dist/esm/post-rating.entry.js +3 -0
  71. package/dist/esm/post-tab-header-0683252a.js +30 -0
  72. package/dist/esm/post-tab-header.entry.js +2 -2
  73. package/dist/esm/{post-tab-panel-d89c4c50.js → post-tab-panel-37a1331f.js} +2 -2
  74. package/dist/esm/post-tab-panel.entry.js +2 -2
  75. package/dist/esm/{post-tabs-e995886a.js → post-tabs-c4e65a45.js} +3 -3
  76. package/dist/esm/post-tabs.entry.js +2 -2
  77. package/dist/esm/{post-tooltip-0ec6a388.js → post-tooltip-033f63fa.js} +2 -2
  78. package/dist/esm/post-tooltip.entry.js +2 -2
  79. package/dist/post-components/index.esm.js +1 -1
  80. package/dist/post-components/p-00dcad55.js +1 -0
  81. package/dist/post-components/p-01e57281.entry.js +1 -0
  82. package/dist/post-components/p-06c989fb.entry.js +1 -0
  83. package/dist/post-components/p-07ffb6de.entry.js +1 -0
  84. package/dist/post-components/p-26c658c1.entry.js +1 -0
  85. package/dist/post-components/p-2a964700.js +1 -0
  86. package/dist/post-components/{p-ac7b779e.js → p-35f14000.js} +1 -1
  87. package/dist/post-components/{p-d9c9ed63.js → p-3fb09ecd.js} +1 -1
  88. package/dist/post-components/p-4b0a45d8.entry.js +1 -0
  89. package/dist/post-components/p-53e8e4e7.entry.js +1 -0
  90. package/dist/post-components/{p-6b3ba10a.js → p-598b11b6.js} +1 -1
  91. package/dist/post-components/p-5b6ee52a.entry.js +1 -0
  92. package/dist/post-components/{p-94256868.js → p-7e7833f7.js} +3 -3
  93. package/dist/post-components/p-8139faa4.entry.js +1 -0
  94. package/dist/post-components/p-8cd6d7c2.js +1 -0
  95. package/dist/post-components/{p-1f284e66.js → p-99a9602e.js} +1 -1
  96. package/dist/post-components/p-a2775477.entry.js +1 -0
  97. package/dist/post-components/p-a905b16b.entry.js +1 -0
  98. package/dist/post-components/p-aa02111b.js +1 -0
  99. package/dist/post-components/{p-a9d59b04.js → p-b135d3e2.js} +1 -1
  100. package/dist/post-components/p-b81e61ed.entry.js +1 -0
  101. package/dist/post-components/p-d6bc34ff.js +1 -0
  102. package/dist/post-components/p-da2b8e26.entry.js +1 -0
  103. package/dist/post-components/{p-e8d17225.js → p-f0476913.js} +1 -1
  104. package/dist/post-components/{p-5ecceba0.js → p-ff0e1564.js} +1 -1
  105. package/dist/post-components/post-components.esm.js +1 -1
  106. package/dist/types/components/post-rating/post-rating.d.ts +43 -0
  107. package/dist/types/components.d.ts +69 -0
  108. package/dist/types/index.d.ts +1 -0
  109. package/package.json +3 -3
  110. package/dist/cjs/post-tab-header-5c8b9a0d.js +0 -32
  111. package/dist/esm/post-tab-header-14ed99cd.js +0 -30
  112. package/dist/post-components/p-00ab91d9.entry.js +0 -1
  113. package/dist/post-components/p-04f47e54.entry.js +0 -1
  114. package/dist/post-components/p-209e33a5.js +0 -1
  115. package/dist/post-components/p-282e21c2.entry.js +0 -1
  116. package/dist/post-components/p-34a772e3.entry.js +0 -1
  117. package/dist/post-components/p-46c47aa4.entry.js +0 -1
  118. package/dist/post-components/p-51fe19e0.js +0 -1
  119. package/dist/post-components/p-557f0f10.entry.js +0 -1
  120. package/dist/post-components/p-61d98756.js +0 -1
  121. package/dist/post-components/p-82f4f464.entry.js +0 -1
  122. package/dist/post-components/p-98cb0bbd.entry.js +0 -1
  123. package/dist/post-components/p-9ee95668.entry.js +0 -1
  124. package/dist/post-components/p-a0d342e4.entry.js +0 -1
  125. package/dist/post-components/p-e1bf894f.entry.js +0 -1
  126. package/dist/post-components/p-f47b0207.js +0 -1
@@ -1,30 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-1708db56.js';
2
- import { v as version } from './package-15929f57.js';
3
- import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
4
-
5
- const postTabHeaderCss = ".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)}}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */: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}";
6
- const PostTabHeaderStyle0 = postTabHeaderCss;
7
-
8
- const PostTabHeader = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- this.tabId = undefined;
12
- this.panel = undefined;
13
- }
14
- validateFor(newValue) {
15
- checkNonEmpty(newValue, 'The "panel" prop is required for the post-tab-header.');
16
- }
17
- componentWillLoad() {
18
- this.tabId = `tab-${this.host.id || crypto.randomUUID()}`;
19
- }
20
- render() {
21
- 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' }))));
22
- }
23
- get host() { return getElement(this); }
24
- static get watchers() { return {
25
- "panel": ["validateFor"]
26
- }; }
27
- };
28
- PostTabHeader.style = PostTabHeaderStyle0;
29
-
30
- export { PostTabHeader as P };
@@ -1 +0,0 @@
1
- export{P as post_tabs}from"./p-51fe19e0.js";import"./p-10b4cf7a.js";import"./p-f47b0207.js";import"./p-2737eaf5.js";
@@ -1 +0,0 @@
1
- export{P as post_popover}from"./p-5ecceba0.js";import"./p-10b4cf7a.js";import"./p-f47b0207.js";import"./p-6adeaa6c.js";
@@ -1 +0,0 @@
1
- import{r as o,h as t,H as r,g as b}from"./p-10b4cf7a.js";import{v as a}from"./p-f47b0207.js";import{c as e}from"./p-b095519d.js";const c=class{constructor(t){o(this,t),this.tabId=void 0,this.panel=void 0}validateFor(o){e(o,'The "panel" prop is required for the post-tab-header.')}componentWillLoad(){this.tabId=`tab-${this.host.id||crypto.randomUUID()}`}render(){return t(r,{key:"5685ea424c0e59351a7df7e6b990740067f7e986","data-version":a},t("button",{key:"f32ebddafa7450b081c88e44405f59396a0e6b97","aria-selected":"false",class:"tab-title",id:this.tabId,role:"tab",tabindex:"-1",type:"button"},t("slot",{key:"95022af953bbbaf41b5eac4594bf00dc4b12fb37"})))}get host(){return b(this)}static get watchers(){return{panel:["validateFor"]}}};c.style='.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)}}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */: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}';export{c as P}
@@ -1 +0,0 @@
1
- export{P as post_accordion}from"./p-a9d59b04.js";import"./p-10b4cf7a.js";import"./p-f47b0207.js";
@@ -1 +0,0 @@
1
- export{P as post_tab_panel}from"./p-61d98756.js";import"./p-10b4cf7a.js";import"./p-f47b0207.js";
@@ -1 +0,0 @@
1
- export{P as post_accordion_item}from"./p-e8d17225.js";import"./p-10b4cf7a.js";import"./p-f47b0207.js";import"./p-f0e82e63.js";import"./p-440193f4.js";
@@ -1 +0,0 @@
1
- import{r as a,c as r,h as t,H as o,g as e}from"./p-10b4cf7a.js";import{v as s}from"./p-f47b0207.js";import{f as b,a as c}from"./p-2737eaf5.js";const i=class{constructor(t){a(this,t),this.tabChange=r(this,"tabChange",7),this.isLoaded=!1,this.activePanel=void 0}get tabs(){return this.host.querySelectorAll("post-tab-header")}componentDidLoad(){this.moveMisplacedTabs(),this.enableTabs();const a=this.activePanel||this.tabs.item(0).panel;this.show(a),this.isLoaded=!0}async show(a){var r;if(a===(null===(r=this.activeTab)||void 0===r?void 0:r.panel))return;const t=this.activeTab,o=this.host.querySelector(`post-tab-header[panel=${a}]`);this.activateTab(o),this.showing&&(this.showing.effect.target.style.display="none",this.showing.finish()),!t||this.showing||this.hiding||this.hidePanel(t.panel),this.hiding&&await this.hiding.finished,this.showSelectedPanel(),this.showing&&await this.showing.finished,this.tabChange.emit(this.activeTab.panel)}moveMisplacedTabs(){this.tabs&&this.tabs.forEach((a=>{"tabs"!==a.getAttribute("slot")&&a.setAttribute("slot","tabs")}))}enableTabs(){this.tabs&&(this.tabs.forEach((async a=>{await a.componentOnReady();const r=a.shadowRoot.querySelector(".tab-title");if(r.getAttribute("aria-controls"))return;const t=this.getPanel(a.panel).shadowRoot.querySelector(".tab-pane");r.setAttribute("aria-controls",t.id),t.setAttribute("aria-labelledby",r.id),a.addEventListener("click",(()=>{this.show(a.panel)})),a.addEventListener("keydown",(({key:r})=>{"ArrowRight"!==r&&"ArrowLeft"!==r||this.navigateTabs(a,r)}))})),this.activeTab&&!this.activeTab.isConnected&&this.show(this.tabs.item(0).panel))}activateTab(a){if(this.activeTab){const a=this.activeTab.shadowRoot.querySelector(".tab-title");a.setAttribute("aria-selected","false"),a.setAttribute("tabindex","-1"),a.classList.remove("active")}const r=a.shadowRoot.querySelector(".tab-title");r.setAttribute("aria-selected","true"),r.removeAttribute("tabindex"),r.classList.add("active"),this.activeTab=a}hidePanel(a){const r=this.getPanel(a);r&&(this.hiding=b(r),this.hiding.onfinish=()=>{r.style.display="none",this.hiding=null})}showSelectedPanel(){const a=this.getPanel(this.activeTab.panel);a.style.display="block",this.isLoaded&&(this.showing=c(a),this.showing.onfinish=()=>{this.showing=null})}getPanel(a){return this.host.querySelector(`post-tab-panel[name=${a}]`)}navigateTabs(a,r){const t=Array.from(this.tabs).indexOf(a);let o;o="ArrowRight"===r?this.tabs[t+1]||this.tabs[0]:this.tabs[t-1]||this.tabs[this.tabs.length-1],o&&o.shadowRoot.querySelector(".tab-title").focus()}render(){return t(o,{key:"9acb49f74c51e2d446dce1fcaef76049bcbaf97d","data-version":s},t("div",{key:"dad67c5c56b0c158326cfd6d248bb3273398d93b",class:"tabs-wrapper"},t("div",{key:"6110e4fd09185f7853503c1c399e16b8226ff032",class:"tabs",role:"tablist"},t("slot",{key:"85028464cfdbd75d3fbfc27d672acef5acb68a49",name:"tabs",onSlotchange:()=>this.enableTabs()}))),t("div",{key:"abc56a3bc8a6f08066f0fe88048ed4281e05c30d",class:"tab-content"},t("slot",{key:"ecbbc08080d4a967448e620bdc9500162f6e6215",onSlotchange:()=>this.moveMisplacedTabs()})))}get host(){return e(this)}};i.style='.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:#faf9f8}.tabs-wrapper::after{content:"";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{margin:0;padding:0;list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{margin-block:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-primary .tabs-wrapper{background-color:#333}.bg-white .tabs-wrapper{background-color:#fff}.bg-black .tabs-wrapper{background-color:#000}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-success .tabs-wrapper{background-color:#2c911c}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-danger .tabs-wrapper{background-color:#a51728}.bg-nightblue .tabs-wrapper{background-color:#004976}.bg-nightblue-bright .tabs-wrapper{background-color:#0076a8}.bg-petrol .tabs-wrapper{background-color:#006d68}.bg-petrol-bright .tabs-wrapper{background-color:#00968f}.bg-coral .tabs-wrapper{background-color:#9e2a2f}.bg-coral-bright .tabs-wrapper{background-color:#e03c31}.bg-olive .tabs-wrapper{background-color:#716135}.bg-olive-bright .tabs-wrapper{background-color:#aa9d2e}.bg-purple .tabs-wrapper{background-color:#80276c}.bg-purple-bright .tabs-wrapper{background-color:#c5299b}.bg-aubergine .tabs-wrapper{background-color:#523178}.bg-aubergine-bright .tabs-wrapper{background-color:#7566a0}.bg-success-green .tabs-wrapper{background-color:#2c871d}.bg-error-red .tabs-wrapper{background-color:#a51728}.bg-warning-orange .tabs-wrapper{background-color:#f49e00}.bg-success-background .tabs-wrapper{background-color:#c0debb}.bg-error-background .tabs-wrapper{background-color:#ffdade}.bg-warning-background .tabs-wrapper{background-color:#fce2b2}:host{display:block}';export{i as P}
@@ -1 +0,0 @@
1
- export{P as post_alert}from"./p-ac7b779e.js";import"./p-10b4cf7a.js";import"./p-f47b0207.js";import"./p-2737eaf5.js";import"./p-f0e82e63.js";import"./p-440193f4.js";import"./p-b095519d.js";
@@ -1 +0,0 @@
1
- import{r as a,h as s,H as e,g as t}from"./p-10b4cf7a.js";import{v as o}from"./p-f47b0207.js";const c=class{constructor(s){a(this,s),this.panelId=void 0,this.name=void 0}componentWillLoad(){this.panelId=`panel-${this.host.id||crypto.randomUUID()}`}render(){return s(e,{key:"95b6c12c52ef3aa66235d9c10e9c00730e1eb438","data-version":o},s("div",{key:"57dac4559c79ac5db11d6b945273b7126564f2d5",class:"tab-pane",id:this.panelId,role:"tabpanel"},s("slot",{key:"ee9c6c82a6e9cadb56d914c483bae83907709a17"})))}get host(){return t(this)}};c.style=":host{display:none}";export{c as P}
@@ -1 +0,0 @@
1
- export{P as post_tab_header}from"./p-209e33a5.js";import"./p-10b4cf7a.js";import"./p-f47b0207.js";import"./p-b095519d.js";import"./p-440193f4.js";
@@ -1 +0,0 @@
1
- export{P as post_tooltip}from"./p-94256868.js";import"./p-10b4cf7a.js";import"./p-f47b0207.js";import"./p-6adeaa6c.js";
@@ -1 +0,0 @@
1
- export{P as post_popovercontainer}from"./p-1f284e66.js";import"./p-10b4cf7a.js";import"./p-f47b0207.js";
@@ -1 +0,0 @@
1
- export{P as post_icon}from"./p-d9c9ed63.js";import"./p-10b4cf7a.js";import"./p-f0e82e63.js";import"./p-440193f4.js";import"./p-f47b0207.js";import"./p-b095519d.js";
@@ -1 +0,0 @@
1
- export{P as post_collapsible}from"./p-6b3ba10a.js";import"./p-10b4cf7a.js";import"./p-f47b0207.js";import"./p-f0e82e63.js";import"./p-440193f4.js";
@@ -1 +0,0 @@
1
- const o="2.0.3";export{o as v}