@duetds/components 8.1.5 → 8.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (685) hide show
  1. package/hydrate/index.js +157 -94
  2. package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
  3. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  4. package/lib/cjs/duet-badge.cjs.entry.js +3 -3
  5. package/lib/cjs/duet-banner.cjs.entry.js +7 -5
  6. package/lib/cjs/duet-breadcrumb.cjs.entry.js +5 -4
  7. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -3
  8. package/lib/cjs/duet-button_2.cjs.entry.js +9 -7
  9. package/lib/cjs/duet-callout.cjs.entry.js +4 -3
  10. package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
  11. package/lib/cjs/duet-card.cjs.entry.js +3 -3
  12. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-chip.cjs.entry.js +31 -3
  15. package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
  17. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  21. package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
  22. package/lib/cjs/duet-editable-table_3.cjs.entry.js +3 -3
  23. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-footer.cjs.entry.js +3 -3
  27. package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
  28. package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
  29. package/lib/cjs/duet-hero.cjs.entry.js +3 -2
  30. package/lib/cjs/duet-icon.cjs.entry.js +5 -5
  31. package/lib/cjs/duet-input_2.cjs.entry.js +3 -3
  32. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -2
  35. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +3 -3
  37. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +2 -2
  38. package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
  39. package/lib/cjs/duet-modal.cjs.entry.js +3 -3
  40. package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  43. package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-pagination_2.cjs.entry.js +3 -3
  46. package/lib/cjs/duet-popup-menu-item.cjs.entry.js +3 -2
  47. package/lib/cjs/duet-popup-menu.cjs.entry.js +14 -13
  48. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  49. package/lib/cjs/duet-promo-card.cjs.entry.js +14 -5
  50. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  51. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  52. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  53. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  54. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
  56. package/lib/cjs/duet-show-more.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  60. package/lib/cjs/duet-slideout-panel.cjs.entry.js +4 -4
  61. package/lib/cjs/duet-slideout.cjs.entry.js +35 -52
  62. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +3 -3
  64. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +2 -2
  65. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
  66. package/lib/cjs/duet-submenu-bar.cjs.entry.js +3 -3
  67. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  68. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  69. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  70. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +2 -2
  71. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  72. package/lib/cjs/duet-toolbar.cjs.entry.js +2 -2
  73. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +2 -2
  74. package/lib/cjs/duet-tooltip.cjs.entry.js +2 -2
  75. package/lib/cjs/duet-tray.cjs.entry.js +2 -2
  76. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  77. package/lib/cjs/duet-upload-item.cjs.entry.js +1 -1
  78. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  79. package/lib/cjs/duet.cjs.js +2 -2
  80. package/lib/cjs/{focus-utils-ec077a62.js → focus-utils-da71e7a7.js} +1 -1
  81. package/lib/cjs/{index-00f527af.js → index-476807e3.js} +1 -1
  82. package/lib/cjs/loader.cjs.js +2 -2
  83. package/lib/cjs/slot-utils-6c81bd09.js +20 -0
  84. package/lib/cjs/{token-utils-a5356b00.js → token-utils-c672402d.js} +1 -1
  85. package/lib/cjs/{tokens-51cfbe11.js → tokens-c3eecae6.js} +1 -1
  86. package/lib/cjs/{tokens.module-ce5f9579.js → tokens.module-bc323a09.js} +1 -1
  87. package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
  88. package/lib/collection/components/duet-alert/duet-alert.js +1 -1
  89. package/lib/collection/components/duet-badge/duet-badge.css +1 -0
  90. package/lib/collection/components/duet-badge/duet-badge.js +1 -1
  91. package/lib/collection/components/duet-banner/duet-banner.css +3 -0
  92. package/lib/collection/components/duet-banner/duet-banner.js +8 -1
  93. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +5 -4
  94. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +15 -0
  95. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +30 -3
  96. package/lib/collection/components/duet-button/duet-button.css +1 -0
  97. package/lib/collection/components/duet-button/duet-button.js +10 -8
  98. package/lib/collection/components/duet-callout/duet-callout.css +18 -1
  99. package/lib/collection/components/duet-callout/duet-callout.js +3 -2
  100. package/lib/collection/components/duet-caption/duet-caption.js +1 -1
  101. package/lib/collection/components/duet-card/duet-card.js +3 -3
  102. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
  103. package/lib/collection/components/duet-chip/duet-chip.css +21 -12
  104. package/lib/collection/components/duet-chip/duet-chip.e2e.js +12 -2
  105. package/lib/collection/components/duet-chip/duet-chip.js +92 -5
  106. package/lib/collection/components/duet-choice/duet-choice.js +3 -3
  107. package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
  108. package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
  109. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  110. package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
  111. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  112. package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
  113. package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
  114. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  115. package/lib/collection/components/duet-footer/duet-footer.css +1 -0
  116. package/lib/collection/components/duet-footer/duet-footer.js +8 -8
  117. package/lib/collection/components/duet-grid/duet-grid.js +3 -3
  118. package/lib/collection/components/duet-header/duet-header.js +15 -15
  119. package/lib/collection/components/duet-heading/duet-heading.js +1 -1
  120. package/lib/collection/components/duet-hero/duet-hero.js +10 -9
  121. package/lib/collection/components/duet-icon/duet-icon.css +1 -0
  122. package/lib/collection/components/duet-icon/duet-icon.js +1 -1
  123. package/lib/collection/components/duet-input/duet-input.js +8 -8
  124. package/lib/collection/components/duet-label/duet-label.js +2 -2
  125. package/lib/collection/components/duet-layout/duet-layout.js +1 -1
  126. package/lib/collection/components/duet-list/duet-list.js +3 -3
  127. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  128. package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +1 -1
  129. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
  130. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +1 -1
  131. package/lib/collection/components/duet-modal/duet-modal.css +1 -1
  132. package/lib/collection/components/duet-modal/duet-modal.js +4 -4
  133. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  134. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
  135. package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
  136. package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
  137. package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
  138. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +44 -15
  139. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +22 -3
  140. package/lib/collection/components/duet-promo-card/duet-promo-card.css +8 -0
  141. package/lib/collection/components/duet-promo-card/duet-promo-card.js +45 -1
  142. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  143. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  144. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
  145. package/lib/collection/components/duet-select/duet-select.js +5 -5
  146. package/lib/collection/components/duet-show-more/duet-show-more.js +1 -1
  147. package/lib/collection/components/duet-slideout/duet-slideout.js +36 -53
  148. package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
  149. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  150. package/lib/collection/components/duet-step/duet-step.js +2 -2
  151. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  152. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +1 -0
  153. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +13 -0
  154. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +1 -1
  155. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +7 -4
  156. package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
  157. package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
  158. package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
  159. package/lib/collection/components/duet-toolbar/duet-toolbar.css +1 -1
  160. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +1 -1
  161. package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
  162. package/lib/collection/components/duet-upload/duet-upload.js +14 -14
  163. package/lib/collection/components/duet-upload-item/duet-upload-item.js +1 -1
  164. package/lib/collection/utils/slot-utils.js +16 -0
  165. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  166. package/lib/dist-custom-elements/duet-alert.js +1 -1
  167. package/lib/dist-custom-elements/duet-badge.js +1 -1
  168. package/lib/dist-custom-elements/duet-banner.js +10 -14
  169. package/lib/dist-custom-elements/duet-breadcrumb.js +7 -6
  170. package/lib/dist-custom-elements/duet-breadcrumbs.js +7 -3
  171. package/lib/dist-custom-elements/duet-button.js +1 -1
  172. package/lib/dist-custom-elements/duet-callout.js +6 -11
  173. package/lib/dist-custom-elements/duet-caption.js +1 -1
  174. package/lib/dist-custom-elements/duet-card.js +4 -4
  175. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  176. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  177. package/lib/dist-custom-elements/duet-chip.js +35 -4
  178. package/lib/dist-custom-elements/duet-choice-group.js +8 -8
  179. package/lib/dist-custom-elements/duet-choice.js +5 -5
  180. package/lib/dist-custom-elements/duet-collapsible.js +3 -3
  181. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  182. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  183. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  184. package/lib/dist-custom-elements/duet-date-picker.js +12 -12
  185. package/lib/dist-custom-elements/duet-divider.js +1 -1
  186. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  187. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  188. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  189. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  190. package/lib/dist-custom-elements/duet-footer.js +6 -6
  191. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  192. package/lib/dist-custom-elements/duet-grid.js +1 -1
  193. package/lib/dist-custom-elements/duet-header.js +9 -9
  194. package/lib/dist-custom-elements/duet-heading.js +1 -1
  195. package/lib/dist-custom-elements/duet-hero.js +11 -10
  196. package/lib/dist-custom-elements/duet-icon.js +1 -1
  197. package/lib/dist-custom-elements/duet-input.js +1 -1
  198. package/lib/dist-custom-elements/duet-label.js +1 -1
  199. package/lib/dist-custom-elements/duet-layout.js +1 -1
  200. package/lib/dist-custom-elements/duet-link.js +1 -1
  201. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  202. package/lib/dist-custom-elements/duet-list.js +1 -1
  203. package/lib/dist-custom-elements/duet-logo.js +1 -1
  204. package/lib/dist-custom-elements/duet-menu-bar-button.js +3 -3
  205. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  206. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +4 -4
  207. package/lib/dist-custom-elements/duet-menu-bar-link.js +3 -3
  208. package/lib/dist-custom-elements/duet-menu-bar.js +4 -4
  209. package/lib/dist-custom-elements/duet-modal.js +8 -8
  210. package/lib/dist-custom-elements/duet-multiselect.js +9 -9
  211. package/lib/dist-custom-elements/duet-nav.js +1 -1
  212. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  213. package/lib/dist-custom-elements/duet-notification.js +2 -2
  214. package/lib/dist-custom-elements/duet-number-input.js +11 -11
  215. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  216. package/lib/dist-custom-elements/duet-pagination.js +14 -14
  217. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  218. package/lib/dist-custom-elements/duet-popup-menu-item.js +5 -3
  219. package/lib/dist-custom-elements/duet-popup-menu.js +15 -13
  220. package/lib/dist-custom-elements/duet-progress.js +1 -1
  221. package/lib/dist-custom-elements/duet-promo-card.js +17 -7
  222. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  223. package/lib/dist-custom-elements/duet-radio.js +1 -1
  224. package/lib/dist-custom-elements/duet-range-slider.js +3 -3
  225. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  226. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  227. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  228. package/lib/dist-custom-elements/duet-select.js +1 -1
  229. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  230. package/lib/dist-custom-elements/duet-show-more.js +5 -5
  231. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  232. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  233. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  234. package/lib/dist-custom-elements/duet-slideout-panel.js +3 -3
  235. package/lib/dist-custom-elements/duet-slideout.js +38 -53
  236. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  237. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  238. package/lib/dist-custom-elements/duet-step.js +4 -4
  239. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  240. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +4 -4
  241. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +3 -3
  242. package/lib/dist-custom-elements/duet-submenu-bar-link.js +4 -4
  243. package/lib/dist-custom-elements/duet-submenu-bar.js +4 -4
  244. package/lib/dist-custom-elements/duet-tab-group.js +13 -13
  245. package/lib/dist-custom-elements/duet-tab.js +1 -1
  246. package/lib/dist-custom-elements/duet-table.js +1 -1
  247. package/lib/dist-custom-elements/duet-textarea.js +10 -10
  248. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  249. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  250. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +3 -3
  251. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  252. package/lib/dist-custom-elements/duet-toolbar.js +2 -2
  253. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  254. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  255. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  256. package/lib/dist-custom-elements/duet-tray.js +4 -4
  257. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  258. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  259. package/lib/dist-custom-elements/duet-upload.js +18 -18
  260. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  261. package/lib/dist-custom-elements/index.js +1 -1
  262. package/lib/dist-custom-elements/{p-f3d25b08.js → p-02c14895.js} +2 -2
  263. package/lib/dist-custom-elements/{p-6d0197c3.js → p-1361c08f.js} +5 -5
  264. package/lib/dist-custom-elements/{p-9a9a04bd.js → p-21a6a70e.js} +3 -3
  265. package/lib/dist-custom-elements/{p-d10e4492.js → p-3ddc40a1.js} +1 -1
  266. package/lib/dist-custom-elements/{p-66f15eba.js → p-4daba3d3.js} +2 -2
  267. package/lib/dist-custom-elements/{p-475baac7.js → p-53d82662.js} +1 -1
  268. package/lib/dist-custom-elements/{p-9b174e03.js → p-60bba731.js} +2 -2
  269. package/lib/dist-custom-elements/{p-6b977095.js → p-62198405.js} +11 -9
  270. package/lib/dist-custom-elements/{p-4d3e1b52.js → p-62ee9ce2.js} +4 -4
  271. package/lib/dist-custom-elements/{p-4a55dff3.js → p-6f1d95ff.js} +5 -5
  272. package/lib/dist-custom-elements/{p-7bcdcf71.js → p-7765439c.js} +3 -3
  273. package/lib/dist-custom-elements/{p-8735b4db.js → p-7ce0e8cb.js} +2 -2
  274. package/lib/dist-custom-elements/{p-da8acaf1.js → p-7e52554a.js} +2 -2
  275. package/lib/dist-custom-elements/{p-bb1ac896.js → p-8bbf3e55.js} +1 -1
  276. package/lib/dist-custom-elements/{p-471a62cc.js → p-90b6ffe0.js} +1 -1
  277. package/lib/dist-custom-elements/{p-a4605d27.js → p-92471963.js} +6 -6
  278. package/lib/dist-custom-elements/{p-9c2d3a9d.js → p-92d1b647.js} +2 -2
  279. package/lib/dist-custom-elements/{p-d517fc9a.js → p-98996152.js} +10 -10
  280. package/lib/dist-custom-elements/{p-975a4689.js → p-9d8b2fae.js} +2 -2
  281. package/lib/dist-custom-elements/{p-3158e24f.js → p-ac901c78.js} +1 -1
  282. package/lib/dist-custom-elements/{p-4c5751cd.js → p-b9582cd5.js} +1 -1
  283. package/lib/dist-custom-elements/p-bb24a019.js +18 -0
  284. package/lib/dist-custom-elements/{p-254a95d4.js → p-c5aebc44.js} +2 -2
  285. package/lib/dist-custom-elements/{p-3d6047c0.js → p-cf11c857.js} +2 -2
  286. package/lib/dist-custom-elements/{p-7d7291bf.js → p-d19bb914.js} +8 -8
  287. package/lib/dist-custom-elements/{p-2b56c0d7.js → p-d37a3cec.js} +1 -1
  288. package/lib/{esm/tokens-04106a43.js → dist-custom-elements/p-d81ec707.js} +1 -1
  289. package/lib/dist-custom-elements/p-d91f6a50.js +60 -0
  290. package/lib/dist-custom-elements/{p-cab60e87.js → p-def0c88d.js} +1 -1
  291. package/lib/dist-custom-elements/{p-7bb90fcc.js → p-dfd971b5.js} +10 -10
  292. package/lib/dist-custom-elements/{p-b590a133.js → p-eeb33e81.js} +3 -3
  293. package/lib/dist-custom-elements/p-ef876cc5.js +205 -0
  294. package/lib/dist-custom-elements/{p-e078836c.js → p-ef9c200e.js} +1 -1
  295. package/lib/dist-custom-elements/{p-1e82d8a1.js → p-f58b3efe.js} +2 -2
  296. package/lib/dist-custom-elements/{p-0156b860.js → p-fa61d4fa.js} +1 -1
  297. package/lib/dist-custom-elements/{p-fc6bb9ab.js → p-fa713963.js} +2 -2
  298. package/lib/dist-custom-elements/{p-583e21a8.js → p-fb2961bc.js} +2 -2
  299. package/lib/dist-custom-elements/{p-3cc835d7.js → p-fb75af05.js} +1 -1
  300. package/lib/duet/duet.esm.js +1 -1
  301. package/lib/duet/duet.js +1 -1
  302. package/lib/duet/p-00519b3f.entry.js +4 -0
  303. package/lib/duet/p-01bcca95.system.entry.js +4 -0
  304. package/lib/duet/p-03151e84.entry.js +4 -0
  305. package/lib/duet/p-062c3e81.entry.js +4 -0
  306. package/lib/duet/p-0630aa90.system.entry.js +4 -0
  307. package/lib/duet/{p-42b9b16c.system.entry.js → p-06806757.system.entry.js} +1 -1
  308. package/lib/duet/{p-ddc7c96e.system.entry.js → p-0722dab6.system.entry.js} +1 -1
  309. package/lib/duet/p-0db9f9d3.system.entry.js +4 -0
  310. package/lib/duet/{p-15a4a165.system.entry.js → p-0fe8a9ab.system.entry.js} +1 -1
  311. package/lib/duet/{p-f5fee877.entry.js → p-111837dd.entry.js} +1 -1
  312. package/lib/duet/{p-e12b3d60.system.js → p-15fde8cc.system.js} +1 -1
  313. package/lib/duet/{p-f6803f4c.entry.js → p-170a5c9e.entry.js} +1 -1
  314. package/lib/duet/{p-e49e8a54.system.entry.js → p-176660e8.system.entry.js} +1 -1
  315. package/lib/duet/{p-8b1b9953.system.entry.js → p-1824a282.system.entry.js} +1 -1
  316. package/lib/duet/{p-eb790693.entry.js → p-1b63c721.entry.js} +1 -1
  317. package/lib/duet/p-1bca2d80.entry.js +4 -0
  318. package/lib/duet/{p-ca21be58.entry.js → p-1c9be86d.entry.js} +1 -1
  319. package/lib/duet/{p-2f98c466.system.entry.js → p-1fa8902f.system.entry.js} +1 -1
  320. package/lib/duet/{p-3bfdf5dc.system.entry.js → p-21d28d14.system.entry.js} +1 -1
  321. package/lib/duet/{p-c7fdc7dc.system.entry.js → p-21d4584d.system.entry.js} +1 -1
  322. package/lib/duet/{p-9bd338fd.system.js → p-23354cf7.system.js} +1 -1
  323. package/lib/duet/{p-563dfb63.system.entry.js → p-23fa9346.system.entry.js} +1 -1
  324. package/lib/duet/{p-196afde9.system.entry.js → p-242a4d9e.system.entry.js} +1 -1
  325. package/lib/duet/{p-5339aeea.entry.js → p-249b4cfc.entry.js} +1 -1
  326. package/lib/duet/{p-afea9845.entry.js → p-28f9bfa5.entry.js} +1 -1
  327. package/lib/duet/{p-7d9cffe7.system.entry.js → p-291b0ada.system.entry.js} +1 -1
  328. package/lib/duet/{p-eac79871.entry.js → p-299c3869.entry.js} +1 -1
  329. package/lib/duet/p-2d344151.entry.js +4 -0
  330. package/lib/duet/{p-61b870ac.entry.js → p-3108add4.entry.js} +1 -1
  331. package/lib/duet/p-369303cc.entry.js +4 -0
  332. package/lib/duet/{p-576cd780.entry.js → p-373772b4.entry.js} +1 -1
  333. package/lib/duet/{p-4adb4139.entry.js → p-3990d92d.entry.js} +1 -1
  334. package/lib/duet/{p-b8c89970.entry.js → p-3adf25ca.entry.js} +1 -1
  335. package/lib/duet/p-3c394198.entry.js +4 -0
  336. package/lib/duet/p-3e613ecb.system.entry.js +4 -0
  337. package/lib/duet/p-41bf8f79.system.entry.js +4 -0
  338. package/lib/duet/{p-d92ad0d1.system.entry.js → p-45e34e81.system.entry.js} +1 -1
  339. package/lib/duet/{p-94147b17.system.entry.js → p-464c06a5.system.entry.js} +1 -1
  340. package/lib/duet/{p-17373631.entry.js → p-48eaa47f.entry.js} +1 -1
  341. package/lib/duet/{p-6216e282.entry.js → p-4974ac97.entry.js} +1 -1
  342. package/lib/duet/{p-5d023790.system.entry.js → p-4a357ae7.system.entry.js} +1 -1
  343. package/lib/duet/{p-7aff0f7c.entry.js → p-4d7c105a.entry.js} +1 -1
  344. package/lib/duet/{p-330db26d.entry.js → p-4ef9dde8.entry.js} +1 -1
  345. package/lib/duet/{p-65007ed4.system.entry.js → p-4f114158.system.entry.js} +1 -1
  346. package/lib/duet/{p-b2a54e37.entry.js → p-4fd91269.entry.js} +1 -1
  347. package/lib/duet/{p-1fbb9af9.entry.js → p-519053d9.entry.js} +1 -1
  348. package/lib/duet/{p-44ac28ab.entry.js → p-52643881.entry.js} +1 -1
  349. package/lib/duet/{p-bac92652.entry.js → p-551b5f11.entry.js} +1 -1
  350. package/lib/duet/{p-4218b915.system.entry.js → p-5915fe9e.system.entry.js} +1 -1
  351. package/lib/duet/{p-8cfac25d.entry.js → p-59648317.entry.js} +1 -1
  352. package/lib/duet/{p-79f01df6.entry.js → p-5a2a0090.entry.js} +1 -1
  353. package/lib/duet/{p-e9928179.system.entry.js → p-5c7f3468.system.entry.js} +1 -1
  354. package/lib/duet/{p-049d43f7.entry.js → p-5cdab2eb.entry.js} +1 -1
  355. package/lib/duet/{p-33666f2e.entry.js → p-5d5735ef.entry.js} +1 -1
  356. package/lib/duet/{p-639fd377.system.entry.js → p-5d924446.system.entry.js} +1 -1
  357. package/lib/duet/p-5dee116e.system.js +4 -0
  358. package/lib/duet/p-60aecb64.system.entry.js +4 -0
  359. package/lib/duet/{p-18b36a30.entry.js → p-64b33796.entry.js} +1 -1
  360. package/lib/duet/{p-4347cce6.system.entry.js → p-64bb15cb.system.entry.js} +1 -1
  361. package/lib/duet/{p-16b80d3b.js → p-64ea72f4.js} +1 -1
  362. package/lib/duet/p-67717c78.system.entry.js +4 -0
  363. package/lib/duet/{p-2c917cc6.entry.js → p-6aaaf3d3.entry.js} +1 -1
  364. package/lib/duet/{p-abbd8ae3.entry.js → p-6cf47679.entry.js} +1 -1
  365. package/lib/duet/p-6e2a24de.system.entry.js +4 -0
  366. package/lib/duet/{p-0198349d.entry.js → p-6e4a159f.entry.js} +1 -1
  367. package/lib/duet/p-718c8ee1.entry.js +4 -0
  368. package/lib/duet/p-73537a10.entry.js +4 -0
  369. package/lib/duet/{p-154ca6bb.entry.js → p-744d37b4.entry.js} +1 -1
  370. package/lib/duet/{p-757b1ab3.entry.js → p-778a8d70.entry.js} +1 -1
  371. package/lib/duet/p-77d702b7.system.entry.js +4 -0
  372. package/lib/duet/{p-37b3c823.entry.js → p-794089ad.entry.js} +1 -1
  373. package/lib/duet/{p-753f2b28.entry.js → p-794782cd.entry.js} +1 -1
  374. package/lib/duet/{p-d57d7d49.system.entry.js → p-7cb0d9f9.system.entry.js} +1 -1
  375. package/lib/duet/p-7df079f9.system.entry.js +4 -0
  376. package/lib/duet/{p-b9cb8ccb.system.entry.js → p-7f1ffc72.system.entry.js} +1 -1
  377. package/lib/duet/{p-673fdacb.system.entry.js → p-81b98ab3.system.entry.js} +1 -1
  378. package/lib/duet/{p-662da762.js → p-876e256a.js} +1 -1
  379. package/lib/duet/{p-28a033de.system.entry.js → p-89d51951.system.entry.js} +1 -1
  380. package/lib/duet/p-8a4f3512.entry.js +4 -0
  381. package/lib/duet/{p-074fcd6b.system.entry.js → p-8ce26cd2.system.entry.js} +1 -1
  382. package/lib/duet/{p-1498e92a.system.entry.js → p-8d4bc222.system.entry.js} +1 -1
  383. package/lib/duet/{p-610b364b.system.js → p-8ec80833.system.js} +1 -1
  384. package/lib/duet/{p-b2b02430.entry.js → p-8fed0e13.entry.js} +1 -1
  385. package/lib/duet/{p-55e1e8e8.system.entry.js → p-90626a7c.system.entry.js} +1 -1
  386. package/lib/duet/{p-55f3f985.entry.js → p-9072403e.entry.js} +1 -1
  387. package/lib/duet/{p-ceb5b489.system.entry.js → p-91dd51f0.system.entry.js} +1 -1
  388. package/lib/duet/{p-ca0f9f08.system.entry.js → p-94cc7d1b.system.entry.js} +1 -1
  389. package/lib/duet/p-99269e38.system.js +4 -0
  390. package/lib/duet/{p-5f877026.system.entry.js → p-996d0515.system.entry.js} +1 -1
  391. package/lib/duet/p-9bdd5e77.entry.js +4 -0
  392. package/lib/duet/{p-e4efc7ea.system.entry.js → p-9d0c29ad.system.entry.js} +1 -1
  393. package/lib/duet/{p-b012ba6c.entry.js → p-9d17d1e2.entry.js} +1 -1
  394. package/lib/duet/{p-dd7d3b2b.entry.js → p-9dfe770b.entry.js} +1 -1
  395. package/lib/duet/{p-e5c0b71a.js → p-9dff8650.js} +1 -1
  396. package/lib/duet/p-9e0d085e.entry.js +4 -0
  397. package/lib/duet/p-a7936672.system.entry.js +4 -0
  398. package/lib/duet/{p-65b45177.system.entry.js → p-a8559573.system.entry.js} +1 -1
  399. package/lib/duet/{p-23548d24.entry.js → p-a8eba5d8.entry.js} +1 -1
  400. package/lib/duet/{p-75eb9381.system.entry.js → p-a9a76005.system.entry.js} +1 -1
  401. package/lib/duet/{p-2e037205.system.entry.js → p-aa72c276.system.entry.js} +1 -1
  402. package/lib/duet/{p-cea2cb32.entry.js → p-aa752b66.entry.js} +1 -1
  403. package/lib/duet/{p-0081d434.system.entry.js → p-aab68cd0.system.entry.js} +1 -1
  404. package/lib/duet/{p-3f23694f.entry.js → p-aaf90349.entry.js} +1 -1
  405. package/lib/duet/{p-965f292c.system.entry.js → p-aafc24b8.system.entry.js} +1 -1
  406. package/lib/duet/{p-d585ac25.entry.js → p-ab2b432f.entry.js} +1 -1
  407. package/lib/duet/{p-f7f16a52.entry.js → p-ad80b81c.entry.js} +1 -1
  408. package/lib/duet/{p-0ec40046.entry.js → p-aeb8e304.entry.js} +1 -1
  409. package/lib/duet/{p-ce88ecc6.entry.js → p-afa204da.entry.js} +1 -1
  410. package/lib/duet/{p-1e67f010.system.entry.js → p-b0810e57.system.entry.js} +1 -1
  411. package/lib/duet/{p-930f8fe7.system.entry.js → p-b26b5e62.system.entry.js} +1 -1
  412. package/lib/duet/{p-bf2fd03b.entry.js → p-b283d96a.entry.js} +1 -1
  413. package/lib/duet/{p-a70815fa.system.entry.js → p-b612619b.system.entry.js} +1 -1
  414. package/lib/duet/p-bb24a019.js +4 -0
  415. package/lib/duet/{p-9f29048f.entry.js → p-bbebfd1d.entry.js} +1 -1
  416. package/lib/duet/{p-70dd63d2.entry.js → p-bc51e56f.entry.js} +1 -1
  417. package/lib/duet/{p-fdb9f8df.system.entry.js → p-bd0bd000.system.entry.js} +1 -1
  418. package/lib/duet/{p-c8c9fc58.system.entry.js → p-bd4ae595.system.entry.js} +1 -1
  419. package/lib/duet/{p-b0fd435f.system.entry.js → p-c00ee143.system.entry.js} +1 -1
  420. package/lib/duet/{p-b710add2.system.entry.js → p-c0b9535b.system.entry.js} +1 -1
  421. package/lib/duet/{p-174f2859.entry.js → p-c35fd74a.entry.js} +1 -1
  422. package/lib/duet/{p-bb35b92e.system.entry.js → p-c564ed20.system.entry.js} +1 -1
  423. package/lib/duet/{p-10f289cb.entry.js → p-c8995aac.entry.js} +1 -1
  424. package/lib/duet/{p-5b528cd1.system.entry.js → p-c8f93bef.system.entry.js} +1 -1
  425. package/lib/duet/{p-7fb66081.system.entry.js → p-ca0b364e.system.entry.js} +1 -1
  426. package/lib/duet/{p-0440798d.entry.js → p-ca4a28ae.entry.js} +1 -1
  427. package/lib/duet/p-cab83f17.entry.js +4 -0
  428. package/lib/duet/{p-d852ae7e.system.entry.js → p-cb139257.system.entry.js} +1 -1
  429. package/lib/duet/{p-e2a0e33f.system.entry.js → p-cc73b676.system.entry.js} +1 -1
  430. package/lib/duet/{p-8be10d34.entry.js → p-cdabe32b.entry.js} +1 -1
  431. package/lib/duet/p-ce215826.system.js +4 -0
  432. package/lib/duet/p-ce25c1c7.entry.js +4 -0
  433. package/lib/duet/{p-b89fe252.entry.js → p-ceef02de.entry.js} +1 -1
  434. package/lib/duet/{p-b2996b8c.system.entry.js → p-d2b39891.system.entry.js} +1 -1
  435. package/lib/duet/{p-9b62ef83.entry.js → p-d491fdf1.entry.js} +1 -1
  436. package/lib/duet/{p-54cf9288.system.entry.js → p-d4948057.system.entry.js} +1 -1
  437. package/lib/duet/{p-0777ebba.entry.js → p-d5d42770.entry.js} +1 -1
  438. package/lib/duet/{p-5e849463.js → p-d81ec707.js} +1 -1
  439. package/lib/duet/{p-c481631f.system.entry.js → p-d8d7858c.system.entry.js} +1 -1
  440. package/lib/duet/{p-71bd1c3c.entry.js → p-d9ffac40.entry.js} +1 -1
  441. package/lib/duet/p-e171d23b.entry.js +4 -0
  442. package/lib/duet/{p-21774475.system.js → p-e1868c94.system.js} +1 -1
  443. package/lib/duet/{p-2abdfdf5.entry.js → p-e19b5fc8.entry.js} +1 -1
  444. package/lib/duet/p-e1d67353.system.entry.js +4 -0
  445. package/lib/duet/{p-9514ee57.system.entry.js → p-e34b15a6.system.entry.js} +1 -1
  446. package/lib/duet/{p-7ac648a3.system.entry.js → p-e486de80.system.entry.js} +1 -1
  447. package/lib/duet/{p-1fec3835.system.entry.js → p-e4fed586.system.entry.js} +1 -1
  448. package/lib/duet/{p-67d8175e.system.entry.js → p-e8fdc3d1.system.entry.js} +1 -1
  449. package/lib/duet/{p-d350968c.system.entry.js → p-ec831316.system.entry.js} +2 -2
  450. package/lib/duet/{p-cf1e1237.system.entry.js → p-ed0a66cb.system.entry.js} +1 -1
  451. package/lib/duet/p-ee38290b.entry.js +4 -0
  452. package/lib/duet/{p-c0483523.system.entry.js → p-ef1e2a76.system.entry.js} +1 -1
  453. package/lib/duet/{p-5908bf36.entry.js → p-f16eb916.entry.js} +1 -1
  454. package/lib/duet/{p-d832433b.system.entry.js → p-f203d34a.system.entry.js} +1 -1
  455. package/lib/duet/{p-0c5ed102.entry.js → p-f2946931.entry.js} +1 -1
  456. package/lib/duet/{p-b9157c7e.js → p-f2aa1623.js} +1 -1
  457. package/lib/duet/{p-de41a03b.entry.js → p-f3a6b182.entry.js} +1 -1
  458. package/lib/duet/{p-780dd22d.entry.js → p-f3cbbc74.entry.js} +1 -1
  459. package/lib/duet/p-f3fe9cd3.system.entry.js +4 -0
  460. package/lib/duet/{p-7dcdefb0.system.entry.js → p-f55b70ae.system.entry.js} +1 -1
  461. package/lib/duet/{p-932be5dd.system.entry.js → p-f59d22b9.system.entry.js} +1 -1
  462. package/lib/duet/{p-e36f923b.entry.js → p-f61f51f8.entry.js} +1 -1
  463. package/lib/duet/{p-f9b3965d.system.entry.js → p-f75db096.system.entry.js} +1 -1
  464. package/lib/duet/{p-a75b2646.system.entry.js → p-f7a1f763.system.entry.js} +1 -1
  465. package/lib/duet/{p-a34e7225.entry.js → p-f9c7c607.entry.js} +1 -1
  466. package/lib/duet/{p-ebd1b7ae.system.entry.js → p-faffedeb.system.entry.js} +1 -1
  467. package/lib/duet/p-fb4a0c88.system.entry.js +4 -0
  468. package/lib/duet/{p-39a3beb3.entry.js → p-fdb8dfcc.entry.js} +1 -1
  469. package/lib/esm/duet-action-button.entry.js +3 -3
  470. package/lib/esm/duet-alert.entry.js +1 -1
  471. package/lib/esm/duet-badge.entry.js +3 -3
  472. package/lib/esm/duet-banner.entry.js +7 -5
  473. package/lib/esm/duet-breadcrumb.entry.js +5 -4
  474. package/lib/esm/duet-breadcrumbs.entry.js +7 -3
  475. package/lib/esm/duet-button_2.entry.js +9 -7
  476. package/lib/esm/duet-callout.entry.js +4 -3
  477. package/lib/esm/duet-caption_4.entry.js +3 -3
  478. package/lib/esm/duet-card.entry.js +3 -3
  479. package/lib/esm/duet-checkbox.entry.js +1 -1
  480. package/lib/esm/duet-checkmark.entry.js +1 -1
  481. package/lib/esm/duet-chip.entry.js +31 -3
  482. package/lib/esm/duet-choice_2.entry.js +2 -2
  483. package/lib/esm/duet-collapsible.entry.js +2 -2
  484. package/lib/esm/duet-combobox.entry.js +1 -1
  485. package/lib/esm/duet-contact-card.entry.js +1 -1
  486. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  487. package/lib/esm/duet-date-picker.entry.js +2 -2
  488. package/lib/esm/duet-divider_2.entry.js +3 -3
  489. package/lib/esm/duet-editable-table_3.entry.js +3 -3
  490. package/lib/esm/duet-empty-state.entry.js +1 -1
  491. package/lib/esm/duet-fieldset.entry.js +1 -1
  492. package/lib/esm/duet-file-chooser.entry.js +1 -1
  493. package/lib/esm/duet-footer.entry.js +3 -3
  494. package/lib/esm/duet-grid_2.entry.js +2 -2
  495. package/lib/esm/duet-header_2.entry.js +3 -3
  496. package/lib/esm/duet-hero.entry.js +3 -2
  497. package/lib/esm/duet-icon.entry.js +5 -5
  498. package/lib/esm/duet-input_2.entry.js +3 -3
  499. package/lib/esm/duet-layout.entry.js +1 -1
  500. package/lib/esm/duet-list_2.entry.js +1 -1
  501. package/lib/esm/duet-menu-bar-button.entry.js +2 -2
  502. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  503. package/lib/esm/duet-menu-bar-dropdown.entry.js +3 -3
  504. package/lib/esm/duet-menu-bar-link.entry.js +2 -2
  505. package/lib/esm/duet-menu-bar.entry.js +3 -3
  506. package/lib/esm/duet-modal.entry.js +3 -3
  507. package/lib/esm/duet-multiselect.entry.js +1 -1
  508. package/lib/esm/duet-nav.entry.js +1 -1
  509. package/lib/esm/duet-notification_2.entry.js +1 -1
  510. package/lib/esm/duet-number-input.entry.js +1 -1
  511. package/lib/esm/duet-page-heading.entry.js +1 -1
  512. package/lib/esm/duet-pagination_2.entry.js +3 -3
  513. package/lib/esm/duet-popup-menu-item.entry.js +3 -2
  514. package/lib/esm/duet-popup-menu.entry.js +14 -13
  515. package/lib/esm/duet-progress.entry.js +1 -1
  516. package/lib/esm/duet-promo-card.entry.js +14 -5
  517. package/lib/esm/duet-radio_2.entry.js +1 -1
  518. package/lib/esm/duet-range-slider.entry.js +2 -2
  519. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  520. package/lib/esm/duet-section-layout.entry.js +1 -1
  521. package/lib/esm/duet-select.entry.js +1 -1
  522. package/lib/esm/duet-shaped-image.entry.js +1 -1
  523. package/lib/esm/duet-show-more.entry.js +1 -1
  524. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  525. package/lib/esm/duet-slideout-link.entry.js +1 -1
  526. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  527. package/lib/esm/duet-slideout-panel.entry.js +4 -4
  528. package/lib/esm/duet-slideout.entry.js +36 -53
  529. package/lib/esm/duet-step_2.entry.js +1 -1
  530. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +3 -3
  531. package/lib/esm/duet-submenu-bar-dropdown.entry.js +2 -2
  532. package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
  533. package/lib/esm/duet-submenu-bar.entry.js +3 -3
  534. package/lib/esm/duet-textarea.entry.js +1 -1
  535. package/lib/esm/duet-toggle.entry.js +1 -1
  536. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  537. package/lib/esm/duet-toolbar-dropdown.entry.js +2 -2
  538. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  539. package/lib/esm/duet-toolbar.entry.js +2 -2
  540. package/lib/esm/duet-tooltip-button_2.entry.js +2 -2
  541. package/lib/esm/duet-tooltip.entry.js +2 -2
  542. package/lib/esm/duet-tray.entry.js +2 -2
  543. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  544. package/lib/esm/duet-upload-item.entry.js +1 -1
  545. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  546. package/lib/esm/duet.js +3 -3
  547. package/lib/esm/{focus-utils-2a29f64e.js → focus-utils-447570ba.js} +1 -1
  548. package/lib/esm/{index-909a963e.js → index-bb1fb3bf.js} +1 -1
  549. package/lib/esm/loader.js +3 -3
  550. package/lib/esm/slot-utils-07ba4363.js +18 -0
  551. package/lib/esm/{token-utils-ece867a8.js → token-utils-d09165bc.js} +1 -1
  552. package/lib/{dist-custom-elements/p-5e849463.js → esm/tokens-30d01e1d.js} +1 -1
  553. package/lib/esm/{tokens.module-7a2f9c49.js → tokens.module-c9866649.js} +1 -1
  554. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  555. package/lib/esm-es5/duet-alert.entry.js +1 -1
  556. package/lib/esm-es5/duet-badge.entry.js +1 -1
  557. package/lib/esm-es5/duet-banner.entry.js +1 -1
  558. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  559. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  560. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  561. package/lib/esm-es5/duet-callout.entry.js +1 -1
  562. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  563. package/lib/esm-es5/duet-card.entry.js +1 -1
  564. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  565. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  566. package/lib/esm-es5/duet-chip.entry.js +2 -2
  567. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  568. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  569. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  570. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  571. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  572. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  573. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  574. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  575. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  576. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  577. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  578. package/lib/esm-es5/duet-footer.entry.js +1 -1
  579. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  580. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  581. package/lib/esm-es5/duet-hero.entry.js +2 -2
  582. package/lib/esm-es5/duet-icon.entry.js +1 -1
  583. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  584. package/lib/esm-es5/duet-layout.entry.js +1 -1
  585. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  586. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  587. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  588. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  589. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  590. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  591. package/lib/esm-es5/duet-modal.entry.js +1 -1
  592. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  593. package/lib/esm-es5/duet-nav.entry.js +1 -1
  594. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  595. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  596. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  597. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  598. package/lib/esm-es5/duet-popup-menu-item.entry.js +1 -1
  599. package/lib/esm-es5/duet-popup-menu.entry.js +2 -2
  600. package/lib/esm-es5/duet-progress.entry.js +1 -1
  601. package/lib/esm-es5/duet-promo-card.entry.js +2 -2
  602. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  603. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  604. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  605. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  606. package/lib/esm-es5/duet-select.entry.js +1 -1
  607. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  608. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  609. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  610. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  611. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  612. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  613. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  614. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  615. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  616. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  617. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  618. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  619. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  620. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  621. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  622. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  623. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  624. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  625. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  626. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  627. package/lib/esm-es5/duet-tray.entry.js +1 -1
  628. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  629. package/lib/esm-es5/duet-upload-item.entry.js +1 -1
  630. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  631. package/lib/esm-es5/duet.js +1 -1
  632. package/lib/esm-es5/focus-utils-447570ba.js +4 -0
  633. package/lib/esm-es5/{index-909a963e.js → index-bb1fb3bf.js} +1 -1
  634. package/lib/esm-es5/loader.js +1 -1
  635. package/lib/esm-es5/slot-utils-07ba4363.js +4 -0
  636. package/lib/esm-es5/{token-utils-ece867a8.js → token-utils-d09165bc.js} +1 -1
  637. package/lib/esm-es5/{tokens-04106a43.js → tokens-30d01e1d.js} +1 -1
  638. package/lib/esm-es5/{tokens.module-7a2f9c49.js → tokens.module-c9866649.js} +1 -1
  639. package/lib/types/components/duet-banner/duet-banner.d.ts +5 -0
  640. package/lib/types/components/duet-breadcrumbs/duet-breadcrumbs.d.ts +7 -2
  641. package/lib/types/components/duet-callout/duet-callout.d.ts +1 -1
  642. package/lib/types/components/duet-chip/duet-chip.d.ts +19 -1
  643. package/lib/types/components/duet-hero/duet-hero.d.ts +3 -3
  644. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +7 -3
  645. package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +4 -0
  646. package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +11 -0
  647. package/lib/types/components/duet-slideout/duet-slideout.d.ts +1 -3
  648. package/lib/types/components.d.ts +60 -6
  649. package/lib/types/utils/slot-utils.d.ts +2 -0
  650. package/package.json +7 -7
  651. package/lib/dist-custom-elements/p-1c7bd169.js +0 -60
  652. package/lib/dist-custom-elements/p-c493eecb.js +0 -205
  653. package/lib/duet/p-031b59ba.system.entry.js +0 -4
  654. package/lib/duet/p-05f62501.entry.js +0 -4
  655. package/lib/duet/p-12f3d121.system.entry.js +0 -4
  656. package/lib/duet/p-207544a2.entry.js +0 -4
  657. package/lib/duet/p-25109b90.system.entry.js +0 -4
  658. package/lib/duet/p-3bda5078.system.entry.js +0 -4
  659. package/lib/duet/p-3fb7b966.entry.js +0 -4
  660. package/lib/duet/p-50a679f4.entry.js +0 -4
  661. package/lib/duet/p-50dbbb82.system.entry.js +0 -4
  662. package/lib/duet/p-6f806923.system.js +0 -4
  663. package/lib/duet/p-73c27f4f.entry.js +0 -4
  664. package/lib/duet/p-762c0edb.system.entry.js +0 -4
  665. package/lib/duet/p-7bdbb023.entry.js +0 -4
  666. package/lib/duet/p-844e7c4c.entry.js +0 -4
  667. package/lib/duet/p-8a264125.system.entry.js +0 -4
  668. package/lib/duet/p-a22130db.entry.js +0 -4
  669. package/lib/duet/p-aab21f91.entry.js +0 -4
  670. package/lib/duet/p-acfdeb70.entry.js +0 -4
  671. package/lib/duet/p-ae30e4ce.entry.js +0 -4
  672. package/lib/duet/p-b0dfe576.system.entry.js +0 -4
  673. package/lib/duet/p-b0fa4550.system.js +0 -4
  674. package/lib/duet/p-b9ea34d3.system.entry.js +0 -4
  675. package/lib/duet/p-cca98ade.entry.js +0 -4
  676. package/lib/duet/p-ce879ecd.system.entry.js +0 -4
  677. package/lib/duet/p-d038c90c.system.entry.js +0 -4
  678. package/lib/duet/p-d3141c64.entry.js +0 -4
  679. package/lib/duet/p-d54396be.system.entry.js +0 -4
  680. package/lib/duet/p-dd5b17d0.system.entry.js +0 -4
  681. package/lib/duet/p-e91cced0.entry.js +0 -4
  682. package/lib/duet/p-ee815760.system.entry.js +0 -4
  683. package/lib/duet/p-f1f7ee14.entry.js +0 -4
  684. package/lib/duet/p-f715214a.entry.js +0 -4
  685. package/lib/esm-es5/focus-utils-2a29f64e.js +0 -4
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter } from "../../stencil-public-runtime";
2
+ import { FocusableComponent, OpenerComponent } from "../../common";
2
3
  import { DuetTheme } from "../../common-types";
3
4
  import { ThemeableComponent } from "../../common/themeable-component";
4
5
  export type DuetPopupMenuEvent = {
@@ -7,6 +8,7 @@ export type DuetPopupMenuEvent = {
7
8
  };
8
9
  export declare class DuetPopupMenu implements ThemeableComponent {
9
10
  private teleport;
11
+ private menuElement;
10
12
  /**
11
13
  * Reference to host HTML element.
12
14
  */
@@ -19,6 +21,10 @@ export declare class DuetPopupMenu implements ThemeableComponent {
19
21
  * A popup menu should always have an accessible label that describes the popup's function.
20
22
  */
21
23
  accessibleLabel: string;
24
+ /**
25
+ * Accessible role.
26
+ */
27
+ accessibleRole: "menu" | "list";
22
28
  /**
23
29
  * Theme.
24
30
  */
@@ -26,9 +32,7 @@ export declare class DuetPopupMenu implements ThemeableComponent {
26
32
  /**
27
33
  * Element controlling the opening and closing of the popup menu.
28
34
  */
29
- controller: HTMLElement | (HTMLElement & {
30
- setFocus(): void;
31
- });
35
+ controller: HTMLElement & FocusableComponent & OpenerComponent;
32
36
  /**
33
37
  * Placement of the popup menu relative to its controller.
34
38
  * Possible values: "top", "bottom", "left" and "right", optionally combined with "-start" or "-end".
@@ -19,6 +19,10 @@ export declare class DuetPopupMenuItem implements ThemeableComponent {
19
19
  * users who use assistive technology.
20
20
  */
21
21
  accessibleLabel: string;
22
+ /**
23
+ * Accessible role.
24
+ */
25
+ accessibleRole: "menuitem" | "listitem";
22
26
  /**
23
27
  * Theme.
24
28
  */
@@ -1,6 +1,13 @@
1
1
  import { DuetColor, DuetHeadingLevel, DuetMargin, DuetTheme } from "../../common-types";
2
2
  import { ThemeableComponent } from "../../common/themeable-component";
3
+ /**
4
+ * @slot pre-heading - Slot for pre-heading content.
5
+ * @slot heading - Slot for heading content. Only span should be used in this slot.
6
+ * @slot description - Slot for description content. Only span should be used in this slot.
7
+ * @slot action - Slot for action button.
8
+ */
3
9
  export declare class DuetPromoCard implements ThemeableComponent {
10
+ private aOrDivElement;
4
11
  private hasPreHeadingSlot;
5
12
  private hasHeadingSlot;
6
13
  private hasDescriptionSlot;
@@ -38,6 +45,10 @@ export declare class DuetPromoCard implements ThemeableComponent {
38
45
  * Component lifecycle events.
39
46
  */
40
47
  componentWillLoad(): void;
48
+ /**
49
+ * Sets focus on underlying a element when url attribute is used.
50
+ */
51
+ setFocus(options?: FocusOptions): Promise<void>;
41
52
  /**
42
53
  * render() function
43
54
  * Always the last one of the class.
@@ -22,7 +22,6 @@ export declare class DuetSlideout implements ThemeableComponent {
22
22
  private exitLangObject;
23
23
  private topLevelOpenMenuBarLangObject;
24
24
  private isSafariBrowser;
25
- private intersectionObserver;
26
25
  private mutationObserver;
27
26
  private teleport;
28
27
  private hasStickyHeaderSlot;
@@ -64,9 +63,8 @@ export declare class DuetSlideout implements ThemeableComponent {
64
63
  */
65
64
  componentWillLoad(): void;
66
65
  connectedCallback(): void;
67
- componentDidRender(): void;
68
66
  disconnectedCallback(): void;
69
- private handleBodyScrolling;
67
+ handleOpenChange(): void;
70
68
  private setOpenButton;
71
69
  private openButtonEventListener;
72
70
  private getOpenPanel;
@@ -15,7 +15,7 @@ import { DuetCaptionSize } from "./components/duet-caption/duet-caption";
15
15
  import { DuetCardPadding, DuetCardToggleEvent, DuetCardVariation } from "./components/duet-card/duet-card";
16
16
  import { DuetBreakpoints } from "./utils/token-utils";
17
17
  import { DuetCheckboxEvent } from "./components/duet-checkbox/duet-checkbox";
18
- import { DuetChipEvent, DuetChipVariation } from "./components/duet-chip/duet-chip";
18
+ import { DuetChipEvent, DuetChipSize, DuetChipVariation } from "./components/duet-chip/duet-chip";
19
19
  import { DuetChoiceEvent } from "./components/duet-choice/duet-choice";
20
20
  import { DuetCollapsibleHeadingFontSize, DuetCollapsibleToggleEvent, DuetCollapsibleWeight } from "./components/duet-collapsible/duet-collapsible";
21
21
  import { DuetComboboxEvent, DuetComboboxItem } from "./components/duet-combobox/duet-combobox";
@@ -42,6 +42,7 @@ import { DuetNotificationDrawerDirection } from "./components/duet-notification-
42
42
  import { DuetNumberInputEvent } from "./components/duet-number-input/duet-number-input";
43
43
  import { DuetPaginationPageEvent, DuetPaginationVariation } from "./components/duet-pagination/duet-pagination";
44
44
  import { DuetParagraphSize, DuetParagraphVariation, DuetParagraphWeight } from "./components/duet-paragraph/duet-paragraph";
45
+ import { FocusableComponent, OpenerComponent } from "./common";
45
46
  import { DuetPopupMenuEvent } from "./components/duet-popup-menu/duet-popup-menu";
46
47
  import { DuetPopupMenuItemEvent } from "./components/duet-popup-menu-item/duet-popup-menu-item";
47
48
  import { DuetRadioEvent } from "./components/duet-radio/duet-radio";
@@ -74,7 +75,7 @@ export { DuetCaptionSize } from "./components/duet-caption/duet-caption";
74
75
  export { DuetCardPadding, DuetCardToggleEvent, DuetCardVariation } from "./components/duet-card/duet-card";
75
76
  export { DuetBreakpoints } from "./utils/token-utils";
76
77
  export { DuetCheckboxEvent } from "./components/duet-checkbox/duet-checkbox";
77
- export { DuetChipEvent, DuetChipVariation } from "./components/duet-chip/duet-chip";
78
+ export { DuetChipEvent, DuetChipSize, DuetChipVariation } from "./components/duet-chip/duet-chip";
78
79
  export { DuetChoiceEvent } from "./components/duet-choice/duet-choice";
79
80
  export { DuetCollapsibleHeadingFontSize, DuetCollapsibleToggleEvent, DuetCollapsibleWeight } from "./components/duet-collapsible/duet-collapsible";
80
81
  export { DuetComboboxEvent, DuetComboboxItem } from "./components/duet-combobox/duet-combobox";
@@ -101,6 +102,7 @@ export { DuetNotificationDrawerDirection } from "./components/duet-notification-
101
102
  export { DuetNumberInputEvent } from "./components/duet-number-input/duet-number-input";
102
103
  export { DuetPaginationPageEvent, DuetPaginationVariation } from "./components/duet-pagination/duet-pagination";
103
104
  export { DuetParagraphSize, DuetParagraphVariation, DuetParagraphWeight } from "./components/duet-paragraph/duet-paragraph";
105
+ export { FocusableComponent, OpenerComponent } from "./common";
104
106
  export { DuetPopupMenuEvent } from "./components/duet-popup-menu/duet-popup-menu";
105
107
  export { DuetPopupMenuItemEvent } from "./components/duet-popup-menu-item/duet-popup-menu-item";
106
108
  export { DuetRadioEvent } from "./components/duet-radio/duet-radio";
@@ -354,6 +356,10 @@ export namespace Components {
354
356
  "theme": DuetTheme;
355
357
  }
356
358
  interface DuetBreadcrumbs {
359
+ /**
360
+ * Custom color to be used for text, as a design token entered in camelCase or kebab-case. Example: "color-primary".
361
+ */
362
+ "color": DuetColor;
357
363
  /**
358
364
  * Theme
359
365
  */
@@ -361,7 +367,7 @@ export namespace Components {
361
367
  /**
362
368
  * Variation
363
369
  */
364
- "variation": "header" | "footer";
370
+ "variation": "header" | "footer" | "plain";
365
371
  }
366
372
  interface DuetButton {
367
373
  /**
@@ -739,10 +745,18 @@ export namespace Components {
739
745
  "type": DuetChoiceType;
740
746
  }
741
747
  interface DuetChip {
748
+ /**
749
+ * If the component expands or collapses adjacent content, then use this property to add the aria-expanded attribute to the opening element. Set the value to convey the current expanded (true) or collapsed (false) state of the content.
750
+ */
751
+ "accessibleExpanded": boolean;
742
752
  /**
743
753
  * Adds accessible label for the chip that is only shown for screen readers. Typically, this label text replaces the visible text on the button for users who use assistive technology.
744
754
  */
745
755
  "accessibleLabel": string;
756
+ /**
757
+ * Use this property to add an aria-haspopup attribute.
758
+ */
759
+ "accessiblePopup": string;
746
760
  /**
747
761
  * Checked state of the filter chip.
748
762
  */
@@ -771,6 +785,10 @@ export namespace Components {
771
785
  * Sets focus. Use this method instead of the global focus().
772
786
  */
773
787
  "setFocus": (options?: FocusOptions) => Promise<void>;
788
+ /**
789
+ * Size of the chip. Use "large" for a chip that has the same height as default duet-input and duet-button.
790
+ */
791
+ "size": DuetChipSize;
774
792
  /**
775
793
  * Theme of the button.
776
794
  */
@@ -2869,10 +2887,14 @@ export namespace Components {
2869
2887
  * Adds accessible label for the menu that is only presented for users of assistive technologies. A popup menu should always have an accessible label that describes the popup's function.
2870
2888
  */
2871
2889
  "accessibleLabel": string;
2890
+ /**
2891
+ * Accessible role.
2892
+ */
2893
+ "accessibleRole": "menu" | "list";
2872
2894
  /**
2873
2895
  * Element controlling the opening and closing of the popup menu.
2874
2896
  */
2875
- "controller": HTMLElement | (HTMLElement & { setFocus(): void });
2897
+ "controller": HTMLElement & FocusableComponent & OpenerComponent;
2876
2898
  /**
2877
2899
  * Cross axis positioning offset of the popup menu relative to its controller. For "top" and "bottom" placements cross axis is horizontal, for "left" and "right" vertical.
2878
2900
  */
@@ -2926,6 +2948,10 @@ export namespace Components {
2926
2948
  * Adds accessible label for the button or link that is only shown for screen readers. Typically, this label text replaces the visible text on the button for users who use assistive technology.
2927
2949
  */
2928
2950
  "accessibleLabel": string;
2951
+ /**
2952
+ * Accessible role.
2953
+ */
2954
+ "accessibleRole": "menuitem" | "listitem";
2929
2955
  /**
2930
2956
  * Is the item currently active (e.g. selected)
2931
2957
  */
@@ -3035,6 +3061,10 @@ export namespace Components {
3035
3061
  * Controls the margin of the component.
3036
3062
  */
3037
3063
  "margin": DuetMargin;
3064
+ /**
3065
+ * Sets focus on underlying a element when url attribute is used.
3066
+ */
3067
+ "setFocus": (options?: FocusOptions) => Promise<void>;
3038
3068
  /**
3039
3069
  * Text color.
3040
3070
  */
@@ -6264,6 +6294,10 @@ declare namespace LocalJSX {
6264
6294
  "theme"?: DuetTheme;
6265
6295
  }
6266
6296
  interface DuetBreadcrumbs {
6297
+ /**
6298
+ * Custom color to be used for text, as a design token entered in camelCase or kebab-case. Example: "color-primary".
6299
+ */
6300
+ "color"?: DuetColor;
6267
6301
  /**
6268
6302
  * Theme
6269
6303
  */
@@ -6271,7 +6305,7 @@ declare namespace LocalJSX {
6271
6305
  /**
6272
6306
  * Variation
6273
6307
  */
6274
- "variation"?: "header" | "footer";
6308
+ "variation"?: "header" | "footer" | "plain";
6275
6309
  }
6276
6310
  interface DuetButton {
6277
6311
  /**
@@ -6661,10 +6695,18 @@ declare namespace LocalJSX {
6661
6695
  "type"?: DuetChoiceType;
6662
6696
  }
6663
6697
  interface DuetChip {
6698
+ /**
6699
+ * If the component expands or collapses adjacent content, then use this property to add the aria-expanded attribute to the opening element. Set the value to convey the current expanded (true) or collapsed (false) state of the content.
6700
+ */
6701
+ "accessibleExpanded"?: boolean;
6664
6702
  /**
6665
6703
  * Adds accessible label for the chip that is only shown for screen readers. Typically, this label text replaces the visible text on the button for users who use assistive technology.
6666
6704
  */
6667
6705
  "accessibleLabel"?: string;
6706
+ /**
6707
+ * Use this property to add an aria-haspopup attribute.
6708
+ */
6709
+ "accessiblePopup"?: string;
6668
6710
  /**
6669
6711
  * Checked state of the filter chip.
6670
6712
  */
@@ -6701,6 +6743,10 @@ declare namespace LocalJSX {
6701
6743
  * Id of the DuetPopupMenu that is controlled by the chip.
6702
6744
  */
6703
6745
  "popup"?: string;
6746
+ /**
6747
+ * Size of the chip. Use "large" for a chip that has the same height as default duet-input and duet-button.
6748
+ */
6749
+ "size"?: DuetChipSize;
6704
6750
  /**
6705
6751
  * Theme of the button.
6706
6752
  */
@@ -8884,10 +8930,14 @@ declare namespace LocalJSX {
8884
8930
  * Adds accessible label for the menu that is only presented for users of assistive technologies. A popup menu should always have an accessible label that describes the popup's function.
8885
8931
  */
8886
8932
  "accessibleLabel"?: string;
8933
+ /**
8934
+ * Accessible role.
8935
+ */
8936
+ "accessibleRole"?: "menu" | "list";
8887
8937
  /**
8888
8938
  * Element controlling the opening and closing of the popup menu.
8889
8939
  */
8890
- "controller"?: HTMLElement | (HTMLElement & { setFocus(): void });
8940
+ "controller"?: HTMLElement & FocusableComponent & OpenerComponent;
8891
8941
  /**
8892
8942
  * Cross axis positioning offset of the popup menu relative to its controller. For "top" and "bottom" placements cross axis is horizontal, for "left" and "right" vertical.
8893
8943
  */
@@ -8929,6 +8979,10 @@ declare namespace LocalJSX {
8929
8979
  * Adds accessible label for the button or link that is only shown for screen readers. Typically, this label text replaces the visible text on the button for users who use assistive technology.
8930
8980
  */
8931
8981
  "accessibleLabel"?: string;
8982
+ /**
8983
+ * Accessible role.
8984
+ */
8985
+ "accessibleRole"?: "menuitem" | "listitem";
8932
8986
  /**
8933
8987
  * Is the item currently active (e.g. selected)
8934
8988
  */
@@ -0,0 +1,2 @@
1
+ import { ComponentInterface } from "../stencil-public-runtime";
2
+ export declare const slotElementCheck: (evt: Event, component: ComponentInterface, requiredTagName: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duetds/components",
3
- "version": "8.1.5",
3
+ "version": "8.2.1",
4
4
  "description": "This package includes Duet Design System Web Components and related utilities.",
5
5
  "bugs": {
6
6
  "email": "duetdesignsystem@lahitapiola.fi"
@@ -35,7 +35,7 @@
35
35
  "prepare-vizdif": "node -e 'require(\"./prepare-vizdif\").prepare()'",
36
36
  "clear-vizdif": "node -e 'require(\"./prepare-vizdif\").clear()'",
37
37
  "test:percy": "run-s -c build prepare-vizdif koa:test percy-snapshot koa:kill clear-vizdif",
38
- "percy-snapshot": "npx percy snapshot ./percy.js",
38
+ "percy-snapshot": "percy snapshot ./percy.js",
39
39
  "version": "npm run build"
40
40
  },
41
41
  "dependencies": {
@@ -43,10 +43,10 @@
43
43
  "body-scroll-lock": "3.1.5"
44
44
  },
45
45
  "devDependencies": {
46
- "@duetds/fonts": "3.0.30",
47
- "@duetds/icons": "4.0.30",
48
- "@duetds/tokens": "4.0.30",
49
- "@percy/cli": "1.21.0",
46
+ "@duetds/fonts": "3.0.32",
47
+ "@duetds/icons": "4.0.32",
48
+ "@duetds/tokens": "4.0.32",
49
+ "@percy/cli": "1.28.1",
50
50
  "@rollup/plugin-replace": "5.0.2",
51
51
  "@stencil/core": "4.10.0",
52
52
  "@stencil/sass": "3.0.0",
@@ -74,5 +74,5 @@
74
74
  "collection": "lib/collection/collection-manifest.json",
75
75
  "es2015": "lib/esm/index.js",
76
76
  "es2017": "lib/esm/index.js",
77
- "gitHead": "c4c0184521cbc873431e45bbb825549433724fb0"
77
+ "gitHead": "e5b66a764aad7dbf49b29c289a07c262ce1d61f9"
78
78
  }
@@ -1,60 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import { p as proxyCustomElement, H, h, d as Host } from './p-471a62cc.js';
5
- import { i as inheritGlobalTheme } from './p-a58bd561.js';
6
-
7
- const duetBadgeCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:4px !important;margin-bottom:2px !important;display:inline-block;width:auto;vertical-align:middle}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-badge{width:100%;padding:4.4444444444px 12px 5.4444444444px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.75rem;font-style:normal;font-weight:600;line-height:1.25;color:rgb(0, 41, 77);text-align:center;word-break:break-word;vertical-align:middle;background:#d9ebf4;border-radius:20rem}.duet-badge.duet-p-0{padding:0 !important}.duet-badge.duet-m-0{margin:0 !important}.duet-badge.duet-theme-turva{padding:5.4444444444px 12px 4.4444444444px;font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-badge.warning{background:#fdecc9}.duet-badge.warning.duet-theme-turva{background:#fee8c3}.duet-badge.danger{background:#f8d3e0}.duet-badge.danger.duet-theme-turva{background:#f9d4cf}.duet-badge.success{background:#cce7de}.duet-badge.success.duet-theme-turva{background:#cee7dc}.duet-badge.subtle{color:rgb(101, 119, 135);background:none;outline:1px solid rgb(225, 227, 230);outline-offset:-1px}.duet-badge.subtle.duet-theme-turva{color:rgb(68, 68, 69);background:none;outline-color:rgb(228, 228, 230)}.duet-badge.background-strong.default{color:rgb(255, 255, 255);background:rgb(0, 119, 179)}.duet-badge.background-strong.default.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(23, 28, 58)}.duet-badge.background-strong.warning{background:#f9c153}.duet-badge.background-strong.warning.duet-theme-turva{background:#fbb63f}.duet-badge.background-strong.danger{color:rgb(255, 255, 255);background:rgb(222, 35, 98)}.duet-badge.background-strong.danger.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(224, 42, 13)}.duet-badge.background-strong.success{color:rgb(255, 255, 255);background:rgb(0, 135, 90)}.duet-badge.background-strong.success.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(8, 135, 78)}.duet-badge.background-strong.subtle{border-color:rgb(207, 210, 212);outline-color:rgb(0, 41, 77)}.duet-badge.background-strong.subtle.duet-theme-turva{border-color:rgb(207, 207, 209);outline-color:rgb(23, 28, 58)}";
8
-
9
- const DuetBadge = /*@__PURE__*/ proxyCustomElement(class DuetBadge extends H {
10
- constructor() {
11
- super();
12
- this.__registerHost();
13
- this.__attachShadow();
14
- this.theme = "";
15
- this.variation = "default";
16
- this.background = "normal";
17
- this.margin = "auto";
18
- }
19
- /**
20
- * Component lifecycle events.
21
- */
22
- componentWillLoad() {
23
- inheritGlobalTheme(this);
24
- }
25
- /**
26
- * render() function
27
- * Always the last one of the class.
28
- */
29
- render() {
30
- const backgroundClass = `background-${this.background}`;
31
- return (h(Host, { class: { "duet-m-0": this.margin === "none" } }, h("div", { class: {
32
- "duet-badge": true,
33
- [this.variation]: true,
34
- [backgroundClass]: true,
35
- "duet-theme-turva": this.theme === "turva",
36
- } }, h("slot", null))));
37
- }
38
- get element() { return this; }
39
- static get style() { return duetBadgeCss; }
40
- }, [1, "duet-badge", {
41
- "theme": [1025],
42
- "variation": [1],
43
- "background": [1],
44
- "margin": [1]
45
- }]);
46
- function defineCustomElement() {
47
- if (typeof customElements === "undefined") {
48
- return;
49
- }
50
- const components = ["duet-badge"];
51
- components.forEach(tagName => { switch (tagName) {
52
- case "duet-badge":
53
- if (!customElements.get(tagName)) {
54
- customElements.define(tagName, DuetBadge);
55
- }
56
- break;
57
- } });
58
- }
59
-
60
- export { DuetBadge as D, defineCustomElement as d };
@@ -1,205 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import { E as Env, p as proxyCustomElement, H, h, d as Host } from './p-471a62cc.js';
5
- import { i as inheritGlobalTheme } from './p-a58bd561.js';
6
- import { g as getColorByName, r as rgbaColorFromRgb } from './p-e078836c.js';
7
-
8
- const cleanupSvg = (svgContent) => {
9
- if (typeof document === "undefined" || !svgContent) {
10
- return;
11
- }
12
- const div = document.createElement("div");
13
- div.innerHTML = svgContent;
14
- // setup this way to ensure it works on our buddy IE
15
- for (let i = div.childNodes.length - 1; i >= 0; i--) {
16
- const child = div.childNodes[i];
17
- if (child.nodeName.toLowerCase() !== "svg") {
18
- div.removeChild(div.childNodes[i]);
19
- }
20
- }
21
- return div.firstElementChild;
22
- };
23
- const isValid = (elm) => {
24
- if (elm.nodeName.toLowerCase() === "script") {
25
- return false;
26
- }
27
- for (let i = 0; i < elm.attributes.length; i++) {
28
- const attribute = elm.attributes[i];
29
- if (attribute.name.toLowerCase().indexOf("on") === 0) {
30
- return false;
31
- }
32
- }
33
- if (elm.children) {
34
- for (let i = 0; i < elm.children.length; i++) {
35
- if (!isValid(elm.children[i])) {
36
- return false;
37
- }
38
- }
39
- }
40
- return true;
41
- };
42
- const buildIconUrl = (iconName) => {
43
- // under normal operations the Icons should always be loaded from the CDN
44
- {
45
- return `${Env.cdnURIProd}/icons/${Env.duetIconVersion}/lib/assets/${iconName}.svg`;
46
- }
47
- };
48
- const iconCache = {};
49
- function fetchIconByUrl(url) {
50
- if (iconCache[url]) {
51
- return iconCache[url];
52
- }
53
- // we create a function that covers all the fetching, cleanup, validation etc,
54
- // this way we can perform that work just once, and then return the same promise in future.
55
- async function doFetch() {
56
- const res = await fetch(url);
57
- if (!res.ok) {
58
- throw new Error(`SVG request failed: ${res.status} ${res.statusText}`);
59
- }
60
- const responseText = await res.text();
61
- const svgElement = cleanupSvg(responseText);
62
- if (!isValid(svgElement)) {
63
- throw new Error("SVG validation failed");
64
- }
65
- // OuterHTML does not unfortunately work here with IE11
66
- // was previously: resolve(svgElement.outerHTML)
67
- const div = document.createElement("div");
68
- div.appendChild(svgElement);
69
- return div.innerHTML;
70
- }
71
- // we do not `await` the fetch, as we only care about initiating the work,
72
- // it's the responsibility of the calling code to wait for the response.
73
- const req = doFetch();
74
- // cache for the repeat requests
75
- return (iconCache[url] = req);
76
- }
77
-
78
- const duetIconCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:inline-block;width:auto;max-width:100%;color:inherit;-webkit-tap-highlight-color:transparent}@media (max-width: 35.9375em){:host(.duet-icon-has-outline){margin-bottom:0 !important}}@media (max-width: 35.9375em){:host(.duet-icon-has-background){margin-bottom:0 !important}}:host(.duet-m-0){margin:0 !important}@media (max-width: 35.9375em){:host(.duet-m-0){margin:0 !important}}.duet-icon{-webkit-user-select:none;user-select:none;width:100%;height:100%;transform-origin:top center}.duet-icon.duet-icon-has-outline{padding:12px;border-style:solid;border-width:1px}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-outline{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background{padding:16px;color:rgb(255, 255, 255)}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-background{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background.duet-theme-turva,.duet-icon.duet-icon-has-background.duet-theme-default{color:rgb(255, 255, 255)}.duet-icon.duet-icon-shape-circle{border-radius:50%}.duet-icon.duet-icon-shape-brand{border-radius:25%}.duet-icon.duet-icon-has-background.xxx-small .duet-icon-svg,.duet-icon.duet-icon-has-outline.xxx-small .duet-icon-svg{width:10px;height:10px}.duet-icon.duet-icon-has-background.xx-small .duet-icon-svg,.duet-icon.duet-icon-has-outline.xx-small .duet-icon-svg{width:16px;height:16px}@media (max-width: 35.9375em){.duet-icon.duet-icon-not-responsive{transform:scale(1) !important}}.duet-icon.duet-theme-default{color:rgb(0, 119, 179)}.duet-icon.duet-theme-turva{color:rgb(198, 12, 48)}.duet-icon.auto .duet-icon-svg{width:100%;height:100%}.duet-icon.xxx-small .duet-icon-svg{width:7px;height:7px}.duet-icon.duet-icon-has-background.xxx-small{padding:6px}.duet-icon.duet-icon-has-outline.xxx-small{padding:4px}.duet-icon.xx-small .duet-icon-svg{width:10px;height:10px}.duet-icon.duet-icon-has-background.xx-small{padding:8px}.duet-icon.duet-icon-has-outline.xx-small{padding:7px}.duet-icon.x-small .duet-icon-svg{width:16px;height:16px}.duet-icon.duet-icon-has-outline.x-small{padding:10px}.duet-icon.duet-icon-has-background.x-small{padding:12px}.duet-icon.small .duet-icon-svg{width:20px;height:20px}.duet-icon.duet-icon-has-background.small{padding:14px}.duet-icon.large .duet-icon-svg{width:30px;height:30px}.duet-icon.x-large .duet-icon-svg{width:36px;height:36px}.duet-icon.xx-large .duet-icon-svg{width:48px;height:48px}.duet-icon.xxx-large .duet-icon-svg{width:48px;height:48px}@media (min-width: 48em){.duet-icon.xxx-large .duet-icon-svg{width:72px;height:72px}}.duet-icon.duet-icon-shape-brand.rotated{transform:rotate(20deg) scale(0.875);transform-origin:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva{display:flex;align-items:center;justify-content:center;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");-webkit-mask-repeat:no-repeat;mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");mask-repeat:no-repeat}.duet-icon.duet-icon-shape-brand.duet-theme-turva .duet-icon-svg{min-width:auto}.duet-icon.duet-icon-shape-brand.duet-theme-turva.xx-small{width:18px;height:15px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.x-small{width:32px;height:30px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.small{width:36px;height:34px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.medium{width:48px;height:44px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.large{width:62px;height:56px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.x-large{width:76px;height:68px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.xx-large{width:95px;height:86px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.xxx-large{width:144px;height:130px;padding:0}.duet-icon.duet-icon-shape-brand.xxx-small{padding:0}.duet-icon.duet-icon-shape-brand.xxx-small .duet-icon-svg{width:0;height:0}.duet-icon.duet-icon-shape-brand.xx-small{padding:4px}.duet-icon.duet-icon-shape-brand.xx-small .duet-icon-svg{width:10px;height:10px}.duet-icon.duet-icon-shape-brand.x-small{padding:8px}.duet-icon.duet-icon-shape-brand.x-small .duet-icon-svg{width:16px;height:16px}.duet-icon.duet-icon-shape-brand.small{padding:8px}.duet-icon.duet-icon-shape-brand.small .duet-icon-svg{width:20px;height:20px}.duet-icon.duet-icon-shape-brand.medium{padding:12px}.duet-icon.duet-icon-shape-brand.medium .duet-icon-svg{width:24px;height:24px}.duet-icon.duet-icon-shape-brand.large{padding:16px}.duet-icon.duet-icon-shape-brand.large .duet-icon-svg{width:30px;height:30px}.duet-icon.duet-icon-shape-brand.x-large{padding:20px}.duet-icon.duet-icon-shape-brand.x-large .duet-icon-svg{width:36px;height:36px}.duet-icon.duet-icon-shape-brand.xx-large{padding:24px}.duet-icon.duet-icon-shape-brand.xx-large .duet-icon-svg{width:48px;height:48px}.duet-icon.duet-icon-shape-brand.xxx-large{padding:36px}.duet-icon.duet-icon-shape-brand.xxx-large .duet-icon-svg{width:72px;height:72px}.duet-icon .duet-icon-svg{display:block;width:24px;min-width:100%;height:24px;font-size:0}.duet-icon .duet-icon-svg.rotated{transform:rotate(-20deg) scale(1.14)}.duet-icon svg{width:100%;min-width:100%;fill:currentColor}";
79
-
80
- const DuetIcon = /*@__PURE__*/ proxyCustomElement(class DuetIcon extends H {
81
- constructor() {
82
- super();
83
- this.__registerHost();
84
- this.__attachShadow();
85
- this.svgContent = undefined;
86
- this.theme = "";
87
- this.icon = undefined;
88
- this.src = undefined;
89
- this.name = "action-add";
90
- this.margin = "auto";
91
- this.responsive = true;
92
- this.color = "";
93
- this.background = "";
94
- this.backgroundOpacity = 1;
95
- this.backgroundRotation = 0;
96
- this.size = "medium";
97
- this.outline = "";
98
- this.shape = "circle";
99
- }
100
- /**
101
- * Component lifecycle events.
102
- */
103
- componentWillLoad() {
104
- inheritGlobalTheme(this);
105
- if (this.src && this.icon) {
106
- console.warn("[DUET COMPONENTS]: <duet-icon> should have either have src or icon attributes, but not both. icon attribute will take precedence", "icon:", this.icon, "src:", this.src);
107
- }
108
- this.loadIcon();
109
- }
110
- async loadIcon() {
111
- // static icon known at build-time, so we can set it synchronously
112
- if (this.icon) {
113
- this.svgContent = this.icon;
114
- return;
115
- }
116
- // dynamically load icon from url
117
- const src = this.src ? this.src : buildIconUrl(this.name);
118
- try {
119
- this.svgContent = await fetchIconByUrl(src);
120
- }
121
- catch (e) {
122
- console.warn(`[DUET COMPONENTS]: <duet-icon> could not load SVG from URL: ${src}.`, e);
123
- }
124
- }
125
- /**
126
- * render() function.
127
- * Always the last one in the class.
128
- */
129
- render() {
130
- const color = this.color === "currentColor"
131
- ? "currentColor"
132
- : getColorByName(this.color, this.theme) || getColorByName(this.outline, this.theme);
133
- const backgroundRotationStyles = this.backgroundRotation
134
- ? {
135
- transform: `rotate(${this.backgroundRotation}deg)`,
136
- "transform-origin": "center center",
137
- }
138
- : {};
139
- const styles = Object.assign({ color, background: rgbaColorFromRgb(getColorByName(this.background, this.theme), this.backgroundOpacity), "border-color": getColorByName(this.outline, this.theme) }, backgroundRotationStyles);
140
- const iconRotationStyles = this.backgroundRotation
141
- ? {
142
- transform: `rotate(-${this.backgroundRotation}deg)`,
143
- "transform-origin": "center center",
144
- }
145
- : {};
146
- const iconStyles = Object.assign({}, iconRotationStyles);
147
- const shapeStyle = this.shape === "brand-rotated" ? "duet-icon-shape-brand" : `duet-icon-shape-${this.shape}`;
148
- return (h(Host, { class: {
149
- "duet-m-0": this.margin === "none",
150
- "duet-icon-has-outline": !!this.outline,
151
- "duet-icon-has-background": !!this.background,
152
- } }, h("div", { "aria-hidden": "true", style: styles, class: {
153
- "duet-icon": true,
154
- [this.size]: true,
155
- "duet-theme-turva": this.theme === "turva",
156
- "duet-theme-default": this.theme === "default",
157
- "duet-icon-has-outline": !!this.outline,
158
- "duet-icon-has-background": !!this.background,
159
- [shapeStyle]: true,
160
- rotated: this.shape === "brand-rotated" && this.theme !== "turva",
161
- "duet-icon-not-responsive": !this.responsive,
162
- } }, h("span", { "aria-hidden": "true", class: { "duet-icon-svg": true, rotated: this.shape === "brand-rotated" && this.theme !== "turva" }, innerHTML: this.svgContent, style: iconStyles }))));
163
- }
164
- get element() { return this; }
165
- static get watchers() { return {
166
- "src": ["loadIcon"],
167
- "icon": ["loadIcon"],
168
- "name": ["loadIcon"]
169
- }; }
170
- static get style() { return duetIconCss; }
171
- }, [1, "duet-icon", {
172
- "theme": [1025],
173
- "icon": [1],
174
- "src": [1],
175
- "name": [1],
176
- "margin": [1],
177
- "responsive": [4],
178
- "color": [513],
179
- "background": [1],
180
- "backgroundOpacity": [2, "background-opacity"],
181
- "backgroundRotation": [2, "background-rotation"],
182
- "size": [1],
183
- "outline": [1],
184
- "shape": [1],
185
- "svgContent": [32]
186
- }, undefined, {
187
- "src": ["loadIcon"],
188
- "icon": ["loadIcon"],
189
- "name": ["loadIcon"]
190
- }]);
191
- function defineCustomElement() {
192
- if (typeof customElements === "undefined") {
193
- return;
194
- }
195
- const components = ["duet-icon"];
196
- components.forEach(tagName => { switch (tagName) {
197
- case "duet-icon":
198
- if (!customElements.get(tagName)) {
199
- customElements.define(tagName, DuetIcon);
200
- }
201
- break;
202
- } });
203
- }
204
-
205
- export { DuetIcon as D, defineCustomElement as d };
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function u(e){try{s(i.next(e))}catch(e){r(e)}}function a(e){try{s(i["throw"](e))}catch(e){r(e)}}function s(e){e.done?n(e.value):o(e.value).then(u,a)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,o,r,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(e){return function(t){return s([e,t])}}function s(a){if(i)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(n=0)),n)try{if(i=1,o&&(r=a[0]&2?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];o=0}finally{i=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-610b364b.system.js","./p-50f4bca2.system.js"],(function(e){"use strict";var t,n,i,o,r,u;return{setters:[function(e){t=e.r;n=e.c;i=e.h;o=e.H;r=e.g},function(e){u=e.i}],execute:function(){var a='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start}.duet-popup-menu-item{display:flex;flex-grow:1;gap:12px;align-items:center;height:100%;padding:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-popup-menu-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-popup-menu-item.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-popup-menu-item.active{background:rgb(243, 249, 252)}.duet-popup-menu-item.active.duet-theme-turva{background:rgb(245, 245, 247)}.duet-popup-menu-item:hover{background:rgb(230, 242, 248)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(228, 228, 230)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1}';var s=e("duet_popup_menu_item",function(){function e(e){var i=this;t(this,e);this.duetFocus=n(this,"duetFocus",7);this.duetBlur=n(this,"duetBlur",7);this.onFocus=function(e){i.focus=true;i.duetFocus.emit({originalEvent:e,value:i.value,component:"duet-popup-menu-item"})};this.onBlur=function(e){i.focus=false;i.duetBlur.emit({originalEvent:e,value:i.value,component:"duet-popup-menu-item"})};this.focus=false;this.accessibleLabel=undefined;this.theme="";this.url=undefined;this.external=false;this.value=undefined;this.leadingIcon=undefined;this.leadingIconColor=undefined;this.trailingIcon=undefined;this.trailingText=undefined;this.active=false}e.prototype.componentWillLoad=function(){u(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){setTimeout((function(){return t.itemElement.focus(e)}),200);return[2]}))}))};e.prototype.isFocused=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.focus]}))}))};e.prototype.render=function(){var e=this;var t=this.url?"a":"button";var n={"duet-popup-menu-item":true,active:this.active,"duet-theme-turva":this.theme==="turva"};return i(o,null,i(t,{ref:function(t){return e.itemElement=t},tabIndex:-1,onFocus:this.onFocus,onBlur:this.onBlur,role:"menuitem","aria-label":this.accessibleLabel,class:n,value:this.value,href:this.url,target:this.external?"_blank":undefined,rel:this.external?"noopener":undefined},this.leadingIcon&&i("duet-icon",{name:this.leadingIcon,size:"x-small",color:this.leadingIconColor?this.leadingIconColor:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),i("span",{class:"duet-popup-menu-item-label"},i("slot",null)),this.trailingIcon&&i("duet-icon",{name:this.trailingIcon,size:"x-small",color:"currentColor",class:"duet-popup-menu-item-trailing",margin:"none"}),this.trailingText&&i("span",{class:"duet-popup-menu-item-trailing"},this.trailingText)))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());s.style=a}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,c as t,h as o,H as i,g as n}from"./p-662da762.js";import{i as s}from"./p-a58bd561.js";const a=class{constructor(o){e(this,o),this.duetFocus=t(this,"duetFocus",7),this.duetBlur=t(this,"duetBlur",7),this.onFocus=e=>{this.focus=!0,this.duetFocus.emit({originalEvent:e,value:this.value,component:"duet-popup-menu-item"})},this.onBlur=e=>{this.focus=!1,this.duetBlur.emit({originalEvent:e,value:this.value,component:"duet-popup-menu-item"})},this.focus=!1,this.accessibleLabel=void 0,this.theme="",this.url=void 0,this.external=!1,this.value=void 0,this.leadingIcon=void 0,this.leadingIconColor=void 0,this.trailingIcon=void 0,this.trailingText=void 0,this.active=!1}componentWillLoad(){s(this)}async setFocus(e){setTimeout((()=>this.itemElement.focus(e)),200)}async isFocused(){return this.focus}render(){return o(i,null,o(this.url?"a":"button",{ref:e=>this.itemElement=e,tabIndex:-1,onFocus:this.onFocus,onBlur:this.onBlur,role:"menuitem","aria-label":this.accessibleLabel,class:{"duet-popup-menu-item":!0,active:this.active,"duet-theme-turva":"turva"===this.theme},value:this.value,href:this.url,target:this.external?"_blank":void 0,rel:this.external?"noopener":void 0},this.leadingIcon&&o("duet-icon",{name:this.leadingIcon,size:"x-small",color:this.leadingIconColor?this.leadingIconColor:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),o("span",{class:"duet-popup-menu-item-label"},o("slot",null)),this.trailingIcon&&o("duet-icon",{name:this.trailingIcon,size:"x-small",color:"currentColor",class:"duet-popup-menu-item-trailing",margin:"none"}),this.trailingText&&o("span",{class:"duet-popup-menu-item-trailing"},this.trailingText)))}get element(){return n(this)}};a.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start}.duet-popup-menu-item{display:flex;flex-grow:1;gap:12px;align-items:center;height:100%;padding:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-popup-menu-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-popup-menu-item.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-popup-menu-item.active{background:rgb(243, 249, 252)}.duet-popup-menu-item.active.duet-theme-turva{background:rgb(245, 245, 247)}.duet-popup-menu-item:hover{background:rgb(230, 242, 248)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(228, 228, 230)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1}';export{a as duet_popup_menu_item}