@duetds/components 10.6.0 → 10.7.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 (394) hide show
  1. package/hydrate/index.js +301 -163
  2. package/hydrate/index.mjs +301 -163
  3. package/lib/cjs/{a11y-utils-CgWjS7yq.js → a11y-utils-DmCjy3Q3.js} +1 -1
  4. package/lib/cjs/{app-globals-D68ciWsb.js → app-globals-D1tikFob.js} +1 -1
  5. package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
  6. package/lib/cjs/duet-alert.cjs.entry.js +4 -4
  7. package/lib/cjs/duet-badge.cjs.entry.js +6 -6
  8. package/lib/cjs/duet-banner.cjs.entry.js +8 -8
  9. package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
  10. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +5 -5
  11. package/lib/cjs/duet-button_2.cjs.entry.js +3 -3
  12. package/lib/cjs/duet-callout.cjs.entry.js +5 -5
  13. package/lib/cjs/duet-caption_4.cjs.entry.js +7 -7
  14. package/lib/cjs/duet-card.cjs.entry.js +9 -8
  15. package/lib/cjs/duet-checkbox.cjs.entry.js +3 -3
  16. package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
  17. package/lib/cjs/duet-chip.cjs.entry.js +3 -3
  18. package/lib/cjs/duet-choice_2.cjs.entry.js +6 -6
  19. package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
  20. package/lib/cjs/duet-combobox.cjs.entry.js +5 -15
  21. package/lib/cjs/duet-contact-card.cjs.entry.js +8 -7
  22. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  23. package/lib/cjs/duet-date-picker.cjs.entry.js +6 -6
  24. package/lib/cjs/duet-divider_2.cjs.entry.js +2 -2
  25. package/lib/cjs/duet-editable-table_3.cjs.entry.js +8 -8
  26. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  27. package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
  28. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-footer.cjs.entry.js +4 -4
  30. package/lib/cjs/duet-grid_2.cjs.entry.js +12 -8
  31. package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
  32. package/lib/cjs/duet-hero.cjs.entry.js +18 -13
  33. package/lib/cjs/duet-icon.cjs.entry.js +5 -5
  34. package/lib/cjs/duet-indicator.cjs.entry.js +3 -3
  35. package/lib/cjs/duet-input_2.cjs.entry.js +5 -5
  36. package/lib/cjs/duet-layout.cjs.entry.js +2 -2
  37. package/lib/cjs/duet-list_2.cjs.entry.js +4 -4
  38. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
  39. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
  40. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
  41. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +7 -7
  42. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
  43. package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
  44. package/lib/cjs/duet-modal.cjs.entry.js +5 -5
  45. package/lib/cjs/duet-multiselect.cjs.entry.js +5 -5
  46. package/lib/cjs/duet-nav.cjs.entry.js +3 -3
  47. package/lib/cjs/duet-notification_2.cjs.entry.js +6 -6
  48. package/lib/cjs/duet-number-input.cjs.entry.js +4 -4
  49. package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
  50. package/lib/cjs/duet-page-heading.cjs.entry.js +6 -6
  51. package/lib/cjs/duet-pagination_2.cjs.entry.js +3 -3
  52. package/lib/cjs/duet-panel.cjs.entry.js +2 -2
  53. package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
  54. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +6 -6
  55. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  56. package/lib/cjs/duet-promo-card.cjs.entry.js +8 -8
  57. package/lib/cjs/duet-radio_2.cjs.entry.js +4 -4
  58. package/lib/cjs/duet-range-slider.cjs.entry.js +4 -4
  59. package/lib/cjs/duet-scrollable_3.cjs.entry.js +11 -11
  60. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  61. package/lib/cjs/duet-select.cjs.entry.js +4 -4
  62. package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
  63. package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
  64. package/lib/cjs/duet-share-chart.cjs.entry.js +6 -6
  65. package/lib/cjs/duet-show-more.cjs.entry.js +3 -3
  66. package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
  67. package/lib/cjs/duet-slideout-link.cjs.entry.js +7 -7
  68. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
  69. package/lib/cjs/duet-slideout-panel.cjs.entry.js +11 -11
  70. package/lib/cjs/duet-slideout.cjs.entry.js +6 -6
  71. package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
  72. package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
  73. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
  74. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
  75. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +6 -6
  76. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
  77. package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
  78. package/lib/cjs/duet-teaser.cjs.entry.js +110 -0
  79. package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
  80. package/lib/cjs/duet-toggle.cjs.entry.js +8 -8
  81. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
  82. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
  83. package/lib/cjs/duet-toolbar-item.cjs.entry.js +8 -8
  84. package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
  85. package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
  86. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +9 -9
  87. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
  88. package/lib/cjs/duet-tray.cjs.entry.js +5 -5
  89. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  90. package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
  91. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  92. package/lib/cjs/duet.cjs.js +3 -3
  93. package/lib/cjs/{errorcodes.utils-C0tQ3k6Z.js → errorcodes.utils-Di-nO8ua.js} +1 -1
  94. package/lib/cjs/{focus-utils-tCoGOO7d.js → focus-utils-uEO1pi2O.js} +1 -1
  95. package/lib/cjs/{index-BeiMjjVl.js → index-BGRMvA4R.js} +5 -1
  96. package/lib/cjs/{label-Cu4DNShe.js → label-CwgdRt0Q.js} +1 -1
  97. package/lib/cjs/{language-utils-B3NubUDr.js → language-utils-CrB5zNlc.js} +1 -1
  98. package/lib/cjs/loader.cjs.js +3 -3
  99. package/lib/cjs/{picture-utils-D_HVgfq5.js → picture-utils-CZhgDlXJ.js} +7 -2
  100. package/lib/cjs/{slot-utils-Dny6EJ_G.js → slot-utils-4v5bqyQh.js} +1 -1
  101. package/lib/cjs/{themeable-component-Csdvrnsd.js → themeable-component-I4SEm6nQ.js} +1 -1
  102. package/lib/collection/collection-manifest.json +1 -0
  103. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  104. package/lib/collection/components/duet-banner/duet-banner.js +23 -4
  105. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  106. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  107. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  108. package/lib/collection/components/duet-card/duet-card.js +24 -4
  109. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  110. package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
  111. package/lib/collection/components/duet-combobox/duet-combobox.js +1 -13
  112. package/lib/collection/components/duet-contact-card/duet-contact-card.js +23 -3
  113. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  114. package/lib/collection/components/duet-grid/duet-grid.css +22 -0
  115. package/lib/collection/components/duet-grid/duet-grid.js +14 -5
  116. package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
  117. package/lib/collection/components/duet-hero/duet-hero.css +149 -136
  118. package/lib/collection/components/duet-hero/duet-hero.js +32 -7
  119. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  120. package/lib/collection/components/duet-link/duet-link.js +2 -2
  121. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  122. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  123. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  124. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  125. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  126. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  127. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  128. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  129. package/lib/collection/components/duet-page-heading/duet-page-heading.js +3 -3
  130. package/lib/collection/components/duet-promo-card/duet-promo-card.js +23 -4
  131. package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
  132. package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
  133. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  134. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  135. package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
  136. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
  137. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  138. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  139. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  140. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  141. package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
  142. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  143. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  144. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  145. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  146. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  147. package/lib/collection/components/duet-tab/duet-tab.js +2 -2
  148. package/lib/collection/components/duet-table/duet-table.js +2 -2
  149. package/lib/collection/components/duet-teaser/duet-teaser.css +127 -0
  150. package/lib/collection/components/duet-teaser/duet-teaser.js +462 -0
  151. package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
  152. package/lib/collection/components/duet-toggle/duet-toggle.js +3 -3
  153. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  154. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  155. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  156. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  157. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  158. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
  159. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
  160. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  161. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  162. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  163. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  164. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  165. package/lib/collection/utils/picture-utils.js +6 -1
  166. package/lib/duet/duet.esm.js +1 -1
  167. package/lib/duet/{p-ae382e2e.entry.js → p-017873ec.entry.js} +1 -1
  168. package/lib/duet/{p-4acdc586.entry.js → p-047af1e2.entry.js} +1 -1
  169. package/lib/duet/{p-30d8a1e4.entry.js → p-058fcc72.entry.js} +1 -1
  170. package/lib/duet/p-05a6360b.entry.js +4 -0
  171. package/lib/duet/p-05b5ef84.entry.js +4 -0
  172. package/lib/duet/{p-555e0c78.entry.js → p-07d43c60.entry.js} +1 -1
  173. package/lib/duet/{p-9889218e.entry.js → p-0ab559fb.entry.js} +1 -1
  174. package/lib/duet/{p-374b48f6.entry.js → p-0acf9bcf.entry.js} +1 -1
  175. package/lib/duet/{p-95bb2a8d.entry.js → p-0c42cc61.entry.js} +1 -1
  176. package/lib/duet/{p-6a11ba26.entry.js → p-0df7094e.entry.js} +1 -1
  177. package/lib/duet/{p-eb7bc989.entry.js → p-10baba94.entry.js} +1 -1
  178. package/lib/duet/{p-9b2731b9.entry.js → p-1358a396.entry.js} +1 -1
  179. package/lib/duet/{p-d72dee5d.entry.js → p-1498e4a8.entry.js} +1 -1
  180. package/lib/duet/p-16d5dd2c.entry.js +4 -0
  181. package/lib/duet/{p-9c41f1d5.entry.js → p-1ec31f22.entry.js} +1 -1
  182. package/lib/duet/{p-8927ccc1.entry.js → p-2013545d.entry.js} +1 -1
  183. package/lib/duet/p-2265c46a.entry.js +4 -0
  184. package/lib/duet/{p-6bd78205.entry.js → p-2394b3cd.entry.js} +1 -1
  185. package/lib/duet/{p-fc2be136.entry.js → p-2b17c517.entry.js} +1 -1
  186. package/lib/duet/{p-f30c3cfe.entry.js → p-2f0f3a4a.entry.js} +1 -1
  187. package/lib/duet/{p-ec1d2e0a.entry.js → p-3ce04abc.entry.js} +1 -1
  188. package/lib/duet/{p-61abccd4.entry.js → p-420df0aa.entry.js} +1 -1
  189. package/lib/duet/{p-f4de7ac0.entry.js → p-430fad4e.entry.js} +1 -1
  190. package/lib/duet/p-453001ea.entry.js +4 -0
  191. package/lib/duet/p-4695398d.entry.js +4 -0
  192. package/lib/duet/{p-46287d85.entry.js → p-4bc7198d.entry.js} +1 -1
  193. package/lib/duet/p-4e028274.entry.js +4 -0
  194. package/lib/duet/{p-dbb9e1d4.entry.js → p-5be103d0.entry.js} +1 -1
  195. package/lib/duet/{p-4a4e5bb5.entry.js → p-5e5b6dc7.entry.js} +1 -1
  196. package/lib/duet/{p-1d7a9425.entry.js → p-5fc88879.entry.js} +1 -1
  197. package/lib/duet/{p-ee369233.entry.js → p-6865e880.entry.js} +1 -1
  198. package/lib/duet/{p-5b322a86.entry.js → p-68a9ffb5.entry.js} +1 -1
  199. package/lib/duet/{p-244bfbf9.entry.js → p-69bcb076.entry.js} +1 -1
  200. package/lib/duet/{p-a6dbe893.entry.js → p-71da8fbe.entry.js} +1 -1
  201. package/lib/duet/{p-914ee7ac.entry.js → p-76e2c659.entry.js} +1 -1
  202. package/lib/duet/p-7f5387dd.entry.js +4 -0
  203. package/lib/duet/{p-a01f3141.entry.js → p-84ed366e.entry.js} +1 -1
  204. package/lib/duet/{p-4a041c60.entry.js → p-868647de.entry.js} +1 -1
  205. package/lib/duet/{p-bc41d13d.entry.js → p-8ad4bb4c.entry.js} +1 -1
  206. package/lib/duet/{p-20c8226c.entry.js → p-8b9ffff4.entry.js} +1 -1
  207. package/lib/duet/{p-84f8bee8.entry.js → p-8da66626.entry.js} +1 -1
  208. package/lib/duet/{p-12d7fdf6.entry.js → p-8ea85c31.entry.js} +1 -1
  209. package/lib/duet/p-940a87e7.entry.js +4 -0
  210. package/lib/duet/{p-6d1d1199.entry.js → p-99550717.entry.js} +1 -1
  211. package/lib/duet/{p-4b07ce36.entry.js → p-9987420d.entry.js} +1 -1
  212. package/lib/duet/{p-8fbcea55.entry.js → p-9d41df85.entry.js} +1 -1
  213. package/lib/duet/{p-1579bdf5.entry.js → p-9dee0205.entry.js} +1 -1
  214. package/lib/duet/{p-D9N9LBeD.js → p-B0XOGsB6.js} +1 -1
  215. package/lib/duet/p-B44ykle6.js +4 -0
  216. package/lib/duet/{p-CyfEm8iD.js → p-B5SMAn1G.js} +1 -1
  217. package/lib/duet/p-BAiGBGTO.js +4 -0
  218. package/lib/duet/p-BWz_ChlU.js +4 -0
  219. package/lib/duet/p-Bnup2-sN.js +4 -0
  220. package/lib/duet/p-C6rGA5IU.js +4 -0
  221. package/lib/duet/{p-D3450NfA.js → p-D4MpGrUR.js} +1 -1
  222. package/lib/duet/{p-BDgGHTHh.js → p-DSNAI2Lx.js} +1 -1
  223. package/lib/duet/{p-DI7IXBXp.js → p-DtprEjjN.js} +1 -1
  224. package/lib/duet/{p-264688ae.entry.js → p-a2106abd.entry.js} +1 -1
  225. package/lib/duet/p-a2a2f775.entry.js +4 -0
  226. package/lib/duet/{p-0e10e36b.entry.js → p-a2f7ef35.entry.js} +1 -1
  227. package/lib/duet/{p-9b448008.entry.js → p-a62e6d8d.entry.js} +1 -1
  228. package/lib/duet/{p-4e5532c8.entry.js → p-a6dc8c7d.entry.js} +1 -1
  229. package/lib/duet/{p-e442943d.entry.js → p-a944ffff.entry.js} +1 -1
  230. package/lib/duet/{p-f8d640ba.entry.js → p-aebcf484.entry.js} +1 -1
  231. package/lib/duet/{p-6ce82324.entry.js → p-b2f0905a.entry.js} +1 -1
  232. package/lib/duet/p-b3a7ef62.entry.js +4 -0
  233. package/lib/duet/{p-ac4fc44c.entry.js → p-b4a1c719.entry.js} +1 -1
  234. package/lib/duet/p-b5204ec2.entry.js +4 -0
  235. package/lib/duet/{p-f297f8f2.entry.js → p-b58cfa18.entry.js} +1 -1
  236. package/lib/duet/{p-f9db8670.entry.js → p-b69946d4.entry.js} +1 -1
  237. package/lib/duet/{p-20066df8.entry.js → p-b7351bfd.entry.js} +1 -1
  238. package/lib/duet/{p-8bdcfd1f.entry.js → p-b7bb7472.entry.js} +1 -1
  239. package/lib/duet/{p-407d4e5a.entry.js → p-b9e97305.entry.js} +1 -1
  240. package/lib/duet/{p-fc1a18f8.entry.js → p-bb7fa0cf.entry.js} +1 -1
  241. package/lib/duet/{p-5f72134e.entry.js → p-bef7eed7.entry.js} +1 -1
  242. package/lib/duet/p-bffae8f6.entry.js +4 -0
  243. package/lib/duet/{p-304a9a55.entry.js → p-c26e2123.entry.js} +1 -1
  244. package/lib/duet/{p-4cee693b.entry.js → p-c49a72ad.entry.js} +1 -1
  245. package/lib/duet/{p-aa1256f9.entry.js → p-c5c63d0f.entry.js} +1 -1
  246. package/lib/duet/{p-a49b5d93.entry.js → p-c9a12663.entry.js} +1 -1
  247. package/lib/duet/{p-f4538e9d.entry.js → p-ccaf5c28.entry.js} +1 -1
  248. package/lib/duet/{p-512d18c8.entry.js → p-d78923f9.entry.js} +1 -1
  249. package/lib/duet/p-d8383f1a.entry.js +4 -0
  250. package/lib/duet/{p-4e1c2676.entry.js → p-e3d91f53.entry.js} +1 -1
  251. package/lib/duet/{p-48e77341.entry.js → p-e78af675.entry.js} +1 -1
  252. package/lib/duet/{p-2e44c6b8.entry.js → p-e9a7215b.entry.js} +1 -1
  253. package/lib/duet/{p-d7abb7fa.entry.js → p-ebe55a34.entry.js} +1 -1
  254. package/lib/duet/{p-4a251661.entry.js → p-ef340dc6.entry.js} +1 -1
  255. package/lib/duet/{p-e40d9c21.entry.js → p-f17438c7.entry.js} +1 -1
  256. package/lib/duet/{p-3b9d7f6a.entry.js → p-f264879d.entry.js} +1 -1
  257. package/lib/duet/p-f61ebeb1.entry.js +4 -0
  258. package/lib/duet/p-f647f09e.entry.js +4 -0
  259. package/lib/duet/{p-829bccb7.entry.js → p-f89da74c.entry.js} +1 -1
  260. package/lib/duet/{p-3533d6ee.entry.js → p-f959ca52.entry.js} +1 -1
  261. package/lib/duet/{p-210bc161.entry.js → p-fb0f6212.entry.js} +1 -1
  262. package/lib/duet/p-fb59f80d.entry.js +4 -0
  263. package/lib/duet/{p-174935bc.entry.js → p-feae1702.entry.js} +1 -1
  264. package/lib/esm/{a11y-utils--wwGTL0T.js → a11y-utils-DZqe1lDK.js} +1 -1
  265. package/lib/esm/{app-globals-Diuuep9d.js → app-globals-Byl9AdI1.js} +1 -1
  266. package/lib/esm/duet-action-button.entry.js +3 -3
  267. package/lib/esm/duet-alert.entry.js +4 -4
  268. package/lib/esm/duet-badge.entry.js +6 -6
  269. package/lib/esm/duet-banner.entry.js +8 -8
  270. package/lib/esm/duet-breadcrumb.entry.js +6 -6
  271. package/lib/esm/duet-breadcrumbs.entry.js +5 -5
  272. package/lib/esm/duet-button_2.entry.js +3 -3
  273. package/lib/esm/duet-callout.entry.js +5 -5
  274. package/lib/esm/duet-caption_4.entry.js +7 -7
  275. package/lib/esm/duet-card.entry.js +9 -8
  276. package/lib/esm/duet-checkbox.entry.js +3 -3
  277. package/lib/esm/duet-checkmark.entry.js +4 -4
  278. package/lib/esm/duet-chip.entry.js +3 -3
  279. package/lib/esm/duet-choice_2.entry.js +6 -6
  280. package/lib/esm/duet-collapsible.entry.js +3 -3
  281. package/lib/esm/duet-combobox.entry.js +5 -15
  282. package/lib/esm/duet-contact-card.entry.js +8 -7
  283. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  284. package/lib/esm/duet-date-picker.entry.js +6 -6
  285. package/lib/esm/duet-divider_2.entry.js +2 -2
  286. package/lib/esm/duet-editable-table_3.entry.js +8 -8
  287. package/lib/esm/duet-empty-state.entry.js +2 -2
  288. package/lib/esm/duet-fieldset.entry.js +6 -6
  289. package/lib/esm/duet-file-chooser.entry.js +2 -2
  290. package/lib/esm/duet-footer.entry.js +4 -4
  291. package/lib/esm/duet-grid_2.entry.js +12 -8
  292. package/lib/esm/duet-header_2.entry.js +3 -3
  293. package/lib/esm/duet-hero.entry.js +18 -13
  294. package/lib/esm/duet-icon.entry.js +5 -5
  295. package/lib/esm/duet-indicator.entry.js +3 -3
  296. package/lib/esm/duet-input_2.entry.js +5 -5
  297. package/lib/esm/duet-layout.entry.js +2 -2
  298. package/lib/esm/duet-list_2.entry.js +4 -4
  299. package/lib/esm/duet-menu-bar-button.entry.js +4 -4
  300. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
  301. package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
  302. package/lib/esm/duet-menu-bar-item.entry.js +7 -7
  303. package/lib/esm/duet-menu-bar-link.entry.js +4 -4
  304. package/lib/esm/duet-menu-bar.entry.js +3 -3
  305. package/lib/esm/duet-modal.entry.js +5 -5
  306. package/lib/esm/duet-multiselect.entry.js +5 -5
  307. package/lib/esm/duet-nav.entry.js +3 -3
  308. package/lib/esm/duet-notification_2.entry.js +6 -6
  309. package/lib/esm/duet-number-input.entry.js +4 -4
  310. package/lib/esm/duet-overlay.entry.js +2 -2
  311. package/lib/esm/duet-page-heading.entry.js +6 -6
  312. package/lib/esm/duet-pagination_2.entry.js +3 -3
  313. package/lib/esm/duet-panel.entry.js +2 -2
  314. package/lib/esm/duet-phone-input.entry.js +4 -4
  315. package/lib/esm/duet-popup-menu_2.entry.js +6 -6
  316. package/lib/esm/duet-progress.entry.js +3 -3
  317. package/lib/esm/duet-promo-card.entry.js +8 -8
  318. package/lib/esm/duet-radio_2.entry.js +4 -4
  319. package/lib/esm/duet-range-slider.entry.js +4 -4
  320. package/lib/esm/duet-scrollable_3.entry.js +11 -11
  321. package/lib/esm/duet-section-layout.entry.js +4 -4
  322. package/lib/esm/duet-select.entry.js +4 -4
  323. package/lib/esm/duet-shaped-image.entry.js +4 -4
  324. package/lib/esm/duet-share-chart-item.entry.js +2 -2
  325. package/lib/esm/duet-share-chart.entry.js +6 -6
  326. package/lib/esm/duet-show-more.entry.js +3 -3
  327. package/lib/esm/duet-slideout-lang.entry.js +4 -4
  328. package/lib/esm/duet-slideout-link.entry.js +7 -7
  329. package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
  330. package/lib/esm/duet-slideout-panel.entry.js +11 -11
  331. package/lib/esm/duet-slideout.entry.js +6 -6
  332. package/lib/esm/duet-status-icon.entry.js +3 -3
  333. package/lib/esm/duet-step_2.entry.js +3 -3
  334. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
  335. package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
  336. package/lib/esm/duet-submenu-bar-item.entry.js +6 -6
  337. package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
  338. package/lib/esm/duet-submenu-bar.entry.js +7 -7
  339. package/lib/esm/duet-teaser.entry.js +108 -0
  340. package/lib/esm/duet-textarea.entry.js +8 -8
  341. package/lib/esm/duet-toggle.entry.js +8 -8
  342. package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
  343. package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
  344. package/lib/esm/duet-toolbar-item.entry.js +8 -8
  345. package/lib/esm/duet-toolbar-link.entry.js +4 -4
  346. package/lib/esm/duet-toolbar.entry.js +4 -4
  347. package/lib/esm/duet-tooltip-button_2.entry.js +9 -9
  348. package/lib/esm/duet-tooltip.entry.js +4 -4
  349. package/lib/esm/duet-tray.entry.js +5 -5
  350. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  351. package/lib/esm/duet-upload-item.entry.js +6 -6
  352. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  353. package/lib/esm/duet.js +4 -4
  354. package/lib/esm/{errorcodes.utils-S_WrUPeV.js → errorcodes.utils-KA3z1KuW.js} +1 -1
  355. package/lib/esm/{focus-utils-C4oaajGr.js → focus-utils-id9x3opi.js} +1 -1
  356. package/lib/esm/{index-D3450NfA.js → index-D4MpGrUR.js} +5 -1
  357. package/lib/esm/{label-C1HF2o4Y.js → label-Caev3m-F.js} +1 -1
  358. package/lib/esm/{language-utils-D4WVl8Ph.js → language-utils-DTyUbpD-.js} +1 -1
  359. package/lib/esm/loader.js +4 -4
  360. package/lib/esm/{picture-utils-MSeJTkDk.js → picture-utils-4PMNZDR2.js} +7 -2
  361. package/lib/esm/{slot-utils-Dxcjtmp3.js → slot-utils-BhEk4zKY.js} +1 -1
  362. package/lib/esm/{themeable-component-QHdUfcat.js → themeable-component-B_d7Klmd.js} +1 -1
  363. package/lib/types/components/duet-banner/duet-banner.d.ts +5 -0
  364. package/lib/types/components/duet-card/duet-card.d.ts +5 -0
  365. package/lib/types/components/duet-combobox/duet-combobox.d.ts +0 -1
  366. package/lib/types/components/duet-contact-card/duet-contact-card.d.ts +5 -0
  367. package/lib/types/components/duet-grid/duet-grid.d.ts +2 -1
  368. package/lib/types/components/duet-hero/duet-hero.d.ts +5 -0
  369. package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +5 -0
  370. package/lib/types/components/duet-teaser/duet-teaser.d.ts +93 -0
  371. package/lib/types/components.d.ts +187 -2
  372. package/lib/types/utils/picture-utils.d.ts +4 -0
  373. package/package.json +5 -5
  374. package/lib/duet/p-054c334d.entry.js +0 -4
  375. package/lib/duet/p-2bf78fe4.entry.js +0 -4
  376. package/lib/duet/p-3445529c.entry.js +0 -4
  377. package/lib/duet/p-3def9480.entry.js +0 -4
  378. package/lib/duet/p-3fbe466a.entry.js +0 -4
  379. package/lib/duet/p-41230630.entry.js +0 -4
  380. package/lib/duet/p-44e53564.entry.js +0 -4
  381. package/lib/duet/p-6c239923.entry.js +0 -4
  382. package/lib/duet/p-81c5d3e3.entry.js +0 -4
  383. package/lib/duet/p-83dcbb64.entry.js +0 -4
  384. package/lib/duet/p-985213bb.entry.js +0 -4
  385. package/lib/duet/p-BZev46O8.js +0 -4
  386. package/lib/duet/p-CcoGR9T9.js +0 -4
  387. package/lib/duet/p-Dk60lC7n.js +0 -4
  388. package/lib/duet/p-JFwTD5kM.js +0 -4
  389. package/lib/duet/p-KbNgo0QF.js +0 -4
  390. package/lib/duet/p-aa7e4c81.entry.js +0 -4
  391. package/lib/duet/p-c54ecb23.entry.js +0 -4
  392. package/lib/duet/p-e43df9c2.entry.js +0 -4
  393. package/lib/duet/p-edcdf0b7.entry.js +0 -4
  394. package/lib/duet/p-fdc4a97c.entry.js +0 -4
@@ -0,0 +1,462 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import { h, Host } from "@stencil/core";
5
+ import { inheritGlobalTheme } from "../../common/themeable-component";
6
+ import { DuetPicture } from "../../utils/picture-utils";
7
+ import { checkNamedSlotElement, hasSlot } from "../../utils/slot-utils";
8
+ import { parsePossibleJSON } from "../../utils/string-utils";
9
+ const LONG_HEADING_LENGTH = 60;
10
+ /**
11
+ * @slot links - Slot for links or buttons related to the teaser. Only default duet-link and plain duet-button components should be used in this slot. Not rendered when the `url` property is set.
12
+ */
13
+ export class DuetTeaser {
14
+ constructor() {
15
+ /**
16
+ * Theme.
17
+ */
18
+ this.theme = "";
19
+ /**
20
+ * The actual heading level used in the HTML markup.
21
+ */
22
+ this.headingLevel = "h3";
23
+ /**
24
+ * Controls the visual size of the heading. Headings longer than 60 characters
25
+ * always use "h5" visually, regardless of this setting.
26
+ */
27
+ this.headingVisualLevel = "h3";
28
+ /**
29
+ * Background color for the icon
30
+ */
31
+ this.iconBackground = "color-background-accent-secondary";
32
+ /**
33
+ * Color for the icon
34
+ */
35
+ this.iconColor = "color-foreground-accent-secondary";
36
+ /**
37
+ * Creates/updates the actual heading element as a light DOM child of the
38
+ * host, slotted into the "heading" slot.
39
+ */
40
+ this.headingSetUp = () => {
41
+ const existing = this.element.querySelector(":scope > [slot='heading']");
42
+ if (!this.heading) {
43
+ existing === null || existing === void 0 ? void 0 : existing.remove();
44
+ return;
45
+ }
46
+ const tagMatches = (existing === null || existing === void 0 ? void 0 : existing.tagName.toLowerCase()) === this.headingLevel;
47
+ const headingElement = tagMatches ? existing : document.createElement(this.headingLevel);
48
+ headingElement.slot = "heading";
49
+ headingElement.textContent = this.heading;
50
+ headingElement.className = `teaser-heading teaser-heading-${this.getHeadingVisualLevel()}`;
51
+ if (!tagMatches) {
52
+ existing === null || existing === void 0 ? void 0 : existing.remove();
53
+ this.element.appendChild(headingElement);
54
+ }
55
+ };
56
+ }
57
+ /**
58
+ * Component lifecycle events.
59
+ */
60
+ componentWillLoad() {
61
+ inheritGlobalTheme(this);
62
+ this.hasLinksSlot = hasSlot(this.element, "links");
63
+ checkNamedSlotElement(this.element, "links", "duet-link[variation=default],duet-link:not([variation]),duet-button[variation=plain]", 0, true);
64
+ }
65
+ componentDidRender() {
66
+ this.headingSetUp();
67
+ }
68
+ /**
69
+ * Sets focus on underlying a element.
70
+ * Available only when url attribute is used.
71
+ * Use this method instead of the native `focus()`.
72
+ */
73
+ async setFocus(options) {
74
+ if (this.url && this.aOrDivElement) {
75
+ this.aOrDivElement.focus(options);
76
+ }
77
+ }
78
+ getHeadingVisualLevel() {
79
+ return this.heading && this.heading.length > LONG_HEADING_LENGTH ? "h5" : this.headingVisualLevel;
80
+ }
81
+ /**
82
+ * render() function
83
+ * Always the last one of the class.
84
+ */
85
+ render() {
86
+ const TagName = this.url ? "a" : "div";
87
+ const pictureSource = {
88
+ img: {
89
+ src: this.image,
90
+ alt: this.imageAlt || "",
91
+ loading: this.imagePriority === "high" ? "eager" : "lazy",
92
+ fetchpriority: this.imagePriority,
93
+ class: "duet-teaser-image",
94
+ },
95
+ sources: parsePossibleJSON(this.sources),
96
+ };
97
+ return (h(Host, { key: 'e65b22becf6cc35870584bb5d4984a5c92c52f80' }, h(TagName, { key: '39bab1e7a6e59414e18110a6513634c4da99dbe6', href: this.url, class: {
98
+ "duet-teaser": true,
99
+ "duet-theme-turva": this.theme === "turva",
100
+ "duet-teaser-link": !!this.url,
101
+ }, ref: element => (this.aOrDivElement = element) }, this.image ? (h("div", { class: "image-wrap" }, h(DuetPicture, Object.assign({}, pictureSource)))) : (this.icon && (h("div", { class: "icon-wrap" }, h("duet-icon", { class: "duet-teaser-icon", shape: "brand", color: this.iconColor, background: this.iconBackground, name: this.icon, margin: "none" })))), h("div", { key: '985108c747576fb8fa5e522402ad6518d471a8c5', class: "duet-teaser-body" }, this.heading && (h("div", { key: '2c49e6b10827a31060a9a0263d20648835008aa0' }, h("slot", { key: '4f4470ff29f50d5b4deaa6b1e28593156c4d5b06', name: "heading" }))), this.meta && (h("duet-paragraph", { key: '86b2aca7b9b6345e14bb0e21d1e92bda158288c4', class: "duet-teaser-meta", margin: "none" }, this.meta)), this.description && h("duet-paragraph", { key: '1a4979c9fcc3e6b75724a8cf031a401d47992d43' }, this.description), !this.url && this.hasLinksSlot && (h("duet-grid", { key: 'f5d445c279ed382840cc879bf84317d329b060a4', direction: "vertical" }, h("slot", { key: '259f34f776ea59e48904321663fd54d864aa4dc0', name: "links" })))))));
102
+ }
103
+ static get is() { return "duet-teaser"; }
104
+ static get encapsulation() { return "shadow"; }
105
+ static get originalStyleUrls() {
106
+ return {
107
+ "$": ["duet-teaser.scss"]
108
+ };
109
+ }
110
+ static get styleUrls() {
111
+ return {
112
+ "$": ["duet-teaser.css"]
113
+ };
114
+ }
115
+ static get properties() {
116
+ return {
117
+ "theme": {
118
+ "type": "string",
119
+ "attribute": "theme",
120
+ "mutable": true,
121
+ "complexType": {
122
+ "original": "DuetTheme",
123
+ "resolved": "\"\" | \"default\" | \"turva\"",
124
+ "references": {
125
+ "DuetTheme": {
126
+ "location": "import",
127
+ "path": "../../common-types",
128
+ "id": "src/common-types.d.ts::DuetTheme"
129
+ }
130
+ }
131
+ },
132
+ "required": false,
133
+ "optional": false,
134
+ "docs": {
135
+ "tags": [],
136
+ "text": "Theme."
137
+ },
138
+ "getter": false,
139
+ "setter": false,
140
+ "reflect": false,
141
+ "defaultValue": "\"\""
142
+ },
143
+ "heading": {
144
+ "type": "string",
145
+ "attribute": "heading",
146
+ "mutable": false,
147
+ "complexType": {
148
+ "original": "string",
149
+ "resolved": "string",
150
+ "references": {}
151
+ },
152
+ "required": false,
153
+ "optional": false,
154
+ "docs": {
155
+ "tags": [],
156
+ "text": "The heading text."
157
+ },
158
+ "getter": false,
159
+ "setter": false,
160
+ "reflect": false
161
+ },
162
+ "headingLevel": {
163
+ "type": "string",
164
+ "attribute": "heading-level",
165
+ "mutable": false,
166
+ "complexType": {
167
+ "original": "DuetHeadingLevel",
168
+ "resolved": "\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
169
+ "references": {
170
+ "DuetHeadingLevel": {
171
+ "location": "import",
172
+ "path": "../../common-types",
173
+ "id": "src/common-types.d.ts::DuetHeadingLevel"
174
+ }
175
+ }
176
+ },
177
+ "required": false,
178
+ "optional": false,
179
+ "docs": {
180
+ "tags": [],
181
+ "text": "The actual heading level used in the HTML markup."
182
+ },
183
+ "getter": false,
184
+ "setter": false,
185
+ "reflect": false,
186
+ "defaultValue": "\"h3\""
187
+ },
188
+ "headingVisualLevel": {
189
+ "type": "string",
190
+ "attribute": "heading-visual-level",
191
+ "mutable": false,
192
+ "complexType": {
193
+ "original": "DuetTeaserHeadingVisualLevel",
194
+ "resolved": "\"h3\" | \"h5\"",
195
+ "references": {
196
+ "DuetTeaserHeadingVisualLevel": {
197
+ "location": "local",
198
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-teaser/duet-teaser.tsx",
199
+ "id": "src/components/duet-teaser/duet-teaser.tsx::DuetTeaserHeadingVisualLevel"
200
+ }
201
+ }
202
+ },
203
+ "required": false,
204
+ "optional": false,
205
+ "docs": {
206
+ "tags": [],
207
+ "text": "Controls the visual size of the heading. Headings longer than 60 characters\nalways use \"h5\" visually, regardless of this setting."
208
+ },
209
+ "getter": false,
210
+ "setter": false,
211
+ "reflect": false,
212
+ "defaultValue": "\"h3\""
213
+ },
214
+ "description": {
215
+ "type": "string",
216
+ "attribute": "description",
217
+ "mutable": false,
218
+ "complexType": {
219
+ "original": "string",
220
+ "resolved": "string",
221
+ "references": {}
222
+ },
223
+ "required": false,
224
+ "optional": false,
225
+ "docs": {
226
+ "tags": [],
227
+ "text": "Description text shown below the heading."
228
+ },
229
+ "getter": false,
230
+ "setter": false,
231
+ "reflect": false
232
+ },
233
+ "meta": {
234
+ "type": "string",
235
+ "attribute": "meta",
236
+ "mutable": false,
237
+ "complexType": {
238
+ "original": "string",
239
+ "resolved": "string",
240
+ "references": {}
241
+ },
242
+ "required": false,
243
+ "optional": false,
244
+ "docs": {
245
+ "tags": [],
246
+ "text": "Meta text (date, category, etc.). Placed after the heading in source order, but rendered visually above it."
247
+ },
248
+ "getter": false,
249
+ "setter": false,
250
+ "reflect": false
251
+ },
252
+ "url": {
253
+ "type": "string",
254
+ "attribute": "url",
255
+ "mutable": false,
256
+ "complexType": {
257
+ "original": "string",
258
+ "resolved": "string",
259
+ "references": {}
260
+ },
261
+ "required": false,
262
+ "optional": false,
263
+ "docs": {
264
+ "tags": [],
265
+ "text": "A destination to link to, rendered in the href attribute of a link. Makes\nthe whole teaser act as a link and disables the links slot."
266
+ },
267
+ "getter": false,
268
+ "setter": false,
269
+ "reflect": false
270
+ },
271
+ "image": {
272
+ "type": "string",
273
+ "attribute": "image",
274
+ "mutable": false,
275
+ "complexType": {
276
+ "original": "string",
277
+ "resolved": "string",
278
+ "references": {}
279
+ },
280
+ "required": false,
281
+ "optional": false,
282
+ "docs": {
283
+ "tags": [],
284
+ "text": "Image URL. If provided, the icon property is ignored."
285
+ },
286
+ "getter": false,
287
+ "setter": false,
288
+ "reflect": false
289
+ },
290
+ "imageAlt": {
291
+ "type": "string",
292
+ "attribute": "image-alt",
293
+ "mutable": false,
294
+ "complexType": {
295
+ "original": "string",
296
+ "resolved": "string",
297
+ "references": {}
298
+ },
299
+ "required": false,
300
+ "optional": false,
301
+ "docs": {
302
+ "tags": [],
303
+ "text": "Alt attribute text for the image. If not provided, image is assigned presentation role."
304
+ },
305
+ "getter": false,
306
+ "setter": false,
307
+ "reflect": false
308
+ },
309
+ "imagePriority": {
310
+ "type": "string",
311
+ "attribute": "image-priority",
312
+ "mutable": false,
313
+ "complexType": {
314
+ "original": "\"high\" | \"low\"",
315
+ "resolved": "\"high\" | \"low\"",
316
+ "references": {}
317
+ },
318
+ "required": false,
319
+ "optional": false,
320
+ "docs": {
321
+ "tags": [],
322
+ "text": "Make the image load with higher or lower priority. Value \"high\" sets the img's attributes fetchpriority and loading to\n\"high\" and \"eager\", while value \"low\" sets those attributes to \"low\" and \"lazy\""
323
+ },
324
+ "getter": false,
325
+ "setter": false,
326
+ "reflect": false
327
+ },
328
+ "sources": {
329
+ "type": "string",
330
+ "attribute": "sources",
331
+ "mutable": false,
332
+ "complexType": {
333
+ "original": "DuetSource[] | string",
334
+ "resolved": "DuetSource[] | string",
335
+ "references": {
336
+ "DuetSource": {
337
+ "location": "import",
338
+ "path": "../../utils/picture-utils",
339
+ "id": "src/utils/picture-utils.tsx::DuetSource"
340
+ }
341
+ }
342
+ },
343
+ "required": false,
344
+ "optional": false,
345
+ "docs": {
346
+ "tags": [],
347
+ "text": "Array of sources for responsive images. Sources have the properties of <source> element."
348
+ },
349
+ "getter": false,
350
+ "setter": false,
351
+ "reflect": false
352
+ },
353
+ "icon": {
354
+ "type": "string",
355
+ "attribute": "icon",
356
+ "mutable": false,
357
+ "complexType": {
358
+ "original": "DuetIconName",
359
+ "resolved": "string",
360
+ "references": {
361
+ "DuetIconName": {
362
+ "location": "import",
363
+ "path": "../../common-types",
364
+ "id": "src/common-types.d.ts::DuetIconName"
365
+ }
366
+ }
367
+ },
368
+ "required": false,
369
+ "optional": false,
370
+ "docs": {
371
+ "tags": [],
372
+ "text": "Icon to display when no image is set. Not used if the image property is given."
373
+ },
374
+ "getter": false,
375
+ "setter": false,
376
+ "reflect": false
377
+ },
378
+ "iconBackground": {
379
+ "type": "string",
380
+ "attribute": "icon-background",
381
+ "mutable": false,
382
+ "complexType": {
383
+ "original": "DuetColor",
384
+ "resolved": "string",
385
+ "references": {
386
+ "DuetColor": {
387
+ "location": "import",
388
+ "path": "../../common-types",
389
+ "id": "src/common-types.d.ts::DuetColor"
390
+ }
391
+ }
392
+ },
393
+ "required": false,
394
+ "optional": false,
395
+ "docs": {
396
+ "tags": [],
397
+ "text": "Background color for the icon"
398
+ },
399
+ "getter": false,
400
+ "setter": false,
401
+ "reflect": false,
402
+ "defaultValue": "\"color-background-accent-secondary\""
403
+ },
404
+ "iconColor": {
405
+ "type": "string",
406
+ "attribute": "icon-color",
407
+ "mutable": false,
408
+ "complexType": {
409
+ "original": "DuetIconColor",
410
+ "resolved": "string",
411
+ "references": {
412
+ "DuetIconColor": {
413
+ "location": "import",
414
+ "path": "../../common-types",
415
+ "id": "src/common-types.d.ts::DuetIconColor"
416
+ }
417
+ }
418
+ },
419
+ "required": false,
420
+ "optional": false,
421
+ "docs": {
422
+ "tags": [],
423
+ "text": "Color for the icon"
424
+ },
425
+ "getter": false,
426
+ "setter": false,
427
+ "reflect": false,
428
+ "defaultValue": "\"color-foreground-accent-secondary\""
429
+ }
430
+ };
431
+ }
432
+ static get methods() {
433
+ return {
434
+ "setFocus": {
435
+ "complexType": {
436
+ "signature": "(options?: FocusOptions) => Promise<void>",
437
+ "parameters": [{
438
+ "name": "options",
439
+ "type": "FocusOptions",
440
+ "docs": ""
441
+ }],
442
+ "references": {
443
+ "Promise": {
444
+ "location": "global",
445
+ "id": "global::Promise"
446
+ },
447
+ "FocusOptions": {
448
+ "location": "global",
449
+ "id": "global::FocusOptions"
450
+ }
451
+ },
452
+ "return": "Promise<void>"
453
+ },
454
+ "docs": {
455
+ "text": "Sets focus on underlying a element.\nAvailable only when url attribute is used.\nUse this method instead of the native `focus()`.",
456
+ "tags": []
457
+ }
458
+ }
459
+ };
460
+ }
461
+ static get elementRef() { return "element"; }
462
+ }
@@ -240,17 +240,17 @@ export class DuetTextarea {
240
240
  */
241
241
  render() {
242
242
  const identifier = this.identifier || this.textareaId;
243
- return (h(Host, { key: 'a84e87889b86103cfb25a6fb62d5ae9fc921dde3', class: {
243
+ return (h(Host, { key: 'c645b374c5569d125e844312777f69b913951785', class: {
244
244
  "duet-m-0": this.margin === "none",
245
245
  "duet-has-counter": this.counter && !this.error,
246
246
  "duet-expand": this.expand,
247
- } }, h("div", { key: '1cac0725d91c47a8539a3a915e033ff98dbcefeb', class: {
247
+ } }, h("div", { key: '5c57fd8c8f91750d834147fa416e8cda82dcf025', class: {
248
248
  "duet-textarea-container": true,
249
249
  "duet-theme-turva": this.theme === "turva",
250
250
  "duet-label-hidden": this.labelHidden,
251
251
  "duet-input-top-caption-shown": this.isCaptionVisible,
252
252
  "has-error": !!this.error,
253
- } }, h(DuetInternalLabel, { key: '902dadd1b95a410ed378ce38e71644138e3aae28', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { key: 'db32f6f507a45acaeb0c1a5128544855ae8e0e31', direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), h("slot", { key: '40464ec1d95d3880de8197f5780865cdff77233d', name: "tooltip" }), this.caption && (h("duet-caption", { key: '818b2b3294cca406e31397dfb2a77110891bd4ee', id: this.topCaptionId, size: "medium", theme: this.theme === "turva" ? "turva" : "default" }, this.caption)), h("div", { key: '515635119956e32aba3bf1949f183bd37dcbbf63', class: "duet-textarea-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { key: '040fe7c9caaa720aa2b2ae9124252da85d083ceb', id: this.topCaptionPlaceholderId, class: "duet-textarea-placeholder", size: "small" }, this.placeholder)), h("textarea", { key: '39f181d89675a7c0cdd6a0492108c61aa8a66779', onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: input => (this.nativeInput = input), class: { "duet-textarea": true, disabled: this.disabled }, value: this.value, disabled: this.disabled, "aria-labelledby": this.accessibleLabelledBy ? `${this.labelId} ${this.accessibleLabelledBy}` : this.labelId, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, placeholder: this.placeholder, spellcheck: "false", required: this.required, rows: this.rows, minlength: this.minlength, maxlength: this.maxlength, role: this.role, name: this.name, id: identifier })), h("duet-grid", { key: '4cefb97e18df23468e25743c4f62e4df7e5d9257', alignment: "stretch" }, h("duet-grid-item", { key: 'bb2d8ca91b5478ceb814090fe1c24e48704f5747', margin: "none", fill: true }, h("div", { key: '208c4ddda91e2b97459815079c7b9a552366d4ab', class: "duet-textarea-help duet-textarea-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: '9957ee1bbb21233d09e116992fa88f14185f043a' }, this.error))), h("duet-grid-item", { key: '99713afc0205b671f95297e3991ed28a55a73b73', margin: "none", class: "duet-character-count-caption" }, this.counter && h(CharacterCount, { key: '855bec2958e7aa564ec9ca5958881ad1d597fd2b', theme: this.theme, value: this.value, maxlength: this.maxlength }))), this.counter && this.maxlength && (h("duet-visually-hidden", { key: 'd76477f0c64de79265740ae7a6bb251bdba9dd0f', id: this.characterCountId, class: "visually-hidden-counter", "aria-live": "polite" }, this.visuallyHiddenCounterText)))));
253
+ } }, h(DuetInternalLabel, { key: '7cf923d382d2623fa18ec9ad084275e2b9792ebf', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { key: '09a04a79bc4f13351c51ffca8332d863c7d22280', direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), h("slot", { key: 'f46daf8b99a53de5e5164f0f9f357ae91e1aa586', name: "tooltip" }), this.caption && (h("duet-caption", { key: 'a2b9079234a7ec3b9b793e7912bcd4c8addc9e70', id: this.topCaptionId, size: "medium", theme: this.theme === "turva" ? "turva" : "default" }, this.caption)), h("div", { key: '7f68db3beca35abb4fb53fa1056d99857e1e8316', class: "duet-textarea-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { key: '250b6e1eb6abbb79f71e176c1c241cb1fa3da18f', id: this.topCaptionPlaceholderId, class: "duet-textarea-placeholder", size: "small" }, this.placeholder)), h("textarea", { key: 'c50e5d4e25d0a499cd6a1bfc03cbc546d92a3b74', onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: input => (this.nativeInput = input), class: { "duet-textarea": true, disabled: this.disabled }, value: this.value, disabled: this.disabled, "aria-labelledby": this.accessibleLabelledBy ? `${this.labelId} ${this.accessibleLabelledBy}` : this.labelId, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, placeholder: this.placeholder, spellcheck: "false", required: this.required, rows: this.rows, minlength: this.minlength, maxlength: this.maxlength, role: this.role, name: this.name, id: identifier })), h("duet-grid", { key: '20b668af694a652ea88adc161052fbff65517eb5', alignment: "stretch" }, h("duet-grid-item", { key: 'b795843db0959cc83c8724dbd587debd68f58594', margin: "none", fill: true }, h("div", { key: 'ab3999585663d8d1081fe39b43a35933af7ca9b8', class: "duet-textarea-help duet-textarea-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: '4ad7dbac61a6398ec4f8459449162d002030f29e' }, this.error))), h("duet-grid-item", { key: '25e2bb115dada7a5b0baaa58efcad756c3cdfc30', margin: "none", class: "duet-character-count-caption" }, this.counter && h(CharacterCount, { key: '3e68a56f36758415be927efbc10cf267ec4d414e', theme: this.theme, value: this.value, maxlength: this.maxlength }))), this.counter && this.maxlength && (h("duet-visually-hidden", { key: '7af4e00427232548222397a4439f2e71a54ac586', id: this.characterCountId, class: "visually-hidden-counter", "aria-live": "polite" }, this.visuallyHiddenCounterText)))));
254
254
  }
255
255
  static get is() { return "duet-textarea"; }
256
256
  static get encapsulation() { return "shadow"; }
@@ -118,11 +118,11 @@ export class DuetToggle {
118
118
  */
119
119
  render() {
120
120
  const identifier = this.identifier || this.toggleId;
121
- return (h(Host, { key: 'ba421a50fdc02e229fa28f85ff056b7871a49622', onClick: this.disabled || this.loading ? undefined : this.onClick, class: {
121
+ return (h(Host, { key: '8e33f58775179856fa30813d64699b5fd99d8340', onClick: this.disabled || this.loading ? undefined : this.onClick, class: {
122
122
  "duet-m-0": this.margin === "none",
123
123
  "duet-toggle-is-disabled": this.disabled,
124
124
  "duet-toggle-is-loading": this.loading,
125
- } }, h("div", { key: '81bcd7c487268f6f79e227a5964049c31c50537e', class: {
125
+ } }, h("div", { key: '814cdf2738bbf743e689d706d00999d2476474a9', class: {
126
126
  "duet-toggle": true,
127
127
  "duet-theme-turva": this.theme === "turva",
128
128
  "duet-side-label": this.labelPosition !== "top",
@@ -130,7 +130,7 @@ export class DuetToggle {
130
130
  "duet-label-hidden": this.labelHidden,
131
131
  "duet-toggle-is-disabled": this.disabled,
132
132
  "duet-toggle-is-loading": this.loading,
133
- } }, h(DuetInternalLabel, { key: '9a9c911786434d7324b8e88a8d908102a433b4f6', theme: this.theme, color: this.labelColor, weight: this.labelWeight, for: identifier, margin: this.labelPosition === "top" ? "auto" : "none" }, this.label), h("div", { key: 'de416640cd8c34241f9f8f014c71f0ec664a16a7', class: "duet-switch" }, h("input", { key: 'd420b3d44b53e0daf276c9a7cabde816bff13fa2', type: "checkbox", value: this.value, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, id: identifier, role: this.role, name: this.name, checked: this.checked, required: this.required, disabled: this.disabled || this.loading, ref: input => (this.nativeInput = input) }), h("div", { key: '5def29eef95fba6e68134ce1c9061404bd390760', class: { "duet-slider": true, "duet-theme-turva": this.theme === "turva" } }), this.loading && h("duet-spinner", { key: '1bf177270fc0d8e66aae450110abe9ca2340c156', color: "primary" }))), this.loading && (h("duet-visually-hidden", { key: '101bf2c1752bbd1a263128aa1501b63938fee3d3', "aria-live": "polite" }, this.accessibleLabelLoading || DuetStringsLoadingDefaults[getLanguage()])), this.loadingComplete && (h("duet-visually-hidden", { key: 'd1e8b6bf58b301f82fee88b83a5591e146a16d86', "aria-live": "polite" }, this.accessibleLabelComplete || DuetStringsCompleteDefaults[getLanguage()]))));
133
+ } }, h(DuetInternalLabel, { key: '48309fafb420e187486b8de7eef212f614008295', theme: this.theme, color: this.labelColor, weight: this.labelWeight, for: identifier, margin: this.labelPosition === "top" ? "auto" : "none" }, this.label), h("div", { key: 'b4f62f86018a7bb7f34a450175ad996c63059ed3', class: "duet-switch" }, h("input", { key: '8c314ffe85e67fa4740ef3bb6357c17e4fc2659a', type: "checkbox", value: this.value, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, id: identifier, role: this.role, name: this.name, checked: this.checked, required: this.required, disabled: this.disabled || this.loading, ref: input => (this.nativeInput = input) }), h("div", { key: '6e55a2738a881cf60ab6699e2e8e1fc0026362a3', class: { "duet-slider": true, "duet-theme-turva": this.theme === "turva" } }), this.loading && h("duet-spinner", { key: '1ae23364dffc828696a3591fab7e48832a18653a', color: "primary" }))), this.loading && (h("duet-visually-hidden", { key: 'a4f566fbcdb66615228cf9fc16056378cc41eda3', "aria-live": "polite" }, this.accessibleLabelLoading || DuetStringsLoadingDefaults[getLanguage()])), this.loadingComplete && (h("duet-visually-hidden", { key: 'db35c9a6927a435ed193f696e8a775f74b7d47cb', "aria-live": "polite" }, this.accessibleLabelComplete || DuetStringsCompleteDefaults[getLanguage()]))));
134
134
  }
135
135
  static get is() { return "duet-toggle"; }
136
136
  static get encapsulation() { return "shadow"; }
@@ -36,11 +36,11 @@ export class DuetToolbar {
36
36
  : this.variation === "secondary"
37
37
  ? "secondary"
38
38
  : "default";
39
- return (h(Host, { key: '810537e117ab39b71cb7722178846736f3cb0b85' }, h("nav", { key: '12bad772d5ab1ff3e4adfca687da6c4d46ce93f0', class: {
39
+ return (h(Host, { key: 'a4427ddcb41378eb22a7ef7f077c9fdf1d290880' }, h("nav", { key: '255a4f21a692c5a1231d619f33a73bfece27de9c', class: {
40
40
  "duet-toolbar": true,
41
41
  "duet-theme-turva": this.theme === "turva",
42
42
  [variation]: true,
43
- }, "aria-label": this.accessibleLabel }, h("div", { key: 'c4dc60b980cfaa54fed8a7578a766e9f7fe01825', class: "container" }, h("div", { key: 'cc4af5be82d76864f8160d04419533a13223fa28', class: "list", role: "list" }, h("slot", { key: 'e23afafe23ac2a9d8025e2239421e4a3c033d667', name: "left" })), h("div", { key: '28bc42be2ee3cbfda1a9645ad8b66e8dec71977b', class: "list", role: "list" }, h("slot", { key: '2f304cb81562a3bd030d5d2398a0516a6491d4e5', name: "right" }))))));
43
+ }, "aria-label": this.accessibleLabel }, h("div", { key: 'ac3f72269798fe1d29734ed2848149b1f3197815', class: "container" }, h("div", { key: '01fd28d4455b94221b7664475f7f8d948851b1ae', class: "list", role: "list" }, h("slot", { key: '51d7c5144022b4d1e580a9d33e9fff683e06e537', name: "left" })), h("div", { key: '2fd278a57422a9751f84a4faedbb26cfd8a6095c', class: "list", role: "list" }, h("slot", { key: '0e7197b5ed23a575b00e3c5dca361da1b1dfbfb0', name: "right" }))))));
44
44
  }
45
45
  static get is() { return "duet-toolbar"; }
46
46
  static get encapsulation() { return "shadow"; }
@@ -64,18 +64,18 @@ export class DuetToolbarDropdown {
64
64
  itemsAlign = this.element.parentElement.getAttribute("slot") === "left" ? "right" : "left";
65
65
  }
66
66
  const variation = this.variation === "negative" ? "negative" : "white";
67
- return (h(Host, { key: '537cb902a5fa3e679997e4e794d3335d0400caf6', role: "listitem" }, h("div", { key: '8ff38e056a74dcd7a30e1ab09bfa7b757e0e224f', class: {
67
+ return (h(Host, { key: '260d43c3c36ccc6473ada8644b3cdd6a59ae12b8', role: "listitem" }, h("div", { key: 'cd8bcc17284e41d498018e7a0f8bc202b263c27c', class: {
68
68
  "duet-toolbar-dropdown": true,
69
69
  "duet-theme-turva": this.theme === "turva",
70
70
  [itemsAlign]: true,
71
71
  [variation]: true,
72
- } }, h("button", { key: 'ed4415937f60d79cdff2794e8d0c9e32e2144ada', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel, id: "button", type: "button", class: {
72
+ } }, h("button", { key: '8a4052995f9e9c148b96254b173ea8cad339b9b5', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel, id: "button", type: "button", class: {
73
73
  active: this.active,
74
74
  open: this.open,
75
- }, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { key: '9b594c5aa508947d9cfe551cb9c9add1bcc95a7f', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("span", { key: '3f23e7a0c570956fbcaff50417cc79869b04c122', class: "label" }, h("slot", { key: '51bdc6f723e217d090f4b611eaac211611e952e6', name: "label" }), h("duet-icon", { key: 'e3ffbfb325327902cc56f9684f879164f4b3a659', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { key: 'dfcc391bafb75c326a62c89ac9d4221508e00efd', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
75
+ }, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { key: 'cc9305e0cab43bdddd6b29985921bc0e3ac6f2cc', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("span", { key: 'bfa1bcc44a13762c3c7ed54b788ac83e4f9eaf36', class: "label" }, h("slot", { key: 'bb0fca1e6dd3a2bedb48f3cc737847fa92f4f887', name: "label" }), h("duet-icon", { key: '8a4ebc94bf7951dcab09cd91c77858559020da81', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { key: '95fbfa1b864246ce99b84ca5a99832683d0cfea3', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
76
76
  items: true,
77
77
  hidden: !this.open,
78
- } }, h("slot", { key: '946f25dc7587b757fbdb11125b9aade9501c6d91' })))));
78
+ } }, h("slot", { key: '029b14e34e87faf198b6d77b234d40c9579d72f7' })))));
79
79
  }
80
80
  static get is() { return "duet-toolbar-dropdown"; }
81
81
  static get encapsulation() { return "shadow"; }
@@ -45,11 +45,11 @@ export class DuetToolbarDropdownLink {
45
45
  * Always the last one in the class.
46
46
  */
47
47
  render() {
48
- return (h(Host, { key: '5503edc925ef9f59d266699d49f280d803d96b1a' }, h("a", { key: '78cfd5795087aa0668130fcd1aef9af8f6afe74d', class: {
48
+ return (h(Host, { key: 'b00b4ee6b05837bd3221558d4031e19655e78c2d' }, h("a", { key: '4bc395b03ce0515b092b261364b0461838ce5cbc', class: {
49
49
  "duet-toolbar-dropdown-link": true,
50
50
  "duet-theme-turva": this.theme === "turva",
51
51
  active: this.active,
52
- }, href: this.href, lang: this.targetLanguage, hreflang: this.targetLanguage, role: "link menuitem", "aria-label": this.accessibleLabel, "aria-current": this.active ? "true" : "false", onKeyUp: e => this.handleEscape(e) }, this.icon && h("duet-icon", { key: '94cbf93524f24784189c22358378e2c0c21d6cc6', name: this.icon, size: "x-small", margin: "none" }), h("span", { key: '61d5272e3b2670262dabd167c898f160b9c3c751', class: "label" }, h("slot", { key: 'ce66bfda77a5f5e8292b1b05a3aac6e55f37a43b' })), this.active && (h("duet-icon", { key: 'b6ae3a0972462f8034fceda49f652477849c555d', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
52
+ }, href: this.href, lang: this.targetLanguage, hreflang: this.targetLanguage, role: "link menuitem", "aria-label": this.accessibleLabel, "aria-current": this.active ? "true" : "false", onKeyUp: e => this.handleEscape(e) }, this.icon && h("duet-icon", { key: 'f8d7e0d960179596c5ee99525bfbd9ee2bdc5509', name: this.icon, size: "x-small", margin: "none" }), h("span", { key: '6713e5f3ad08944baddaa01c8264293861d2aae2', class: "label" }, h("slot", { key: 'd64f498eb934e4e40c3851eff2565412bfdad6d0' })), this.active && (h("duet-icon", { key: '454ecd536a2b3643e93b7373fa5c9820a33cecdf', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
53
53
  }
54
54
  static get is() { return "duet-toolbar-dropdown-link"; }
55
55
  static get encapsulation() { return "shadow"; }
@@ -86,17 +86,17 @@ export class DuetToolbarItem {
86
86
  : this.variation === "secondary"
87
87
  ? "secondary"
88
88
  : "default";
89
- return (h(Host, { key: '862f45e9efe5b3b54645c3a9627456ab5f723263', role: "listitem" }, this.badge && h("duet-indicator", { key: '29d7bdff76bcf999e4ecff6e3eedd10e006bc968', variation: "change" }), h(TagName, { key: 'b3c0820e95170ce048b75d7e02a2f2e6b7264301', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
89
+ return (h(Host, { key: '96487fd2e42789280cf1dc0538ff07b0f1f79264', role: "listitem" }, this.badge && h("duet-indicator", { key: '5bfd9faa52039e80c72afce6d477602c5b6e3f8e', variation: "change" }), h(TagName, { key: 'b5c8b5ac1cfe6549946e9820a2dd540490c606da', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
90
90
  "duet-toolbar-item": true,
91
91
  "duet-theme-turva": this.theme === "turva",
92
92
  active: this.active,
93
93
  [variation]: true,
94
- }, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (h("div", { key: '52d2726d3619462ac9fa1ed0b3444675a3965d6d', class: "duet-toolbar-icon" }, h("duet-icon", { key: 'f4cf50d1e5dddaaf3cebd50a4271ebb8060d2aaa', size: "x-small", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" }), this.badge && h("div", { key: '545d508631827013ae6062243f7cd07e37361f1f', class: "duet-toolbar-badge" }))), h("slot", { key: 'ccf3f266976067a8dcfaeb78310ea0e9e4b740cc' }), (this.trailingIcon || (this.url && this.external)) && (h("div", { key: 'f589e763aa5474a3a0dfcfbada1672d3fbb0862a', class: "duet-toolbar-icon" }, h("duet-icon", { key: '288b80450871df0f784182e1f0802cfbad4daeed', class: {
94
+ }, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (h("div", { key: '082cebef94f34c57a5617891c46e05cfc59f3c2c', class: "duet-toolbar-icon" }, h("duet-icon", { key: '802fab1146fc2154f1c80e097e10464507548e5f', size: "x-small", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" }), this.badge && h("div", { key: 'a484198c098521fd9e8745ac234f6dbc231f029c', class: "duet-toolbar-badge" }))), h("slot", { key: '0993265ee4d23c17f425ee776ec9c14cb6454308' }), (this.trailingIcon || (this.url && this.external)) && (h("div", { key: '90af7cbc5f00e4dc859cde8ae0d1166b358f097e', class: "duet-toolbar-icon" }, h("duet-icon", { key: 'd2df808e4c985501fbd5bb96946f2d9c20a2b116', class: {
95
95
  "trailing-icon": !!this.trailingIcon,
96
96
  "trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
97
97
  "external-icon": !!(this.url && this.external),
98
98
  rotate: this.trailingIcon === "action-arrow-down-small" && this.accessibleExpanded,
99
- }, theme: this.theme, name: this.trailingIcon ? this.trailingIcon : this.url && this.external ? newWindowIcon.title : "", margin: "none", size: "auto", color: "currentColor" }), this.badge && this.trailingIcon !== "action-arrow-down-small" && h("div", { key: '7853154ae4ebb785a34b1de3ce36d7b1a23f304b', class: "duet-toolbar-badge" }))))));
99
+ }, theme: this.theme, name: this.trailingIcon ? this.trailingIcon : this.url && this.external ? newWindowIcon.title : "", margin: "none", size: "auto", color: "currentColor" }), this.badge && this.trailingIcon !== "action-arrow-down-small" && h("div", { key: 'e9b4919435ccd37e9906c033822de9195c57d73e', class: "duet-toolbar-badge" }))))));
100
100
  }
101
101
  static get is() { return "duet-toolbar-item"; }
102
102
  static get encapsulation() { return "shadow"; }
@@ -38,12 +38,12 @@ export class DuetToolbarLink {
38
38
  */
39
39
  render() {
40
40
  const variation = this.variation === "negative" ? "negative" : "white";
41
- return (h(Host, { key: '07041c0aec0959d4d85042618c07a5c6c5e7a80a', role: "listitem" }, h("a", { key: '5c422ec1435313ecad17c03eafaecdb42444c847', class: {
41
+ return (h(Host, { key: 'f932af82492da79cb86e7c40bbb887e7228489eb', role: "listitem" }, h("a", { key: 'ad12f0ddfa37ebe9be01756fd35696a00687a736', class: {
42
42
  "duet-toolbar-link": true,
43
43
  "duet-theme-turva": this.theme === "turva",
44
44
  active: this.active,
45
45
  [variation]: true,
46
- }, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '4a127553bf1f1e27ebb5787f7b736cc7a80cf9fe', size: "x-small", name: this.icon, margin: "none", theme: this.theme, color: "currentColor" })), h("slot", { key: '97573b5159185b7aae35dc962560e707de1a28b2' }))));
46
+ }, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '143aac785a87f5989758021a4aa61a1794e9bada', size: "x-small", name: this.icon, margin: "none", theme: this.theme, color: "currentColor" })), h("slot", { key: '9e6764f6a433cd437e0d248a09f87727cf9799cf' }))));
47
47
  }
48
48
  static get is() { return "duet-toolbar-link"; }
49
49
  static get encapsulation() { return "shadow"; }