@scania/tegel 1.31.1-textarea-reactive-value-beta.1 → 1.32.0-accessibility-beta.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 (275) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/tds-accordion-item.cjs.entry.js +1 -1
  3. package/dist/cjs/tds-accordion.cjs.entry.js +1 -1
  4. package/dist/cjs/tds-badge.cjs.entry.js +1 -1
  5. package/dist/cjs/tds-banner.cjs.entry.js +1 -1
  6. package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
  7. package/dist/cjs/tds-button.cjs.entry.js +6 -4
  8. package/dist/cjs/tds-checkbox.cjs.entry.js +9 -3
  9. package/dist/cjs/tds-chip.cjs.entry.js +1 -1
  10. package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
  11. package/dist/cjs/tds-datetime.cjs.entry.js +10 -3
  12. package/dist/cjs/tds-dropdown_2.cjs.entry.js +32 -11
  13. package/dist/cjs/tds-folder-tab.cjs.entry.js +3 -3
  14. package/dist/cjs/tds-folder-tabs.cjs.entry.js +3 -3
  15. package/dist/cjs/tds-footer-group.cjs.entry.js +1 -1
  16. package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
  17. package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
  18. package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +1 -1
  19. package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
  20. package/dist/cjs/tds-inline-tab.cjs.entry.js +2 -2
  21. package/dist/cjs/tds-inline-tabs.cjs.entry.js +3 -3
  22. package/dist/cjs/tds-message.cjs.entry.js +1 -1
  23. package/dist/cjs/tds-modal.cjs.entry.js +1 -1
  24. package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
  25. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +5 -5
  26. package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
  27. package/dist/cjs/tds-radio-button.cjs.entry.js +8 -2
  28. package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +1 -1
  29. package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
  30. package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
  31. package/dist/cjs/tds-step.cjs.entry.js +2 -2
  32. package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +1 -1
  33. package/dist/cjs/tds-table-footer.cjs.entry.js +1 -1
  34. package/dist/cjs/tds-table-toolbar.cjs.entry.js +3 -3
  35. package/dist/cjs/tds-text-field.cjs.entry.js +5 -5
  36. package/dist/cjs/tds-textarea.cjs.entry.js +10 -3
  37. package/dist/cjs/tds-toast.cjs.entry.js +4 -4
  38. package/dist/cjs/tds-toggle.cjs.entry.js +9 -3
  39. package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
  40. package/dist/cjs/tegel.cjs.js +1 -1
  41. package/dist/collection/components/accordion/accordion-item/accordion-item.css +2 -1
  42. package/dist/collection/components/accordion/accordion.css +2 -1
  43. package/dist/collection/components/badge/badge.css +1 -1
  44. package/dist/collection/components/banner/banner.css +2 -1
  45. package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.css +2 -1
  46. package/dist/collection/components/button/button.css +60 -57
  47. package/dist/collection/components/button/button.js +39 -3
  48. package/dist/collection/components/checkbox/checkbox.css +5 -5
  49. package/dist/collection/components/checkbox/checkbox.js +25 -2
  50. package/dist/collection/components/chip/chip.css +4 -3
  51. package/dist/collection/components/datetime/datetime.js +27 -3
  52. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +2 -1
  53. package/dist/collection/components/dropdown/dropdown.css +2 -2
  54. package/dist/collection/components/dropdown/dropdown.js +30 -9
  55. package/dist/collection/components/footer/footer-group/footer-group.css +3 -3
  56. package/dist/collection/components/footer/footer-item/footer-item.css +6 -4
  57. package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.css +2 -1
  58. package/dist/collection/components/header/header-item/header-item.css +2 -1
  59. package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.css +2 -1
  60. package/dist/collection/components/message/message.css +12 -1
  61. package/dist/collection/components/modal/modal.css +2 -1
  62. package/dist/collection/components/popover-core/tds-popover-core.css +550 -495
  63. package/dist/collection/components/radio-button/radio-button.css +4 -7
  64. package/dist/collection/components/radio-button/radio-button.js +28 -1
  65. package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.css +2 -1
  66. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.css +2 -1
  67. package/dist/collection/components/slider/slider-stories-setup.js +233 -0
  68. package/dist/collection/components/spinner/spinner.css +3 -3
  69. package/dist/collection/components/stepper/step/step.css +19 -27
  70. package/dist/collection/components/stepper/step/step.js +1 -1
  71. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +2 -1
  72. package/dist/collection/components/table/table-footer/table-footer.css +2 -1
  73. package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -1
  74. package/dist/collection/components/table/table-toolbar/table-toolbar.css +6 -1
  75. package/dist/collection/components/table/table-toolbar/table-toolbar.js +3 -2
  76. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.css +2 -1
  77. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +2 -2
  78. package/dist/collection/components/tabs/folder-tabs/folder-tabs.css +2 -1
  79. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
  80. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +2 -2
  81. package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +2 -1
  82. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
  83. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +2 -2
  84. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +2 -1
  85. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +4 -4
  86. package/dist/collection/components/text-field/text-field.js +5 -5
  87. package/dist/collection/components/textarea/textarea.js +31 -3
  88. package/dist/collection/components/toast/toast.css +10 -12
  89. package/dist/collection/components/toast/toast.js +3 -3
  90. package/dist/collection/components/toggle/toggle.css +18 -3
  91. package/dist/collection/components/toggle/toggle.js +25 -2
  92. package/dist/collection/components/tooltip/tooltip.js +2 -2
  93. package/dist/collection/stories/formatHtmlPreview.js +10 -0
  94. package/dist/collection/utils/accessibility.js +30 -0
  95. package/dist/collection/utils/axeHelpers.js +11 -2
  96. package/dist/components/{p-ece91cb9.js → p-037c48f6.js} +1 -1
  97. package/dist/components/{p-6732b15a.js → p-1c6e7dc9.js} +1 -1
  98. package/dist/components/p-31327d07.js +2098 -0
  99. package/dist/components/{p-1ef7423a.js → p-58b92113.js} +11 -4
  100. package/dist/components/{p-adbf32b9.js → p-5fad6216.js} +31 -10
  101. package/dist/components/{p-6cdccb27.js → p-76dc921a.js} +1 -1
  102. package/dist/components/{p-7ee8b262.js → p-9d6af0e6.js} +2 -2
  103. package/dist/components/{p-516d8085.js → p-a6d4fbb4.js} +1 -1
  104. package/dist/components/{p-84a20410.js → p-c46ecd24.js} +1 -1
  105. package/dist/components/{p-4420365f.js → p-ebafe83d.js} +3 -3
  106. package/dist/components/tds-accordion-item.js +1 -1
  107. package/dist/components/tds-accordion.js +1 -1
  108. package/dist/components/tds-badge.js +1 -1
  109. package/dist/components/tds-banner.js +1 -1
  110. package/dist/components/tds-breadcrumb.js +1 -1
  111. package/dist/components/tds-button.js +8 -4
  112. package/dist/components/tds-checkbox.js +1 -1
  113. package/dist/components/tds-chip.js +1 -1
  114. package/dist/components/tds-datetime.js +12 -4
  115. package/dist/components/tds-dropdown-option.js +1 -1
  116. package/dist/components/tds-dropdown.js +1 -1
  117. package/dist/components/tds-folder-tab.js +3 -3
  118. package/dist/components/tds-folder-tabs.js +3 -3
  119. package/dist/components/tds-footer-group.js +1 -1
  120. package/dist/components/tds-footer-item.js +1 -1
  121. package/dist/components/tds-header-brand-symbol.js +1 -1
  122. package/dist/components/tds-header-cell.js +1 -1
  123. package/dist/components/tds-header-dropdown-list-item.js +1 -1
  124. package/dist/components/tds-header-dropdown.js +3 -3
  125. package/dist/components/tds-header-hamburger.js +1 -1
  126. package/dist/components/tds-header-item.js +1 -1
  127. package/dist/components/tds-header-launcher-button.js +1 -1
  128. package/dist/components/tds-header-launcher-grid-item.js +1 -1
  129. package/dist/components/tds-header-launcher-list-item.js +1 -1
  130. package/dist/components/tds-header-launcher.js +4 -4
  131. package/dist/components/tds-inline-tab.js +2 -2
  132. package/dist/components/tds-inline-tabs.js +3 -3
  133. package/dist/components/tds-message.js +1 -1
  134. package/dist/components/tds-modal.js +1 -1
  135. package/dist/components/tds-navigation-tab.js +2 -2
  136. package/dist/components/tds-navigation-tabs.js +5 -5
  137. package/dist/components/tds-popover-canvas.js +1 -1
  138. package/dist/components/tds-popover-core.js +1 -1
  139. package/dist/components/tds-popover-menu.js +1 -1
  140. package/dist/components/tds-radio-button.js +10 -3
  141. package/dist/components/tds-side-menu-collapse-button.js +1 -1
  142. package/dist/components/tds-side-menu-dropdown-list-item.js +1 -1
  143. package/dist/components/tds-side-menu-dropdown.js +1 -1
  144. package/dist/components/tds-side-menu-item.js +1 -1
  145. package/dist/components/tds-spinner.js +1 -1
  146. package/dist/components/tds-step.js +2 -2
  147. package/dist/components/tds-table-body-row-expandable.js +1 -1
  148. package/dist/components/tds-table-body-row.js +1 -1
  149. package/dist/components/tds-table-footer.js +4 -4
  150. package/dist/components/tds-table-header.js +1 -1
  151. package/dist/components/tds-table-toolbar.js +3 -3
  152. package/dist/components/tds-text-field.js +5 -5
  153. package/dist/components/tds-textarea.js +14 -6
  154. package/dist/components/tds-toast.js +4 -4
  155. package/dist/components/tds-toggle.js +11 -4
  156. package/dist/components/tds-tooltip.js +1 -1
  157. package/dist/esm/loader.js +1 -1
  158. package/dist/esm/tds-accordion-item.entry.js +1 -1
  159. package/dist/esm/tds-accordion.entry.js +1 -1
  160. package/dist/esm/tds-badge.entry.js +1 -1
  161. package/dist/esm/tds-banner.entry.js +1 -1
  162. package/dist/esm/tds-breadcrumb.entry.js +1 -1
  163. package/dist/esm/tds-button.entry.js +6 -4
  164. package/dist/esm/tds-checkbox.entry.js +9 -3
  165. package/dist/esm/tds-chip.entry.js +1 -1
  166. package/dist/esm/tds-core-header-item_2.entry.js +1 -1
  167. package/dist/esm/tds-datetime.entry.js +10 -3
  168. package/dist/esm/tds-dropdown_2.entry.js +32 -11
  169. package/dist/esm/tds-folder-tab.entry.js +3 -3
  170. package/dist/esm/tds-folder-tabs.entry.js +3 -3
  171. package/dist/esm/tds-footer-group.entry.js +1 -1
  172. package/dist/esm/tds-footer-item.entry.js +1 -1
  173. package/dist/esm/tds-header-cell.entry.js +1 -1
  174. package/dist/esm/tds-header-dropdown-list-item.entry.js +1 -1
  175. package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
  176. package/dist/esm/tds-inline-tab.entry.js +2 -2
  177. package/dist/esm/tds-inline-tabs.entry.js +3 -3
  178. package/dist/esm/tds-message.entry.js +1 -1
  179. package/dist/esm/tds-modal.entry.js +1 -1
  180. package/dist/esm/tds-navigation-tab.entry.js +2 -2
  181. package/dist/esm/tds-navigation-tabs.entry.js +5 -5
  182. package/dist/esm/tds-popover-core.entry.js +1 -1
  183. package/dist/esm/tds-radio-button.entry.js +8 -2
  184. package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +1 -1
  185. package/dist/esm/tds-side-menu-item.entry.js +1 -1
  186. package/dist/esm/tds-spinner.entry.js +1 -1
  187. package/dist/esm/tds-step.entry.js +2 -2
  188. package/dist/esm/tds-table-body-row-expandable.entry.js +1 -1
  189. package/dist/esm/tds-table-footer.entry.js +1 -1
  190. package/dist/esm/tds-table-toolbar.entry.js +3 -3
  191. package/dist/esm/tds-text-field.entry.js +5 -5
  192. package/dist/esm/tds-textarea.entry.js +10 -3
  193. package/dist/esm/tds-toast.entry.js +4 -4
  194. package/dist/esm/tds-toggle.entry.js +9 -3
  195. package/dist/esm/tds-tooltip.entry.js +2 -2
  196. package/dist/esm/tegel.js +1 -1
  197. package/dist/tegel/{p-6cdbdb4e.entry.js → p-08cee6a4.entry.js} +1 -1
  198. package/dist/tegel/{p-a1262f8f.entry.js → p-106e048d.entry.js} +1 -1
  199. package/dist/tegel/{p-1336fb6c.entry.js → p-120b5875.entry.js} +1 -1
  200. package/dist/tegel/{p-3e4707fb.entry.js → p-2e5d2bec.entry.js} +1 -1
  201. package/dist/tegel/{p-dfe24bb1.entry.js → p-32540392.entry.js} +1 -1
  202. package/dist/tegel/p-326f0bf4.entry.js +1 -0
  203. package/dist/tegel/{p-1120575b.entry.js → p-364c08ec.entry.js} +1 -1
  204. package/dist/tegel/p-3a92d554.entry.js +1 -0
  205. package/dist/tegel/{p-d4891ce6.entry.js → p-4d60aa49.entry.js} +1 -1
  206. package/dist/tegel/p-50ca8e71.entry.js +1 -0
  207. package/dist/tegel/{p-1116da44.entry.js → p-52adc30c.entry.js} +1 -1
  208. package/dist/tegel/p-5dd2aac8.entry.js +1 -0
  209. package/dist/tegel/{p-87ba6285.entry.js → p-5df726fb.entry.js} +1 -1
  210. package/dist/tegel/{p-d29a777f.entry.js → p-67b4b2cf.entry.js} +1 -1
  211. package/dist/tegel/{p-9d8bb017.entry.js → p-6d752168.entry.js} +1 -1
  212. package/dist/tegel/p-6d89dcbe.entry.js +1 -0
  213. package/dist/tegel/{p-9899e52e.entry.js → p-7013249b.entry.js} +1 -1
  214. package/dist/tegel/p-731f7599.entry.js +1 -0
  215. package/dist/tegel/{p-e7a452a8.entry.js → p-76faaf70.entry.js} +1 -1
  216. package/dist/tegel/p-84de314b.entry.js +1 -0
  217. package/dist/tegel/{p-e102ca15.entry.js → p-87219f00.entry.js} +1 -1
  218. package/dist/tegel/p-8bf0f99f.entry.js +1 -0
  219. package/dist/tegel/{p-c5e50096.entry.js → p-97de52aa.entry.js} +1 -1
  220. package/dist/tegel/{p-2e1d2b49.entry.js → p-9ebfde2f.entry.js} +1 -1
  221. package/dist/tegel/{p-2b8e97e1.entry.js → p-a495c4bc.entry.js} +1 -1
  222. package/dist/tegel/p-b58194f9.entry.js +1 -0
  223. package/dist/tegel/{p-d14500a1.entry.js → p-c0778293.entry.js} +1 -1
  224. package/dist/tegel/p-c6beca5e.entry.js +1 -0
  225. package/dist/tegel/p-caa00547.entry.js +1 -0
  226. package/dist/tegel/p-d9040b7f.entry.js +1 -0
  227. package/dist/tegel/p-d99df3e7.entry.js +1 -0
  228. package/dist/tegel/{p-3c51a017.entry.js → p-da60d17b.entry.js} +1 -1
  229. package/dist/tegel/p-e3c2b6b4.entry.js +1 -0
  230. package/dist/tegel/p-eb5a8659.entry.js +1 -0
  231. package/dist/tegel/p-f4283f93.entry.js +1 -0
  232. package/dist/tegel/p-f76d8ab9.entry.js +1 -0
  233. package/dist/tegel/{p-2774f177.entry.js → p-fc679bf3.entry.js} +1 -1
  234. package/dist/tegel/{p-4bd0d41c.entry.js → p-fdc5c832.entry.js} +1 -1
  235. package/dist/tegel/tegel.css +6 -6
  236. package/dist/tegel/tegel.esm.js +1 -1
  237. package/dist/types/components/button/button.d.ts +4 -0
  238. package/dist/types/components/checkbox/checkbox.d.ts +2 -0
  239. package/dist/types/components/datetime/datetime.d.ts +2 -0
  240. package/dist/types/components/radio-button/radio-button.d.ts +3 -0
  241. package/dist/types/components/slider/slider-stories-setup.d.ts +232 -0
  242. package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +1 -0
  243. package/dist/types/components/textarea/textarea.d.ts +2 -0
  244. package/dist/types/components/toggle/toggle.d.ts +3 -0
  245. package/dist/types/components.d.ts +36 -0
  246. package/dist/types/global.d.ts +1 -0
  247. package/dist/types/stories/formatHtmlPreview.d.ts +2 -0
  248. package/dist/types/utils/accessibility.d.ts +14 -0
  249. package/package.json +30 -35
  250. package/dist/collection/stories/assets/code-brackets.svg +0 -1
  251. package/dist/collection/stories/assets/colors.svg +0 -1
  252. package/dist/collection/stories/assets/comments.svg +0 -1
  253. package/dist/collection/stories/assets/direction.svg +0 -1
  254. package/dist/collection/stories/assets/flow.svg +0 -1
  255. package/dist/collection/stories/assets/plugin.svg +0 -1
  256. package/dist/collection/stories/assets/repo.svg +0 -1
  257. package/dist/collection/stories/assets/stackalt.svg +0 -1
  258. package/dist/components/p-96e83134.js +0 -2098
  259. package/dist/tegel/p-0ca95c76.entry.js +0 -1
  260. package/dist/tegel/p-1978cb0d.entry.js +0 -1
  261. package/dist/tegel/p-2286d4c3.entry.js +0 -1
  262. package/dist/tegel/p-30c88c69.entry.js +0 -1
  263. package/dist/tegel/p-503cea9d.entry.js +0 -1
  264. package/dist/tegel/p-554644a9.entry.js +0 -1
  265. package/dist/tegel/p-5ade1970.entry.js +0 -1
  266. package/dist/tegel/p-5bb01a99.entry.js +0 -1
  267. package/dist/tegel/p-90a97cc2.entry.js +0 -1
  268. package/dist/tegel/p-a9253c3a.entry.js +0 -1
  269. package/dist/tegel/p-ae0fed95.entry.js +0 -1
  270. package/dist/tegel/p-b152840e.entry.js +0 -1
  271. package/dist/tegel/p-b58c7bed.entry.js +0 -1
  272. package/dist/tegel/p-b7848493.entry.js +0 -1
  273. package/dist/tegel/p-b9603974.entry.js +0 -1
  274. package/dist/tegel/p-bbeb4e1b.entry.js +0 -1
  275. package/dist/tegel/p-d6d8cb7f.entry.js +0 -1
@@ -169,9 +169,9 @@ export class TdsInlineTabs {
169
169
  this.removeEventListenerFromTabs();
170
170
  }
171
171
  render() {
172
- return (h(Host, { key: 'ccd58f7b7b6bb4423fa45a6d6177386f5561e32a', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '0369ce03c5cb29f24762b6b5bb3ba932f82a0869', class: "wrapper", ref: (el) => {
172
+ return (h(Host, { key: '9fa2d8cb54ac480fb5875432440506b0c12efaa5', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'aecb68d56088f84e271f3c829c84da4e732df9b8', class: "wrapper", ref: (el) => {
173
173
  this.navWrapperElement = el;
174
- }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'f8cf277e9bb870d3b7d53bc3eff73806b61f0828', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'f72664b9b0f19b9a0c4ded16bd1be4b66594406a', name: "chevron_left", size: "20px" })), h("slot", { key: '1e2bc784f1148361bf04b34cbbdb62f3d3aad8af', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'b9d0e45c7d46a399081d561e496c5d1cc81132b0', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '55bbe28b1524a0ac6a808b1fb41225263977005f', name: "chevron_right", size: "20px" })))));
174
+ }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '9b97d342cfe66209063b504b49480d587cd626d5', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'a447ce946eb5bc02a2527f210322aa76ca5ad5b8', name: "chevron_left", size: "20px" })), h("slot", { key: '1df34e68bbea35ef76de48e7b8fe96b3a8655792', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '7c753dd66c173265c32a7b49197df12fbecc78d1', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: 'f76934b67470db5ff6ddb6fbae86f87fd3d0bdee', name: "chevron_right", size: "20px" })))));
175
175
  }
176
176
  static get is() { return "tds-inline-tabs"; }
177
177
  static get encapsulation() { return "shadow"; }
@@ -30,8 +30,8 @@ export class TdsNavigationTab {
30
30
  }
31
31
  }
32
32
  render() {
33
- return (h(Host, { key: '089ff23cbaa8ec219eb3771964a6843015b47378' }, h("div", { key: 'c75620addf322521de678bf4012c5c1dfdeb9464', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
34
- ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: 'f3bb65a7f8aad7adfc0ccb5d4bbc1c98c368978b' }))));
33
+ return (h(Host, { key: '28ba6f5bedc4f2a31e5011e37bf92d3b38fa8abe' }, h("div", { key: 'ac5aad203d8a13dc42a8f9e99b2ccdd7c784c9af', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
34
+ ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: 'da6292612753748f6cac68e0b282ecde642cb5b5' }))));
35
35
  }
36
36
  static get is() { return "tds-navigation-tab"; }
37
37
  static get encapsulation() { return "shadow"; }
@@ -68,7 +68,8 @@
68
68
  :host .scroll-right-button:focus,
69
69
  :host .scroll-left-button:focus {
70
70
  outline: 2px solid var(--tds-blue-400);
71
- outline-offset: -2px;
71
+ box-shadow: 0 0 0 1px var(--tds-white);
72
+ outline-offset: 1px;
72
73
  }
73
74
  :host .scroll-right-button svg,
74
75
  :host .scroll-left-button svg {
@@ -169,15 +169,15 @@ export class TdsNavigationTabs {
169
169
  this.removeEventListenerFromTabs();
170
170
  }
171
171
  render() {
172
- return (h(Host, { key: '26d9458d689f9304aa6fb6a5b07f05079c715152', role: "tablist", class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, h("div", { key: '8b8568c45abe2952607764df75682a10864bf35e', class: "wrapper", ref: (el) => {
172
+ return (h(Host, { key: '2fc278cacc04614ca43b70f52b12f79b31227fbb', role: "tablist", class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, h("div", { key: '50357810903ea3bff83fde4478960de0866c7c15', class: "wrapper", ref: (el) => {
173
173
  this.navWrapperElement = el;
174
- }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '369338833a13937105bf4ebaf50a22b9cb5d618f', "aria-label": this.tdsScrollLeftAriaLabel, class: {
174
+ }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'b5b05a2f9bce1618c71594cf388dc83efce98915', "aria-label": this.tdsScrollLeftAriaLabel, class: {
175
175
  'scroll-left-button': true,
176
176
  'show': this.showLeftScroll,
177
- }, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'bea7b39e109ad4453065176b0e16e0d0595ba37a', name: "chevron_left", size: "20px" })), h("slot", { key: '5b82ca06921a3566ab7c1614d6e551e4332d8112', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '50c111d8298d3715503b251d890c2a59f984c9fc', "aria-label": this.tdsScrollRightAriaLabel, class: {
177
+ }, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'aad19852d36ff8e1642ba464f9618a57ff37169c', name: "chevron_left", size: "20px" })), h("slot", { key: '3dcf0d7e6900df33a69863868a3a48dcb4aa8141', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '352539955226aecf92deb0c0db83c42a5b021e43', "aria-label": this.tdsScrollRightAriaLabel, class: {
178
178
  'scroll-right-button': true,
179
179
  'show': this.showRightScroll,
180
- }, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '9e7ba00a1c6e155dcb8f76a175411ee9d20fb669', name: "chevron_right", size: "20px" })))));
180
+ }, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '0e3fe531374dd82b6ee5de1a5a1bea4a38e03500', name: "chevron_right", size: "20px" })))));
181
181
  }
182
182
  static get is() { return "tds-navigation-tabs"; }
183
183
  static get encapsulation() { return "shadow"; }
@@ -76,7 +76,7 @@ export class TdsTextField {
76
76
  var _a;
77
77
  const usesPrefixSlot = hasSlot('prefix', this.host);
78
78
  const usesSuffixSlot = hasSlot('suffix', this.host);
79
- return (h("div", { key: '81cbb5cca60842e284e60630307f246b50650d79', class: {
79
+ return (h("div", { key: '985928ef59662762648f2d95d5decad2e3188e05', class: {
80
80
  'form-text-field': true,
81
81
  'form-text-field-nomin': this.noMinWidth,
82
82
  'text-field-focus': this.focusInput && !this.disabled,
@@ -94,12 +94,12 @@ export class TdsTextField {
94
94
  'form-text-field-sm': this.size === 'sm',
95
95
  'form-text-field-error': this.state === 'error',
96
96
  'form-text-field-success': this.state === 'success',
97
- } }, this.labelPosition === 'outside' && (h("div", { key: '57bc0784f18f9ed2c4fd31699832599ac73ceb32', class: "text-field-label-outside" }, h("label", { key: '8cadf1065d6556d6f9dc74b70d3c36b48db86e38', htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: 'd191fdf981ac742c4a95fa69202607f0c73606d7', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: 'de76fcf2db999b9e21b33bf3554d22e4e7648574', class: {
97
+ } }, this.labelPosition === 'outside' && (h("div", { key: '7a409b43a1fee8b7b078abc5f96c925ab97bcedc', class: "text-field-label-outside" }, h("label", { key: 'c6bdaab4e6f81a95aa71a4e23a1f02fb1bcef9ec', htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: '945f7901a92850da22ab84c5fe77e2d97738aaa9', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '5d6cb2facb8ff90b7393409b769c2b5e5a860421', class: {
98
98
  'text-field-slot-wrap-prefix': true,
99
99
  'text-field-error': this.state === 'error',
100
100
  'text-field-success': this.state === 'success',
101
101
  'text-field-default': this.state === 'default',
102
- } }, h("slot", { key: 'ab87f5a55f1a7d94bbcb624bc1c4f864c0136cf8', name: "prefix" }))), h("div", { key: '7097450497a908bef52ab5d28966267c984f433d', class: "text-field-input-container" }, h("input", { key: 'f25d3c0ce37078cf018aa80cea8d5e055656f2c1', ref: (inputEl) => {
102
+ } }, h("slot", { key: 'b0f0e3ebb96dbd2af021150b68690af566db44b9', name: "prefix" }))), h("div", { key: 'c5b172ee6c561256ab930490113f406b88eae67c', class: "text-field-input-container" }, h("input", { key: '2e0a9070b41bde39a2a0f14b132f474692eb0e04', ref: (inputEl) => {
103
103
  this.textInput = inputEl;
104
104
  }, class: {
105
105
  'text-field-input': true,
@@ -114,13 +114,13 @@ export class TdsTextField {
114
114
  if (!this.readOnly) {
115
115
  this.handleBlur(event);
116
116
  }
117
- }, "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}` }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '40a00f563ef4c62345a39d03937f0824ccef0c44', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: 'b41eb0927e23dff6fd12a8304f7bff5a8b743a54', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: '0d26ee8cb9838ee91574119ae0e1febb06318c9c', class: {
117
+ }, "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}` }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: 'ffb3bbb84ab718c2259134f32ee6dd0eb348cb9f', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: '166da0147311d28064b7e03bbefd1a0ee18db5ca', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: '4bb21d12957bf65d525931c88a5a89fff49d4eaf', class: {
118
118
  'text-field-slot-wrap-suffix': true,
119
119
  'text-field-error': this.state === 'error',
120
120
  'text-field-success': this.state === 'success',
121
121
  'text-field-default': this.state === 'default',
122
122
  'tds-u-display-none': this.readOnly,
123
- } }, h("slot", { key: '1af3d2006e55936a8afcce17ca9519b9bb9907c5', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (h("span", { key: '89b9f9b62e50006f933ab36974f8d6c6e2dab9c8', class: "text-field-icon__readonly" }, h("tds-icon", { key: '44cc31f05988149991d58d090187e444b33ec62e', name: "edit_inactive", size: "20px" }))), h("span", { key: '73f3021a39c0a880224879356866cd214ccb225e', class: "text-field-icon__readonly-label" }, "This field is non-editable")), h("div", { key: 'c70487a997117103ec68ddbdf86d0ca9701f2202', "aria-live": "assertive" }, (this.helper || this.maxLength > 0) && (h("div", { key: 'dee32001897276fe40813ef0b29077d31a331b0d', class: "text-field-helper", id: `text-field-helper-element-${this.uuid}` }, this.state === 'error' && (h("div", { key: '31e68824fb88938e6c7fc3f9f80a84bce101a8f9', class: "text-field-helper-error-state" }, !this.readOnly && h("tds-icon", { key: '63e22a80312fdd7365a8aec9a5fcd7c8104c376a', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && this.maxLength > 0 && (h("span", { key: 'e31d5df19bbf0d8278f2f2dbc7d978d770378a89', class: {
123
+ } }, h("slot", { key: '7e67dbc8f4f67cb0c7d194e01e5787ae18ffab13', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (h("span", { key: 'd213ec000d837cbd4b711468ef3cfa826cc65ac2', class: "text-field-icon__readonly" }, h("tds-icon", { key: '56b8b76a5771889f9f36ab683dcba6906bff42a6', name: "edit_inactive", size: "20px" }))), h("span", { key: '9e8fa95602a1ce5630f30947b59decc700c06c8b', class: "text-field-icon__readonly-label" }, "This field is non-editable")), h("div", { key: '9e8547e06a25e7da98ff977ac6be1b79d27e4151', "aria-live": "assertive" }, (this.helper || this.maxLength > 0) && (h("div", { key: 'daeea67a48a15d27785f31dfcb69fb75e31ab85b', class: "text-field-helper", id: `text-field-helper-element-${this.uuid}` }, this.state === 'error' && (h("div", { key: '974bad3f97b23d69a20130bf66b6c72ef47f68bc', class: "text-field-helper-error-state" }, !this.readOnly && h("tds-icon", { key: '687cad3cb0451a262f836089851e9a2e08f2c74e', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && this.maxLength > 0 && (h("span", { key: '431709fb793dde8845b20698e722a7c140bb32b6', class: {
124
124
  'text-field-textcounter-divider': true,
125
125
  'text-field-textcounter-disabled': this.disabled,
126
126
  } }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, " / ", this.maxLength)))))));
@@ -42,6 +42,13 @@ export class TdsTextarea {
42
42
  this.focusInput = true;
43
43
  this.tdsFocus.emit(event);
44
44
  }
45
+ /** Method to programmatically focus the textarea element */
46
+ async focusElement() {
47
+ if (this.textEl) {
48
+ this.textEl.focus();
49
+ this.focusInput = true;
50
+ }
51
+ }
45
52
  setModeVariant(modeVariant) {
46
53
  if (this.readOnly && modeVariant === 'primary') {
47
54
  return 'secondary';
@@ -58,7 +65,7 @@ export class TdsTextarea {
58
65
  }
59
66
  render() {
60
67
  var _a;
61
- return (h("div", { key: '71aa238805cae74bde180e9a2300677c2ca5542a', class: {
68
+ return (h("div", { key: '06fd8ce87614410858a7d9253fac73a6f1cf20ec', class: {
62
69
  'textarea-container': true,
63
70
  'textarea-label-inside': this.labelPosition === 'inside',
64
71
  'textarea-focus': this.focusInput,
@@ -68,7 +75,7 @@ export class TdsTextarea {
68
75
  'textarea-data': this.value !== '',
69
76
  [`textarea-${this.state}`]: this.state === 'error' || this.state === 'success',
70
77
  'no-min-width': this.noMinWidth,
71
- } }, this.labelPosition !== 'no-label' && (h("label", { key: 'a5f6eabfb1f455d3d773b52e5a77e379b1175c88', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), h("div", { key: '6d555f64a6f92d170b697c5634a41a5ca5114a6c', class: "textarea-wrapper" }, h("textarea", { key: '90ce33c8896fbc9f037026f3e83557d9a09e0dcb', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
78
+ } }, this.labelPosition !== 'no-label' && (h("label", { key: '1a02a333e4164b39fd223c68cc3d27d7c53487fb', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), h("div", { key: '6d45e8c8427770accc82c7ad9e10fbed016437a4', class: "textarea-wrapper" }, h("textarea", { key: '614c30a5b5077060b1568744cf0800580e746819', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
72
79
  this.textEl = inputEl;
73
80
  }, disabled: this.disabled, readonly: !this.disabled && this.readOnly, placeholder: this.placeholder, value: this.value, name: this.name, autofocus: this.autofocus, maxlength: this.maxLength, cols: this.cols, rows: this.rows, onFocus: (event) => {
74
81
  if (!this.readOnly) {
@@ -78,7 +85,7 @@ export class TdsTextarea {
78
85
  if (!this.readOnly) {
79
86
  this.handleBlur(event);
80
87
  }
81
- }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": this.state === 'error' ? 'true' : 'false', "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), h("span", { key: '0e253fbbed6e02fe7d1af68a033fd4324c1a9bd6', class: "textarea-resizer-icon" }, h("svg", { key: '740d12a1ef48b430fd12c3362511b8186d1d0d4f', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'f5d9d20101d4ee5882ab4b36e085f5f32c12bd4c', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), !this.disabled && !this.hideReadOnlyIcon && this.readOnly && (h("span", { key: '2415b36f980c421d69522ae0d41e91d7f19221f9', class: "textarea-icon__readonly" }, h("tds-tooltip", { key: '0d3a2de49aa612cb9d308ec2ccae03c21ca86ca4', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), h("tds-icon", { key: '287b924c5fdaa3248d1dd82fa2b14d61e18dc78f', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), h("span", { key: '920d6a4e93b0f392c24b1e8aabd49e17f724af80', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && !this.readOnly && h("tds-icon", { key: '3162f70c2c16dcd2e78248731a0a59c58a1a7e1b', name: "error", size: "16px" }), this.helper), this.maxLength > 0 && (h("div", { key: '81d7c4a8b3ba2dde55384d36edad90d96604107c', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: 'db93c588a97eeeb7eb533a224d4b8d080f8ad49b', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
88
+ }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": this.state === 'error' ? 'true' : 'false', "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), h("span", { key: 'e0574ae32d1ce9c69156dc2aa52d8d1881b6ff9b', class: "textarea-resizer-icon" }, h("svg", { key: '23e79729cc099b7e4f07192c05aa4a304b91788a', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '54891720aa51af768f467be5bd8a72fc7adc8d47', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), !this.disabled && !this.hideReadOnlyIcon && this.readOnly && (h("span", { key: '72e3586f1be99460ced66d640392b4596e5b8c2f', class: "textarea-icon__readonly" }, h("tds-tooltip", { key: '9f84391a75b5ae428c71d3b713a9d281c4475a09', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), h("tds-icon", { key: '55e195bb50d8b707ec3a403c8c62cad74d738919', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), h("span", { key: 'ff2043a19ebb129178ecfd36126b0d23eacde4d1', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && this.helper && !this.readOnly && (h("tds-icon", { key: '84b0991ef5ddab7f960ba75db22c65762b0b5d20', name: "error", size: "16px" })), this.helper), this.maxLength > 0 && (h("div", { key: '963b3a3bdafeabec6ad2bd3663c07ed0d4a5b3fd', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '8496a0ae44721cdcd9443e09ff6a709b6d3c704f', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
82
89
  }
83
90
  static get is() { return "tds-textarea"; }
84
91
  static get encapsulation() { return "scoped"; }
@@ -480,4 +487,25 @@ export class TdsTextarea {
480
487
  }
481
488
  }];
482
489
  }
490
+ static get methods() {
491
+ return {
492
+ "focusElement": {
493
+ "complexType": {
494
+ "signature": "() => Promise<void>",
495
+ "parameters": [],
496
+ "references": {
497
+ "Promise": {
498
+ "location": "global",
499
+ "id": "global::Promise"
500
+ }
501
+ },
502
+ "return": "Promise<void>"
503
+ },
504
+ "docs": {
505
+ "text": "Method to programmatically focus the textarea element",
506
+ "tags": []
507
+ }
508
+ }
509
+ };
510
+ }
483
511
  }
@@ -13,28 +13,28 @@
13
13
  border-radius: 4px;
14
14
  }
15
15
  :host .wrapper.information {
16
- border-left: 4px solid var(--tds-information);
16
+ border-left: 4px solid var(--tds-toast-icon-color-info);
17
17
  }
18
18
  :host .wrapper.information tds-icon {
19
- color: var(--tds-information);
19
+ color: var(--tds-toast-icon-color-info);
20
20
  }
21
21
  :host .wrapper.success {
22
- border-left: 4px solid var(--tds-positive);
22
+ border-left: 4px solid var(--tds-toast-icon-color-success);
23
23
  }
24
24
  :host .wrapper.success tds-icon {
25
- color: var(--tds-positive);
25
+ color: var(--tds-toast-icon-color-success);
26
26
  }
27
27
  :host .wrapper.error {
28
- border-left: 4px solid var(--tds-negative);
28
+ border-left: 4px solid var(--tds-toast-icon-color-error);
29
29
  }
30
30
  :host .wrapper.error tds-icon {
31
- color: var(--tds-negative);
31
+ color: var(--tds-toast-icon-color-error);
32
32
  }
33
33
  :host .wrapper.warning {
34
- border-left: 4px solid var(--tds-warning);
34
+ border-left: 4px solid var(--tds-toast-icon-color-warning);
35
35
  }
36
36
  :host .wrapper.warning tds-icon {
37
- color: var(--tds-warning);
37
+ color: var(--tds-toast-icon-color-warning);
38
38
  }
39
39
  :host .wrapper button.close {
40
40
  height: 20px;
@@ -51,7 +51,8 @@
51
51
  }
52
52
  :host .wrapper button.close:focus {
53
53
  outline: 2px solid var(--tds-blue-400);
54
- outline-offset: -2px;
54
+ box-shadow: 0 0 0 1px var(--tds-white);
55
+ outline-offset: 1px;
55
56
  }
56
57
  :host .wrapper button.close tds-icon {
57
58
  color: var(--tds-toast-dissmiss-color);
@@ -94,9 +95,6 @@
94
95
  :host .content .toast-bottom {
95
96
  padding-top: 12px;
96
97
  }
97
- :host slot[name=actions]::slotted(*) {
98
- color: var(--tds-toast-link-color);
99
- }
100
98
  :host .tds-mode-variant-primary {
101
99
  --tds-toast-background: var(--tds-toast-background-primary);
102
100
  }
@@ -65,12 +65,12 @@ export class TdsToast {
65
65
  const usesHeaderSlot = hasSlot('header', this.host);
66
66
  const usesSubheaderSlot = hasSlot('subheader', this.host);
67
67
  const usesActionsSlot = hasSlot('actions', this.host);
68
- return (h(Host, { key: 'b5f8ebf48f31ced7100681b06339ba896d6eca64', "aria-live": this.tdsAriaLive, toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
68
+ return (h(Host, { key: '433c25165487688ff40c78a0455d30cedd08c76f', "aria-live": this.tdsAriaLive, toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
69
69
  hide: this.hidden,
70
70
  show: !this.hidden,
71
- } }, h("div", { key: 'bd1e5c5c04b8aa66cb44241fb37711df0d797d28', class: `
71
+ } }, h("div", { key: '2734573a413d9cdf1a329675fe0e0db374243cbf', class: `
72
72
  wrapper
73
- ${this.variant}` }, h("tds-icon", { key: 'aa6e3fd61ad5a2e962f6e70d48ce266b7c8913e0', name: this.getIconName(), size: "20px", svgTitle: this.getIconName() }), h("div", { key: '8502cb5c3b305942fe14ffde76ee4dfc63758ce8', class: `content` }, h("div", { key: '5ef927acd2e0d6bba51c4b20b79fee1240c821ef', class: "header-subheader" }, this.header && h("div", { key: 'c568d13668da3502c5f34810fea5f3a9d9629572', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: 'e9316b99d758019127faf05adb9ae1754e3ea910', name: "header" }), this.subheader && h("div", { key: '428e2659621c6eb4ddb302b9cab6902d93d2f514', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: '2ec858d2feeaf679ab8aa061cab2156f926e29a2', name: "subheader" })), usesActionsSlot && (h("div", { key: '3f4836e54bedbeb3b02b78c0ac0bfa47770c4f80', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: '76fa5d8534ea34010968a7183e07e62a4be3e5f7', name: "actions" })))), this.closable && (h("button", { key: '8076fa3d885b7649758b084301e092d083103ecd', id: "my-button", "aria-label": this.tdsCloseAriaLabel, onClick: this.handleClose, class: "close" }, h("tds-icon", { key: 'f9bf7fa804352e9d09bbdc6251fe02c89cb174a8', name: "cross", size: "20px", svgTitle: "cross" }))))));
73
+ ${this.variant}` }, h("tds-icon", { key: '88d4ab6fd55d64c93ad3089c695d0fa4075208a6', name: this.getIconName(), size: "20px", svgTitle: this.getIconName() }), h("div", { key: '02de15f884420946530d2e04c330987f73c9ca44', class: `content` }, h("div", { key: '4eb8c6a13a7bb53313a18b47bfa8e2ab1211cdbc', class: "header-subheader" }, this.header && h("div", { key: '1b707e29cdd68a5cc73a2b694b8b93698cbac661', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: 'ffe2b463f8fc6e4ca3b563d7a4ae55968cb4a478', name: "header" }), this.subheader && h("div", { key: '8164b591452e4a6f025f752951c678a15443fff9', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: '2bca8428e8eb128cf8c0f62b31a0da54ef555df3', name: "subheader" })), usesActionsSlot && (h("div", { key: 'de84bc19257b09127b861b357240509a7346f2e7', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: 'b85a46c5dc97dc7d3b95feb816145731887711fb', name: "actions" })))), this.closable && (h("button", { key: '69adb03d815ece9e50cf436957927c5dcd4d3ab8', id: "my-button", "aria-label": this.tdsCloseAriaLabel, onClick: this.handleClose, class: "close" }, h("tds-icon", { key: '9b4f062079caa32c5900202aaf1c2a7a5ef8e18c', name: "cross", size: "20px", svgTitle: "cross" }))))));
74
74
  }
75
75
  static get is() { return "tds-toast"; }
76
76
  static get encapsulation() { return "shadow"; }
@@ -34,6 +34,7 @@
34
34
  border-radius: 16px;
35
35
  background-color: var(--tds-toggle-off-slider);
36
36
  left: 0;
37
+ border: 1px solid transparent;
37
38
  }
38
39
  .tds-toggle input[type=checkbox]::after {
39
40
  width: 16px;
@@ -43,16 +44,30 @@
43
44
  left: 4px;
44
45
  top: 4px;
45
46
  }
46
- .tds-toggle input[type=checkbox]:focus, .tds-toggle input[type=checkbox]:hover {
47
+ .tds-toggle input[type=checkbox]:focus {
47
48
  outline: none;
49
+ outline: 2px solid var(--tds-toggle-border-outline);
50
+ border-radius: 16px;
51
+ outline-offset: 0;
48
52
  }
49
- .tds-toggle input[type=checkbox]:focus::before, .tds-toggle input[type=checkbox]:hover::before {
53
+ .tds-toggle input[type=checkbox]:focus::before {
50
54
  background-color: var(--tds-toggle-off-slider-focus);
51
55
  border: 1px solid var(--tds-toggle-off-border-focus);
52
56
  }
57
+ .tds-toggle input[type=checkbox]:hover::before {
58
+ background-color: var(--tds-toggle-off-slider-hover);
59
+ border: 1px solid var(--tds-toggle-off-border-focus);
60
+ }
53
61
  .tds-toggle input[type=checkbox]:checked::before {
54
62
  background-color: var(--tds-toggle-on-slider);
55
- border: 1px solid var(--tds-toggle-on-border-focus);
63
+ }
64
+ .tds-toggle input[type=checkbox]:checked:focus::before {
65
+ background-color: var(--tds-toggle-on-slider-focus);
66
+ border: 1px solid var(--tds-toggle-off-border-focus);
67
+ }
68
+ .tds-toggle input[type=checkbox]:checked:hover::before {
69
+ background-color: var(--tds-toggle-on-slider-hover);
70
+ border: 1px solid var(--tds-toggle-off-border-focus);
56
71
  }
57
72
  .tds-toggle input[type=checkbox]:checked::after {
58
73
  left: 24px;
@@ -29,6 +29,12 @@ export class TdsToggle {
29
29
  checked: this.checked,
30
30
  };
31
31
  }
32
+ /** Method to programmatically focus the toggle element */
33
+ async focusElement() {
34
+ if (this.inputElement) {
35
+ this.inputElement.focus();
36
+ }
37
+ }
32
38
  componentWillLoad() {
33
39
  this.labelSlot = this.host.querySelector("[slot='label']");
34
40
  }
@@ -38,10 +44,10 @@ export class TdsToggle {
38
44
  }
39
45
  }
40
46
  render() {
41
- return (h("div", { key: 'f1151ef33eaf8ee11761badb74dcb24916481ce1', class: "tds-toggle" }, this.headline && (h("div", { key: '848f0bf92aa6e21a7d84dea6d3cc41f3228cbb9b', class: {
47
+ return (h("div", { key: '212a541d06f0cc534855ac872cfb386dc1b2d4ff', class: "tds-toggle" }, this.headline && (h("div", { key: '076c51461d4898d2bfa3c86fadd94ac2ad63c7a8', class: {
42
48
  'toggle-headline': true,
43
49
  'disabled': this.disabled,
44
- } }, this.headline)), h("input", { key: '25907b86ae6fe55dca60b1254a3901bb090a8d36', "aria-label": this.tdsAriaLabel, "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), this.labelSlot && (h("label", { key: 'ef3c492d3d3c7bddc34c64bfcc568e47f17a2cd1', class: { disabled: this.disabled }, htmlFor: this.toggleId }, h("slot", { key: '339f355bbba7f3c18de4049df1d0a82d87884f44', name: "label" })))));
50
+ } }, this.headline)), h("input", { key: 'e0e849d7b05b77612fc949894cac8befa5b89370', ref: (inputEl) => (this.inputElement = inputEl), "aria-label": this.tdsAriaLabel, "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), this.labelSlot && (h("label", { key: '4d1dcc70f896695657ca7ca68fd832ee4d13417a', class: { disabled: this.disabled }, htmlFor: this.toggleId }, h("slot", { key: '800ea4ee2760efee8cdfe1ac3aee4b3a6f95f199', name: "label" })))));
45
51
  }
46
52
  static get is() { return "tds-toggle"; }
47
53
  static get encapsulation() { return "scoped"; }
@@ -236,6 +242,23 @@ export class TdsToggle {
236
242
  "text": "Toggles the Toggle.",
237
243
  "tags": []
238
244
  }
245
+ },
246
+ "focusElement": {
247
+ "complexType": {
248
+ "signature": "() => Promise<void>",
249
+ "parameters": [],
250
+ "references": {
251
+ "Promise": {
252
+ "location": "global",
253
+ "id": "global::Promise"
254
+ }
255
+ },
256
+ "return": "Promise<void>"
257
+ },
258
+ "docs": {
259
+ "text": "Method to programmatically focus the toggle element",
260
+ "tags": []
261
+ }
239
262
  }
240
263
  };
241
264
  }
@@ -58,7 +58,7 @@ export class TdsTooltip {
58
58
  }
59
59
  render() {
60
60
  var _a;
61
- return (h(Host, { key: 'c09e902febe788fe0f38d9abca24864bfbf59b2d', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, h("tds-popover-core", Object.assign({ key: '2ae840c2abe03714f071034bda652265ef09fc9b' }, this.inheritedAttributes, { class: {
61
+ return (h(Host, { key: 'e7229ee89dea45931af9d12f04b2f31a9c0f7be2', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, h("tds-popover-core", Object.assign({ key: 'e4b263f4414f6ce9d2e557fc5431040d718aff3c' }, this.inheritedAttributes, { class: {
62
62
  'tds-tooltip': true,
63
63
  [`tds-tooltip-${this.border}`]: true,
64
64
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
@@ -71,7 +71,7 @@ export class TdsTooltip {
71
71
  // @ts-ignore
72
72
  onInternalTdsClose: () => {
73
73
  this.show = false;
74
- }, defaultShow: this.defaultShow }), this.text, h("slot", { key: 'f0211f7e337709f4b8d0e8e4374c0ebd39635f25' }))));
74
+ }, defaultShow: this.defaultShow }), this.text, h("slot", { key: '41797812218d42837bb56b393a5e20c612cc51ad' }))));
75
75
  }
76
76
  static get is() { return "tds-tooltip"; }
77
77
  static get encapsulation() { return "scoped"; }
@@ -0,0 +1,10 @@
1
+ import prettier from "prettier/standalone";
2
+ import parserBabel from "prettier/parser-babel";
3
+ import parserHtml from "prettier/parser-html";
4
+ const prettierOptions = {
5
+ bracketSameLine: false,
6
+ htmlWhitespaceSensitivity: 'ignore',
7
+ printWidth: 100,
8
+ };
9
+ const formatHtmlPreview = (htmlStr) => prettier.format(htmlStr, Object.assign({ parser: 'html', plugins: [parserBabel, parserHtml] }, prettierOptions));
10
+ export default formatHtmlPreview;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Processes HTML content to make it more accessible for screen readers by:
3
+ * 1. Removing HTML tags while preserving their text content
4
+ * 2. Converting HTML entities to their text equivalents
5
+ * 3. Normalizing whitespace
6
+ *
7
+ * @param htmlContent - The HTML content to be processed for screen readers
8
+ * @returns Clean, readable text suitable for screen readers
9
+ *
10
+ * @example
11
+ * // Input: "<p>Hello <b>World</b> &amp; Universe!</p>"
12
+ * // Output: "Hello World and Universe!"
13
+ */
14
+ export const processHtmlForScreenReader = (htmlContent) => {
15
+ if (!htmlContent)
16
+ return '';
17
+ return (htmlContent
18
+ // Remove HTML tags
19
+ .replace(/<[^>]*>/g, ' ')
20
+ // Replace common HTML entities with their text equivalents
21
+ .replace(/&nbsp;/g, ' ')
22
+ .replace(/&amp;/g, 'and')
23
+ .replace(/&lt;/g, 'less than')
24
+ .replace(/&gt;/g, 'greater than')
25
+ .replace(/&quot;/g, '"')
26
+ .replace(/&#39;/g, "'")
27
+ // Normalize whitespace
28
+ .replace(/\s+/g, ' ')
29
+ .trim());
30
+ };
@@ -1,3 +1,12 @@
1
1
  import AxeBuilder from "@axe-core/playwright";
2
- const disabledRules = ['page-has-heading-one', 'landmark-one-main', 'region', 'color-contrast'];
3
- export const tegelAnalyze = async (page) => new AxeBuilder({ page }).disableRules(disabledRules).analyze();
2
+ const disabledRules = ['page-has-heading-one', 'landmark-one-main', 'region'];
3
+ const rules = [
4
+ 'best-practice',
5
+ 'wcag2a',
6
+ 'wcag2aa',
7
+ // 'wcag2aaa', // includes color-contrast-enhanced rule
8
+ 'wcag21a',
9
+ 'wcag21aa',
10
+ 'wcag22aa',
11
+ ];
12
+ export const tegelAnalyze = async (page) => new AxeBuilder({ page }).disableRules(disabledRules).withTags(rules).analyze();
@@ -1,7 +1,7 @@
1
1
  import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
2
2
  import { i as inheritAriaAttributes } from './p-0bd4c19c.js';
3
3
  import { d as defineCustomElement$3 } from './p-9ad61cb5.js';
4
- import { d as defineCustomElement$2 } from './p-6cdccb27.js';
4
+ import { d as defineCustomElement$2 } from './p-76dc921a.js';
5
5
  import { d as defineCustomElement$1 } from './p-c715ab56.js';
6
6
 
7
7
  const headerLauncherButtonCss = ":host{display:block}:host tds-header-item{display:block}:host .icon{position:relative;margin-left:-6px;left:3px;transition:all 0.2s ease-in-out}";
@@ -1,7 +1,7 @@
1
1
  import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
2
2
  import { d as dfs } from './p-52bf0fdf.js';
3
3
 
4
- const sideMenuItemCss = ":host{display:block}:host .component ::slotted(a),:host .component ::slotted(button){all:unset;box-sizing:border-box;height:68px;width:100%;display:flex;align-items:center;gap:12px;padding:0 24px;border:none;background-color:var(--tds-sidebar-side-menu-background-cover);font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-sidebar-side-menu-single-item-color);cursor:pointer}:host .component tds-icon{color:red !important}:host .component ::slotted(a:focus-visible),:host .component ::slotted(button:focus-visible){outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .component:hover ::slotted(a),:host .component:hover ::slotted(button){background-color:var(--tds-sidebar-item-state-hover)}:host .component:active ::slotted(a),:host .component:active ::slotted(button){background-color:var(--tds-sidemenu-item-state-active)}:host .component-collapsed ::slotted(a),:host .component-collapsed ::slotted(button){padding:0;display:flex;justify-content:center;align-items:center;position:relative}:host .component-selected:not(:host .component-active) ::slotted(a),:host .component-selected:not(:host .component-active) ::slotted(button){border-left:4px solid var(--tds-sidebar-side-menu-single-subitem-selected-border-color);padding-left:20px;background-color:var(--tds-sidebar-item-state-selected)}@media (min-width: 992px){:host .component.component-collapsed ::slotted(a),:host .component.component-collapsed ::slotted(button){color:rgba(90, 90, 90, 0);overflow:hidden}}";
4
+ const sideMenuItemCss = ":host{display:block}:host .component ::slotted(a),:host .component ::slotted(button){all:unset;box-sizing:border-box;height:68px;width:100%;display:flex;align-items:center;gap:12px;padding:0 24px;border:none;background-color:var(--tds-sidebar-side-menu-background-cover);font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-sidebar-side-menu-single-item-color);cursor:pointer}:host .component tds-icon{color:red !important}:host .component ::slotted(a:focus-visible),:host .component ::slotted(button:focus-visible){outline:2px solid var(--tds-blue-400);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px}:host .component:hover ::slotted(a),:host .component:hover ::slotted(button){background-color:var(--tds-sidebar-item-state-hover)}:host .component:active ::slotted(a),:host .component:active ::slotted(button){background-color:var(--tds-sidemenu-item-state-active)}:host .component-collapsed ::slotted(a),:host .component-collapsed ::slotted(button){padding:0;display:flex;justify-content:center;align-items:center;position:relative}:host .component-selected:not(:host .component-active) ::slotted(a),:host .component-selected:not(:host .component-active) ::slotted(button){border-left:4px solid var(--tds-sidebar-side-menu-single-subitem-selected-border-color);padding-left:20px;background-color:var(--tds-sidebar-item-state-selected)}@media (min-width: 992px){:host .component.component-collapsed ::slotted(a),:host .component.component-collapsed ::slotted(button){color:rgba(90, 90, 90, 0);overflow:hidden}}";
5
5
  const TdsSideMenuItemStyle0 = sideMenuItemCss;
6
6
 
7
7
  const TdsSideMenuItem = /*@__PURE__*/ proxyCustomElement(class TdsSideMenuItem extends H {