@scania/tegel 1.27.0-toast-aria-live.0 → 1.28.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 (197) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/tds-dropdown_2.cjs.entry.js +8 -8
  3. package/dist/cjs/tds-footer-group.cjs.entry.js +27 -5
  4. package/dist/cjs/tds-footer-item.cjs.entry.js +2 -2
  5. package/dist/cjs/tds-footer.cjs.entry.js +1 -1
  6. package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +6 -2
  7. package/dist/cjs/tds-header-dropdown.cjs.entry.js +26 -3
  8. package/dist/cjs/tds-header-hamburger.cjs.entry.js +7 -1
  9. package/dist/cjs/tds-header-launcher-button.cjs.entry.js +2 -1
  10. package/dist/cjs/tds-header-launcher.cjs.entry.js +23 -2
  11. package/dist/cjs/tds-icon.cjs.entry.js +3 -2
  12. package/dist/cjs/tds-inline-tabs.cjs.entry.js +1 -1
  13. package/dist/cjs/tds-modal.cjs.entry.js +1 -1
  14. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +1 -1
  15. package/dist/cjs/tds-popover-canvas.cjs.entry.js +3 -2
  16. package/dist/cjs/tds-popover-core.cjs.entry.js +55 -11
  17. package/dist/cjs/tds-popover-menu-item.cjs.entry.js +2 -2
  18. package/dist/cjs/tds-popover-menu.cjs.entry.js +1 -1
  19. package/dist/cjs/tds-radio-button.cjs.entry.js +3 -1
  20. package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
  21. package/dist/cjs/tds-step.cjs.entry.js +2 -1
  22. package/dist/cjs/tds-stepper.cjs.entry.js +2 -1
  23. package/dist/cjs/tds-text-field.cjs.entry.js +31 -16
  24. package/dist/cjs/tds-textarea.cjs.entry.js +9 -3
  25. package/dist/cjs/tds-toast.cjs.entry.js +3 -3
  26. package/dist/cjs/tds-toggle.cjs.entry.js +2 -2
  27. package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
  28. package/dist/cjs/tegel.cjs.js +1 -1
  29. package/dist/collection/components/dropdown/dropdown.js +8 -8
  30. package/dist/collection/components/footer/footer-group/footer-group.css +23 -21
  31. package/dist/collection/components/footer/footer-group/footer-group.js +55 -5
  32. package/dist/collection/components/footer/footer-item/footer-item.css +17 -17
  33. package/dist/collection/components/footer/footer-item/footer-item.js +2 -2
  34. package/dist/collection/components/footer/footer.css +1 -1
  35. package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.css +1 -1
  36. package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +6 -2
  37. package/dist/collection/components/header/header-dropdown/header-dropdown.js +49 -3
  38. package/dist/collection/components/header/header-hamburger/header-hamburger.js +30 -1
  39. package/dist/collection/components/header/header-launcher/header-launcher.js +50 -2
  40. package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +19 -1
  41. package/dist/collection/components/icon/icon.js +21 -2
  42. package/dist/collection/components/modal/modal.css +48 -43
  43. package/dist/collection/components/popover-canvas/popover-canvas.js +21 -2
  44. package/dist/collection/components/popover-core/popover-core.js +63 -10
  45. package/dist/collection/components/popover-core/tds-popover-core.css +31 -40
  46. package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +2 -2
  47. package/dist/collection/components/popover-menu/popover-menu.js +1 -1
  48. package/dist/collection/components/radio-button/radio-button.js +37 -1
  49. package/dist/collection/components/spinner/spinner.css +62 -39
  50. package/dist/collection/components/stepper/step/step.js +19 -1
  51. package/dist/collection/components/stepper/stepper.js +20 -1
  52. package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +0 -1
  53. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +2 -3
  54. package/dist/collection/components/text-field/text-field.css +21 -9
  55. package/dist/collection/components/text-field/text-field.js +48 -15
  56. package/dist/collection/components/textarea/textarea.js +26 -3
  57. package/dist/collection/components/toast/toast.js +3 -3
  58. package/dist/collection/components/toggle/toggle.js +2 -2
  59. package/dist/collection/components/tooltip/tooltip.js +2 -2
  60. package/dist/components/{p-2d93a742.js → p-1c606f82.js} +1 -1
  61. package/dist/components/{p-e71e3b2e.js → p-252f3d4d.js} +59 -13
  62. package/dist/components/{p-17338bcb.js → p-3dcfe1f4.js} +3 -3
  63. package/dist/components/{p-60ff84f2.js → p-789bb453.js} +5 -3
  64. package/dist/components/{p-4487c541.js → p-92fb75a7.js} +4 -2
  65. package/dist/components/{p-663b8e51.js → p-c0b84c59.js} +9 -9
  66. package/dist/components/{p-83db8b35.js → p-f8a36676.js} +5 -3
  67. package/dist/components/tds-accordion-item.js +1 -1
  68. package/dist/components/tds-banner.js +1 -1
  69. package/dist/components/tds-datetime.js +1 -1
  70. package/dist/components/tds-dropdown-option.js +1 -1
  71. package/dist/components/tds-dropdown.js +1 -1
  72. package/dist/components/tds-folder-tabs.js +1 -1
  73. package/dist/components/tds-footer-group.js +32 -8
  74. package/dist/components/tds-footer-item.js +3 -3
  75. package/dist/components/tds-footer.js +1 -1
  76. package/dist/components/tds-header-brand-symbol.js +6 -2
  77. package/dist/components/tds-header-cell.js +1 -1
  78. package/dist/components/tds-header-dropdown.js +31 -7
  79. package/dist/components/tds-header-hamburger.js +11 -3
  80. package/dist/components/tds-header-launcher-button.js +1 -1
  81. package/dist/components/tds-header-launcher.js +29 -7
  82. package/dist/components/tds-icon.js +1 -1
  83. package/dist/components/tds-inline-tabs.js +2 -2
  84. package/dist/components/tds-message.js +1 -1
  85. package/dist/components/tds-modal.js +2 -2
  86. package/dist/components/tds-navigation-tabs.js +2 -2
  87. package/dist/components/tds-popover-canvas.js +1 -1
  88. package/dist/components/tds-popover-core.js +1 -1
  89. package/dist/components/tds-popover-menu-item.js +2 -2
  90. package/dist/components/tds-popover-menu.js +2 -2
  91. package/dist/components/tds-radio-button.js +6 -2
  92. package/dist/components/tds-side-menu-close-button.js +1 -1
  93. package/dist/components/tds-side-menu-dropdown.js +1 -1
  94. package/dist/components/tds-slider.js +1 -1
  95. package/dist/components/tds-spinner.js +1 -1
  96. package/dist/components/tds-step.js +4 -2
  97. package/dist/components/tds-stepper.js +4 -2
  98. package/dist/components/tds-table-body-input-wrapper.js +1 -1
  99. package/dist/components/tds-table-footer.js +3 -3
  100. package/dist/components/tds-table-header-input-wrapper.js +1 -1
  101. package/dist/components/tds-table-toolbar.js +1 -1
  102. package/dist/components/tds-text-field.js +33 -17
  103. package/dist/components/tds-textarea.js +13 -6
  104. package/dist/components/tds-toast.js +4 -4
  105. package/dist/components/tds-toggle.js +2 -2
  106. package/dist/components/tds-tooltip.js +1 -1
  107. package/dist/esm/loader.js +1 -1
  108. package/dist/esm/tds-dropdown_2.entry.js +8 -8
  109. package/dist/esm/tds-footer-group.entry.js +27 -5
  110. package/dist/esm/tds-footer-item.entry.js +3 -3
  111. package/dist/esm/tds-footer.entry.js +1 -1
  112. package/dist/esm/tds-header-brand-symbol.entry.js +6 -2
  113. package/dist/esm/tds-header-dropdown.entry.js +26 -3
  114. package/dist/esm/tds-header-hamburger.entry.js +7 -1
  115. package/dist/esm/tds-header-launcher-button.entry.js +2 -1
  116. package/dist/esm/tds-header-launcher.entry.js +23 -2
  117. package/dist/esm/tds-icon.entry.js +3 -2
  118. package/dist/esm/tds-inline-tabs.entry.js +1 -1
  119. package/dist/esm/tds-modal.entry.js +1 -1
  120. package/dist/esm/tds-navigation-tabs.entry.js +1 -1
  121. package/dist/esm/tds-popover-canvas.entry.js +3 -2
  122. package/dist/esm/tds-popover-core.entry.js +55 -11
  123. package/dist/esm/tds-popover-menu-item.entry.js +2 -2
  124. package/dist/esm/tds-popover-menu.entry.js +1 -1
  125. package/dist/esm/tds-radio-button.entry.js +3 -1
  126. package/dist/esm/tds-spinner.entry.js +1 -1
  127. package/dist/esm/tds-step.entry.js +2 -1
  128. package/dist/esm/tds-stepper.entry.js +2 -1
  129. package/dist/esm/tds-text-field.entry.js +31 -16
  130. package/dist/esm/tds-textarea.entry.js +9 -3
  131. package/dist/esm/tds-toast.entry.js +3 -3
  132. package/dist/esm/tds-toggle.entry.js +2 -2
  133. package/dist/esm/tds-tooltip.entry.js +2 -2
  134. package/dist/esm/tegel.js +1 -1
  135. package/dist/tegel/{p-ad9a2141.entry.js → p-033d991e.entry.js} +1 -1
  136. package/dist/tegel/p-24db6b5b.entry.js +1 -0
  137. package/dist/tegel/p-27a4a7d0.entry.js +1 -0
  138. package/dist/tegel/p-28cf7204.entry.js +1 -0
  139. package/dist/tegel/p-302fea99.entry.js +1 -0
  140. package/dist/tegel/p-31bc440c.entry.js +1 -0
  141. package/dist/tegel/p-3e9ca19a.entry.js +1 -0
  142. package/dist/tegel/p-44ac6a20.entry.js +1 -0
  143. package/dist/tegel/{p-769d0503.entry.js → p-46205cfb.entry.js} +1 -1
  144. package/dist/tegel/p-54a20280.entry.js +1 -0
  145. package/dist/tegel/p-5a3ff0d3.entry.js +1 -0
  146. package/dist/tegel/p-660176d6.entry.js +1 -0
  147. package/dist/tegel/{p-eaa279dd.entry.js → p-81111221.entry.js} +1 -1
  148. package/dist/tegel/{p-668b7662.entry.js → p-8d7bf652.entry.js} +1 -1
  149. package/dist/tegel/p-b58f68f0.entry.js +1 -0
  150. package/dist/tegel/{p-5ba254ee.entry.js → p-c10be10e.entry.js} +1 -1
  151. package/dist/tegel/p-c71acb02.entry.js +1 -0
  152. package/dist/tegel/p-ceab8f75.entry.js +1 -0
  153. package/dist/tegel/p-e1abd593.entry.js +1 -0
  154. package/dist/tegel/p-e3c3bdac.entry.js +1 -0
  155. package/dist/tegel/p-e46744bc.entry.js +1 -0
  156. package/dist/tegel/p-ea9e7345.entry.js +1 -0
  157. package/dist/tegel/{p-97f10223.entry.js → p-eec22b6b.entry.js} +1 -1
  158. package/dist/tegel/p-f034fc0c.entry.js +1 -0
  159. package/dist/tegel/p-fa342278.entry.js +1 -0
  160. package/dist/tegel/{p-b9f81e53.entry.js → p-fc6196c4.entry.js} +1 -1
  161. package/dist/tegel/tegel.css +2 -2
  162. package/dist/tegel/tegel.esm.js +1 -1
  163. package/dist/types/components/footer/footer-group/footer-group.d.ts +7 -0
  164. package/dist/types/components/header/header-brand-symbol/header-brand-symbol.d.ts +1 -1
  165. package/dist/types/components/header/header-dropdown/header-dropdown.d.ts +4 -0
  166. package/dist/types/components/header/header-hamburger/header-hamburger.d.ts +3 -0
  167. package/dist/types/components/header/header-launcher/header-launcher.d.ts +4 -0
  168. package/dist/types/components/header/header-launcher-button/header-launcher-button.d.ts +2 -0
  169. package/dist/types/components/icon/icon.d.ts +2 -0
  170. package/dist/types/components/popover-canvas/popover-canvas.d.ts +2 -0
  171. package/dist/types/components/popover-core/popover-core.d.ts +4 -0
  172. package/dist/types/components/radio-button/radio-button.d.ts +4 -0
  173. package/dist/types/components/stepper/step/step.d.ts +1 -0
  174. package/dist/types/components/stepper/stepper.d.ts +2 -0
  175. package/dist/types/components/text-field/text-field.d.ts +6 -4
  176. package/dist/types/components/textarea/textarea.d.ts +3 -0
  177. package/dist/types/components.d.ts +98 -0
  178. package/package.json +1 -1
  179. package/dist/tegel/p-035e58e6.entry.js +0 -1
  180. package/dist/tegel/p-125a6b06.entry.js +0 -1
  181. package/dist/tegel/p-28517288.entry.js +0 -1
  182. package/dist/tegel/p-288a09ef.entry.js +0 -1
  183. package/dist/tegel/p-4f5f152a.entry.js +0 -1
  184. package/dist/tegel/p-542d7b3e.entry.js +0 -1
  185. package/dist/tegel/p-5a7110b8.entry.js +0 -1
  186. package/dist/tegel/p-5db5c8f4.entry.js +0 -1
  187. package/dist/tegel/p-654785d2.entry.js +0 -1
  188. package/dist/tegel/p-746e2927.entry.js +0 -1
  189. package/dist/tegel/p-754a4921.entry.js +0 -1
  190. package/dist/tegel/p-843413ba.entry.js +0 -1
  191. package/dist/tegel/p-aef6b130.entry.js +0 -1
  192. package/dist/tegel/p-b114ec3d.entry.js +0 -1
  193. package/dist/tegel/p-b39ffad4.entry.js +0 -1
  194. package/dist/tegel/p-c56be8d1.entry.js +0 -1
  195. package/dist/tegel/p-dfbbaefd.entry.js +0 -1
  196. package/dist/tegel/p-ea3e071f.entry.js +0 -1
  197. package/dist/tegel/p-ee7f07ae.entry.js +0 -1
@@ -1,6 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-51d04e39.js';
2
+ import { h as hasSlot } from './hasSlot-d52114d0.js';
2
3
 
3
- const footerGroupCss = ":host{display:block}:host .footer-top-title{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);opacity:var(--tds-footer-top-title-opacity);color:var(--tds-footer-top-links);padding-bottom:8px}:host button.footer-top-title-button{display:none;border:none;width:100%;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-footer-top-links);background-color:transparent;text-align:left;padding:19px 24px;justify-content:space-between;border-bottom:1px solid var(--tds-footer-top-divider)}:host button.footer-top-title-button.expanded{border-bottom:none}:host button.footer-top-title-button.expanded tds-icon{transform:rotateZ(180deg)}:host button.footer-top-title-button:hover{cursor:pointer}:host button.footer-top-title-button:active{background-color:var(--tds-footer-top-button-active)}:host button.footer-top-title-button:focus-visible{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host button.footer-top-title-button tds-icon{transition:transform 0.2s ease-in-out}:host [role=list]{list-style:none;padding:0;margin:0;display:flex;gap:8px}:host [role=list].start,:host [role=list].end{gap:24px}:host [role=list].top-part-child{flex-direction:column}@media all and (max-width: 992px){:host [role=list].start:not(.top-part-child){flex-direction:column}:host [role=list].start:not(.top-part-child).start,:host [role=list].start:not(.top-part-child).end{gap:8px}:host [role=list].top-part-child.closed{display:none}:host [role=list].top-part-child{gap:0}:host .footer-top-title{display:none}:host button.footer-top-title-button{display:flex;align-items:center}}";
4
+ const footerGroupCss = ":host{display:block}:host .footer-top-title{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);opacity:var(--tds-footer-top-title-opacity);color:var(--tds-footer-top-links);padding-bottom:8px}:host .footer-top-title *,:host .footer-top-title ::slotted(*){margin:0}:host button.footer-top-title-button{border:none;width:100%;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-footer-top-links);background-color:transparent;text-align:left;padding:19px 24px;justify-content:space-between;border-bottom:1px solid var(--tds-footer-top-divider)}:host button.footer-top-title-button *,:host button.footer-top-title-button ::slotted(*){margin:0}:host button.footer-top-title-button.expanded{border-bottom:none}:host button.footer-top-title-button.expanded tds-icon{transform:rotateZ(180deg)}:host button.footer-top-title-button:hover{cursor:pointer}:host button.footer-top-title-button:active{background-color:var(--tds-footer-top-button-active)}:host button.footer-top-title-button:focus-visible{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host button.footer-top-title-button tds-icon{transition:transform 0.2s ease-in-out}:host [role=list]{list-style:none;padding:0;margin:0;display:flex;gap:8px}:host [role=list].start,:host [role=list].end{gap:24px}:host [role=list].top-part-child{flex-direction:column}:host .mobile-view [role=list].start:not(.top-part-child){flex-direction:column}:host .mobile-view [role=list].start:not(.top-part-child).start,:host .mobile-view [role=list].start:not(.top-part-child).end{gap:8px}:host .mobile-view [role=list].top-part-child.closed{display:none}:host .mobile-view [role=list].top-part-child{gap:0}:host .mobile-view button.footer-top-title-button{display:flex;align-items:center}";
4
5
  const TdsFooterGroupStyle0 = footerGroupCss;
5
6
 
6
7
  const TdsFooterGroup = class {
@@ -12,20 +13,41 @@ const TdsFooterGroup = class {
12
13
  /** Indicates if a group is part of the top part of the Footer. */
13
14
  this.topPartGroup = false;
14
15
  this.titleText = undefined;
16
+ this.tdsListAriaLabel = undefined;
15
17
  this.open = false;
18
+ this.isMobile = undefined;
19
+ }
20
+ updateIsMobile() {
21
+ this.isMobile = window.innerWidth <= 992;
16
22
  }
17
23
  connectedCallback() {
24
+ this.updateIsMobile();
18
25
  this.topPartGroup = this.host.parentElement.slot === 'top';
19
26
  if (!this.topPartGroup) {
20
27
  this.slotPosition = this.host.parentElement.slot === 'end' ? 'end' : 'start';
21
28
  }
29
+ if (!this.tdsListAriaLabel) {
30
+ console.warn('Tegel Footer Group component: missing tdsListAriaLabel prop');
31
+ }
32
+ if (this.titleText) {
33
+ console.warn('Tegel Footer Group component: to ensure accessibility, please use the title slot instead of the titleText prop. titleText will be deprecated in the future.');
34
+ }
35
+ const hasTitleSlot = hasSlot('title', this.host);
36
+ if (hasTitleSlot && this.titleText) {
37
+ console.warn('Tegel Footer Group component: titleText prop is set but title slot is used. The titleText prop will be ignored.');
38
+ }
39
+ }
40
+ handleResize() {
41
+ this.updateIsMobile();
22
42
  }
23
43
  render() {
24
- return (h(Host, { key: '9932f2146509bb7f804c15a3b716308c658893c5' }, this.titleText && this.topPartGroup && (h("div", { key: '511c348c160a1d1144464ce562b616f38a5fd524', class: "footer-top-title" }, this.titleText)), this.titleText && this.topPartGroup && (h("button", { key: 'c64b3662379de7308d8f64b0e5769296e7f48a02', onClick: () => {
25
- this.open = !this.open;
26
- }, class: `footer-top-title-button ${this.open ? 'expanded' : 'closed'}` }, this.titleText, h("tds-icon", { key: 'f3d5d5bec3f3f9af67bf28e7164eb3190189039c', name: "chevron_down", size: "20px" }))), h("div", { key: '4f5a8b626d572e51f67547d0c3280d946e44203f', role: "list", class: `${this.slotPosition ? this.slotPosition : ''}
44
+ const hasTitleSlot = hasSlot('title', this.host);
45
+ return (h(Host, { key: '4074cd5312d985c58e5136cc0c2c2c5deb9cd6e7', "aria-expanded": this.open ? 'true' : 'false' }, h("div", { key: '1a7817d838cadd10f4fed05b1153fa13be41a042', class: this.isMobile ? 'mobile-view' : '' }, this.topPartGroup &&
46
+ (this.isMobile ? (h("button", { onClick: () => {
47
+ this.open = !this.open;
48
+ }, class: `footer-top-title-button ${this.open ? 'expanded' : 'closed'}` }, hasTitleSlot ? h("slot", { name: "title" }) : this.titleText, h("tds-icon", { name: "chevron_down", size: "20px", "aria-hidden": "true" }))) : (h("div", { class: "footer-top-title" }, hasTitleSlot ? h("slot", { name: "title" }) : this.titleText))), h("nav", { key: '758bd18ac07eca8dda21b077a494ce8d770c6794', "aria-label": this.tdsListAriaLabel }, h("div", { key: '536e6c65893378fce91dd7fe3577dcdaaa4e5596', role: "list", class: `${this.slotPosition ? this.slotPosition : ''}
27
49
  ${this.topPartGroup ? 'top-part-child' : ''}
28
- ${this.open ? 'expanded' : 'closed'}` }, h("slot", { key: '414c481365b866d921aeb8145fd4358a05d8c90f' }))));
50
+ ${this.open ? 'expanded' : 'closed'}` }, h("slot", { key: '0d1d147e8b955fb39e83a441595c80610843e34c' }))))));
29
51
  }
30
52
  get host() { return getElement(this); }
31
53
  };
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, g as getElement } from './index-51d04e39.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-51d04e39.js';
2
2
 
3
- const footerItemCss = "[role=listitem] ::slotted(a),[role=listitem] ::slotted(button){font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-footer-main-links);opacity:var(--tds-footer-main-links-opacity);text-decoration:none}[role=listitem] ::slotted(a:focus-visible),[role=listitem] ::slotted(button:focus-visible){outline:2px solid var(--tds-blue-400);outline-offset:-2px}[role=listitem] ::slotted(a:hover),[role=listitem] ::slotted(button:hover){text-decoration:underline}[role=listitem].top-part-child ::slotted(a),[role=listitem].top-part-child ::slotted(button){font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-footer-top-links)}[role=listitem].top-part-child ::slotted(a:focus-visible),[role=listitem].top-part-child ::slotted(button:focus-visible){outline:2px solid var(--tds-blue-400);outline-offset:-2px}@media all and (max-width: 992px){[role=listitem].top-part-child{border-bottom:1px solid var(--tds-footer-top-divider)}[role=listitem].top-part-child ::slotted(a),[role=listitem].top-part-child ::slotted(button){display:block;height:100%;padding:19px 40px;font-weight:normal}[role=listitem].top-part-child ::slotted(a:hover),[role=listitem].top-part-child ::slotted(button:hover){text-decoration:underline;background-color:var(--tds-footer-top-links-background-hover)}[role=listitem].top-part-child ::slotted(a:focus-visible),[role=listitem].top-part-child ::slotted(button:focus-visible){outline:2px solid var(--tds-blue-400);outline-offset:-2px}}";
3
+ const footerItemCss = ":host([role=listitem]) div ::slotted(a),:host([role=listitem]) div ::slotted(button){font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-footer-main-links);opacity:var(--tds-footer-main-links-opacity);text-decoration:none}:host([role=listitem]) div ::slotted(a:focus-visible),:host([role=listitem]) div ::slotted(button:focus-visible){outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host([role=listitem]) div ::slotted(a:hover),:host([role=listitem]) div ::slotted(button:hover){text-decoration:underline}:host([role=listitem]) div.top-part-child ::slotted(a),:host([role=listitem]) div.top-part-child ::slotted(button){font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-footer-top-links)}:host([role=listitem]) div.top-part-child ::slotted(a:focus-visible),:host([role=listitem]) div.top-part-child ::slotted(button:focus-visible){outline:2px solid var(--tds-blue-400);outline-offset:-2px}@media all and (max-width: 992px){:host([role=listitem]) div.top-part-child{border-bottom:1px solid var(--tds-footer-top-divider)}:host([role=listitem]) div.top-part-child ::slotted(a),:host([role=listitem]) div.top-part-child ::slotted(button){display:block;height:100%;padding:19px 40px;font-weight:normal}:host([role=listitem]) div.top-part-child ::slotted(a:hover),:host([role=listitem]) div.top-part-child ::slotted(button:hover){text-decoration:underline;background-color:var(--tds-footer-top-links-background-hover)}:host([role=listitem]) div.top-part-child ::slotted(a:focus-visible),:host([role=listitem]) div.top-part-child ::slotted(button:focus-visible){outline:2px solid var(--tds-blue-400);outline-offset:-2px}}";
4
4
  const TdsFooterItemStyle0 = footerItemCss;
5
5
 
6
6
  const TdsFooterItem = class {
@@ -12,7 +12,7 @@ const TdsFooterItem = class {
12
12
  this.parentIsTopPart = this.host.closest('tds-footer-group').parentElement.slot === 'top';
13
13
  }
14
14
  render() {
15
- return (h("div", { key: '8efe2aba383be6dbbf0c1a95e4a5f247623289bd', role: "listitem", class: `${this.parentIsTopPart ? 'top-part-child' : ''}` }, h("slot", { key: 'b1406197ba6239bcdec807ebdb2de181ea6a49b7' })));
15
+ return (h(Host, { key: '04f8f1262940c57846f1f2ca372d181475381de3', role: "listitem" }, h("div", { key: '8a9c806cf008c4c247ab33935d00ba86e65a9f06', class: `${this.parentIsTopPart ? 'top-part-child' : ''}` }, h("slot", { key: '3510b66d43bf2b892902d3b7540a6b718eac1be4' }))));
16
16
  }
17
17
  get host() { return getElement(this); }
18
18
  };
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-51d04e39.js';
2
2
  import { h as hasSlot } from './hasSlot-d52114d0.js';
3
3
 
4
- const footerCss = ":host{display:block}:host slot[name=top]::slotted(*){box-sizing:border-box;background-color:var(--tds-footer-top-background);padding:40px;display:grid;grid-template-columns:repeat(4, 1fr);row-gap:40px;width:100%}:host .footer-main{background-color:var(--tds-footer-main-background);padding:0 40px}:host .footer-main-top{padding:40px 0;display:flex;justify-content:space-between}:host slot[name=start],:host slot[name=end]{display:flex}:host slot[name=start]::slotted(*),:host slot[name=end]::slotted(*){display:flex;column-gap:24px}:host slot[name=end]{margin-left:auto}:host .footer-main-bottom{padding:40px 0;display:flex;justify-content:space-between;border-top:1px solid var(--tds-footer-main-divider)}:host .footer-main-bottom small.copyright{margin:0;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);color:var(--tds-footer-main-copyright)}:host .footer-main-bottom .brand{background-image:var(--tds-background-image-scania-wordmark-white-svg);background-repeat:no-repeat;background-size:117px;background-position:right;width:117px;height:20px}:host .footer-main-bottom .brand p{color:transparent;padding:0;margin:0;height:100%;visibility:hidden}@media all and (max-width: 992px){:host slot[name=top]::slotted(*){display:block;width:100%;padding:0}:host .footer-main{padding:0 24px}:host .footer-main-top{flex-direction:column;row-gap:48px;padding:24px 0}:host slot[name=end]::slotted(*){flex-direction:row;gap:8px}:host slot[name=end]{margin-left:unset}:host .footer-main-bottom{flex-direction:column;padding-bottom:32px}:host .footer-main-bottom p.copyright{padding-bottom:96px}:host .footer-main-bottom .brand{width:100%}}";
4
+ const footerCss = ":host{display:block}:host slot[name=top]::slotted(*){box-sizing:border-box;background-color:var(--tds-footer-top-background);padding:40px;display:grid;grid-template-columns:repeat(4, 1fr);row-gap:40px;width:100%}:host .footer-main{background-color:var(--tds-footer-main-background);padding:0 40px}:host .footer-main-top{padding:40px 0;display:flex;justify-content:space-between}:host slot[name=start],:host slot[name=end]{display:flex}:host slot[name=start]::slotted(*),:host slot[name=end]::slotted(*){display:flex;column-gap:24px}:host slot[name=end]{margin-left:auto}:host .footer-main-bottom{padding:40px 0;display:flex;justify-content:space-between;border-top:1px solid var(--tds-footer-main-divider)}:host .footer-main-bottom small.copyright{margin:0;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);color:var(--tds-footer-main-copyright)}:host .footer-main-bottom .brand{background-image:var(--tds-background-image-scania-wordmark-white-svg), var(--tds-background-image-scania-wordmark-white-svg-local);background-repeat:no-repeat;background-size:117px;background-position:right;width:117px;height:20px}:host .footer-main-bottom .brand p{color:transparent;padding:0;margin:0;height:100%;visibility:hidden}@media all and (max-width: 992px){:host slot[name=top]::slotted(*){display:block;width:100%;padding:0}:host .footer-main{padding:0 24px}:host .footer-main-top{flex-direction:column;row-gap:48px;padding:24px 0}:host slot[name=end]::slotted(*){flex-direction:row;gap:8px}:host slot[name=end]{margin-left:unset}:host .footer-main-bottom{flex-direction:column;padding-bottom:32px}:host .footer-main-bottom p.copyright{padding-bottom:96px}:host .footer-main-bottom .brand{width:100%}}";
5
5
  const TdsFooterStyle0 = footerCss;
6
6
 
7
7
  const TdsFooter = class {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-51d04e39.js';
2
2
 
3
- const headerBrandSymbolCss = ":host tds-header-item{display:none}:host tds-header-item ::slotted(*){background-image:var(--tds-background-image-scania-symbol-svg), var(--tds-background-image-scania-symbol-png);background-size:30px auto;background-position:center;background-repeat:no-repeat}@media (min-width: 992px){:host tds-header-item{display:block}}";
3
+ const headerBrandSymbolCss = ":host tds-header-item{display:none}:host tds-header-item ::slotted(*){background-image:var(--tds-background-image-scania-symbol-svg), var(--tds-background-image-scania-symbol-svg-local);background-size:30px auto;background-position:center;background-repeat:no-repeat}@media (min-width: 992px){:host tds-header-item{display:block}}";
4
4
  const TdsHeaderBrandSymbolStyle0 = headerBrandSymbolCss;
5
5
 
6
6
  const TdsHeaderBrandSymbol = class {
@@ -8,7 +8,11 @@ const TdsHeaderBrandSymbol = class {
8
8
  registerInstance(this, hostRef);
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: 'c2e5f418268bf172b1e039aca188489afbc98aa7' }, h("tds-header-item", { key: '375b50758e8616093635a0a1ba194296841e4bbc' }, h("slot", { key: '2f641711d2e2c5b0fdf2042a44181a699df7fe95' }))));
11
+ const aTag = this.host.querySelector('a');
12
+ if (!aTag.hasAttribute('aria-label')) {
13
+ console.warn('Tegel Header Brand Symbol component: missing aria-label attribute for <a> tag inside slot');
14
+ }
15
+ return (h(Host, { key: '18ba2b11b49c7b85f9655881094611b3d2c6e175' }, h("tds-header-item", { key: '36f37aeec7f4d3e412efc2f75baeedeb30d25421' }, h("slot", { key: 'fce5727e5b3b70e92c716ad7fca689b93a25935b' }))));
12
16
  }
13
17
  get host() { return getElement(this); }
14
18
  };
@@ -1,5 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-51d04e39.js';
2
2
  import { g as generateUniqueId } from './generateUniqueId-7934d315.js';
3
+ import { h as hasSlot } from './hasSlot-d52114d0.js';
3
4
 
4
5
  const headerDropdownCss = ":host{--tds-scrollbar-width-standard:thin;--tds-scrollbar-width:10px;--tds-scrollbar-height:10px;--tds-scrollbar-thumb-border-width:3px;--tds-scrollbar-thumb-border-hover-width:2px}body{scrollbar-width:thin}:host{height:var(--tds-header-height);position:relative}:host .menu{flex-direction:column;overflow-y:auto;max-height:calc(100vh - var(--tds-header-height));box-shadow:var(--tds-nav-dropdown-menu-box);background-color:var(--tds-header-app-launcher-menu-background);border-top-right-radius:0;border-top-left-radius:0}:host .menu:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background:var(--tds-scrollbar-hover-thumb-color);background-clip:padding-box}:host .menu::-webkit-scrollbar{width:var(--tds-scrollbar-width)}:host .menu::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}:host .menu::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}:host .menu::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){:host .menu{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}:host .state-open .dropdown-icon{transform:rotate(180deg)}:host .state-open .button{position:relative;z-index:901}";
5
6
  const TdsHeaderDropdownStyle0 = headerDropdownCss;
@@ -17,6 +18,7 @@ const TdsHeaderDropdown = class {
17
18
  this.label = undefined;
18
19
  this.noDropdownIcon = false;
19
20
  this.selected = false;
21
+ this.tdsAriaLabel = undefined;
20
22
  this.open = false;
21
23
  this.buttonEl = undefined;
22
24
  }
@@ -27,17 +29,38 @@ const TdsHeaderDropdown = class {
27
29
  this.open = false;
28
30
  }
29
31
  }
32
+ handleKeyDown(event) {
33
+ if (event.key === 'Escape' && this.open) {
34
+ this.open = false;
35
+ this.buttonEl.focus();
36
+ }
37
+ }
30
38
  toggleDropdown() {
31
39
  this.open = !this.open;
40
+ if (this.open) {
41
+ requestAnimationFrame(() => {
42
+ const selectors = "a, [tabindex='0']";
43
+ const firstFocusableElement = this.host.shadowRoot.querySelector(selectors) || this.host.querySelector(selectors);
44
+ if (firstFocusableElement instanceof HTMLElement) {
45
+ firstFocusableElement.focus();
46
+ }
47
+ });
48
+ }
49
+ }
50
+ connectedCallback() {
51
+ const hasLabelSlot = hasSlot('label', this.host);
52
+ if (!this.tdsAriaLabel && !hasLabelSlot) {
53
+ console.warn('Tegel Header Dropdown component: use label slot or specify tdsAriaLabel prop');
54
+ }
32
55
  }
33
56
  render() {
34
- return (h(Host, { key: '1b3cd2ffee7d6543e98bab5cc3d1953770110ce8' }, h("div", { key: '23f60d4d56e08725985f71f5952b324f5044f53b', class: {
57
+ return (h(Host, { key: '1bbf8ce73b5f0067b2ffe8d634ba0a3efd6f4fdb' }, h("div", { key: 'd2c548b3989a81a74c2b2985bae4a0afb10bbe06', class: {
35
58
  'state-open': this.open,
36
- } }, h("tds-header-item", { key: '0297ccda2dbf13709443e4b548687e2f648f0bcf', class: "button", active: this.open, selected: this.selected }, h("button", { key: '6f9ea91a3270ea6eeb29a79571567ae8abef001d', ref: (el) => {
59
+ } }, h("tds-header-item", { key: '2300d57edbebbc66ed1b27a60a9fcb235ddb4b88', class: "button", active: this.open, selected: this.selected }, h("button", { key: 'da6f8271968491b092b18bc835b815e1796af935', ref: (el) => {
37
60
  this.buttonEl = el;
38
61
  }, "aria-expanded": `${this.open}`, "aria-controls": `launcher-${this.uuid}`, "aria-current": this.selected ? 'location' : 'false', onClick: () => {
39
62
  this.toggleDropdown();
40
- } }, h("slot", { key: 'dcc2a8a717706ee3287499805bc32c98b0b29770', name: "icon" }), this.label, h("slot", { key: 'bad14e728dfe465e59a8e98a4ea5a858fc066bb3', name: "label" }), !this.noDropdownIcon && (h("tds-icon", { key: '9963966ab41666db7ba8b75089a46b132b8db6dd', class: "dropdown-icon", name: "chevron_down", size: "16px" })))), this.buttonEl && (h("tds-popover-canvas", { key: 'cb7b4fb085a94e6243ad6c70144e5b3c6460d27e', id: `tds-dropdown-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
63
+ }, "aria-label": this.tdsAriaLabel }, h("slot", { key: 'a9c1c657944cdbd826672e53ffce819df1b261de', name: "icon" }), this.label, h("slot", { key: 'a47173535a91f2a5b94060b6745b7ff60e380b19', name: "label" }), !this.noDropdownIcon && (h("tds-icon", { key: '4e2d7e29d2775ef65b636faf0eb16739575f0bed', class: "dropdown-icon", name: "chevron_down", size: "16px", svgTitle: "Dropdown icon" })))), this.buttonEl && (h("tds-popover-canvas", { key: '67ec32703a4fe306ac8b1a5b3e7ed4d48c257161', id: `tds-dropdown-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
41
64
  {
42
65
  name: 'flip',
43
66
  options: {
@@ -8,10 +8,16 @@ const TdsHeaderHamburgerStyle0 = headerHamburgerCss;
8
8
  const TdsHeaderHamburger = class {
9
9
  constructor(hostRef) {
10
10
  registerInstance(this, hostRef);
11
+ this.tdsAriaLabel = undefined;
12
+ }
13
+ connectedCallback() {
14
+ if (!this.tdsAriaLabel) {
15
+ console.warn('Tegel Header Hamburger component: missing tdsAriaLabel prop');
16
+ }
11
17
  }
12
18
  render() {
13
19
  const inheritedButtonProps = Object.assign({}, inheritAriaAttributes(this.host));
14
- return (h(Host, { key: 'f2f230c8349ca3b5fdcfd7de67555b12888bd9d9' }, h("tds-header-item", { key: '7db87ae4ad59bea1040399a33fdf77aa490ae1ca' }, h("button", Object.assign({ key: 'bf5e3103c23c02e42db7e99a423348efb4488ed7' }, inheritedButtonProps), h("tds-icon", { key: '306b78525304ac2f30a4bcb0be37c0ed7998b01f', class: "icon", name: "burger", size: "20px" })))));
20
+ return (h(Host, { key: '774d1727624bfe4f8606d2efea75236532f2e9b2' }, h("tds-header-item", { key: '70cbf14a6b7ea638465d56780780ef3e9b5e0f4e' }, h("button", Object.assign({ key: 'af50f354dca1b518b13216ae0ce6cc85488f7df3' }, inheritedButtonProps, { "aria-label": this.tdsAriaLabel }), h("tds-icon", { key: '7978cd71ad41001dee4dbdb12894e22e716f3164', class: "icon", name: "burger", size: "20px" })))));
15
21
  }
16
22
  get host() { return getElement(this); }
17
23
  };
@@ -9,11 +9,12 @@ const TdsHeaderLauncherButton = class {
9
9
  constructor(hostRef) {
10
10
  registerInstance(this, hostRef);
11
11
  this.active = false;
12
+ this.tdsAriaLabel = undefined;
12
13
  }
13
14
  render() {
14
15
  this.ariaAttributes = Object.assign(Object.assign({}, this.ariaAttributes), inheritAriaAttributes(this.host));
15
16
  const buttonProps = Object.assign({}, this.ariaAttributes);
16
- return (h(Host, { key: '335cfea4d8b36b95639985dc4a67f6ccc891d122' }, h("tds-header-item", { key: '0b497a3b369d43dd3c43f4471e9e9d825f2b5bd1', active: this.active }, h("button", Object.assign({ key: '84aaba13ed00d3515f98d81b419ab2898bca4910' }, buttonProps), h("tds-icon", { key: 'f65b047f5c36222b20c73ffd2340eebca0f47d33', class: "icon", name: "bento", size: "20px" })))));
17
+ return (h(Host, { key: '445f5863dd96c417c99e460248bd0f2c2a224f0a' }, h("tds-header-item", { key: '792692a34c1192d37e81322a8e75387e51954ebe', active: this.active }, h("button", Object.assign({ key: '7be3e9e148ceab7b361f37b1029dfad474db7b16' }, buttonProps, { "aria-label": this.tdsAriaLabel }), h("tds-icon", { key: '5001f19dfa40ade6a9c64052caa4c38de901a5d4', class: "icon", name: "bento", size: "20px", "svg-title": this.tdsAriaLabel })))));
17
18
  }
18
19
  get host() { return getElement(this); }
19
20
  };
@@ -13,6 +13,7 @@ const TdsHeaderLauncher = class {
13
13
  this.open = false;
14
14
  this.buttonEl = undefined;
15
15
  this.hasListTypeMenu = false;
16
+ this.tdsAriaLabel = undefined;
16
17
  }
17
18
  onAnyClick(event) {
18
19
  // Source: https://lamplightdev.com/blog/2021/04/10/how-to-detect-clicks-outside-of-a-web-component/
@@ -21,12 +22,32 @@ const TdsHeaderLauncher = class {
21
22
  this.open = false;
22
23
  }
23
24
  }
25
+ handleKeyDown(event) {
26
+ if (event.key === 'Escape' && this.open) {
27
+ this.open = false;
28
+ this.buttonEl.shadowRoot.querySelector('button').focus();
29
+ }
30
+ }
24
31
  componentDidLoad() {
25
32
  const hasListTypeMenu = !!this.host.querySelector('tds-header-launcher-list');
26
33
  this.hasListTypeMenu = hasListTypeMenu;
27
34
  }
28
35
  toggleLauncher() {
29
36
  this.open = !this.open;
37
+ if (this.open) {
38
+ requestAnimationFrame(() => {
39
+ const selectors = "a, [tabindex='0']";
40
+ const firstFocusableElement = this.host.shadowRoot.querySelector(selectors) || this.host.querySelector(selectors);
41
+ if (firstFocusableElement instanceof HTMLElement) {
42
+ firstFocusableElement.focus();
43
+ }
44
+ });
45
+ }
46
+ }
47
+ connectedCallback() {
48
+ if (!this.tdsAriaLabel) {
49
+ console.warn('Tegel Header Launcher component: missing tdsAriaLabel prop');
50
+ }
30
51
  }
31
52
  render() {
32
53
  this.ariaAttributes = Object.assign(Object.assign({}, this.ariaAttributes), inheritAriaAttributes(this.host, ['role']));
@@ -35,11 +56,11 @@ const TdsHeaderLauncher = class {
35
56
  }, 'ref': (el) => {
36
57
  this.buttonEl = el;
37
58
  } });
38
- return (h(Host, { key: 'd886168b8834ced8a2705b30b9982726dc72f8b6' }, h("div", { key: '0c4b9b27e82cf91c000619ef8d0593f8b664b605', class: {
59
+ return (h(Host, { key: '3a0100f1429a1e09a5745c6b74835bddb6ba5157' }, h("div", { key: '50220e92372ac5496a4b589441e4920375169e79', class: {
39
60
  'wrapper': true,
40
61
  'state-open': this.open,
41
62
  'state-list-type-menu': this.hasListTypeMenu,
42
- } }, h("tds-header-launcher-button", Object.assign({ key: 'd0ff7205bf79ef4744d65dcf98734aff5520b004' }, buttonAttributes)), this.buttonEl && (h("tds-popover-canvas", { key: 'c337c31282b08c5add95b16271bdfc147fd16c5c', id: `tds-launcher-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
63
+ } }, h("tds-header-launcher-button", Object.assign({ key: 'd58c3ba5f08809487eeca1e6ce8a31879f0c52d9' }, buttonAttributes, { "tds-aria-label": this.tdsAriaLabel })), this.buttonEl && (h("tds-popover-canvas", { key: '4806b02e07aef32a640eedc1f0f76285950ec384', id: `tds-launcher-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
43
64
  {
44
65
  name: 'flip',
45
66
  options: {
@@ -11,12 +11,13 @@ const Icon = class {
11
11
  registerInstance(this, hostRef);
12
12
  this.setIcons = () => this.arrayOfIcons.map((element) => {
13
13
  if (element.name === this.name) {
14
- return (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", "aria-labelledby": this.svgTitle ? `title-${this.name}` : undefined, "aria-describedby": this.svgDescription ? `desc-${this.name}` : undefined, role: "img", style: { fontSize: this.size }, height: this.size, width: this.size }, this.svgTitle && h("title", { id: `title-${this.name}` }, this.svgTitle), this.svgDescription && h("desc", { id: `desc-${this.name}` }, this.svgDescription), h("path", { fill: "currentColor", d: element.definition })));
14
+ return (h("svg", { "aria-hidden": this.tdsAriaHidden, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", "aria-labelledby": this.svgTitle ? `title-${this.name}` : undefined, "aria-describedby": this.svgDescription ? `desc-${this.name}` : undefined, role: "img", style: { fontSize: this.size }, height: this.size, width: this.size }, this.svgTitle && h("title", { id: `title-${this.name}` }, this.svgTitle), this.svgDescription && h("desc", { id: `desc-${this.name}` }, this.svgDescription), h("path", { fill: "currentColor", d: element.definition })));
15
15
  }
16
16
  });
17
17
  this.name = 'truck';
18
18
  this.size = '16px';
19
19
  this.svgTitle = undefined;
20
+ this.tdsAriaHidden = false;
20
21
  this.svgDescription = undefined;
21
22
  this.icons_object = iconsCollection;
22
23
  this.arrayOfIcons = [];
@@ -34,7 +35,7 @@ const Icon = class {
34
35
  this.arrayOfIcons = [...this.arrayOfIcons];
35
36
  }
36
37
  render() {
37
- return h(Host, { key: '7501bac4e182e5b44030b140b4c2c68e0fd2522b' }, this.setIcons());
38
+ return h(Host, { key: 'd19a1de2f0267b93717324d424b9c89e19bbcb21' }, this.setIcons());
38
39
  }
39
40
  };
40
41
  Icon.style = TdsIconStyle0;
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-51d04e39.js';
2
2
 
3
- const inlineTabsCss = ":host{box-sizing:border-box;display:flex;background-color:var(--tds-inline-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:\" \";display:block;border-bottom:1px solid var(--tds-inline-tabs-horizontal-divider-background);opacity:var(--tds-inline-tabs-horizontal-divider-opacity);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none;gap:16px}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
3
+ const inlineTabsCss = ":host{box-sizing:border-box;display:flex;background-color:var(--tds-inline-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:\" \";display:block;border-bottom:1px solid var(--tds-inline-tabs-horizontal-divider-background);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none;gap:16px}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
4
4
  const TdsInlineTabsStyle0 = inlineTabsCss;
5
5
 
6
6
  const TdsInlineTabs = class {
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
2
2
  import { h as hasSlot } from './hasSlot-d52114d0.js';
3
3
  import { g as generateUniqueId } from './generateUniqueId-7934d315.js';
4
4
 
5
- const modalCss = ".tds-modal{box-sizing:border-box;background-color:var(--tds-modal-background);margin:auto;position:relative;border-radius:4px;max-height:85vh;overflow-y:auto;pointer-events:auto;}.tds-modal *{box-sizing:border-box}.tds-modal::-webkit-scrollbar{width:5px;background-color:var(--tds-grey-300);border-radius:0 1em 1em 0}.tds-modal::-webkit-scrollbar-track{background-color:var(--tds-grey-300);border-radius:0 1em 1em 0}.tds-modal::-webkit-scrollbar-thumb{background-color:var(--tds-grey-500);border-radius:0 1em 1em 0}.tds-modal__actions-sticky{overflow:hidden;display:flex;flex-direction:column}.tds-modal__actions-sticky .body{font:var(--tds-body-01);letter-spacing:var(--tds-body-01-ls);max-height:calc(85vh - 36px);overflow-y:auto}.tds-modal__actions-sticky slot[name=actions]{bottom:-1px;left:0;right:0;background-color:var(--tds-modal-background);padding:var(--tds-spacing-element-24) var(--tds-spacing-element-16) var(--tds-spacing-element-16);display:flex;gap:16px}.tds-modal__actions-static slot[name=actions]{background-color:var(--tds-modal-background);display:flex;gap:16px;padding:24px 16px 16px}@media (min-width: 320px){.tds-modal-xs{width:100%}.tds-modal-sm{width:100%}.tds-modal-md{width:100%}.tds-modal-lg{width:100%}}@media (min-width: 672px){.tds-modal-xs{width:50%}.tds-modal-sm{width:62.5%}.tds-modal-md{width:75%}.tds-modal-lg{width:100%}}@media (min-width: 1056px){.tds-modal-xs{width:31.25%}.tds-modal-sm{width:43.75%}.tds-modal-md{width:62.5%}.tds-modal-lg{width:75%}}@media (min-width: 1312px){.tds-modal-xs{width:31.25%}.tds-modal-sm{width:37.5%}.tds-modal-md{width:62.5%}.tds-modal-lg{width:75%}}@media (min-width: 1584px){.tds-modal-xs{width:25%}.tds-modal-sm{width:37.5%}.tds-modal-md{width:50%}.tds-modal-lg{width:75%}}@media (max-width: 320px){.tds-modal-md,.tds-modal-lg,.tds-modal-sm{height:100%}.tds-modal-md slot[name=actions]::slotted(*),.tds-modal-lg slot[name=actions]::slotted(*),.tds-modal-sm slot[name=actions]::slotted(*){display:flex}}.header{display:flex;padding:var(--tds-spacing-element-16);position:sticky;top:0;background-color:var(--tds-modal-background);z-index:1}.header,slot[name=header]::slotted(*){color:var(--tds-modal-text);font:var(--tds-headline-05) !important;letter-spacing:var(--tds-headline-05-ls) !important;margin:0;flex:1}.body{color:var(--tds-modal-text);font:var(--tds-body-01);letter-spacing:var(--tds-body-01-ls);overflow-y:visible;padding:0 var(--tds-spacing-element-16) var(--tds-spacing-element-16);}.body::-webkit-scrollbar{width:5px;background-color:var(--tds-grey-300)}.body::-webkit-scrollbar-track{background-color:var(--tds-grey-300)}.body::-webkit-scrollbar-thumb{background-color:var(--tds-grey-500)}.tds-modal-backdrop{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--tds-modal-backdrop);pointer-events:auto}.tds-modal-backdrop *{box-sizing:border-box}button.tds-modal-close{margin:0 0 auto auto;background-color:transparent;border:0;padding:0;appearance:unset}.tds-modal-close{display:inline-block;height:auto;color:var(--tds-modal-icon);cursor:pointer}.tds-modal-close:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}@media (min-width: 320px){.tds-modal-close{margin-left:var(--tds-spacing-element-16)}}@media (min-width: 1056px){.tds-modal-close{margin-left:var(--tds-spacing-element-48)}}.tds-modal-close-btn{display:inline-block;height:auto;background-repeat:no-repeat;cursor:pointer}@media (min-width: 320px){.tds-modal-close-btn{margin-left:var(--tds-spacing-element-16)}}@media (min-width: 1056px){.tds-modal-close-btn{margin-left:var(--tds-spacing-element-48)}}.tds-modal-close-btn svg{fill:var(--tds-modal-icon)}.tds-modal-overflow{overflow:hidden}:host{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;padding:0 16px;z-index:700;pointer-events:none}:host *{box-sizing:border-box}:host .tds-modal-close{border:none;background-color:transparent}:host .tds-modal-close-btn{border:none;background-color:transparent}@media (max-width: 320px){:host{padding:0}}:host.show{display:flex}:host.hide{display:none}:host(.show){display:flex}:host(.hide){display:none}";
5
+ const modalCss = ".tds-modal{box-sizing:border-box;background-color:var(--background-elevation-layer-02);margin:auto;position:relative;border-radius:var(--radius-narrow);max-height:85vh;overflow-y:auto;pointer-events:auto}.tds-modal *{box-sizing:border-box}.tds-modal::-webkit-scrollbar{width:6px;background-color:transparent}.tds-modal::-webkit-scrollbar-track{background-color:transparent}.tds-modal::-webkit-scrollbar-thumb{background-color:var(--foreground-elements-transparparent-discrete);border-radius:3px}.tds-modal__actions-sticky{overflow:hidden;display:flex;flex-direction:column}.tds-modal__actions-sticky .body{font-family:var(--body-01-font-family);font-size:var(--body-01-font-size);line-height:var(--body-01-line-height);font-weight:var(--body-01-font-weight);letter-spacing:var(--body-01-letter-spacing);text-transform:var(--body-01-text-transform);max-height:calc(85vh - 36px);overflow-y:auto}.tds-modal__actions-sticky slot[name=actions]{bottom:-1px;left:0;right:0;background-color:var(--background-elevation-layer-02);padding:24px 16px 16px;display:flex;gap:16px}.tds-modal__actions-static slot[name=actions]{background-color:var(--background-elevation-layer-02);display:flex;gap:16px;padding:24px 16px 16px}@media (min-width: 320px){.tds-modal-xs{width:100%}.tds-modal-sm{width:100%}.tds-modal-md{width:100%}.tds-modal-lg{width:100%}}@media (min-width: 672px){.tds-modal-xs{width:50%}.tds-modal-sm{width:62.5%}.tds-modal-md{width:75%}.tds-modal-lg{width:100%}}@media (min-width: 1056px){.tds-modal-xs{width:31.25%}.tds-modal-sm{width:43.75%}.tds-modal-md{width:62.5%}.tds-modal-lg{width:75%}}@media (min-width: 1312px){.tds-modal-xs{width:31.25%}.tds-modal-sm{width:37.5%}.tds-modal-md{width:62.5%}.tds-modal-lg{width:75%}}@media (min-width: 1584px){.tds-modal-xs{width:25%}.tds-modal-sm{width:37.5%}.tds-modal-md{width:50%}.tds-modal-lg{width:75%}}@media (max-width: 320px){.tds-modal-md,.tds-modal-lg,.tds-modal-sm{height:100%}.tds-modal-md slot[name=actions]::slotted(*),.tds-modal-lg slot[name=actions]::slotted(*),.tds-modal-sm slot[name=actions]::slotted(*){display:flex}}.header{display:flex;padding:16px;position:sticky;top:0;background-color:var(--background-elevation-layer-02);z-index:1}.header,slot[name=header]::slotted(*){font-family:var(--headline-05-font-family);font-size:var(--headline-05-font-size);line-height:var(--headline-05-line-height);font-weight:var(--headline-05-font-weight);letter-spacing:var(--headline-05-letter-spacing);text-transform:var(--headline-05-text-transform);color:var(--foreground-text-strong);margin:0;flex:1}.body{font-family:var(--body-01-font-family);font-size:var(--body-01-font-size);line-height:var(--body-01-line-height);font-weight:var(--body-01-font-weight);letter-spacing:var(--body-01-letter-spacing);text-transform:var(--body-01-text-transform);color:var(--foreground-text-strong);overflow-y:visible;padding:0 16px 16px}.body::-webkit-scrollbar{width:6px;background-color:transparent}.body::-webkit-scrollbar-track{background-color:transparent}.body::-webkit-scrollbar-thumb{background-color:var(--foreground-elements-transparparent-discrete);border-radius:3px}.tds-modal-backdrop{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--background-elevation-scrim);pointer-events:auto}.tds-modal-backdrop *{box-sizing:border-box}button.tds-modal-close{margin:0 0 auto auto;background-color:transparent;border:0;padding:0;appearance:unset}.tds-modal-close{display:inline-block;height:auto;color:var(--foreground-text-strong);cursor:pointer}.tds-modal-close:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}@media (min-width: 320px){.tds-modal-close{margin-left:16px}}@media (min-width: 1056px){.tds-modal-close{margin-left:48px}}.tds-modal-close-btn{display:inline-block;height:auto;background-repeat:no-repeat;cursor:pointer}@media (min-width: 320px){.tds-modal-close-btn{margin-left:16px}}@media (min-width: 1056px){.tds-modal-close-btn{margin-left:48px}}.tds-modal-close-btn svg{fill:var(--foreground-text-strong)}.tds-modal-overflow{overflow:hidden}:host{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;padding:0 16px;z-index:700;pointer-events:none}:host *{box-sizing:border-box}:host .tds-modal-close{border:none;background-color:transparent}:host .tds-modal-close-btn{border:none;background-color:transparent}@media (max-width: 320px){:host{padding:0}}:host.show{display:flex}:host.hide{display:none}:host(.show){display:flex}:host(.hide){display:none}";
6
6
  const TdsModalStyle0 = modalCss;
7
7
 
8
8
  const TdsModal = class {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-51d04e39.js';
2
2
 
3
- const navigationTabsCss = ":host{box-sizing:border-box;display:flex;background-color:var(--tds-inline-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:\" \";display:block;border-bottom:1px solid var(--tds-inline-tabs-horizontal-divider-background);opacity:var(--tds-inline-tabs-horizontal-divider-opacity);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none;gap:16px}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
3
+ const navigationTabsCss = ":host{box-sizing:border-box;display:flex;background-color:var(--tds-navigation-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:\" \";display:block;border-bottom:1px solid var(--tds-navigation-tabs-horizontal-divider-background);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none;gap:16px}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
4
4
  const TdsNavigationTabsStyle0 = navigationTabsCss;
5
5
 
6
6
  const TdsNavigationTabs = class {
@@ -17,6 +17,7 @@ const TdsPopoverCanvas = class {
17
17
  this.animation = 'none';
18
18
  this.offsetDistance = 8;
19
19
  this.modifiers = [];
20
+ this.tdsAlertDialog = 'dialog';
20
21
  this.childRef = undefined;
21
22
  }
22
23
  /** Property for closing popover programmatically */
@@ -29,12 +30,12 @@ const TdsPopoverCanvas = class {
29
30
  }
30
31
  render() {
31
32
  var _a;
32
- return (h(Host, { key: '68de2e7161c5060c98b1c0c78050f41a716228ee' }, h("tds-popover-core", Object.assign({ key: 'f50ae36ac2b76445d78cbe4750820d3c684e862a' }, this.inheritedAttributes, { class: {
33
+ return (h(Host, { key: '65f267d001dc720000b13f6b46010781ccd3119c' }, h("tds-popover-core", Object.assign({ key: '5a3df2dbc918a330f895fbfb4bbf1a5a6ebe2c21', role: this.tdsAlertDialog }, this.inheritedAttributes, { class: {
33
34
  'tds-popover-canvas': true,
34
35
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
35
36
  }, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, modifiers: this.modifiers, trigger: 'click', ref: (el) => {
36
37
  this.childRef = el;
37
- }, defaultShow: this.defaultShow, animation: this.animation }), h("div", { key: '1dac1d925ab9673219449d3885cd7430a3e3f188' }, h("slot", { key: '9c5d3c152b63e0afd8c30e4960edbd2aa3418fd2' })))));
38
+ }, defaultShow: this.defaultShow, animation: this.animation }), h("div", { key: '3c24d23c70824186c971ce3cfe79d2d14ac472a1' }, h("slot", { key: 'ca58b5e939aabdbe80ca92d747c191f08ad34b4d' })))));
38
39
  }
39
40
  get host() { return getElement(this); }
40
41
  };