@swisspost/design-system-components 2.0.3 → 2.1.1

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-eae3618f.js} +1 -1
  5. package/dist/cjs/{post-accordion-da546aa2.js → post-accordion-b602e78f.js} +1 -1
  6. package/dist/cjs/{post-accordion-item-33d5593a.js → post-accordion-item-641eaa80.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-5e3a5ceb.js} +1 -1
  10. package/dist/cjs/post-alert.cjs.entry.js +2 -2
  11. package/dist/cjs/{post-collapsible-278b2a71.js → post-collapsible-0b81f11c.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-16928765.js} +1 -1
  15. package/dist/cjs/post-icon.cjs.entry.js +2 -2
  16. package/dist/cjs/{post-popover-1e454296.js → post-popover-fb390ff4.js} +1 -1
  17. package/dist/cjs/post-popover.cjs.entry.js +2 -2
  18. package/dist/cjs/{post-popovercontainer-5e355de3.js → post-popovercontainer-de9326ad.js} +1 -1
  19. package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
  20. package/dist/cjs/post-rating-b85cd922.js +88 -0
  21. package/dist/cjs/post-rating.cjs.entry.js +11 -0
  22. package/dist/cjs/post-tab-header-6adfa1ac.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-0e2a527a.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-5454cc6b.js} +3 -3
  27. package/dist/cjs/post-tabs.cjs.entry.js +2 -2
  28. package/dist/cjs/{post-tooltip-b6bbb3e4.js → post-tooltip-65e18355.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-0bbb84cf.js} +1 -1
  54. package/dist/esm/{post-accordion-be080240.js → post-accordion-1a5ac4ed.js} +1 -1
  55. package/dist/esm/{post-accordion-item-7b3c726b.js → post-accordion-item-b02413be.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-3e076624.js} +1 -1
  59. package/dist/esm/post-alert.entry.js +2 -2
  60. package/dist/esm/{post-collapsible-967bb191.js → post-collapsible-491244ea.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-7e581c2a.js} +1 -1
  64. package/dist/esm/post-icon.entry.js +2 -2
  65. package/dist/esm/{post-popover-69694fa6.js → post-popover-c26ce9a8.js} +1 -1
  66. package/dist/esm/post-popover.entry.js +2 -2
  67. package/dist/esm/{post-popovercontainer-da870ff0.js → post-popovercontainer-ffaee796.js} +1 -1
  68. package/dist/esm/post-popovercontainer.entry.js +2 -2
  69. package/dist/esm/post-rating-b454511a.js +86 -0
  70. package/dist/esm/post-rating.entry.js +3 -0
  71. package/dist/esm/post-tab-header-94356634.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-51f296ab.js} +2 -2
  74. package/dist/esm/post-tab-panel.entry.js +2 -2
  75. package/dist/esm/{post-tabs-e995886a.js → post-tabs-8cb2228e.js} +3 -3
  76. package/dist/esm/post-tabs.entry.js +2 -2
  77. package/dist/esm/{post-tooltip-0ec6a388.js → post-tooltip-9510319a.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-098c757c.entry.js +1 -0
  81. package/dist/post-components/{p-6b3ba10a.js → p-13090693.js} +1 -1
  82. package/dist/post-components/{p-d9c9ed63.js → p-1c5fc3c8.js} +1 -1
  83. package/dist/post-components/p-30112fd8.js +1 -0
  84. package/dist/post-components/p-364d3de1.js +1 -0
  85. package/dist/post-components/p-40934af7.entry.js +1 -0
  86. package/dist/post-components/{p-5ecceba0.js → p-42182423.js} +1 -1
  87. package/dist/post-components/p-543d7d6c.entry.js +1 -0
  88. package/dist/post-components/{p-a9d59b04.js → p-592d18ac.js} +1 -1
  89. package/dist/post-components/p-5e0742f9.entry.js +1 -0
  90. package/dist/post-components/{p-e8d17225.js → p-71fdf5a7.js} +1 -1
  91. package/dist/post-components/p-847fc54e.entry.js +1 -0
  92. package/dist/post-components/p-a25bb7ce.entry.js +1 -0
  93. package/dist/post-components/{p-1f284e66.js → p-b00d931c.js} +1 -1
  94. package/dist/post-components/p-b9ca6fad.entry.js +1 -0
  95. package/dist/post-components/p-bacd38c4.js +1 -0
  96. package/dist/post-components/{p-94256868.js → p-cfaeb120.js} +2 -2
  97. package/dist/post-components/p-d1e7667c.entry.js +1 -0
  98. package/dist/post-components/p-d8973409.entry.js +1 -0
  99. package/dist/post-components/p-e1d5813a.entry.js +1 -0
  100. package/dist/post-components/p-e311f325.js +1 -0
  101. package/dist/post-components/{p-ac7b779e.js → p-ed8e6c4b.js} +1 -1
  102. package/dist/post-components/p-ee598f5b.js +1 -0
  103. package/dist/post-components/p-fb808ad0.entry.js +1 -0
  104. package/dist/post-components/p-fd001ebf.entry.js +1 -0
  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
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-02-29T16:11:29",
2
+ "timestamp": "2025-03-31T11:50:04",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.12.0",
@@ -838,12 +838,16 @@
838
838
  "slots": [],
839
839
  "parts": [],
840
840
  "dependents": [
841
- "post-alert"
841
+ "post-alert",
842
+ "post-rating"
842
843
  ],
843
844
  "dependencies": [],
844
845
  "dependencyGraph": {
845
846
  "post-alert": [
846
847
  "post-icon"
848
+ ],
849
+ "post-rating": [
850
+ "post-icon"
847
851
  ]
848
852
  }
849
853
  },
@@ -1390,6 +1394,149 @@
1390
1394
  ]
1391
1395
  }
1392
1396
  },
1397
+ {
1398
+ "filePath": "src/components/post-rating/post-rating.tsx",
1399
+ "encapsulation": "shadow",
1400
+ "tag": "post-rating",
1401
+ "readme": "# post-rating\n\n\n",
1402
+ "docs": "",
1403
+ "docsTags": [],
1404
+ "usage": {},
1405
+ "props": [
1406
+ {
1407
+ "name": "currentRating",
1408
+ "type": "number",
1409
+ "complexType": {
1410
+ "original": "number",
1411
+ "resolved": "number",
1412
+ "references": {}
1413
+ },
1414
+ "mutable": true,
1415
+ "attr": "current-rating",
1416
+ "reflectToAttr": false,
1417
+ "docs": "Defines the rating that the component should show.",
1418
+ "docsTags": [],
1419
+ "default": "0",
1420
+ "values": [
1421
+ {
1422
+ "type": "number"
1423
+ }
1424
+ ],
1425
+ "optional": false,
1426
+ "required": false
1427
+ },
1428
+ {
1429
+ "name": "label",
1430
+ "type": "string",
1431
+ "complexType": {
1432
+ "original": "string",
1433
+ "resolved": "string",
1434
+ "references": {}
1435
+ },
1436
+ "mutable": false,
1437
+ "attr": "label",
1438
+ "reflectToAttr": false,
1439
+ "docs": "Defines a hidden label for the component.",
1440
+ "docsTags": [],
1441
+ "default": "'Rating'",
1442
+ "values": [
1443
+ {
1444
+ "type": "string"
1445
+ }
1446
+ ],
1447
+ "optional": false,
1448
+ "required": false
1449
+ },
1450
+ {
1451
+ "name": "readonly",
1452
+ "type": "boolean",
1453
+ "complexType": {
1454
+ "original": "boolean",
1455
+ "resolved": "boolean",
1456
+ "references": {}
1457
+ },
1458
+ "mutable": false,
1459
+ "attr": "readonly",
1460
+ "reflectToAttr": false,
1461
+ "docs": "Defines if the component is readonly or not.\nThis usually should be used together with the `currentRating` property.",
1462
+ "docsTags": [],
1463
+ "default": "false",
1464
+ "values": [
1465
+ {
1466
+ "type": "boolean"
1467
+ }
1468
+ ],
1469
+ "optional": false,
1470
+ "required": false
1471
+ },
1472
+ {
1473
+ "name": "stars",
1474
+ "type": "number",
1475
+ "complexType": {
1476
+ "original": "number",
1477
+ "resolved": "number",
1478
+ "references": {}
1479
+ },
1480
+ "mutable": false,
1481
+ "attr": "stars",
1482
+ "reflectToAttr": false,
1483
+ "docs": "Defines the total amount of stars rendered in the component.",
1484
+ "docsTags": [],
1485
+ "default": "5",
1486
+ "values": [
1487
+ {
1488
+ "type": "number"
1489
+ }
1490
+ ],
1491
+ "optional": false,
1492
+ "required": false
1493
+ }
1494
+ ],
1495
+ "methods": [],
1496
+ "events": [
1497
+ {
1498
+ "event": "change",
1499
+ "detail": "{ value: number; }",
1500
+ "bubbles": true,
1501
+ "complexType": {
1502
+ "original": "{ value: number }",
1503
+ "resolved": "{ value: number; }",
1504
+ "references": {}
1505
+ },
1506
+ "cancelable": true,
1507
+ "composed": true,
1508
+ "docs": "An event emitted whenever the component's value has changed (on blur).\nThe event payload can be used like so: `event.detail.value`.",
1509
+ "docsTags": []
1510
+ },
1511
+ {
1512
+ "event": "input",
1513
+ "detail": "{ value: number; }",
1514
+ "bubbles": true,
1515
+ "complexType": {
1516
+ "original": "{ value: number }",
1517
+ "resolved": "{ value: number; }",
1518
+ "references": {}
1519
+ },
1520
+ "cancelable": true,
1521
+ "composed": true,
1522
+ "docs": "An event emitted whenever the component's value has changed (on input).\nThe event payload can be used like so: `event.detail.value`.",
1523
+ "docsTags": []
1524
+ }
1525
+ ],
1526
+ "listeners": [],
1527
+ "styles": [],
1528
+ "slots": [],
1529
+ "parts": [],
1530
+ "dependents": [],
1531
+ "dependencies": [
1532
+ "post-icon"
1533
+ ],
1534
+ "dependencyGraph": {
1535
+ "post-rating": [
1536
+ "post-icon"
1537
+ ]
1538
+ }
1539
+ },
1393
1540
  {
1394
1541
  "filePath": "src/components/post-tab-header/post-tab-header.tsx",
1395
1542
  "encapsulation": "shadow",
@@ -1896,6 +1896,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1896
1896
  return import(
1897
1897
  /* webpackMode: "lazy" */
1898
1898
  './post-popover.entry.js').then(processMod, consoleError);
1899
+ case 'post-rating':
1900
+ return import(
1901
+ /* webpackMode: "lazy" */
1902
+ './post-rating.entry.js').then(processMod, consoleError);
1899
1903
  case 'post-tab-header':
1900
1904
  return import(
1901
1905
  /* webpackMode: "lazy" */
package/dist/esm/index.js CHANGED
@@ -1,16 +1,17 @@
1
- export { P as PostAccordion } from './post-accordion-be080240.js';
2
- export { P as PostAccordionItem } from './post-accordion-item-7b3c726b.js';
3
- export { P as PostAlert } from './post-alert-37f853eb.js';
4
- export { P as PostCollapsible } from './post-collapsible-967bb191.js';
5
- export { P as PostIcon } from './post-icon-ba163099.js';
6
- export { P as PostPopover } from './post-popover-69694fa6.js';
7
- export { P as PostPopovercontainer } from './post-popovercontainer-da870ff0.js';
8
- export { P as PostTabs } from './post-tabs-e995886a.js';
9
- export { P as PostTabHeader } from './post-tab-header-14ed99cd.js';
10
- export { P as PostTabPanel } from './post-tab-panel-d89c4c50.js';
11
- export { P as PostTooltip } from './post-tooltip-0ec6a388.js';
1
+ export { P as PostAccordion } from './post-accordion-1a5ac4ed.js';
2
+ export { P as PostAccordionItem } from './post-accordion-item-b02413be.js';
3
+ export { P as PostAlert } from './post-alert-3e076624.js';
4
+ export { P as PostCollapsible } from './post-collapsible-491244ea.js';
5
+ export { P as PostIcon } from './post-icon-7e581c2a.js';
6
+ export { P as PostPopover } from './post-popover-c26ce9a8.js';
7
+ export { P as PostPopovercontainer } from './post-popovercontainer-ffaee796.js';
8
+ export { P as PostRating } from './post-rating-b454511a.js';
9
+ export { P as PostTabs } from './post-tabs-8cb2228e.js';
10
+ export { P as PostTabHeader } from './post-tab-header-94356634.js';
11
+ export { P as PostTabPanel } from './post-tab-panel-51f296ab.js';
12
+ export { P as PostTooltip } from './post-tooltip-9510319a.js';
12
13
  import './index-1708db56.js';
13
- import './package-15929f57.js';
14
+ import './package-0bbb84cf.js';
14
15
  import './index-b444db27.js';
15
16
  import './constants-8d548297.js';
16
17
  import './fade-7fd71785.js';
@@ -3,7 +3,7 @@ export { s as setNonce } from './index-1708db56.js';
3
3
 
4
4
  const defineCustomElements = (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
6
- return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[4],"headingLevel":[2,"heading-level"],"id":[32],"isOpen":[32],"toggle":[64]},[[0,"collapseChange","onCollapseChange"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert",[[1,"post-alert",{"dismissible":[4],"dismissLabel":[1,"dismiss-label"],"fixed":[4],"icon":[1],"type":[1],"alertId":[32],"classes":[32],"hasActions":[32],"hasHeading":[32],"onDismissButtonClick":[32],"dismiss":[64]},null,{"dismissible":["validateDismissible"],"dismissLabel":["validateDismissLabel"],"fixed":["validateFixed"],"icon":["validateIcon"],"type":["validateType"]}]]],["post-popover",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-tooltip",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-accordion",[[1,"post-accordion",{"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"collapseChange","collapseChangeHandler"]]]]],["post-tab-header",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible",[[1,"post-collapsible",{"collapsed":[4],"id":[32],"isOpen":[32],"toggle":[64]},null,{"collapsed":["validateCollapsed"]}]]],["post-icon",[[1,"post-icon",{"animation":[1],"base":[1],"flipH":[4,"flip-h"],"flipV":[4,"flip-v"],"name":[1],"rotate":[2],"scale":[2],"svgStyles":[32],"svgOutput":[32]},null,{"animation":["validateAnimation"],"base":["validateBase"],"flipH":["validateFlipH"],"flipV":["validateFlipV"],"name":["validateName"],"rotate":["validateRotate"],"scale":["validateScale"]}]]],["post-popovercontainer",[[1,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]]], options);
6
+ return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[4],"headingLevel":[2,"heading-level"],"id":[32],"isOpen":[32],"toggle":[64]},[[0,"collapseChange","onCollapseChange"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert",[[1,"post-alert",{"dismissible":[4],"dismissLabel":[1,"dismiss-label"],"fixed":[4],"icon":[1],"type":[1],"alertId":[32],"classes":[32],"hasActions":[32],"hasHeading":[32],"onDismissButtonClick":[32],"dismiss":[64]},null,{"dismissible":["validateDismissible"],"dismissLabel":["validateDismissLabel"],"fixed":["validateFixed"],"icon":["validateIcon"],"type":["validateType"]}]]],["post-popover",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-rating",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tooltip",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-accordion",[[1,"post-accordion",{"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"collapseChange","collapseChangeHandler"]]]]],["post-tab-header",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible",[[1,"post-collapsible",{"collapsed":[4],"id":[32],"isOpen":[32],"toggle":[64]},null,{"collapsed":["validateCollapsed"]}]]],["post-icon",[[1,"post-icon",{"animation":[1],"base":[1],"flipH":[4,"flip-h"],"flipV":[4,"flip-v"],"name":[1],"rotate":[2],"scale":[2],"svgStyles":[32],"svgOutput":[32]},null,{"animation":["validateAnimation"],"base":["validateBase"],"flipH":["validateFlipH"],"flipV":["validateFlipV"],"name":["validateName"],"rotate":["validateRotate"],"scale":["validateScale"]}]]],["post-popovercontainer",[[1,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]]], options);
7
7
  };
8
8
 
9
9
  export { defineCustomElements };
@@ -1,3 +1,3 @@
1
- const version = "2.0.3";
1
+ const version = "2.1.1";
2
2
 
3
3
  export { version as v };
@@ -1,5 +1,5 @@
1
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';
2
+ import { v as version } from './package-0bbb84cf.js';
3
3
 
4
4
  const postAccordionCss = ":host{display:block}";
5
5
  const PostAccordionStyle0 = postAccordionCss;
@@ -1,5 +1,5 @@
1
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';
2
+ import { v as version } from './package-0bbb84cf.js';
3
3
  import { c as checkEmptyOrOneOf } from './index-b444db27.js';
4
4
 
5
5
  const HEADING_LEVELS = [1, 2, 3, 4, 5, 6];
@@ -1,5 +1,5 @@
1
- export { P as post_accordion_item } from './post-accordion-item-7b3c726b.js';
1
+ export { P as post_accordion_item } from './post-accordion-item-b02413be.js';
2
2
  import './index-1708db56.js';
3
- import './package-15929f57.js';
3
+ import './package-0bbb84cf.js';
4
4
  import './index-b444db27.js';
5
5
  import './constants-8d548297.js';
@@ -1,3 +1,3 @@
1
- export { P as post_accordion } from './post-accordion-be080240.js';
1
+ export { P as post_accordion } from './post-accordion-1a5ac4ed.js';
2
2
  import './index-1708db56.js';
3
- import './package-15929f57.js';
3
+ import './package-0bbb84cf.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1708db56.js';
2
- import { v as version } from './package-15929f57.js';
2
+ import { v as version } from './package-0bbb84cf.js';
3
3
  import { f as fadeOut } from './fade-7fd71785.js';
4
4
  import { a as checkType, b as checkEmptyOrPattern, c as checkEmptyOrOneOf } from './index-b444db27.js';
5
5
  import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
@@ -1,6 +1,6 @@
1
- export { P as post_alert } from './post-alert-37f853eb.js';
1
+ export { P as post_alert } from './post-alert-3e076624.js';
2
2
  import './index-1708db56.js';
3
- import './package-15929f57.js';
3
+ import './package-0bbb84cf.js';
4
4
  import './fade-7fd71785.js';
5
5
  import './index-b444db27.js';
6
6
  import './constants-8d548297.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1708db56.js';
2
- import { v as version } from './package-15929f57.js';
2
+ import { v as version } from './package-0bbb84cf.js';
3
3
  import { d as checkEmptyOrType } from './index-b444db27.js';
4
4
 
5
5
  function isMotionReduced() {
@@ -1,5 +1,5 @@
1
- export { P as post_collapsible } from './post-collapsible-967bb191.js';
1
+ export { P as post_collapsible } from './post-collapsible-491244ea.js';
2
2
  import './index-1708db56.js';
3
- import './package-15929f57.js';
3
+ import './package-0bbb84cf.js';
4
4
  import './index-b444db27.js';
5
5
  import './constants-8d548297.js';
@@ -14,5 +14,5 @@ const patchBrowser = () => {
14
14
  };
15
15
 
16
16
  patchBrowser().then(options => {
17
- return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[4],"headingLevel":[2,"heading-level"],"id":[32],"isOpen":[32],"toggle":[64]},[[0,"collapseChange","onCollapseChange"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert",[[1,"post-alert",{"dismissible":[4],"dismissLabel":[1,"dismiss-label"],"fixed":[4],"icon":[1],"type":[1],"alertId":[32],"classes":[32],"hasActions":[32],"hasHeading":[32],"onDismissButtonClick":[32],"dismiss":[64]},null,{"dismissible":["validateDismissible"],"dismissLabel":["validateDismissLabel"],"fixed":["validateFixed"],"icon":["validateIcon"],"type":["validateType"]}]]],["post-popover",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-tooltip",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-accordion",[[1,"post-accordion",{"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"collapseChange","collapseChangeHandler"]]]]],["post-tab-header",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible",[[1,"post-collapsible",{"collapsed":[4],"id":[32],"isOpen":[32],"toggle":[64]},null,{"collapsed":["validateCollapsed"]}]]],["post-icon",[[1,"post-icon",{"animation":[1],"base":[1],"flipH":[4,"flip-h"],"flipV":[4,"flip-v"],"name":[1],"rotate":[2],"scale":[2],"svgStyles":[32],"svgOutput":[32]},null,{"animation":["validateAnimation"],"base":["validateBase"],"flipH":["validateFlipH"],"flipV":["validateFlipV"],"name":["validateName"],"rotate":["validateRotate"],"scale":["validateScale"]}]]],["post-popovercontainer",[[1,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]]], options);
17
+ return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[4],"headingLevel":[2,"heading-level"],"id":[32],"isOpen":[32],"toggle":[64]},[[0,"collapseChange","onCollapseChange"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert",[[1,"post-alert",{"dismissible":[4],"dismissLabel":[1,"dismiss-label"],"fixed":[4],"icon":[1],"type":[1],"alertId":[32],"classes":[32],"hasActions":[32],"hasHeading":[32],"onDismissButtonClick":[32],"dismiss":[64]},null,{"dismissible":["validateDismissible"],"dismissLabel":["validateDismissLabel"],"fixed":["validateFixed"],"icon":["validateIcon"],"type":["validateType"]}]]],["post-popover",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-rating",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tooltip",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-accordion",[[1,"post-accordion",{"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"collapseChange","collapseChangeHandler"]]]]],["post-tab-header",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible",[[1,"post-collapsible",{"collapsed":[4],"id":[32],"isOpen":[32],"toggle":[64]},null,{"collapsed":["validateCollapsed"]}]]],["post-icon",[[1,"post-icon",{"animation":[1],"base":[1],"flipH":[4,"flip-h"],"flipV":[4,"flip-v"],"name":[1],"rotate":[2],"scale":[2],"svgStyles":[32],"svgOutput":[32]},null,{"animation":["validateAnimation"],"base":["validateBase"],"flipH":["validateFlipH"],"flipV":["validateFlipV"],"name":["validateName"],"rotate":["validateRotate"],"scale":["validateScale"]}]]],["post-popovercontainer",[[1,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]]], options);
18
18
  });
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-1708db56.js';
2
2
  import { c as checkEmptyOrOneOf, d as checkEmptyOrType, a as checkType } from './index-b444db27.js';
3
- import { v as version } from './package-15929f57.js';
3
+ import { v as version } from './package-0bbb84cf.js';
4
4
  import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
5
5
 
6
6
  const postIconCss = ":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)}}";
@@ -1,6 +1,6 @@
1
- export { P as post_icon } from './post-icon-ba163099.js';
1
+ export { P as post_icon } from './post-icon-7e581c2a.js';
2
2
  import './index-1708db56.js';
3
3
  import './index-b444db27.js';
4
4
  import './constants-8d548297.js';
5
- import './package-15929f57.js';
5
+ import './package-0bbb84cf.js';
6
6
  import './check-non-empty-58bd6b17.js';
@@ -1,5 +1,5 @@
1
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';
2
+ import { v as version } from './package-0bbb84cf.js';
3
3
  import { g as getAttributeObserver } from './attribute-observer-37fa950a.js';
4
4
 
5
5
  const postPopoverCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.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:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.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,4 +1,4 @@
1
- export { P as post_popover } from './post-popover-69694fa6.js';
1
+ export { P as post_popover } from './post-popover-c26ce9a8.js';
2
2
  import './index-1708db56.js';
3
- import './package-15929f57.js';
3
+ import './package-0bbb84cf.js';
4
4
  import './attribute-observer-37fa950a.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1708db56.js';
2
- import { v as version } from './package-15929f57.js';
2
+ import { v as version } from './package-0bbb84cf.js';
3
3
 
4
4
  /**
5
5
  * Custom positioning reference element.
@@ -1,3 +1,3 @@
1
- export { P as post_popovercontainer } from './post-popovercontainer-da870ff0.js';
1
+ export { P as post_popovercontainer } from './post-popovercontainer-ffaee796.js';
2
2
  import './index-1708db56.js';
3
- import './package-15929f57.js';
3
+ import './package-0bbb84cf.js';
@@ -0,0 +1,86 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1708db56.js';
2
+ import { v as version } from './package-0bbb84cf.js';
3
+
4
+ const postRatingCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 -0.25rem;border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:2px;outline:2px solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}";
5
+ const PostRatingStyle0 = postRatingCss;
6
+
7
+ const PostRating = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.input = createEvent(this, "input", 7);
11
+ this.change = createEvent(this, "change", 7);
12
+ this.hasChanged = false;
13
+ this.hoveredIndex = undefined;
14
+ this.label = 'Rating';
15
+ this.stars = 5;
16
+ this.currentRating = 0;
17
+ this.readonly = false;
18
+ this.keydownHandler = this.keydownHandler.bind(this);
19
+ this.blurHandler = this.blurHandler.bind(this);
20
+ this.hoverHandler = this.hoverHandler.bind(this);
21
+ }
22
+ update(value) {
23
+ if (this.readonly || value < 0 || value > this.stars)
24
+ return;
25
+ this.currentRating = this.currentRating !== value ? value : 0; // If a star is clicked the second time, the rating gets set to 0.
26
+ this.input.emit({ value: this.currentRating });
27
+ this.hasChanged = true;
28
+ }
29
+ keydownHandler(e) {
30
+ switch (e.key) {
31
+ case 'ArrowDown':
32
+ case 'ArrowLeft':
33
+ e.preventDefault();
34
+ this.update(this.currentRating - 1);
35
+ break;
36
+ case 'ArrowUp':
37
+ case 'ArrowRight':
38
+ e.preventDefault();
39
+ this.update(this.currentRating + 1);
40
+ break;
41
+ case 'Home':
42
+ e.preventDefault();
43
+ this.update(0);
44
+ break;
45
+ case 'End':
46
+ e.preventDefault();
47
+ this.update(this.stars);
48
+ break;
49
+ case 'Enter':
50
+ case ' ':
51
+ this.blurHandler();
52
+ break;
53
+ default:
54
+ return;
55
+ }
56
+ }
57
+ blurHandler() {
58
+ if (this.hasChanged) {
59
+ this.change.emit({ value: this.currentRating });
60
+ this.hasChanged = false;
61
+ }
62
+ }
63
+ hoverHandler(index, e) {
64
+ if (this.readonly)
65
+ return;
66
+ if (e.type === 'mouseenter') {
67
+ this.hoveredIndex = index;
68
+ }
69
+ else if (e.type === 'mouseleave') {
70
+ this.hoveredIndex = undefined;
71
+ }
72
+ }
73
+ render() {
74
+ return (h(Host, { key: '024062262951980933a54144b7ed00fead499f07', "data-version": version }, h("div", { key: '1be8030d6d4d5d25010a0df6823da0fe72e7e682', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
75
+ 'star': true,
76
+ 'before-hover': i < this.hoveredIndex,
77
+ 'active': i < Math.round(this.currentRating),
78
+ 'hover': i === this.hoveredIndex,
79
+ 'after-active': i > this.hoveredIndex && i < this.currentRating,
80
+ }, onClick: () => this.update(i + 1), onMouseEnter: e => this.hoverHandler(i, e), onMouseLeave: e => this.hoverHandler(i, e) }, h("post-icon", { name: "2062", class: "stroke" }), h("post-icon", { name: "2574", class: "fill" })))))));
81
+ }
82
+ get host() { return getElement(this); }
83
+ };
84
+ PostRating.style = PostRatingStyle0;
85
+
86
+ export { PostRating as P };
@@ -0,0 +1,3 @@
1
+ export { P as post_rating } from './post-rating-b454511a.js';
2
+ import './index-1708db56.js';
3
+ import './package-0bbb84cf.js';
@@ -0,0 +1,30 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-1708db56.js';
2
+ import { v as version } from './package-0bbb84cf.js';
3
+ import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
4
+
5
+ const postTabHeaderCss = ".tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none;background-color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted);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:var(--post-contrast-color-inverted);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: '999ab8056178562bbcf615b03787451a946f8929', "data-version": version }, h("button", { key: '9795891344158c294f6d77a2245200108f1fe737', "aria-selected": "false", class: "tab-title", id: this.tabId, role: "tab", tabindex: "-1", type: "button" }, h("slot", { key: 'd62f2894e9bf89c00a9d5673cd47507ef7b26359' }))));
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,5 +1,5 @@
1
- export { P as post_tab_header } from './post-tab-header-14ed99cd.js';
1
+ export { P as post_tab_header } from './post-tab-header-94356634.js';
2
2
  import './index-1708db56.js';
3
- import './package-15929f57.js';
3
+ import './package-0bbb84cf.js';
4
4
  import './check-non-empty-58bd6b17.js';
5
5
  import './constants-8d548297.js';
@@ -1,5 +1,5 @@
1
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';
2
+ import { v as version } from './package-0bbb84cf.js';
3
3
 
4
4
  const postTabPanelCss = ":host{display:none}";
5
5
  const PostTabPanelStyle0 = postTabPanelCss;
@@ -15,7 +15,7 @@ const PostTabPanel = class {
15
15
  this.panelId = `panel-${this.host.id || crypto.randomUUID()}`;
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: '95b6c12c52ef3aa66235d9c10e9c00730e1eb438', "data-version": version }, h("div", { key: '57dac4559c79ac5db11d6b945273b7126564f2d5', class: "tab-pane", id: this.panelId, role: "tabpanel" }, h("slot", { key: 'ee9c6c82a6e9cadb56d914c483bae83907709a17' }))));
18
+ return (h(Host, { key: '08148fe9b221905fbeab99bdb14f4d040deda959', "data-version": version }, h("div", { key: '04ad9fba5b296902fc75e0e36f7cefd91d0b6948', class: "tab-pane", id: this.panelId, role: "tabpanel" }, h("slot", { key: '840a5242e071f47b102340738f31b3f8b3c10052' }))));
19
19
  }
20
20
  get host() { return getElement(this); }
21
21
  };
@@ -1,3 +1,3 @@
1
- export { P as post_tab_panel } from './post-tab-panel-d89c4c50.js';
1
+ export { P as post_tab_panel } from './post-tab-panel-51f296ab.js';
2
2
  import './index-1708db56.js';
3
- import './package-15929f57.js';
3
+ import './package-0bbb84cf.js';
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1708db56.js';
2
- import { v as version } from './package-15929f57.js';
2
+ import { v as version } from './package-0bbb84cf.js';
3
3
  import { f as fadeOut, a as fadeIn } from './fade-7fd71785.js';
4
4
 
5
- const postTabsCss = ".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}";
5
+ const postTabsCss = ".tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(var(--post-contrast-color-rgb), 0.02)}.tabs-wrapper::after{content:\"\";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{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{padding-top: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}";
6
6
  const PostTabsStyle0 = postTabsCss;
7
7
 
8
8
  const PostTabs = class {
@@ -141,7 +141,7 @@ const PostTabs = class {
141
141
  nextTabTitle.focus();
142
142
  }
143
143
  render() {
144
- 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() }))));
144
+ return (h(Host, { key: '474b7d00c23aec2a44a202c09b8a75a9dc12b4a8', "data-version": version }, h("div", { key: '2fe1b6cad96fd868cbaa7e775d185537a37228fd', class: "tabs-wrapper" }, h("div", { key: 'ef70af3ddd337cefb719d183d603eb93fb033e25', class: "tabs", role: "tablist" }, h("slot", { key: '360909ea07bbbca523cb21b71daa8b4b02f60bed', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: 'ba44b0e8484e63d9b48f66933f37d854eb648854', class: "tab-content" }, h("slot", { key: 'cd22488448be508393fcb9f9428d3f712c9b659b', onSlotchange: () => this.moveMisplacedTabs() }))));
145
145
  }
146
146
  get host() { return getElement(this); }
147
147
  };
@@ -1,4 +1,4 @@
1
- export { P as post_tabs } from './post-tabs-e995886a.js';
1
+ export { P as post_tabs } from './post-tabs-8cb2228e.js';
2
2
  import './index-1708db56.js';
3
- import './package-15929f57.js';
3
+ import './package-0bbb84cf.js';
4
4
  import './fade-7fd71785.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-1708db56.js';
2
- import { v as version$1 } from './package-15929f57.js';
2
+ import { v as version$1 } from './package-0bbb84cf.js';
3
3
  import { g as getAttributeObserver } from './attribute-observer-37fa950a.js';
4
4
 
5
5
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -4936,7 +4936,7 @@ const PostTooltip = class {
4936
4936
  }
4937
4937
  render() {
4938
4938
  const popoverClass = `${this.arrow ? ' has-arrow' : ''}`;
4939
- return (h(Host, { key: 'cf89d38b05fbb49ecfcfd339baf325a4fb850f3a', "data-version": version$1, role: "tooltip", onPointerOver: this.handleInterest, onPointerOut: this.handleInterestLost, onFocusIn: this.handleInterest, onFocusOut: this.handleInterestLost }, h("post-popovercontainer", { key: '2f6f473007ae8d4fc7ef3bcec38a8f19222eaf5d', class: popoverClass, arrow: this.arrow, placement: this.placement, ref: (el) => (this.popoverRef = el) }, h("slot", { key: '84bfd25818068ce1fb644b3b0e6858f9cb1bd605' }))));
4939
+ return (h(Host, { key: '63124ebabffbe5fe857bcc61eecf4133f2952e85', "data-version": version$1, role: "tooltip", onPointerOver: this.handleInterest, onPointerOut: this.handleInterestLost, onFocusIn: this.handleInterest, onFocusOut: this.handleInterestLost }, h("post-popovercontainer", { key: '42e1b5e0ab8cbb3a1b805ccf5b40232b071cf5ad', class: popoverClass, arrow: this.arrow, placement: this.placement, ref: (el) => (this.popoverRef = el) }, h("slot", { key: 'bf414a19c044f3c608ab3141bb93736dd7dea723' }))));
4940
4940
  }
4941
4941
  get host() { return getElement(this); }
4942
4942
  };