@duetds/components 10.0.0-alpha.13 → 10.0.0-alpha.14

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 (1027) hide show
  1. package/hydrate/index.d.ts +38 -7
  2. package/hydrate/index.js +7554 -3237
  3. package/hydrate/index.mjs +45083 -0
  4. package/lib/cjs/_commonjsHelpers-4N64IRaP.js +10 -0
  5. package/lib/cjs/{a11y-utils-afeb2485.js → a11y-utils-CrefuUbk.js} +1 -1
  6. package/lib/cjs/action-arrow-down-small-CDsSJFvZ.js +21 -0
  7. package/lib/cjs/action-new-window-small-BWlVx6YN.js +21 -0
  8. package/lib/cjs/{app-globals-540cd51d.js → app-globals-CkySA1aW.js} +2 -2
  9. package/lib/cjs/duet-action-button.cjs.entry.js +83 -28
  10. package/lib/cjs/duet-alert.cjs.entry.js +72 -30
  11. package/lib/cjs/duet-badge.cjs.entry.js +16 -6
  12. package/lib/cjs/duet-banner.cjs.entry.js +49 -23
  13. package/lib/cjs/duet-breadcrumb.cjs.entry.js +32 -12
  14. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +17 -11
  15. package/lib/cjs/duet-button_2.cjs.entry.js +147 -54
  16. package/lib/cjs/duet-callout.cjs.entry.js +10 -7
  17. package/lib/cjs/duet-caption_4.cjs.entry.js +175 -34
  18. package/lib/cjs/duet-card.cjs.entry.js +80 -30
  19. package/lib/cjs/duet-checkbox.cjs.entry.js +65 -29
  20. package/lib/cjs/duet-checkmark.cjs.entry.js +18 -6
  21. package/lib/cjs/duet-chip.cjs.entry.js +49 -29
  22. package/lib/cjs/duet-choice_2.cjs.entry.js +212 -74
  23. package/lib/cjs/duet-collapsible.cjs.entry.js +67 -25
  24. package/lib/cjs/duet-combobox.cjs.entry.js +79 -46
  25. package/lib/cjs/duet-contact-card.cjs.entry.js +14 -15
  26. package/lib/cjs/duet-cookie-consent.cjs.entry.js +12 -9
  27. package/lib/cjs/duet-date-picker.cjs.entry.js +142 -52
  28. package/lib/cjs/duet-divider_2.cjs.entry.js +26 -10
  29. package/lib/cjs/duet-editable-table_3.cjs.entry.js +477 -198
  30. package/lib/cjs/duet-empty-state.cjs.entry.js +12 -6
  31. package/lib/cjs/duet-fieldset.cjs.entry.js +38 -19
  32. package/lib/cjs/duet-file-chooser.cjs.entry.js +16 -9
  33. package/lib/cjs/duet-footer.cjs.entry.js +52 -26
  34. package/lib/cjs/duet-grid_2.cjs.entry.js +65 -12
  35. package/lib/cjs/duet-header_2.cjs.entry.js +250 -85
  36. package/lib/cjs/duet-hero.cjs.entry.js +110 -26
  37. package/lib/cjs/duet-icon.cjs.entry.js +50 -11
  38. package/lib/cjs/duet-input_2.cjs.entry.js +181 -69
  39. package/lib/cjs/duet-layout.cjs.entry.js +27 -7
  40. package/lib/cjs/duet-list_2.cjs.entry.js +44 -9
  41. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +21 -13
  42. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +16 -11
  43. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +16 -11
  44. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +37 -16
  45. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +15 -7
  46. package/lib/cjs/duet-menu-bar.cjs.entry.js +32 -22
  47. package/lib/cjs/duet-modal.cjs.entry.js +74 -18
  48. package/lib/cjs/duet-multiselect.cjs.entry.js +85 -39
  49. package/lib/cjs/duet-nav.cjs.entry.js +10 -6
  50. package/lib/cjs/duet-notification_2.cjs.entry.js +83 -27
  51. package/lib/cjs/duet-number-input.cjs.entry.js +175 -65
  52. package/lib/cjs/duet-overlay.cjs.entry.js +33 -12
  53. package/lib/cjs/duet-page-heading.cjs.entry.js +13 -8
  54. package/lib/cjs/duet-pagination_2.cjs.entry.js +147 -72
  55. package/lib/cjs/duet-phone-input.cjs.entry.js +76 -35
  56. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +108 -54
  57. package/lib/cjs/duet-progress.cjs.entry.js +31 -12
  58. package/lib/cjs/duet-promo-card.cjs.entry.js +24 -10
  59. package/lib/cjs/duet-radio_2.cjs.entry.js +100 -47
  60. package/lib/cjs/duet-range-slider.cjs.entry.js +70 -34
  61. package/lib/cjs/duet-scrollable_3.cjs.entry.js +172 -59
  62. package/lib/cjs/duet-section-layout.cjs.entry.js +13 -6
  63. package/lib/cjs/duet-select.cjs.entry.js +79 -37
  64. package/lib/cjs/duet-shaped-image.cjs.entry.js +13 -8
  65. package/lib/cjs/duet-show-more.cjs.entry.js +77 -35
  66. package/lib/cjs/duet-slideout-lang.cjs.entry.js +8 -8
  67. package/lib/cjs/duet-slideout-link.cjs.entry.js +47 -14
  68. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +18 -9
  69. package/lib/cjs/duet-slideout-panel.cjs.entry.js +40 -23
  70. package/lib/cjs/duet-slideout.cjs.entry.js +37 -23
  71. package/lib/cjs/duet-status-icon.cjs.entry.js +14 -4
  72. package/lib/cjs/duet-step_2.cjs.entry.js +52 -18
  73. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +22 -7
  74. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +22 -13
  75. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +38 -17
  76. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +16 -7
  77. package/lib/cjs/duet-submenu-bar.cjs.entry.js +21 -15
  78. package/lib/cjs/duet-textarea.cjs.entry.js +98 -45
  79. package/lib/cjs/duet-toggle.cjs.entry.js +47 -26
  80. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +19 -8
  81. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +22 -11
  82. package/lib/cjs/duet-toolbar-item.cjs.entry.js +43 -16
  83. package/lib/cjs/duet-toolbar-link.cjs.entry.js +18 -7
  84. package/lib/cjs/duet-toolbar.cjs.entry.js +9 -7
  85. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +11 -20
  86. package/lib/cjs/duet-tooltip.cjs.entry.js +91 -45
  87. package/lib/cjs/duet-tray.cjs.entry.js +60 -21
  88. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +29 -10
  89. package/lib/cjs/duet-upload-item.cjs.entry.js +10 -20
  90. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -5
  91. package/lib/cjs/duet.cjs.js +8 -8
  92. package/lib/cjs/{errorcodes.utils-b47aaa45.js → errorcodes.utils-mZFkq5Tt.js} +2 -2
  93. package/lib/cjs/floating-ui.dom.browser.min-Cj0r5YDz.js +709 -0
  94. package/lib/cjs/{focus-utils-c4163f8f.js → focus-utils-dqd59YI6.js} +1 -1
  95. package/lib/cjs/form-search-CzPfHB80.js +21 -0
  96. package/lib/cjs/{index-00821d28.js → index-CdC7dzZ-.js} +1845 -1369
  97. package/lib/cjs/{label-3ce3ebad.js → label-BQpxsrOR.js} +1 -1
  98. package/lib/cjs/{language-utils-77bf1c27.js → language-utils-A7DfQayC.js} +2 -2
  99. package/lib/cjs/loader.cjs.js +3 -5
  100. package/lib/cjs/{slot-utils-acd4cc20.js → slot-utils-DgJchaT4.js} +1 -1
  101. package/lib/cjs/{token-utils-5000595c.js → token-utils-BcI9qaMX.js} +2 -2
  102. package/lib/cjs/{tokens-57e06fe4.js → tokens-Qt4x7zcB.js} +4 -4
  103. package/lib/cjs/{tokens.module-7c947029.js → tokens.module-Dzg9dTSm.js} +1 -1
  104. package/lib/collection/collection-manifest.json +1 -1
  105. package/lib/collection/components/duet-action-button/duet-action-button.js +92 -33
  106. package/lib/collection/components/duet-alert/duet-alert.js +77 -32
  107. package/lib/collection/components/duet-badge/duet-badge.js +17 -4
  108. package/lib/collection/components/duet-banner/duet-banner.js +52 -23
  109. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +18 -7
  110. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +13 -4
  111. package/lib/collection/components/duet-button/duet-button.js +164 -80
  112. package/lib/collection/components/duet-callout/duet-callout.js +8 -2
  113. package/lib/collection/components/duet-caption/duet-caption.js +16 -4
  114. package/lib/collection/components/duet-card/duet-card.js +73 -32
  115. package/lib/collection/components/duet-checkbox/duet-checkbox.js +83 -44
  116. package/lib/collection/components/duet-chip/duet-chip.js +56 -33
  117. package/lib/collection/components/duet-choice/duet-checkmark.js +20 -5
  118. package/lib/collection/components/duet-choice/duet-choice.js +162 -75
  119. package/lib/collection/components/duet-choice-group/duet-choice-group.js +75 -32
  120. package/lib/collection/components/duet-collapsible/duet-collapsible.js +68 -24
  121. package/lib/collection/components/duet-combobox/duet-combobox.js +83 -45
  122. package/lib/collection/components/duet-contact-card/duet-contact-card.js +19 -17
  123. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +10 -4
  124. package/lib/collection/components/duet-date-picker/duet-date-picker.js +149 -67
  125. package/lib/collection/components/duet-divider/duet-divider.js +13 -3
  126. package/lib/collection/components/duet-editable-table/duet-editable-table.js +81 -24
  127. package/lib/collection/components/duet-empty-state/duet-empty-state.js +12 -3
  128. package/lib/collection/components/duet-fieldset/duet-fieldset.js +42 -20
  129. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +16 -6
  130. package/lib/collection/components/duet-footer/duet-footer.js +51 -23
  131. package/lib/collection/components/duet-grid/duet-grid.js +38 -8
  132. package/lib/collection/components/duet-grid-item/duet-grid-item.js +38 -11
  133. package/lib/collection/components/duet-header/duet-header.js +162 -74
  134. package/lib/collection/components/duet-heading/duet-heading.js +36 -12
  135. package/lib/collection/components/duet-hero/duet-hero.js +128 -41
  136. package/lib/collection/components/duet-icon/duet-icon.js +58 -16
  137. package/lib/collection/components/duet-input/duet-input.js +183 -93
  138. package/lib/collection/components/duet-label/duet-label.js +22 -7
  139. package/lib/collection/components/duet-layout/duet-layout.js +30 -7
  140. package/lib/collection/components/duet-link/duet-link.js +84 -26
  141. package/lib/collection/components/duet-list/duet-list.js +37 -8
  142. package/lib/collection/components/duet-list-item/duet-list-item.js +12 -2
  143. package/lib/collection/components/duet-logo/duet-logo.js +34 -7
  144. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +33 -20
  145. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +31 -20
  146. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +16 -8
  147. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +16 -8
  148. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +37 -14
  149. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +17 -6
  150. package/lib/collection/components/duet-modal/duet-modal.js +82 -23
  151. package/lib/collection/components/duet-multiselect/duet-multiselect.js +95 -45
  152. package/lib/collection/components/duet-nav/duet-nav.js +9 -2
  153. package/lib/collection/components/duet-notification/duet-notification.js +37 -7
  154. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +52 -22
  155. package/lib/collection/components/duet-number-input/duet-number-input.js +177 -87
  156. package/lib/collection/components/duet-overlay/duet-overlay.js +38 -14
  157. package/lib/collection/components/duet-page-heading/duet-page-heading.js +15 -7
  158. package/lib/collection/components/duet-pagination/duet-pagination.js +119 -65
  159. package/lib/collection/components/duet-paragraph/duet-paragraph.js +25 -6
  160. package/lib/collection/components/duet-phone-input/duet-phone-input.js +89 -44
  161. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +58 -33
  162. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +59 -27
  163. package/lib/collection/components/duet-progress/duet-progress.js +36 -14
  164. package/lib/collection/components/duet-promo-card/duet-promo-card.js +25 -8
  165. package/lib/collection/components/duet-radio/duet-radio.js +63 -45
  166. package/lib/collection/components/duet-radio-group/duet-radio-group.js +67 -28
  167. package/lib/collection/components/duet-range-slider/duet-range-slider.js +83 -44
  168. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +41 -12
  169. package/lib/collection/components/duet-scrollable/duet-scrollable.js +55 -18
  170. package/lib/collection/components/duet-section-layout/duet-section-layout.js +13 -3
  171. package/lib/collection/components/duet-select/duet-select.js +98 -53
  172. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +15 -7
  173. package/lib/collection/components/duet-show-more/duet-show-more.js +84 -35
  174. package/lib/collection/components/duet-slideout/duet-slideout.js +32 -15
  175. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +4 -1
  176. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +48 -13
  177. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +37 -17
  178. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +19 -7
  179. package/lib/collection/components/duet-spacer/duet-spacer.js +13 -3
  180. package/lib/collection/components/duet-spinner/duet-spinner.js +18 -5
  181. package/lib/collection/components/duet-status-icon/duet-status-icon.js +16 -4
  182. package/lib/collection/components/duet-step/duet-step.js +23 -14
  183. package/lib/collection/components/duet-stepper/duet-stepper.js +22 -5
  184. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +20 -11
  185. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +21 -9
  186. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +24 -6
  187. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +37 -14
  188. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +16 -4
  189. package/lib/collection/components/duet-tab/duet-tab.js +35 -21
  190. package/lib/collection/components/duet-tab-group/duet-tab-group.js +107 -40
  191. package/lib/collection/components/duet-table/duet-table.js +40 -11
  192. package/lib/collection/components/duet-textarea/duet-textarea.js +122 -66
  193. package/lib/collection/components/duet-toggle/duet-toggle.js +60 -36
  194. package/lib/collection/components/duet-toolbar/duet-toolbar.js +9 -4
  195. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +24 -10
  196. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +21 -7
  197. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +45 -16
  198. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +21 -7
  199. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +6 -9
  200. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +10 -11
  201. package/lib/collection/components/duet-tooltip/duet-tooltip.js +93 -44
  202. package/lib/collection/components/duet-tray/duet-tray.js +61 -19
  203. package/lib/collection/components/duet-upload/duet-upload.js +417 -211
  204. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +34 -12
  205. package/lib/collection/components/duet-upload-item/duet-upload-item.js +15 -16
  206. package/lib/collection/index.js +1 -0
  207. package/lib/collection/utils/test-utils.js +2 -2
  208. package/lib/duet/duet.esm.js +1 -1
  209. package/lib/duet/{p-7a41a208.entry.js → p-022a948c.entry.js} +1 -1
  210. package/lib/duet/p-09fe69e4.entry.js +4 -0
  211. package/lib/duet/p-0e72751a.entry.js +4 -0
  212. package/lib/duet/p-138538b8.entry.js +4 -0
  213. package/lib/duet/{p-fa070e35.entry.js → p-15f95fae.entry.js} +1 -1
  214. package/lib/duet/p-190b9ab3.entry.js +4 -0
  215. package/lib/duet/{p-feda74a6.entry.js → p-1af2ca54.entry.js} +1 -1
  216. package/lib/duet/p-1e769f0d.entry.js +4 -0
  217. package/lib/duet/p-1f5989b6.entry.js +4 -0
  218. package/lib/duet/{p-76b4b8b8.entry.js → p-1f8695a5.entry.js} +1 -1
  219. package/lib/duet/p-29e1d491.entry.js +4 -0
  220. package/lib/duet/p-2cbe593b.entry.js +4 -0
  221. package/lib/duet/p-32f7b711.entry.js +4 -0
  222. package/lib/duet/p-362f6fc2.entry.js +4 -0
  223. package/lib/duet/p-38b70269.entry.js +4 -0
  224. package/lib/duet/p-3fca2738.entry.js +4 -0
  225. package/lib/duet/p-44f37fb5.entry.js +4 -0
  226. package/lib/duet/{p-0e04987f.entry.js → p-48af1ecb.entry.js} +1 -1
  227. package/lib/duet/{p-2013ff49.entry.js → p-4aa49986.entry.js} +1 -1
  228. package/lib/duet/p-4c281745.entry.js +4 -0
  229. package/lib/duet/{p-c41397de.entry.js → p-4e945a94.entry.js} +1 -1
  230. package/lib/duet/p-56354b6a.entry.js +4 -0
  231. package/lib/duet/p-56cb675d.entry.js +4 -0
  232. package/lib/duet/p-5a75c2dd.entry.js +4 -0
  233. package/lib/duet/p-5d8d8118.entry.js +4 -0
  234. package/lib/duet/p-5f5bcada.entry.js +4 -0
  235. package/lib/duet/p-5iZMFvpJ.js +4 -0
  236. package/lib/duet/p-64021c0d.entry.js +4 -0
  237. package/lib/duet/p-64419d69.entry.js +4 -0
  238. package/lib/duet/p-6b17ff88.entry.js +4 -0
  239. package/lib/duet/p-6e621f1a.entry.js +4 -0
  240. package/lib/duet/p-740f6f1f.entry.js +4 -0
  241. package/lib/duet/{p-b76c9a8c.entry.js → p-7699005d.entry.js} +1 -1
  242. package/lib/duet/p-79255eb6.entry.js +4 -0
  243. package/lib/duet/p-7a319135.entry.js +4 -0
  244. package/lib/duet/p-82f7e5b7.entry.js +4 -0
  245. package/lib/duet/{p-323de867.entry.js → p-839e770e.entry.js} +1 -1
  246. package/lib/duet/p-85316d42.entry.js +4 -0
  247. package/lib/duet/p-885c2f54.entry.js +4 -0
  248. package/lib/duet/p-893e65fc.entry.js +4 -0
  249. package/lib/duet/p-8ca095ab.entry.js +4 -0
  250. package/lib/duet/p-8fd3fed6.entry.js +4 -0
  251. package/lib/duet/{p-279fd0c9.entry.js → p-93336ef6.entry.js} +1 -1
  252. package/lib/duet/p-95f64c62.entry.js +4 -0
  253. package/lib/duet/{p-46df9e4b.entry.js → p-96f19678.entry.js} +1 -1
  254. package/lib/duet/p-98088a03.entry.js +4 -0
  255. package/lib/duet/{p-12674919.entry.js → p-9a05eda1.entry.js} +1 -1
  256. package/lib/duet/p-9c942b69.entry.js +4 -0
  257. package/lib/duet/{p-38d6a55c.entry.js → p-9ee7773f.entry.js} +1 -1
  258. package/lib/duet/p-BGuG-JHD.js +5 -0
  259. package/lib/duet/p-BSVeUfs_.js +4 -0
  260. package/lib/duet/p-BVgBUIYF.js +4 -0
  261. package/lib/duet/{p-81287261.js → p-B_NkY9T0.js} +1 -1
  262. package/lib/duet/{p-465be57f.js → p-CKWzhSi1.js} +1 -1
  263. package/lib/duet/p-CwQkRqt4.js +4 -0
  264. package/lib/duet/p-DJ_0Rwfo.js +4 -0
  265. package/lib/duet/{p-744b8ee1.js → p-DQNSmB4A.js} +1 -1
  266. package/lib/duet/p-DWTFQwbu.js +4 -0
  267. package/lib/duet/{p-12b49f6f.js → p-DXDaS3zE.js} +1 -1
  268. package/lib/duet/{p-a45e3f8b.js → p-Db8rvjPI.js} +1 -1
  269. package/lib/duet/p-DkXykZBx.js +4 -0
  270. package/lib/duet/p-DvwKrUS6.js +4 -0
  271. package/lib/duet/p-ObNrEFDJ.js +4 -0
  272. package/lib/duet/p-UQH7pb1d.js +4 -0
  273. package/lib/duet/{p-05a9d58f.entry.js → p-a0c26d74.entry.js} +1 -1
  274. package/lib/duet/{p-25109796.entry.js → p-a4613009.entry.js} +1 -1
  275. package/lib/duet/p-a57b80f6.entry.js +4 -0
  276. package/lib/duet/{p-d4dd9fea.entry.js → p-a7dc80d5.entry.js} +1 -1
  277. package/lib/duet/{p-0febcf5b.entry.js → p-a893d1f9.entry.js} +1 -1
  278. package/lib/duet/p-a95a9a4d.entry.js +4 -0
  279. package/lib/duet/p-a9b45f8b.entry.js +4 -0
  280. package/lib/duet/{p-29e6f9b7.entry.js → p-aadd810c.entry.js} +1 -1
  281. package/lib/duet/p-ae4af39c.entry.js +4 -0
  282. package/lib/duet/p-ae5e487c.entry.js +4 -0
  283. package/lib/duet/p-b6517bc0.entry.js +4 -0
  284. package/lib/duet/p-b96af1da.entry.js +4 -0
  285. package/lib/duet/{p-0d045bb2.entry.js → p-be665fb2.entry.js} +1 -1
  286. package/lib/duet/{p-c2f40f22.entry.js → p-be70c5b0.entry.js} +1 -1
  287. package/lib/duet/p-bfc2e504.entry.js +4 -0
  288. package/lib/duet/p-c00040f7.entry.js +4 -0
  289. package/lib/duet/p-c03603ba.entry.js +4 -0
  290. package/lib/duet/{p-23435148.entry.js → p-c089e413.entry.js} +1 -1
  291. package/lib/duet/p-c3aa1f9b.entry.js +4 -0
  292. package/lib/duet/p-c489f228.entry.js +4 -0
  293. package/lib/duet/p-c4d0a7f2.entry.js +4 -0
  294. package/lib/duet/p-c5dbeb9d.entry.js +4 -0
  295. package/lib/duet/p-c6237212.entry.js +4 -0
  296. package/lib/duet/p-cf728e59.entry.js +4 -0
  297. package/lib/duet/{p-760e5874.entry.js → p-d155856d.entry.js} +1 -1
  298. package/lib/duet/p-d1f5b0cb.entry.js +4 -0
  299. package/lib/duet/p-d386eb3c.entry.js +4 -0
  300. package/lib/duet/p-d8ceab90.entry.js +4 -0
  301. package/lib/duet/{p-750d4767.entry.js → p-dac62f09.entry.js} +1 -1
  302. package/lib/duet/p-e4156276.entry.js +4 -0
  303. package/lib/duet/p-e6b06321.entry.js +4 -0
  304. package/lib/duet/p-e6d38c72.entry.js +4 -0
  305. package/lib/duet/{p-5fb4ac45.entry.js → p-ec552dc7.entry.js} +1 -1
  306. package/lib/duet/p-ff5188ab.entry.js +4 -0
  307. package/lib/duet/p-vVCYtBMj.js +4 -0
  308. package/lib/esm/_commonjsHelpers-DvwKrUS6.js +8 -0
  309. package/lib/{dist-custom-elements/p-afb6f7fb.js → esm/a11y-utils-Bdgp_pLF.js} +1 -1
  310. package/lib/esm/action-arrow-down-small-Bk3GShyI.js +19 -0
  311. package/lib/esm/action-new-window-small-EH8_HdAm.js +19 -0
  312. package/lib/esm/{app-globals-2c6c1103.js → app-globals-BM3P_KO9.js} +2 -2
  313. package/lib/esm/duet-action-button.entry.js +83 -26
  314. package/lib/esm/duet-alert.entry.js +72 -28
  315. package/lib/esm/duet-badge.entry.js +16 -4
  316. package/lib/esm/duet-banner.entry.js +49 -21
  317. package/lib/esm/duet-breadcrumb.entry.js +33 -11
  318. package/lib/esm/duet-breadcrumbs.entry.js +17 -9
  319. package/lib/esm/duet-button_2.entry.js +147 -52
  320. package/lib/esm/duet-callout.entry.js +10 -5
  321. package/lib/esm/duet-caption_4.entry.js +175 -32
  322. package/lib/esm/duet-card.entry.js +80 -28
  323. package/lib/esm/duet-checkbox.entry.js +65 -27
  324. package/lib/esm/duet-checkmark.entry.js +18 -4
  325. package/lib/esm/duet-chip.entry.js +49 -27
  326. package/lib/esm/duet-choice_2.entry.js +213 -73
  327. package/lib/esm/duet-collapsible.entry.js +67 -23
  328. package/lib/esm/duet-combobox.entry.js +79 -44
  329. package/lib/esm/duet-contact-card.entry.js +14 -13
  330. package/lib/esm/duet-cookie-consent.entry.js +12 -7
  331. package/lib/esm/duet-date-picker.entry.js +142 -50
  332. package/lib/esm/duet-divider_2.entry.js +26 -8
  333. package/lib/esm/duet-editable-table_3.entry.js +477 -196
  334. package/lib/esm/duet-empty-state.entry.js +12 -4
  335. package/lib/esm/duet-fieldset.entry.js +38 -17
  336. package/lib/esm/duet-file-chooser.entry.js +16 -7
  337. package/lib/esm/duet-footer.entry.js +52 -24
  338. package/lib/esm/duet-grid_2.entry.js +65 -10
  339. package/lib/esm/duet-header_2.entry.js +251 -84
  340. package/lib/esm/duet-hero.entry.js +110 -24
  341. package/lib/esm/duet-icon.entry.js +50 -9
  342. package/lib/esm/duet-input_2.entry.js +182 -68
  343. package/lib/esm/duet-layout.entry.js +27 -5
  344. package/lib/esm/duet-list_2.entry.js +44 -7
  345. package/lib/esm/duet-menu-bar-button.entry.js +21 -11
  346. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +16 -9
  347. package/lib/esm/duet-menu-bar-dropdown.entry.js +16 -9
  348. package/lib/esm/duet-menu-bar-item.entry.js +37 -14
  349. package/lib/esm/duet-menu-bar-link.entry.js +15 -5
  350. package/lib/esm/duet-menu-bar.entry.js +32 -20
  351. package/lib/esm/duet-modal.entry.js +74 -16
  352. package/lib/esm/duet-multiselect.entry.js +85 -37
  353. package/lib/esm/duet-nav.entry.js +10 -4
  354. package/lib/esm/duet-notification_2.entry.js +83 -25
  355. package/lib/esm/duet-number-input.entry.js +176 -64
  356. package/lib/esm/duet-overlay.entry.js +33 -10
  357. package/lib/esm/duet-page-heading.entry.js +13 -6
  358. package/lib/esm/duet-pagination_2.entry.js +147 -70
  359. package/lib/esm/duet-phone-input.entry.js +76 -33
  360. package/lib/esm/duet-popup-menu_2.entry.js +105 -49
  361. package/lib/esm/duet-progress.entry.js +31 -10
  362. package/lib/esm/duet-promo-card.entry.js +24 -8
  363. package/lib/esm/duet-radio_2.entry.js +100 -45
  364. package/lib/esm/duet-range-slider.entry.js +70 -32
  365. package/lib/esm/duet-scrollable_3.entry.js +172 -57
  366. package/lib/esm/duet-section-layout.entry.js +13 -4
  367. package/lib/esm/duet-select.entry.js +79 -35
  368. package/lib/esm/duet-shaped-image.entry.js +13 -6
  369. package/lib/esm/duet-show-more.entry.js +77 -33
  370. package/lib/esm/duet-slideout-lang.entry.js +8 -6
  371. package/lib/esm/duet-slideout-link.entry.js +47 -12
  372. package/lib/esm/duet-slideout-panel-dropdown.entry.js +18 -7
  373. package/lib/esm/duet-slideout-panel.entry.js +40 -21
  374. package/lib/esm/duet-slideout.entry.js +37 -21
  375. package/lib/esm/duet-status-icon.entry.js +14 -2
  376. package/lib/esm/duet-step_2.entry.js +53 -17
  377. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +22 -5
  378. package/lib/esm/duet-submenu-bar-dropdown.entry.js +22 -11
  379. package/lib/esm/duet-submenu-bar-item.entry.js +38 -15
  380. package/lib/esm/duet-submenu-bar-link.entry.js +16 -5
  381. package/lib/esm/duet-submenu-bar.entry.js +21 -13
  382. package/lib/esm/duet-textarea.entry.js +98 -43
  383. package/lib/esm/duet-toggle.entry.js +47 -24
  384. package/lib/esm/duet-toolbar-dropdown-link.entry.js +19 -6
  385. package/lib/esm/duet-toolbar-dropdown.entry.js +22 -9
  386. package/lib/esm/duet-toolbar-item.entry.js +43 -14
  387. package/lib/esm/duet-toolbar-link.entry.js +18 -5
  388. package/lib/esm/duet-toolbar.entry.js +9 -5
  389. package/lib/esm/duet-tooltip-button_2.entry.js +11 -18
  390. package/lib/esm/duet-tooltip.entry.js +90 -42
  391. package/lib/esm/duet-tray.entry.js +60 -19
  392. package/lib/esm/duet-upload-aria-status.entry.js +29 -8
  393. package/lib/esm/duet-upload-item.entry.js +10 -18
  394. package/lib/esm/duet-visually-hidden.entry.js +2 -3
  395. package/lib/esm/duet.js +7 -6
  396. package/lib/esm/{errorcodes.utils-86af68b7.js → errorcodes.utils-BgVG3eUP.js} +3 -3
  397. package/lib/esm/floating-ui.dom.browser.min-B_NkY9T0.js +702 -0
  398. package/lib/{dist-custom-elements/p-e30dc66d.js → esm/focus-utils-B1AOXMlP.js} +1 -1
  399. package/lib/esm/form-search-CevX33LA.js +19 -0
  400. package/lib/esm/{index-a830b2de.js → index-BGuG-JHD.js} +1843 -1365
  401. package/lib/{dist-custom-elements/p-8db11326.js → esm/keyboard-utils-Db8rvjPI.js} +1 -1
  402. package/lib/{dist-custom-elements/p-42619f94.js → esm/label-BrSxwvH-.js} +1 -1
  403. package/lib/esm/{language-utils-40caac4f.js → language-utils-BxXgd2r7.js} +2 -2
  404. package/lib/esm/loader.js +4 -4
  405. package/lib/{dist-custom-elements/p-ad615991.js → esm/slot-utils-B1zQ6tzO.js} +2 -2
  406. package/lib/{dist-custom-elements/p-0562173d.js → esm/token-utils-D2bU4zM_.js} +2 -2
  407. package/lib/esm/{tokens-84fb2357.js → tokens-DkXykZBx.js} +5 -5
  408. package/lib/{dist-custom-elements/p-cea716f7.js → esm/tokens.module-UQH7pb1d.js} +2 -2
  409. package/lib/index.js +1 -1
  410. package/lib/loader/cdn.js +1 -2
  411. package/lib/loader/index.cjs.js +1 -2
  412. package/lib/loader/index.es2017.js +0 -1
  413. package/lib/loader/index.js +1 -2
  414. package/lib/types/components.d.ts +1611 -0
  415. package/lib/types/index.d.ts +1 -0
  416. package/lib/types/stencil-public-runtime.d.ts +35 -6
  417. package/package.json +23 -9
  418. package/lib/cjs/action-arrow-down-small-ef77a2d1.js +0 -8
  419. package/lib/cjs/action-new-window-small-fa51dfb9.js +0 -8
  420. package/lib/cjs/floating-ui.dom.esm-806e7c53.js +0 -1355
  421. package/lib/cjs/form-search-d61b2843.js +0 -8
  422. package/lib/dist-custom-elements/duet-action-button.d.ts +0 -11
  423. package/lib/dist-custom-elements/duet-action-button.js +0 -9
  424. package/lib/dist-custom-elements/duet-alert.d.ts +0 -11
  425. package/lib/dist-custom-elements/duet-alert.js +0 -9
  426. package/lib/dist-custom-elements/duet-badge.d.ts +0 -11
  427. package/lib/dist-custom-elements/duet-badge.js +0 -9
  428. package/lib/dist-custom-elements/duet-banner.d.ts +0 -11
  429. package/lib/dist-custom-elements/duet-banner.js +0 -157
  430. package/lib/dist-custom-elements/duet-breadcrumb.d.ts +0 -11
  431. package/lib/dist-custom-elements/duet-breadcrumb.js +0 -101
  432. package/lib/dist-custom-elements/duet-breadcrumbs.d.ts +0 -11
  433. package/lib/dist-custom-elements/duet-breadcrumbs.js +0 -88
  434. package/lib/dist-custom-elements/duet-button.d.ts +0 -11
  435. package/lib/dist-custom-elements/duet-button.js +0 -9
  436. package/lib/dist-custom-elements/duet-callout.d.ts +0 -11
  437. package/lib/dist-custom-elements/duet-callout.js +0 -72
  438. package/lib/dist-custom-elements/duet-caption.d.ts +0 -11
  439. package/lib/dist-custom-elements/duet-caption.js +0 -9
  440. package/lib/dist-custom-elements/duet-card.d.ts +0 -11
  441. package/lib/dist-custom-elements/duet-card.js +0 -174
  442. package/lib/dist-custom-elements/duet-checkbox.d.ts +0 -11
  443. package/lib/dist-custom-elements/duet-checkbox.js +0 -9
  444. package/lib/dist-custom-elements/duet-checkmark.d.ts +0 -11
  445. package/lib/dist-custom-elements/duet-checkmark.js +0 -9
  446. package/lib/dist-custom-elements/duet-chip.d.ts +0 -11
  447. package/lib/dist-custom-elements/duet-chip.js +0 -9
  448. package/lib/dist-custom-elements/duet-choice-group.d.ts +0 -11
  449. package/lib/dist-custom-elements/duet-choice-group.js +0 -228
  450. package/lib/dist-custom-elements/duet-choice.d.ts +0 -11
  451. package/lib/dist-custom-elements/duet-choice.js +0 -454
  452. package/lib/dist-custom-elements/duet-collapsible.d.ts +0 -11
  453. package/lib/dist-custom-elements/duet-collapsible.js +0 -176
  454. package/lib/dist-custom-elements/duet-combobox.d.ts +0 -11
  455. package/lib/dist-custom-elements/duet-combobox.js +0 -706
  456. package/lib/dist-custom-elements/duet-contact-card.d.ts +0 -11
  457. package/lib/dist-custom-elements/duet-contact-card.js +0 -134
  458. package/lib/dist-custom-elements/duet-cookie-consent.d.ts +0 -11
  459. package/lib/dist-custom-elements/duet-cookie-consent.js +0 -106
  460. package/lib/dist-custom-elements/duet-date-picker.d.ts +0 -11
  461. package/lib/dist-custom-elements/duet-date-picker.js +0 -939
  462. package/lib/dist-custom-elements/duet-divider.d.ts +0 -11
  463. package/lib/dist-custom-elements/duet-divider.js +0 -9
  464. package/lib/dist-custom-elements/duet-editable-table.d.ts +0 -11
  465. package/lib/dist-custom-elements/duet-editable-table.js +0 -258
  466. package/lib/dist-custom-elements/duet-empty-state.d.ts +0 -11
  467. package/lib/dist-custom-elements/duet-empty-state.js +0 -9
  468. package/lib/dist-custom-elements/duet-fieldset.d.ts +0 -11
  469. package/lib/dist-custom-elements/duet-fieldset.js +0 -9
  470. package/lib/dist-custom-elements/duet-file-chooser.d.ts +0 -11
  471. package/lib/dist-custom-elements/duet-file-chooser.js +0 -86
  472. package/lib/dist-custom-elements/duet-footer.d.ts +0 -11
  473. package/lib/dist-custom-elements/duet-footer.js +0 -223
  474. package/lib/dist-custom-elements/duet-grid-item.d.ts +0 -11
  475. package/lib/dist-custom-elements/duet-grid-item.js +0 -9
  476. package/lib/dist-custom-elements/duet-grid.d.ts +0 -11
  477. package/lib/dist-custom-elements/duet-grid.js +0 -9
  478. package/lib/dist-custom-elements/duet-header.d.ts +0 -11
  479. package/lib/dist-custom-elements/duet-header.js +0 -698
  480. package/lib/dist-custom-elements/duet-heading.d.ts +0 -11
  481. package/lib/dist-custom-elements/duet-heading.js +0 -9
  482. package/lib/dist-custom-elements/duet-hero.d.ts +0 -11
  483. package/lib/dist-custom-elements/duet-hero.js +0 -299
  484. package/lib/dist-custom-elements/duet-icon.d.ts +0 -11
  485. package/lib/dist-custom-elements/duet-icon.js +0 -9
  486. package/lib/dist-custom-elements/duet-input.d.ts +0 -11
  487. package/lib/dist-custom-elements/duet-input.js +0 -9
  488. package/lib/dist-custom-elements/duet-label.d.ts +0 -11
  489. package/lib/dist-custom-elements/duet-label.js +0 -70
  490. package/lib/dist-custom-elements/duet-layout.d.ts +0 -11
  491. package/lib/dist-custom-elements/duet-layout.js +0 -94
  492. package/lib/dist-custom-elements/duet-link.d.ts +0 -11
  493. package/lib/dist-custom-elements/duet-link.js +0 -9
  494. package/lib/dist-custom-elements/duet-list-item.d.ts +0 -11
  495. package/lib/dist-custom-elements/duet-list-item.js +0 -9
  496. package/lib/dist-custom-elements/duet-list.d.ts +0 -11
  497. package/lib/dist-custom-elements/duet-list.js +0 -9
  498. package/lib/dist-custom-elements/duet-logo.d.ts +0 -11
  499. package/lib/dist-custom-elements/duet-logo.js +0 -9
  500. package/lib/dist-custom-elements/duet-menu-bar-button.d.ts +0 -11
  501. package/lib/dist-custom-elements/duet-menu-bar-button.js +0 -94
  502. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.d.ts +0 -11
  503. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +0 -87
  504. package/lib/dist-custom-elements/duet-menu-bar-dropdown.d.ts +0 -11
  505. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +0 -108
  506. package/lib/dist-custom-elements/duet-menu-bar-item.d.ts +0 -11
  507. package/lib/dist-custom-elements/duet-menu-bar-item.js +0 -108
  508. package/lib/dist-custom-elements/duet-menu-bar-link.d.ts +0 -11
  509. package/lib/dist-custom-elements/duet-menu-bar-link.js +0 -70
  510. package/lib/dist-custom-elements/duet-menu-bar.d.ts +0 -11
  511. package/lib/dist-custom-elements/duet-menu-bar.js +0 -207
  512. package/lib/dist-custom-elements/duet-modal.d.ts +0 -11
  513. package/lib/dist-custom-elements/duet-modal.js +0 -382
  514. package/lib/dist-custom-elements/duet-multiselect.d.ts +0 -11
  515. package/lib/dist-custom-elements/duet-multiselect.js +0 -346
  516. package/lib/dist-custom-elements/duet-nav.d.ts +0 -11
  517. package/lib/dist-custom-elements/duet-nav.js +0 -54
  518. package/lib/dist-custom-elements/duet-notification-drawer.d.ts +0 -11
  519. package/lib/dist-custom-elements/duet-notification-drawer.js +0 -168
  520. package/lib/dist-custom-elements/duet-notification.d.ts +0 -11
  521. package/lib/dist-custom-elements/duet-notification.js +0 -95
  522. package/lib/dist-custom-elements/duet-number-input.d.ts +0 -11
  523. package/lib/dist-custom-elements/duet-number-input.js +0 -484
  524. package/lib/dist-custom-elements/duet-overlay.d.ts +0 -11
  525. package/lib/dist-custom-elements/duet-overlay.js +0 -9
  526. package/lib/dist-custom-elements/duet-page-heading.d.ts +0 -11
  527. package/lib/dist-custom-elements/duet-page-heading.js +0 -87
  528. package/lib/dist-custom-elements/duet-pagination.d.ts +0 -11
  529. package/lib/dist-custom-elements/duet-pagination.js +0 -493
  530. package/lib/dist-custom-elements/duet-paragraph.d.ts +0 -11
  531. package/lib/dist-custom-elements/duet-paragraph.js +0 -9
  532. package/lib/dist-custom-elements/duet-phone-input.d.ts +0 -11
  533. package/lib/dist-custom-elements/duet-phone-input.js +0 -2136
  534. package/lib/dist-custom-elements/duet-popup-menu-item.d.ts +0 -11
  535. package/lib/dist-custom-elements/duet-popup-menu-item.js +0 -9
  536. package/lib/dist-custom-elements/duet-popup-menu.d.ts +0 -11
  537. package/lib/dist-custom-elements/duet-popup-menu.js +0 -9
  538. package/lib/dist-custom-elements/duet-progress.d.ts +0 -11
  539. package/lib/dist-custom-elements/duet-progress.js +0 -9
  540. package/lib/dist-custom-elements/duet-promo-card.d.ts +0 -11
  541. package/lib/dist-custom-elements/duet-promo-card.js +0 -105
  542. package/lib/dist-custom-elements/duet-radio-group.d.ts +0 -11
  543. package/lib/dist-custom-elements/duet-radio-group.js +0 -213
  544. package/lib/dist-custom-elements/duet-radio.d.ts +0 -11
  545. package/lib/dist-custom-elements/duet-radio.js +0 -230
  546. package/lib/dist-custom-elements/duet-range-slider.d.ts +0 -11
  547. package/lib/dist-custom-elements/duet-range-slider.js +0 -181
  548. package/lib/dist-custom-elements/duet-range-stepper.d.ts +0 -11
  549. package/lib/dist-custom-elements/duet-range-stepper.js +0 -234
  550. package/lib/dist-custom-elements/duet-scrollable.d.ts +0 -11
  551. package/lib/dist-custom-elements/duet-scrollable.js +0 -9
  552. package/lib/dist-custom-elements/duet-section-layout.d.ts +0 -11
  553. package/lib/dist-custom-elements/duet-section-layout.js +0 -56
  554. package/lib/dist-custom-elements/duet-select.d.ts +0 -11
  555. package/lib/dist-custom-elements/duet-select.js +0 -9
  556. package/lib/dist-custom-elements/duet-shaped-image.d.ts +0 -11
  557. package/lib/dist-custom-elements/duet-shaped-image.js +0 -64
  558. package/lib/dist-custom-elements/duet-show-more.d.ts +0 -11
  559. package/lib/dist-custom-elements/duet-show-more.js +0 -9
  560. package/lib/dist-custom-elements/duet-slideout-lang.d.ts +0 -11
  561. package/lib/dist-custom-elements/duet-slideout-lang.js +0 -76
  562. package/lib/dist-custom-elements/duet-slideout-link.d.ts +0 -11
  563. package/lib/dist-custom-elements/duet-slideout-link.js +0 -98
  564. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.d.ts +0 -11
  565. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +0 -93
  566. package/lib/dist-custom-elements/duet-slideout-panel.d.ts +0 -11
  567. package/lib/dist-custom-elements/duet-slideout-panel.js +0 -224
  568. package/lib/dist-custom-elements/duet-slideout.d.ts +0 -11
  569. package/lib/dist-custom-elements/duet-slideout.js +0 -328
  570. package/lib/dist-custom-elements/duet-spacer.d.ts +0 -11
  571. package/lib/dist-custom-elements/duet-spacer.js +0 -9
  572. package/lib/dist-custom-elements/duet-spinner.d.ts +0 -11
  573. package/lib/dist-custom-elements/duet-spinner.js +0 -9
  574. package/lib/dist-custom-elements/duet-status-icon.d.ts +0 -11
  575. package/lib/dist-custom-elements/duet-status-icon.js +0 -9
  576. package/lib/dist-custom-elements/duet-step.d.ts +0 -11
  577. package/lib/dist-custom-elements/duet-step.js +0 -147
  578. package/lib/dist-custom-elements/duet-stepper.d.ts +0 -11
  579. package/lib/dist-custom-elements/duet-stepper.js +0 -151
  580. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.d.ts +0 -11
  581. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +0 -81
  582. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.d.ts +0 -11
  583. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +0 -152
  584. package/lib/dist-custom-elements/duet-submenu-bar-item.d.ts +0 -11
  585. package/lib/dist-custom-elements/duet-submenu-bar-item.js +0 -113
  586. package/lib/dist-custom-elements/duet-submenu-bar-link.d.ts +0 -11
  587. package/lib/dist-custom-elements/duet-submenu-bar-link.js +0 -72
  588. package/lib/dist-custom-elements/duet-submenu-bar.d.ts +0 -11
  589. package/lib/dist-custom-elements/duet-submenu-bar.js +0 -192
  590. package/lib/dist-custom-elements/duet-tab-group.d.ts +0 -11
  591. package/lib/dist-custom-elements/duet-tab-group.js +0 -321
  592. package/lib/dist-custom-elements/duet-tab.d.ts +0 -11
  593. package/lib/dist-custom-elements/duet-tab.js +0 -150
  594. package/lib/dist-custom-elements/duet-table.d.ts +0 -11
  595. package/lib/dist-custom-elements/duet-table.js +0 -9
  596. package/lib/dist-custom-elements/duet-textarea.d.ts +0 -11
  597. package/lib/dist-custom-elements/duet-textarea.js +0 -301
  598. package/lib/dist-custom-elements/duet-toggle.d.ts +0 -11
  599. package/lib/dist-custom-elements/duet-toggle.js +0 -146
  600. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.d.ts +0 -11
  601. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +0 -80
  602. package/lib/dist-custom-elements/duet-toolbar-dropdown.d.ts +0 -11
  603. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +0 -107
  604. package/lib/dist-custom-elements/duet-toolbar-item.d.ts +0 -11
  605. package/lib/dist-custom-elements/duet-toolbar-item.js +0 -120
  606. package/lib/dist-custom-elements/duet-toolbar-link.d.ts +0 -11
  607. package/lib/dist-custom-elements/duet-toolbar-link.js +0 -74
  608. package/lib/dist-custom-elements/duet-toolbar.d.ts +0 -11
  609. package/lib/dist-custom-elements/duet-toolbar.js +0 -67
  610. package/lib/dist-custom-elements/duet-tooltip-button.d.ts +0 -11
  611. package/lib/dist-custom-elements/duet-tooltip-button.js +0 -9
  612. package/lib/dist-custom-elements/duet-tooltip-popup.d.ts +0 -11
  613. package/lib/dist-custom-elements/duet-tooltip-popup.js +0 -9
  614. package/lib/dist-custom-elements/duet-tooltip.d.ts +0 -11
  615. package/lib/dist-custom-elements/duet-tooltip.js +0 -9
  616. package/lib/dist-custom-elements/duet-tray.d.ts +0 -11
  617. package/lib/dist-custom-elements/duet-tray.js +0 -146
  618. package/lib/dist-custom-elements/duet-upload-aria-status.d.ts +0 -11
  619. package/lib/dist-custom-elements/duet-upload-aria-status.js +0 -9
  620. package/lib/dist-custom-elements/duet-upload-item.d.ts +0 -11
  621. package/lib/dist-custom-elements/duet-upload-item.js +0 -9
  622. package/lib/dist-custom-elements/duet-upload.d.ts +0 -11
  623. package/lib/dist-custom-elements/duet-upload.js +0 -1450
  624. package/lib/dist-custom-elements/duet-visually-hidden.d.ts +0 -11
  625. package/lib/dist-custom-elements/duet-visually-hidden.js +0 -9
  626. package/lib/dist-custom-elements/index.d.ts +0 -33
  627. package/lib/dist-custom-elements/index.js +0 -29
  628. package/lib/dist-custom-elements/p-0cd28b7b.js +0 -102
  629. package/lib/dist-custom-elements/p-0fb1efbc.js +0 -317
  630. package/lib/dist-custom-elements/p-115c79b6.js +0 -6
  631. package/lib/dist-custom-elements/p-15809286.js +0 -50
  632. package/lib/dist-custom-elements/p-18dee42a.js +0 -124
  633. package/lib/dist-custom-elements/p-1d115447.js +0 -268
  634. package/lib/dist-custom-elements/p-28c85b1c.js +0 -166
  635. package/lib/dist-custom-elements/p-35375593.js +0 -161
  636. package/lib/dist-custom-elements/p-3695c0cf.js +0 -614
  637. package/lib/dist-custom-elements/p-42c1fc90.js +0 -321
  638. package/lib/dist-custom-elements/p-44ae5535.js +0 -370
  639. package/lib/dist-custom-elements/p-49b8ef8e.js +0 -55
  640. package/lib/dist-custom-elements/p-4f6ac36d.js +0 -39
  641. package/lib/dist-custom-elements/p-605c5b0f.js +0 -61
  642. package/lib/dist-custom-elements/p-61a64a72.js +0 -110
  643. package/lib/dist-custom-elements/p-63200e87.js +0 -105
  644. package/lib/dist-custom-elements/p-65398a24.js +0 -63
  645. package/lib/dist-custom-elements/p-7b6a89e9.js +0 -237
  646. package/lib/dist-custom-elements/p-821de204.js +0 -1630
  647. package/lib/dist-custom-elements/p-83e0135b.js +0 -82
  648. package/lib/dist-custom-elements/p-861771fa.js +0 -73
  649. package/lib/dist-custom-elements/p-91688dd8.js +0 -84
  650. package/lib/dist-custom-elements/p-92d1b72f.js +0 -194
  651. package/lib/dist-custom-elements/p-959f2240.js +0 -645
  652. package/lib/dist-custom-elements/p-993aea39.js +0 -175
  653. package/lib/dist-custom-elements/p-999222a2.js +0 -154
  654. package/lib/dist-custom-elements/p-9a9b1ce5.js +0 -81
  655. package/lib/dist-custom-elements/p-9df4cfa4.js +0 -25
  656. package/lib/dist-custom-elements/p-a1b0454c.js +0 -56
  657. package/lib/dist-custom-elements/p-a39af5e2.js +0 -108
  658. package/lib/dist-custom-elements/p-a3d3c420.js +0 -60
  659. package/lib/dist-custom-elements/p-a95a6fb7.js +0 -453
  660. package/lib/dist-custom-elements/p-a9727b6a.js +0 -213
  661. package/lib/dist-custom-elements/p-b71858bd.js +0 -214
  662. package/lib/dist-custom-elements/p-c1e56f9a.js +0 -206
  663. package/lib/dist-custom-elements/p-cd328521.js +0 -80
  664. package/lib/dist-custom-elements/p-cde80d94.js +0 -198
  665. package/lib/dist-custom-elements/p-d004da5f.js +0 -6
  666. package/lib/dist-custom-elements/p-d5644004.js +0 -124
  667. package/lib/dist-custom-elements/p-ef48f2c7.js +0 -61
  668. package/lib/dist-custom-elements/p-f11208c3.js +0 -6
  669. package/lib/dist-custom-elements/p-f2c2f3d2.js +0 -2130
  670. package/lib/dist-custom-elements/p-f6000a03.js +0 -753
  671. package/lib/dist-custom-elements/p-f8ba399b.js +0 -63
  672. package/lib/dist-custom-elements/p-fb43ee87.js +0 -127
  673. package/lib/dist-custom-elements/p-fb723dff.js +0 -100
  674. package/lib/duet/duet.js +0 -127
  675. package/lib/duet/p-010dd6d5.entry.js +0 -4
  676. package/lib/duet/p-01ef338b.system.entry.js +0 -4
  677. package/lib/duet/p-020f583d.entry.js +0 -4
  678. package/lib/duet/p-03c96847.system.entry.js +0 -4
  679. package/lib/duet/p-04aad5a1.entry.js +0 -4
  680. package/lib/duet/p-0511fd26.system.js +0 -4
  681. package/lib/duet/p-05225696.system.entry.js +0 -4
  682. package/lib/duet/p-053b71e6.system.js +0 -4
  683. package/lib/duet/p-0562616e.system.entry.js +0 -4
  684. package/lib/duet/p-068cf3e6.system.entry.js +0 -4
  685. package/lib/duet/p-096ca5f2.system.entry.js +0 -4
  686. package/lib/duet/p-0a407ea6.entry.js +0 -4
  687. package/lib/duet/p-0c4bbd65.system.js +0 -4
  688. package/lib/duet/p-0c91e827.system.entry.js +0 -4
  689. package/lib/duet/p-0d738a25.entry.js +0 -4
  690. package/lib/duet/p-0d7da85a.js +0 -4
  691. package/lib/duet/p-0dc9089b.system.js +0 -4
  692. package/lib/duet/p-0f75edd4.system.entry.js +0 -4
  693. package/lib/duet/p-1047a738.system.entry.js +0 -4
  694. package/lib/duet/p-1054dba4.system.entry.js +0 -4
  695. package/lib/duet/p-10e56ab2.entry.js +0 -4
  696. package/lib/duet/p-115c79b6.js +0 -4
  697. package/lib/duet/p-145c3b24.entry.js +0 -4
  698. package/lib/duet/p-17004202.system.entry.js +0 -4
  699. package/lib/duet/p-18060b9c.system.entry.js +0 -4
  700. package/lib/duet/p-18e8baae.system.entry.js +0 -4
  701. package/lib/duet/p-19a0cdc0.system.entry.js +0 -4
  702. package/lib/duet/p-19c0e251.system.entry.js +0 -4
  703. package/lib/duet/p-1a1d3f9e.entry.js +0 -4
  704. package/lib/duet/p-1d6153e1.system.entry.js +0 -4
  705. package/lib/duet/p-201ec410.entry.js +0 -4
  706. package/lib/duet/p-205d2384.system.entry.js +0 -4
  707. package/lib/duet/p-21500424.entry.js +0 -4
  708. package/lib/duet/p-215bd94e.entry.js +0 -4
  709. package/lib/duet/p-217c18b8.entry.js +0 -4
  710. package/lib/duet/p-269e2b32.system.entry.js +0 -4
  711. package/lib/duet/p-2af64b95.system.entry.js +0 -4
  712. package/lib/duet/p-2ed426d9.system.entry.js +0 -4
  713. package/lib/duet/p-2f7a111a.entry.js +0 -4
  714. package/lib/duet/p-30e15c0b.system.entry.js +0 -4
  715. package/lib/duet/p-3214f981.system.entry.js +0 -4
  716. package/lib/duet/p-32f3a8fc.system.entry.js +0 -4
  717. package/lib/duet/p-361082c8.entry.js +0 -4
  718. package/lib/duet/p-372b9ced.system.entry.js +0 -4
  719. package/lib/duet/p-3767d0d2.system.entry.js +0 -4
  720. package/lib/duet/p-3c0d9ecf.system.entry.js +0 -4
  721. package/lib/duet/p-3dd22609.entry.js +0 -4
  722. package/lib/duet/p-3e2dceb1.entry.js +0 -4
  723. package/lib/duet/p-3f0f2506.system.entry.js +0 -4
  724. package/lib/duet/p-411babaf.entry.js +0 -4
  725. package/lib/duet/p-414698d0.system.entry.js +0 -4
  726. package/lib/duet/p-41982d26.system.js +0 -4
  727. package/lib/duet/p-44b36dbf.js +0 -5
  728. package/lib/duet/p-45700c8c.entry.js +0 -4
  729. package/lib/duet/p-46b1437a.system.entry.js +0 -4
  730. package/lib/duet/p-47dfb7d9.system.entry.js +0 -4
  731. package/lib/duet/p-49957220.system.js +0 -4
  732. package/lib/duet/p-4a3dae6f.js +0 -4
  733. package/lib/duet/p-4a836db3.entry.js +0 -4
  734. package/lib/duet/p-4aadd927.entry.js +0 -4
  735. package/lib/duet/p-4cff3036.system.js +0 -4
  736. package/lib/duet/p-4d81fd4b.system.entry.js +0 -4
  737. package/lib/duet/p-4e97bc75.entry.js +0 -4
  738. package/lib/duet/p-50b6d86c.system.entry.js +0 -4
  739. package/lib/duet/p-528fd238.entry.js +0 -4
  740. package/lib/duet/p-52d44078.entry.js +0 -4
  741. package/lib/duet/p-533f6503.system.entry.js +0 -4
  742. package/lib/duet/p-53ccc61f.entry.js +0 -4
  743. package/lib/duet/p-553e83f7.system.entry.js +0 -4
  744. package/lib/duet/p-5577da59.system.js +0 -4
  745. package/lib/duet/p-560c69af.system.entry.js +0 -4
  746. package/lib/duet/p-56ad7189.system.js +0 -4
  747. package/lib/duet/p-590a4048.system.entry.js +0 -4
  748. package/lib/duet/p-5a27a619.system.entry.js +0 -4
  749. package/lib/duet/p-5cf25ba2.entry.js +0 -4
  750. package/lib/duet/p-5e0654cc.system.js +0 -4
  751. package/lib/duet/p-5e3f9cd1.entry.js +0 -4
  752. package/lib/duet/p-5ed29c82.system.entry.js +0 -4
  753. package/lib/duet/p-6324b774.entry.js +0 -4
  754. package/lib/duet/p-63fef46e.system.entry.js +0 -4
  755. package/lib/duet/p-64a58c4a.entry.js +0 -4
  756. package/lib/duet/p-654b234a.system.entry.js +0 -4
  757. package/lib/duet/p-6970fc5d.entry.js +0 -4
  758. package/lib/duet/p-6ffbffc7.entry.js +0 -4
  759. package/lib/duet/p-707c7490.entry.js +0 -4
  760. package/lib/duet/p-72650200.system.entry.js +0 -4
  761. package/lib/duet/p-734350ef.system.js +0 -4
  762. package/lib/duet/p-737740f7.system.entry.js +0 -4
  763. package/lib/duet/p-739af934.entry.js +0 -4
  764. package/lib/duet/p-752fa0fc.system.js +0 -4
  765. package/lib/duet/p-7556653d.system.entry.js +0 -4
  766. package/lib/duet/p-76dc7014.system.entry.js +0 -4
  767. package/lib/duet/p-798f979f.system.js +0 -4
  768. package/lib/duet/p-7aa146c1.system.entry.js +0 -4
  769. package/lib/duet/p-7be1d938.entry.js +0 -4
  770. package/lib/duet/p-7c66ce9f.entry.js +0 -4
  771. package/lib/duet/p-7f6cbb90.entry.js +0 -4
  772. package/lib/duet/p-810d4680.entry.js +0 -4
  773. package/lib/duet/p-858b17a7.system.entry.js +0 -4
  774. package/lib/duet/p-85f6e856.system.entry.js +0 -4
  775. package/lib/duet/p-8c6f575c.system.entry.js +0 -4
  776. package/lib/duet/p-8dfc3a30.entry.js +0 -4
  777. package/lib/duet/p-8ea8b678.entry.js +0 -4
  778. package/lib/duet/p-8f477bd6.system.js +0 -4
  779. package/lib/duet/p-8faaaf5f.system.js +0 -4
  780. package/lib/duet/p-8fb2b5b5.entry.js +0 -4
  781. package/lib/duet/p-92757eb7.system.entry.js +0 -4
  782. package/lib/duet/p-928662aa.system.entry.js +0 -4
  783. package/lib/duet/p-96643444.system.entry.js +0 -4
  784. package/lib/duet/p-98535abd.entry.js +0 -4
  785. package/lib/duet/p-98636086.system.js +0 -4
  786. package/lib/duet/p-9a43132b.system.js +0 -4
  787. package/lib/duet/p-a20b744b.entry.js +0 -4
  788. package/lib/duet/p-a5eea99b.system.entry.js +0 -4
  789. package/lib/duet/p-a76b6eef.system.entry.js +0 -4
  790. package/lib/duet/p-a924233f.system.entry.js +0 -4
  791. package/lib/duet/p-a943a02a.entry.js +0 -4
  792. package/lib/duet/p-aa80ef8a.entry.js +0 -4
  793. package/lib/duet/p-aa885518.system.entry.js +0 -4
  794. package/lib/duet/p-abaf6d0e.entry.js +0 -4
  795. package/lib/duet/p-ad1c40f5.js +0 -4
  796. package/lib/duet/p-afad5fd3.system.js +0 -4
  797. package/lib/duet/p-afd43870.entry.js +0 -4
  798. package/lib/duet/p-b0e2884d.system.entry.js +0 -4
  799. package/lib/duet/p-b1f33063.system.js +0 -4
  800. package/lib/duet/p-b503bcdd.system.entry.js +0 -4
  801. package/lib/duet/p-b50ea79d.system.entry.js +0 -4
  802. package/lib/duet/p-b54723a9.system.entry.js +0 -4
  803. package/lib/duet/p-b7a34bd4.entry.js +0 -4
  804. package/lib/duet/p-b7f6339f.system.entry.js +0 -4
  805. package/lib/duet/p-b864159a.system.js +0 -4
  806. package/lib/duet/p-b8b21423.system.entry.js +0 -4
  807. package/lib/duet/p-b9e2b3ba.entry.js +0 -4
  808. package/lib/duet/p-ba03d034.system.js +0 -4
  809. package/lib/duet/p-c3a69e37.js +0 -4
  810. package/lib/duet/p-c5839bf5.entry.js +0 -4
  811. package/lib/duet/p-c7654999.entry.js +0 -4
  812. package/lib/duet/p-cbf629b3.system.entry.js +0 -4
  813. package/lib/duet/p-cc5e6288.system.js +0 -4
  814. package/lib/duet/p-cc67e773.js +0 -4
  815. package/lib/duet/p-cd0785ee.system.entry.js +0 -4
  816. package/lib/duet/p-cf6b88ae.entry.js +0 -4
  817. package/lib/duet/p-cff8b063.entry.js +0 -4
  818. package/lib/duet/p-d004da5f.js +0 -4
  819. package/lib/duet/p-d07eec56.system.entry.js +0 -4
  820. package/lib/duet/p-d35ab8b7.system.entry.js +0 -4
  821. package/lib/duet/p-d50d03f7.system.entry.js +0 -4
  822. package/lib/duet/p-d53d7fd5.entry.js +0 -4
  823. package/lib/duet/p-d55299c9.entry.js +0 -4
  824. package/lib/duet/p-d61d7080.entry.js +0 -4
  825. package/lib/duet/p-d6ed2033.system.entry.js +0 -4
  826. package/lib/duet/p-d90e530c.system.entry.js +0 -4
  827. package/lib/duet/p-db2ccb9d.system.js +0 -4
  828. package/lib/duet/p-e07ee017.system.entry.js +0 -4
  829. package/lib/duet/p-e12066c8.system.js +0 -4
  830. package/lib/duet/p-e17c5d6a.entry.js +0 -4
  831. package/lib/duet/p-e1c09dd8.system.entry.js +0 -4
  832. package/lib/duet/p-e216bea4.system.js +0 -4
  833. package/lib/duet/p-e4af314b.system.entry.js +0 -4
  834. package/lib/duet/p-e4c8559c.system.js +0 -4
  835. package/lib/duet/p-e5aecda6.system.entry.js +0 -4
  836. package/lib/duet/p-e6b5a1c7.system.js +0 -4
  837. package/lib/duet/p-e9cbe789.system.entry.js +0 -4
  838. package/lib/duet/p-ea787ed0.entry.js +0 -4
  839. package/lib/duet/p-eb463133.system.entry.js +0 -4
  840. package/lib/duet/p-eb83b46d.system.entry.js +0 -4
  841. package/lib/duet/p-ec581904.entry.js +0 -4
  842. package/lib/duet/p-ed3748dc.js +0 -4
  843. package/lib/duet/p-eecd1b93.system.entry.js +0 -4
  844. package/lib/duet/p-f0ee9aae.system.entry.js +0 -4
  845. package/lib/duet/p-f0fc3170.system.entry.js +0 -4
  846. package/lib/duet/p-f11208c3.js +0 -4
  847. package/lib/duet/p-f11e0e46.system.entry.js +0 -4
  848. package/lib/duet/p-f1273093.system.entry.js +0 -4
  849. package/lib/duet/p-f218ec0e.system.entry.js +0 -4
  850. package/lib/duet/p-f2d5c69e.system.js +0 -5
  851. package/lib/duet/p-f5f6aed8.system.js +0 -4
  852. package/lib/duet/p-f6000a03.js +0 -4
  853. package/lib/duet/p-f732fde1.entry.js +0 -4
  854. package/lib/duet/p-fe8cfa01.system.entry.js +0 -4
  855. package/lib/esm/a11y-utils-42080d56.js +0 -23
  856. package/lib/esm/action-arrow-down-small-82273dc8.js +0 -6
  857. package/lib/esm/action-new-window-small-1945be91.js +0 -6
  858. package/lib/esm/body-scroll-46854769.js +0 -234
  859. package/lib/esm/bodyScrollLock.es6-ecbf187e.js +0 -184
  860. package/lib/esm/create-id-149a1b6d.js +0 -11
  861. package/lib/esm/floating-ui.dom.esm-ebc91b33.js +0 -1348
  862. package/lib/esm/focus-utils-9bbe977f.js +0 -18
  863. package/lib/esm/form-search-ea8e19ae.js +0 -6
  864. package/lib/esm/input-utils-85681162.js +0 -53
  865. package/lib/esm/is-internet-explorer-2c48f686.js +0 -9
  866. package/lib/esm/js-utils-9b9e0039.js +0 -47
  867. package/lib/esm/keyboard-utils-daf80d44.js +0 -58
  868. package/lib/esm/label-52e2e3f9.js +0 -20
  869. package/lib/esm/polyfills/core-js.js +0 -11
  870. package/lib/esm/polyfills/dom.js +0 -79
  871. package/lib/esm/polyfills/es5-html-element.js +0 -1
  872. package/lib/esm/polyfills/index.js +0 -34
  873. package/lib/esm/polyfills/system.js +0 -6
  874. package/lib/esm/slot-utils-4096ff0d.js +0 -115
  875. package/lib/esm/string-utils-192eb3c8.js +0 -61
  876. package/lib/esm/teleport-aa27d5f9.js +0 -116
  877. package/lib/esm/themeable-component-860041c5.js +0 -13
  878. package/lib/esm/token-utils-b9ba8c5e.js +0 -138
  879. package/lib/esm/tokens.module-2d02f5ff.js +0 -503
  880. package/lib/esm/watch-options-e96ecd92.js +0 -57
  881. package/lib/esm-es5/a11y-utils-42080d56.js +0 -4
  882. package/lib/esm-es5/action-arrow-down-small-82273dc8.js +0 -4
  883. package/lib/esm-es5/action-new-window-small-1945be91.js +0 -4
  884. package/lib/esm-es5/app-globals-2c6c1103.js +0 -4
  885. package/lib/esm-es5/body-scroll-46854769.js +0 -4
  886. package/lib/esm-es5/bodyScrollLock.es6-ecbf187e.js +0 -4
  887. package/lib/esm-es5/common-strings-af765cad.js +0 -4
  888. package/lib/esm-es5/create-id-149a1b6d.js +0 -4
  889. package/lib/esm-es5/duet-action-button.entry.js +0 -4
  890. package/lib/esm-es5/duet-alert.entry.js +0 -4
  891. package/lib/esm-es5/duet-badge.entry.js +0 -4
  892. package/lib/esm-es5/duet-banner.entry.js +0 -4
  893. package/lib/esm-es5/duet-breadcrumb.entry.js +0 -4
  894. package/lib/esm-es5/duet-breadcrumbs.entry.js +0 -4
  895. package/lib/esm-es5/duet-button_2.entry.js +0 -4
  896. package/lib/esm-es5/duet-callout.entry.js +0 -4
  897. package/lib/esm-es5/duet-caption_4.entry.js +0 -4
  898. package/lib/esm-es5/duet-card.entry.js +0 -4
  899. package/lib/esm-es5/duet-checkbox.entry.js +0 -4
  900. package/lib/esm-es5/duet-checkmark.entry.js +0 -4
  901. package/lib/esm-es5/duet-chip.entry.js +0 -4
  902. package/lib/esm-es5/duet-choice_2.entry.js +0 -4
  903. package/lib/esm-es5/duet-collapsible.entry.js +0 -4
  904. package/lib/esm-es5/duet-combobox.entry.js +0 -4
  905. package/lib/esm-es5/duet-contact-card.entry.js +0 -4
  906. package/lib/esm-es5/duet-cookie-consent.entry.js +0 -4
  907. package/lib/esm-es5/duet-date-picker.entry.js +0 -4
  908. package/lib/esm-es5/duet-divider_2.entry.js +0 -4
  909. package/lib/esm-es5/duet-editable-table_3.entry.js +0 -4
  910. package/lib/esm-es5/duet-empty-state.entry.js +0 -4
  911. package/lib/esm-es5/duet-fieldset.entry.js +0 -4
  912. package/lib/esm-es5/duet-file-chooser.entry.js +0 -4
  913. package/lib/esm-es5/duet-footer.entry.js +0 -4
  914. package/lib/esm-es5/duet-grid_2.entry.js +0 -4
  915. package/lib/esm-es5/duet-header_2.entry.js +0 -4
  916. package/lib/esm-es5/duet-hero.entry.js +0 -4
  917. package/lib/esm-es5/duet-icon.entry.js +0 -4
  918. package/lib/esm-es5/duet-input_2.entry.js +0 -4
  919. package/lib/esm-es5/duet-layout.entry.js +0 -4
  920. package/lib/esm-es5/duet-list_2.entry.js +0 -4
  921. package/lib/esm-es5/duet-menu-bar-button.entry.js +0 -4
  922. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +0 -4
  923. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +0 -4
  924. package/lib/esm-es5/duet-menu-bar-item.entry.js +0 -4
  925. package/lib/esm-es5/duet-menu-bar-link.entry.js +0 -4
  926. package/lib/esm-es5/duet-menu-bar.entry.js +0 -4
  927. package/lib/esm-es5/duet-modal.entry.js +0 -4
  928. package/lib/esm-es5/duet-multiselect.entry.js +0 -4
  929. package/lib/esm-es5/duet-nav.entry.js +0 -4
  930. package/lib/esm-es5/duet-notification_2.entry.js +0 -4
  931. package/lib/esm-es5/duet-number-input.entry.js +0 -4
  932. package/lib/esm-es5/duet-overlay.entry.js +0 -4
  933. package/lib/esm-es5/duet-page-heading.entry.js +0 -4
  934. package/lib/esm-es5/duet-pagination_2.entry.js +0 -4
  935. package/lib/esm-es5/duet-phone-input.entry.js +0 -4
  936. package/lib/esm-es5/duet-popup-menu_2.entry.js +0 -4
  937. package/lib/esm-es5/duet-progress.entry.js +0 -4
  938. package/lib/esm-es5/duet-promo-card.entry.js +0 -4
  939. package/lib/esm-es5/duet-radio_2.entry.js +0 -4
  940. package/lib/esm-es5/duet-range-slider.entry.js +0 -4
  941. package/lib/esm-es5/duet-scrollable_3.entry.js +0 -4
  942. package/lib/esm-es5/duet-section-layout.entry.js +0 -4
  943. package/lib/esm-es5/duet-select.entry.js +0 -4
  944. package/lib/esm-es5/duet-shaped-image.entry.js +0 -4
  945. package/lib/esm-es5/duet-show-more.entry.js +0 -4
  946. package/lib/esm-es5/duet-slideout-lang.entry.js +0 -4
  947. package/lib/esm-es5/duet-slideout-link.entry.js +0 -4
  948. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +0 -4
  949. package/lib/esm-es5/duet-slideout-panel.entry.js +0 -4
  950. package/lib/esm-es5/duet-slideout.entry.js +0 -4
  951. package/lib/esm-es5/duet-status-icon.entry.js +0 -4
  952. package/lib/esm-es5/duet-step_2.entry.js +0 -4
  953. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +0 -4
  954. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +0 -4
  955. package/lib/esm-es5/duet-submenu-bar-item.entry.js +0 -4
  956. package/lib/esm-es5/duet-submenu-bar-link.entry.js +0 -4
  957. package/lib/esm-es5/duet-submenu-bar.entry.js +0 -4
  958. package/lib/esm-es5/duet-textarea.entry.js +0 -4
  959. package/lib/esm-es5/duet-toggle.entry.js +0 -4
  960. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +0 -4
  961. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +0 -4
  962. package/lib/esm-es5/duet-toolbar-item.entry.js +0 -4
  963. package/lib/esm-es5/duet-toolbar-link.entry.js +0 -4
  964. package/lib/esm-es5/duet-toolbar.entry.js +0 -4
  965. package/lib/esm-es5/duet-tooltip-button_2.entry.js +0 -4
  966. package/lib/esm-es5/duet-tooltip.entry.js +0 -4
  967. package/lib/esm-es5/duet-tray.entry.js +0 -4
  968. package/lib/esm-es5/duet-upload-aria-status.entry.js +0 -4
  969. package/lib/esm-es5/duet-upload-item.entry.js +0 -4
  970. package/lib/esm-es5/duet-visually-hidden.entry.js +0 -4
  971. package/lib/esm-es5/duet.js +0 -4
  972. package/lib/esm-es5/errorcodes.utils-86af68b7.js +0 -4
  973. package/lib/esm-es5/floating-ui.dom.esm-ebc91b33.js +0 -4
  974. package/lib/esm-es5/focus-utils-9bbe977f.js +0 -4
  975. package/lib/esm-es5/form-search-ea8e19ae.js +0 -4
  976. package/lib/esm-es5/index-a830b2de.js +0 -4
  977. package/lib/esm-es5/index.js +0 -3
  978. package/lib/esm-es5/input-utils-85681162.js +0 -4
  979. package/lib/esm-es5/is-internet-explorer-2c48f686.js +0 -4
  980. package/lib/esm-es5/js-utils-9b9e0039.js +0 -4
  981. package/lib/esm-es5/keyboard-utils-daf80d44.js +0 -4
  982. package/lib/esm-es5/label-52e2e3f9.js +0 -4
  983. package/lib/esm-es5/language-utils-40caac4f.js +0 -4
  984. package/lib/esm-es5/loader.js +0 -4
  985. package/lib/esm-es5/slot-utils-4096ff0d.js +0 -4
  986. package/lib/esm-es5/string-utils-192eb3c8.js +0 -4
  987. package/lib/esm-es5/teleport-aa27d5f9.js +0 -4
  988. package/lib/esm-es5/themeable-component-860041c5.js +0 -4
  989. package/lib/esm-es5/token-utils-b9ba8c5e.js +0 -4
  990. package/lib/esm-es5/tokens-84fb2357.js +0 -4
  991. package/lib/esm-es5/tokens.module-2d02f5ff.js +0 -4
  992. package/lib/esm-es5/watch-options-e96ecd92.js +0 -4
  993. package/lib/loader/package.json +0 -11
  994. /package/lib/cjs/{body-scroll-dba42314.js → body-scroll-FWPe3_T_.js} +0 -0
  995. /package/lib/cjs/{bodyScrollLock.es6-dd2d7d91.js → bodyScrollLock.es6-B2sCDud5.js} +0 -0
  996. /package/lib/cjs/{common-strings-2984301e.js → common-strings-BhhnIQp3.js} +0 -0
  997. /package/lib/cjs/{create-id-1f8c438f.js → create-id-DtslnIOq.js} +0 -0
  998. /package/lib/cjs/{input-utils-1096a2c5.js → input-utils-DUKdslOM.js} +0 -0
  999. /package/lib/cjs/{is-internet-explorer-e7f58ebc.js → is-internet-explorer-BTLb_loH.js} +0 -0
  1000. /package/lib/cjs/{js-utils-92e24ba1.js → js-utils-hJ4A2edy.js} +0 -0
  1001. /package/lib/cjs/{keyboard-utils-f7c9f980.js → keyboard-utils-D9UlHbik.js} +0 -0
  1002. /package/lib/cjs/{string-utils-7b13c16e.js → string-utils-B35hEUBv.js} +0 -0
  1003. /package/lib/cjs/{teleport-c0eede18.js → teleport-BIcrl_KV.js} +0 -0
  1004. /package/lib/cjs/{themeable-component-996b489c.js → themeable-component-C57DSx5w.js} +0 -0
  1005. /package/lib/cjs/{watch-options-30a12622.js → watch-options-CTB_6VOA.js} +0 -0
  1006. /package/lib/duet/{p-8354d1f1.js → p-B1B-PPrh.js} +0 -0
  1007. /package/lib/duet/{p-7d8a2628.js → p-BgyaCAyh.js} +0 -0
  1008. /package/lib/duet/{p-9e371678.js → p-BlUsLmbQ.js} +0 -0
  1009. /package/lib/duet/{p-fc09c464.js → p-C6CAT054.js} +0 -0
  1010. /package/lib/duet/{p-9c3c64b9.js → p-C6E9F6QT.js} +0 -0
  1011. /package/lib/duet/{p-df7874f9.js → p-CLDy7YaM.js} +0 -0
  1012. /package/lib/duet/{p-5e59e970.js → p-Cfr_DJqU.js} +0 -0
  1013. /package/lib/duet/{p-beeb12f1.js → p-D6YBFNe9.js} +0 -0
  1014. /package/lib/duet/{p-8cb0e6bd.js → p-DWuCOI7R.js} +0 -0
  1015. /package/lib/duet/{p-43b89e38.js → p-DxESMgwA.js} +0 -0
  1016. /package/lib/duet/{p-aaa7a7bd.js → p-WhCDf9tt.js} +0 -0
  1017. /package/lib/{dist-custom-elements/p-fc09c464.js → esm/body-scroll-C6CAT054.js} +0 -0
  1018. /package/lib/{dist-custom-elements/p-8354d1f1.js → esm/bodyScrollLock.es6-B1B-PPrh.js} +0 -0
  1019. /package/lib/esm/{common-strings-af765cad.js → common-strings-D6YBFNe9.js} +0 -0
  1020. /package/lib/{dist-custom-elements/p-5e59e970.js → esm/create-id-Cfr_DJqU.js} +0 -0
  1021. /package/lib/{dist-custom-elements/p-df7874f9.js → esm/input-utils-CLDy7YaM.js} +0 -0
  1022. /package/lib/{dist-custom-elements/p-43b89e38.js → esm/is-internet-explorer-DxESMgwA.js} +0 -0
  1023. /package/lib/{dist-custom-elements/p-9e371678.js → esm/js-utils-BlUsLmbQ.js} +0 -0
  1024. /package/lib/{dist-custom-elements/p-9c3c64b9.js → esm/string-utils-C6E9F6QT.js} +0 -0
  1025. /package/lib/{dist-custom-elements/p-8cb0e6bd.js → esm/teleport-DWuCOI7R.js} +0 -0
  1026. /package/lib/{dist-custom-elements/p-aaa7a7bd.js → esm/themeable-component-WhCDf9tt.js} +0 -0
  1027. /package/lib/{dist-custom-elements/p-7d8a2628.js → esm/watch-options-BgyaCAyh.js} +0 -0
@@ -1,1348 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- /**
5
- * Custom positioning reference element.
6
- * @see https://floating-ui.com/docs/virtual-elements
7
- */
8
- const min$1 = Math.min;
9
- const max$1 = Math.max;
10
- const oppositeSideMap = {
11
- left: 'right',
12
- right: 'left',
13
- bottom: 'top',
14
- top: 'bottom'
15
- };
16
- const oppositeAlignmentMap = {
17
- start: 'end',
18
- end: 'start'
19
- };
20
- function clamp(start, value, end) {
21
- return max$1(start, min$1(value, end));
22
- }
23
- function evaluate(value, param) {
24
- return typeof value === 'function' ? value(param) : value;
25
- }
26
- function getSide(placement) {
27
- return placement.split('-')[0];
28
- }
29
- function getAlignment(placement) {
30
- return placement.split('-')[1];
31
- }
32
- function getOppositeAxis(axis) {
33
- return axis === 'x' ? 'y' : 'x';
34
- }
35
- function getAxisLength(axis) {
36
- return axis === 'y' ? 'height' : 'width';
37
- }
38
- function getSideAxis(placement) {
39
- return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
40
- }
41
- function getAlignmentAxis(placement) {
42
- return getOppositeAxis(getSideAxis(placement));
43
- }
44
- function getAlignmentSides(placement, rects, rtl) {
45
- if (rtl === void 0) {
46
- rtl = false;
47
- }
48
- const alignment = getAlignment(placement);
49
- const alignmentAxis = getAlignmentAxis(placement);
50
- const length = getAxisLength(alignmentAxis);
51
- let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
52
- if (rects.reference[length] > rects.floating[length]) {
53
- mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
54
- }
55
- return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
56
- }
57
- function getExpandedPlacements(placement) {
58
- const oppositePlacement = getOppositePlacement(placement);
59
- return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
60
- }
61
- function getOppositeAlignmentPlacement(placement) {
62
- return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
63
- }
64
- function getSideList(side, isStart, rtl) {
65
- const lr = ['left', 'right'];
66
- const rl = ['right', 'left'];
67
- const tb = ['top', 'bottom'];
68
- const bt = ['bottom', 'top'];
69
- switch (side) {
70
- case 'top':
71
- case 'bottom':
72
- if (rtl) return isStart ? rl : lr;
73
- return isStart ? lr : rl;
74
- case 'left':
75
- case 'right':
76
- return isStart ? tb : bt;
77
- default:
78
- return [];
79
- }
80
- }
81
- function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
82
- const alignment = getAlignment(placement);
83
- let list = getSideList(getSide(placement), direction === 'start', rtl);
84
- if (alignment) {
85
- list = list.map(side => side + "-" + alignment);
86
- if (flipAlignment) {
87
- list = list.concat(list.map(getOppositeAlignmentPlacement));
88
- }
89
- }
90
- return list;
91
- }
92
- function getOppositePlacement(placement) {
93
- return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
94
- }
95
- function expandPaddingObject(padding) {
96
- return {
97
- top: 0,
98
- right: 0,
99
- bottom: 0,
100
- left: 0,
101
- ...padding
102
- };
103
- }
104
- function getPaddingObject(padding) {
105
- return typeof padding !== 'number' ? expandPaddingObject(padding) : {
106
- top: padding,
107
- right: padding,
108
- bottom: padding,
109
- left: padding
110
- };
111
- }
112
- function rectToClientRect(rect) {
113
- const {
114
- x,
115
- y,
116
- width,
117
- height
118
- } = rect;
119
- return {
120
- width,
121
- height,
122
- top: y,
123
- left: x,
124
- right: x + width,
125
- bottom: y + height,
126
- x,
127
- y
128
- };
129
- }
130
-
131
- function computeCoordsFromPlacement(_ref, placement, rtl) {
132
- let {
133
- reference,
134
- floating
135
- } = _ref;
136
- const sideAxis = getSideAxis(placement);
137
- const alignmentAxis = getAlignmentAxis(placement);
138
- const alignLength = getAxisLength(alignmentAxis);
139
- const side = getSide(placement);
140
- const isVertical = sideAxis === 'y';
141
- const commonX = reference.x + reference.width / 2 - floating.width / 2;
142
- const commonY = reference.y + reference.height / 2 - floating.height / 2;
143
- const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
144
- let coords;
145
- switch (side) {
146
- case 'top':
147
- coords = {
148
- x: commonX,
149
- y: reference.y - floating.height
150
- };
151
- break;
152
- case 'bottom':
153
- coords = {
154
- x: commonX,
155
- y: reference.y + reference.height
156
- };
157
- break;
158
- case 'right':
159
- coords = {
160
- x: reference.x + reference.width,
161
- y: commonY
162
- };
163
- break;
164
- case 'left':
165
- coords = {
166
- x: reference.x - floating.width,
167
- y: commonY
168
- };
169
- break;
170
- default:
171
- coords = {
172
- x: reference.x,
173
- y: reference.y
174
- };
175
- }
176
- switch (getAlignment(placement)) {
177
- case 'start':
178
- coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
179
- break;
180
- case 'end':
181
- coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
182
- break;
183
- }
184
- return coords;
185
- }
186
-
187
- /**
188
- * Computes the `x` and `y` coordinates that will place the floating element
189
- * next to a given reference element.
190
- *
191
- * This export does not have any `platform` interface logic. You will need to
192
- * write one for the platform you are using Floating UI with.
193
- */
194
- const computePosition$1 = async (reference, floating, config) => {
195
- const {
196
- placement = 'bottom',
197
- strategy = 'absolute',
198
- middleware = [],
199
- platform
200
- } = config;
201
- const validMiddleware = middleware.filter(Boolean);
202
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
203
- let rects = await platform.getElementRects({
204
- reference,
205
- floating,
206
- strategy
207
- });
208
- let {
209
- x,
210
- y
211
- } = computeCoordsFromPlacement(rects, placement, rtl);
212
- let statefulPlacement = placement;
213
- let middlewareData = {};
214
- let resetCount = 0;
215
- for (let i = 0; i < validMiddleware.length; i++) {
216
- const {
217
- name,
218
- fn
219
- } = validMiddleware[i];
220
- const {
221
- x: nextX,
222
- y: nextY,
223
- data,
224
- reset
225
- } = await fn({
226
- x,
227
- y,
228
- initialPlacement: placement,
229
- placement: statefulPlacement,
230
- strategy,
231
- middlewareData,
232
- rects,
233
- platform,
234
- elements: {
235
- reference,
236
- floating
237
- }
238
- });
239
- x = nextX != null ? nextX : x;
240
- y = nextY != null ? nextY : y;
241
- middlewareData = {
242
- ...middlewareData,
243
- [name]: {
244
- ...middlewareData[name],
245
- ...data
246
- }
247
- };
248
- if (reset && resetCount <= 50) {
249
- resetCount++;
250
- if (typeof reset === 'object') {
251
- if (reset.placement) {
252
- statefulPlacement = reset.placement;
253
- }
254
- if (reset.rects) {
255
- rects = reset.rects === true ? await platform.getElementRects({
256
- reference,
257
- floating,
258
- strategy
259
- }) : reset.rects;
260
- }
261
- ({
262
- x,
263
- y
264
- } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
265
- }
266
- i = -1;
267
- }
268
- }
269
- return {
270
- x,
271
- y,
272
- placement: statefulPlacement,
273
- strategy,
274
- middlewareData
275
- };
276
- };
277
-
278
- /**
279
- * Resolves with an object of overflow side offsets that determine how much the
280
- * element is overflowing a given clipping boundary on each side.
281
- * - positive = overflowing the boundary by that number of pixels
282
- * - negative = how many pixels left before it will overflow
283
- * - 0 = lies flush with the boundary
284
- * @see https://floating-ui.com/docs/detectOverflow
285
- */
286
- async function detectOverflow(state, options) {
287
- var _await$platform$isEle;
288
- if (options === void 0) {
289
- options = {};
290
- }
291
- const {
292
- x,
293
- y,
294
- platform,
295
- rects,
296
- elements,
297
- strategy
298
- } = state;
299
- const {
300
- boundary = 'clippingAncestors',
301
- rootBoundary = 'viewport',
302
- elementContext = 'floating',
303
- altBoundary = false,
304
- padding = 0
305
- } = evaluate(options, state);
306
- const paddingObject = getPaddingObject(padding);
307
- const altContext = elementContext === 'floating' ? 'reference' : 'floating';
308
- const element = elements[altBoundary ? altContext : elementContext];
309
- const clippingClientRect = rectToClientRect(await platform.getClippingRect({
310
- 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))),
311
- boundary,
312
- rootBoundary,
313
- strategy
314
- }));
315
- const rect = elementContext === 'floating' ? {
316
- x,
317
- y,
318
- width: rects.floating.width,
319
- height: rects.floating.height
320
- } : rects.reference;
321
- const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
322
- const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
323
- x: 1,
324
- y: 1
325
- } : {
326
- x: 1,
327
- y: 1
328
- };
329
- const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
330
- elements,
331
- rect,
332
- offsetParent,
333
- strategy
334
- }) : rect);
335
- return {
336
- top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
337
- bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
338
- left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
339
- right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
340
- };
341
- }
342
-
343
- /**
344
- * Provides data to position an inner element of the floating element so that it
345
- * appears centered to the reference element.
346
- * @see https://floating-ui.com/docs/arrow
347
- */
348
- const arrow = options => ({
349
- name: 'arrow',
350
- options,
351
- async fn(state) {
352
- const {
353
- x,
354
- y,
355
- placement,
356
- rects,
357
- platform,
358
- elements,
359
- middlewareData
360
- } = state;
361
- // Since `element` is required, we don't Partial<> the type.
362
- const {
363
- element,
364
- padding = 0
365
- } = evaluate(options, state) || {};
366
- if (element == null) {
367
- return {};
368
- }
369
- const paddingObject = getPaddingObject(padding);
370
- const coords = {
371
- x,
372
- y
373
- };
374
- const axis = getAlignmentAxis(placement);
375
- const length = getAxisLength(axis);
376
- const arrowDimensions = await platform.getDimensions(element);
377
- const isYAxis = axis === 'y';
378
- const minProp = isYAxis ? 'top' : 'left';
379
- const maxProp = isYAxis ? 'bottom' : 'right';
380
- const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
381
- const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
382
- const startDiff = coords[axis] - rects.reference[axis];
383
- const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
384
- let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
385
-
386
- // DOM platform can return `window` as the `offsetParent`.
387
- if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
388
- clientSize = elements.floating[clientProp] || rects.floating[length];
389
- }
390
- const centerToReference = endDiff / 2 - startDiff / 2;
391
-
392
- // If the padding is large enough that it causes the arrow to no longer be
393
- // centered, modify the padding so that it is centered.
394
- const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
395
- const minPadding = min$1(paddingObject[minProp], largestPossiblePadding);
396
- const maxPadding = min$1(paddingObject[maxProp], largestPossiblePadding);
397
-
398
- // Make sure the arrow doesn't overflow the floating element if the center
399
- // point is outside the floating element's bounds.
400
- const min$1$1 = minPadding;
401
- const max = clientSize - arrowDimensions[length] - maxPadding;
402
- const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
403
- const offset = clamp(min$1$1, center, max);
404
-
405
- // If the reference is small enough that the arrow's padding causes it to
406
- // to point to nothing for an aligned placement, adjust the offset of the
407
- // floating element itself. To ensure `shift()` continues to take action,
408
- // a single reset is performed when this is true.
409
- const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
410
- const alignmentOffset = shouldAddOffset ? center < min$1$1 ? center - min$1$1 : center - max : 0;
411
- return {
412
- [axis]: coords[axis] + alignmentOffset,
413
- data: {
414
- [axis]: offset,
415
- centerOffset: center - offset - alignmentOffset,
416
- ...(shouldAddOffset && {
417
- alignmentOffset
418
- })
419
- },
420
- reset: shouldAddOffset
421
- };
422
- }
423
- });
424
-
425
- /**
426
- * Optimizes the visibility of the floating element by flipping the `placement`
427
- * in order to keep it in view when the preferred placement(s) will overflow the
428
- * clipping boundary. Alternative to `autoPlacement`.
429
- * @see https://floating-ui.com/docs/flip
430
- */
431
- const flip = function (options) {
432
- if (options === void 0) {
433
- options = {};
434
- }
435
- return {
436
- name: 'flip',
437
- options,
438
- async fn(state) {
439
- var _middlewareData$arrow, _middlewareData$flip;
440
- const {
441
- placement,
442
- middlewareData,
443
- rects,
444
- initialPlacement,
445
- platform,
446
- elements
447
- } = state;
448
- const {
449
- mainAxis: checkMainAxis = true,
450
- crossAxis: checkCrossAxis = true,
451
- fallbackPlacements: specifiedFallbackPlacements,
452
- fallbackStrategy = 'bestFit',
453
- fallbackAxisSideDirection = 'none',
454
- flipAlignment = true,
455
- ...detectOverflowOptions
456
- } = evaluate(options, state);
457
-
458
- // If a reset by the arrow was caused due to an alignment offset being
459
- // added, we should skip any logic now since `flip()` has already done its
460
- // work.
461
- // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
462
- if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
463
- return {};
464
- }
465
- const side = getSide(placement);
466
- const isBasePlacement = getSide(initialPlacement) === initialPlacement;
467
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
468
- const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
469
- if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
470
- fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
471
- }
472
- const placements = [initialPlacement, ...fallbackPlacements];
473
- const overflow = await detectOverflow(state, detectOverflowOptions);
474
- const overflows = [];
475
- let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
476
- if (checkMainAxis) {
477
- overflows.push(overflow[side]);
478
- }
479
- if (checkCrossAxis) {
480
- const sides = getAlignmentSides(placement, rects, rtl);
481
- overflows.push(overflow[sides[0]], overflow[sides[1]]);
482
- }
483
- overflowsData = [...overflowsData, {
484
- placement,
485
- overflows
486
- }];
487
-
488
- // One or more sides is overflowing.
489
- if (!overflows.every(side => side <= 0)) {
490
- var _middlewareData$flip2, _overflowsData$filter;
491
- const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
492
- const nextPlacement = placements[nextIndex];
493
- if (nextPlacement) {
494
- // Try next placement and re-run the lifecycle.
495
- return {
496
- data: {
497
- index: nextIndex,
498
- overflows: overflowsData
499
- },
500
- reset: {
501
- placement: nextPlacement
502
- }
503
- };
504
- }
505
-
506
- // First, find the candidates that fit on the mainAxis side of overflow,
507
- // then find the placement that fits the best on the main crossAxis side.
508
- 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;
509
-
510
- // Otherwise fallback.
511
- if (!resetPlacement) {
512
- switch (fallbackStrategy) {
513
- case 'bestFit':
514
- {
515
- var _overflowsData$map$so;
516
- 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];
517
- if (placement) {
518
- resetPlacement = placement;
519
- }
520
- break;
521
- }
522
- case 'initialPlacement':
523
- resetPlacement = initialPlacement;
524
- break;
525
- }
526
- }
527
- if (placement !== resetPlacement) {
528
- return {
529
- reset: {
530
- placement: resetPlacement
531
- }
532
- };
533
- }
534
- }
535
- return {};
536
- }
537
- };
538
- };
539
-
540
- // For type backwards-compatibility, the `OffsetOptions` type was also
541
- // Derivable.
542
-
543
- async function convertValueToCoords(state, options) {
544
- const {
545
- placement,
546
- platform,
547
- elements
548
- } = state;
549
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
550
- const side = getSide(placement);
551
- const alignment = getAlignment(placement);
552
- const isVertical = getSideAxis(placement) === 'y';
553
- const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
554
- const crossAxisMulti = rtl && isVertical ? -1 : 1;
555
- const rawValue = evaluate(options, state);
556
-
557
- // eslint-disable-next-line prefer-const
558
- let {
559
- mainAxis,
560
- crossAxis,
561
- alignmentAxis
562
- } = typeof rawValue === 'number' ? {
563
- mainAxis: rawValue,
564
- crossAxis: 0,
565
- alignmentAxis: null
566
- } : {
567
- mainAxis: 0,
568
- crossAxis: 0,
569
- alignmentAxis: null,
570
- ...rawValue
571
- };
572
- if (alignment && typeof alignmentAxis === 'number') {
573
- crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
574
- }
575
- return isVertical ? {
576
- x: crossAxis * crossAxisMulti,
577
- y: mainAxis * mainAxisMulti
578
- } : {
579
- x: mainAxis * mainAxisMulti,
580
- y: crossAxis * crossAxisMulti
581
- };
582
- }
583
-
584
- /**
585
- * Modifies the placement by translating the floating element along the
586
- * specified axes.
587
- * A number (shorthand for `mainAxis` or distance), or an axes configuration
588
- * object may be passed.
589
- * @see https://floating-ui.com/docs/offset
590
- */
591
- const offset = function (options) {
592
- if (options === void 0) {
593
- options = 0;
594
- }
595
- return {
596
- name: 'offset',
597
- options,
598
- async fn(state) {
599
- var _middlewareData$offse, _middlewareData$arrow;
600
- const {
601
- x,
602
- y,
603
- placement,
604
- middlewareData
605
- } = state;
606
- const diffCoords = await convertValueToCoords(state, options);
607
-
608
- // If the placement is the same and the arrow caused an alignment offset
609
- // then we don't need to change the positioning coordinates.
610
- if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
611
- return {};
612
- }
613
- return {
614
- x: x + diffCoords.x,
615
- y: y + diffCoords.y,
616
- data: {
617
- ...diffCoords,
618
- placement
619
- }
620
- };
621
- }
622
- };
623
- };
624
-
625
- /**
626
- * Optimizes the visibility of the floating element by shifting it in order to
627
- * keep it in view when it will overflow the clipping boundary.
628
- * @see https://floating-ui.com/docs/shift
629
- */
630
- const shift = function (options) {
631
- if (options === void 0) {
632
- options = {};
633
- }
634
- return {
635
- name: 'shift',
636
- options,
637
- async fn(state) {
638
- const {
639
- x,
640
- y,
641
- placement
642
- } = state;
643
- const {
644
- mainAxis: checkMainAxis = true,
645
- crossAxis: checkCrossAxis = false,
646
- limiter = {
647
- fn: _ref => {
648
- let {
649
- x,
650
- y
651
- } = _ref;
652
- return {
653
- x,
654
- y
655
- };
656
- }
657
- },
658
- ...detectOverflowOptions
659
- } = evaluate(options, state);
660
- const coords = {
661
- x,
662
- y
663
- };
664
- const overflow = await detectOverflow(state, detectOverflowOptions);
665
- const crossAxis = getSideAxis(getSide(placement));
666
- const mainAxis = getOppositeAxis(crossAxis);
667
- let mainAxisCoord = coords[mainAxis];
668
- let crossAxisCoord = coords[crossAxis];
669
- if (checkMainAxis) {
670
- const minSide = mainAxis === 'y' ? 'top' : 'left';
671
- const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
672
- const min = mainAxisCoord + overflow[minSide];
673
- const max = mainAxisCoord - overflow[maxSide];
674
- mainAxisCoord = clamp(min, mainAxisCoord, max);
675
- }
676
- if (checkCrossAxis) {
677
- const minSide = crossAxis === 'y' ? 'top' : 'left';
678
- const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
679
- const min = crossAxisCoord + overflow[minSide];
680
- const max = crossAxisCoord - overflow[maxSide];
681
- crossAxisCoord = clamp(min, crossAxisCoord, max);
682
- }
683
- const limitedCoords = limiter.fn({
684
- ...state,
685
- [mainAxis]: mainAxisCoord,
686
- [crossAxis]: crossAxisCoord
687
- });
688
- return {
689
- ...limitedCoords,
690
- data: {
691
- x: limitedCoords.x - x,
692
- y: limitedCoords.y - y
693
- }
694
- };
695
- }
696
- };
697
- };
698
-
699
- function getWindow(node) {
700
- var _node$ownerDocument;
701
- return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
702
- }
703
-
704
- function getComputedStyle$1(element) {
705
- return getWindow(element).getComputedStyle(element);
706
- }
707
-
708
- function isNode(value) {
709
- return value instanceof getWindow(value).Node;
710
- }
711
- function getNodeName(node) {
712
- return isNode(node) ? (node.nodeName || '').toLowerCase() : '';
713
- }
714
-
715
- function isHTMLElement(value) {
716
- return value instanceof getWindow(value).HTMLElement;
717
- }
718
- function isElement(value) {
719
- return value instanceof getWindow(value).Element;
720
- }
721
- function isShadowRoot(node) {
722
- // Browsers without `ShadowRoot` support.
723
- if (typeof ShadowRoot === 'undefined') {
724
- return false;
725
- }
726
- const OwnElement = getWindow(node).ShadowRoot;
727
- return node instanceof OwnElement || node instanceof ShadowRoot;
728
- }
729
- function isOverflowElement(element) {
730
- const {
731
- overflow,
732
- overflowX,
733
- overflowY,
734
- display
735
- } = getComputedStyle$1(element);
736
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
737
- }
738
- function isTableElement(element) {
739
- return ['table', 'td', 'th'].includes(getNodeName(element));
740
- }
741
- function isContainingBlock(element) {
742
- const safari = isSafari();
743
- const css = getComputedStyle$1(element);
744
-
745
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
746
- 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));
747
- }
748
- function isSafari() {
749
- if (typeof CSS === 'undefined' || !CSS.supports) return false;
750
- return CSS.supports('-webkit-backdrop-filter', 'none');
751
- }
752
- function isLastTraversableNode(node) {
753
- return ['html', 'body', '#document'].includes(getNodeName(node));
754
- }
755
-
756
- const min = Math.min;
757
- const max = Math.max;
758
- const round = Math.round;
759
-
760
- function getCssDimensions(element) {
761
- const css = getComputedStyle$1(element);
762
- // In testing environments, the `width` and `height` properties are empty
763
- // strings for SVG elements, returning NaN. Fallback to `0` in this case.
764
- let width = parseFloat(css.width) || 0;
765
- let height = parseFloat(css.height) || 0;
766
- const hasOffset = isHTMLElement(element);
767
- const offsetWidth = hasOffset ? element.offsetWidth : width;
768
- const offsetHeight = hasOffset ? element.offsetHeight : height;
769
- const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
770
- if (shouldFallback) {
771
- width = offsetWidth;
772
- height = offsetHeight;
773
- }
774
- return {
775
- width,
776
- height,
777
- fallback: shouldFallback
778
- };
779
- }
780
-
781
- function unwrapElement(element) {
782
- return !isElement(element) ? element.contextElement : element;
783
- }
784
-
785
- const FALLBACK_SCALE = {
786
- x: 1,
787
- y: 1
788
- };
789
- function getScale(element) {
790
- const domElement = unwrapElement(element);
791
- if (!isHTMLElement(domElement)) {
792
- return FALLBACK_SCALE;
793
- }
794
- const rect = domElement.getBoundingClientRect();
795
- const {
796
- width,
797
- height,
798
- fallback
799
- } = getCssDimensions(domElement);
800
- let x = (fallback ? round(rect.width) : rect.width) / width;
801
- let y = (fallback ? round(rect.height) : rect.height) / height;
802
-
803
- // 0, NaN, or Infinity should always fallback to 1.
804
-
805
- if (!x || !Number.isFinite(x)) {
806
- x = 1;
807
- }
808
- if (!y || !Number.isFinite(y)) {
809
- y = 1;
810
- }
811
- return {
812
- x,
813
- y
814
- };
815
- }
816
-
817
- const noOffsets = {
818
- x: 0,
819
- y: 0
820
- };
821
- function getVisualOffsets(element, isFixed, floatingOffsetParent) {
822
- var _win$visualViewport, _win$visualViewport2;
823
- if (isFixed === void 0) {
824
- isFixed = true;
825
- }
826
- if (!isSafari()) {
827
- return noOffsets;
828
- }
829
- const win = element ? getWindow(element) : window;
830
- if (!floatingOffsetParent || isFixed && floatingOffsetParent !== win) {
831
- return noOffsets;
832
- }
833
- return {
834
- x: ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0,
835
- y: ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0
836
- };
837
- }
838
-
839
- function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
840
- if (includeScale === void 0) {
841
- includeScale = false;
842
- }
843
- if (isFixedStrategy === void 0) {
844
- isFixedStrategy = false;
845
- }
846
- const clientRect = element.getBoundingClientRect();
847
- const domElement = unwrapElement(element);
848
- let scale = FALLBACK_SCALE;
849
- if (includeScale) {
850
- if (offsetParent) {
851
- if (isElement(offsetParent)) {
852
- scale = getScale(offsetParent);
853
- }
854
- } else {
855
- scale = getScale(element);
856
- }
857
- }
858
- const visualOffsets = getVisualOffsets(domElement, isFixedStrategy, offsetParent);
859
- let x = (clientRect.left + visualOffsets.x) / scale.x;
860
- let y = (clientRect.top + visualOffsets.y) / scale.y;
861
- let width = clientRect.width / scale.x;
862
- let height = clientRect.height / scale.y;
863
- if (domElement) {
864
- const win = getWindow(domElement);
865
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
866
- let currentIFrame = win.frameElement;
867
- while (currentIFrame && offsetParent && offsetWin !== win) {
868
- const iframeScale = getScale(currentIFrame);
869
- const iframeRect = currentIFrame.getBoundingClientRect();
870
- const css = getComputedStyle(currentIFrame);
871
- iframeRect.x += (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
872
- iframeRect.y += (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
873
- x *= iframeScale.x;
874
- y *= iframeScale.y;
875
- width *= iframeScale.x;
876
- height *= iframeScale.y;
877
- x += iframeRect.x;
878
- y += iframeRect.y;
879
- currentIFrame = getWindow(currentIFrame).frameElement;
880
- }
881
- }
882
- return rectToClientRect({
883
- width,
884
- height,
885
- x,
886
- y
887
- });
888
- }
889
-
890
- function getDocumentElement(node) {
891
- return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
892
- }
893
-
894
- function getNodeScroll(element) {
895
- if (isElement(element)) {
896
- return {
897
- scrollLeft: element.scrollLeft,
898
- scrollTop: element.scrollTop
899
- };
900
- }
901
- return {
902
- scrollLeft: element.pageXOffset,
903
- scrollTop: element.pageYOffset
904
- };
905
- }
906
-
907
- function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
908
- let {
909
- rect,
910
- offsetParent,
911
- strategy
912
- } = _ref;
913
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
914
- const documentElement = getDocumentElement(offsetParent);
915
- if (offsetParent === documentElement) {
916
- return rect;
917
- }
918
- let scroll = {
919
- scrollLeft: 0,
920
- scrollTop: 0
921
- };
922
- let scale = {
923
- x: 1,
924
- y: 1
925
- };
926
- const offsets = {
927
- x: 0,
928
- y: 0
929
- };
930
- if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
931
- if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
932
- scroll = getNodeScroll(offsetParent);
933
- }
934
- if (isHTMLElement(offsetParent)) {
935
- const offsetRect = getBoundingClientRect(offsetParent);
936
- scale = getScale(offsetParent);
937
- offsets.x = offsetRect.x + offsetParent.clientLeft;
938
- offsets.y = offsetRect.y + offsetParent.clientTop;
939
- }
940
- }
941
- return {
942
- width: rect.width * scale.x,
943
- height: rect.height * scale.y,
944
- x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
945
- y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
946
- };
947
- }
948
-
949
- function getWindowScrollBarX(element) {
950
- // If <html> has a CSS width greater than the viewport, then this will be
951
- // incorrect for RTL.
952
- return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
953
- }
954
-
955
- // Gets the entire size of the scrollable document area, even extending outside
956
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
957
- function getDocumentRect(element) {
958
- const html = getDocumentElement(element);
959
- const scroll = getNodeScroll(element);
960
- const body = element.ownerDocument.body;
961
- const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
962
- const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
963
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
964
- const y = -scroll.scrollTop;
965
- if (getComputedStyle$1(body).direction === 'rtl') {
966
- x += max(html.clientWidth, body.clientWidth) - width;
967
- }
968
- return {
969
- width,
970
- height,
971
- x,
972
- y
973
- };
974
- }
975
-
976
- function getParentNode(node) {
977
- if (getNodeName(node) === 'html') {
978
- return node;
979
- }
980
- const result =
981
- // Step into the shadow DOM of the parent of a slotted node.
982
- node.assignedSlot ||
983
- // DOM Element detected.
984
- node.parentNode ||
985
- // ShadowRoot detected.
986
- isShadowRoot(node) && node.host ||
987
- // Fallback.
988
- getDocumentElement(node);
989
- return isShadowRoot(result) ? result.host : result;
990
- }
991
-
992
- function getNearestOverflowAncestor(node) {
993
- const parentNode = getParentNode(node);
994
- if (isLastTraversableNode(parentNode)) {
995
- // `getParentNode` will never return a `Document` due to the fallback
996
- // check, so it's either the <html> or <body> element.
997
- return parentNode.ownerDocument.body;
998
- }
999
- if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
1000
- return parentNode;
1001
- }
1002
- return getNearestOverflowAncestor(parentNode);
1003
- }
1004
-
1005
- function getOverflowAncestors(node, list) {
1006
- var _node$ownerDocument;
1007
- if (list === void 0) {
1008
- list = [];
1009
- }
1010
- const scrollableAncestor = getNearestOverflowAncestor(node);
1011
- const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
1012
- const win = getWindow(scrollableAncestor);
1013
- if (isBody) {
1014
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
1015
- }
1016
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
1017
- }
1018
-
1019
- function getViewportRect(element, strategy) {
1020
- const win = getWindow(element);
1021
- const html = getDocumentElement(element);
1022
- const visualViewport = win.visualViewport;
1023
- let width = html.clientWidth;
1024
- let height = html.clientHeight;
1025
- let x = 0;
1026
- let y = 0;
1027
- if (visualViewport) {
1028
- width = visualViewport.width;
1029
- height = visualViewport.height;
1030
- const visualViewportBased = isSafari();
1031
- if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
1032
- x = visualViewport.offsetLeft;
1033
- y = visualViewport.offsetTop;
1034
- }
1035
- }
1036
- return {
1037
- width,
1038
- height,
1039
- x,
1040
- y
1041
- };
1042
- }
1043
-
1044
- // Returns the inner client rect, subtracting scrollbars if present.
1045
- function getInnerBoundingClientRect(element, strategy) {
1046
- const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
1047
- const top = clientRect.top + element.clientTop;
1048
- const left = clientRect.left + element.clientLeft;
1049
- const scale = isHTMLElement(element) ? getScale(element) : {
1050
- x: 1,
1051
- y: 1
1052
- };
1053
- const width = element.clientWidth * scale.x;
1054
- const height = element.clientHeight * scale.y;
1055
- const x = left * scale.x;
1056
- const y = top * scale.y;
1057
- return {
1058
- width,
1059
- height,
1060
- x,
1061
- y
1062
- };
1063
- }
1064
- function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
1065
- let rect;
1066
- if (clippingAncestor === 'viewport') {
1067
- rect = getViewportRect(element, strategy);
1068
- } else if (clippingAncestor === 'document') {
1069
- rect = getDocumentRect(getDocumentElement(element));
1070
- } else if (isElement(clippingAncestor)) {
1071
- rect = getInnerBoundingClientRect(clippingAncestor, strategy);
1072
- } else {
1073
- const visualOffsets = getVisualOffsets(element);
1074
- rect = {
1075
- ...clippingAncestor,
1076
- x: clippingAncestor.x - visualOffsets.x,
1077
- y: clippingAncestor.y - visualOffsets.y
1078
- };
1079
- }
1080
- return rectToClientRect(rect);
1081
- }
1082
- function hasFixedPositionAncestor(element, stopNode) {
1083
- const parentNode = getParentNode(element);
1084
- if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
1085
- return false;
1086
- }
1087
- return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
1088
- }
1089
-
1090
- // A "clipping ancestor" is an `overflow` element with the characteristic of
1091
- // clipping (or hiding) child elements. This returns all clipping ancestors
1092
- // of the given element up the tree.
1093
- function getClippingElementAncestors(element, cache) {
1094
- const cachedResult = cache.get(element);
1095
- if (cachedResult) {
1096
- return cachedResult;
1097
- }
1098
- let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');
1099
- let currentContainingBlockComputedStyle = null;
1100
- const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
1101
- let currentNode = elementIsFixed ? getParentNode(element) : element;
1102
-
1103
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1104
- while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1105
- const computedStyle = getComputedStyle$1(currentNode);
1106
- const currentNodeIsContaining = isContainingBlock(currentNode);
1107
- if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
1108
- currentContainingBlockComputedStyle = null;
1109
- }
1110
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
1111
- if (shouldDropCurrentNode) {
1112
- // Drop non-containing blocks.
1113
- result = result.filter(ancestor => ancestor !== currentNode);
1114
- } else {
1115
- // Record last containing block for next iteration.
1116
- currentContainingBlockComputedStyle = computedStyle;
1117
- }
1118
- currentNode = getParentNode(currentNode);
1119
- }
1120
- cache.set(element, result);
1121
- return result;
1122
- }
1123
-
1124
- // Gets the maximum area that the element is visible in due to any number of
1125
- // clipping ancestors.
1126
- function getClippingRect(_ref) {
1127
- let {
1128
- element,
1129
- boundary,
1130
- rootBoundary,
1131
- strategy
1132
- } = _ref;
1133
- const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
1134
- const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1135
- const firstClippingAncestor = clippingAncestors[0];
1136
- const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
1137
- const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
1138
- accRect.top = max(rect.top, accRect.top);
1139
- accRect.right = min(rect.right, accRect.right);
1140
- accRect.bottom = min(rect.bottom, accRect.bottom);
1141
- accRect.left = max(rect.left, accRect.left);
1142
- return accRect;
1143
- }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
1144
- return {
1145
- width: clippingRect.right - clippingRect.left,
1146
- height: clippingRect.bottom - clippingRect.top,
1147
- x: clippingRect.left,
1148
- y: clippingRect.top
1149
- };
1150
- }
1151
-
1152
- function getDimensions(element) {
1153
- return getCssDimensions(element);
1154
- }
1155
-
1156
- function getTrueOffsetParent(element, polyfill) {
1157
- if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
1158
- return null;
1159
- }
1160
- if (polyfill) {
1161
- return polyfill(element);
1162
- }
1163
- return element.offsetParent;
1164
- }
1165
- function getContainingBlock(element) {
1166
- let currentNode = getParentNode(element);
1167
- while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1168
- if (isContainingBlock(currentNode)) {
1169
- return currentNode;
1170
- } else {
1171
- currentNode = getParentNode(currentNode);
1172
- }
1173
- }
1174
- return null;
1175
- }
1176
-
1177
- // Gets the closest ancestor positioned element. Handles some edge cases,
1178
- // such as table ancestors and cross browser bugs.
1179
- function getOffsetParent(element, polyfill) {
1180
- const window = getWindow(element);
1181
- if (!isHTMLElement(element)) {
1182
- return window;
1183
- }
1184
- let offsetParent = getTrueOffsetParent(element, polyfill);
1185
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
1186
- offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1187
- }
1188
- if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
1189
- return window;
1190
- }
1191
- return offsetParent || getContainingBlock(element) || window;
1192
- }
1193
-
1194
- function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1195
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
1196
- const documentElement = getDocumentElement(offsetParent);
1197
- const isFixed = strategy === 'fixed';
1198
- const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1199
- let scroll = {
1200
- scrollLeft: 0,
1201
- scrollTop: 0
1202
- };
1203
- const offsets = {
1204
- x: 0,
1205
- y: 0
1206
- };
1207
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1208
- if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1209
- scroll = getNodeScroll(offsetParent);
1210
- }
1211
- if (isHTMLElement(offsetParent)) {
1212
- const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1213
- offsets.x = offsetRect.x + offsetParent.clientLeft;
1214
- offsets.y = offsetRect.y + offsetParent.clientTop;
1215
- } else if (documentElement) {
1216
- offsets.x = getWindowScrollBarX(documentElement);
1217
- }
1218
- }
1219
- return {
1220
- x: rect.left + scroll.scrollLeft - offsets.x,
1221
- y: rect.top + scroll.scrollTop - offsets.y,
1222
- width: rect.width,
1223
- height: rect.height
1224
- };
1225
- }
1226
-
1227
- const platform = {
1228
- getClippingRect,
1229
- convertOffsetParentRelativeRectToViewportRelativeRect,
1230
- isElement,
1231
- getDimensions,
1232
- getOffsetParent,
1233
- getDocumentElement,
1234
- getScale,
1235
- async getElementRects(_ref) {
1236
- let {
1237
- reference,
1238
- floating,
1239
- strategy
1240
- } = _ref;
1241
- const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1242
- const getDimensionsFn = this.getDimensions;
1243
- return {
1244
- reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),
1245
- floating: {
1246
- x: 0,
1247
- y: 0,
1248
- ...(await getDimensionsFn(floating))
1249
- }
1250
- };
1251
- },
1252
- getClientRects: element => Array.from(element.getClientRects()),
1253
- isRTL: element => getComputedStyle$1(element).direction === 'rtl'
1254
- };
1255
-
1256
- /**
1257
- * Automatically updates the position of the floating element when necessary.
1258
- * Should only be called when the floating element is mounted on the DOM or
1259
- * visible on the screen.
1260
- * @returns cleanup function that should be invoked when the floating element is
1261
- * removed from the DOM or hidden from the screen.
1262
- * @see https://floating-ui.com/docs/autoUpdate
1263
- */
1264
- function autoUpdate(reference, floating, update, options) {
1265
- if (options === void 0) {
1266
- options = {};
1267
- }
1268
- const {
1269
- ancestorScroll = true,
1270
- ancestorResize = true,
1271
- elementResize = true,
1272
- animationFrame = false
1273
- } = options;
1274
- const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : []), ...getOverflowAncestors(floating)] : [];
1275
- ancestors.forEach(ancestor => {
1276
- // ignores Window, checks for [object VisualViewport]
1277
- const isVisualViewport = !isElement(ancestor) && ancestor.toString().includes('V');
1278
- if (ancestorScroll && (animationFrame ? isVisualViewport : true)) {
1279
- ancestor.addEventListener('scroll', update, {
1280
- passive: true
1281
- });
1282
- }
1283
- ancestorResize && ancestor.addEventListener('resize', update);
1284
- });
1285
- let observer = null;
1286
- if (elementResize) {
1287
- observer = new ResizeObserver(() => {
1288
- update();
1289
- });
1290
- isElement(reference) && !animationFrame && observer.observe(reference);
1291
- if (!isElement(reference) && reference.contextElement && !animationFrame) {
1292
- observer.observe(reference.contextElement);
1293
- }
1294
- observer.observe(floating);
1295
- }
1296
- let frameId;
1297
- let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
1298
- if (animationFrame) {
1299
- frameLoop();
1300
- }
1301
- function frameLoop() {
1302
- const nextRefRect = getBoundingClientRect(reference);
1303
- if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
1304
- update();
1305
- }
1306
- prevRefRect = nextRefRect;
1307
- frameId = requestAnimationFrame(frameLoop);
1308
- }
1309
- update();
1310
- return () => {
1311
- var _observer;
1312
- ancestors.forEach(ancestor => {
1313
- ancestorScroll && ancestor.removeEventListener('scroll', update);
1314
- ancestorResize && ancestor.removeEventListener('resize', update);
1315
- });
1316
- (_observer = observer) == null ? void 0 : _observer.disconnect();
1317
- observer = null;
1318
- if (animationFrame) {
1319
- cancelAnimationFrame(frameId);
1320
- }
1321
- };
1322
- }
1323
-
1324
- /**
1325
- * Computes the `x` and `y` coordinates that will place the floating element
1326
- * next to a reference element when it is given a certain CSS positioning
1327
- * strategy.
1328
- */
1329
- const computePosition = (reference, floating, options) => {
1330
- // This caches the expensive `getClippingElementAncestors` function so that
1331
- // multiple lifecycle resets re-use the same result. It only lives for a
1332
- // single call. If other functions become expensive, we can add them as well.
1333
- const cache = new Map();
1334
- const mergedOptions = {
1335
- platform,
1336
- ...options
1337
- };
1338
- const platformWithCache = {
1339
- ...mergedOptions.platform,
1340
- _c: cache
1341
- };
1342
- return computePosition$1(reference, floating, {
1343
- ...mergedOptions,
1344
- platform: platformWithCache
1345
- });
1346
- };
1347
-
1348
- export { arrow as a, autoUpdate as b, computePosition as c, flip as f, offset as o, shift as s };