@duetds/components 10.0.0-alpha.3 → 10.0.0-alpha.30

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 (1231) hide show
  1. package/hydrate/index.d.ts +38 -7
  2. package/hydrate/index.js +11784 -4278
  3. package/hydrate/index.mjs +46035 -0
  4. package/lib/cjs/_commonjsHelpers-4N64IRaP.js +10 -0
  5. package/lib/cjs/{a11y-utils-8177cf00.js → a11y-utils-D2e4DE4A.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-718a3704.js → app-globals-P2FPiN9v.js} +2 -2
  9. package/lib/cjs/{common-strings-2984301e.js → common-strings-CSqtNIxt.js} +29 -0
  10. package/lib/cjs/duet-action-button.cjs.entry.js +84 -29
  11. package/lib/cjs/duet-alert.cjs.entry.js +102 -48
  12. package/lib/cjs/duet-badge.cjs.entry.js +31 -9
  13. package/lib/cjs/duet-banner.cjs.entry.js +64 -27
  14. package/lib/cjs/duet-breadcrumb.cjs.entry.js +37 -26
  15. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +20 -14
  16. package/lib/cjs/duet-button_2.cjs.entry.js +162 -68
  17. package/lib/cjs/duet-callout.cjs.entry.js +13 -10
  18. package/lib/cjs/duet-caption_4.cjs.entry.js +211 -75
  19. package/lib/cjs/duet-card.cjs.entry.js +95 -34
  20. package/lib/cjs/duet-checkbox.cjs.entry.js +68 -32
  21. package/lib/cjs/duet-checkmark.cjs.entry.js +21 -9
  22. package/lib/cjs/duet-chip.cjs.entry.js +356 -0
  23. package/lib/cjs/duet-choice_2.cjs.entry.js +276 -128
  24. package/lib/cjs/duet-collapsible.cjs.entry.js +94 -29
  25. package/lib/cjs/duet-combobox.cjs.entry.js +85 -48
  26. package/lib/cjs/duet-contact-card.cjs.entry.js +17 -18
  27. package/lib/cjs/duet-cookie-consent.cjs.entry.js +14 -11
  28. package/lib/cjs/duet-date-picker.cjs.entry.js +163 -57
  29. package/lib/cjs/duet-divider_2.cjs.entry.js +30 -14
  30. package/lib/cjs/duet-editable-table_3.cjs.entry.js +553 -210
  31. package/lib/cjs/duet-empty-state.cjs.entry.js +15 -9
  32. package/lib/cjs/duet-fieldset.cjs.entry.js +51 -18
  33. package/lib/cjs/duet-file-chooser.cjs.entry.js +18 -11
  34. package/lib/cjs/duet-footer.cjs.entry.js +56 -30
  35. package/lib/cjs/duet-grid_2.cjs.entry.js +164 -64
  36. package/lib/cjs/duet-header_2.cjs.entry.js +302 -91
  37. package/lib/cjs/duet-hero.cjs.entry.js +149 -32
  38. package/lib/cjs/duet-icon.cjs.entry.js +64 -20
  39. package/lib/cjs/duet-indicator.cjs.entry.js +53 -0
  40. package/lib/cjs/duet-input_2.cjs.entry.js +204 -86
  41. package/lib/cjs/duet-layout.cjs.entry.js +33 -13
  42. package/lib/cjs/duet-list_2.cjs.entry.js +58 -14
  43. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +24 -16
  44. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +19 -14
  45. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +21 -16
  46. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +40 -19
  47. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +18 -10
  48. package/lib/cjs/duet-menu-bar.cjs.entry.js +37 -58
  49. package/lib/cjs/duet-modal.cjs.entry.js +122 -35
  50. package/lib/cjs/duet-multiselect.cjs.entry.js +88 -42
  51. package/lib/cjs/duet-nav.cjs.entry.js +12 -8
  52. package/lib/cjs/duet-notification_2.cjs.entry.js +91 -32
  53. package/lib/cjs/duet-number-input.cjs.entry.js +185 -70
  54. package/lib/cjs/duet-overlay.cjs.entry.js +36 -14
  55. package/lib/cjs/duet-page-heading.cjs.entry.js +16 -11
  56. package/lib/cjs/duet-pagination_2.cjs.entry.js +162 -87
  57. package/lib/cjs/duet-panel.cjs.entry.js +53 -0
  58. package/lib/cjs/duet-phone-input.cjs.entry.js +2072 -0
  59. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +552 -0
  60. package/lib/cjs/duet-progress.cjs.entry.js +32 -13
  61. package/lib/cjs/duet-promo-card.cjs.entry.js +27 -13
  62. package/lib/cjs/duet-radio_2.cjs.entry.js +114 -55
  63. package/lib/cjs/duet-range-slider.cjs.entry.js +73 -37
  64. package/lib/cjs/duet-scrollable_3.cjs.entry.js +269 -130
  65. package/lib/cjs/duet-section-layout.cjs.entry.js +17 -10
  66. package/lib/cjs/duet-select.cjs.entry.js +89 -43
  67. package/lib/cjs/duet-shaped-image.cjs.entry.js +16 -11
  68. package/lib/cjs/duet-share-chart-item.cjs.entry.js +22 -0
  69. package/lib/cjs/duet-share-chart.cjs.entry.js +85 -0
  70. package/lib/cjs/duet-show-more.cjs.entry.js +81 -38
  71. package/lib/cjs/duet-slideout-lang.cjs.entry.js +10 -10
  72. package/lib/cjs/duet-slideout-link.cjs.entry.js +61 -10
  73. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +25 -14
  74. package/lib/cjs/duet-slideout-panel.cjs.entry.js +50 -36
  75. package/lib/cjs/duet-slideout.cjs.entry.js +110 -60
  76. package/lib/cjs/duet-status-icon.cjs.entry.js +99 -0
  77. package/lib/cjs/duet-step_2.cjs.entry.js +72 -24
  78. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +25 -10
  79. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +27 -18
  80. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +40 -19
  81. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +18 -9
  82. package/lib/cjs/duet-submenu-bar.cjs.entry.js +27 -21
  83. package/lib/cjs/duet-textarea.cjs.entry.js +109 -50
  84. package/lib/cjs/duet-toggle.cjs.entry.js +50 -29
  85. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +22 -11
  86. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +27 -16
  87. package/lib/cjs/duet-toolbar-item.cjs.entry.js +46 -19
  88. package/lib/cjs/duet-toolbar-link.cjs.entry.js +21 -10
  89. package/lib/cjs/duet-toolbar.cjs.entry.js +12 -10
  90. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +24 -27
  91. package/lib/cjs/duet-tooltip.cjs.entry.js +98 -46
  92. package/lib/cjs/duet-tray.cjs.entry.js +63 -24
  93. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +30 -11
  94. package/lib/cjs/duet-upload-item.cjs.entry.js +12 -22
  95. package/lib/cjs/duet-visually-hidden.cjs.entry.js +4 -7
  96. package/lib/cjs/duet.cjs.js +8 -8
  97. package/lib/cjs/{errorcodes.utils-4e8a9de4.js → errorcodes.utils-B_Hqvx-5.js} +2 -2
  98. package/lib/cjs/floating-ui.dom.browser.min-Cj0r5YDz.js +709 -0
  99. package/lib/cjs/{focus-utils-2a0030aa.js → focus-utils-B7QfRXd-.js} +1 -1
  100. package/lib/cjs/form-search-CzPfHB80.js +21 -0
  101. package/lib/cjs/index-B1t_Yumd.js +3107 -0
  102. package/lib/cjs/{keyboard-utils-681e11ec.js → keyboard-utils-D9UlHbik.js} +4 -0
  103. package/lib/cjs/{label-2abeac23.js → label-e--2ISFA.js} +1 -1
  104. package/lib/cjs/{language-utils-b5940c7b.js → language-utils-Ce6b_uA3.js} +10 -2
  105. package/lib/cjs/loader.cjs.js +3 -5
  106. package/lib/cjs/{slot-utils-382633cf.js → slot-utils-C8k-6Rvc.js} +6 -1
  107. package/lib/cjs/{teleport-c6f8391a.js → teleport-D5NDbuu0.js} +22 -7
  108. package/lib/cjs/themeable-component-DmPMm0Cz.js +74 -0
  109. package/lib/cjs/{token-utils-5000595c.js → token-utils-COKjUxmn.js} +80 -9
  110. package/lib/cjs/{tokens-57e06fe4.js → tokens-9aevMbB1.js} +150 -8
  111. package/lib/cjs/{tokens.module-7c947029.js → tokens.module-Bhh9B2g8.js} +99 -3
  112. package/lib/cjs/{watch-options-30a12622.js → watch-options-D4JNsU3B.js} +0 -20
  113. package/lib/collection/collection-manifest.json +7 -1
  114. package/lib/collection/common/themeable-component.js +61 -3
  115. package/lib/collection/common-strings.js +27 -0
  116. package/lib/collection/components/duet-action-button/duet-action-button.css +29 -12
  117. package/lib/collection/components/duet-action-button/duet-action-button.js +92 -33
  118. package/lib/collection/components/duet-alert/duet-alert.css +88 -59
  119. package/lib/collection/components/duet-alert/duet-alert.js +141 -57
  120. package/lib/collection/components/duet-badge/duet-badge.css +21 -9
  121. package/lib/collection/components/duet-badge/duet-badge.js +30 -6
  122. package/lib/collection/components/duet-banner/duet-banner.css +30 -24
  123. package/lib/collection/components/duet-banner/duet-banner.js +68 -28
  124. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.css +10 -8
  125. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +26 -28
  126. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +18 -7
  127. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +15 -6
  128. package/lib/collection/components/duet-button/duet-button.css +149 -48
  129. package/lib/collection/components/duet-button/duet-button.js +175 -91
  130. package/lib/collection/components/duet-callout/duet-callout.css +7 -2
  131. package/lib/collection/components/duet-callout/duet-callout.js +10 -4
  132. package/lib/collection/components/duet-caption/duet-caption.css +7 -3
  133. package/lib/collection/components/duet-caption/duet-caption.js +18 -6
  134. package/lib/collection/components/duet-card/duet-card.css +45 -16
  135. package/lib/collection/components/duet-card/duet-card.js +115 -37
  136. package/lib/collection/components/duet-checkbox/duet-checkbox.css +26 -8
  137. package/lib/collection/components/duet-checkbox/duet-checkbox.js +86 -47
  138. package/lib/collection/components/duet-chip/duet-chip.css +63 -25
  139. package/lib/collection/components/duet-chip/duet-chip.js +70 -36
  140. package/lib/collection/components/duet-choice/duet-checkmark.css +4 -0
  141. package/lib/collection/components/duet-choice/duet-checkmark.js +22 -7
  142. package/lib/collection/components/duet-choice/duet-choice.css +90 -38
  143. package/lib/collection/components/duet-choice/duet-choice.js +228 -133
  144. package/lib/collection/components/duet-choice-group/duet-choice-group.css +4 -4
  145. package/lib/collection/components/duet-choice-group/duet-choice-group.js +108 -47
  146. package/lib/collection/components/duet-collapsible/duet-collapsible.css +49 -13
  147. package/lib/collection/components/duet-collapsible/duet-collapsible.js +116 -28
  148. package/lib/collection/components/duet-combobox/duet-combobox.css +9 -2
  149. package/lib/collection/components/duet-combobox/duet-combobox.js +88 -46
  150. package/lib/collection/components/duet-contact-card/duet-contact-card.css +8 -4
  151. package/lib/collection/components/duet-contact-card/duet-contact-card.js +21 -19
  152. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +23 -14
  153. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +11 -5
  154. package/lib/collection/components/duet-date-picker/date-picker-day.js +6 -1
  155. package/lib/collection/components/duet-date-picker/date-utils.js +6 -1
  156. package/lib/collection/components/duet-date-picker/duet-date-picker.css +99 -46
  157. package/lib/collection/components/duet-date-picker/duet-date-picker.js +177 -69
  158. package/lib/collection/components/duet-divider/duet-divider.css +12 -6
  159. package/lib/collection/components/duet-divider/duet-divider.js +14 -4
  160. package/lib/collection/components/duet-editable-table/duet-editable-table.css +2 -2
  161. package/lib/collection/components/duet-editable-table/duet-editable-table.js +83 -26
  162. package/lib/collection/components/duet-empty-state/duet-empty-state.css +11 -6
  163. package/lib/collection/components/duet-empty-state/duet-empty-state.js +14 -5
  164. package/lib/collection/components/duet-fieldset/duet-fieldset.css +13 -6
  165. package/lib/collection/components/duet-fieldset/duet-fieldset.js +58 -20
  166. package/lib/collection/components/duet-file-chooser/duet-file-chooser.css +2 -2
  167. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +17 -7
  168. package/lib/collection/components/duet-footer/duet-footer.css +43 -14
  169. package/lib/collection/components/duet-footer/duet-footer.js +55 -27
  170. package/lib/collection/components/duet-grid/duet-grid.css +2 -6
  171. package/lib/collection/components/duet-grid/duet-grid.js +144 -68
  172. package/lib/collection/components/duet-grid-item/duet-grid-item.css +6 -2
  173. package/lib/collection/components/duet-grid-item/duet-grid-item.js +40 -13
  174. package/lib/collection/components/duet-header/duet-header.css +165 -65
  175. package/lib/collection/components/duet-header/duet-header.js +165 -76
  176. package/lib/collection/components/duet-heading/duet-heading.css +11 -5
  177. package/lib/collection/components/duet-heading/duet-heading.js +56 -12
  178. package/lib/collection/components/duet-hero/duet-hero.css +326 -18
  179. package/lib/collection/components/duet-hero/duet-hero.js +170 -53
  180. package/lib/collection/components/duet-icon/duet-icon.css +17 -5
  181. package/lib/collection/components/duet-icon/duet-icon.js +71 -24
  182. package/lib/collection/components/duet-indicator/duet-indicator.css +46 -0
  183. package/lib/collection/components/duet-indicator/duet-indicator.js +104 -0
  184. package/lib/collection/components/duet-input/duet-input.css +155 -53
  185. package/lib/collection/components/duet-input/duet-input.js +241 -138
  186. package/lib/collection/components/duet-label/duet-label.css +8 -4
  187. package/lib/collection/components/duet-label/duet-label.js +23 -8
  188. package/lib/collection/components/duet-layout/duet-layout.css +4 -7
  189. package/lib/collection/components/duet-layout/duet-layout.js +35 -12
  190. package/lib/collection/components/duet-link/duet-link.css +166 -22
  191. package/lib/collection/components/duet-link/duet-link.js +121 -70
  192. package/lib/collection/components/duet-list/duet-list.css +4 -4
  193. package/lib/collection/components/duet-list/duet-list.js +38 -9
  194. package/lib/collection/components/duet-list-item/duet-list-item.css +25 -5
  195. package/lib/collection/components/duet-list-item/duet-list-item.js +50 -4
  196. package/lib/collection/components/duet-logo/duet-logo.css +33 -8
  197. package/lib/collection/components/duet-logo/duet-logo.js +111 -11
  198. package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +110 -8
  199. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +59 -57
  200. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +17 -8
  201. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +33 -22
  202. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +28 -12
  203. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +20 -12
  204. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +19 -9
  205. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +18 -10
  206. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +28 -10
  207. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +39 -16
  208. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +25 -10
  209. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +19 -8
  210. package/lib/collection/components/duet-modal/duet-modal.css +23 -25
  211. package/lib/collection/components/duet-modal/duet-modal.js +193 -39
  212. package/lib/collection/components/duet-multiselect/duet-multiselect.css +67 -29
  213. package/lib/collection/components/duet-multiselect/duet-multiselect.js +98 -48
  214. package/lib/collection/components/duet-nav/duet-nav.css +8 -4
  215. package/lib/collection/components/duet-nav/duet-nav.js +10 -3
  216. package/lib/collection/components/duet-notification/duet-notification.css +33 -26
  217. package/lib/collection/components/duet-notification/duet-notification.js +39 -9
  218. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +38 -36
  219. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +57 -24
  220. package/lib/collection/components/duet-number-input/duet-number-input.css +26 -14
  221. package/lib/collection/components/duet-number-input/duet-number-input.js +190 -95
  222. package/lib/collection/components/duet-overlay/duet-overlay.css +5 -1
  223. package/lib/collection/components/duet-overlay/duet-overlay.js +40 -15
  224. package/lib/collection/components/duet-page-heading/duet-page-heading.css +44 -16
  225. package/lib/collection/components/duet-page-heading/duet-page-heading.js +17 -9
  226. package/lib/collection/components/duet-pagination/duet-pagination.css +8 -4
  227. package/lib/collection/components/duet-pagination/duet-pagination.js +130 -76
  228. package/lib/collection/components/duet-panel/duet-panel.css +98 -0
  229. package/lib/collection/components/duet-panel/duet-panel.js +234 -0
  230. package/lib/collection/components/duet-paragraph/duet-paragraph.css +19 -6
  231. package/lib/collection/components/duet-paragraph/duet-paragraph.js +29 -8
  232. package/lib/collection/components/duet-phone-input/duet-phone-input.css +61 -0
  233. package/lib/collection/components/duet-phone-input/duet-phone-input.js +930 -0
  234. package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +14 -6
  235. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +235 -76
  236. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +30 -12
  237. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +64 -29
  238. package/lib/collection/components/duet-progress/duet-progress.css +27 -8
  239. package/lib/collection/components/duet-progress/duet-progress.js +36 -14
  240. package/lib/collection/components/duet-promo-card/duet-promo-card.css +15 -12
  241. package/lib/collection/components/duet-promo-card/duet-promo-card.js +28 -11
  242. package/lib/collection/components/duet-radio/duet-radio.css +35 -8
  243. package/lib/collection/components/duet-radio/duet-radio.js +67 -49
  244. package/lib/collection/components/duet-radio-group/duet-radio-group.css +4 -4
  245. package/lib/collection/components/duet-radio-group/duet-radio-group.js +78 -30
  246. package/lib/collection/components/duet-range-slider/duet-range-slider.css +60 -18
  247. package/lib/collection/components/duet-range-slider/duet-range-slider.js +85 -46
  248. package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +8 -4
  249. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +43 -14
  250. package/lib/collection/components/duet-scrollable/duet-scrollable.css +84 -47
  251. package/lib/collection/components/duet-scrollable/duet-scrollable.js +160 -43
  252. package/lib/collection/components/duet-section-layout/duet-section-layout.css +4 -7
  253. package/lib/collection/components/duet-section-layout/duet-section-layout.js +16 -6
  254. package/lib/collection/components/duet-select/duet-select.css +51 -23
  255. package/lib/collection/components/duet-select/duet-select.js +109 -60
  256. package/lib/collection/components/duet-shaped-image/duet-shaped-image.css +6 -6
  257. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +17 -9
  258. package/lib/collection/components/duet-share-chart/duet-share-chart.css +82 -0
  259. package/lib/collection/components/duet-share-chart/duet-share-chart.js +141 -0
  260. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +67 -0
  261. package/lib/collection/components/duet-show-more/duet-show-more.css +15 -8
  262. package/lib/collection/components/duet-show-more/duet-show-more.js +87 -37
  263. package/lib/collection/components/duet-slideout/duet-slideout.css +68 -33
  264. package/lib/collection/components/duet-slideout/duet-slideout.js +109 -54
  265. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +10 -6
  266. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +5 -2
  267. package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +41 -13
  268. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +135 -12
  269. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +63 -40
  270. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +47 -30
  271. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +29 -16
  272. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +25 -11
  273. package/lib/collection/components/duet-spacer/duet-spacer.css +2 -2
  274. package/lib/collection/components/duet-spacer/duet-spacer.js +14 -4
  275. package/lib/collection/components/duet-spinner/duet-spinner.css +7 -4
  276. package/lib/collection/components/duet-spinner/duet-spinner.js +21 -10
  277. package/lib/collection/components/duet-status-icon/duet-status-icon.js +197 -0
  278. package/lib/collection/components/duet-step/duet-step.css +28 -13
  279. package/lib/collection/components/duet-step/duet-step.js +25 -16
  280. package/lib/collection/components/duet-stepper/duet-stepper.css +4 -4
  281. package/lib/collection/components/duet-stepper/duet-stepper.js +45 -10
  282. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +34 -16
  283. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +25 -16
  284. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +49 -15
  285. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +25 -13
  286. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +29 -8
  287. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +26 -8
  288. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.css +33 -10
  289. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +38 -15
  290. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +34 -9
  291. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +17 -5
  292. package/lib/collection/components/duet-tab/duet-tab.css +15 -11
  293. package/lib/collection/components/duet-tab/duet-tab.js +88 -24
  294. package/lib/collection/components/duet-tab-group/duet-tab-group.css +232 -129
  295. package/lib/collection/components/duet-tab-group/duet-tab-group.js +228 -83
  296. package/lib/collection/components/duet-table/duet-table-styles.js +68 -4
  297. package/lib/collection/components/duet-table/duet-table.js +42 -13
  298. package/lib/collection/components/duet-textarea/duet-textarea.css +61 -22
  299. package/lib/collection/components/duet-textarea/duet-textarea.js +159 -74
  300. package/lib/collection/components/duet-toggle/duet-toggle.css +23 -10
  301. package/lib/collection/components/duet-toggle/duet-toggle.js +62 -38
  302. package/lib/collection/components/duet-toolbar/duet-toolbar.css +11 -4
  303. package/lib/collection/components/duet-toolbar/duet-toolbar.js +11 -6
  304. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +36 -12
  305. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +28 -14
  306. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +21 -8
  307. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +23 -9
  308. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +52 -30
  309. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +48 -19
  310. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +42 -10
  311. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +23 -9
  312. package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +24 -14
  313. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +9 -11
  314. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +48 -16
  315. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +18 -14
  316. package/lib/collection/components/duet-tooltip/duet-tooltip.css +4 -4
  317. package/lib/collection/components/duet-tooltip/duet-tooltip.js +100 -45
  318. package/lib/collection/components/duet-tray/duet-tray.css +43 -27
  319. package/lib/collection/components/duet-tray/duet-tray.js +63 -21
  320. package/lib/collection/components/duet-upload/duet-upload.css +6 -6
  321. package/lib/collection/components/duet-upload/duet-upload.js +419 -213
  322. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +35 -13
  323. package/lib/collection/components/duet-upload-item/duet-upload-item.js +17 -18
  324. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.css +3 -3
  325. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  326. package/lib/collection/data/countries.js +1762 -0
  327. package/lib/collection/index.js +1 -0
  328. package/lib/collection/utils/keyboard-utils.js +3 -0
  329. package/lib/collection/utils/language-utils.js +7 -0
  330. package/lib/collection/utils/slot-utils.js +4 -0
  331. package/lib/collection/utils/teleport.js +22 -7
  332. package/lib/collection/utils/test-utils.js +2 -2
  333. package/lib/collection/utils/token-utils.js +59 -7
  334. package/lib/collection/utils/turva2-color-tokens.js +42 -0
  335. package/lib/duet/duet.esm.js +1 -1
  336. package/lib/duet/p-05b44a92.entry.js +4 -0
  337. package/lib/duet/p-0c4bde0e.entry.js +4 -0
  338. package/lib/duet/p-0cf754a3.entry.js +4 -0
  339. package/lib/duet/p-11303551.entry.js +4 -0
  340. package/lib/duet/p-11dc2ca3.entry.js +4 -0
  341. package/lib/duet/p-14b9af85.entry.js +4 -0
  342. package/lib/duet/p-17b2fad7.entry.js +4 -0
  343. package/lib/duet/p-19c8adaa.entry.js +4 -0
  344. package/lib/duet/p-1UeoYjt6.js +4 -0
  345. package/lib/duet/p-25bfc839.entry.js +4 -0
  346. package/lib/duet/p-2690a420.entry.js +4 -0
  347. package/lib/duet/p-2f0a1808.entry.js +4 -0
  348. package/lib/duet/p-2f34aa4c.entry.js +4 -0
  349. package/lib/duet/p-37bdc3b9.entry.js +4 -0
  350. package/lib/duet/p-39e7cc4b.entry.js +4 -0
  351. package/lib/duet/p-3c5f5035.entry.js +4 -0
  352. package/lib/duet/p-3e08bd06.entry.js +4 -0
  353. package/lib/duet/p-3f932150.entry.js +4 -0
  354. package/lib/duet/p-414f4b06.entry.js +4 -0
  355. package/lib/duet/p-4457a9cc.entry.js +4 -0
  356. package/lib/duet/p-450983a5.entry.js +4 -0
  357. package/lib/duet/p-492d90a6.entry.js +4 -0
  358. package/lib/duet/p-4a743428.entry.js +4 -0
  359. package/lib/duet/p-4b4d9bdc.entry.js +4 -0
  360. package/lib/duet/p-4d4f7a6e.entry.js +4 -0
  361. package/lib/duet/p-4efa7172.entry.js +4 -0
  362. package/lib/duet/p-513683f8.entry.js +4 -0
  363. package/lib/duet/p-51e85e15.entry.js +4 -0
  364. package/lib/duet/{p-6be341c4.entry.js → p-52bb0826.entry.js} +1 -1
  365. package/lib/duet/p-52e64670.entry.js +4 -0
  366. package/lib/duet/p-52f52f3f.entry.js +4 -0
  367. package/lib/duet/p-559a54d1.entry.js +4 -0
  368. package/lib/duet/p-56331c29.entry.js +4 -0
  369. package/lib/duet/p-5c4687b0.entry.js +4 -0
  370. package/lib/duet/p-5f2507ee.entry.js +4 -0
  371. package/lib/duet/p-5iZMFvpJ.js +4 -0
  372. package/lib/duet/p-625bf656.entry.js +4 -0
  373. package/lib/duet/p-638d143f.entry.js +4 -0
  374. package/lib/duet/p-63d75040.entry.js +4 -0
  375. package/lib/duet/p-64482bf0.entry.js +4 -0
  376. package/lib/duet/p-64db9820.entry.js +4 -0
  377. package/lib/duet/p-653a4f52.entry.js +4 -0
  378. package/lib/duet/p-67cbf570.entry.js +4 -0
  379. package/lib/duet/p-6d0a6cef.entry.js +4 -0
  380. package/lib/duet/p-7ab7b977.entry.js +4 -0
  381. package/lib/duet/p-7d8ba1c8.entry.js +4 -0
  382. package/lib/duet/p-80157aab.entry.js +4 -0
  383. package/lib/duet/p-81fdf21e.entry.js +4 -0
  384. package/lib/duet/p-835532a3.entry.js +4 -0
  385. package/lib/duet/p-87d63c67.entry.js +4 -0
  386. package/lib/duet/p-88b2a4ab.entry.js +4 -0
  387. package/lib/duet/p-89119c58.entry.js +4 -0
  388. package/lib/duet/p-8a22e0f7.entry.js +4 -0
  389. package/lib/duet/p-9278d908.entry.js +4 -0
  390. package/lib/duet/p-93d1d4cb.entry.js +4 -0
  391. package/lib/duet/p-963f5510.entry.js +4 -0
  392. package/lib/duet/p-9bdedc1c.entry.js +4 -0
  393. package/lib/duet/p-9c452a9d.entry.js +4 -0
  394. package/lib/duet/p-9fd3fbde.entry.js +4 -0
  395. package/lib/duet/p-9fe9aaec.entry.js +4 -0
  396. package/lib/duet/p-9ff0f670.entry.js +4 -0
  397. package/lib/duet/p-BVgBUIYF.js +4 -0
  398. package/lib/duet/p-BW-c05c3.js +4 -0
  399. package/lib/duet/p-BWvtXbhA.js +4 -0
  400. package/lib/duet/{p-81287261.js → p-B_NkY9T0.js} +1 -1
  401. package/lib/duet/p-Bh9dkusU.js +4 -0
  402. package/lib/duet/p-BmMFVM-y.js +4 -0
  403. package/lib/duet/p-Bt_DCuTi.js +4 -0
  404. package/lib/duet/p-CZ7vOBA_.js +4 -0
  405. package/lib/duet/p-CcCc0HYj.js +4 -0
  406. package/lib/duet/p-CjRTMlgs.js +5 -0
  407. package/lib/duet/p-CooAqTCj.js +4 -0
  408. package/lib/duet/p-Db8rvjPI.js +4 -0
  409. package/lib/duet/p-DcQPCCbT.js +4 -0
  410. package/lib/duet/p-Df3Doz7n.js +4 -0
  411. package/lib/duet/{p-8c9eb171.js → p-DmZj36y3.js} +1 -1
  412. package/lib/duet/p-DvwKrUS6.js +4 -0
  413. package/lib/duet/p-DzEPksgg.js +4 -0
  414. package/lib/duet/p-a22b9c52.entry.js +4 -0
  415. package/lib/duet/p-a39af7a5.entry.js +4 -0
  416. package/lib/{esm-es5/duet-grid_2.entry.js → duet/p-a49e7633.entry.js} +2 -2
  417. package/lib/duet/p-a5ebee52.entry.js +4 -0
  418. package/lib/duet/p-ac7bf279.entry.js +4 -0
  419. package/lib/duet/p-ae22406a.entry.js +4 -0
  420. package/lib/duet/p-b17749b1.entry.js +4 -0
  421. package/lib/duet/p-b8e1621d.entry.js +4 -0
  422. package/lib/duet/p-ba0fc0f3.entry.js +4 -0
  423. package/lib/duet/p-bba12747.entry.js +4 -0
  424. package/lib/duet/p-bf4c10ea.entry.js +4 -0
  425. package/lib/duet/p-c2afba51.entry.js +4 -0
  426. package/lib/duet/p-c74cd476.entry.js +4 -0
  427. package/lib/duet/p-c8c7616a.entry.js +4 -0
  428. package/lib/duet/p-ca8ad275.entry.js +4 -0
  429. package/lib/duet/p-cf054af5.entry.js +4 -0
  430. package/lib/duet/p-d27678ec.entry.js +4 -0
  431. package/lib/duet/p-d49e4c1a.entry.js +4 -0
  432. package/lib/duet/p-da90aae6.entry.js +4 -0
  433. package/lib/duet/p-dceb943b.entry.js +4 -0
  434. package/lib/duet/{p-ff4f7076.entry.js → p-df64aa65.entry.js} +1 -1
  435. package/lib/duet/p-e04410c6.entry.js +4 -0
  436. package/lib/duet/p-e057762a.entry.js +4 -0
  437. package/lib/duet/p-ea09620e.entry.js +4 -0
  438. package/lib/duet/p-ebd27669.entry.js +4 -0
  439. package/lib/duet/p-ec601f3c.entry.js +4 -0
  440. package/lib/duet/p-ec7bdfaf.entry.js +4 -0
  441. package/lib/duet/p-qH1epSqB.js +4 -0
  442. package/lib/duet/p-vVCYtBMj.js +4 -0
  443. package/lib/esm/_commonjsHelpers-DvwKrUS6.js +8 -0
  444. package/lib/{dist-custom-elements/p-afb6f7fb.js → esm/a11y-utils-CfJGGdQJ.js} +1 -1
  445. package/lib/esm/action-arrow-down-small-Bk3GShyI.js +19 -0
  446. package/lib/esm/action-new-window-small-EH8_HdAm.js +19 -0
  447. package/lib/esm/{app-globals-00959ca9.js → app-globals-DGW8k4EA.js} +2 -2
  448. package/lib/esm/common-strings-BWvtXbhA.js +52 -0
  449. package/lib/esm/duet-action-button.entry.js +84 -27
  450. package/lib/esm/duet-alert.entry.js +102 -46
  451. package/lib/esm/duet-badge.entry.js +31 -7
  452. package/lib/esm/duet-banner.entry.js +64 -25
  453. package/lib/esm/duet-breadcrumb.entry.js +38 -25
  454. package/lib/esm/duet-breadcrumbs.entry.js +20 -12
  455. package/lib/esm/duet-button_2.entry.js +162 -66
  456. package/lib/esm/duet-callout.entry.js +13 -8
  457. package/lib/esm/duet-caption_4.entry.js +211 -73
  458. package/lib/esm/duet-card.entry.js +95 -32
  459. package/lib/esm/duet-checkbox.entry.js +68 -30
  460. package/lib/esm/duet-checkmark.entry.js +21 -7
  461. package/lib/{dist-custom-elements/p-3431b690.js → esm/duet-chip.entry.js} +68 -82
  462. package/lib/esm/duet-choice_2.entry.js +277 -127
  463. package/lib/esm/duet-collapsible.entry.js +94 -27
  464. package/lib/esm/duet-combobox.entry.js +85 -46
  465. package/lib/esm/duet-contact-card.entry.js +17 -16
  466. package/lib/esm/duet-cookie-consent.entry.js +14 -9
  467. package/lib/esm/duet-date-picker.entry.js +163 -55
  468. package/lib/esm/duet-divider_2.entry.js +30 -12
  469. package/lib/esm/duet-editable-table_3.entry.js +553 -208
  470. package/lib/esm/duet-empty-state.entry.js +15 -7
  471. package/lib/esm/duet-fieldset.entry.js +51 -16
  472. package/lib/esm/duet-file-chooser.entry.js +18 -9
  473. package/lib/esm/duet-footer.entry.js +56 -28
  474. package/lib/esm/duet-grid_2.entry.js +164 -62
  475. package/lib/esm/duet-header_2.entry.js +303 -90
  476. package/lib/esm/duet-hero.entry.js +149 -30
  477. package/lib/esm/duet-icon.entry.js +64 -18
  478. package/lib/esm/duet-indicator.entry.js +51 -0
  479. package/lib/esm/duet-input_2.entry.js +205 -85
  480. package/lib/esm/duet-layout.entry.js +33 -11
  481. package/lib/esm/duet-list_2.entry.js +58 -12
  482. package/lib/esm/duet-menu-bar-button.entry.js +24 -14
  483. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +19 -12
  484. package/lib/esm/duet-menu-bar-dropdown.entry.js +21 -14
  485. package/lib/esm/duet-menu-bar-item.entry.js +40 -17
  486. package/lib/esm/duet-menu-bar-link.entry.js +18 -8
  487. package/lib/esm/duet-menu-bar.entry.js +37 -56
  488. package/lib/esm/duet-modal.entry.js +122 -33
  489. package/lib/esm/duet-multiselect.entry.js +88 -40
  490. package/lib/esm/duet-nav.entry.js +12 -6
  491. package/lib/esm/duet-notification_2.entry.js +91 -30
  492. package/lib/esm/duet-number-input.entry.js +186 -69
  493. package/lib/esm/duet-overlay.entry.js +36 -12
  494. package/lib/esm/duet-page-heading.entry.js +16 -9
  495. package/lib/esm/duet-pagination_2.entry.js +162 -85
  496. package/lib/esm/duet-panel.entry.js +51 -0
  497. package/lib/esm/duet-phone-input.entry.js +2070 -0
  498. package/lib/esm/duet-popup-menu_2.entry.js +549 -0
  499. package/lib/esm/duet-progress.entry.js +32 -11
  500. package/lib/esm/duet-promo-card.entry.js +27 -11
  501. package/lib/esm/duet-radio_2.entry.js +114 -53
  502. package/lib/esm/duet-range-slider.entry.js +73 -35
  503. package/lib/esm/duet-scrollable_3.entry.js +269 -128
  504. package/lib/esm/duet-section-layout.entry.js +17 -8
  505. package/lib/esm/duet-select.entry.js +89 -41
  506. package/lib/esm/duet-shaped-image.entry.js +16 -9
  507. package/lib/esm/duet-share-chart-item.entry.js +20 -0
  508. package/lib/esm/duet-share-chart.entry.js +83 -0
  509. package/lib/esm/duet-show-more.entry.js +81 -36
  510. package/lib/esm/duet-slideout-lang.entry.js +10 -8
  511. package/lib/esm/duet-slideout-link.entry.js +61 -8
  512. package/lib/esm/duet-slideout-panel-dropdown.entry.js +25 -12
  513. package/lib/esm/duet-slideout-panel.entry.js +50 -34
  514. package/lib/esm/duet-slideout.entry.js +110 -58
  515. package/lib/esm/duet-status-icon.entry.js +97 -0
  516. package/lib/esm/duet-step_2.entry.js +73 -23
  517. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +25 -8
  518. package/lib/esm/duet-submenu-bar-dropdown.entry.js +27 -16
  519. package/lib/esm/duet-submenu-bar-item.entry.js +40 -17
  520. package/lib/esm/duet-submenu-bar-link.entry.js +18 -7
  521. package/lib/esm/duet-submenu-bar.entry.js +27 -19
  522. package/lib/esm/duet-textarea.entry.js +109 -48
  523. package/lib/esm/duet-toggle.entry.js +50 -27
  524. package/lib/esm/duet-toolbar-dropdown-link.entry.js +22 -9
  525. package/lib/esm/duet-toolbar-dropdown.entry.js +27 -14
  526. package/lib/esm/duet-toolbar-item.entry.js +46 -17
  527. package/lib/esm/duet-toolbar-link.entry.js +21 -8
  528. package/lib/esm/duet-toolbar.entry.js +12 -8
  529. package/lib/esm/duet-tooltip-button_2.entry.js +24 -25
  530. package/lib/esm/duet-tooltip.entry.js +97 -43
  531. package/lib/esm/duet-tray.entry.js +63 -22
  532. package/lib/esm/duet-upload-aria-status.entry.js +30 -9
  533. package/lib/esm/duet-upload-item.entry.js +12 -20
  534. package/lib/esm/duet-visually-hidden.entry.js +4 -5
  535. package/lib/esm/duet.js +7 -6
  536. package/lib/esm/{errorcodes.utils-d9431251.js → errorcodes.utils-qEQnnnLR.js} +3 -3
  537. package/lib/esm/floating-ui.dom.browser.min-B_NkY9T0.js +702 -0
  538. package/lib/{dist-custom-elements/p-e30dc66d.js → esm/focus-utils-D7bOJ91T.js} +1 -1
  539. package/lib/esm/form-search-CevX33LA.js +19 -0
  540. package/lib/esm/{index-1d0b7c66.js → index-CjRTMlgs.js} +2069 -1238
  541. package/lib/esm/{keyboard-utils-439bcc8b.js → keyboard-utils-Db8rvjPI.js} +4 -1
  542. package/lib/{dist-custom-elements/p-42619f94.js → esm/label-DI1u_MFQ.js} +1 -1
  543. package/lib/esm/{language-utils-14969cef.js → language-utils-DMUadJDW.js} +10 -3
  544. package/lib/esm/loader.js +4 -4
  545. package/lib/esm/{slot-utils-4e5ed4eb.js → slot-utils-DmMljwEF.js} +6 -2
  546. package/lib/{dist-custom-elements/p-ca3cb21e.js → esm/teleport-CooAqTCj.js} +22 -7
  547. package/lib/esm/themeable-component-CULFNCJP.js +72 -0
  548. package/lib/esm/{token-utils-b9ba8c5e.js → token-utils-Dw-GA7-4.js} +80 -10
  549. package/lib/{dist-custom-elements/p-f6000a03.js → esm/tokens-DcQPCCbT.js} +151 -7
  550. package/lib/{dist-custom-elements/p-cea716f7.js → esm/tokens.module-Bh9dkusU.js} +100 -4
  551. package/lib/{dist-custom-elements/p-7d8a2628.js → esm/watch-options-BmMFVM-y.js} +1 -20
  552. package/lib/index.js +1 -1
  553. package/lib/loader/cdn.js +1 -2
  554. package/lib/loader/index.cjs.js +1 -2
  555. package/lib/loader/index.es2017.js +0 -1
  556. package/lib/loader/index.js +1 -2
  557. package/lib/types/common-strings.d.ts +3 -0
  558. package/lib/types/common-types.d.ts +1 -1
  559. package/lib/types/components/duet-alert/duet-alert.d.ts +20 -10
  560. package/lib/types/components/duet-badge/duet-badge.d.ts +1 -0
  561. package/lib/types/components/duet-banner/duet-banner.d.ts +2 -0
  562. package/lib/types/components/duet-breadcrumbs/duet-breadcrumb.d.ts +2 -4
  563. package/lib/types/components/duet-button/duet-button.d.ts +1 -1
  564. package/lib/types/components/duet-card/duet-card.d.ts +6 -0
  565. package/lib/types/components/duet-chip/duet-chip.d.ts +1 -0
  566. package/lib/types/components/duet-choice/duet-choice.d.ts +1 -5
  567. package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +3 -2
  568. package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +8 -1
  569. package/lib/types/components/duet-combobox/duet-combobox.d.ts +1 -0
  570. package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +4 -0
  571. package/lib/types/components/duet-fieldset/duet-fieldset.d.ts +3 -0
  572. package/lib/types/components/duet-grid/duet-grid.d.ts +9 -7
  573. package/lib/types/components/duet-heading/duet-heading.d.ts +6 -0
  574. package/lib/types/components/duet-hero/duet-hero.d.ts +6 -2
  575. package/lib/types/components/duet-indicator/duet-indicator.d.ts +17 -0
  576. package/lib/types/components/duet-input/duet-input.d.ts +13 -15
  577. package/lib/types/components/duet-link/duet-link.d.ts +3 -7
  578. package/lib/types/components/duet-list-item/duet-list-item.d.ts +9 -3
  579. package/lib/types/components/duet-logo/duet-logo.d.ts +8 -0
  580. package/lib/types/components/duet-menu-bar/duet-menu-bar.d.ts +5 -4
  581. package/lib/types/components/duet-modal/duet-modal.d.ts +17 -1
  582. package/lib/types/components/duet-number-input/duet-number-input.d.ts +5 -2
  583. package/lib/types/components/duet-overlay/duet-overlay.d.ts +4 -0
  584. package/lib/types/components/duet-panel/duet-panel.d.ts +47 -0
  585. package/lib/types/components/duet-paragraph/duet-paragraph.d.ts +1 -0
  586. package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +178 -0
  587. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +19 -5
  588. package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +1 -0
  589. package/lib/types/components/duet-radio-group/duet-radio-group.d.ts +1 -0
  590. package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +18 -1
  591. package/lib/types/components/duet-select/duet-select.d.ts +2 -0
  592. package/lib/types/components/duet-share-chart/duet-share-chart.d.ts +34 -0
  593. package/lib/types/components/duet-share-chart-item/duet-share-chart-item.d.ts +13 -0
  594. package/lib/types/components/duet-show-more/duet-show-more.d.ts +1 -0
  595. package/lib/types/components/duet-slideout/duet-slideout.d.ts +4 -3
  596. package/lib/types/components/duet-slideout-link/duet-slideout-link.d.ts +17 -0
  597. package/lib/types/components/duet-spinner/duet-spinner.d.ts +1 -0
  598. package/lib/types/components/duet-status-icon/duet-status-icon.d.ts +27 -0
  599. package/lib/types/components/duet-stepper/duet-stepper.d.ts +5 -2
  600. package/lib/types/components/duet-tab/duet-tab.d.ts +10 -0
  601. package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +24 -4
  602. package/lib/types/components/duet-textarea/duet-textarea.d.ts +4 -2
  603. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +1 -1
  604. package/lib/types/components.d.ts +2350 -52
  605. package/lib/types/data/countries.d.ts +22 -0
  606. package/lib/types/index.d.ts +1 -0
  607. package/lib/types/stencil-public-runtime.d.ts +35 -6
  608. package/lib/types/utils/keyboard-utils.d.ts +1 -0
  609. package/lib/types/utils/language-utils.d.ts +1 -0
  610. package/lib/types/utils/slot-utils.d.ts +1 -0
  611. package/lib/types/utils/teleport.d.ts +4 -1
  612. package/lib/types/utils/token-utils.d.ts +4 -0
  613. package/lib/types/utils/turva2-color-tokens.d.ts +39 -0
  614. package/package.json +30 -16
  615. package/lib/cjs/action-arrow-down-small-ef77a2d1.js +0 -8
  616. package/lib/cjs/action-new-window-small-fa51dfb9.js +0 -8
  617. package/lib/cjs/duet-chip_3.cjs.entry.js +0 -699
  618. package/lib/cjs/floating-ui.dom.esm-806e7c53.js +0 -1355
  619. package/lib/cjs/form-search-d61b2843.js +0 -8
  620. package/lib/cjs/index-21e67ab3.js +0 -2278
  621. package/lib/cjs/themeable-component-996b489c.js +0 -15
  622. package/lib/dist-custom-elements/duet-action-button.d.ts +0 -11
  623. package/lib/dist-custom-elements/duet-action-button.js +0 -9
  624. package/lib/dist-custom-elements/duet-alert.d.ts +0 -11
  625. package/lib/dist-custom-elements/duet-alert.js +0 -9
  626. package/lib/dist-custom-elements/duet-badge.d.ts +0 -11
  627. package/lib/dist-custom-elements/duet-badge.js +0 -9
  628. package/lib/dist-custom-elements/duet-banner.d.ts +0 -11
  629. package/lib/dist-custom-elements/duet-banner.js +0 -157
  630. package/lib/dist-custom-elements/duet-breadcrumb.d.ts +0 -11
  631. package/lib/dist-custom-elements/duet-breadcrumb.js +0 -101
  632. package/lib/dist-custom-elements/duet-breadcrumbs.d.ts +0 -11
  633. package/lib/dist-custom-elements/duet-breadcrumbs.js +0 -88
  634. package/lib/dist-custom-elements/duet-button.d.ts +0 -11
  635. package/lib/dist-custom-elements/duet-button.js +0 -9
  636. package/lib/dist-custom-elements/duet-callout.d.ts +0 -11
  637. package/lib/dist-custom-elements/duet-callout.js +0 -72
  638. package/lib/dist-custom-elements/duet-caption.d.ts +0 -11
  639. package/lib/dist-custom-elements/duet-caption.js +0 -9
  640. package/lib/dist-custom-elements/duet-card.d.ts +0 -11
  641. package/lib/dist-custom-elements/duet-card.js +0 -171
  642. package/lib/dist-custom-elements/duet-checkbox.d.ts +0 -11
  643. package/lib/dist-custom-elements/duet-checkbox.js +0 -9
  644. package/lib/dist-custom-elements/duet-checkmark.d.ts +0 -11
  645. package/lib/dist-custom-elements/duet-checkmark.js +0 -9
  646. package/lib/dist-custom-elements/duet-chip.d.ts +0 -11
  647. package/lib/dist-custom-elements/duet-chip.js +0 -9
  648. package/lib/dist-custom-elements/duet-choice-group.d.ts +0 -11
  649. package/lib/dist-custom-elements/duet-choice-group.js +0 -228
  650. package/lib/dist-custom-elements/duet-choice.d.ts +0 -11
  651. package/lib/dist-custom-elements/duet-choice.js +0 -454
  652. package/lib/dist-custom-elements/duet-collapsible.d.ts +0 -11
  653. package/lib/dist-custom-elements/duet-collapsible.js +0 -158
  654. package/lib/dist-custom-elements/duet-combobox.d.ts +0 -11
  655. package/lib/dist-custom-elements/duet-combobox.js +0 -702
  656. package/lib/dist-custom-elements/duet-contact-card.d.ts +0 -11
  657. package/lib/dist-custom-elements/duet-contact-card.js +0 -134
  658. package/lib/dist-custom-elements/duet-cookie-consent.d.ts +0 -11
  659. package/lib/dist-custom-elements/duet-cookie-consent.js +0 -106
  660. package/lib/dist-custom-elements/duet-date-picker.d.ts +0 -11
  661. package/lib/dist-custom-elements/duet-date-picker.js +0 -932
  662. package/lib/dist-custom-elements/duet-divider.d.ts +0 -11
  663. package/lib/dist-custom-elements/duet-divider.js +0 -9
  664. package/lib/dist-custom-elements/duet-editable-table.d.ts +0 -11
  665. package/lib/dist-custom-elements/duet-editable-table.js +0 -258
  666. package/lib/dist-custom-elements/duet-empty-state.d.ts +0 -11
  667. package/lib/dist-custom-elements/duet-empty-state.js +0 -9
  668. package/lib/dist-custom-elements/duet-fieldset.d.ts +0 -11
  669. package/lib/dist-custom-elements/duet-fieldset.js +0 -9
  670. package/lib/dist-custom-elements/duet-file-chooser.d.ts +0 -11
  671. package/lib/dist-custom-elements/duet-file-chooser.js +0 -86
  672. package/lib/dist-custom-elements/duet-footer.d.ts +0 -11
  673. package/lib/dist-custom-elements/duet-footer.js +0 -223
  674. package/lib/dist-custom-elements/duet-grid-item.d.ts +0 -11
  675. package/lib/dist-custom-elements/duet-grid-item.js +0 -9
  676. package/lib/dist-custom-elements/duet-grid.d.ts +0 -11
  677. package/lib/dist-custom-elements/duet-grid.js +0 -9
  678. package/lib/dist-custom-elements/duet-header.d.ts +0 -11
  679. package/lib/dist-custom-elements/duet-header.js +0 -698
  680. package/lib/dist-custom-elements/duet-heading.d.ts +0 -11
  681. package/lib/dist-custom-elements/duet-heading.js +0 -9
  682. package/lib/dist-custom-elements/duet-hero.d.ts +0 -11
  683. package/lib/dist-custom-elements/duet-hero.js +0 -299
  684. package/lib/dist-custom-elements/duet-icon.d.ts +0 -11
  685. package/lib/dist-custom-elements/duet-icon.js +0 -9
  686. package/lib/dist-custom-elements/duet-input.d.ts +0 -11
  687. package/lib/dist-custom-elements/duet-input.js +0 -9
  688. package/lib/dist-custom-elements/duet-label.d.ts +0 -11
  689. package/lib/dist-custom-elements/duet-label.js +0 -70
  690. package/lib/dist-custom-elements/duet-layout.d.ts +0 -11
  691. package/lib/dist-custom-elements/duet-layout.js +0 -94
  692. package/lib/dist-custom-elements/duet-link.d.ts +0 -11
  693. package/lib/dist-custom-elements/duet-link.js +0 -9
  694. package/lib/dist-custom-elements/duet-list-item.d.ts +0 -11
  695. package/lib/dist-custom-elements/duet-list-item.js +0 -9
  696. package/lib/dist-custom-elements/duet-list.d.ts +0 -11
  697. package/lib/dist-custom-elements/duet-list.js +0 -9
  698. package/lib/dist-custom-elements/duet-logo.d.ts +0 -11
  699. package/lib/dist-custom-elements/duet-logo.js +0 -9
  700. package/lib/dist-custom-elements/duet-menu-bar-button.d.ts +0 -11
  701. package/lib/dist-custom-elements/duet-menu-bar-button.js +0 -94
  702. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.d.ts +0 -11
  703. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +0 -87
  704. package/lib/dist-custom-elements/duet-menu-bar-dropdown.d.ts +0 -11
  705. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +0 -108
  706. package/lib/dist-custom-elements/duet-menu-bar-item.d.ts +0 -11
  707. package/lib/dist-custom-elements/duet-menu-bar-item.js +0 -108
  708. package/lib/dist-custom-elements/duet-menu-bar-link.d.ts +0 -11
  709. package/lib/dist-custom-elements/duet-menu-bar-link.js +0 -70
  710. package/lib/dist-custom-elements/duet-menu-bar.d.ts +0 -11
  711. package/lib/dist-custom-elements/duet-menu-bar.js +0 -206
  712. package/lib/dist-custom-elements/duet-modal.d.ts +0 -11
  713. package/lib/dist-custom-elements/duet-modal.js +0 -382
  714. package/lib/dist-custom-elements/duet-multiselect.d.ts +0 -11
  715. package/lib/dist-custom-elements/duet-multiselect.js +0 -346
  716. package/lib/dist-custom-elements/duet-nav.d.ts +0 -11
  717. package/lib/dist-custom-elements/duet-nav.js +0 -54
  718. package/lib/dist-custom-elements/duet-notification-drawer.d.ts +0 -11
  719. package/lib/dist-custom-elements/duet-notification-drawer.js +0 -168
  720. package/lib/dist-custom-elements/duet-notification.d.ts +0 -11
  721. package/lib/dist-custom-elements/duet-notification.js +0 -95
  722. package/lib/dist-custom-elements/duet-number-input.d.ts +0 -11
  723. package/lib/dist-custom-elements/duet-number-input.js +0 -484
  724. package/lib/dist-custom-elements/duet-overlay.d.ts +0 -11
  725. package/lib/dist-custom-elements/duet-overlay.js +0 -9
  726. package/lib/dist-custom-elements/duet-page-heading.d.ts +0 -11
  727. package/lib/dist-custom-elements/duet-page-heading.js +0 -87
  728. package/lib/dist-custom-elements/duet-pagination.d.ts +0 -11
  729. package/lib/dist-custom-elements/duet-pagination.js +0 -493
  730. package/lib/dist-custom-elements/duet-paragraph.d.ts +0 -11
  731. package/lib/dist-custom-elements/duet-paragraph.js +0 -9
  732. package/lib/dist-custom-elements/duet-popup-menu-item.d.ts +0 -11
  733. package/lib/dist-custom-elements/duet-popup-menu-item.js +0 -9
  734. package/lib/dist-custom-elements/duet-popup-menu.d.ts +0 -11
  735. package/lib/dist-custom-elements/duet-popup-menu.js +0 -9
  736. package/lib/dist-custom-elements/duet-progress.d.ts +0 -11
  737. package/lib/dist-custom-elements/duet-progress.js +0 -9
  738. package/lib/dist-custom-elements/duet-promo-card.d.ts +0 -11
  739. package/lib/dist-custom-elements/duet-promo-card.js +0 -105
  740. package/lib/dist-custom-elements/duet-radio-group.d.ts +0 -11
  741. package/lib/dist-custom-elements/duet-radio-group.js +0 -213
  742. package/lib/dist-custom-elements/duet-radio.d.ts +0 -11
  743. package/lib/dist-custom-elements/duet-radio.js +0 -230
  744. package/lib/dist-custom-elements/duet-range-slider.d.ts +0 -11
  745. package/lib/dist-custom-elements/duet-range-slider.js +0 -181
  746. package/lib/dist-custom-elements/duet-range-stepper.d.ts +0 -11
  747. package/lib/dist-custom-elements/duet-range-stepper.js +0 -234
  748. package/lib/dist-custom-elements/duet-scrollable.d.ts +0 -11
  749. package/lib/dist-custom-elements/duet-scrollable.js +0 -9
  750. package/lib/dist-custom-elements/duet-section-layout.d.ts +0 -11
  751. package/lib/dist-custom-elements/duet-section-layout.js +0 -56
  752. package/lib/dist-custom-elements/duet-select.d.ts +0 -11
  753. package/lib/dist-custom-elements/duet-select.js +0 -9
  754. package/lib/dist-custom-elements/duet-shaped-image.d.ts +0 -11
  755. package/lib/dist-custom-elements/duet-shaped-image.js +0 -64
  756. package/lib/dist-custom-elements/duet-show-more.d.ts +0 -11
  757. package/lib/dist-custom-elements/duet-show-more.js +0 -9
  758. package/lib/dist-custom-elements/duet-slideout-lang.d.ts +0 -11
  759. package/lib/dist-custom-elements/duet-slideout-lang.js +0 -76
  760. package/lib/dist-custom-elements/duet-slideout-link.d.ts +0 -11
  761. package/lib/dist-custom-elements/duet-slideout-link.js +0 -79
  762. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.d.ts +0 -11
  763. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +0 -93
  764. package/lib/dist-custom-elements/duet-slideout-panel.d.ts +0 -11
  765. package/lib/dist-custom-elements/duet-slideout-panel.js +0 -224
  766. package/lib/dist-custom-elements/duet-slideout.d.ts +0 -11
  767. package/lib/dist-custom-elements/duet-slideout.js +0 -311
  768. package/lib/dist-custom-elements/duet-spacer.d.ts +0 -11
  769. package/lib/dist-custom-elements/duet-spacer.js +0 -9
  770. package/lib/dist-custom-elements/duet-spinner.d.ts +0 -11
  771. package/lib/dist-custom-elements/duet-spinner.js +0 -9
  772. package/lib/dist-custom-elements/duet-step.d.ts +0 -11
  773. package/lib/dist-custom-elements/duet-step.js +0 -147
  774. package/lib/dist-custom-elements/duet-stepper.d.ts +0 -11
  775. package/lib/dist-custom-elements/duet-stepper.js +0 -151
  776. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.d.ts +0 -11
  777. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +0 -81
  778. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.d.ts +0 -11
  779. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +0 -152
  780. package/lib/dist-custom-elements/duet-submenu-bar-item.d.ts +0 -11
  781. package/lib/dist-custom-elements/duet-submenu-bar-item.js +0 -113
  782. package/lib/dist-custom-elements/duet-submenu-bar-link.d.ts +0 -11
  783. package/lib/dist-custom-elements/duet-submenu-bar-link.js +0 -72
  784. package/lib/dist-custom-elements/duet-submenu-bar.d.ts +0 -11
  785. package/lib/dist-custom-elements/duet-submenu-bar.js +0 -192
  786. package/lib/dist-custom-elements/duet-tab-group.d.ts +0 -11
  787. package/lib/dist-custom-elements/duet-tab-group.js +0 -339
  788. package/lib/dist-custom-elements/duet-tab.d.ts +0 -11
  789. package/lib/dist-custom-elements/duet-tab.js +0 -150
  790. package/lib/dist-custom-elements/duet-table.d.ts +0 -11
  791. package/lib/dist-custom-elements/duet-table.js +0 -9
  792. package/lib/dist-custom-elements/duet-textarea.d.ts +0 -11
  793. package/lib/dist-custom-elements/duet-textarea.js +0 -301
  794. package/lib/dist-custom-elements/duet-toggle.d.ts +0 -11
  795. package/lib/dist-custom-elements/duet-toggle.js +0 -146
  796. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.d.ts +0 -11
  797. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +0 -80
  798. package/lib/dist-custom-elements/duet-toolbar-dropdown.d.ts +0 -11
  799. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +0 -107
  800. package/lib/dist-custom-elements/duet-toolbar-item.d.ts +0 -11
  801. package/lib/dist-custom-elements/duet-toolbar-item.js +0 -120
  802. package/lib/dist-custom-elements/duet-toolbar-link.d.ts +0 -11
  803. package/lib/dist-custom-elements/duet-toolbar-link.js +0 -74
  804. package/lib/dist-custom-elements/duet-toolbar.d.ts +0 -11
  805. package/lib/dist-custom-elements/duet-toolbar.js +0 -67
  806. package/lib/dist-custom-elements/duet-tooltip-button.d.ts +0 -11
  807. package/lib/dist-custom-elements/duet-tooltip-button.js +0 -9
  808. package/lib/dist-custom-elements/duet-tooltip-popup.d.ts +0 -11
  809. package/lib/dist-custom-elements/duet-tooltip-popup.js +0 -9
  810. package/lib/dist-custom-elements/duet-tooltip.d.ts +0 -11
  811. package/lib/dist-custom-elements/duet-tooltip.js +0 -9
  812. package/lib/dist-custom-elements/duet-tray.d.ts +0 -11
  813. package/lib/dist-custom-elements/duet-tray.js +0 -146
  814. package/lib/dist-custom-elements/duet-upload-aria-status.d.ts +0 -11
  815. package/lib/dist-custom-elements/duet-upload-aria-status.js +0 -9
  816. package/lib/dist-custom-elements/duet-upload-item.d.ts +0 -11
  817. package/lib/dist-custom-elements/duet-upload-item.js +0 -9
  818. package/lib/dist-custom-elements/duet-upload.d.ts +0 -11
  819. package/lib/dist-custom-elements/duet-upload.js +0 -1444
  820. package/lib/dist-custom-elements/duet-visually-hidden.d.ts +0 -11
  821. package/lib/dist-custom-elements/duet-visually-hidden.js +0 -9
  822. package/lib/dist-custom-elements/index.d.ts +0 -33
  823. package/lib/dist-custom-elements/index.js +0 -29
  824. package/lib/dist-custom-elements/p-02f97b91.js +0 -39
  825. package/lib/dist-custom-elements/p-087d8c5a.js +0 -60
  826. package/lib/dist-custom-elements/p-115c79b6.js +0 -6
  827. package/lib/dist-custom-elements/p-1296f851.js +0 -63
  828. package/lib/dist-custom-elements/p-174a9d1d.js +0 -73
  829. package/lib/dist-custom-elements/p-1ccd7c39.js +0 -80
  830. package/lib/dist-custom-elements/p-1f4fbc7a.js +0 -138
  831. package/lib/dist-custom-elements/p-22147601.js +0 -642
  832. package/lib/dist-custom-elements/p-29be247b.js +0 -80
  833. package/lib/dist-custom-elements/p-2c70b9f4.js +0 -50
  834. package/lib/dist-custom-elements/p-2f25dfb3.js +0 -154
  835. package/lib/dist-custom-elements/p-330bcf1d.js +0 -205
  836. package/lib/dist-custom-elements/p-35375593.js +0 -161
  837. package/lib/dist-custom-elements/p-36ab2d57.js +0 -83
  838. package/lib/dist-custom-elements/p-3ce1f7b8.js +0 -214
  839. package/lib/dist-custom-elements/p-41dca9e4.js +0 -63
  840. package/lib/dist-custom-elements/p-430f3778.js +0 -100
  841. package/lib/dist-custom-elements/p-43c4a1af.js +0 -81
  842. package/lib/dist-custom-elements/p-4da43fbc.js +0 -232
  843. package/lib/dist-custom-elements/p-68c629a8.js +0 -127
  844. package/lib/dist-custom-elements/p-6b77d4d3.js +0 -338
  845. package/lib/dist-custom-elements/p-81287261.js +0 -1348
  846. package/lib/dist-custom-elements/p-89b10856.js +0 -102
  847. package/lib/dist-custom-elements/p-956e3bce.js +0 -110
  848. package/lib/dist-custom-elements/p-993aea39.js +0 -175
  849. package/lib/dist-custom-elements/p-9df4cfa4.js +0 -25
  850. package/lib/dist-custom-elements/p-9f9423c6.js +0 -56
  851. package/lib/dist-custom-elements/p-9fa4eb51.js +0 -94
  852. package/lib/dist-custom-elements/p-a2147aff.js +0 -268
  853. package/lib/dist-custom-elements/p-aaa7a7bd.js +0 -13
  854. package/lib/dist-custom-elements/p-ab34075b.js +0 -124
  855. package/lib/dist-custom-elements/p-ad615991.js +0 -115
  856. package/lib/dist-custom-elements/p-b0925e24.js +0 -318
  857. package/lib/dist-custom-elements/p-b8de9a9c.js +0 -165
  858. package/lib/dist-custom-elements/p-c7d815f6.js +0 -194
  859. package/lib/dist-custom-elements/p-ca700701.js +0 -55
  860. package/lib/dist-custom-elements/p-d004da5f.js +0 -6
  861. package/lib/dist-custom-elements/p-d1f89e90.js +0 -124
  862. package/lib/dist-custom-elements/p-d2a5148f.js +0 -61
  863. package/lib/dist-custom-elements/p-d77db171.js +0 -2130
  864. package/lib/dist-custom-elements/p-dad518a5.js +0 -303
  865. package/lib/dist-custom-elements/p-de4ee016.js +0 -209
  866. package/lib/dist-custom-elements/p-de8f018a.js +0 -55
  867. package/lib/dist-custom-elements/p-df2042f8.js +0 -206
  868. package/lib/dist-custom-elements/p-e176f419.js +0 -61
  869. package/lib/dist-custom-elements/p-e37d189b.js +0 -607
  870. package/lib/dist-custom-elements/p-f11208c3.js +0 -6
  871. package/lib/dist-custom-elements/p-fe9e47d9.js +0 -287
  872. package/lib/duet/duet.js +0 -127
  873. package/lib/duet/p-021a4763.system.entry.js +0 -4
  874. package/lib/duet/p-031167a1.system.entry.js +0 -4
  875. package/lib/duet/p-051c4536.entry.js +0 -4
  876. package/lib/duet/p-053b71e6.system.js +0 -4
  877. package/lib/duet/p-05ca5aea.entry.js +0 -4
  878. package/lib/duet/p-07847129.system.entry.js +0 -4
  879. package/lib/duet/p-0a305aee.entry.js +0 -4
  880. package/lib/duet/p-0c4bbd65.system.js +0 -4
  881. package/lib/duet/p-0d7da85a.js +0 -4
  882. package/lib/duet/p-0dc9089b.system.js +0 -4
  883. package/lib/duet/p-0e348f96.system.entry.js +0 -4
  884. package/lib/duet/p-0e8e80b1.entry.js +0 -4
  885. package/lib/duet/p-0ee85b71.entry.js +0 -4
  886. package/lib/duet/p-115c79b6.js +0 -4
  887. package/lib/duet/p-1183d305.system.entry.js +0 -4
  888. package/lib/duet/p-1268b5a0.system.entry.js +0 -4
  889. package/lib/duet/p-153b6150.system.entry.js +0 -4
  890. package/lib/duet/p-192bba35.system.entry.js +0 -4
  891. package/lib/duet/p-1e17463d.system.js +0 -4
  892. package/lib/duet/p-1e904342.entry.js +0 -4
  893. package/lib/duet/p-1e9e887d.entry.js +0 -4
  894. package/lib/duet/p-209d6065.system.entry.js +0 -4
  895. package/lib/duet/p-20d056ac.entry.js +0 -4
  896. package/lib/duet/p-20eaf445.system.entry.js +0 -4
  897. package/lib/duet/p-215f4257.system.entry.js +0 -4
  898. package/lib/duet/p-237efb0c.system.entry.js +0 -4
  899. package/lib/duet/p-2437b4cb.js +0 -4
  900. package/lib/duet/p-250fb070.entry.js +0 -4
  901. package/lib/duet/p-25af4a6c.entry.js +0 -4
  902. package/lib/duet/p-25d79094.entry.js +0 -4
  903. package/lib/duet/p-27260106.entry.js +0 -4
  904. package/lib/duet/p-27ed5ca7.system.entry.js +0 -4
  905. package/lib/duet/p-2810c6dc.system.entry.js +0 -4
  906. package/lib/duet/p-2814473c.system.entry.js +0 -4
  907. package/lib/duet/p-29152853.entry.js +0 -4
  908. package/lib/duet/p-2a0ad29c.system.entry.js +0 -4
  909. package/lib/duet/p-2a979523.entry.js +0 -4
  910. package/lib/duet/p-2b2cd3be.entry.js +0 -4
  911. package/lib/duet/p-2b35de7b.entry.js +0 -4
  912. package/lib/duet/p-2b45d2e4.entry.js +0 -4
  913. package/lib/duet/p-2b6a7397.js +0 -4
  914. package/lib/duet/p-2bf17427.entry.js +0 -4
  915. package/lib/duet/p-2dc360ee.entry.js +0 -4
  916. package/lib/duet/p-2de0ab3d.system.entry.js +0 -4
  917. package/lib/duet/p-2eae4a0b.js +0 -4
  918. package/lib/duet/p-2fa7ecef.entry.js +0 -4
  919. package/lib/duet/p-2fb96333.entry.js +0 -4
  920. package/lib/duet/p-3106c658.entry.js +0 -4
  921. package/lib/duet/p-34024554.system.entry.js +0 -4
  922. package/lib/duet/p-34d7dd10.system.js +0 -4
  923. package/lib/duet/p-380f74e8.system.entry.js +0 -4
  924. package/lib/duet/p-3810c7dc.entry.js +0 -4
  925. package/lib/duet/p-3c64dab9.entry.js +0 -4
  926. package/lib/duet/p-3d826a58.system.entry.js +0 -4
  927. package/lib/duet/p-3d96186f.system.entry.js +0 -4
  928. package/lib/duet/p-3df2981e.system.entry.js +0 -4
  929. package/lib/duet/p-3faaa469.entry.js +0 -4
  930. package/lib/duet/p-3fe7e109.system.entry.js +0 -4
  931. package/lib/duet/p-40bab9a0.system.entry.js +0 -4
  932. package/lib/duet/p-41552571.system.entry.js +0 -4
  933. package/lib/duet/p-41982d26.system.js +0 -4
  934. package/lib/duet/p-43cc4ad9.system.entry.js +0 -4
  935. package/lib/duet/p-43d16748.system.entry.js +0 -4
  936. package/lib/duet/p-44ee649f.system.entry.js +0 -4
  937. package/lib/duet/p-486576ee.entry.js +0 -4
  938. package/lib/duet/p-49957220.system.js +0 -4
  939. package/lib/duet/p-49fa4a07.entry.js +0 -4
  940. package/lib/duet/p-4a9978a4.entry.js +0 -4
  941. package/lib/duet/p-4cff3036.system.js +0 -4
  942. package/lib/duet/p-4e7f27d8.entry.js +0 -4
  943. package/lib/duet/p-4e9052cd.entry.js +0 -4
  944. package/lib/duet/p-4ee7eb8a.entry.js +0 -4
  945. package/lib/duet/p-5170726b.system.entry.js +0 -4
  946. package/lib/duet/p-55674524.entry.js +0 -4
  947. package/lib/duet/p-58caf53a.system.entry.js +0 -4
  948. package/lib/duet/p-5b927db3.entry.js +0 -4
  949. package/lib/duet/p-5db9497a.entry.js +0 -4
  950. package/lib/duet/p-5dbd1202.entry.js +0 -4
  951. package/lib/duet/p-5e25b406.entry.js +0 -4
  952. package/lib/duet/p-60547899.system.entry.js +0 -4
  953. package/lib/duet/p-605e69c8.system.js +0 -4
  954. package/lib/duet/p-612fbfcc.entry.js +0 -4
  955. package/lib/duet/p-620d4575.system.entry.js +0 -4
  956. package/lib/duet/p-629a9c13.entry.js +0 -4
  957. package/lib/duet/p-62bdecfb.system.entry.js +0 -4
  958. package/lib/duet/p-6324514a.system.entry.js +0 -4
  959. package/lib/duet/p-6447f20d.system.entry.js +0 -4
  960. package/lib/duet/p-6537159a.system.entry.js +0 -4
  961. package/lib/duet/p-670bd483.system.entry.js +0 -4
  962. package/lib/duet/p-6b436ca9.entry.js +0 -4
  963. package/lib/duet/p-7483d86c.entry.js +0 -4
  964. package/lib/duet/p-76563c02.entry.js +0 -4
  965. package/lib/duet/p-769a3309.system.entry.js +0 -4
  966. package/lib/duet/p-76b42e90.entry.js +0 -4
  967. package/lib/duet/p-76b84b22.entry.js +0 -4
  968. package/lib/duet/p-76d69a18.system.js +0 -4
  969. package/lib/duet/p-7972306f.entry.js +0 -4
  970. package/lib/duet/p-79dfc8e6.system.entry.js +0 -4
  971. package/lib/duet/p-7a67ce10.system.entry.js +0 -4
  972. package/lib/duet/p-7acabaa7.system.js +0 -4
  973. package/lib/duet/p-7cce22af.system.js +0 -4
  974. package/lib/duet/p-7d2fffc2.entry.js +0 -4
  975. package/lib/duet/p-7d8a2628.js +0 -4
  976. package/lib/duet/p-7dd3b7d1.entry.js +0 -4
  977. package/lib/duet/p-7f5c1da2.entry.js +0 -4
  978. package/lib/duet/p-8142169f.system.entry.js +0 -4
  979. package/lib/duet/p-8481bbda.entry.js +0 -4
  980. package/lib/duet/p-871d7ca1.system.entry.js +0 -4
  981. package/lib/duet/p-894c1be1.system.entry.js +0 -4
  982. package/lib/duet/p-8abb0984.js +0 -5
  983. package/lib/duet/p-8f477bd6.system.js +0 -4
  984. package/lib/duet/p-8f4cdf46.system.entry.js +0 -4
  985. package/lib/duet/p-8faaaf5f.system.js +0 -4
  986. package/lib/duet/p-9253e832.system.entry.js +0 -4
  987. package/lib/duet/p-965e597c.system.js +0 -4
  988. package/lib/duet/p-966bd64a.entry.js +0 -4
  989. package/lib/duet/p-98636086.system.js +0 -4
  990. package/lib/duet/p-9b04e4a2.entry.js +0 -4
  991. package/lib/duet/p-9fb9ba73.entry.js +0 -4
  992. package/lib/duet/p-a19244e5.system.js +0 -5
  993. package/lib/duet/p-a1b7f2a0.js +0 -4
  994. package/lib/duet/p-a2aa619b.system.entry.js +0 -4
  995. package/lib/duet/p-a2b93336.system.entry.js +0 -4
  996. package/lib/duet/p-a3341588.entry.js +0 -4
  997. package/lib/duet/p-a47047f2.entry.js +0 -4
  998. package/lib/duet/p-a51e1b9e.entry.js +0 -4
  999. package/lib/duet/p-a600451a.entry.js +0 -4
  1000. package/lib/duet/p-a7d809b4.system.entry.js +0 -4
  1001. package/lib/duet/p-a8a381c9.system.entry.js +0 -4
  1002. package/lib/duet/p-aa82f9a1.entry.js +0 -4
  1003. package/lib/duet/p-aaa7a7bd.js +0 -4
  1004. package/lib/duet/p-ac9460ca.entry.js +0 -4
  1005. package/lib/duet/p-aca3a5a9.entry.js +0 -4
  1006. package/lib/duet/p-af209330.entry.js +0 -4
  1007. package/lib/duet/p-afad5fd3.system.js +0 -4
  1008. package/lib/duet/p-b010f56b.system.entry.js +0 -4
  1009. package/lib/duet/p-b69f3d9d.system.entry.js +0 -4
  1010. package/lib/duet/p-b6c584b6.entry.js +0 -4
  1011. package/lib/duet/p-b765710e.entry.js +0 -4
  1012. package/lib/duet/p-b864159a.system.js +0 -4
  1013. package/lib/duet/p-ba03d034.system.js +0 -4
  1014. package/lib/duet/p-bcc40139.system.entry.js +0 -4
  1015. package/lib/duet/p-beeb12f1.js +0 -4
  1016. package/lib/duet/p-c15cd383.system.entry.js +0 -4
  1017. package/lib/duet/p-c22935bf.system.entry.js +0 -4
  1018. package/lib/duet/p-c2dd561e.entry.js +0 -4
  1019. package/lib/duet/p-c3ba8e74.system.entry.js +0 -4
  1020. package/lib/duet/p-c52e8007.entry.js +0 -4
  1021. package/lib/duet/p-c6894b07.system.entry.js +0 -4
  1022. package/lib/duet/p-c694f12d.system.entry.js +0 -4
  1023. package/lib/duet/p-c79cbfdb.entry.js +0 -4
  1024. package/lib/duet/p-c8421271.system.entry.js +0 -4
  1025. package/lib/duet/p-c8d3cb52.entry.js +0 -4
  1026. package/lib/duet/p-c8e22ae2.system.entry.js +0 -4
  1027. package/lib/duet/p-ca3cb21e.js +0 -4
  1028. package/lib/duet/p-cbedbd77.system.entry.js +0 -4
  1029. package/lib/duet/p-cc5e6288.system.js +0 -4
  1030. package/lib/duet/p-cc67e773.js +0 -4
  1031. package/lib/duet/p-ce543cc1.system.entry.js +0 -4
  1032. package/lib/duet/p-cf30c088.entry.js +0 -4
  1033. package/lib/duet/p-d004da5f.js +0 -4
  1034. package/lib/duet/p-d3c304b5.system.js +0 -4
  1035. package/lib/duet/p-d43fc5e9.system.entry.js +0 -4
  1036. package/lib/duet/p-d6dc9819.system.entry.js +0 -4
  1037. package/lib/duet/p-d7d86092.js +0 -4
  1038. package/lib/duet/p-d86d8491.system.entry.js +0 -4
  1039. package/lib/duet/p-db2ccb9d.system.js +0 -4
  1040. package/lib/duet/p-dfd223d9.entry.js +0 -4
  1041. package/lib/duet/p-e0536bb5.entry.js +0 -4
  1042. package/lib/duet/p-e12066c8.system.js +0 -4
  1043. package/lib/duet/p-e1c881da.system.js +0 -4
  1044. package/lib/duet/p-e216bea4.system.js +0 -4
  1045. package/lib/duet/p-e258270f.entry.js +0 -4
  1046. package/lib/duet/p-e2daf94c.entry.js +0 -4
  1047. package/lib/duet/p-e38edd16.system.entry.js +0 -4
  1048. package/lib/duet/p-e44da0ff.system.entry.js +0 -4
  1049. package/lib/duet/p-e4c8559c.system.js +0 -4
  1050. package/lib/duet/p-e6b5a1c7.system.js +0 -4
  1051. package/lib/duet/p-e8dd29e7.entry.js +0 -4
  1052. package/lib/duet/p-e93849fd.system.entry.js +0 -4
  1053. package/lib/duet/p-e9d2f4a1.entry.js +0 -4
  1054. package/lib/duet/p-eca03d5e.js +0 -4
  1055. package/lib/duet/p-ee1eb7cb.system.entry.js +0 -4
  1056. package/lib/duet/p-efa5ec67.entry.js +0 -4
  1057. package/lib/duet/p-f0b0e2b2.system.entry.js +0 -4
  1058. package/lib/duet/p-f105f32a.system.entry.js +0 -4
  1059. package/lib/duet/p-f11208c3.js +0 -4
  1060. package/lib/duet/p-f3633004.entry.js +0 -4
  1061. package/lib/duet/p-f3cf6b50.entry.js +0 -4
  1062. package/lib/duet/p-f43e134e.system.entry.js +0 -4
  1063. package/lib/duet/p-f5dd7e7e.system.entry.js +0 -4
  1064. package/lib/duet/p-f6000a03.js +0 -4
  1065. package/lib/duet/p-f6b21d17.system.js +0 -4
  1066. package/lib/duet/p-f6bd2d4f.system.entry.js +0 -4
  1067. package/lib/duet/p-f75a6d54.system.entry.js +0 -4
  1068. package/lib/duet/p-f97500ff.system.entry.js +0 -4
  1069. package/lib/duet/p-fa3b3dbc.system.entry.js +0 -4
  1070. package/lib/duet/p-fbc396a7.system.entry.js +0 -4
  1071. package/lib/duet/p-fbf89657.system.entry.js +0 -4
  1072. package/lib/duet/p-fcb14b31.system.entry.js +0 -4
  1073. package/lib/duet/p-fd2299b4.entry.js +0 -4
  1074. package/lib/duet/p-fd78f61a.js +0 -4
  1075. package/lib/duet/p-fee25f59.entry.js +0 -4
  1076. package/lib/esm/a11y-utils-8fc393f6.js +0 -23
  1077. package/lib/esm/action-arrow-down-small-82273dc8.js +0 -6
  1078. package/lib/esm/action-new-window-small-1945be91.js +0 -6
  1079. package/lib/esm/body-scroll-46854769.js +0 -234
  1080. package/lib/esm/bodyScrollLock.es6-ecbf187e.js +0 -184
  1081. package/lib/esm/common-strings-af765cad.js +0 -25
  1082. package/lib/esm/create-id-149a1b6d.js +0 -11
  1083. package/lib/esm/duet-chip_3.entry.js +0 -693
  1084. package/lib/esm/floating-ui.dom.esm-ebc91b33.js +0 -1348
  1085. package/lib/esm/focus-utils-adcd9463.js +0 -18
  1086. package/lib/esm/form-search-ea8e19ae.js +0 -6
  1087. package/lib/esm/input-utils-85681162.js +0 -53
  1088. package/lib/esm/is-internet-explorer-2c48f686.js +0 -9
  1089. package/lib/esm/js-utils-9b9e0039.js +0 -47
  1090. package/lib/esm/label-ce262202.js +0 -20
  1091. package/lib/esm/polyfills/core-js.js +0 -11
  1092. package/lib/esm/polyfills/dom.js +0 -79
  1093. package/lib/esm/polyfills/es5-html-element.js +0 -1
  1094. package/lib/esm/polyfills/index.js +0 -34
  1095. package/lib/esm/polyfills/system.js +0 -6
  1096. package/lib/esm/string-utils-192eb3c8.js +0 -61
  1097. package/lib/esm/teleport-546f382d.js +0 -116
  1098. package/lib/esm/themeable-component-860041c5.js +0 -13
  1099. package/lib/esm/tokens-84fb2357.js +0 -753
  1100. package/lib/esm/tokens.module-2d02f5ff.js +0 -503
  1101. package/lib/esm/watch-options-e96ecd92.js +0 -57
  1102. package/lib/esm-es5/a11y-utils-8fc393f6.js +0 -4
  1103. package/lib/esm-es5/action-arrow-down-small-82273dc8.js +0 -4
  1104. package/lib/esm-es5/action-new-window-small-1945be91.js +0 -4
  1105. package/lib/esm-es5/app-globals-00959ca9.js +0 -4
  1106. package/lib/esm-es5/body-scroll-46854769.js +0 -4
  1107. package/lib/esm-es5/bodyScrollLock.es6-ecbf187e.js +0 -4
  1108. package/lib/esm-es5/common-strings-af765cad.js +0 -4
  1109. package/lib/esm-es5/create-id-149a1b6d.js +0 -4
  1110. package/lib/esm-es5/duet-action-button.entry.js +0 -4
  1111. package/lib/esm-es5/duet-alert.entry.js +0 -4
  1112. package/lib/esm-es5/duet-badge.entry.js +0 -4
  1113. package/lib/esm-es5/duet-banner.entry.js +0 -4
  1114. package/lib/esm-es5/duet-breadcrumb.entry.js +0 -4
  1115. package/lib/esm-es5/duet-breadcrumbs.entry.js +0 -4
  1116. package/lib/esm-es5/duet-button_2.entry.js +0 -4
  1117. package/lib/esm-es5/duet-callout.entry.js +0 -4
  1118. package/lib/esm-es5/duet-caption_4.entry.js +0 -4
  1119. package/lib/esm-es5/duet-card.entry.js +0 -4
  1120. package/lib/esm-es5/duet-checkbox.entry.js +0 -4
  1121. package/lib/esm-es5/duet-checkmark.entry.js +0 -4
  1122. package/lib/esm-es5/duet-chip_3.entry.js +0 -4
  1123. package/lib/esm-es5/duet-choice_2.entry.js +0 -4
  1124. package/lib/esm-es5/duet-collapsible.entry.js +0 -4
  1125. package/lib/esm-es5/duet-combobox.entry.js +0 -4
  1126. package/lib/esm-es5/duet-contact-card.entry.js +0 -4
  1127. package/lib/esm-es5/duet-cookie-consent.entry.js +0 -4
  1128. package/lib/esm-es5/duet-date-picker.entry.js +0 -4
  1129. package/lib/esm-es5/duet-divider_2.entry.js +0 -4
  1130. package/lib/esm-es5/duet-editable-table_3.entry.js +0 -4
  1131. package/lib/esm-es5/duet-empty-state.entry.js +0 -4
  1132. package/lib/esm-es5/duet-fieldset.entry.js +0 -4
  1133. package/lib/esm-es5/duet-file-chooser.entry.js +0 -4
  1134. package/lib/esm-es5/duet-footer.entry.js +0 -4
  1135. package/lib/esm-es5/duet-header_2.entry.js +0 -4
  1136. package/lib/esm-es5/duet-hero.entry.js +0 -4
  1137. package/lib/esm-es5/duet-icon.entry.js +0 -4
  1138. package/lib/esm-es5/duet-input_2.entry.js +0 -4
  1139. package/lib/esm-es5/duet-layout.entry.js +0 -4
  1140. package/lib/esm-es5/duet-list_2.entry.js +0 -4
  1141. package/lib/esm-es5/duet-menu-bar-button.entry.js +0 -4
  1142. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +0 -4
  1143. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +0 -4
  1144. package/lib/esm-es5/duet-menu-bar-item.entry.js +0 -4
  1145. package/lib/esm-es5/duet-menu-bar-link.entry.js +0 -4
  1146. package/lib/esm-es5/duet-menu-bar.entry.js +0 -4
  1147. package/lib/esm-es5/duet-modal.entry.js +0 -4
  1148. package/lib/esm-es5/duet-multiselect.entry.js +0 -4
  1149. package/lib/esm-es5/duet-nav.entry.js +0 -4
  1150. package/lib/esm-es5/duet-notification_2.entry.js +0 -4
  1151. package/lib/esm-es5/duet-number-input.entry.js +0 -4
  1152. package/lib/esm-es5/duet-overlay.entry.js +0 -4
  1153. package/lib/esm-es5/duet-page-heading.entry.js +0 -4
  1154. package/lib/esm-es5/duet-pagination_2.entry.js +0 -4
  1155. package/lib/esm-es5/duet-progress.entry.js +0 -4
  1156. package/lib/esm-es5/duet-promo-card.entry.js +0 -4
  1157. package/lib/esm-es5/duet-radio_2.entry.js +0 -4
  1158. package/lib/esm-es5/duet-range-slider.entry.js +0 -4
  1159. package/lib/esm-es5/duet-scrollable_3.entry.js +0 -4
  1160. package/lib/esm-es5/duet-section-layout.entry.js +0 -4
  1161. package/lib/esm-es5/duet-select.entry.js +0 -4
  1162. package/lib/esm-es5/duet-shaped-image.entry.js +0 -4
  1163. package/lib/esm-es5/duet-show-more.entry.js +0 -4
  1164. package/lib/esm-es5/duet-slideout-lang.entry.js +0 -4
  1165. package/lib/esm-es5/duet-slideout-link.entry.js +0 -4
  1166. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +0 -4
  1167. package/lib/esm-es5/duet-slideout-panel.entry.js +0 -4
  1168. package/lib/esm-es5/duet-slideout.entry.js +0 -4
  1169. package/lib/esm-es5/duet-step_2.entry.js +0 -4
  1170. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +0 -4
  1171. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +0 -4
  1172. package/lib/esm-es5/duet-submenu-bar-item.entry.js +0 -4
  1173. package/lib/esm-es5/duet-submenu-bar-link.entry.js +0 -4
  1174. package/lib/esm-es5/duet-submenu-bar.entry.js +0 -4
  1175. package/lib/esm-es5/duet-textarea.entry.js +0 -4
  1176. package/lib/esm-es5/duet-toggle.entry.js +0 -4
  1177. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +0 -4
  1178. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +0 -4
  1179. package/lib/esm-es5/duet-toolbar-item.entry.js +0 -4
  1180. package/lib/esm-es5/duet-toolbar-link.entry.js +0 -4
  1181. package/lib/esm-es5/duet-toolbar.entry.js +0 -4
  1182. package/lib/esm-es5/duet-tooltip-button_2.entry.js +0 -4
  1183. package/lib/esm-es5/duet-tooltip.entry.js +0 -4
  1184. package/lib/esm-es5/duet-tray.entry.js +0 -4
  1185. package/lib/esm-es5/duet-upload-aria-status.entry.js +0 -4
  1186. package/lib/esm-es5/duet-upload-item.entry.js +0 -4
  1187. package/lib/esm-es5/duet-visually-hidden.entry.js +0 -4
  1188. package/lib/esm-es5/duet.js +0 -4
  1189. package/lib/esm-es5/errorcodes.utils-d9431251.js +0 -4
  1190. package/lib/esm-es5/floating-ui.dom.esm-ebc91b33.js +0 -4
  1191. package/lib/esm-es5/focus-utils-adcd9463.js +0 -4
  1192. package/lib/esm-es5/form-search-ea8e19ae.js +0 -4
  1193. package/lib/esm-es5/index-1d0b7c66.js +0 -5
  1194. package/lib/esm-es5/index.js +0 -3
  1195. package/lib/esm-es5/input-utils-85681162.js +0 -4
  1196. package/lib/esm-es5/is-internet-explorer-2c48f686.js +0 -4
  1197. package/lib/esm-es5/js-utils-9b9e0039.js +0 -4
  1198. package/lib/esm-es5/keyboard-utils-439bcc8b.js +0 -4
  1199. package/lib/esm-es5/label-ce262202.js +0 -4
  1200. package/lib/esm-es5/language-utils-14969cef.js +0 -4
  1201. package/lib/esm-es5/loader.js +0 -4
  1202. package/lib/esm-es5/slot-utils-4e5ed4eb.js +0 -4
  1203. package/lib/esm-es5/string-utils-192eb3c8.js +0 -4
  1204. package/lib/esm-es5/teleport-546f382d.js +0 -4
  1205. package/lib/esm-es5/themeable-component-860041c5.js +0 -4
  1206. package/lib/esm-es5/token-utils-b9ba8c5e.js +0 -4
  1207. package/lib/esm-es5/tokens-84fb2357.js +0 -4
  1208. package/lib/esm-es5/tokens.module-2d02f5ff.js +0 -4
  1209. package/lib/esm-es5/watch-options-e96ecd92.js +0 -4
  1210. package/lib/loader/package.json +0 -11
  1211. /package/lib/cjs/{body-scroll-dba42314.js → body-scroll-FWPe3_T_.js} +0 -0
  1212. /package/lib/cjs/{bodyScrollLock.es6-dd2d7d91.js → bodyScrollLock.es6-B2sCDud5.js} +0 -0
  1213. /package/lib/cjs/{create-id-1f8c438f.js → create-id-DtslnIOq.js} +0 -0
  1214. /package/lib/cjs/{input-utils-1096a2c5.js → input-utils-DUKdslOM.js} +0 -0
  1215. /package/lib/cjs/{is-internet-explorer-e7f58ebc.js → is-internet-explorer-BTLb_loH.js} +0 -0
  1216. /package/lib/cjs/{js-utils-92e24ba1.js → js-utils-hJ4A2edy.js} +0 -0
  1217. /package/lib/cjs/{string-utils-7b13c16e.js → string-utils-B35hEUBv.js} +0 -0
  1218. /package/lib/duet/{p-8354d1f1.js → p-B1B-PPrh.js} +0 -0
  1219. /package/lib/duet/{p-9e371678.js → p-BlUsLmbQ.js} +0 -0
  1220. /package/lib/duet/{p-fc09c464.js → p-C6CAT054.js} +0 -0
  1221. /package/lib/duet/{p-9c3c64b9.js → p-C6E9F6QT.js} +0 -0
  1222. /package/lib/duet/{p-df7874f9.js → p-CLDy7YaM.js} +0 -0
  1223. /package/lib/duet/{p-5e59e970.js → p-Cfr_DJqU.js} +0 -0
  1224. /package/lib/duet/{p-43b89e38.js → p-DxESMgwA.js} +0 -0
  1225. /package/lib/{dist-custom-elements/p-fc09c464.js → esm/body-scroll-C6CAT054.js} +0 -0
  1226. /package/lib/{dist-custom-elements/p-8354d1f1.js → esm/bodyScrollLock.es6-B1B-PPrh.js} +0 -0
  1227. /package/lib/{dist-custom-elements/p-5e59e970.js → esm/create-id-Cfr_DJqU.js} +0 -0
  1228. /package/lib/{dist-custom-elements/p-df7874f9.js → esm/input-utils-CLDy7YaM.js} +0 -0
  1229. /package/lib/{dist-custom-elements/p-43b89e38.js → esm/is-internet-explorer-DxESMgwA.js} +0 -0
  1230. /package/lib/{dist-custom-elements/p-9e371678.js → esm/js-utils-BlUsLmbQ.js} +0 -0
  1231. /package/lib/{dist-custom-elements/p-9c3c64b9.js → esm/string-utils-C6E9F6QT.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 };