@duetds/components 6.10.2 → 6.10.4

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 (591) hide show
  1. package/hydrate/index.js +4370 -3798
  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-banner.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
  9. package/lib/cjs/duet-callout.cjs.entry.js +1 -1
  10. package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
  11. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-chip.cjs.entry.js +168 -0
  15. package/lib/cjs/duet-choice_2.cjs.entry.js +24 -11
  16. package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  21. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-editable-table_3.cjs.entry.js +32 -135
  23. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-grid_2.cjs.entry.js +6 -3
  27. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  39. package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-number-input.cjs.entry.js +8 -1
  43. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-popup-menu-item.cjs.entry.js +45 -0
  46. package/lib/cjs/duet-popup-menu.cjs.entry.js +113 -0
  47. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  48. package/lib/cjs/duet-promo-card.cjs.entry.js +1 -1
  49. package/lib/cjs/duet-radio_2.cjs.entry.js +5 -4
  50. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  51. package/lib/cjs/duet-scrollable_3.cjs.entry.js +2 -2
  52. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  53. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  54. package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-show-more.cjs.entry.js +95 -0
  56. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
  60. package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
  61. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  62. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  65. package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
  66. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  68. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  69. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  70. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  71. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  72. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -1174
  73. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  74. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  75. package/lib/cjs/duet-upload-item.cjs.entry.js +93 -0
  76. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  77. package/lib/cjs/duet.cjs.js +2 -2
  78. package/lib/cjs/errorcodes.utils-5deca818.js +39 -0
  79. package/lib/cjs/floating-ui.dom.esm-3801794e.js +1251 -0
  80. package/lib/cjs/{focus-utils-a7ec8d4d.js → focus-utils-a66763f4.js} +1 -1
  81. package/lib/cjs/{index-b91d0c7f.js → index-4eb7ce33.js} +1 -1
  82. package/lib/cjs/loader.cjs.js +2 -2
  83. package/lib/collection/collection-manifest.json +5 -0
  84. package/lib/collection/components/duet-chip/duet-chip.css +202 -0
  85. package/lib/collection/components/duet-chip/duet-chip.js +395 -0
  86. package/lib/collection/components/duet-choice/duet-choice.css +60 -33
  87. package/lib/collection/components/duet-choice/duet-choice.js +39 -8
  88. package/lib/collection/components/duet-editable-table/duet-editable-table.js +3 -1
  89. package/lib/collection/components/duet-grid/duet-grid.css +260 -116
  90. package/lib/collection/components/duet-grid/duet-grid.js +22 -1
  91. package/lib/collection/components/duet-number-input/duet-number-input.js +23 -0
  92. package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +57 -0
  93. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +361 -0
  94. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +69 -0
  95. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +225 -0
  96. package/lib/collection/components/duet-radio/duet-radio.css +3 -3
  97. package/lib/collection/components/duet-radio/duet-radio.js +9 -3
  98. package/lib/collection/components/duet-scrollable/duet-scrollable.css +1 -1
  99. package/lib/collection/components/duet-show-more/duet-show-more.css +46 -0
  100. package/lib/collection/components/duet-show-more/duet-show-more.js +214 -0
  101. package/lib/collection/components/duet-upload/duet-upload.js +37 -13
  102. package/lib/collection/components/duet-upload-item/duet-upload-item.js +299 -0
  103. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  104. package/lib/dist-custom-elements/duet-alert.js +1 -1
  105. package/lib/dist-custom-elements/duet-badge.js +1 -1
  106. package/lib/dist-custom-elements/duet-banner.js +4 -4
  107. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  108. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  109. package/lib/dist-custom-elements/duet-button.js +1 -1
  110. package/lib/dist-custom-elements/duet-callout.js +3 -3
  111. package/lib/dist-custom-elements/duet-caption.js +1 -1
  112. package/lib/dist-custom-elements/duet-card.js +3 -3
  113. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  114. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  115. package/lib/dist-custom-elements/duet-chip.d.ts +11 -0
  116. package/lib/dist-custom-elements/duet-chip.js +200 -0
  117. package/lib/dist-custom-elements/duet-choice-group.js +6 -6
  118. package/lib/dist-custom-elements/duet-choice.js +28 -14
  119. package/lib/dist-custom-elements/duet-collapsible.js +2 -2
  120. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  121. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  122. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  123. package/lib/dist-custom-elements/duet-date-picker.js +10 -10
  124. package/lib/dist-custom-elements/duet-divider.js +1 -1
  125. package/lib/dist-custom-elements/duet-editable-table.js +10 -8
  126. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  127. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  128. package/lib/dist-custom-elements/duet-footer.js +4 -4
  129. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  130. package/lib/dist-custom-elements/duet-grid.js +1 -1
  131. package/lib/dist-custom-elements/duet-header.js +8 -8
  132. package/lib/dist-custom-elements/duet-heading.js +1 -1
  133. package/lib/dist-custom-elements/duet-hero.js +9 -9
  134. package/lib/dist-custom-elements/duet-icon.js +1 -1
  135. package/lib/dist-custom-elements/duet-input.js +1 -1
  136. package/lib/dist-custom-elements/duet-label.js +1 -1
  137. package/lib/dist-custom-elements/duet-layout.js +1 -1
  138. package/lib/dist-custom-elements/duet-link.js +1 -1
  139. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  140. package/lib/dist-custom-elements/duet-list.js +1 -1
  141. package/lib/dist-custom-elements/duet-logo.js +1 -1
  142. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  143. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  144. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  145. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  146. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  147. package/lib/dist-custom-elements/duet-modal.js +7 -7
  148. package/lib/dist-custom-elements/duet-multiselect.js +8 -8
  149. package/lib/dist-custom-elements/duet-nav.js +1 -1
  150. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  151. package/lib/dist-custom-elements/duet-notification.js +2 -2
  152. package/lib/dist-custom-elements/duet-number-input.js +18 -10
  153. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  154. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  155. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  156. package/lib/dist-custom-elements/duet-popup-menu-item.d.ts +11 -0
  157. package/lib/dist-custom-elements/duet-popup-menu-item.js +75 -0
  158. package/lib/dist-custom-elements/duet-popup-menu.d.ts +11 -0
  159. package/lib/dist-custom-elements/duet-popup-menu.js +142 -0
  160. package/lib/dist-custom-elements/duet-progress.js +1 -1
  161. package/lib/dist-custom-elements/duet-promo-card.js +3 -3
  162. package/lib/dist-custom-elements/duet-radio-group.js +6 -6
  163. package/lib/dist-custom-elements/duet-radio.js +6 -5
  164. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  165. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  166. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  167. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  168. package/lib/dist-custom-elements/duet-select.js +1 -1
  169. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  170. package/lib/dist-custom-elements/duet-show-more.d.ts +11 -0
  171. package/lib/dist-custom-elements/duet-show-more.js +137 -0
  172. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  173. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  174. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  175. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  176. package/lib/dist-custom-elements/duet-slideout.js +2 -2
  177. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  178. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  179. package/lib/dist-custom-elements/duet-step.js +4 -4
  180. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  181. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  182. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  183. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  184. package/lib/dist-custom-elements/duet-submenu-bar.js +2 -2
  185. package/lib/dist-custom-elements/duet-tab-group.js +11 -11
  186. package/lib/dist-custom-elements/duet-tab.js +1 -1
  187. package/lib/dist-custom-elements/duet-table.js +1 -1
  188. package/lib/dist-custom-elements/duet-textarea.js +8 -8
  189. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  190. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  191. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  192. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  193. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  194. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  195. package/lib/dist-custom-elements/duet-tray.js +3 -3
  196. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  197. package/lib/dist-custom-elements/duet-upload-item.d.ts +11 -0
  198. package/lib/dist-custom-elements/duet-upload-item.js +9 -0
  199. package/lib/dist-custom-elements/duet-upload.js +58 -158
  200. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  201. package/lib/dist-custom-elements/index.js +1 -1
  202. package/lib/dist-custom-elements/{p-4197b9ee.js → p-006d0fb1.js} +2 -2
  203. package/lib/dist-custom-elements/{p-05139591.js → p-03297bf3.js} +1 -1
  204. package/lib/dist-custom-elements/{p-e3acab40.js → p-08f20e44.js} +2 -2
  205. package/lib/dist-custom-elements/{p-39c6c68e.js → p-0f04ecb5.js} +1 -1
  206. package/lib/dist-custom-elements/{p-c202693f.js → p-171c70e8.js} +1 -1
  207. package/lib/dist-custom-elements/{p-8fb68cb1.js → p-1b34adf1.js} +2 -2
  208. package/lib/dist-custom-elements/{p-d6a6460a.js → p-1f14a267.js} +1 -1
  209. package/lib/dist-custom-elements/{p-f6b5ce88.js → p-226f50bb.js} +1 -1
  210. package/lib/dist-custom-elements/{p-1b3de4b8.js → p-25d3d458.js} +1 -1
  211. package/lib/dist-custom-elements/{p-2b132855.js → p-25fa826f.js} +1 -1
  212. package/lib/dist-custom-elements/{p-e6f6efa6.js → p-265d42fd.js} +1 -1
  213. package/lib/dist-custom-elements/{p-96b624ec.js → p-26a65533.js} +1 -1
  214. package/lib/dist-custom-elements/{p-419d2da0.js → p-2b8c0c2f.js} +6 -6
  215. package/lib/dist-custom-elements/{p-28658e20.js → p-37255027.js} +8 -8
  216. package/lib/dist-custom-elements/{p-58105b4f.js → p-3e609785.js} +1 -1
  217. package/lib/dist-custom-elements/p-4c575cf4.js +278 -0
  218. package/lib/dist-custom-elements/{p-9e83a449.js → p-5114f1bd.js} +2 -2
  219. package/lib/dist-custom-elements/{p-8638ba69.js → p-5c48ca92.js} +1 -1
  220. package/lib/dist-custom-elements/{p-ea756e9e.js → p-661fee29.js} +6 -6
  221. package/lib/dist-custom-elements/{p-3595aea9.js → p-7681059e.js} +1 -1
  222. package/lib/dist-custom-elements/{p-7d6d90bc.js → p-7c2e755b.js} +1 -1
  223. package/lib/dist-custom-elements/{p-e3ac121c.js → p-80cd62f8.js} +5 -5
  224. package/lib/dist-custom-elements/p-84a78894.js +187 -0
  225. package/lib/dist-custom-elements/{p-62f3b6cb.js → p-8a1632b1.js} +3 -3
  226. package/lib/dist-custom-elements/{p-eb29050b.js → p-a60259d1.js} +1 -1
  227. package/lib/dist-custom-elements/{p-227cc94f.js → p-b98f1d2a.js} +1 -1
  228. package/lib/dist-custom-elements/{p-6de01596.js → p-c85e7fbd.js} +1 -1
  229. package/lib/dist-custom-elements/{p-6f4b6168.js → p-d5e61aac.js} +1 -1
  230. package/lib/dist-custom-elements/{p-a0f68c00.js → p-dbb9df4e.js} +3 -3
  231. package/lib/dist-custom-elements/{p-38b3c30a.js → p-df10a767.js} +71 -274
  232. package/lib/dist-custom-elements/p-e0afb5aa.js +197 -0
  233. package/lib/dist-custom-elements/{p-beca0ced.js → p-e467de13.js} +1 -1
  234. package/lib/dist-custom-elements/{p-2747b8c6.js → p-ffc196f5.js} +4 -4
  235. package/lib/duet/duet.esm.js +1 -1
  236. package/lib/duet/duet.js +1 -1
  237. package/lib/duet/{p-d3323581.system.entry.js → p-000a0a75.system.entry.js} +1 -1
  238. package/lib/duet/{p-6766ef3d.system.entry.js → p-00355028.system.entry.js} +1 -1
  239. package/lib/duet/{p-62b68de6.system.js → p-053be9dd.system.js} +1 -1
  240. package/lib/duet/p-05dd0fb6.entry.js +4 -0
  241. package/lib/duet/{p-1e6f5e74.system.entry.js → p-06969947.system.entry.js} +1 -1
  242. package/lib/duet/p-08c7360e.system.entry.js +4 -0
  243. package/lib/duet/{p-5e7dc52a.system.entry.js → p-099119d3.system.entry.js} +1 -1
  244. package/lib/duet/{p-6ad538a7.system.entry.js → p-0b696003.system.entry.js} +1 -1
  245. package/lib/duet/p-101cc3fe.system.entry.js +4 -0
  246. package/lib/duet/{p-1df0bbf9.system.entry.js → p-110c2c76.system.entry.js} +1 -1
  247. package/lib/duet/{p-8c404f51.system.entry.js → p-11d01178.system.entry.js} +1 -1
  248. package/lib/duet/{p-87f85912.system.entry.js → p-13fa33f3.system.entry.js} +1 -1
  249. package/lib/duet/{p-91a5c4fd.system.entry.js → p-1483de5f.system.entry.js} +1 -1
  250. package/lib/duet/{p-62b435d1.system.entry.js → p-15505723.system.entry.js} +1 -1
  251. package/lib/duet/{p-89d9030e.system.entry.js → p-1616c51d.system.entry.js} +1 -1
  252. package/lib/duet/{p-1f3d12d2.system.entry.js → p-184ee980.system.entry.js} +1 -1
  253. package/lib/duet/p-19ea4e54.entry.js +4 -0
  254. package/lib/duet/{p-cfde4f9a.system.entry.js → p-1ff16557.system.entry.js} +1 -1
  255. package/lib/duet/{p-f88ac93f.system.entry.js → p-20c19d2e.system.entry.js} +1 -1
  256. package/lib/duet/p-26ed5006.system.entry.js +4 -0
  257. package/lib/duet/{p-72a2ff4d.entry.js → p-276da9b8.entry.js} +1 -1
  258. package/lib/duet/{p-94d448f9.system.entry.js → p-28b0deff.system.entry.js} +1 -1
  259. package/lib/duet/{p-03522bb4.entry.js → p-28cf3d78.entry.js} +1 -1
  260. package/lib/duet/{p-af3060c1.system.entry.js → p-2a37e574.system.entry.js} +1 -1
  261. package/lib/duet/{p-de31586c.system.entry.js → p-2a9b8270.system.entry.js} +1 -1
  262. package/lib/duet/{p-245a63f4.entry.js → p-2a9e5e4c.entry.js} +1 -1
  263. package/lib/duet/{p-17d2c223.system.entry.js → p-2bd98cbe.system.entry.js} +1 -1
  264. package/lib/duet/{p-c424c794.entry.js → p-31155f08.entry.js} +1 -1
  265. package/lib/duet/{p-8f7f4724.entry.js → p-322f69c7.entry.js} +1 -1
  266. package/lib/duet/{p-56b92797.entry.js → p-32d31570.entry.js} +1 -1
  267. package/lib/duet/{p-909e088e.system.entry.js → p-32ee127a.system.entry.js} +1 -1
  268. package/lib/duet/{p-d159787d.entry.js → p-35b74797.entry.js} +1 -1
  269. package/lib/duet/{p-058dfaad.entry.js → p-368e63a8.entry.js} +1 -1
  270. package/lib/duet/{p-e7af2cd8.system.entry.js → p-380ead38.system.entry.js} +1 -1
  271. package/lib/duet/{p-c7fbe38a.entry.js → p-38e24930.entry.js} +1 -1
  272. package/lib/duet/{p-6392cafe.entry.js → p-3b33c459.entry.js} +1 -1
  273. package/lib/duet/{p-2f8c7a7d.entry.js → p-3c43d0ee.entry.js} +1 -1
  274. package/lib/duet/{p-30551712.system.entry.js → p-40463065.system.entry.js} +1 -1
  275. package/lib/duet/p-434b31e9.system.js +4 -0
  276. package/lib/duet/{p-5c4a2f44.system.entry.js → p-45046cb8.system.entry.js} +1 -1
  277. package/lib/duet/{p-99a8b5f5.entry.js → p-4667e5cc.entry.js} +1 -1
  278. package/lib/duet/{p-bbadf525.system.entry.js → p-4956fa1c.system.entry.js} +1 -1
  279. package/lib/duet/{p-d18383cd.entry.js → p-4af3a90a.entry.js} +1 -1
  280. package/lib/duet/{p-b906790d.entry.js → p-4f321fb8.entry.js} +1 -1
  281. package/lib/duet/{p-29ce564d.entry.js → p-4f90dd0a.entry.js} +1 -1
  282. package/lib/duet/{p-a6917de1.system.entry.js → p-4fc64fe9.system.entry.js} +1 -1
  283. package/lib/duet/{p-6a42d57c.system.entry.js → p-521b2f02.system.entry.js} +1 -1
  284. package/lib/duet/p-540d7ed6.entry.js +4 -0
  285. package/lib/duet/p-549a1ffd.system.entry.js +4 -0
  286. package/lib/duet/{p-eb9c8e60.entry.js → p-5e2af124.entry.js} +1 -1
  287. package/lib/duet/{p-cad8060d.system.entry.js → p-5ed8969b.system.entry.js} +1 -1
  288. package/lib/duet/{p-420dfc2c.entry.js → p-604adb3e.entry.js} +1 -1
  289. package/lib/duet/{p-c085e346.system.entry.js → p-60c99082.system.entry.js} +1 -1
  290. package/lib/duet/{p-ef033a06.system.entry.js → p-6508eed1.system.entry.js} +1 -1
  291. package/lib/duet/{p-09daf29e.system.entry.js → p-684b2d77.system.entry.js} +1 -1
  292. package/lib/duet/{p-0738bb7d.system.entry.js → p-6892546a.system.entry.js} +1 -1
  293. package/lib/duet/{p-36edc06c.system.entry.js → p-699f593c.system.entry.js} +1 -1
  294. package/lib/duet/p-6b115b63.system.js +4 -0
  295. package/lib/duet/{p-ed78f6fe.system.entry.js → p-6baede6c.system.entry.js} +1 -1
  296. package/lib/duet/{p-42e270f3.entry.js → p-6bb42603.entry.js} +1 -1
  297. package/lib/duet/{p-0dda8331.entry.js → p-6e93b2f3.entry.js} +1 -1
  298. package/lib/duet/{p-dc9bf216.entry.js → p-6ee35830.entry.js} +1 -1
  299. package/lib/duet/{p-9c554b07.entry.js → p-700cc5d1.entry.js} +1 -1
  300. package/lib/duet/{p-ff5f4d38.entry.js → p-721bf508.entry.js} +1 -1
  301. package/lib/duet/{p-a4cc9386.system.entry.js → p-7284cb09.system.entry.js} +1 -1
  302. package/lib/duet/{p-d85d8db5.entry.js → p-72d18d55.entry.js} +1 -1
  303. package/lib/duet/p-756341c2.system.entry.js +4 -0
  304. package/lib/duet/{p-a31222e3.entry.js → p-7565b093.entry.js} +1 -1
  305. package/lib/duet/{p-673127ac.system.entry.js → p-773268e7.system.entry.js} +1 -1
  306. package/lib/duet/{p-30c684e8.entry.js → p-77616680.entry.js} +1 -1
  307. package/lib/duet/{p-f4799c34.system.entry.js → p-7a3071a5.system.entry.js} +1 -1
  308. package/lib/duet/{p-779be7c6.system.entry.js → p-7e061e75.system.entry.js} +1 -1
  309. package/lib/duet/{p-8ec5c49e.entry.js → p-7f588669.entry.js} +1 -1
  310. package/lib/duet/p-8094e185.entry.js +4 -0
  311. package/lib/duet/{p-7dea5e1a.system.entry.js → p-8146f5d7.system.entry.js} +1 -1
  312. package/lib/duet/{p-81668ed2.system.entry.js → p-82330774.system.entry.js} +1 -1
  313. package/lib/duet/{p-1d3647c6.system.entry.js → p-8275330c.system.entry.js} +1 -1
  314. package/lib/duet/p-82b5380b.system.js +4 -0
  315. package/lib/duet/{p-0fbdbb6a.entry.js → p-8445fc10.entry.js} +1 -1
  316. package/lib/duet/{p-0b34d9b5.system.entry.js → p-8584bcfe.system.entry.js} +1 -1
  317. package/lib/duet/{p-07300cb6.entry.js → p-86e7a88a.entry.js} +1 -1
  318. package/lib/duet/p-871eca43.entry.js +4 -0
  319. package/lib/duet/{p-72d1f618.system.entry.js → p-8862fec1.system.entry.js} +1 -1
  320. package/lib/duet/{p-1b11e540.entry.js → p-8cf359d9.entry.js} +1 -1
  321. package/lib/duet/{p-2528a411.system.entry.js → p-8daa915d.system.entry.js} +1 -1
  322. package/lib/duet/{p-379e2995.system.entry.js → p-8db6114f.system.entry.js} +1 -1
  323. package/lib/duet/p-90f06b7a.system.entry.js +4 -0
  324. package/lib/duet/p-91b3d075.entry.js +4 -0
  325. package/lib/duet/p-9226aca2.entry.js +4 -0
  326. package/lib/duet/{p-fd33eb2c.entry.js → p-99a90b30.entry.js} +1 -1
  327. package/lib/duet/{p-3b70cce3.entry.js → p-9ad6fc83.entry.js} +1 -1
  328. package/lib/duet/p-9e72b23c.system.entry.js +4 -0
  329. package/lib/duet/{p-13384099.entry.js → p-9ec0d197.entry.js} +1 -1
  330. package/lib/duet/{p-1a542b7c.system.entry.js → p-a0f76a04.system.entry.js} +1 -1
  331. package/lib/duet/p-a1978b4b.entry.js +4 -0
  332. package/lib/duet/p-a2ddca83.system.entry.js +4 -0
  333. package/lib/duet/{p-a7c64d94.entry.js → p-a5cf2316.entry.js} +1 -1
  334. package/lib/duet/{p-39496689.entry.js → p-a61825d9.entry.js} +1 -1
  335. package/lib/duet/{p-22dd2fab.entry.js → p-a6696d45.entry.js} +1 -1
  336. package/lib/duet/{p-7f8020bf.entry.js → p-a66ca0af.entry.js} +1 -1
  337. package/lib/duet/{p-62c70a95.entry.js → p-a7ed46e3.entry.js} +1 -1
  338. package/lib/duet/{p-85ad609f.entry.js → p-a86ae0c3.entry.js} +1 -1
  339. package/lib/duet/{p-9960de16.entry.js → p-ae7602cb.entry.js} +1 -1
  340. package/lib/duet/{p-cf9279b9.system.entry.js → p-b134229a.system.entry.js} +1 -1
  341. package/lib/duet/p-b362d8f7.entry.js +4 -0
  342. package/lib/duet/{p-65a5fdd5.entry.js → p-b4b5f803.entry.js} +1 -1
  343. package/lib/duet/{p-8cf1327e.entry.js → p-b594282a.entry.js} +1 -1
  344. package/lib/duet/{p-cb5ebe92.system.entry.js → p-b650e679.system.entry.js} +1 -1
  345. package/lib/duet/{p-6a07feba.entry.js → p-b77224fc.entry.js} +1 -1
  346. package/lib/duet/{p-6a89c7d0.system.entry.js → p-b7fe2c37.system.entry.js} +1 -1
  347. package/lib/duet/{p-931c3e1f.system.entry.js → p-bc541e97.system.entry.js} +1 -1
  348. package/lib/duet/{p-93ef4cc2.system.entry.js → p-be295e13.system.entry.js} +1 -1
  349. package/lib/duet/{p-98202339.entry.js → p-c0874730.entry.js} +1 -1
  350. package/lib/duet/{p-1d73a1d2.system.entry.js → p-c0c92199.system.entry.js} +1 -1
  351. package/lib/duet/p-c185ea87.system.entry.js +4 -0
  352. package/lib/duet/{p-fa400061.entry.js → p-c1c6a4f5.entry.js} +1 -1
  353. package/lib/duet/p-c2ff6bb2.entry.js +4 -0
  354. package/lib/duet/{p-637f635a.entry.js → p-c391b2a4.entry.js} +1 -1
  355. package/lib/duet/p-c5efb3f6.entry.js +4 -0
  356. package/lib/duet/p-c6122404.entry.js +4 -0
  357. package/lib/duet/p-c6b09397.js +4 -0
  358. package/lib/duet/p-c79f4b4b.entry.js +4 -0
  359. package/lib/duet/{p-32237f45.entry.js → p-c9198461.entry.js} +1 -1
  360. package/lib/duet/{p-770d0c35.system.entry.js → p-ca2725cd.system.entry.js} +1 -1
  361. package/lib/duet/{p-4a97ca92.system.entry.js → p-ca4d7a6d.system.entry.js} +1 -1
  362. package/lib/duet/{p-ee909d5f.system.entry.js → p-cb4799d1.system.entry.js} +1 -1
  363. package/lib/duet/{p-2a277fb6.entry.js → p-ccb08e8c.entry.js} +1 -1
  364. package/lib/duet/p-cf504df5.js +4 -0
  365. package/lib/duet/{p-b76ce62b.entry.js → p-cff11c78.entry.js} +1 -1
  366. package/lib/duet/{p-22e418ea.entry.js → p-d0175269.entry.js} +1 -1
  367. package/lib/duet/{p-91df8a4a.system.entry.js → p-d029f8dc.system.entry.js} +1 -1
  368. package/lib/duet/{p-5f2e386e.entry.js → p-d42279cd.entry.js} +1 -1
  369. package/lib/duet/{p-b3154717.entry.js → p-d4bc7a19.entry.js} +1 -1
  370. package/lib/duet/{p-1c7ad230.system.entry.js → p-d6dfa7c8.system.entry.js} +1 -1
  371. package/lib/duet/{p-ad3eba9a.entry.js → p-d841291b.entry.js} +1 -1
  372. package/lib/duet/{p-5048f9a7.entry.js → p-d988f03a.entry.js} +1 -1
  373. package/lib/duet/{p-a8a1d1f6.entry.js → p-da4f4b6c.entry.js} +1 -1
  374. package/lib/duet/{p-bd1d0640.system.js → p-dd1393e3.system.js} +1 -1
  375. package/lib/duet/{p-e9939ddb.system.entry.js → p-dee73c08.system.entry.js} +1 -1
  376. package/lib/duet/p-df10a767.js +4 -0
  377. package/lib/duet/{p-4f4ed95d.system.entry.js → p-df213a66.system.entry.js} +1 -1
  378. package/lib/duet/{p-e501bad4.system.entry.js → p-e288bb38.system.entry.js} +1 -1
  379. package/lib/duet/{p-5c444839.entry.js → p-e368e194.entry.js} +1 -1
  380. package/lib/duet/{p-f5728af6.system.entry.js → p-e6315f68.system.entry.js} +1 -1
  381. package/lib/duet/{p-1b426189.entry.js → p-e79c63b6.entry.js} +1 -1
  382. package/lib/duet/{p-2d3dbd85.system.entry.js → p-e8d8c7a2.system.entry.js} +1 -1
  383. package/lib/duet/{p-925f2b45.entry.js → p-e983ff0c.entry.js} +1 -1
  384. package/lib/duet/{p-17dc8da9.system.entry.js → p-ec796dfe.system.entry.js} +1 -1
  385. package/lib/duet/{p-d7425b07.entry.js → p-f58832f6.entry.js} +1 -1
  386. package/lib/duet/p-f5b53f2f.system.entry.js +4 -0
  387. package/lib/duet/{p-073221c9.system.entry.js → p-f74e934b.system.entry.js} +1 -1
  388. package/lib/duet/{p-c794bee3.system.entry.js → p-f78e3197.system.entry.js} +1 -1
  389. package/lib/duet/{p-6c1a2b16.entry.js → p-f90e86d3.entry.js} +1 -1
  390. package/lib/duet/p-f9603b0d.entry.js +4 -0
  391. package/lib/duet/{p-308b881b.js → p-fbd0d098.js} +1 -1
  392. package/lib/duet/{p-6486ab91.entry.js → p-fd1dcee1.entry.js} +1 -1
  393. package/lib/duet/{p-b4e863ee.system.entry.js → p-feaaff49.system.entry.js} +1 -1
  394. package/lib/duet/p-ff5a9358.system.entry.js +4 -0
  395. package/lib/duet/{p-d6a1c0de.entry.js → p-ffa34163.entry.js} +1 -1
  396. package/lib/esm/duet-action-button.entry.js +1 -1
  397. package/lib/esm/duet-alert.entry.js +1 -1
  398. package/lib/esm/duet-badge.entry.js +1 -1
  399. package/lib/esm/duet-banner.entry.js +1 -1
  400. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  401. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  402. package/lib/esm/duet-button_2.entry.js +1 -1
  403. package/lib/esm/duet-callout.entry.js +1 -1
  404. package/lib/esm/duet-caption_4.entry.js +1 -1
  405. package/lib/esm/duet-card.entry.js +1 -1
  406. package/lib/esm/duet-checkbox.entry.js +1 -1
  407. package/lib/esm/duet-checkmark.entry.js +1 -1
  408. package/lib/esm/duet-chip.entry.js +164 -0
  409. package/lib/esm/duet-choice_2.entry.js +24 -11
  410. package/lib/esm/duet-collapsible.entry.js +1 -1
  411. package/lib/esm/duet-combobox.entry.js +1 -1
  412. package/lib/esm/duet-contact-card.entry.js +1 -1
  413. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  414. package/lib/esm/duet-date-picker.entry.js +2 -2
  415. package/lib/esm/duet-divider_2.entry.js +1 -1
  416. package/lib/esm/duet-editable-table_3.entry.js +24 -127
  417. package/lib/esm/duet-empty-state.entry.js +1 -1
  418. package/lib/esm/duet-fieldset.entry.js +1 -1
  419. package/lib/esm/duet-footer.entry.js +1 -1
  420. package/lib/esm/duet-grid_2.entry.js +6 -3
  421. package/lib/esm/duet-header_2.entry.js +1 -1
  422. package/lib/esm/duet-hero.entry.js +1 -1
  423. package/lib/esm/duet-icon.entry.js +1 -1
  424. package/lib/esm/duet-input_2.entry.js +1 -1
  425. package/lib/esm/duet-layout.entry.js +1 -1
  426. package/lib/esm/duet-list_2.entry.js +1 -1
  427. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  428. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  429. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  430. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  431. package/lib/esm/duet-menu-bar.entry.js +1 -1
  432. package/lib/esm/duet-modal.entry.js +2 -2
  433. package/lib/esm/duet-multiselect.entry.js +1 -1
  434. package/lib/esm/duet-nav.entry.js +1 -1
  435. package/lib/esm/duet-notification_2.entry.js +1 -1
  436. package/lib/esm/duet-number-input.entry.js +8 -1
  437. package/lib/esm/duet-page-heading.entry.js +1 -1
  438. package/lib/esm/duet-pagination_2.entry.js +1 -1
  439. package/lib/esm/duet-popup-menu-item.entry.js +41 -0
  440. package/lib/esm/duet-popup-menu.entry.js +109 -0
  441. package/lib/esm/duet-progress.entry.js +1 -1
  442. package/lib/esm/duet-promo-card.entry.js +1 -1
  443. package/lib/esm/duet-radio_2.entry.js +5 -4
  444. package/lib/esm/duet-range-slider.entry.js +1 -1
  445. package/lib/esm/duet-scrollable_3.entry.js +2 -2
  446. package/lib/esm/duet-section-layout.entry.js +1 -1
  447. package/lib/esm/duet-select.entry.js +1 -1
  448. package/lib/esm/duet-shaped-image.entry.js +1 -1
  449. package/lib/esm/duet-show-more.entry.js +91 -0
  450. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  451. package/lib/esm/duet-slideout-link.entry.js +1 -1
  452. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  453. package/lib/esm/duet-slideout-panel.entry.js +2 -2
  454. package/lib/esm/duet-slideout.entry.js +2 -2
  455. package/lib/esm/duet-step_2.entry.js +1 -1
  456. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  457. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
  458. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  459. package/lib/esm/duet-submenu-bar.entry.js +1 -1
  460. package/lib/esm/duet-textarea.entry.js +1 -1
  461. package/lib/esm/duet-toggle.entry.js +1 -1
  462. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  463. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  464. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  465. package/lib/esm/duet-toolbar.entry.js +1 -1
  466. package/lib/esm/duet-tooltip.entry.js +2 -1172
  467. package/lib/esm/duet-tray.entry.js +1 -1
  468. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  469. package/lib/esm/duet-upload-item.entry.js +89 -0
  470. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  471. package/lib/esm/duet.js +3 -3
  472. package/lib/esm/errorcodes.utils-c0c33bce.js +36 -0
  473. package/lib/esm/floating-ui.dom.esm-37dc174a.js +1245 -0
  474. package/lib/esm/{focus-utils-552e67ed.js → focus-utils-e2239371.js} +1 -1
  475. package/lib/esm/{index-5aaf4b5b.js → index-b67ea1f1.js} +1 -1
  476. package/lib/esm/loader.js +3 -3
  477. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  478. package/lib/esm-es5/duet-alert.entry.js +1 -1
  479. package/lib/esm-es5/duet-badge.entry.js +1 -1
  480. package/lib/esm-es5/duet-banner.entry.js +1 -1
  481. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  482. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  483. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  484. package/lib/esm-es5/duet-callout.entry.js +1 -1
  485. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  486. package/lib/esm-es5/duet-card.entry.js +1 -1
  487. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  488. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  489. package/lib/esm-es5/duet-chip.entry.js +4 -0
  490. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  491. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  492. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  493. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  494. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  495. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  496. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  497. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  498. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  499. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  500. package/lib/esm-es5/duet-footer.entry.js +1 -1
  501. package/lib/esm-es5/duet-grid_2.entry.js +2 -2
  502. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  503. package/lib/esm-es5/duet-hero.entry.js +1 -1
  504. package/lib/esm-es5/duet-icon.entry.js +1 -1
  505. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  506. package/lib/esm-es5/duet-layout.entry.js +1 -1
  507. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  508. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  509. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  510. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  511. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  512. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  513. package/lib/esm-es5/duet-modal.entry.js +1 -1
  514. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  515. package/lib/esm-es5/duet-nav.entry.js +1 -1
  516. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  517. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  518. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  519. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  520. package/lib/esm-es5/duet-popup-menu-item.entry.js +4 -0
  521. package/lib/esm-es5/duet-popup-menu.entry.js +4 -0
  522. package/lib/esm-es5/duet-progress.entry.js +1 -1
  523. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  524. package/lib/esm-es5/duet-radio_2.entry.js +2 -2
  525. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  526. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  527. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  528. package/lib/esm-es5/duet-select.entry.js +1 -1
  529. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  530. package/lib/esm-es5/duet-show-more.entry.js +4 -0
  531. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  532. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  533. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  534. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  535. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  536. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  537. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  538. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  539. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  540. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  541. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  542. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  543. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  544. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  545. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  546. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  547. package/lib/esm-es5/duet-tooltip.entry.js +2 -2
  548. package/lib/esm-es5/duet-tray.entry.js +1 -1
  549. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  550. package/lib/esm-es5/duet-upload-item.entry.js +4 -0
  551. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  552. package/lib/esm-es5/duet.js +1 -1
  553. package/lib/esm-es5/errorcodes.utils-c0c33bce.js +4 -0
  554. package/lib/esm-es5/floating-ui.dom.esm-37dc174a.js +4 -0
  555. package/lib/esm-es5/focus-utils-e2239371.js +4 -0
  556. package/lib/esm-es5/{index-5aaf4b5b.js → index-b67ea1f1.js} +1 -1
  557. package/lib/esm-es5/loader.js +1 -1
  558. package/lib/types/components/duet-chip/duet-chip.d.ts +97 -0
  559. package/lib/types/components/duet-choice/duet-choice.d.ts +7 -0
  560. package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +1 -0
  561. package/lib/types/components/duet-grid/duet-grid.d.ts +4 -0
  562. package/lib/types/components/duet-number-input/duet-number-input.d.ts +4 -0
  563. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +77 -0
  564. package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +51 -0
  565. package/lib/types/components/duet-radio/duet-radio.d.ts +4 -0
  566. package/lib/types/components/duet-show-more/duet-show-more.d.ts +53 -0
  567. package/lib/types/components/duet-upload/duet-upload.d.ts +2 -1
  568. package/lib/types/components/duet-upload-item/duet-upload-item.d.ts +29 -0
  569. package/lib/types/components.d.ts +417 -0
  570. package/package.json +11 -6
  571. package/lib/collection/components/duet-upload/upload-item.js +0 -44
  572. package/lib/dist-custom-elements/p-00f8d4bc.js +0 -183
  573. package/lib/duet/p-077edef7.entry.js +0 -4
  574. package/lib/duet/p-0952d4a4.system.entry.js +0 -4
  575. package/lib/duet/p-225d9dbe.js +0 -4
  576. package/lib/duet/p-2cab347d.system.entry.js +0 -4
  577. package/lib/duet/p-3a0676ab.entry.js +0 -4
  578. package/lib/duet/p-55952227.system.entry.js +0 -4
  579. package/lib/duet/p-5ad63594.entry.js +0 -4
  580. package/lib/duet/p-6a9319ad.system.entry.js +0 -4
  581. package/lib/duet/p-75898c81.entry.js +0 -4
  582. package/lib/duet/p-78cb4832.entry.js +0 -4
  583. package/lib/duet/p-80f4a443.system.js +0 -4
  584. package/lib/duet/p-8c9d67e4.entry.js +0 -4
  585. package/lib/duet/p-8faea849.entry.js +0 -4
  586. package/lib/duet/p-b17e6185.system.entry.js +0 -4
  587. package/lib/duet/p-c1ccc327.entry.js +0 -4
  588. package/lib/duet/p-c654f863.system.entry.js +0 -4
  589. package/lib/duet/p-f8d00821.entry.js +0 -4
  590. package/lib/esm-es5/focus-utils-552e67ed.js +0 -4
  591. package/lib/types/components/duet-upload/upload-item.d.ts +0 -20
@@ -0,0 +1,1245 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ function getAlignment(placement) {
5
+ return placement.split('-')[1];
6
+ }
7
+
8
+ function getLengthFromAxis(axis) {
9
+ return axis === 'y' ? 'height' : 'width';
10
+ }
11
+
12
+ function getSide(placement) {
13
+ return placement.split('-')[0];
14
+ }
15
+
16
+ function getMainAxisFromPlacement(placement) {
17
+ return ['top', 'bottom'].includes(getSide(placement)) ? 'x' : 'y';
18
+ }
19
+
20
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
21
+ let {
22
+ reference,
23
+ floating
24
+ } = _ref;
25
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
26
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
27
+ const mainAxis = getMainAxisFromPlacement(placement);
28
+ const length = getLengthFromAxis(mainAxis);
29
+ const commonAlign = reference[length] / 2 - floating[length] / 2;
30
+ const side = getSide(placement);
31
+ const isVertical = mainAxis === 'x';
32
+ let coords;
33
+ switch (side) {
34
+ case 'top':
35
+ coords = {
36
+ x: commonX,
37
+ y: reference.y - floating.height
38
+ };
39
+ break;
40
+ case 'bottom':
41
+ coords = {
42
+ x: commonX,
43
+ y: reference.y + reference.height
44
+ };
45
+ break;
46
+ case 'right':
47
+ coords = {
48
+ x: reference.x + reference.width,
49
+ y: commonY
50
+ };
51
+ break;
52
+ case 'left':
53
+ coords = {
54
+ x: reference.x - floating.width,
55
+ y: commonY
56
+ };
57
+ break;
58
+ default:
59
+ coords = {
60
+ x: reference.x,
61
+ y: reference.y
62
+ };
63
+ }
64
+ switch (getAlignment(placement)) {
65
+ case 'start':
66
+ coords[mainAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
67
+ break;
68
+ case 'end':
69
+ coords[mainAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
70
+ break;
71
+ }
72
+ return coords;
73
+ }
74
+
75
+ /**
76
+ * Computes the `x` and `y` coordinates that will place the floating element
77
+ * next to a reference element when it is given a certain positioning strategy.
78
+ *
79
+ * This export does not have any `platform` interface logic. You will need to
80
+ * write one for the platform you are using Floating UI with.
81
+ */
82
+ const computePosition$1 = async (reference, floating, config) => {
83
+ const {
84
+ placement = 'bottom',
85
+ strategy = 'absolute',
86
+ middleware = [],
87
+ platform
88
+ } = config;
89
+ const validMiddleware = middleware.filter(Boolean);
90
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
91
+ let rects = await platform.getElementRects({
92
+ reference,
93
+ floating,
94
+ strategy
95
+ });
96
+ let {
97
+ x,
98
+ y
99
+ } = computeCoordsFromPlacement(rects, placement, rtl);
100
+ let statefulPlacement = placement;
101
+ let middlewareData = {};
102
+ let resetCount = 0;
103
+ for (let i = 0; i < validMiddleware.length; i++) {
104
+ const {
105
+ name,
106
+ fn
107
+ } = validMiddleware[i];
108
+ const {
109
+ x: nextX,
110
+ y: nextY,
111
+ data,
112
+ reset
113
+ } = await fn({
114
+ x,
115
+ y,
116
+ initialPlacement: placement,
117
+ placement: statefulPlacement,
118
+ strategy,
119
+ middlewareData,
120
+ rects,
121
+ platform,
122
+ elements: {
123
+ reference,
124
+ floating
125
+ }
126
+ });
127
+ x = nextX != null ? nextX : x;
128
+ y = nextY != null ? nextY : y;
129
+ middlewareData = {
130
+ ...middlewareData,
131
+ [name]: {
132
+ ...middlewareData[name],
133
+ ...data
134
+ }
135
+ };
136
+ if (reset && resetCount <= 50) {
137
+ resetCount++;
138
+ if (typeof reset === 'object') {
139
+ if (reset.placement) {
140
+ statefulPlacement = reset.placement;
141
+ }
142
+ if (reset.rects) {
143
+ rects = reset.rects === true ? await platform.getElementRects({
144
+ reference,
145
+ floating,
146
+ strategy
147
+ }) : reset.rects;
148
+ }
149
+ ({
150
+ x,
151
+ y
152
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
153
+ }
154
+ i = -1;
155
+ continue;
156
+ }
157
+ }
158
+ return {
159
+ x,
160
+ y,
161
+ placement: statefulPlacement,
162
+ strategy,
163
+ middlewareData
164
+ };
165
+ };
166
+
167
+ function expandPaddingObject(padding) {
168
+ return {
169
+ top: 0,
170
+ right: 0,
171
+ bottom: 0,
172
+ left: 0,
173
+ ...padding
174
+ };
175
+ }
176
+
177
+ function getSideObjectFromPadding(padding) {
178
+ return typeof padding !== 'number' ? expandPaddingObject(padding) : {
179
+ top: padding,
180
+ right: padding,
181
+ bottom: padding,
182
+ left: padding
183
+ };
184
+ }
185
+
186
+ function rectToClientRect(rect) {
187
+ return {
188
+ ...rect,
189
+ top: rect.y,
190
+ left: rect.x,
191
+ right: rect.x + rect.width,
192
+ bottom: rect.y + rect.height
193
+ };
194
+ }
195
+
196
+ /**
197
+ * Resolves with an object of overflow side offsets that determine how much the
198
+ * element is overflowing a given clipping boundary on each side.
199
+ * - positive = overflowing the boundary by that number of pixels
200
+ * - negative = how many pixels left before it will overflow
201
+ * - 0 = lies flush with the boundary
202
+ * @see https://floating-ui.com/docs/detectOverflow
203
+ */
204
+ async function detectOverflow(state, options) {
205
+ var _await$platform$isEle;
206
+ if (options === void 0) {
207
+ options = {};
208
+ }
209
+ const {
210
+ x,
211
+ y,
212
+ platform,
213
+ rects,
214
+ elements,
215
+ strategy
216
+ } = state;
217
+ const {
218
+ boundary = 'clippingAncestors',
219
+ rootBoundary = 'viewport',
220
+ elementContext = 'floating',
221
+ altBoundary = false,
222
+ padding = 0
223
+ } = options;
224
+ const paddingObject = getSideObjectFromPadding(padding);
225
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
226
+ const element = elements[altBoundary ? altContext : elementContext];
227
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
228
+ 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))),
229
+ boundary,
230
+ rootBoundary,
231
+ strategy
232
+ }));
233
+ const rect = elementContext === 'floating' ? {
234
+ ...rects.floating,
235
+ x,
236
+ y
237
+ } : rects.reference;
238
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
239
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
240
+ x: 1,
241
+ y: 1
242
+ } : {
243
+ x: 1,
244
+ y: 1
245
+ };
246
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
247
+ rect,
248
+ offsetParent,
249
+ strategy
250
+ }) : rect);
251
+ return {
252
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
253
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
254
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
255
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
256
+ };
257
+ }
258
+
259
+ const min$1 = Math.min;
260
+ const max$1 = Math.max;
261
+
262
+ function within(min$1$1, value, max$1$1) {
263
+ return max$1(min$1$1, min$1(value, max$1$1));
264
+ }
265
+
266
+ /**
267
+ * Provides data to position an inner element of the floating element so that it
268
+ * appears centered to the reference element.
269
+ * @see https://floating-ui.com/docs/arrow
270
+ */
271
+ const arrow = options => ({
272
+ name: 'arrow',
273
+ options,
274
+ async fn(state) {
275
+ // Since `element` is required, we don't Partial<> the type.
276
+ const {
277
+ element,
278
+ padding = 0
279
+ } = options || {};
280
+ const {
281
+ x,
282
+ y,
283
+ placement,
284
+ rects,
285
+ platform,
286
+ elements
287
+ } = state;
288
+ if (element == null) {
289
+ return {};
290
+ }
291
+ const paddingObject = getSideObjectFromPadding(padding);
292
+ const coords = {
293
+ x,
294
+ y
295
+ };
296
+ const axis = getMainAxisFromPlacement(placement);
297
+ const length = getLengthFromAxis(axis);
298
+ const arrowDimensions = await platform.getDimensions(element);
299
+ const isYAxis = axis === 'y';
300
+ const minProp = isYAxis ? 'top' : 'left';
301
+ const maxProp = isYAxis ? 'bottom' : 'right';
302
+ const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
303
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
304
+ const startDiff = coords[axis] - rects.reference[axis];
305
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
306
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
307
+
308
+ // DOM platform can return `window` as the `offsetParent`.
309
+ if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
310
+ clientSize = elements.floating[clientProp] || rects.floating[length];
311
+ }
312
+ const centerToReference = endDiff / 2 - startDiff / 2;
313
+
314
+ // Make sure the arrow doesn't overflow the floating element if the center
315
+ // point is outside the floating element's bounds.
316
+ const min = paddingObject[minProp];
317
+ const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];
318
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
319
+ const offset = within(min, center, max);
320
+
321
+ // If the reference is small enough that the arrow's padding causes it to
322
+ // to point to nothing for an aligned placement, adjust the offset of the
323
+ // floating element itself. This stops `shift()` from taking action, but can
324
+ // be worked around by calling it again after the `arrow()` if desired.
325
+ const shouldAddOffset = getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min ? paddingObject[minProp] : paddingObject[maxProp]) - arrowDimensions[length] / 2 < 0;
326
+ const alignmentOffset = shouldAddOffset ? center < min ? min - center : max - center : 0;
327
+ return {
328
+ [axis]: coords[axis] - alignmentOffset,
329
+ data: {
330
+ [axis]: offset,
331
+ centerOffset: center - offset
332
+ }
333
+ };
334
+ }
335
+ });
336
+
337
+ const oppositeSideMap = {
338
+ left: 'right',
339
+ right: 'left',
340
+ bottom: 'top',
341
+ top: 'bottom'
342
+ };
343
+ function getOppositePlacement(placement) {
344
+ return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
345
+ }
346
+
347
+ function getAlignmentSides(placement, rects, rtl) {
348
+ if (rtl === void 0) {
349
+ rtl = false;
350
+ }
351
+ const alignment = getAlignment(placement);
352
+ const mainAxis = getMainAxisFromPlacement(placement);
353
+ const length = getLengthFromAxis(mainAxis);
354
+ let mainAlignmentSide = mainAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
355
+ if (rects.reference[length] > rects.floating[length]) {
356
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
357
+ }
358
+ return {
359
+ main: mainAlignmentSide,
360
+ cross: getOppositePlacement(mainAlignmentSide)
361
+ };
362
+ }
363
+
364
+ const oppositeAlignmentMap = {
365
+ start: 'end',
366
+ end: 'start'
367
+ };
368
+ function getOppositeAlignmentPlacement(placement) {
369
+ return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
370
+ }
371
+
372
+ function getExpandedPlacements(placement) {
373
+ const oppositePlacement = getOppositePlacement(placement);
374
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
375
+ }
376
+
377
+ function getSideList(side, isStart, rtl) {
378
+ const lr = ['left', 'right'];
379
+ const rl = ['right', 'left'];
380
+ const tb = ['top', 'bottom'];
381
+ const bt = ['bottom', 'top'];
382
+ switch (side) {
383
+ case 'top':
384
+ case 'bottom':
385
+ if (rtl) return isStart ? rl : lr;
386
+ return isStart ? lr : rl;
387
+ case 'left':
388
+ case 'right':
389
+ return isStart ? tb : bt;
390
+ default:
391
+ return [];
392
+ }
393
+ }
394
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
395
+ const alignment = getAlignment(placement);
396
+ let list = getSideList(getSide(placement), direction === 'start', rtl);
397
+ if (alignment) {
398
+ list = list.map(side => side + "-" + alignment);
399
+ if (flipAlignment) {
400
+ list = list.concat(list.map(getOppositeAlignmentPlacement));
401
+ }
402
+ }
403
+ return list;
404
+ }
405
+
406
+ /**
407
+ * Optimizes the visibility of the floating element by flipping the `placement`
408
+ * in order to keep it in view when the preferred placement(s) will overflow the
409
+ * clipping boundary. Alternative to `autoPlacement`.
410
+ * @see https://floating-ui.com/docs/flip
411
+ */
412
+ const flip = function (options) {
413
+ if (options === void 0) {
414
+ options = {};
415
+ }
416
+ return {
417
+ name: 'flip',
418
+ options,
419
+ async fn(state) {
420
+ var _middlewareData$flip;
421
+ const {
422
+ placement,
423
+ middlewareData,
424
+ rects,
425
+ initialPlacement,
426
+ platform,
427
+ elements
428
+ } = state;
429
+ const {
430
+ mainAxis: checkMainAxis = true,
431
+ crossAxis: checkCrossAxis = true,
432
+ fallbackPlacements: specifiedFallbackPlacements,
433
+ fallbackStrategy = 'bestFit',
434
+ fallbackAxisSideDirection = 'none',
435
+ flipAlignment = true,
436
+ ...detectOverflowOptions
437
+ } = options;
438
+ const side = getSide(placement);
439
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
440
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
441
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
442
+ if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
443
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
444
+ }
445
+ const placements = [initialPlacement, ...fallbackPlacements];
446
+ const overflow = await detectOverflow(state, detectOverflowOptions);
447
+ const overflows = [];
448
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
449
+ if (checkMainAxis) {
450
+ overflows.push(overflow[side]);
451
+ }
452
+ if (checkCrossAxis) {
453
+ const {
454
+ main,
455
+ cross
456
+ } = getAlignmentSides(placement, rects, rtl);
457
+ overflows.push(overflow[main], overflow[cross]);
458
+ }
459
+ overflowsData = [...overflowsData, {
460
+ placement,
461
+ overflows
462
+ }];
463
+
464
+ // One or more sides is overflowing.
465
+ if (!overflows.every(side => side <= 0)) {
466
+ var _middlewareData$flip2, _overflowsData$filter;
467
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
468
+ const nextPlacement = placements[nextIndex];
469
+ if (nextPlacement) {
470
+ // Try next placement and re-run the lifecycle.
471
+ return {
472
+ data: {
473
+ index: nextIndex,
474
+ overflows: overflowsData
475
+ },
476
+ reset: {
477
+ placement: nextPlacement
478
+ }
479
+ };
480
+ }
481
+
482
+ // First, find the candidates that fit on the mainAxis side of overflow,
483
+ // then find the placement that fits the best on the main crossAxis side.
484
+ 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;
485
+
486
+ // Otherwise fallback.
487
+ if (!resetPlacement) {
488
+ switch (fallbackStrategy) {
489
+ case 'bestFit':
490
+ {
491
+ var _overflowsData$map$so;
492
+ 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];
493
+ if (placement) {
494
+ resetPlacement = placement;
495
+ }
496
+ break;
497
+ }
498
+ case 'initialPlacement':
499
+ resetPlacement = initialPlacement;
500
+ break;
501
+ }
502
+ }
503
+ if (placement !== resetPlacement) {
504
+ return {
505
+ reset: {
506
+ placement: resetPlacement
507
+ }
508
+ };
509
+ }
510
+ }
511
+ return {};
512
+ }
513
+ };
514
+ };
515
+
516
+ async function convertValueToCoords(state, value) {
517
+ const {
518
+ placement,
519
+ platform,
520
+ elements
521
+ } = state;
522
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
523
+ const side = getSide(placement);
524
+ const alignment = getAlignment(placement);
525
+ const isVertical = getMainAxisFromPlacement(placement) === 'x';
526
+ const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
527
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
528
+ const rawValue = typeof value === 'function' ? value(state) : value;
529
+
530
+ // eslint-disable-next-line prefer-const
531
+ let {
532
+ mainAxis,
533
+ crossAxis,
534
+ alignmentAxis
535
+ } = typeof rawValue === 'number' ? {
536
+ mainAxis: rawValue,
537
+ crossAxis: 0,
538
+ alignmentAxis: null
539
+ } : {
540
+ mainAxis: 0,
541
+ crossAxis: 0,
542
+ alignmentAxis: null,
543
+ ...rawValue
544
+ };
545
+ if (alignment && typeof alignmentAxis === 'number') {
546
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
547
+ }
548
+ return isVertical ? {
549
+ x: crossAxis * crossAxisMulti,
550
+ y: mainAxis * mainAxisMulti
551
+ } : {
552
+ x: mainAxis * mainAxisMulti,
553
+ y: crossAxis * crossAxisMulti
554
+ };
555
+ }
556
+
557
+ /**
558
+ * Modifies the placement by translating the floating element along the
559
+ * specified axes.
560
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
561
+ * object may be passed.
562
+ * @see https://floating-ui.com/docs/offset
563
+ */
564
+ const offset = function (value) {
565
+ if (value === void 0) {
566
+ value = 0;
567
+ }
568
+ return {
569
+ name: 'offset',
570
+ options: value,
571
+ async fn(state) {
572
+ const {
573
+ x,
574
+ y
575
+ } = state;
576
+ const diffCoords = await convertValueToCoords(state, value);
577
+ return {
578
+ x: x + diffCoords.x,
579
+ y: y + diffCoords.y,
580
+ data: diffCoords
581
+ };
582
+ }
583
+ };
584
+ };
585
+
586
+ function getCrossAxis(axis) {
587
+ return axis === 'x' ? 'y' : 'x';
588
+ }
589
+
590
+ /**
591
+ * Optimizes the visibility of the floating element by shifting it in order to
592
+ * keep it in view when it will overflow the clipping boundary.
593
+ * @see https://floating-ui.com/docs/shift
594
+ */
595
+ const shift = function (options) {
596
+ if (options === void 0) {
597
+ options = {};
598
+ }
599
+ return {
600
+ name: 'shift',
601
+ options,
602
+ async fn(state) {
603
+ const {
604
+ x,
605
+ y,
606
+ placement
607
+ } = state;
608
+ const {
609
+ mainAxis: checkMainAxis = true,
610
+ crossAxis: checkCrossAxis = false,
611
+ limiter = {
612
+ fn: _ref => {
613
+ let {
614
+ x,
615
+ y
616
+ } = _ref;
617
+ return {
618
+ x,
619
+ y
620
+ };
621
+ }
622
+ },
623
+ ...detectOverflowOptions
624
+ } = options;
625
+ const coords = {
626
+ x,
627
+ y
628
+ };
629
+ const overflow = await detectOverflow(state, detectOverflowOptions);
630
+ const mainAxis = getMainAxisFromPlacement(getSide(placement));
631
+ const crossAxis = getCrossAxis(mainAxis);
632
+ let mainAxisCoord = coords[mainAxis];
633
+ let crossAxisCoord = coords[crossAxis];
634
+ if (checkMainAxis) {
635
+ const minSide = mainAxis === 'y' ? 'top' : 'left';
636
+ const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
637
+ const min = mainAxisCoord + overflow[minSide];
638
+ const max = mainAxisCoord - overflow[maxSide];
639
+ mainAxisCoord = within(min, mainAxisCoord, max);
640
+ }
641
+ if (checkCrossAxis) {
642
+ const minSide = crossAxis === 'y' ? 'top' : 'left';
643
+ const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
644
+ const min = crossAxisCoord + overflow[minSide];
645
+ const max = crossAxisCoord - overflow[maxSide];
646
+ crossAxisCoord = within(min, crossAxisCoord, max);
647
+ }
648
+ const limitedCoords = limiter.fn({
649
+ ...state,
650
+ [mainAxis]: mainAxisCoord,
651
+ [crossAxis]: crossAxisCoord
652
+ });
653
+ return {
654
+ ...limitedCoords,
655
+ data: {
656
+ x: limitedCoords.x - x,
657
+ y: limitedCoords.y - y
658
+ }
659
+ };
660
+ }
661
+ };
662
+ };
663
+
664
+ function getWindow(node) {
665
+ var _node$ownerDocument;
666
+ return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
667
+ }
668
+
669
+ function getComputedStyle$1(element) {
670
+ return getWindow(element).getComputedStyle(element);
671
+ }
672
+
673
+ function isNode(value) {
674
+ return value instanceof getWindow(value).Node;
675
+ }
676
+ function getNodeName(node) {
677
+ return isNode(node) ? (node.nodeName || '').toLowerCase() : '';
678
+ }
679
+
680
+ function isHTMLElement(value) {
681
+ return value instanceof getWindow(value).HTMLElement;
682
+ }
683
+ function isElement(value) {
684
+ return value instanceof getWindow(value).Element;
685
+ }
686
+ function isShadowRoot(node) {
687
+ // Browsers without `ShadowRoot` support.
688
+ if (typeof ShadowRoot === 'undefined') {
689
+ return false;
690
+ }
691
+ const OwnElement = getWindow(node).ShadowRoot;
692
+ return node instanceof OwnElement || node instanceof ShadowRoot;
693
+ }
694
+ function isOverflowElement(element) {
695
+ const {
696
+ overflow,
697
+ overflowX,
698
+ overflowY,
699
+ display
700
+ } = getComputedStyle$1(element);
701
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
702
+ }
703
+ function isTableElement(element) {
704
+ return ['table', 'td', 'th'].includes(getNodeName(element));
705
+ }
706
+ function isContainingBlock(element) {
707
+ const safari = isSafari();
708
+ const css = getComputedStyle$1(element);
709
+
710
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
711
+ 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));
712
+ }
713
+ function isSafari() {
714
+ if (typeof CSS === 'undefined' || !CSS.supports) return false;
715
+ return CSS.supports('-webkit-backdrop-filter', 'none');
716
+ }
717
+ function isLastTraversableNode(node) {
718
+ return ['html', 'body', '#document'].includes(getNodeName(node));
719
+ }
720
+
721
+ const min = Math.min;
722
+ const max = Math.max;
723
+ const round = Math.round;
724
+
725
+ function getCssDimensions(element) {
726
+ const css = getComputedStyle$1(element);
727
+ // In testing environments, the `width` and `height` properties are empty
728
+ // strings for SVG elements, returning NaN. Fallback to `0` in this case.
729
+ let width = parseFloat(css.width) || 0;
730
+ let height = parseFloat(css.height) || 0;
731
+ const hasOffset = isHTMLElement(element);
732
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
733
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
734
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
735
+ if (shouldFallback) {
736
+ width = offsetWidth;
737
+ height = offsetHeight;
738
+ }
739
+ return {
740
+ width,
741
+ height,
742
+ fallback: shouldFallback
743
+ };
744
+ }
745
+
746
+ function unwrapElement(element) {
747
+ return !isElement(element) ? element.contextElement : element;
748
+ }
749
+
750
+ const FALLBACK_SCALE = {
751
+ x: 1,
752
+ y: 1
753
+ };
754
+ function getScale(element) {
755
+ const domElement = unwrapElement(element);
756
+ if (!isHTMLElement(domElement)) {
757
+ return FALLBACK_SCALE;
758
+ }
759
+ const rect = domElement.getBoundingClientRect();
760
+ const {
761
+ width,
762
+ height,
763
+ fallback
764
+ } = getCssDimensions(domElement);
765
+ let x = (fallback ? round(rect.width) : rect.width) / width;
766
+ let y = (fallback ? round(rect.height) : rect.height) / height;
767
+
768
+ // 0, NaN, or Infinity should always fallback to 1.
769
+
770
+ if (!x || !Number.isFinite(x)) {
771
+ x = 1;
772
+ }
773
+ if (!y || !Number.isFinite(y)) {
774
+ y = 1;
775
+ }
776
+ return {
777
+ x,
778
+ y
779
+ };
780
+ }
781
+
782
+ const noOffsets = {
783
+ x: 0,
784
+ y: 0
785
+ };
786
+ function getVisualOffsets(element, isFixed, floatingOffsetParent) {
787
+ var _win$visualViewport, _win$visualViewport2;
788
+ if (isFixed === void 0) {
789
+ isFixed = true;
790
+ }
791
+ if (!isSafari()) {
792
+ return noOffsets;
793
+ }
794
+ const win = element ? getWindow(element) : window;
795
+ if (!floatingOffsetParent || isFixed && floatingOffsetParent !== win) {
796
+ return noOffsets;
797
+ }
798
+ return {
799
+ x: ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0,
800
+ y: ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0
801
+ };
802
+ }
803
+
804
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
805
+ if (includeScale === void 0) {
806
+ includeScale = false;
807
+ }
808
+ if (isFixedStrategy === void 0) {
809
+ isFixedStrategy = false;
810
+ }
811
+ const clientRect = element.getBoundingClientRect();
812
+ const domElement = unwrapElement(element);
813
+ let scale = FALLBACK_SCALE;
814
+ if (includeScale) {
815
+ if (offsetParent) {
816
+ if (isElement(offsetParent)) {
817
+ scale = getScale(offsetParent);
818
+ }
819
+ } else {
820
+ scale = getScale(element);
821
+ }
822
+ }
823
+ const visualOffsets = getVisualOffsets(domElement, isFixedStrategy, offsetParent);
824
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
825
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
826
+ let width = clientRect.width / scale.x;
827
+ let height = clientRect.height / scale.y;
828
+ if (domElement) {
829
+ const win = getWindow(domElement);
830
+ const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
831
+ let currentIFrame = win.frameElement;
832
+ while (currentIFrame && offsetParent && offsetWin !== win) {
833
+ const iframeScale = getScale(currentIFrame);
834
+ const iframeRect = currentIFrame.getBoundingClientRect();
835
+ const css = getComputedStyle(currentIFrame);
836
+ iframeRect.x += (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
837
+ iframeRect.y += (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
838
+ x *= iframeScale.x;
839
+ y *= iframeScale.y;
840
+ width *= iframeScale.x;
841
+ height *= iframeScale.y;
842
+ x += iframeRect.x;
843
+ y += iframeRect.y;
844
+ currentIFrame = getWindow(currentIFrame).frameElement;
845
+ }
846
+ }
847
+ return rectToClientRect({
848
+ width,
849
+ height,
850
+ x,
851
+ y
852
+ });
853
+ }
854
+
855
+ function getDocumentElement(node) {
856
+ return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
857
+ }
858
+
859
+ function getNodeScroll(element) {
860
+ if (isElement(element)) {
861
+ return {
862
+ scrollLeft: element.scrollLeft,
863
+ scrollTop: element.scrollTop
864
+ };
865
+ }
866
+ return {
867
+ scrollLeft: element.pageXOffset,
868
+ scrollTop: element.pageYOffset
869
+ };
870
+ }
871
+
872
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
873
+ let {
874
+ rect,
875
+ offsetParent,
876
+ strategy
877
+ } = _ref;
878
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
879
+ const documentElement = getDocumentElement(offsetParent);
880
+ if (offsetParent === documentElement) {
881
+ return rect;
882
+ }
883
+ let scroll = {
884
+ scrollLeft: 0,
885
+ scrollTop: 0
886
+ };
887
+ let scale = {
888
+ x: 1,
889
+ y: 1
890
+ };
891
+ const offsets = {
892
+ x: 0,
893
+ y: 0
894
+ };
895
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
896
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
897
+ scroll = getNodeScroll(offsetParent);
898
+ }
899
+ if (isHTMLElement(offsetParent)) {
900
+ const offsetRect = getBoundingClientRect(offsetParent);
901
+ scale = getScale(offsetParent);
902
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
903
+ offsets.y = offsetRect.y + offsetParent.clientTop;
904
+ }
905
+ }
906
+ return {
907
+ width: rect.width * scale.x,
908
+ height: rect.height * scale.y,
909
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
910
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
911
+ };
912
+ }
913
+
914
+ function getWindowScrollBarX(element) {
915
+ // If <html> has a CSS width greater than the viewport, then this will be
916
+ // incorrect for RTL.
917
+ return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
918
+ }
919
+
920
+ // Gets the entire size of the scrollable document area, even extending outside
921
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
922
+ function getDocumentRect(element) {
923
+ const html = getDocumentElement(element);
924
+ const scroll = getNodeScroll(element);
925
+ const body = element.ownerDocument.body;
926
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
927
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
928
+ let x = -scroll.scrollLeft + getWindowScrollBarX(element);
929
+ const y = -scroll.scrollTop;
930
+ if (getComputedStyle$1(body).direction === 'rtl') {
931
+ x += max(html.clientWidth, body.clientWidth) - width;
932
+ }
933
+ return {
934
+ width,
935
+ height,
936
+ x,
937
+ y
938
+ };
939
+ }
940
+
941
+ function getParentNode(node) {
942
+ if (getNodeName(node) === 'html') {
943
+ return node;
944
+ }
945
+ const result =
946
+ // Step into the shadow DOM of the parent of a slotted node.
947
+ node.assignedSlot ||
948
+ // DOM Element detected.
949
+ node.parentNode ||
950
+ // ShadowRoot detected.
951
+ isShadowRoot(node) && node.host ||
952
+ // Fallback.
953
+ getDocumentElement(node);
954
+ return isShadowRoot(result) ? result.host : result;
955
+ }
956
+
957
+ function getNearestOverflowAncestor(node) {
958
+ const parentNode = getParentNode(node);
959
+ if (isLastTraversableNode(parentNode)) {
960
+ // `getParentNode` will never return a `Document` due to the fallback
961
+ // check, so it's either the <html> or <body> element.
962
+ return parentNode.ownerDocument.body;
963
+ }
964
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
965
+ return parentNode;
966
+ }
967
+ return getNearestOverflowAncestor(parentNode);
968
+ }
969
+
970
+ function getOverflowAncestors(node, list) {
971
+ var _node$ownerDocument;
972
+ if (list === void 0) {
973
+ list = [];
974
+ }
975
+ const scrollableAncestor = getNearestOverflowAncestor(node);
976
+ const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
977
+ const win = getWindow(scrollableAncestor);
978
+ if (isBody) {
979
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
980
+ }
981
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
982
+ }
983
+
984
+ function getViewportRect(element, strategy) {
985
+ const win = getWindow(element);
986
+ const html = getDocumentElement(element);
987
+ const visualViewport = win.visualViewport;
988
+ let width = html.clientWidth;
989
+ let height = html.clientHeight;
990
+ let x = 0;
991
+ let y = 0;
992
+ if (visualViewport) {
993
+ width = visualViewport.width;
994
+ height = visualViewport.height;
995
+ const visualViewportBased = isSafari();
996
+ if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
997
+ x = visualViewport.offsetLeft;
998
+ y = visualViewport.offsetTop;
999
+ }
1000
+ }
1001
+ return {
1002
+ width,
1003
+ height,
1004
+ x,
1005
+ y
1006
+ };
1007
+ }
1008
+
1009
+ // Returns the inner client rect, subtracting scrollbars if present.
1010
+ function getInnerBoundingClientRect(element, strategy) {
1011
+ const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
1012
+ const top = clientRect.top + element.clientTop;
1013
+ const left = clientRect.left + element.clientLeft;
1014
+ const scale = isHTMLElement(element) ? getScale(element) : {
1015
+ x: 1,
1016
+ y: 1
1017
+ };
1018
+ const width = element.clientWidth * scale.x;
1019
+ const height = element.clientHeight * scale.y;
1020
+ const x = left * scale.x;
1021
+ const y = top * scale.y;
1022
+ return {
1023
+ width,
1024
+ height,
1025
+ x,
1026
+ y
1027
+ };
1028
+ }
1029
+ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
1030
+ let rect;
1031
+ if (clippingAncestor === 'viewport') {
1032
+ rect = getViewportRect(element, strategy);
1033
+ } else if (clippingAncestor === 'document') {
1034
+ rect = getDocumentRect(getDocumentElement(element));
1035
+ } else if (isElement(clippingAncestor)) {
1036
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
1037
+ } else {
1038
+ const visualOffsets = getVisualOffsets(element);
1039
+ rect = {
1040
+ ...clippingAncestor,
1041
+ x: clippingAncestor.x - visualOffsets.x,
1042
+ y: clippingAncestor.y - visualOffsets.y
1043
+ };
1044
+ }
1045
+ return rectToClientRect(rect);
1046
+ }
1047
+ function hasFixedPositionAncestor(element, stopNode) {
1048
+ const parentNode = getParentNode(element);
1049
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
1050
+ return false;
1051
+ }
1052
+ return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
1053
+ }
1054
+
1055
+ // A "clipping ancestor" is an `overflow` element with the characteristic of
1056
+ // clipping (or hiding) child elements. This returns all clipping ancestors
1057
+ // of the given element up the tree.
1058
+ function getClippingElementAncestors(element, cache) {
1059
+ const cachedResult = cache.get(element);
1060
+ if (cachedResult) {
1061
+ return cachedResult;
1062
+ }
1063
+ let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');
1064
+ let currentContainingBlockComputedStyle = null;
1065
+ const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
1066
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
1067
+
1068
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1069
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1070
+ const computedStyle = getComputedStyle$1(currentNode);
1071
+ const currentNodeIsContaining = isContainingBlock(currentNode);
1072
+ if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
1073
+ currentContainingBlockComputedStyle = null;
1074
+ }
1075
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
1076
+ if (shouldDropCurrentNode) {
1077
+ // Drop non-containing blocks.
1078
+ result = result.filter(ancestor => ancestor !== currentNode);
1079
+ } else {
1080
+ // Record last containing block for next iteration.
1081
+ currentContainingBlockComputedStyle = computedStyle;
1082
+ }
1083
+ currentNode = getParentNode(currentNode);
1084
+ }
1085
+ cache.set(element, result);
1086
+ return result;
1087
+ }
1088
+
1089
+ // Gets the maximum area that the element is visible in due to any number of
1090
+ // clipping ancestors.
1091
+ function getClippingRect(_ref) {
1092
+ let {
1093
+ element,
1094
+ boundary,
1095
+ rootBoundary,
1096
+ strategy
1097
+ } = _ref;
1098
+ const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
1099
+ const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1100
+ const firstClippingAncestor = clippingAncestors[0];
1101
+ const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
1102
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
1103
+ accRect.top = max(rect.top, accRect.top);
1104
+ accRect.right = min(rect.right, accRect.right);
1105
+ accRect.bottom = min(rect.bottom, accRect.bottom);
1106
+ accRect.left = max(rect.left, accRect.left);
1107
+ return accRect;
1108
+ }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
1109
+ return {
1110
+ width: clippingRect.right - clippingRect.left,
1111
+ height: clippingRect.bottom - clippingRect.top,
1112
+ x: clippingRect.left,
1113
+ y: clippingRect.top
1114
+ };
1115
+ }
1116
+
1117
+ function getDimensions(element) {
1118
+ return getCssDimensions(element);
1119
+ }
1120
+
1121
+ function getTrueOffsetParent(element, polyfill) {
1122
+ if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
1123
+ return null;
1124
+ }
1125
+ if (polyfill) {
1126
+ return polyfill(element);
1127
+ }
1128
+ return element.offsetParent;
1129
+ }
1130
+ function getContainingBlock(element) {
1131
+ let currentNode = getParentNode(element);
1132
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1133
+ if (isContainingBlock(currentNode)) {
1134
+ return currentNode;
1135
+ } else {
1136
+ currentNode = getParentNode(currentNode);
1137
+ }
1138
+ }
1139
+ return null;
1140
+ }
1141
+
1142
+ // Gets the closest ancestor positioned element. Handles some edge cases,
1143
+ // such as table ancestors and cross browser bugs.
1144
+ function getOffsetParent(element, polyfill) {
1145
+ const window = getWindow(element);
1146
+ if (!isHTMLElement(element)) {
1147
+ return window;
1148
+ }
1149
+ let offsetParent = getTrueOffsetParent(element, polyfill);
1150
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
1151
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1152
+ }
1153
+ if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
1154
+ return window;
1155
+ }
1156
+ return offsetParent || getContainingBlock(element) || window;
1157
+ }
1158
+
1159
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1160
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
1161
+ const documentElement = getDocumentElement(offsetParent);
1162
+ const isFixed = strategy === 'fixed';
1163
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1164
+ let scroll = {
1165
+ scrollLeft: 0,
1166
+ scrollTop: 0
1167
+ };
1168
+ const offsets = {
1169
+ x: 0,
1170
+ y: 0
1171
+ };
1172
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1173
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1174
+ scroll = getNodeScroll(offsetParent);
1175
+ }
1176
+ if (isHTMLElement(offsetParent)) {
1177
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1178
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1179
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1180
+ } else if (documentElement) {
1181
+ offsets.x = getWindowScrollBarX(documentElement);
1182
+ }
1183
+ }
1184
+ return {
1185
+ x: rect.left + scroll.scrollLeft - offsets.x,
1186
+ y: rect.top + scroll.scrollTop - offsets.y,
1187
+ width: rect.width,
1188
+ height: rect.height
1189
+ };
1190
+ }
1191
+
1192
+ const platform = {
1193
+ getClippingRect,
1194
+ convertOffsetParentRelativeRectToViewportRelativeRect,
1195
+ isElement,
1196
+ getDimensions,
1197
+ getOffsetParent,
1198
+ getDocumentElement,
1199
+ getScale,
1200
+ async getElementRects(_ref) {
1201
+ let {
1202
+ reference,
1203
+ floating,
1204
+ strategy
1205
+ } = _ref;
1206
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1207
+ const getDimensionsFn = this.getDimensions;
1208
+ return {
1209
+ reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),
1210
+ floating: {
1211
+ x: 0,
1212
+ y: 0,
1213
+ ...(await getDimensionsFn(floating))
1214
+ }
1215
+ };
1216
+ },
1217
+ getClientRects: element => Array.from(element.getClientRects()),
1218
+ isRTL: element => getComputedStyle$1(element).direction === 'rtl'
1219
+ };
1220
+
1221
+ /**
1222
+ * Computes the `x` and `y` coordinates that will place the floating element
1223
+ * next to a reference element when it is given a certain CSS positioning
1224
+ * strategy.
1225
+ */
1226
+ const computePosition = (reference, floating, options) => {
1227
+ // This caches the expensive `getClippingElementAncestors` function so that
1228
+ // multiple lifecycle resets re-use the same result. It only lives for a
1229
+ // single call. If other functions become expensive, we can add them as well.
1230
+ const cache = new Map();
1231
+ const mergedOptions = {
1232
+ platform,
1233
+ ...options
1234
+ };
1235
+ const platformWithCache = {
1236
+ ...mergedOptions.platform,
1237
+ _c: cache
1238
+ };
1239
+ return computePosition$1(reference, floating, {
1240
+ ...mergedOptions,
1241
+ platform: platformWithCache
1242
+ });
1243
+ };
1244
+
1245
+ export { arrow as a, computePosition as c, flip as f, offset as o, shift as s };