@duetds/components 6.9.6 → 6.9.7

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 (506) hide show
  1. package/hydrate/index.js +1246 -58
  2. package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
  3. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-callout.cjs.entry.js +5 -2
  9. package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
  10. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  11. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-choice_2.cjs.entry.js +5 -3
  14. package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  16. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  19. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-editable-table_3.cjs.entry.js +12 -4
  21. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  23. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-hero.cjs.entry.js +4 -3
  27. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  37. package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  39. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  43. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  46. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  47. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  48. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  49. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  50. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  51. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  52. package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
  53. package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
  54. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  56. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  60. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  61. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  62. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  65. package/lib/cjs/duet-tooltip.cjs.entry.js +1220 -48
  66. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  68. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  69. package/lib/cjs/duet.cjs.js +2 -2
  70. package/lib/cjs/{focus-utils-de2e491b.js → focus-utils-8852d70c.js} +1 -1
  71. package/lib/cjs/{index-978ec5b0.js → index-8baedc34.js} +1 -1
  72. package/lib/cjs/loader.cjs.js +2 -2
  73. package/lib/collection/components/duet-callout/duet-callout.js +4 -1
  74. package/lib/collection/components/duet-choice/duet-choice.js +3 -1
  75. package/lib/collection/components/duet-hero/duet-hero.css +10 -0
  76. package/lib/collection/components/duet-hero/duet-hero.js +3 -1
  77. package/lib/collection/components/duet-tooltip/duet-tooltip.css +39 -106
  78. package/lib/collection/components/duet-tooltip/duet-tooltip.js +53 -49
  79. package/lib/collection/components/duet-upload/duet-upload.js +3 -3
  80. package/lib/collection/components/duet-upload/upload-item.js +8 -2
  81. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  82. package/lib/dist-custom-elements/duet-alert.js +1 -1
  83. package/lib/dist-custom-elements/duet-badge.js +1 -1
  84. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  85. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  86. package/lib/dist-custom-elements/duet-button.js +1 -1
  87. package/lib/dist-custom-elements/duet-callout.js +7 -4
  88. package/lib/dist-custom-elements/duet-caption.js +1 -1
  89. package/lib/dist-custom-elements/duet-card.js +3 -3
  90. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  91. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  92. package/lib/dist-custom-elements/duet-choice-group.js +6 -6
  93. package/lib/dist-custom-elements/duet-choice.js +8 -6
  94. package/lib/dist-custom-elements/duet-collapsible.js +3 -3
  95. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  96. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  97. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  98. package/lib/dist-custom-elements/duet-date-picker.js +10 -10
  99. package/lib/dist-custom-elements/duet-divider.js +1 -1
  100. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  101. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  102. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  103. package/lib/dist-custom-elements/duet-footer.js +4 -4
  104. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  105. package/lib/dist-custom-elements/duet-grid.js +1 -1
  106. package/lib/dist-custom-elements/duet-header.js +9 -9
  107. package/lib/dist-custom-elements/duet-heading.js +1 -1
  108. package/lib/dist-custom-elements/duet-hero.js +12 -11
  109. package/lib/dist-custom-elements/duet-icon.js +1 -1
  110. package/lib/dist-custom-elements/duet-input.js +1 -1
  111. package/lib/dist-custom-elements/duet-label.js +1 -1
  112. package/lib/dist-custom-elements/duet-layout.js +1 -1
  113. package/lib/dist-custom-elements/duet-link.js +1 -1
  114. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  115. package/lib/dist-custom-elements/duet-list.js +1 -1
  116. package/lib/dist-custom-elements/duet-logo.js +1 -1
  117. package/lib/dist-custom-elements/duet-menu-bar-button.js +3 -3
  118. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  119. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +3 -3
  120. package/lib/dist-custom-elements/duet-menu-bar-link.js +3 -3
  121. package/lib/dist-custom-elements/duet-menu-bar.js +3 -3
  122. package/lib/dist-custom-elements/duet-modal.js +7 -7
  123. package/lib/dist-custom-elements/duet-multiselect.js +8 -8
  124. package/lib/dist-custom-elements/duet-nav.js +1 -1
  125. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  126. package/lib/dist-custom-elements/duet-notification.js +2 -2
  127. package/lib/dist-custom-elements/duet-number-input.js +9 -9
  128. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  129. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  130. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  131. package/lib/dist-custom-elements/duet-progress.js +1 -1
  132. package/lib/dist-custom-elements/duet-radio-group.js +6 -6
  133. package/lib/dist-custom-elements/duet-radio.js +1 -1
  134. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  135. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  136. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  137. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  138. package/lib/dist-custom-elements/duet-select.js +1 -1
  139. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  140. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  141. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  142. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  143. package/lib/dist-custom-elements/duet-slideout.js +2 -2
  144. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  145. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  146. package/lib/dist-custom-elements/duet-step.js +4 -4
  147. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  148. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  149. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +3 -3
  150. package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
  151. package/lib/dist-custom-elements/duet-submenu-bar.js +3 -3
  152. package/lib/dist-custom-elements/duet-tab-group.js +9 -9
  153. package/lib/dist-custom-elements/duet-tab.js +1 -1
  154. package/lib/dist-custom-elements/duet-table.js +1 -1
  155. package/lib/dist-custom-elements/duet-textarea.js +8 -8
  156. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  157. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  158. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  159. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  160. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  161. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  162. package/lib/dist-custom-elements/duet-tray.js +3 -3
  163. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  164. package/lib/dist-custom-elements/duet-upload.js +28 -20
  165. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  166. package/lib/dist-custom-elements/index.js +1 -1
  167. package/lib/dist-custom-elements/p-1635a5ff.js +1446 -0
  168. package/lib/dist-custom-elements/{p-6f0966d2.js → p-1d207f70.js} +4 -4
  169. package/lib/dist-custom-elements/{p-0a6a8f11.js → p-2a351223.js} +1 -1
  170. package/lib/dist-custom-elements/{p-f9c288b5.js → p-369a9e6b.js} +3 -3
  171. package/lib/dist-custom-elements/{p-9ed66812.js → p-3d6100be.js} +2 -2
  172. package/lib/dist-custom-elements/{p-4d0f9f83.js → p-4d20fcd1.js} +1 -1
  173. package/lib/dist-custom-elements/{p-70ef0e9d.js → p-5119f1dc.js} +5 -5
  174. package/lib/dist-custom-elements/{p-5962ecc8.js → p-5183d2cf.js} +1 -1
  175. package/lib/dist-custom-elements/{p-a2fa664a.js → p-53c27e8e.js} +1 -1
  176. package/lib/dist-custom-elements/{p-087e9427.js → p-62683175.js} +1 -1
  177. package/lib/dist-custom-elements/{p-d8ca2c64.js → p-649043a8.js} +2 -2
  178. package/lib/dist-custom-elements/{p-f5d77e8e.js → p-67365843.js} +1 -1
  179. package/lib/dist-custom-elements/{p-a78d941c.js → p-68be9a91.js} +1 -1
  180. package/lib/dist-custom-elements/{p-c4689e7b.js → p-783a8425.js} +2 -2
  181. package/lib/dist-custom-elements/{p-5c9bf9ba.js → p-7a905f45.js} +3 -3
  182. package/lib/dist-custom-elements/{p-0b141ef0.js → p-7e395433.js} +1 -1
  183. package/lib/dist-custom-elements/{p-57bb44bf.js → p-87df78c6.js} +1 -1
  184. package/lib/dist-custom-elements/{p-c638adb2.js → p-8bad78a6.js} +1 -1
  185. package/lib/dist-custom-elements/{p-4a060f56.js → p-93fab31d.js} +1 -1
  186. package/lib/dist-custom-elements/{p-8160f98e.js → p-99687f8f.js} +6 -6
  187. package/lib/dist-custom-elements/{p-cbc12626.js → p-9d1b018a.js} +1 -1
  188. package/lib/dist-custom-elements/{p-a3ba0ed5.js → p-c243ec01.js} +1 -1
  189. package/lib/{esm/tokens-0963dc8b.js → dist-custom-elements/p-cb9787ec.js} +1 -1
  190. package/lib/dist-custom-elements/{p-f5252ae4.js → p-cbb67f4e.js} +1 -1
  191. package/lib/dist-custom-elements/{p-75f47a29.js → p-d95944c8.js} +1 -1
  192. package/lib/dist-custom-elements/{p-a27921ba.js → p-e080ccaa.js} +1 -1
  193. package/lib/dist-custom-elements/{p-49ef7e25.js → p-e2a3c6fa.js} +2 -2
  194. package/lib/dist-custom-elements/{p-064985f6.js → p-e4e40736.js} +2 -2
  195. package/lib/dist-custom-elements/{p-a1863bda.js → p-efa5255b.js} +1 -1
  196. package/lib/dist-custom-elements/{p-db20025e.js → p-f0e99128.js} +8 -8
  197. package/lib/dist-custom-elements/{p-b5a87909.js → p-f2d8763d.js} +2 -2
  198. package/lib/dist-custom-elements/{p-d54ecc52.js → p-f83c1df9.js} +1 -1
  199. package/lib/duet/duet.esm.js +1 -1
  200. package/lib/duet/duet.js +1 -1
  201. package/lib/duet/p-01d38ac9.entry.js +4 -0
  202. package/lib/duet/{p-7ecff545.system.entry.js → p-029f96ec.system.entry.js} +1 -1
  203. package/lib/duet/{p-0c1051da.entry.js → p-03bd5373.entry.js} +1 -1
  204. package/lib/duet/{p-4c812d78.system.entry.js → p-04da22d7.system.entry.js} +1 -1
  205. package/lib/duet/{p-b154ecd8.system.entry.js → p-07d0ed0a.system.entry.js} +1 -1
  206. package/lib/duet/{p-b8705a85.entry.js → p-08693a37.entry.js} +1 -1
  207. package/lib/duet/{p-11749645.system.entry.js → p-097da893.system.entry.js} +1 -1
  208. package/lib/duet/{p-50ce994c.system.entry.js → p-09d4bac7.system.entry.js} +1 -1
  209. package/lib/duet/{p-9c483f1d.system.entry.js → p-0a03a862.system.entry.js} +1 -1
  210. package/lib/duet/{p-0626d8a9.entry.js → p-0a6ff475.entry.js} +1 -1
  211. package/lib/duet/{p-26f3b159.system.entry.js → p-0b752687.system.entry.js} +1 -1
  212. package/lib/duet/{p-0a317f12.entry.js → p-0cdc880e.entry.js} +1 -1
  213. package/lib/duet/{p-6e5abb84.system.entry.js → p-0e165a4e.system.entry.js} +1 -1
  214. package/lib/duet/{p-da5583ea.entry.js → p-0f80e2fc.entry.js} +1 -1
  215. package/lib/duet/{p-f6e2e71a.system.entry.js → p-0fc1b439.system.entry.js} +1 -1
  216. package/lib/duet/{p-49eef496.system.entry.js → p-1028e393.system.entry.js} +1 -1
  217. package/lib/duet/{p-940f11ad.system.entry.js → p-106abf71.system.entry.js} +1 -1
  218. package/lib/duet/{p-67176e9e.entry.js → p-12afe002.entry.js} +1 -1
  219. package/lib/duet/{p-5707ba42.system.entry.js → p-1396c277.system.entry.js} +1 -1
  220. package/lib/duet/p-151892ff.system.entry.js +4 -0
  221. package/lib/duet/{p-830be23d.system.entry.js → p-1677ce5c.system.entry.js} +1 -1
  222. package/lib/duet/{p-336c0409.system.entry.js → p-1a0b0fe9.system.entry.js} +1 -1
  223. package/lib/duet/{p-44268138.system.js → p-1c0453e0.system.js} +1 -1
  224. package/lib/duet/{p-5da36d9e.entry.js → p-1c0a39db.entry.js} +1 -1
  225. package/lib/duet/{p-ca405201.entry.js → p-2125b071.entry.js} +1 -1
  226. package/lib/duet/{p-a3b22a18.entry.js → p-2879b97d.entry.js} +1 -1
  227. package/lib/duet/{p-7a7ef869.entry.js → p-29b9e99e.entry.js} +1 -1
  228. package/lib/duet/{p-1eece5bf.system.entry.js → p-2bc4d34e.system.entry.js} +1 -1
  229. package/lib/duet/p-2c68ee2d.system.entry.js +4 -0
  230. package/lib/duet/{p-e6d1e0be.system.entry.js → p-2d5be93c.system.entry.js} +1 -1
  231. package/lib/duet/{p-4058cee8.entry.js → p-2d71fa26.entry.js} +1 -1
  232. package/lib/duet/{p-d656d96e.system.entry.js → p-32eecc8d.system.entry.js} +1 -1
  233. package/lib/duet/{p-a03c4dcd.system.entry.js → p-344134e5.system.entry.js} +1 -1
  234. package/lib/duet/{p-c9edd0bb.system.entry.js → p-36bca919.system.entry.js} +1 -1
  235. package/lib/duet/{p-a0876e2e.system.entry.js → p-3b1ff9be.system.entry.js} +1 -1
  236. package/lib/duet/{p-2c31977d.entry.js → p-3c88792b.entry.js} +1 -1
  237. package/lib/duet/{p-13540a69.system.entry.js → p-3d6d2012.system.entry.js} +1 -1
  238. package/lib/duet/{p-728c2f13.entry.js → p-3de9ea90.entry.js} +1 -1
  239. package/lib/duet/{p-482497cd.entry.js → p-3e2c87e6.entry.js} +1 -1
  240. package/lib/duet/{p-50df271c.entry.js → p-3e7b62a4.entry.js} +1 -1
  241. package/lib/duet/{p-653eb7ce.system.entry.js → p-401a454b.system.entry.js} +1 -1
  242. package/lib/duet/{p-aa79548d.system.entry.js → p-41a69e48.system.entry.js} +1 -1
  243. package/lib/duet/{p-3d31b17b.system.entry.js → p-42844e9d.system.entry.js} +1 -1
  244. package/lib/duet/{p-f2f60847.entry.js → p-44f22e6b.entry.js} +1 -1
  245. package/lib/duet/{p-0eb4217a.entry.js → p-458dd158.entry.js} +1 -1
  246. package/lib/duet/{p-c2757db1.entry.js → p-45fe4429.entry.js} +1 -1
  247. package/lib/duet/p-4634f44d.entry.js +4 -0
  248. package/lib/duet/{p-51adf63c.system.entry.js → p-466c4910.system.entry.js} +1 -1
  249. package/lib/duet/{p-475d42a8.system.entry.js → p-48ef2786.system.entry.js} +1 -1
  250. package/lib/duet/{p-bdc400cf.entry.js → p-4a4cbba5.entry.js} +1 -1
  251. package/lib/duet/{p-745645b0.entry.js → p-4c1fb962.entry.js} +1 -1
  252. package/lib/duet/{p-8b148f79.system.entry.js → p-4c7fb05f.system.entry.js} +1 -1
  253. package/lib/duet/{p-636e5f15.entry.js → p-4cb43c38.entry.js} +1 -1
  254. package/lib/duet/p-5074accf.entry.js +4 -0
  255. package/lib/duet/{p-81c05491.system.entry.js → p-5573222d.system.entry.js} +1 -1
  256. package/lib/duet/{p-b672280a.entry.js → p-57a26a2a.entry.js} +1 -1
  257. package/lib/duet/{p-a92d4f59.system.entry.js → p-5c17a74a.system.entry.js} +1 -1
  258. package/lib/duet/{p-c6793076.system.entry.js → p-5d15cd89.system.entry.js} +1 -1
  259. package/lib/duet/{p-d6149423.entry.js → p-5e6542bc.entry.js} +1 -1
  260. package/lib/duet/{p-c42f3a40.system.entry.js → p-5f7a2639.system.entry.js} +1 -1
  261. package/lib/duet/{p-83b776f5.system.entry.js → p-613156e6.system.entry.js} +2 -2
  262. package/lib/duet/{p-da4c713c.system.entry.js → p-62a63d5b.system.entry.js} +1 -1
  263. package/lib/duet/{p-4d0d61a7.entry.js → p-6325ae2d.entry.js} +1 -1
  264. package/lib/duet/p-66fbed51.entry.js +4 -0
  265. package/lib/duet/{p-4ec88753.entry.js → p-675f844b.entry.js} +1 -1
  266. package/lib/duet/{p-e66936a4.system.entry.js → p-68ee9bfa.system.entry.js} +1 -1
  267. package/lib/duet/{p-5b17dfea.system.entry.js → p-6a0f118b.system.entry.js} +1 -1
  268. package/lib/duet/{p-d71ba70b.system.entry.js → p-6ba40ef9.system.entry.js} +1 -1
  269. package/lib/duet/{p-5cfb7c71.entry.js → p-6dc868fd.entry.js} +1 -1
  270. package/lib/duet/{p-ffbb062e.system.entry.js → p-6dcce504.system.entry.js} +1 -1
  271. package/lib/duet/{p-955782ae.entry.js → p-70e49d00.entry.js} +1 -1
  272. package/lib/duet/p-752fb0a0.system.entry.js +4 -0
  273. package/lib/duet/{p-3429690e.entry.js → p-75316086.entry.js} +1 -1
  274. package/lib/duet/p-789a9af4.entry.js +4 -0
  275. package/lib/duet/{p-be4bb297.system.entry.js → p-79dd09a6.system.entry.js} +1 -1
  276. package/lib/duet/{p-825fa6d7.entry.js → p-79eb3572.entry.js} +1 -1
  277. package/lib/duet/{p-1f66cbb6.entry.js → p-7b99f674.entry.js} +1 -1
  278. package/lib/duet/{p-587e1ad0.system.js → p-7bab508c.system.js} +1 -1
  279. package/lib/duet/{p-35664bb6.system.entry.js → p-7cf776fa.system.entry.js} +1 -1
  280. package/lib/duet/{p-46e061d9.entry.js → p-7e3e70df.entry.js} +1 -1
  281. package/lib/duet/{p-02fd20f6.system.entry.js → p-7f94280a.system.entry.js} +1 -1
  282. package/lib/duet/p-7fefe439.entry.js +4 -0
  283. package/lib/duet/{p-49c7c6fb.system.entry.js → p-8349ff2d.system.entry.js} +1 -1
  284. package/lib/duet/{p-fbc7ad71.entry.js → p-853ac360.entry.js} +1 -1
  285. package/lib/duet/{p-9f1699dc.system.entry.js → p-8d5edbbe.system.entry.js} +1 -1
  286. package/lib/duet/{p-c192f269.system.entry.js → p-91be047f.system.entry.js} +1 -1
  287. package/lib/duet/{p-7345aff9.system.entry.js → p-92e94229.system.entry.js} +1 -1
  288. package/lib/duet/{p-0ec6a000.entry.js → p-93a2c807.entry.js} +1 -1
  289. package/lib/duet/{p-ce00f1fd.system.entry.js → p-97528238.system.entry.js} +1 -1
  290. package/lib/duet/{p-0bcdec8b.system.entry.js → p-9791ab1b.system.entry.js} +1 -1
  291. package/lib/duet/{p-d24ebe03.system.entry.js → p-97df072f.system.entry.js} +1 -1
  292. package/lib/duet/{p-b731849c.system.entry.js → p-981f2443.system.entry.js} +1 -1
  293. package/lib/duet/{p-af932bca.system.entry.js → p-98777ba0.system.entry.js} +1 -1
  294. package/lib/duet/{p-e078ba11.entry.js → p-991271a2.entry.js} +1 -1
  295. package/lib/duet/{p-14ab7ebe.system.entry.js → p-9916b7d2.system.entry.js} +1 -1
  296. package/lib/duet/{p-02b08c30.entry.js → p-9c127e8f.entry.js} +1 -1
  297. package/lib/duet/p-9ec19751.entry.js +4 -0
  298. package/lib/duet/p-9f81873c.entry.js +4 -0
  299. package/lib/duet/{p-8ab66620.system.entry.js → p-a042bc85.system.entry.js} +2 -2
  300. package/lib/duet/{p-01dc716d.entry.js → p-a1a8395b.entry.js} +1 -1
  301. package/lib/duet/{p-cafb90c2.entry.js → p-a341e9c3.entry.js} +1 -1
  302. package/lib/duet/{p-a74c2dff.entry.js → p-a653bb02.entry.js} +1 -1
  303. package/lib/duet/{p-474bacf0.entry.js → p-a6aba2d3.entry.js} +1 -1
  304. package/lib/duet/{p-628600fa.entry.js → p-a903a315.entry.js} +1 -1
  305. package/lib/duet/{p-8078b081.system.js → p-a9a7d16c.system.js} +1 -1
  306. package/lib/duet/{p-c03df848.entry.js → p-a9d7b38d.entry.js} +1 -1
  307. package/lib/duet/{p-de62f610.system.entry.js → p-afcfc528.system.entry.js} +1 -1
  308. package/lib/duet/{p-8d98f055.entry.js → p-b4ff5c09.entry.js} +1 -1
  309. package/lib/duet/{p-1522db1d.entry.js → p-b90cdb91.entry.js} +1 -1
  310. package/lib/duet/{p-b651d2d1.entry.js → p-bb97ab92.entry.js} +1 -1
  311. package/lib/duet/{p-c9854b35.system.entry.js → p-bef59086.system.entry.js} +1 -1
  312. package/lib/duet/{p-041b483b.entry.js → p-c39467e4.entry.js} +1 -1
  313. package/lib/duet/{p-e4faf457.entry.js → p-c50233e1.entry.js} +1 -1
  314. package/lib/duet/{p-7000ce85.system.entry.js → p-c504d7cd.system.entry.js} +1 -1
  315. package/lib/duet/{p-f3d588ab.entry.js → p-c56dd6d7.entry.js} +1 -1
  316. package/lib/duet/{p-d9ef6f51.system.entry.js → p-c6a321f1.system.entry.js} +1 -1
  317. package/lib/duet/{p-e65709fc.entry.js → p-c94a423f.entry.js} +1 -1
  318. package/lib/duet/{p-c4d8cad0.js → p-cb9787ec.js} +1 -1
  319. package/lib/duet/{p-cc5a3edc.js → p-cca182be.js} +1 -1
  320. package/lib/duet/{p-cdea33d4.entry.js → p-cff8b0b3.entry.js} +1 -1
  321. package/lib/duet/{p-22c2c6d5.system.entry.js → p-d1b6fd73.system.entry.js} +1 -1
  322. package/lib/duet/p-d3bba23f.entry.js +4 -0
  323. package/lib/duet/{p-23ec6f02.entry.js → p-d4d2569e.entry.js} +1 -1
  324. package/lib/duet/{p-cb9991a5.system.entry.js → p-d6196775.system.entry.js} +1 -1
  325. package/lib/duet/{p-d0857e1f.system.js → p-d7e6a4ed.system.js} +1 -1
  326. package/lib/duet/{p-4b457bad.system.entry.js → p-da04e483.system.entry.js} +1 -1
  327. package/lib/duet/{p-420af35d.system.entry.js → p-dc4b4a04.system.entry.js} +1 -1
  328. package/lib/duet/{p-40b5d6b7.entry.js → p-de82bfee.entry.js} +1 -1
  329. package/lib/duet/{p-9c5001ab.entry.js → p-df7481e8.entry.js} +1 -1
  330. package/lib/duet/{p-9d0b30a0.system.entry.js → p-e057d8c4.system.entry.js} +1 -1
  331. package/lib/duet/{p-d20fb807.entry.js → p-e05c4a5b.entry.js} +1 -1
  332. package/lib/duet/{p-56f913f0.system.entry.js → p-e0848924.system.entry.js} +1 -1
  333. package/lib/duet/{p-332dc9a8.entry.js → p-e5d2b68e.entry.js} +1 -1
  334. package/lib/duet/{p-a57772d2.system.entry.js → p-e65bc05f.system.entry.js} +1 -1
  335. package/lib/duet/{p-1eccf55b.system.entry.js → p-e6f92c08.system.entry.js} +1 -1
  336. package/lib/duet/{p-d82963c2.system.entry.js → p-ed16d00b.system.entry.js} +1 -1
  337. package/lib/duet/p-f5a74f01.js +4 -0
  338. package/lib/duet/p-f5fd8e55.entry.js +4 -0
  339. package/lib/duet/{p-9ebea289.entry.js → p-f691d0b6.entry.js} +1 -1
  340. package/lib/duet/{p-55bdc762.entry.js → p-f7fbc435.entry.js} +1 -1
  341. package/lib/duet/{p-e4f417fe.entry.js → p-f8d91f4b.entry.js} +1 -1
  342. package/lib/esm/duet-action-button.entry.js +1 -1
  343. package/lib/esm/duet-alert.entry.js +1 -1
  344. package/lib/esm/duet-badge.entry.js +1 -1
  345. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  346. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  347. package/lib/esm/duet-button_2.entry.js +1 -1
  348. package/lib/esm/duet-callout.entry.js +5 -2
  349. package/lib/esm/duet-caption_4.entry.js +1 -1
  350. package/lib/esm/duet-card.entry.js +1 -1
  351. package/lib/esm/duet-checkbox.entry.js +1 -1
  352. package/lib/esm/duet-checkmark.entry.js +1 -1
  353. package/lib/esm/duet-choice_2.entry.js +5 -3
  354. package/lib/esm/duet-collapsible.entry.js +2 -2
  355. package/lib/esm/duet-combobox.entry.js +1 -1
  356. package/lib/esm/duet-contact-card.entry.js +1 -1
  357. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  358. package/lib/esm/duet-date-picker.entry.js +2 -2
  359. package/lib/esm/duet-divider_2.entry.js +1 -1
  360. package/lib/esm/duet-editable-table_3.entry.js +12 -4
  361. package/lib/esm/duet-empty-state.entry.js +1 -1
  362. package/lib/esm/duet-fieldset.entry.js +1 -1
  363. package/lib/esm/duet-footer.entry.js +1 -1
  364. package/lib/esm/duet-grid_2.entry.js +2 -2
  365. package/lib/esm/duet-header_2.entry.js +2 -2
  366. package/lib/esm/duet-hero.entry.js +4 -3
  367. package/lib/esm/duet-icon.entry.js +1 -1
  368. package/lib/esm/duet-input_2.entry.js +1 -1
  369. package/lib/esm/duet-layout.entry.js +1 -1
  370. package/lib/esm/duet-list_2.entry.js +1 -1
  371. package/lib/esm/duet-menu-bar-button.entry.js +2 -2
  372. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  373. package/lib/esm/duet-menu-bar-dropdown.entry.js +2 -2
  374. package/lib/esm/duet-menu-bar-link.entry.js +2 -2
  375. package/lib/esm/duet-menu-bar.entry.js +2 -2
  376. package/lib/esm/duet-modal.entry.js +2 -2
  377. package/lib/esm/duet-multiselect.entry.js +1 -1
  378. package/lib/esm/duet-nav.entry.js +1 -1
  379. package/lib/esm/duet-notification_2.entry.js +1 -1
  380. package/lib/esm/duet-number-input.entry.js +1 -1
  381. package/lib/esm/duet-page-heading.entry.js +1 -1
  382. package/lib/esm/duet-pagination_2.entry.js +1 -1
  383. package/lib/esm/duet-progress.entry.js +1 -1
  384. package/lib/esm/duet-radio_2.entry.js +1 -1
  385. package/lib/esm/duet-range-slider.entry.js +1 -1
  386. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  387. package/lib/esm/duet-section-layout.entry.js +1 -1
  388. package/lib/esm/duet-select.entry.js +1 -1
  389. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  390. package/lib/esm/duet-slideout-link.entry.js +1 -1
  391. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  392. package/lib/esm/duet-slideout-panel.entry.js +2 -2
  393. package/lib/esm/duet-slideout.entry.js +2 -2
  394. package/lib/esm/duet-step_2.entry.js +1 -1
  395. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  396. package/lib/esm/duet-submenu-bar-dropdown.entry.js +2 -2
  397. package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
  398. package/lib/esm/duet-submenu-bar.entry.js +2 -2
  399. package/lib/esm/duet-textarea.entry.js +1 -1
  400. package/lib/esm/duet-toggle.entry.js +1 -1
  401. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  402. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  403. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  404. package/lib/esm/duet-toolbar.entry.js +1 -1
  405. package/lib/esm/duet-tooltip.entry.js +1220 -48
  406. package/lib/esm/duet-tray.entry.js +1 -1
  407. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  408. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  409. package/lib/esm/duet.js +3 -3
  410. package/lib/esm/{focus-utils-b482bcb1.js → focus-utils-1e6af8c1.js} +1 -1
  411. package/lib/esm/{index-5a68b13e.js → index-77de1d56.js} +1 -1
  412. package/lib/esm/loader.js +3 -3
  413. package/lib/{dist-custom-elements/p-c4d8cad0.js → esm/tokens-20d688dc.js} +1 -1
  414. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  415. package/lib/esm-es5/duet-alert.entry.js +1 -1
  416. package/lib/esm-es5/duet-badge.entry.js +1 -1
  417. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  418. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  419. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  420. package/lib/esm-es5/duet-callout.entry.js +1 -1
  421. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  422. package/lib/esm-es5/duet-card.entry.js +1 -1
  423. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  424. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  425. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  426. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  427. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  428. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  429. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  430. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  431. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  432. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  433. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  434. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  435. package/lib/esm-es5/duet-footer.entry.js +1 -1
  436. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  437. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  438. package/lib/esm-es5/duet-hero.entry.js +1 -1
  439. package/lib/esm-es5/duet-icon.entry.js +1 -1
  440. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  441. package/lib/esm-es5/duet-layout.entry.js +1 -1
  442. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  443. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  444. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  445. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  446. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  447. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  448. package/lib/esm-es5/duet-modal.entry.js +1 -1
  449. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  450. package/lib/esm-es5/duet-nav.entry.js +1 -1
  451. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  452. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  453. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  454. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  455. package/lib/esm-es5/duet-progress.entry.js +1 -1
  456. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  457. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  458. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  459. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  460. package/lib/esm-es5/duet-select.entry.js +1 -1
  461. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  462. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  463. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  464. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  465. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  466. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  467. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  468. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  469. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  470. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  471. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  472. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  473. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  474. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  475. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  476. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  477. package/lib/esm-es5/duet-tooltip.entry.js +2 -2
  478. package/lib/esm-es5/duet-tray.entry.js +1 -1
  479. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  480. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  481. package/lib/esm-es5/duet.js +1 -1
  482. package/lib/esm-es5/{focus-utils-b482bcb1.js → focus-utils-1e6af8c1.js} +1 -1
  483. package/lib/esm-es5/{index-5a68b13e.js → index-77de1d56.js} +1 -1
  484. package/lib/esm-es5/loader.js +1 -1
  485. package/lib/esm-es5/{tokens-0963dc8b.js → tokens-20d688dc.js} +1 -1
  486. package/lib/types/components/duet-callout/duet-callout.d.ts +2 -0
  487. package/lib/types/components/duet-hero/duet-hero.d.ts +2 -0
  488. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +8 -7
  489. package/lib/types/components/duet-upload/duet-upload.d.ts +1 -1
  490. package/lib/types/components.d.ts +2 -2
  491. package/package.json +6 -5
  492. package/lib/dist-custom-elements/p-98c77c8d.js +0 -272
  493. package/lib/duet/p-2b1f8599.system.entry.js +0 -4
  494. package/lib/duet/p-3877d445.entry.js +0 -4
  495. package/lib/duet/p-42e60321.entry.js +0 -4
  496. package/lib/duet/p-4af2f77a.entry.js +0 -4
  497. package/lib/duet/p-60912840.entry.js +0 -4
  498. package/lib/duet/p-624d38a3.system.entry.js +0 -4
  499. package/lib/duet/p-673a6c11.entry.js +0 -4
  500. package/lib/duet/p-793dcfc2.js +0 -4
  501. package/lib/duet/p-95eb41b3.system.entry.js +0 -4
  502. package/lib/duet/p-a7953c81.entry.js +0 -4
  503. package/lib/duet/p-b1ae5c07.entry.js +0 -4
  504. package/lib/duet/p-b89cad4d.entry.js +0 -4
  505. package/lib/duet/p-bf4ceb06.entry.js +0 -4
  506. package/lib/duet/p-d5f65552.entry.js +0 -4
@@ -5,13 +5,1185 @@
5
5
 
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
- const index = require('./index-978ec5b0.js');
8
+ const index = require('./index-8baedc34.js');
9
+ const tokens = require('./tokens-21b244ee.js');
9
10
  const themeableComponent = require('./themeable-component-fdeaef9f.js');
10
11
  const createId = require('./create-id-c3b984b1.js');
11
12
  const languageUtils = require('./language-utils-44df1d37.js');
12
13
  require('./string-utils-5cadd058.js');
13
14
 
14
- const duetTooltipCss = "*,*::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;position:relative;z-index:200;display:inline-flex;width:auto;margin-top:-16px !important;margin-left:-3px !important;-webkit-tap-highlight-color:transparent}.duet-tooltip{position:absolute;right:-141px;bottom:100%;z-index:950;display:block;width:282px;min-height:48px;max-height:340px;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.875rem;font-weight:400;line-height:1.25;color:rgb(0, 41, 77);visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-radius:4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.07);opacity:0;transition:300ms ease;transform:scale(0.9) translateZ(0) translateY(20px);transform-origin:100% 100%}.duet-tooltip.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);border-color:rgb(228, 228, 230);box-shadow:0 2px 10px 0 rgba(117, 117, 117, 0.13)}.duet-tooltip::after{position:absolute;right:142px;bottom:-20px;z-index:200;width:0;height:0;content:\"\";border:10px solid transparent;border-top:10px solid rgb(255, 255, 255)}.duet-tooltip::before{position:absolute;right:141px;bottom:-22px;z-index:100;width:0;height:0;content:\"\";border:11px solid transparent;border-top:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip.duet-tooltip-down{top:100%;bottom:auto;transform:scale(0.9) translateZ(0) translateY(-20px);transform-origin:100% 0}.duet-tooltip.duet-tooltip-down::after{top:-20px;bottom:auto;border:10px solid transparent;border-bottom:10px solid rgb(255, 255, 255)}.duet-tooltip.duet-tooltip-down::before{top:-22px;bottom:auto;border:11px solid transparent;border-bottom:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip.duet-tooltip-down::before{border-bottom:11px solid rgb(228, 228, 230)}.duet-tooltip.duet-tooltip-left{right:-21px !important;transform-origin:100% 100% !important}.duet-tooltip.duet-tooltip-left::after{right:22px !important;transform:none !important}.duet-tooltip.duet-tooltip-left::before{right:21px !important;transform:none !important}.duet-tooltip.duet-tooltip-right{right:auto !important;left:-9px !important;transform-origin:100% 100% !important}.duet-tooltip.duet-tooltip-right::after{right:auto !important;left:22px !important;transform:none !important}.duet-tooltip.duet-tooltip-right::before{right:auto !important;left:21px !important;transform:none !important}.duet-tooltip.duet-tooltip-has-label{right:auto !important;left:0;width:282px !important;transform-origin:0 0 !important}.duet-tooltip.duet-tooltip-has-label::after{right:auto !important;left:1px !important;transform:none !important}.duet-tooltip.duet-tooltip-has-label::before{right:auto !important;left:0 !important;transform:none !important}.duet-tooltip.duet-tooltip-active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(-8px)}.duet-tooltip.duet-tooltip-active.duet-tooltip-down{transform:scale(1.0001) translateZ(0) translateY(8px)}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button.duet-theme-turva{color:rgb(198, 12, 48)}.duet-tooltip-button:hover{color:rgb(0, 77, 128)}.duet-tooltip-button:hover.duet-theme-turva{color:rgb(148, 9, 37)}.duet-tooltip-button:focus{background:transparent !important;outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}:host(.user-is-tabbing) .duet-tooltip-button.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-scrollable{padding:20px !important;width:100%;max-height:250px;padding-right:25px !important;overflow-y:auto;-webkit-hyphens:auto;hyphens:auto;border-radius:4px;-webkit-overflow-scrolling:touch}.duet-tooltip-scrollable:focus{outline:none}:host(.user-is-tabbing) .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-tooltip-scrollable::-webkit-scrollbar{width:4px}.duet-tooltip-scrollable::-webkit-scrollbar-track{border-radius:4px}.duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(225, 227, 230);border-radius:4px}.duet-theme-turva .duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(228, 228, 230)}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !important;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:600;line-height:1.25;text-align:left;white-space:normal;vertical-align:top}.duet-theme-turva .duet-tooltip-label{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-tooltip-close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:17px;height:17px;min-height:0 !important;padding:0 !important;margin:0 !important;line-height:normal;color:rgb(0, 41, 77);cursor:pointer;background:rgb(245, 248, 250);border-radius:50%;-webkit-appearance:none;appearance:none}.duet-tooltip-close:focus{outline:none;box-shadow:0 0 0 2px rgb(0, 119, 179)}.duet-theme-turva .duet-tooltip-close:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px rgb(23, 28, 58)}@media (min-width: 48em){.duet-tooltip.duet-mq-medium{right:-148px;width:320px;transform-origin:50% 100%}.duet-tooltip.duet-mq-medium::after{right:50%;transform:translateX(50%)}.duet-tooltip.duet-mq-medium::before{right:50%;transform:translateX(50%)}.duet-tooltip.duet-mq-medium.duet-tooltip-down{transform-origin:50% 0}}@media (min-width: 62em){.duet-tooltip.duet-mq-large{right:-148px;width:320px;transform-origin:50% 100%}.duet-tooltip.duet-mq-large::after{right:50%;transform:translateX(50%)}.duet-tooltip.duet-mq-large::before{right:50%;transform:translateX(50%)}.duet-tooltip.duet-mq-large.duet-tooltip-down{transform-origin:50% 0}}";
15
+ function getAlignment(placement) {
16
+ return placement.split('-')[1];
17
+ }
18
+
19
+ function getLengthFromAxis(axis) {
20
+ return axis === 'y' ? 'height' : 'width';
21
+ }
22
+
23
+ function getSide(placement) {
24
+ return placement.split('-')[0];
25
+ }
26
+
27
+ function getMainAxisFromPlacement(placement) {
28
+ return ['top', 'bottom'].includes(getSide(placement)) ? 'x' : 'y';
29
+ }
30
+
31
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
32
+ let {
33
+ reference,
34
+ floating
35
+ } = _ref;
36
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
37
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
38
+ const mainAxis = getMainAxisFromPlacement(placement);
39
+ const length = getLengthFromAxis(mainAxis);
40
+ const commonAlign = reference[length] / 2 - floating[length] / 2;
41
+ const side = getSide(placement);
42
+ const isVertical = mainAxis === 'x';
43
+ let coords;
44
+ switch (side) {
45
+ case 'top':
46
+ coords = {
47
+ x: commonX,
48
+ y: reference.y - floating.height
49
+ };
50
+ break;
51
+ case 'bottom':
52
+ coords = {
53
+ x: commonX,
54
+ y: reference.y + reference.height
55
+ };
56
+ break;
57
+ case 'right':
58
+ coords = {
59
+ x: reference.x + reference.width,
60
+ y: commonY
61
+ };
62
+ break;
63
+ case 'left':
64
+ coords = {
65
+ x: reference.x - floating.width,
66
+ y: commonY
67
+ };
68
+ break;
69
+ default:
70
+ coords = {
71
+ x: reference.x,
72
+ y: reference.y
73
+ };
74
+ }
75
+ switch (getAlignment(placement)) {
76
+ case 'start':
77
+ coords[mainAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
78
+ break;
79
+ case 'end':
80
+ coords[mainAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
81
+ break;
82
+ }
83
+ return coords;
84
+ }
85
+
86
+ /**
87
+ * Computes the `x` and `y` coordinates that will place the floating element
88
+ * next to a reference element when it is given a certain positioning strategy.
89
+ *
90
+ * This export does not have any `platform` interface logic. You will need to
91
+ * write one for the platform you are using Floating UI with.
92
+ */
93
+ const computePosition$1 = async (reference, floating, config) => {
94
+ const {
95
+ placement = 'bottom',
96
+ strategy = 'absolute',
97
+ middleware = [],
98
+ platform
99
+ } = config;
100
+ const validMiddleware = middleware.filter(Boolean);
101
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
102
+ let rects = await platform.getElementRects({
103
+ reference,
104
+ floating,
105
+ strategy
106
+ });
107
+ let {
108
+ x,
109
+ y
110
+ } = computeCoordsFromPlacement(rects, placement, rtl);
111
+ let statefulPlacement = placement;
112
+ let middlewareData = {};
113
+ let resetCount = 0;
114
+ for (let i = 0; i < validMiddleware.length; i++) {
115
+ const {
116
+ name,
117
+ fn
118
+ } = validMiddleware[i];
119
+ const {
120
+ x: nextX,
121
+ y: nextY,
122
+ data,
123
+ reset
124
+ } = await fn({
125
+ x,
126
+ y,
127
+ initialPlacement: placement,
128
+ placement: statefulPlacement,
129
+ strategy,
130
+ middlewareData,
131
+ rects,
132
+ platform,
133
+ elements: {
134
+ reference,
135
+ floating
136
+ }
137
+ });
138
+ x = nextX != null ? nextX : x;
139
+ y = nextY != null ? nextY : y;
140
+ middlewareData = {
141
+ ...middlewareData,
142
+ [name]: {
143
+ ...middlewareData[name],
144
+ ...data
145
+ }
146
+ };
147
+ if (reset && resetCount <= 50) {
148
+ resetCount++;
149
+ if (typeof reset === 'object') {
150
+ if (reset.placement) {
151
+ statefulPlacement = reset.placement;
152
+ }
153
+ if (reset.rects) {
154
+ rects = reset.rects === true ? await platform.getElementRects({
155
+ reference,
156
+ floating,
157
+ strategy
158
+ }) : reset.rects;
159
+ }
160
+ ({
161
+ x,
162
+ y
163
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
164
+ }
165
+ i = -1;
166
+ continue;
167
+ }
168
+ }
169
+ return {
170
+ x,
171
+ y,
172
+ placement: statefulPlacement,
173
+ strategy,
174
+ middlewareData
175
+ };
176
+ };
177
+
178
+ function expandPaddingObject(padding) {
179
+ return {
180
+ top: 0,
181
+ right: 0,
182
+ bottom: 0,
183
+ left: 0,
184
+ ...padding
185
+ };
186
+ }
187
+
188
+ function getSideObjectFromPadding(padding) {
189
+ return typeof padding !== 'number' ? expandPaddingObject(padding) : {
190
+ top: padding,
191
+ right: padding,
192
+ bottom: padding,
193
+ left: padding
194
+ };
195
+ }
196
+
197
+ function rectToClientRect(rect) {
198
+ return {
199
+ ...rect,
200
+ top: rect.y,
201
+ left: rect.x,
202
+ right: rect.x + rect.width,
203
+ bottom: rect.y + rect.height
204
+ };
205
+ }
206
+
207
+ /**
208
+ * Resolves with an object of overflow side offsets that determine how much the
209
+ * element is overflowing a given clipping boundary on each side.
210
+ * - positive = overflowing the boundary by that number of pixels
211
+ * - negative = how many pixels left before it will overflow
212
+ * - 0 = lies flush with the boundary
213
+ * @see https://floating-ui.com/docs/detectOverflow
214
+ */
215
+ async function detectOverflow(state, options) {
216
+ var _await$platform$isEle;
217
+ if (options === void 0) {
218
+ options = {};
219
+ }
220
+ const {
221
+ x,
222
+ y,
223
+ platform,
224
+ rects,
225
+ elements,
226
+ strategy
227
+ } = state;
228
+ const {
229
+ boundary = 'clippingAncestors',
230
+ rootBoundary = 'viewport',
231
+ elementContext = 'floating',
232
+ altBoundary = false,
233
+ padding = 0
234
+ } = options;
235
+ const paddingObject = getSideObjectFromPadding(padding);
236
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
237
+ const element = elements[altBoundary ? altContext : elementContext];
238
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
239
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
240
+ boundary,
241
+ rootBoundary,
242
+ strategy
243
+ }));
244
+ const rect = elementContext === 'floating' ? {
245
+ ...rects.floating,
246
+ x,
247
+ y
248
+ } : rects.reference;
249
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
250
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
251
+ x: 1,
252
+ y: 1
253
+ } : {
254
+ x: 1,
255
+ y: 1
256
+ };
257
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
258
+ rect,
259
+ offsetParent,
260
+ strategy
261
+ }) : rect);
262
+ return {
263
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
264
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
265
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
266
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
267
+ };
268
+ }
269
+
270
+ const min$1 = Math.min;
271
+ const max$1 = Math.max;
272
+
273
+ function within(min$1$1, value, max$1$1) {
274
+ return max$1(min$1$1, min$1(value, max$1$1));
275
+ }
276
+
277
+ /**
278
+ * Provides data to position an inner element of the floating element so that it
279
+ * appears centered to the reference element.
280
+ * @see https://floating-ui.com/docs/arrow
281
+ */
282
+ const arrow = options => ({
283
+ name: 'arrow',
284
+ options,
285
+ async fn(state) {
286
+ // Since `element` is required, we don't Partial<> the type.
287
+ const {
288
+ element,
289
+ padding = 0
290
+ } = options || {};
291
+ const {
292
+ x,
293
+ y,
294
+ placement,
295
+ rects,
296
+ platform,
297
+ elements
298
+ } = state;
299
+ if (element == null) {
300
+ return {};
301
+ }
302
+ const paddingObject = getSideObjectFromPadding(padding);
303
+ const coords = {
304
+ x,
305
+ y
306
+ };
307
+ const axis = getMainAxisFromPlacement(placement);
308
+ const length = getLengthFromAxis(axis);
309
+ const arrowDimensions = await platform.getDimensions(element);
310
+ const isYAxis = axis === 'y';
311
+ const minProp = isYAxis ? 'top' : 'left';
312
+ const maxProp = isYAxis ? 'bottom' : 'right';
313
+ const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
314
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
315
+ const startDiff = coords[axis] - rects.reference[axis];
316
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
317
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
318
+
319
+ // DOM platform can return `window` as the `offsetParent`.
320
+ if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
321
+ clientSize = elements.floating[clientProp] || rects.floating[length];
322
+ }
323
+ const centerToReference = endDiff / 2 - startDiff / 2;
324
+
325
+ // Make sure the arrow doesn't overflow the floating element if the center
326
+ // point is outside the floating element's bounds.
327
+ const min = paddingObject[minProp];
328
+ const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];
329
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
330
+ const offset = within(min, center, max);
331
+
332
+ // If the reference is small enough that the arrow's padding causes it to
333
+ // to point to nothing for an aligned placement, adjust the offset of the
334
+ // floating element itself. This stops `shift()` from taking action, but can
335
+ // be worked around by calling it again after the `arrow()` if desired.
336
+ const shouldAddOffset = getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min ? paddingObject[minProp] : paddingObject[maxProp]) - arrowDimensions[length] / 2 < 0;
337
+ const alignmentOffset = shouldAddOffset ? center < min ? min - center : max - center : 0;
338
+ return {
339
+ [axis]: coords[axis] - alignmentOffset,
340
+ data: {
341
+ [axis]: offset,
342
+ centerOffset: center - offset
343
+ }
344
+ };
345
+ }
346
+ });
347
+
348
+ const oppositeSideMap = {
349
+ left: 'right',
350
+ right: 'left',
351
+ bottom: 'top',
352
+ top: 'bottom'
353
+ };
354
+ function getOppositePlacement(placement) {
355
+ return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
356
+ }
357
+
358
+ function getAlignmentSides(placement, rects, rtl) {
359
+ if (rtl === void 0) {
360
+ rtl = false;
361
+ }
362
+ const alignment = getAlignment(placement);
363
+ const mainAxis = getMainAxisFromPlacement(placement);
364
+ const length = getLengthFromAxis(mainAxis);
365
+ let mainAlignmentSide = mainAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
366
+ if (rects.reference[length] > rects.floating[length]) {
367
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
368
+ }
369
+ return {
370
+ main: mainAlignmentSide,
371
+ cross: getOppositePlacement(mainAlignmentSide)
372
+ };
373
+ }
374
+
375
+ const oppositeAlignmentMap = {
376
+ start: 'end',
377
+ end: 'start'
378
+ };
379
+ function getOppositeAlignmentPlacement(placement) {
380
+ return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
381
+ }
382
+
383
+ function getExpandedPlacements(placement) {
384
+ const oppositePlacement = getOppositePlacement(placement);
385
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
386
+ }
387
+
388
+ function getSideList(side, isStart, rtl) {
389
+ const lr = ['left', 'right'];
390
+ const rl = ['right', 'left'];
391
+ const tb = ['top', 'bottom'];
392
+ const bt = ['bottom', 'top'];
393
+ switch (side) {
394
+ case 'top':
395
+ case 'bottom':
396
+ if (rtl) return isStart ? rl : lr;
397
+ return isStart ? lr : rl;
398
+ case 'left':
399
+ case 'right':
400
+ return isStart ? tb : bt;
401
+ default:
402
+ return [];
403
+ }
404
+ }
405
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
406
+ const alignment = getAlignment(placement);
407
+ let list = getSideList(getSide(placement), direction === 'start', rtl);
408
+ if (alignment) {
409
+ list = list.map(side => side + "-" + alignment);
410
+ if (flipAlignment) {
411
+ list = list.concat(list.map(getOppositeAlignmentPlacement));
412
+ }
413
+ }
414
+ return list;
415
+ }
416
+
417
+ /**
418
+ * Optimizes the visibility of the floating element by flipping the `placement`
419
+ * in order to keep it in view when the preferred placement(s) will overflow the
420
+ * clipping boundary. Alternative to `autoPlacement`.
421
+ * @see https://floating-ui.com/docs/flip
422
+ */
423
+ const flip = function (options) {
424
+ if (options === void 0) {
425
+ options = {};
426
+ }
427
+ return {
428
+ name: 'flip',
429
+ options,
430
+ async fn(state) {
431
+ var _middlewareData$flip;
432
+ const {
433
+ placement,
434
+ middlewareData,
435
+ rects,
436
+ initialPlacement,
437
+ platform,
438
+ elements
439
+ } = state;
440
+ const {
441
+ mainAxis: checkMainAxis = true,
442
+ crossAxis: checkCrossAxis = true,
443
+ fallbackPlacements: specifiedFallbackPlacements,
444
+ fallbackStrategy = 'bestFit',
445
+ fallbackAxisSideDirection = 'none',
446
+ flipAlignment = true,
447
+ ...detectOverflowOptions
448
+ } = options;
449
+ const side = getSide(placement);
450
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
451
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
452
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
453
+ if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
454
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
455
+ }
456
+ const placements = [initialPlacement, ...fallbackPlacements];
457
+ const overflow = await detectOverflow(state, detectOverflowOptions);
458
+ const overflows = [];
459
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
460
+ if (checkMainAxis) {
461
+ overflows.push(overflow[side]);
462
+ }
463
+ if (checkCrossAxis) {
464
+ const {
465
+ main,
466
+ cross
467
+ } = getAlignmentSides(placement, rects, rtl);
468
+ overflows.push(overflow[main], overflow[cross]);
469
+ }
470
+ overflowsData = [...overflowsData, {
471
+ placement,
472
+ overflows
473
+ }];
474
+
475
+ // One or more sides is overflowing.
476
+ if (!overflows.every(side => side <= 0)) {
477
+ var _middlewareData$flip2, _overflowsData$filter;
478
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
479
+ const nextPlacement = placements[nextIndex];
480
+ if (nextPlacement) {
481
+ // Try next placement and re-run the lifecycle.
482
+ return {
483
+ data: {
484
+ index: nextIndex,
485
+ overflows: overflowsData
486
+ },
487
+ reset: {
488
+ placement: nextPlacement
489
+ }
490
+ };
491
+ }
492
+
493
+ // First, find the candidates that fit on the mainAxis side of overflow,
494
+ // then find the placement that fits the best on the main crossAxis side.
495
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
496
+
497
+ // Otherwise fallback.
498
+ if (!resetPlacement) {
499
+ switch (fallbackStrategy) {
500
+ case 'bestFit':
501
+ {
502
+ var _overflowsData$map$so;
503
+ const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
504
+ if (placement) {
505
+ resetPlacement = placement;
506
+ }
507
+ break;
508
+ }
509
+ case 'initialPlacement':
510
+ resetPlacement = initialPlacement;
511
+ break;
512
+ }
513
+ }
514
+ if (placement !== resetPlacement) {
515
+ return {
516
+ reset: {
517
+ placement: resetPlacement
518
+ }
519
+ };
520
+ }
521
+ }
522
+ return {};
523
+ }
524
+ };
525
+ };
526
+
527
+ function getCrossAxis(axis) {
528
+ return axis === 'x' ? 'y' : 'x';
529
+ }
530
+
531
+ /**
532
+ * Optimizes the visibility of the floating element by shifting it in order to
533
+ * keep it in view when it will overflow the clipping boundary.
534
+ * @see https://floating-ui.com/docs/shift
535
+ */
536
+ const shift = function (options) {
537
+ if (options === void 0) {
538
+ options = {};
539
+ }
540
+ return {
541
+ name: 'shift',
542
+ options,
543
+ async fn(state) {
544
+ const {
545
+ x,
546
+ y,
547
+ placement
548
+ } = state;
549
+ const {
550
+ mainAxis: checkMainAxis = true,
551
+ crossAxis: checkCrossAxis = false,
552
+ limiter = {
553
+ fn: _ref => {
554
+ let {
555
+ x,
556
+ y
557
+ } = _ref;
558
+ return {
559
+ x,
560
+ y
561
+ };
562
+ }
563
+ },
564
+ ...detectOverflowOptions
565
+ } = options;
566
+ const coords = {
567
+ x,
568
+ y
569
+ };
570
+ const overflow = await detectOverflow(state, detectOverflowOptions);
571
+ const mainAxis = getMainAxisFromPlacement(getSide(placement));
572
+ const crossAxis = getCrossAxis(mainAxis);
573
+ let mainAxisCoord = coords[mainAxis];
574
+ let crossAxisCoord = coords[crossAxis];
575
+ if (checkMainAxis) {
576
+ const minSide = mainAxis === 'y' ? 'top' : 'left';
577
+ const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
578
+ const min = mainAxisCoord + overflow[minSide];
579
+ const max = mainAxisCoord - overflow[maxSide];
580
+ mainAxisCoord = within(min, mainAxisCoord, max);
581
+ }
582
+ if (checkCrossAxis) {
583
+ const minSide = crossAxis === 'y' ? 'top' : 'left';
584
+ const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
585
+ const min = crossAxisCoord + overflow[minSide];
586
+ const max = crossAxisCoord - overflow[maxSide];
587
+ crossAxisCoord = within(min, crossAxisCoord, max);
588
+ }
589
+ const limitedCoords = limiter.fn({
590
+ ...state,
591
+ [mainAxis]: mainAxisCoord,
592
+ [crossAxis]: crossAxisCoord
593
+ });
594
+ return {
595
+ ...limitedCoords,
596
+ data: {
597
+ x: limitedCoords.x - x,
598
+ y: limitedCoords.y - y
599
+ }
600
+ };
601
+ }
602
+ };
603
+ };
604
+
605
+ function getWindow(node) {
606
+ var _node$ownerDocument;
607
+ return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
608
+ }
609
+
610
+ function getComputedStyle$1(element) {
611
+ return getWindow(element).getComputedStyle(element);
612
+ }
613
+
614
+ function isNode(value) {
615
+ return value instanceof getWindow(value).Node;
616
+ }
617
+ function getNodeName(node) {
618
+ return isNode(node) ? (node.nodeName || '').toLowerCase() : '';
619
+ }
620
+
621
+ function isHTMLElement(value) {
622
+ return value instanceof getWindow(value).HTMLElement;
623
+ }
624
+ function isElement(value) {
625
+ return value instanceof getWindow(value).Element;
626
+ }
627
+ function isShadowRoot(node) {
628
+ // Browsers without `ShadowRoot` support.
629
+ if (typeof ShadowRoot === 'undefined') {
630
+ return false;
631
+ }
632
+ const OwnElement = getWindow(node).ShadowRoot;
633
+ return node instanceof OwnElement || node instanceof ShadowRoot;
634
+ }
635
+ function isOverflowElement(element) {
636
+ const {
637
+ overflow,
638
+ overflowX,
639
+ overflowY,
640
+ display
641
+ } = getComputedStyle$1(element);
642
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
643
+ }
644
+ function isTableElement(element) {
645
+ return ['table', 'td', 'th'].includes(getNodeName(element));
646
+ }
647
+ function isContainingBlock(element) {
648
+ const safari = isSafari();
649
+ const css = getComputedStyle$1(element);
650
+
651
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
652
+ return css.transform !== 'none' || css.perspective !== 'none' || !safari && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !safari && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
653
+ }
654
+ function isSafari() {
655
+ if (typeof CSS === 'undefined' || !CSS.supports) return false;
656
+ return CSS.supports('-webkit-backdrop-filter', 'none');
657
+ }
658
+ function isLastTraversableNode(node) {
659
+ return ['html', 'body', '#document'].includes(getNodeName(node));
660
+ }
661
+
662
+ const min = Math.min;
663
+ const max = Math.max;
664
+ const round = Math.round;
665
+
666
+ function getCssDimensions(element) {
667
+ const css = getComputedStyle$1(element);
668
+ // In testing environments, the `width` and `height` properties are empty
669
+ // strings for SVG elements, returning NaN. Fallback to `0` in this case.
670
+ let width = parseFloat(css.width) || 0;
671
+ let height = parseFloat(css.height) || 0;
672
+ const hasOffset = isHTMLElement(element);
673
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
674
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
675
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
676
+ if (shouldFallback) {
677
+ width = offsetWidth;
678
+ height = offsetHeight;
679
+ }
680
+ return {
681
+ width,
682
+ height,
683
+ fallback: shouldFallback
684
+ };
685
+ }
686
+
687
+ function unwrapElement(element) {
688
+ return !isElement(element) ? element.contextElement : element;
689
+ }
690
+
691
+ const FALLBACK_SCALE = {
692
+ x: 1,
693
+ y: 1
694
+ };
695
+ function getScale(element) {
696
+ const domElement = unwrapElement(element);
697
+ if (!isHTMLElement(domElement)) {
698
+ return FALLBACK_SCALE;
699
+ }
700
+ const rect = domElement.getBoundingClientRect();
701
+ const {
702
+ width,
703
+ height,
704
+ fallback
705
+ } = getCssDimensions(domElement);
706
+ let x = (fallback ? round(rect.width) : rect.width) / width;
707
+ let y = (fallback ? round(rect.height) : rect.height) / height;
708
+
709
+ // 0, NaN, or Infinity should always fallback to 1.
710
+
711
+ if (!x || !Number.isFinite(x)) {
712
+ x = 1;
713
+ }
714
+ if (!y || !Number.isFinite(y)) {
715
+ y = 1;
716
+ }
717
+ return {
718
+ x,
719
+ y
720
+ };
721
+ }
722
+
723
+ const noOffsets = {
724
+ x: 0,
725
+ y: 0
726
+ };
727
+ function getVisualOffsets(element, isFixed, floatingOffsetParent) {
728
+ var _win$visualViewport, _win$visualViewport2;
729
+ if (isFixed === void 0) {
730
+ isFixed = true;
731
+ }
732
+ if (!isSafari()) {
733
+ return noOffsets;
734
+ }
735
+ const win = element ? getWindow(element) : window;
736
+ if (!floatingOffsetParent || isFixed && floatingOffsetParent !== win) {
737
+ return noOffsets;
738
+ }
739
+ return {
740
+ x: ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0,
741
+ y: ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0
742
+ };
743
+ }
744
+
745
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
746
+ if (includeScale === void 0) {
747
+ includeScale = false;
748
+ }
749
+ if (isFixedStrategy === void 0) {
750
+ isFixedStrategy = false;
751
+ }
752
+ const clientRect = element.getBoundingClientRect();
753
+ const domElement = unwrapElement(element);
754
+ let scale = FALLBACK_SCALE;
755
+ if (includeScale) {
756
+ if (offsetParent) {
757
+ if (isElement(offsetParent)) {
758
+ scale = getScale(offsetParent);
759
+ }
760
+ } else {
761
+ scale = getScale(element);
762
+ }
763
+ }
764
+ const visualOffsets = getVisualOffsets(domElement, isFixedStrategy, offsetParent);
765
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
766
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
767
+ let width = clientRect.width / scale.x;
768
+ let height = clientRect.height / scale.y;
769
+ if (domElement) {
770
+ const win = getWindow(domElement);
771
+ const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
772
+ let currentIFrame = win.frameElement;
773
+ while (currentIFrame && offsetParent && offsetWin !== win) {
774
+ const iframeScale = getScale(currentIFrame);
775
+ const iframeRect = currentIFrame.getBoundingClientRect();
776
+ const css = getComputedStyle(currentIFrame);
777
+ iframeRect.x += (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
778
+ iframeRect.y += (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
779
+ x *= iframeScale.x;
780
+ y *= iframeScale.y;
781
+ width *= iframeScale.x;
782
+ height *= iframeScale.y;
783
+ x += iframeRect.x;
784
+ y += iframeRect.y;
785
+ currentIFrame = getWindow(currentIFrame).frameElement;
786
+ }
787
+ }
788
+ return rectToClientRect({
789
+ width,
790
+ height,
791
+ x,
792
+ y
793
+ });
794
+ }
795
+
796
+ function getDocumentElement(node) {
797
+ return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
798
+ }
799
+
800
+ function getNodeScroll(element) {
801
+ if (isElement(element)) {
802
+ return {
803
+ scrollLeft: element.scrollLeft,
804
+ scrollTop: element.scrollTop
805
+ };
806
+ }
807
+ return {
808
+ scrollLeft: element.pageXOffset,
809
+ scrollTop: element.pageYOffset
810
+ };
811
+ }
812
+
813
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
814
+ let {
815
+ rect,
816
+ offsetParent,
817
+ strategy
818
+ } = _ref;
819
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
820
+ const documentElement = getDocumentElement(offsetParent);
821
+ if (offsetParent === documentElement) {
822
+ return rect;
823
+ }
824
+ let scroll = {
825
+ scrollLeft: 0,
826
+ scrollTop: 0
827
+ };
828
+ let scale = {
829
+ x: 1,
830
+ y: 1
831
+ };
832
+ const offsets = {
833
+ x: 0,
834
+ y: 0
835
+ };
836
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
837
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
838
+ scroll = getNodeScroll(offsetParent);
839
+ }
840
+ if (isHTMLElement(offsetParent)) {
841
+ const offsetRect = getBoundingClientRect(offsetParent);
842
+ scale = getScale(offsetParent);
843
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
844
+ offsets.y = offsetRect.y + offsetParent.clientTop;
845
+ }
846
+ }
847
+ return {
848
+ width: rect.width * scale.x,
849
+ height: rect.height * scale.y,
850
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
851
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
852
+ };
853
+ }
854
+
855
+ function getWindowScrollBarX(element) {
856
+ // If <html> has a CSS width greater than the viewport, then this will be
857
+ // incorrect for RTL.
858
+ return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
859
+ }
860
+
861
+ // Gets the entire size of the scrollable document area, even extending outside
862
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
863
+ function getDocumentRect(element) {
864
+ const html = getDocumentElement(element);
865
+ const scroll = getNodeScroll(element);
866
+ const body = element.ownerDocument.body;
867
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
868
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
869
+ let x = -scroll.scrollLeft + getWindowScrollBarX(element);
870
+ const y = -scroll.scrollTop;
871
+ if (getComputedStyle$1(body).direction === 'rtl') {
872
+ x += max(html.clientWidth, body.clientWidth) - width;
873
+ }
874
+ return {
875
+ width,
876
+ height,
877
+ x,
878
+ y
879
+ };
880
+ }
881
+
882
+ function getParentNode(node) {
883
+ if (getNodeName(node) === 'html') {
884
+ return node;
885
+ }
886
+ const result =
887
+ // Step into the shadow DOM of the parent of a slotted node.
888
+ node.assignedSlot ||
889
+ // DOM Element detected.
890
+ node.parentNode ||
891
+ // ShadowRoot detected.
892
+ isShadowRoot(node) && node.host ||
893
+ // Fallback.
894
+ getDocumentElement(node);
895
+ return isShadowRoot(result) ? result.host : result;
896
+ }
897
+
898
+ function getNearestOverflowAncestor(node) {
899
+ const parentNode = getParentNode(node);
900
+ if (isLastTraversableNode(parentNode)) {
901
+ // `getParentNode` will never return a `Document` due to the fallback
902
+ // check, so it's either the <html> or <body> element.
903
+ return parentNode.ownerDocument.body;
904
+ }
905
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
906
+ return parentNode;
907
+ }
908
+ return getNearestOverflowAncestor(parentNode);
909
+ }
910
+
911
+ function getOverflowAncestors(node, list) {
912
+ var _node$ownerDocument;
913
+ if (list === void 0) {
914
+ list = [];
915
+ }
916
+ const scrollableAncestor = getNearestOverflowAncestor(node);
917
+ const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
918
+ const win = getWindow(scrollableAncestor);
919
+ if (isBody) {
920
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
921
+ }
922
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
923
+ }
924
+
925
+ function getViewportRect(element, strategy) {
926
+ const win = getWindow(element);
927
+ const html = getDocumentElement(element);
928
+ const visualViewport = win.visualViewport;
929
+ let width = html.clientWidth;
930
+ let height = html.clientHeight;
931
+ let x = 0;
932
+ let y = 0;
933
+ if (visualViewport) {
934
+ width = visualViewport.width;
935
+ height = visualViewport.height;
936
+ const visualViewportBased = isSafari();
937
+ if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
938
+ x = visualViewport.offsetLeft;
939
+ y = visualViewport.offsetTop;
940
+ }
941
+ }
942
+ return {
943
+ width,
944
+ height,
945
+ x,
946
+ y
947
+ };
948
+ }
949
+
950
+ // Returns the inner client rect, subtracting scrollbars if present.
951
+ function getInnerBoundingClientRect(element, strategy) {
952
+ const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
953
+ const top = clientRect.top + element.clientTop;
954
+ const left = clientRect.left + element.clientLeft;
955
+ const scale = isHTMLElement(element) ? getScale(element) : {
956
+ x: 1,
957
+ y: 1
958
+ };
959
+ const width = element.clientWidth * scale.x;
960
+ const height = element.clientHeight * scale.y;
961
+ const x = left * scale.x;
962
+ const y = top * scale.y;
963
+ return {
964
+ width,
965
+ height,
966
+ x,
967
+ y
968
+ };
969
+ }
970
+ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
971
+ let rect;
972
+ if (clippingAncestor === 'viewport') {
973
+ rect = getViewportRect(element, strategy);
974
+ } else if (clippingAncestor === 'document') {
975
+ rect = getDocumentRect(getDocumentElement(element));
976
+ } else if (isElement(clippingAncestor)) {
977
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
978
+ } else {
979
+ const visualOffsets = getVisualOffsets(element);
980
+ rect = {
981
+ ...clippingAncestor,
982
+ x: clippingAncestor.x - visualOffsets.x,
983
+ y: clippingAncestor.y - visualOffsets.y
984
+ };
985
+ }
986
+ return rectToClientRect(rect);
987
+ }
988
+ function hasFixedPositionAncestor(element, stopNode) {
989
+ const parentNode = getParentNode(element);
990
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
991
+ return false;
992
+ }
993
+ return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
994
+ }
995
+
996
+ // A "clipping ancestor" is an `overflow` element with the characteristic of
997
+ // clipping (or hiding) child elements. This returns all clipping ancestors
998
+ // of the given element up the tree.
999
+ function getClippingElementAncestors(element, cache) {
1000
+ const cachedResult = cache.get(element);
1001
+ if (cachedResult) {
1002
+ return cachedResult;
1003
+ }
1004
+ let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');
1005
+ let currentContainingBlockComputedStyle = null;
1006
+ const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
1007
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
1008
+
1009
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1010
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1011
+ const computedStyle = getComputedStyle$1(currentNode);
1012
+ const currentNodeIsContaining = isContainingBlock(currentNode);
1013
+ if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
1014
+ currentContainingBlockComputedStyle = null;
1015
+ }
1016
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
1017
+ if (shouldDropCurrentNode) {
1018
+ // Drop non-containing blocks.
1019
+ result = result.filter(ancestor => ancestor !== currentNode);
1020
+ } else {
1021
+ // Record last containing block for next iteration.
1022
+ currentContainingBlockComputedStyle = computedStyle;
1023
+ }
1024
+ currentNode = getParentNode(currentNode);
1025
+ }
1026
+ cache.set(element, result);
1027
+ return result;
1028
+ }
1029
+
1030
+ // Gets the maximum area that the element is visible in due to any number of
1031
+ // clipping ancestors.
1032
+ function getClippingRect(_ref) {
1033
+ let {
1034
+ element,
1035
+ boundary,
1036
+ rootBoundary,
1037
+ strategy
1038
+ } = _ref;
1039
+ const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
1040
+ const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1041
+ const firstClippingAncestor = clippingAncestors[0];
1042
+ const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
1043
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
1044
+ accRect.top = max(rect.top, accRect.top);
1045
+ accRect.right = min(rect.right, accRect.right);
1046
+ accRect.bottom = min(rect.bottom, accRect.bottom);
1047
+ accRect.left = max(rect.left, accRect.left);
1048
+ return accRect;
1049
+ }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
1050
+ return {
1051
+ width: clippingRect.right - clippingRect.left,
1052
+ height: clippingRect.bottom - clippingRect.top,
1053
+ x: clippingRect.left,
1054
+ y: clippingRect.top
1055
+ };
1056
+ }
1057
+
1058
+ function getDimensions(element) {
1059
+ return getCssDimensions(element);
1060
+ }
1061
+
1062
+ function getTrueOffsetParent(element, polyfill) {
1063
+ if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
1064
+ return null;
1065
+ }
1066
+ if (polyfill) {
1067
+ return polyfill(element);
1068
+ }
1069
+ return element.offsetParent;
1070
+ }
1071
+ function getContainingBlock(element) {
1072
+ let currentNode = getParentNode(element);
1073
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1074
+ if (isContainingBlock(currentNode)) {
1075
+ return currentNode;
1076
+ } else {
1077
+ currentNode = getParentNode(currentNode);
1078
+ }
1079
+ }
1080
+ return null;
1081
+ }
1082
+
1083
+ // Gets the closest ancestor positioned element. Handles some edge cases,
1084
+ // such as table ancestors and cross browser bugs.
1085
+ function getOffsetParent(element, polyfill) {
1086
+ const window = getWindow(element);
1087
+ if (!isHTMLElement(element)) {
1088
+ return window;
1089
+ }
1090
+ let offsetParent = getTrueOffsetParent(element, polyfill);
1091
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
1092
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1093
+ }
1094
+ if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
1095
+ return window;
1096
+ }
1097
+ return offsetParent || getContainingBlock(element) || window;
1098
+ }
1099
+
1100
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1101
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
1102
+ const documentElement = getDocumentElement(offsetParent);
1103
+ const isFixed = strategy === 'fixed';
1104
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1105
+ let scroll = {
1106
+ scrollLeft: 0,
1107
+ scrollTop: 0
1108
+ };
1109
+ const offsets = {
1110
+ x: 0,
1111
+ y: 0
1112
+ };
1113
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1114
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1115
+ scroll = getNodeScroll(offsetParent);
1116
+ }
1117
+ if (isHTMLElement(offsetParent)) {
1118
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1119
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1120
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1121
+ } else if (documentElement) {
1122
+ offsets.x = getWindowScrollBarX(documentElement);
1123
+ }
1124
+ }
1125
+ return {
1126
+ x: rect.left + scroll.scrollLeft - offsets.x,
1127
+ y: rect.top + scroll.scrollTop - offsets.y,
1128
+ width: rect.width,
1129
+ height: rect.height
1130
+ };
1131
+ }
1132
+
1133
+ const platform = {
1134
+ getClippingRect,
1135
+ convertOffsetParentRelativeRectToViewportRelativeRect,
1136
+ isElement,
1137
+ getDimensions,
1138
+ getOffsetParent,
1139
+ getDocumentElement,
1140
+ getScale,
1141
+ async getElementRects(_ref) {
1142
+ let {
1143
+ reference,
1144
+ floating,
1145
+ strategy
1146
+ } = _ref;
1147
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1148
+ const getDimensionsFn = this.getDimensions;
1149
+ return {
1150
+ reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),
1151
+ floating: {
1152
+ x: 0,
1153
+ y: 0,
1154
+ ...(await getDimensionsFn(floating))
1155
+ }
1156
+ };
1157
+ },
1158
+ getClientRects: element => Array.from(element.getClientRects()),
1159
+ isRTL: element => getComputedStyle$1(element).direction === 'rtl'
1160
+ };
1161
+
1162
+ /**
1163
+ * Computes the `x` and `y` coordinates that will place the floating element
1164
+ * next to a reference element when it is given a certain CSS positioning
1165
+ * strategy.
1166
+ */
1167
+ const computePosition = (reference, floating, options) => {
1168
+ // This caches the expensive `getClippingElementAncestors` function so that
1169
+ // multiple lifecycle resets re-use the same result. It only lives for a
1170
+ // single call. If other functions become expensive, we can add them as well.
1171
+ const cache = new Map();
1172
+ const mergedOptions = {
1173
+ platform,
1174
+ ...options
1175
+ };
1176
+ const platformWithCache = {
1177
+ ...mergedOptions.platform,
1178
+ _c: cache
1179
+ };
1180
+ return computePosition$1(reference, floating, {
1181
+ ...mergedOptions,
1182
+ platform: platformWithCache
1183
+ });
1184
+ };
1185
+
1186
+ const duetTooltipCss = "*,*::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;position:relative;z-index:200;display:inline-flex;width:auto;margin-top:-16px !important;margin-left:-3px !important;-webkit-tap-highlight-color:transparent}.duet-tooltip{position:absolute;z-index:950;display:none;width:282px;min-height:48px;max-height:340px;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.875rem;font-weight:400;line-height:1.25;color:rgb(0, 41, 77);visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-radius:4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.07);opacity:0;transition:300ms ease;transform-origin:100% 100%}.duet-tooltip.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);border-color:rgb(228, 228, 230);box-shadow:0 2px 10px 0 rgba(117, 117, 117, 0.13)}.duet-tooltip .arrow{position:absolute;width:22px;height:22px;pointer-events:none}.duet-tooltip .arrow.bottom,.duet-tooltip .arrow.bottom-start,.duet-tooltip .arrow.bottom-end{top:-21px}.duet-tooltip .arrow-container{position:relative;width:100%;height:100%;pointer-events:none}.duet-tooltip .arrow-container::after{position:absolute;z-index:200;width:0;height:0;pointer-events:none;content:\"\"}.duet-tooltip .arrow-container::before{position:absolute;z-index:100;width:0;height:0;pointer-events:none;content:\"\"}.duet-tooltip .arrow-container.top::after,.duet-tooltip .arrow-container.top-start::after,.duet-tooltip .arrow-container.top-end::after{bottom:2px;left:2px;border:10px solid transparent;border-top:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.top::before,.duet-tooltip .arrow-container.top-start::before,.duet-tooltip .arrow-container.top-end::before{bottom:-1px;left:1px;border:11px solid transparent;border-top:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip .arrow-container.top::before,.duet-theme-turva .duet-tooltip .arrow-container.top-start::before,.duet-theme-turva .duet-tooltip .arrow-container.top-end::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip .arrow-container.bottom::after,.duet-tooltip .arrow-container.bottom-start::after,.duet-tooltip .arrow-container.bottom-end::after{bottom:1px;left:2px;border:10px solid transparent;border-bottom:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.bottom::before,.duet-tooltip .arrow-container.bottom-start::before,.duet-tooltip .arrow-container.bottom-end::before{bottom:1px;left:1px;border:11px solid transparent;border-bottom:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip .arrow-container.bottom::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-start::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-end::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip.duet-tooltip-has-label{right:auto !important;left:0;width:282px !important;transform-origin:0 0 !important}.duet-tooltip.duet-tooltip-active{visibility:visible;opacity:1;transition-property:transform, opacity}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button.duet-theme-turva{color:rgb(198, 12, 48)}.duet-tooltip-button:hover{color:rgb(0, 77, 128)}.duet-tooltip-button:hover.duet-theme-turva{color:rgb(148, 9, 37)}.duet-tooltip-button:focus{background:transparent !important;outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}:host(.user-is-tabbing) .duet-tooltip-button.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-scrollable{padding:20px !important;width:100%;max-height:250px;padding-right:25px !important;overflow-y:auto;-webkit-hyphens:auto;hyphens:auto;border-radius:4px;-webkit-overflow-scrolling:touch}.duet-tooltip-scrollable:focus{outline:none}:host(.user-is-tabbing) .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-tooltip-scrollable::-webkit-scrollbar{width:4px}.duet-tooltip-scrollable::-webkit-scrollbar-track{border-radius:4px}.duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(225, 227, 230);border-radius:4px}.duet-theme-turva .duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(228, 228, 230)}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !important;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:600;line-height:1.25;text-align:left;white-space:normal;vertical-align:top}.duet-theme-turva .duet-tooltip-label{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-tooltip-close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:17px;height:17px;min-height:0 !important;padding:0 !important;margin:0 !important;line-height:normal;color:rgb(0, 41, 77);cursor:pointer;background:rgb(245, 248, 250);border-radius:50%;-webkit-appearance:none;appearance:none}.duet-tooltip-close:focus{outline:none;box-shadow:0 0 0 2px rgb(0, 119, 179)}.duet-theme-turva .duet-tooltip-close:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px rgb(23, 28, 58)}";
15
1187
 
16
1188
  const DuetTooltip = class {
17
1189
  constructor(hostRef) {
@@ -19,8 +1191,11 @@ const DuetTooltip = class {
19
1191
  /**
20
1192
  * Own Properties.
21
1193
  */
1194
+ this.mql = [
1195
+ window.matchMedia(tokens.media_query_medium.replace(/'/g, "")),
1196
+ window.matchMedia(tokens.media_query_large.replace(/'/g, "")),
1197
+ ];
22
1198
  this.tooltipId = createId.createID("DuetTooltip");
23
- this.lastScrollTop = 0;
24
1199
  /**
25
1200
  * Local methods
26
1201
  */
@@ -64,42 +1239,37 @@ const DuetTooltip = class {
64
1239
  this.handleCloseClick = () => {
65
1240
  this.closeTooltip(true);
66
1241
  };
67
- this.isElementInViewportVertically = () => {
68
- if (!this.tooltipEl) {
69
- return false;
1242
+ this.updatePlacement = async () => {
1243
+ var _a, _b;
1244
+ let preferRight = true;
1245
+ if (this.breakpoint === "large" && !this.mql[1].matches) {
1246
+ preferRight = false;
70
1247
  }
71
- var rect = this.tooltipEl.getBoundingClientRect();
72
- return (
73
- // This takes the possible Nav component into account
74
- rect.top >= 100 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight));
75
- };
76
- this.handleVerticalVisibility = () => {
77
- const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
78
- if (!this.isElementInViewportVertically()) {
79
- this.openDown = scrollTop > this.lastScrollTop;
1248
+ else if (this.breakpoint === "medium" && !this.mql[0].matches) {
1249
+ preferRight = false;
80
1250
  }
81
- this.lastScrollTop = Math.max(0, scrollTop);
82
- };
83
- this.handleHorizontalVisibility = () => {
84
- var rect = this.tooltipEl.getBoundingClientRect();
85
- const isLeftSideVisible = rect.left >= 0;
86
- const isRightSideVisible = rect.right < (window.innerWidth || document.documentElement.clientWidth);
87
- if (!isLeftSideVisible || (this.direction !== "right" && this.openRight)) {
88
- this.openRight = true;
1251
+ let placement = preferRight ? "top-start" : "top-end";
1252
+ if (this.direction === "left") {
1253
+ placement = "top-end";
89
1254
  }
90
- else {
91
- this.openRight = this.direction === "right";
92
- }
93
- if (!isRightSideVisible || (this.direction !== "left" && this.openLeft)) {
94
- this.openLeft = true;
95
- }
96
- else {
97
- this.openLeft = this.direction === "left";
1255
+ else if (this.direction === "right") {
1256
+ placement = "top-start";
98
1257
  }
1258
+ const position = await computePosition(this.buttonEl, this.tooltipEl, {
1259
+ placement,
1260
+ middleware: [flip(), shift({ padding: 5 }), arrow({ element: this.arrowEl })],
1261
+ });
1262
+ this.tooltipY = position.y;
1263
+ this.tooltipX = position.x;
1264
+ this.placement = position.placement;
1265
+ this.arrowY = (_a = position.middlewareData.arrow) === null || _a === void 0 ? void 0 : _a.y;
1266
+ this.arrowX = (_b = position.middlewareData.arrow) === null || _b === void 0 ? void 0 : _b.x;
99
1267
  };
100
- this.openDown = false;
101
- this.openLeft = false;
102
- this.openRight = false;
1268
+ this.placement = "bottom";
1269
+ this.tooltipY = undefined;
1270
+ this.tooltipX = undefined;
1271
+ this.arrowX = undefined;
1272
+ this.arrowY = undefined;
103
1273
  this.theme = "";
104
1274
  this.language = languageUtils.getLanguage();
105
1275
  this.accessibleLabelDefault = {
@@ -137,7 +1307,7 @@ const DuetTooltip = class {
137
1307
  themeableComponent.inheritGlobalTheme(this);
138
1308
  }
139
1309
  componentDidLoad() {
140
- this.handleHorizontalVisibility();
1310
+ this.updatePlacement();
141
1311
  }
142
1312
  componentDidUpdate() {
143
1313
  switch (this.focusTarget) {
@@ -163,15 +1333,14 @@ const DuetTooltip = class {
163
1333
  clearTimeout(this.scrollTimer);
164
1334
  this.scrollTimer = setTimeout(() => {
165
1335
  if (this.active) {
166
- this.handleHorizontalVisibility();
167
- this.handleVerticalVisibility();
1336
+ this.updatePlacement();
168
1337
  }
169
1338
  }, 100);
170
1339
  }
171
1340
  handleWindowResize() {
172
1341
  clearTimeout(this.resizeTimer);
173
1342
  this.resizeTimer = setTimeout(() => {
174
- this.handleHorizontalVisibility();
1343
+ this.updatePlacement();
175
1344
  }, 100);
176
1345
  }
177
1346
  handleDocumentClick(e) {
@@ -186,11 +1355,10 @@ const DuetTooltip = class {
186
1355
  }
187
1356
  async handleActiveChange(newActiveValue) {
188
1357
  if (newActiveValue) {
189
- this.handleHorizontalVisibility();
190
- this.openDown = !this.isElementInViewportVertically();
1358
+ this.updatePlacement();
191
1359
  }
192
1360
  else {
193
- setTimeout(() => (this.openDown = false), 300);
1361
+ setTimeout(() => this.updatePlacement(), 300);
194
1362
  }
195
1363
  }
196
1364
  /**
@@ -204,23 +1372,27 @@ const DuetTooltip = class {
204
1372
  // top of other tooltips and the header.
205
1373
  zIndex: this.active ? "201" : "",
206
1374
  };
1375
+ const positionStyles = {
1376
+ top: `${this.tooltipY}px`,
1377
+ left: `${this.tooltipX}px`,
1378
+ display: "block",
1379
+ };
1380
+ const arrowStyles = {
1381
+ top: this.arrowY ? `${this.arrowY}px` : undefined,
1382
+ left: this.arrowX ? `${this.arrowX}px` : undefined,
1383
+ };
207
1384
  return (index.h(index.Host, { style: tooltipStyles }, index.h("button", { ref: element => (this.buttonEl = element), "aria-controls": this.tooltipId, "aria-expanded": this.active ? "true" : "false", onClick: this.toggleOpen, type: "button", class: {
208
1385
  "duet-tooltip-button": true,
209
1386
  "duet-tooltip-button-has-label": !!this.label,
210
1387
  "duet-theme-turva": this.theme === "turva",
211
1388
  } }, index.h("svg", { "aria-hidden": "true", role: "img", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z" }), index.h("circle", { cx: "11.625", cy: "7.125", r: "1.125" }), index.h("path", { d: "m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z" })), this.label ? (index.h("span", { class: "duet-tooltip-label" }, this.label)) : (index.h("duet-visually-hidden", null, this.accessibleInputLabel
212
1389
  ? `${this.accessibleInputLabel}, ${this.accessibleLabel}`
213
- : this.accessibleLabel))), index.h("div", { ref: element => (this.tooltipEl = element), class: {
1390
+ : this.accessibleLabel))), index.h("div", { ref: element => (this.tooltipEl = element), style: positionStyles, class: {
214
1391
  "duet-tooltip": true,
215
- "duet-mq-large": this.breakpoint === "large",
216
- "duet-mq-medium": this.breakpoint === "medium",
217
1392
  "duet-theme-turva": this.theme === "turva",
218
- "duet-tooltip-down": this.openDown,
219
1393
  "duet-tooltip-has-label": !!this.label,
220
- "duet-tooltip-left": this.openLeft,
221
- "duet-tooltip-right": this.openRight,
222
1394
  "duet-tooltip-active": this.active === true,
223
- }, onClick: e => e.stopPropagation(), onKeyDown: this.handleKeyDown, onFocusout: this.handleFocusOut }, index.h("div", { ref: element => (this.scrollableEl = element), class: "duet-tooltip-scrollable", tabindex: "0", id: this.tooltipId }, index.h("slot", null)), index.h("button", { type: "button", class: "duet-tooltip-close", onClick: this.handleCloseClick }, index.h("duet-icon", { name: "navigation-close-small", margin: "none", color: "currentColor", size: "xxx-small" }), index.h("duet-visually-hidden", null, this.accessibleCloseLabel)))));
1395
+ }, onClick: e => e.stopPropagation(), onKeyDown: this.handleKeyDown, onFocusout: this.handleFocusOut }, index.h("div", { ref: element => (this.scrollableEl = element), class: "duet-tooltip-scrollable", tabindex: "0", id: this.tooltipId }, index.h("slot", null)), index.h("div", { ref: element => (this.arrowEl = element), class: { arrow: true, [this.placement]: true }, style: arrowStyles }, index.h("div", { class: { "arrow-container": true, [this.placement]: true } })), index.h("button", { type: "button", class: "duet-tooltip-close", onClick: this.handleCloseClick }, index.h("duet-icon", { name: "navigation-close-small", margin: "none", color: "currentColor", size: "xxx-small" }), index.h("duet-visually-hidden", null, this.accessibleCloseLabel)))));
224
1396
  }
225
1397
  get element() { return index.getElement(this); }
226
1398
  static get watchers() { return {