@esri/calcite-components 1.0.0-beta.86 → 1.0.0-beta.89

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 (1069) hide show
  1. package/dist/calcite/calcite.css +1 -1
  2. package/dist/calcite/calcite.esm.js +2 -2
  3. package/dist/calcite/calcite.js +1 -1
  4. package/dist/calcite/index.esm.js +1 -1
  5. package/dist/calcite/{p-645da33b.entry.js → p-025d7d38.entry.js} +2 -2
  6. package/dist/calcite/p-02ea3541.entry.js +6 -0
  7. package/dist/calcite/{p-64abac3a.system.js → p-056f3ea3.system.js} +1 -1
  8. package/dist/calcite/p-06bfa7f4.js +6 -0
  9. package/dist/calcite/{p-ae579245.js → p-06fc9fd6.js} +2 -2
  10. package/dist/calcite/p-07ac44fd.system.entry.js +6 -0
  11. package/dist/calcite/{p-8e962e28.system.js → p-0b38cf5e.system.js} +1 -1
  12. package/dist/calcite/{p-b4afbab0.js → p-1003dcd4.js} +1 -1
  13. package/dist/calcite/p-106d714c.entry.js +6 -0
  14. package/dist/calcite/p-119c7d93.js +6 -0
  15. package/dist/calcite/p-1483d257.system.entry.js +6 -0
  16. package/dist/calcite/{p-8d7bcbbe.system.js → p-19974612.system.js} +1 -1
  17. package/dist/calcite/p-1d27e1b2.system.entry.js +6 -0
  18. package/dist/calcite/{p-f1b829e3.system.entry.js → p-1d528e3a.system.entry.js} +2 -2
  19. package/dist/calcite/{p-aa40e505.entry.js → p-1dd3c731.entry.js} +2 -2
  20. package/dist/calcite/p-1fca19bd.entry.js +6 -0
  21. package/dist/calcite/p-21263865.system.entry.js +6 -0
  22. package/dist/calcite/p-2172c393.entry.js +6 -0
  23. package/dist/calcite/p-224b93e9.entry.js +6 -0
  24. package/dist/calcite/p-251b6d61.js +6 -0
  25. package/dist/calcite/p-25287fea.entry.js +6 -0
  26. package/dist/calcite/p-25b0526d.entry.js +6 -0
  27. package/dist/calcite/p-2806e475.system.entry.js +6 -0
  28. package/dist/calcite/p-2a7f48fa.entry.js +6 -0
  29. package/dist/calcite/{p-bc9c9c9b.js → p-2ac8bf37.js} +2 -2
  30. package/dist/calcite/p-2c07319a.system.entry.js +6 -0
  31. package/dist/calcite/{p-336d62ab.js → p-2cb5dffe.js} +1 -1
  32. package/dist/calcite/p-2d1a1a9b.entry.js +6 -0
  33. package/dist/calcite/{p-694231fe.system.js → p-2d439f5c.system.js} +1 -1
  34. package/dist/calcite/p-2d63dd1d.system.entry.js +6 -0
  35. package/dist/calcite/p-2f430a5b.system.entry.js +6 -0
  36. package/dist/calcite/{p-4c3e960e.js → p-313ff745.js} +2 -2
  37. package/dist/calcite/{p-786ca76b.system.js → p-317e13b4.system.js} +1 -1
  38. package/dist/calcite/p-325d5fc2.system.entry.js +6 -0
  39. package/dist/calcite/p-3278a041.entry.js +6 -0
  40. package/dist/calcite/p-34dc627d.system.entry.js +6 -0
  41. package/dist/calcite/p-355c3b49.entry.js +6 -0
  42. package/dist/calcite/{p-bbbf6fcb.system.entry.js → p-36d43f5d.system.entry.js} +2 -2
  43. package/dist/calcite/{p-12bca4f1.system.js → p-376901f2.system.js} +1 -1
  44. package/dist/calcite/p-395d5d81.system.entry.js +6 -0
  45. package/dist/calcite/p-3a02a16e.system.entry.js +6 -0
  46. package/dist/calcite/p-3afd8219.js +6 -0
  47. package/dist/calcite/{p-4c62aae1.system.js → p-3f0fb908.system.js} +2 -2
  48. package/dist/calcite/p-40ef7538.system.entry.js +6 -0
  49. package/dist/calcite/p-44a164a5.system.entry.js +6 -0
  50. package/dist/calcite/p-44c827f6.entry.js +6 -0
  51. package/dist/calcite/p-44fa20c3.system.entry.js +6 -0
  52. package/dist/calcite/p-46fcc80b.system.js +6 -0
  53. package/dist/calcite/{p-4a1a8fac.entry.js → p-4dbd7d99.entry.js} +2 -2
  54. package/dist/calcite/p-4dfe59ba.entry.js +6 -0
  55. package/dist/calcite/{p-f8798ee9.system.js → p-4e7eccae.system.js} +2 -2
  56. package/dist/calcite/p-4ed94b0c.entry.js +6 -0
  57. package/dist/calcite/p-4f77ab07.system.entry.js +6 -0
  58. package/dist/calcite/{p-97fef747.system.entry.js → p-51b5c16b.system.entry.js} +2 -2
  59. package/dist/calcite/p-52a9c9ac.system.entry.js +6 -0
  60. package/dist/calcite/{p-7624aeb6.system.entry.js → p-5548019b.system.entry.js} +2 -2
  61. package/dist/calcite/p-5986be6a.system.entry.js +6 -0
  62. package/dist/calcite/p-5d19ba12.system.entry.js +6 -0
  63. package/dist/calcite/p-5e00d81b.entry.js +6 -0
  64. package/dist/calcite/p-5e67de08.system.entry.js +6 -0
  65. package/dist/calcite/{p-29c3c079.system.js → p-5f640381.system.js} +1 -1
  66. package/dist/calcite/{p-da045e5a.system.js → p-5fc1eb80.system.js} +2 -2
  67. package/dist/calcite/{p-85fab359.entry.js → p-61ac6255.entry.js} +2 -2
  68. package/dist/calcite/{p-cfbd1180.entry.js → p-65714f09.entry.js} +2 -2
  69. package/dist/calcite/{p-4178c522.system.entry.js → p-66031b70.system.entry.js} +2 -2
  70. package/dist/calcite/{p-8f789b45.js → p-662dc451.js} +1 -1
  71. package/dist/calcite/{p-4f206065.system.js → p-66f20a2d.system.js} +2 -2
  72. package/dist/calcite/p-68c2e792.system.entry.js +6 -0
  73. package/dist/calcite/p-696189d3.entry.js +6 -0
  74. package/dist/calcite/p-698aa1c5.system.entry.js +6 -0
  75. package/dist/calcite/p-6bc01f5f.system.entry.js +6 -0
  76. package/dist/calcite/{p-29c6691b.js → p-6c22ae2a.js} +1 -1
  77. package/dist/calcite/p-6f870d52.entry.js +6 -0
  78. package/dist/calcite/p-6ff70b1f.system.entry.js +6 -0
  79. package/dist/calcite/{p-e6ad54a7.js → p-71484298.js} +1 -1
  80. package/dist/calcite/p-738f23ab.system.entry.js +6 -0
  81. package/dist/calcite/p-75052b74.entry.js +6 -0
  82. package/dist/calcite/p-758a0313.entry.js +6 -0
  83. package/dist/calcite/{p-7f519a6f.js → p-76369b99.js} +2 -2
  84. package/dist/calcite/p-76dcc963.entry.js +6 -0
  85. package/dist/calcite/{p-8a1593db.system.js → p-794ef1c9.system.js} +1 -1
  86. package/dist/calcite/p-7a6d2cfd.js +6 -0
  87. package/dist/calcite/p-7a6e0092.entry.js +6 -0
  88. package/dist/calcite/p-7dbc88f0.system.entry.js +6 -0
  89. package/dist/calcite/p-7f536f37.system.entry.js +6 -0
  90. package/dist/calcite/p-7f5a9744.system.js +6 -0
  91. package/dist/calcite/p-7f7a2070.entry.js +6 -0
  92. package/dist/calcite/{p-6c4c7404.system.entry.js → p-81c838da.system.entry.js} +2 -2
  93. package/dist/calcite/{p-078aa8cf.system.js → p-83b7daee.system.js} +1 -1
  94. package/dist/calcite/p-85b04b39.system.entry.js +6 -0
  95. package/dist/calcite/{p-1f289404.entry.js → p-85c94bde.entry.js} +2 -2
  96. package/dist/calcite/p-85cfc2a7.system.js +6 -0
  97. package/dist/calcite/{p-741a874b.js → p-868413c4.js} +1 -1
  98. package/dist/calcite/{p-2ce0209d.system.js → p-8785912e.system.js} +1 -1
  99. package/dist/calcite/p-8871b3b2.system.entry.js +6 -0
  100. package/dist/calcite/p-89dcad49.entry.js +6 -0
  101. package/dist/calcite/p-8bfecbf1.system.entry.js +6 -0
  102. package/dist/calcite/p-8dfb2a49.system.entry.js +6 -0
  103. package/dist/calcite/{p-f00b1294.entry.js → p-8e262d98.entry.js} +2 -2
  104. package/dist/calcite/p-90124757.system.entry.js +6 -0
  105. package/dist/calcite/{p-2c78140e.js → p-902f9dfe.js} +1 -1
  106. package/dist/calcite/p-90413eb8.entry.js +6 -0
  107. package/dist/calcite/p-9279086f.entry.js +6 -0
  108. package/dist/calcite/{p-f70b3399.js → p-92d33ef8.js} +1 -1
  109. package/dist/calcite/p-93581d65.entry.js +6 -0
  110. package/dist/calcite/p-93e2c809.entry.js +6 -0
  111. package/dist/calcite/{p-660b54aa.system.js → p-94556892.system.js} +2 -2
  112. package/dist/calcite/{p-2efde396.js → p-948ed6bd.js} +2 -2
  113. package/dist/calcite/{p-17bb1d46.system.js → p-957ac2e6.system.js} +1 -1
  114. package/dist/calcite/p-995b06cf.entry.js +6 -0
  115. package/dist/calcite/p-9c682b55.system.entry.js +6 -0
  116. package/dist/calcite/p-9cff8f59.entry.js +6 -0
  117. package/dist/calcite/{p-9d82f6ba.system.js → p-9d398103.system.js} +2 -2
  118. package/dist/calcite/p-a15628f9.system.entry.js +6 -0
  119. package/dist/calcite/{p-e2a9bc3c.js → p-a1847f2c.js} +1 -1
  120. package/dist/calcite/{p-36183756.system.entry.js → p-a24254c4.system.entry.js} +2 -2
  121. package/dist/calcite/{p-bdbeb0b8.system.js → p-a5ff2716.system.js} +3 -3
  122. package/dist/calcite/{p-72ac5927.entry.js → p-a944dd17.entry.js} +2 -2
  123. package/dist/calcite/p-a9ec85ad.system.entry.js +6 -0
  124. package/dist/calcite/p-ab4d5eba.system.entry.js +6 -0
  125. package/dist/calcite/p-ac1d3121.entry.js +6 -0
  126. package/dist/calcite/p-acca3644.system.entry.js +6 -0
  127. package/dist/calcite/p-ad73fc52.system.entry.js +6 -0
  128. package/dist/calcite/p-ad85b30b.system.entry.js +6 -0
  129. package/dist/calcite/p-adb90152.system.entry.js +6 -0
  130. package/dist/calcite/{p-ba04d4a6.system.js → p-b1593fd6.system.js} +1 -1
  131. package/dist/calcite/p-b2d2e857.entry.js +6 -0
  132. package/dist/calcite/p-b4d58ff4.entry.js +6 -0
  133. package/dist/calcite/{p-9c3e33db.system.entry.js → p-b55e89ba.system.entry.js} +2 -2
  134. package/dist/calcite/p-b8ba96b7.system.entry.js +6 -0
  135. package/dist/calcite/p-b95e4b20.entry.js +6 -0
  136. package/dist/calcite/{p-9191aae7.system.js → p-ba1168ae.system.js} +1 -1
  137. package/dist/calcite/{p-52474c34.entry.js → p-ba4637e7.entry.js} +2 -2
  138. package/dist/calcite/p-bab1f14e.entry.js +6 -0
  139. package/dist/calcite/p-bd2be3f5.entry.js +6 -0
  140. package/dist/calcite/p-bd2e7fe8.system.entry.js +6 -0
  141. package/dist/calcite/{p-d313af3b.entry.js → p-be08dcbd.entry.js} +2 -2
  142. package/dist/calcite/{p-6e59222f.entry.js → p-c027aef8.entry.js} +2 -2
  143. package/dist/calcite/p-c190d30c.entry.js +6 -0
  144. package/dist/calcite/p-c92c4d1b.entry.js +6 -0
  145. package/dist/calcite/p-caa785ff.entry.js +6 -0
  146. package/dist/calcite/p-cbe1acb3.system.entry.js +6 -0
  147. package/dist/calcite/{p-a5318c00.entry.js → p-ce3424f9.entry.js} +2 -2
  148. package/dist/calcite/p-cf730667.entry.js +6 -0
  149. package/dist/calcite/{p-8e5b28c2.js → p-d0819cad.js} +1 -1
  150. package/dist/calcite/p-d1c1035b.system.entry.js +6 -0
  151. package/dist/calcite/p-d4542664.system.entry.js +6 -0
  152. package/dist/calcite/p-d59fd4ca.entry.js +6 -0
  153. package/dist/calcite/p-da136364.system.js +6 -0
  154. package/dist/calcite/p-dd30f3b3.system.entry.js +6 -0
  155. package/dist/calcite/p-dfe2dca8.system.entry.js +6 -0
  156. package/dist/calcite/{p-d713b734.system.js → p-e2759901.system.js} +1 -1
  157. package/dist/calcite/{p-33e02930.entry.js → p-e5211d71.entry.js} +2 -2
  158. package/dist/calcite/{p-94e059ed.system.js → p-e5403660.system.js} +2 -2
  159. package/dist/calcite/{p-038a1a34.js → p-e6c4aa14.js} +1 -1
  160. package/dist/calcite/{p-a2b65dca.entry.js → p-e6f222af.entry.js} +2 -2
  161. package/dist/calcite/{p-99306484.entry.js → p-e8128e9a.entry.js} +2 -2
  162. package/dist/calcite/p-e86b7099.entry.js +6 -0
  163. package/dist/calcite/{p-f54622d6.js → p-edf40370.js} +1 -1
  164. package/dist/calcite/{p-7bdab3f4.js → p-ee94abb7.js} +1 -1
  165. package/dist/calcite/p-efc7d73b.entry.js +6 -0
  166. package/dist/calcite/p-f29b59a6.entry.js +6 -0
  167. package/dist/calcite/{p-2f717afb.js → p-f33e8b92.js} +2 -2
  168. package/dist/calcite/{p-2f906310.system.entry.js → p-f5111eb8.system.entry.js} +2 -2
  169. package/dist/calcite/p-f6525305.system.entry.js +6 -0
  170. package/dist/calcite/p-ff119586.system.entry.js +6 -0
  171. package/dist/cjs/{ExpandToggle-62479ccb.js → ExpandToggle-20d1925e.js} +21 -10
  172. package/dist/cjs/{Heading-f792c5a6.js → Heading-855fbab6.js} +2 -2
  173. package/dist/cjs/{array-b72d7dd3.js → array-8cba1b68.js} +1 -1
  174. package/dist/cjs/calcite-accordion_2.cjs.entry.js +83 -44
  175. package/dist/cjs/calcite-action-bar.cjs.entry.js +29 -21
  176. package/dist/cjs/calcite-action-group.cjs.entry.js +11 -11
  177. package/dist/cjs/calcite-action-menu.cjs.entry.js +15 -32
  178. package/dist/cjs/calcite-action-pad.cjs.entry.js +12 -12
  179. package/dist/cjs/calcite-action.cjs.entry.js +7 -7
  180. package/dist/cjs/calcite-alert.cjs.entry.js +31 -38
  181. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  182. package/dist/cjs/calcite-block_2.cjs.entry.js +15 -11
  183. package/dist/cjs/calcite-button.cjs.entry.js +9 -9
  184. package/dist/cjs/calcite-card.cjs.entry.js +10 -10
  185. package/dist/cjs/calcite-checkbox.cjs.entry.js +8 -8
  186. package/dist/cjs/calcite-chip.cjs.entry.js +7 -7
  187. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +11 -11
  188. package/dist/cjs/calcite-combobox_3.cjs.entry.js +57 -82
  189. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +65 -67
  190. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +109 -142
  191. package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
  192. package/dist/cjs/calcite-filter.cjs.entry.js +8 -8
  193. package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
  194. package/dist/cjs/calcite-graph_2.cjs.entry.js +11 -11
  195. package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
  196. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  197. package/dist/cjs/calcite-inline-editable.cjs.entry.js +24 -24
  198. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +100 -95
  199. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  200. package/dist/cjs/calcite-input-number.cjs.entry.js +14 -20
  201. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +18 -20
  202. package/dist/cjs/calcite-input.cjs.entry.js +14 -20
  203. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  204. package/dist/cjs/calcite-link.cjs.entry.js +6 -6
  205. package/dist/cjs/calcite-list_3.cjs.entry.js +11 -11
  206. package/dist/cjs/calcite-loader.cjs.entry.js +9 -5
  207. package/dist/cjs/calcite-modal.cjs.entry.js +44 -16
  208. package/dist/cjs/calcite-notice.cjs.entry.js +29 -10
  209. package/dist/cjs/calcite-option_3.cjs.entry.js +11 -11
  210. package/dist/cjs/calcite-pagination.cjs.entry.js +6 -6
  211. package/dist/cjs/calcite-panel.cjs.entry.js +44 -23
  212. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +14 -14
  213. package/dist/cjs/calcite-popover_2.cjs.entry.js +66 -80
  214. package/dist/cjs/calcite-progress.cjs.entry.js +3 -3
  215. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
  216. package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
  217. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +9 -9
  218. package/dist/cjs/calcite-rating.cjs.entry.js +9 -9
  219. package/dist/cjs/calcite-scrim.cjs.entry.js +3 -3
  220. package/dist/cjs/calcite-shell_3.cjs.entry.js +13 -11
  221. package/dist/cjs/calcite-sortable-list.cjs.entry.js +6 -6
  222. package/dist/cjs/calcite-split-button.cjs.entry.js +7 -7
  223. package/dist/cjs/calcite-stepper_2.cjs.entry.js +57 -91
  224. package/dist/cjs/calcite-switch.cjs.entry.js +11 -13
  225. package/dist/cjs/calcite-tab_4.cjs.entry.js +61 -61
  226. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -6
  227. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  228. package/dist/cjs/calcite-tip_3.cjs.entry.js +12 -12
  229. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +31 -64
  230. package/dist/cjs/calcite-tree_2.cjs.entry.js +28 -28
  231. package/dist/cjs/calcite-value-list_2.cjs.entry.js +13 -13
  232. package/dist/cjs/calcite.cjs.js +3 -3
  233. package/dist/cjs/{conditionalSlot-d1eb82ce.js → conditionalSlot-d7d41e5e.js} +3 -3
  234. package/dist/cjs/{debounce-d2139fc6.js → debounce-c6535474.js} +1 -1
  235. package/dist/cjs/{dom-99c1b44d.js → dom-63f7a393.js} +2 -2
  236. package/dist/cjs/floating-ui-1e2c4828.js +1620 -0
  237. package/dist/cjs/{forIn-9ac96598.js → forIn-31c5151b.js} +2 -2
  238. package/dist/cjs/{form-4d1ef8c2.js → form-2fb0263d.js} +3 -3
  239. package/dist/cjs/{guid-609f1c0d.js → guid-bfda150b.js} +1 -1
  240. package/dist/cjs/{index-68ddfe8e.js → index-aa58cebb.js} +1 -1
  241. package/dist/cjs/index.cjs.js +1 -1
  242. package/dist/cjs/{interactive-d1ef280c.js → interactive-c148950b.js} +1 -1
  243. package/dist/cjs/{interfaces-a3bdc804.js → interfaces-78d94377.js} +1 -1
  244. package/dist/cjs/{key-017aa5b0.js → key-790c3a9c.js} +1 -1
  245. package/dist/cjs/{label-e24023c6.js → label-b3ded17f.js} +2 -2
  246. package/dist/cjs/loader.cjs.js +3 -3
  247. package/dist/cjs/{locale-2d8feb15.js → locale-20b4a0d8.js} +2 -2
  248. package/dist/cjs/{math-7fe3e64d.js → math-9fec6f1e.js} +1 -1
  249. package/dist/cjs/{observers-aa7367df.js → observers-b52c783e.js} +1 -1
  250. package/dist/cjs/{resources-0c0019fb.js → resources-03c28605.js} +5 -5
  251. package/dist/cjs/{resources-b4ed54b9.js → resources-14e7a312.js} +1 -1
  252. package/dist/cjs/{resources-9aaa6e0a.js → resources-76621c8a.js} +3 -3
  253. package/dist/cjs/{resources-a7f0af25.js → resources-c0beb775.js} +1 -1
  254. package/dist/cjs/{sortable.esm-6dc17794.js → sortable.esm-87003d53.js} +1 -1
  255. package/dist/cjs/{utils-53d98078.js → utils-32566c58.js} +1 -1
  256. package/dist/collection/components/accordion/accordion.css +3 -3
  257. package/dist/collection/components/accordion/accordion.js +25 -20
  258. package/dist/collection/components/accordion/interfaces.js +1 -1
  259. package/dist/collection/components/accordion-item/accordion-item.css +69 -66
  260. package/dist/collection/components/accordion-item/accordion-item.js +92 -48
  261. package/dist/collection/components/accordion-item/interfaces.js +6 -0
  262. package/dist/collection/components/accordion-item/resources.js +21 -0
  263. package/dist/collection/components/action/action.css +24 -22
  264. package/dist/collection/components/action/action.js +3 -3
  265. package/dist/collection/components/action/resources.js +1 -1
  266. package/dist/collection/components/action-bar/action-bar.css +35 -9
  267. package/dist/collection/components/action-bar/action-bar.js +48 -14
  268. package/dist/collection/components/action-bar/resources.js +1 -1
  269. package/dist/collection/components/action-bar/utils.js +16 -6
  270. package/dist/collection/components/action-group/action-group.css +2 -2
  271. package/dist/collection/components/action-group/action-group.js +5 -5
  272. package/dist/collection/components/action-group/resources.js +1 -1
  273. package/dist/collection/components/action-menu/action-menu.css +3 -3
  274. package/dist/collection/components/action-menu/action-menu.js +25 -37
  275. package/dist/collection/components/action-menu/resources.js +1 -1
  276. package/dist/collection/components/action-pad/action-pad.css +16 -13
  277. package/dist/collection/components/action-pad/action-pad.js +5 -5
  278. package/dist/collection/components/action-pad/resources.js +1 -1
  279. package/dist/collection/components/alert/alert.css +41 -49
  280. package/dist/collection/components/alert/alert.js +52 -70
  281. package/dist/collection/components/alert/interfaces.js +1 -1
  282. package/dist/collection/components/alert/resources.js +1 -1
  283. package/dist/collection/components/avatar/avatar.css +11 -11
  284. package/dist/collection/components/avatar/avatar.js +1 -1
  285. package/dist/collection/components/avatar/utils.js +1 -1
  286. package/dist/collection/components/block/block.css +15 -18
  287. package/dist/collection/components/block/block.js +12 -5
  288. package/dist/collection/components/block/resources.js +1 -1
  289. package/dist/collection/components/block-section/block-section.css +11 -17
  290. package/dist/collection/components/block-section/block-section.js +3 -3
  291. package/dist/collection/components/block-section/interfaces.js +1 -1
  292. package/dist/collection/components/block-section/resources.js +1 -1
  293. package/dist/collection/components/button/button.css +37 -37
  294. package/dist/collection/components/button/button.js +1 -1
  295. package/dist/collection/components/button/interfaces.js +1 -1
  296. package/dist/collection/components/button/resources.js +1 -1
  297. package/dist/collection/components/card/card.css +22 -23
  298. package/dist/collection/components/card/card.js +6 -6
  299. package/dist/collection/components/card/resources.js +1 -1
  300. package/dist/collection/components/checkbox/checkbox.css +12 -14
  301. package/dist/collection/components/checkbox/checkbox.js +7 -7
  302. package/dist/collection/components/chip/chip.css +23 -21
  303. package/dist/collection/components/chip/chip.js +9 -4
  304. package/dist/collection/components/chip/interfaces.js +1 -1
  305. package/dist/collection/components/chip/resources.js +1 -1
  306. package/dist/collection/components/color-picker/color-picker.css +32 -29
  307. package/dist/collection/components/color-picker/color-picker.js +5 -5
  308. package/dist/collection/components/color-picker/interfaces.js +1 -1
  309. package/dist/collection/components/color-picker/resources.js +1 -1
  310. package/dist/collection/components/color-picker/utils.js +1 -1
  311. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +5 -7
  312. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +3 -3
  313. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  314. package/dist/collection/components/color-picker-swatch/color-picker-swatch.css +12 -15
  315. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  316. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  317. package/dist/collection/components/combobox/combobox.css +44 -46
  318. package/dist/collection/components/combobox/combobox.js +76 -110
  319. package/dist/collection/components/combobox/interfaces.js +1 -1
  320. package/dist/collection/components/combobox/resources.js +1 -1
  321. package/dist/collection/components/combobox/utils.js +1 -1
  322. package/dist/collection/components/combobox-item/combobox-item.css +17 -14
  323. package/dist/collection/components/combobox-item/combobox-item.js +9 -4
  324. package/dist/collection/components/combobox-item/resources.js +1 -1
  325. package/dist/collection/components/combobox-item-group/combobox-item-group.css +9 -9
  326. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  327. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  328. package/dist/collection/components/date-picker/date-picker.css +5 -5
  329. package/dist/collection/components/date-picker/date-picker.js +14 -14
  330. package/dist/collection/components/date-picker/interfaces.js +1 -1
  331. package/dist/collection/components/date-picker/resources.js +1 -1
  332. package/dist/collection/components/date-picker/utils.js +1 -1
  333. package/dist/collection/components/date-picker-day/date-picker-day.css +23 -28
  334. package/dist/collection/components/date-picker-day/date-picker-day.js +8 -10
  335. package/dist/collection/components/date-picker-month/date-picker-month.css +14 -24
  336. package/dist/collection/components/date-picker-month/date-picker-month.js +41 -29
  337. package/dist/collection/components/date-picker-month-header/date-picker-month-header.css +23 -33
  338. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +20 -20
  339. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  340. package/dist/collection/components/dropdown/dropdown.css +19 -18
  341. package/dist/collection/components/dropdown/dropdown.js +128 -174
  342. package/dist/collection/components/dropdown/interfaces.js +1 -1
  343. package/dist/collection/components/dropdown/resources.js +1 -1
  344. package/dist/collection/components/dropdown-group/dropdown-group.css +4 -4
  345. package/dist/collection/components/dropdown-group/dropdown-group.js +10 -5
  346. package/dist/collection/components/dropdown-group/interfaces.js +1 -1
  347. package/dist/collection/components/dropdown-group/resources.js +1 -1
  348. package/dist/collection/components/dropdown-item/dropdown-item.css +7 -13
  349. package/dist/collection/components/dropdown-item/dropdown-item.js +18 -13
  350. package/dist/collection/components/dropdown-item/resources.js +1 -1
  351. package/dist/collection/components/fab/fab.css +7 -6
  352. package/dist/collection/components/fab/fab.js +1 -1
  353. package/dist/collection/components/fab/resources.js +1 -1
  354. package/dist/collection/components/filter/filter.css +16 -18
  355. package/dist/collection/components/filter/filter.js +1 -1
  356. package/dist/collection/components/filter/resources.js +1 -1
  357. package/dist/collection/components/flow/flow.css +4 -4
  358. package/dist/collection/components/flow/flow.js +1 -1
  359. package/dist/collection/components/flow/interfaces.js +1 -1
  360. package/dist/collection/components/flow/resources.js +1 -1
  361. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  362. package/dist/collection/components/functional/Heading.js +1 -1
  363. package/dist/collection/components/graph/graph.css +4 -4
  364. package/dist/collection/components/graph/graph.js +1 -1
  365. package/dist/collection/components/graph/interfaces.js +1 -1
  366. package/dist/collection/components/graph/util.js +1 -1
  367. package/dist/collection/components/handle/handle.css +3 -2
  368. package/dist/collection/components/handle/handle.js +9 -4
  369. package/dist/collection/components/handle/resources.js +1 -1
  370. package/dist/collection/components/icon/icon.css +13 -13
  371. package/dist/collection/components/icon/icon.js +1 -1
  372. package/dist/collection/components/icon/resources.js +1 -1
  373. package/dist/collection/components/icon/utils.js +1 -1
  374. package/dist/collection/components/inline-editable/inline-editable.css +12 -11
  375. package/dist/collection/components/inline-editable/inline-editable.js +19 -19
  376. package/dist/collection/components/inline-editable/resources.js +1 -1
  377. package/dist/collection/components/input/input.css +74 -96
  378. package/dist/collection/components/input/input.js +15 -16
  379. package/dist/collection/components/input/interfaces.js +1 -1
  380. package/dist/collection/components/input/resources.js +1 -1
  381. package/dist/collection/components/input-date-picker/input-date-picker.css +70 -73
  382. package/dist/collection/components/input-date-picker/input-date-picker.js +162 -110
  383. package/dist/collection/components/input-date-picker/resources.js +1 -1
  384. package/dist/collection/components/input-message/input-message.css +7 -7
  385. package/dist/collection/components/input-message/input-message.js +1 -1
  386. package/dist/collection/components/input-message/interfaces.js +1 -1
  387. package/dist/collection/components/input-number/input-number.css +47 -55
  388. package/dist/collection/components/input-number/input-number.js +15 -16
  389. package/dist/collection/components/input-number/interfaces.js +1 -1
  390. package/dist/collection/components/input-number/resources.js +1 -1
  391. package/dist/collection/components/input-time-picker/input-time-picker.css +9 -11
  392. package/dist/collection/components/input-time-picker/input-time-picker.js +12 -20
  393. package/dist/collection/components/interfaces.js +1 -1
  394. package/dist/collection/components/label/label.css +15 -15
  395. package/dist/collection/components/label/label.js +1 -1
  396. package/dist/collection/components/label/resources.js +1 -1
  397. package/dist/collection/components/link/link.css +14 -13
  398. package/dist/collection/components/link/link.js +1 -1
  399. package/dist/collection/components/list/list.css +8 -7
  400. package/dist/collection/components/list/list.js +1 -1
  401. package/dist/collection/components/list/resources.js +1 -1
  402. package/dist/collection/components/list-item/list-item.css +12 -15
  403. package/dist/collection/components/list-item/list-item.js +1 -1
  404. package/dist/collection/components/list-item/resources.js +1 -1
  405. package/dist/collection/components/list-item-group/list-item-group.css +2 -2
  406. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  407. package/dist/collection/components/list-item-group/resources.js +1 -1
  408. package/dist/collection/components/loader/loader.css +27 -31
  409. package/dist/collection/components/loader/loader.js +10 -3
  410. package/dist/collection/components/modal/interfaces.js +1 -1
  411. package/dist/collection/components/modal/modal.css +77 -70
  412. package/dist/collection/components/modal/modal.js +78 -19
  413. package/dist/collection/components/modal/resources.js +1 -1
  414. package/dist/collection/components/notice/notice.css +26 -34
  415. package/dist/collection/components/notice/notice.js +52 -8
  416. package/dist/collection/components/notice/resources.js +1 -1
  417. package/dist/collection/components/option/option.css +1 -1
  418. package/dist/collection/components/option/option.js +3 -3
  419. package/dist/collection/components/option-group/option-group.css +1 -1
  420. package/dist/collection/components/option-group/option-group.js +3 -3
  421. package/dist/collection/components/pagination/pagination.css +10 -14
  422. package/dist/collection/components/pagination/pagination.js +1 -1
  423. package/dist/collection/components/pagination/resources.js +1 -1
  424. package/dist/collection/components/panel/panel.css +39 -45
  425. package/dist/collection/components/panel/panel.js +51 -26
  426. package/dist/collection/components/panel/resources.js +1 -1
  427. package/dist/collection/components/pick-list/pick-list.css +13 -12
  428. package/dist/collection/components/pick-list/pick-list.js +1 -1
  429. package/dist/collection/components/pick-list/resources.js +1 -1
  430. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  431. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  432. package/dist/collection/components/pick-list-group/pick-list-group.css +5 -7
  433. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  434. package/dist/collection/components/pick-list-group/resources.js +1 -1
  435. package/dist/collection/components/pick-list-item/pick-list-item.css +15 -17
  436. package/dist/collection/components/pick-list-item/pick-list-item.js +2 -2
  437. package/dist/collection/components/pick-list-item/resources.js +1 -1
  438. package/dist/collection/components/popover/PopoverManager.js +1 -1
  439. package/dist/collection/components/popover/popover.css +29 -34
  440. package/dist/collection/components/popover/popover.js +104 -88
  441. package/dist/collection/components/popover/resources.js +1 -1
  442. package/dist/collection/components/popover-manager/popover-manager.css +1 -1
  443. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  444. package/dist/collection/components/progress/progress.css +9 -11
  445. package/dist/collection/components/progress/progress.js +1 -1
  446. package/dist/collection/components/radio-button/radio-button.css +15 -17
  447. package/dist/collection/components/radio-button/radio-button.js +10 -10
  448. package/dist/collection/components/radio-button/resources.js +1 -1
  449. package/dist/collection/components/radio-button-group/radio-button-group.css +2 -2
  450. package/dist/collection/components/radio-button-group/radio-button-group.js +3 -3
  451. package/dist/collection/components/radio-group/interfaces.js +1 -1
  452. package/dist/collection/components/radio-group/radio-group.css +15 -17
  453. package/dist/collection/components/radio-group/radio-group.js +1 -1
  454. package/dist/collection/components/radio-group-item/radio-group-item.css +7 -13
  455. package/dist/collection/components/radio-group-item/radio-group-item.js +3 -3
  456. package/dist/collection/components/radio-group-item/resources.js +1 -1
  457. package/dist/collection/components/rating/rating.css +18 -20
  458. package/dist/collection/components/rating/rating.js +1 -1
  459. package/dist/collection/components/rating/resources.js +1 -1
  460. package/dist/collection/components/scrim/resources.js +1 -1
  461. package/dist/collection/components/scrim/scrim.css +5 -11
  462. package/dist/collection/components/scrim/scrim.js +1 -1
  463. package/dist/collection/components/select/resources.js +1 -1
  464. package/dist/collection/components/select/select.css +22 -28
  465. package/dist/collection/components/select/select.js +1 -1
  466. package/dist/collection/components/shell/resources.js +3 -1
  467. package/dist/collection/components/shell/shell.css +21 -24
  468. package/dist/collection/components/shell/shell.js +7 -3
  469. package/dist/collection/components/shell-center-row/resources.js +1 -1
  470. package/dist/collection/components/shell-center-row/shell-center-row.css +11 -13
  471. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  472. package/dist/collection/components/shell-panel/resources.js +1 -1
  473. package/dist/collection/components/shell-panel/shell-panel.css +17 -20
  474. package/dist/collection/components/shell-panel/shell-panel.js +3 -3
  475. package/dist/collection/components/slider/slider.css +43 -44
  476. package/dist/collection/components/slider/slider.js +7 -7
  477. package/dist/collection/components/sortable-list/resources.js +1 -1
  478. package/dist/collection/components/sortable-list/sortable-list.css +6 -5
  479. package/dist/collection/components/sortable-list/sortable-list.js +3 -3
  480. package/dist/collection/components/split-button/resources.js +1 -1
  481. package/dist/collection/components/split-button/split-button.css +17 -18
  482. package/dist/collection/components/split-button/split-button.js +21 -11
  483. package/dist/collection/components/stepper/interfaces.js +1 -1
  484. package/dist/collection/components/stepper/stepper.css +6 -9
  485. package/dist/collection/components/stepper/stepper.js +26 -84
  486. package/dist/collection/components/stepper-item/stepper-item.css +103 -35
  487. package/dist/collection/components/stepper-item/stepper-item.js +51 -31
  488. package/dist/collection/components/switch/switch.css +28 -30
  489. package/dist/collection/components/switch/switch.js +12 -9
  490. package/dist/collection/components/tab/interfaces.js +1 -1
  491. package/dist/collection/components/tab/tab.css +10 -13
  492. package/dist/collection/components/tab/tab.js +4 -4
  493. package/dist/collection/components/tab-nav/tab-nav.css +24 -25
  494. package/dist/collection/components/tab-nav/tab-nav.js +29 -29
  495. package/dist/collection/components/tab-title/tab-title.css +41 -50
  496. package/dist/collection/components/tab-title/tab-title.js +8 -8
  497. package/dist/collection/components/tabs/interfaces.js +1 -1
  498. package/dist/collection/components/tabs/resources.js +1 -1
  499. package/dist/collection/components/tabs/tabs.css +21 -21
  500. package/dist/collection/components/tabs/tabs.js +20 -20
  501. package/dist/collection/components/tile/resources.js +1 -1
  502. package/dist/collection/components/tile/tile.css +12 -11
  503. package/dist/collection/components/tile/tile.js +1 -1
  504. package/dist/collection/components/tile-select/interfaces.js +1 -1
  505. package/dist/collection/components/tile-select/resources.js +1 -1
  506. package/dist/collection/components/tile-select/tile-select.css +14 -13
  507. package/dist/collection/components/tile-select/tile-select.js +3 -3
  508. package/dist/collection/components/tile-select-group/interfaces.js +1 -1
  509. package/dist/collection/components/tile-select-group/tile-select-group.css +10 -9
  510. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  511. package/dist/collection/components/time-picker/resources.js +1 -1
  512. package/dist/collection/components/time-picker/time-picker.css +11 -17
  513. package/dist/collection/components/time-picker/time-picker.js +1 -1
  514. package/dist/collection/components/tip/resources.js +1 -1
  515. package/dist/collection/components/tip/tip.css +12 -15
  516. package/dist/collection/components/tip/tip.js +3 -3
  517. package/dist/collection/components/tip-group/tip-group.css +2 -3
  518. package/dist/collection/components/tip-group/tip-group.js +1 -1
  519. package/dist/collection/components/tip-manager/resources.js +1 -1
  520. package/dist/collection/components/tip-manager/tip-manager.css +11 -16
  521. package/dist/collection/components/tip-manager/tip-manager.js +7 -7
  522. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  523. package/dist/collection/components/tooltip/resources.js +1 -1
  524. package/dist/collection/components/tooltip/tooltip.css +25 -30
  525. package/dist/collection/components/tooltip/tooltip.js +35 -66
  526. package/dist/collection/components/tooltip-manager/tooltip-manager.css +1 -1
  527. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  528. package/dist/collection/components/tree/interfaces.js +1 -1
  529. package/dist/collection/components/tree/tree.css +1 -1
  530. package/dist/collection/components/tree/tree.js +12 -12
  531. package/dist/collection/components/tree-item/interfaces.js +1 -1
  532. package/dist/collection/components/tree-item/resources.js +1 -1
  533. package/dist/collection/components/tree-item/tree-item.css +12 -11
  534. package/dist/collection/components/tree-item/tree-item.js +10 -10
  535. package/dist/collection/components/value-list/interfaces.js +1 -1
  536. package/dist/collection/components/value-list/resources.js +1 -1
  537. package/dist/collection/components/value-list/utils.js +1 -1
  538. package/dist/collection/components/value-list/value-list.css +12 -11
  539. package/dist/collection/components/value-list/value-list.js +1 -1
  540. package/dist/collection/components/value-list-item/resources.js +1 -1
  541. package/dist/collection/components/value-list-item/value-list-item.css +12 -13
  542. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  543. package/dist/collection/utils/array.js +1 -1
  544. package/dist/collection/utils/conditionalSlot.js +1 -1
  545. package/dist/collection/utils/date.js +1 -1
  546. package/dist/collection/utils/dom.js +1 -1
  547. package/dist/collection/utils/filter.js +1 -1
  548. package/dist/collection/utils/floating-ui.js +229 -0
  549. package/dist/collection/utils/form.js +1 -1
  550. package/dist/collection/utils/globalAttributes.js +1 -1
  551. package/dist/collection/utils/guid.js +1 -1
  552. package/dist/collection/utils/interactive.js +1 -1
  553. package/dist/collection/utils/key.js +1 -1
  554. package/dist/collection/utils/label.js +1 -1
  555. package/dist/collection/utils/locale.js +1 -1
  556. package/dist/collection/utils/math.js +1 -1
  557. package/dist/collection/utils/number.js +1 -1
  558. package/dist/collection/utils/observers.js +1 -1
  559. package/dist/collection/utils/openCloseComponent.js +1 -1
  560. package/dist/collection/utils/resources.js +1 -1
  561. package/dist/collection/utils/time.js +2 -2
  562. package/dist/components/ExpandToggle.js +18 -8
  563. package/dist/components/Heading.js +1 -1
  564. package/dist/components/action-group.js +5 -5
  565. package/dist/components/action-menu.js +9 -26
  566. package/dist/components/action.js +2 -2
  567. package/dist/components/array.js +1 -1
  568. package/dist/components/button.js +2 -2
  569. package/dist/components/calcite-accordion-item.js +63 -26
  570. package/dist/components/calcite-accordion.js +18 -18
  571. package/dist/components/calcite-action-bar.js +23 -14
  572. package/dist/components/calcite-action-group.js +1 -1
  573. package/dist/components/calcite-action-menu.js +1 -1
  574. package/dist/components/calcite-action-pad.js +5 -5
  575. package/dist/components/calcite-action.js +1 -1
  576. package/dist/components/calcite-alert.js +28 -35
  577. package/dist/components/calcite-avatar.js +2 -2
  578. package/dist/components/calcite-block-section.js +3 -3
  579. package/dist/components/calcite-block.js +8 -4
  580. package/dist/components/calcite-button.js +1 -1
  581. package/dist/components/calcite-card.js +6 -6
  582. package/dist/components/calcite-checkbox.js +1 -1
  583. package/dist/components/calcite-chip.js +1 -1
  584. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  585. package/dist/components/calcite-color-picker-swatch.js +1 -1
  586. package/dist/components/calcite-color-picker.js +3 -3
  587. package/dist/components/calcite-combobox-item-group.js +2 -2
  588. package/dist/components/calcite-combobox-item.js +3 -3
  589. package/dist/components/calcite-combobox.js +44 -69
  590. package/dist/components/calcite-date-picker-day.js +1 -1
  591. package/dist/components/calcite-date-picker-month-header.js +1 -1
  592. package/dist/components/calcite-date-picker-month.js +1 -1
  593. package/dist/components/calcite-date-picker.js +1 -1
  594. package/dist/components/calcite-dropdown-group.js +3 -3
  595. package/dist/components/calcite-dropdown-item.js +9 -9
  596. package/dist/components/calcite-dropdown.js +1 -1
  597. package/dist/components/calcite-fab.js +2 -2
  598. package/dist/components/calcite-filter.js +1 -1
  599. package/dist/components/calcite-flow.js +2 -2
  600. package/dist/components/calcite-graph.js +1 -1
  601. package/dist/components/calcite-handle.js +1 -1
  602. package/dist/components/calcite-icon.js +1 -1
  603. package/dist/components/calcite-inline-editable.js +19 -19
  604. package/dist/components/calcite-input-date-picker.js +90 -84
  605. package/dist/components/calcite-input-message.js +2 -2
  606. package/dist/components/calcite-input-number.js +5 -11
  607. package/dist/components/calcite-input-time-picker.js +9 -11
  608. package/dist/components/calcite-input.js +1 -1
  609. package/dist/components/calcite-label.js +1 -1
  610. package/dist/components/calcite-link.js +1 -1
  611. package/dist/components/calcite-list-item-group.js +2 -2
  612. package/dist/components/calcite-list-item.js +3 -3
  613. package/dist/components/calcite-list.js +2 -2
  614. package/dist/components/calcite-loader.js +1 -1
  615. package/dist/components/calcite-modal.js +41 -13
  616. package/dist/components/calcite-notice.js +25 -5
  617. package/dist/components/calcite-option-group.js +2 -2
  618. package/dist/components/calcite-option.js +2 -2
  619. package/dist/components/calcite-pagination.js +2 -2
  620. package/dist/components/calcite-panel.js +39 -18
  621. package/dist/components/calcite-pick-list-group.js +3 -3
  622. package/dist/components/calcite-pick-list-item.js +1 -1
  623. package/dist/components/calcite-pick-list.js +2 -2
  624. package/dist/components/calcite-popover-manager.js +2 -2
  625. package/dist/components/calcite-popover.js +1 -1
  626. package/dist/components/calcite-progress.js +1 -1
  627. package/dist/components/calcite-radio-button-group.js +2 -2
  628. package/dist/components/calcite-radio-button.js +4 -4
  629. package/dist/components/calcite-radio-group-item.js +2 -2
  630. package/dist/components/calcite-radio-group.js +3 -3
  631. package/dist/components/calcite-rating.js +2 -2
  632. package/dist/components/calcite-scrim.js +1 -1
  633. package/dist/components/calcite-select.js +2 -2
  634. package/dist/components/calcite-shell-center-row.js +3 -3
  635. package/dist/components/calcite-shell-panel.js +3 -3
  636. package/dist/components/calcite-shell.js +6 -4
  637. package/dist/components/calcite-slider.js +2 -2
  638. package/dist/components/calcite-sortable-list.js +2 -2
  639. package/dist/components/calcite-split-button.js +5 -5
  640. package/dist/components/calcite-stepper-item.js +31 -28
  641. package/dist/components/calcite-stepper.js +26 -62
  642. package/dist/components/calcite-switch.js +1 -1
  643. package/dist/components/calcite-tab-nav.js +1 -1
  644. package/dist/components/calcite-tab-title.js +1 -1
  645. package/dist/components/calcite-tab.js +1 -1
  646. package/dist/components/calcite-tabs.js +1 -1
  647. package/dist/components/calcite-tile-select-group.js +2 -2
  648. package/dist/components/calcite-tile-select.js +2 -2
  649. package/dist/components/calcite-tile.js +1 -1
  650. package/dist/components/calcite-time-picker.js +1 -1
  651. package/dist/components/calcite-tip-group.js +2 -2
  652. package/dist/components/calcite-tip-manager.js +5 -5
  653. package/dist/components/calcite-tip.js +3 -3
  654. package/dist/components/calcite-tooltip-manager.js +2 -2
  655. package/dist/components/calcite-tooltip.js +26 -59
  656. package/dist/components/calcite-tree-item.js +12 -12
  657. package/dist/components/calcite-tree.js +13 -13
  658. package/dist/components/calcite-value-list-item.js +3 -3
  659. package/dist/components/calcite-value-list.js +2 -2
  660. package/dist/components/checkbox.js +2 -2
  661. package/dist/components/chip.js +3 -3
  662. package/dist/components/color-picker-hex-input.js +2 -2
  663. package/dist/components/color-picker-swatch.js +2 -2
  664. package/dist/components/conditionalSlot.js +1 -1
  665. package/dist/components/date-picker-day.js +6 -8
  666. package/dist/components/date-picker-month-header.js +21 -21
  667. package/dist/components/date-picker-month.js +19 -19
  668. package/dist/components/date-picker.js +15 -15
  669. package/dist/components/date.js +1 -1
  670. package/dist/components/debounce.js +1 -1
  671. package/dist/components/dom.js +2 -2
  672. package/dist/components/dropdown.js +93 -125
  673. package/dist/components/filter.js +2 -2
  674. package/dist/components/floating-ui.js +1612 -0
  675. package/dist/components/forIn.js +1 -1
  676. package/dist/components/form.js +1 -1
  677. package/dist/components/graph.js +2 -2
  678. package/dist/components/guid.js +1 -1
  679. package/dist/components/handle.js +2 -2
  680. package/dist/components/icon.js +3 -3
  681. package/dist/components/index.js +1 -1
  682. package/dist/components/input.js +5 -11
  683. package/dist/components/interactive.js +1 -1
  684. package/dist/components/interfaces.js +1 -1
  685. package/dist/components/interfaces2.js +1 -1
  686. package/dist/components/key.js +1 -1
  687. package/dist/components/label.js +1 -1
  688. package/dist/components/label2.js +2 -2
  689. package/dist/components/link.js +3 -3
  690. package/dist/components/loader.js +7 -3
  691. package/dist/components/locale.js +1 -1
  692. package/dist/components/math.js +1 -1
  693. package/dist/components/observers.js +1 -1
  694. package/dist/components/pick-list-item.js +3 -3
  695. package/dist/components/popover.js +57 -71
  696. package/dist/components/progress.js +2 -2
  697. package/dist/components/resources.js +1 -1
  698. package/dist/components/resources2.js +1 -1
  699. package/dist/components/resources3.js +1 -1
  700. package/dist/components/scrim.js +2 -2
  701. package/dist/components/shared-list-render.js +2 -2
  702. package/dist/components/sortable.esm.js +1 -1
  703. package/dist/components/switch.js +5 -7
  704. package/dist/components/tab-nav.js +31 -31
  705. package/dist/components/tab-title.js +6 -6
  706. package/dist/components/tab.js +3 -3
  707. package/dist/components/tabs.js +21 -21
  708. package/dist/components/tile.js +3 -3
  709. package/dist/components/time-picker.js +3 -3
  710. package/dist/components/utils.js +1 -1
  711. package/dist/components/utils2.js +1 -1
  712. package/dist/custom-elements/index.js +2314 -2613
  713. package/dist/esm/{ExpandToggle-7076d600.js → ExpandToggle-131c7dcb.js} +21 -11
  714. package/dist/esm/{Heading-5ccb3b17.js → Heading-93ced199.js} +2 -2
  715. package/dist/esm/{array-48f23287.js → array-5d7e7abd.js} +1 -1
  716. package/dist/esm/calcite-accordion_2.entry.js +83 -44
  717. package/dist/esm/calcite-action-bar.entry.js +29 -21
  718. package/dist/esm/calcite-action-group.entry.js +11 -11
  719. package/dist/esm/calcite-action-menu.entry.js +15 -32
  720. package/dist/esm/calcite-action-pad.entry.js +12 -12
  721. package/dist/esm/calcite-action.entry.js +7 -7
  722. package/dist/esm/calcite-alert.entry.js +31 -38
  723. package/dist/esm/calcite-avatar.entry.js +6 -6
  724. package/dist/esm/calcite-block_2.entry.js +15 -11
  725. package/dist/esm/calcite-button.entry.js +9 -9
  726. package/dist/esm/calcite-card.entry.js +10 -10
  727. package/dist/esm/calcite-checkbox.entry.js +8 -8
  728. package/dist/esm/calcite-chip.entry.js +7 -7
  729. package/dist/esm/calcite-color-picker_3.entry.js +11 -11
  730. package/dist/esm/calcite-combobox_3.entry.js +56 -81
  731. package/dist/esm/calcite-date-picker_4.entry.js +65 -67
  732. package/dist/esm/calcite-dropdown_3.entry.js +107 -140
  733. package/dist/esm/calcite-fab.entry.js +6 -6
  734. package/dist/esm/calcite-filter.entry.js +8 -8
  735. package/dist/esm/calcite-flow.entry.js +4 -4
  736. package/dist/esm/calcite-graph_2.entry.js +11 -11
  737. package/dist/esm/calcite-handle.entry.js +5 -5
  738. package/dist/esm/calcite-icon.entry.js +6 -6
  739. package/dist/esm/calcite-inline-editable.entry.js +24 -24
  740. package/dist/esm/calcite-input-date-picker.entry.js +98 -93
  741. package/dist/esm/calcite-input-message.entry.js +5 -5
  742. package/dist/esm/calcite-input-number.entry.js +14 -20
  743. package/dist/esm/calcite-input-time-picker_2.entry.js +18 -20
  744. package/dist/esm/calcite-input.entry.js +14 -20
  745. package/dist/esm/calcite-label.entry.js +6 -6
  746. package/dist/esm/calcite-link.entry.js +6 -6
  747. package/dist/esm/calcite-list_3.entry.js +11 -11
  748. package/dist/esm/calcite-loader.entry.js +9 -5
  749. package/dist/esm/calcite-modal.entry.js +44 -16
  750. package/dist/esm/calcite-notice.entry.js +29 -10
  751. package/dist/esm/calcite-option_3.entry.js +11 -11
  752. package/dist/esm/calcite-pagination.entry.js +6 -6
  753. package/dist/esm/calcite-panel.entry.js +44 -23
  754. package/dist/esm/calcite-pick-list_3.entry.js +14 -14
  755. package/dist/esm/calcite-popover_2.entry.js +64 -78
  756. package/dist/esm/calcite-progress.entry.js +3 -3
  757. package/dist/esm/calcite-radio-button-group.entry.js +4 -4
  758. package/dist/esm/calcite-radio-button.entry.js +10 -10
  759. package/dist/esm/calcite-radio-group_2.entry.js +9 -9
  760. package/dist/esm/calcite-rating.entry.js +9 -9
  761. package/dist/esm/calcite-scrim.entry.js +3 -3
  762. package/dist/esm/calcite-shell_3.entry.js +13 -11
  763. package/dist/esm/calcite-sortable-list.entry.js +6 -6
  764. package/dist/esm/calcite-split-button.entry.js +7 -7
  765. package/dist/esm/calcite-stepper_2.entry.js +57 -91
  766. package/dist/esm/calcite-switch.entry.js +11 -13
  767. package/dist/esm/calcite-tab_4.entry.js +61 -61
  768. package/dist/esm/calcite-tile-select_2.entry.js +6 -6
  769. package/dist/esm/calcite-tile.entry.js +8 -8
  770. package/dist/esm/calcite-tip_3.entry.js +12 -12
  771. package/dist/esm/calcite-tooltip_2.entry.js +30 -63
  772. package/dist/esm/calcite-tree_2.entry.js +28 -28
  773. package/dist/esm/calcite-value-list_2.entry.js +13 -13
  774. package/dist/esm/calcite.js +3 -3
  775. package/dist/esm/{conditionalSlot-13c69fa9.js → conditionalSlot-b78ec702.js} +3 -3
  776. package/dist/esm/{debounce-bef6fc2c.js → debounce-7b337e34.js} +1 -1
  777. package/dist/esm/{dom-6c1f7204.js → dom-773d1009.js} +2 -2
  778. package/dist/esm/floating-ui-9b7dcf5f.js +1612 -0
  779. package/dist/esm/{forIn-566610cc.js → forIn-f0ad73ff.js} +2 -2
  780. package/dist/esm/{form-115e3241.js → form-2cfa20ec.js} +3 -3
  781. package/dist/esm/{guid-9ee41ac6.js → guid-41992570.js} +1 -1
  782. package/dist/esm/{index-dfcf10d7.js → index-e2035750.js} +1 -1
  783. package/dist/esm/index.js +1 -1
  784. package/dist/esm/{interactive-2a03c362.js → interactive-52c414ad.js} +1 -1
  785. package/dist/esm/{interfaces-02cee59d.js → interfaces-2163b1eb.js} +1 -1
  786. package/dist/esm/{key-1219c482.js → key-7208494a.js} +1 -1
  787. package/dist/esm/{label-b30a7cde.js → label-dd1d4ebf.js} +2 -2
  788. package/dist/esm/loader.js +3 -3
  789. package/dist/esm/{locale-98144f51.js → locale-66830132.js} +2 -2
  790. package/dist/esm/{math-7409ae0d.js → math-d77047f4.js} +1 -1
  791. package/dist/esm/{observers-fa0db945.js → observers-ebdbf52f.js} +1 -1
  792. package/dist/esm/{resources-7198828a.js → resources-1b220b88.js} +1 -1
  793. package/dist/esm/{resources-3b67e62a.js → resources-4e2c9912.js} +1 -1
  794. package/dist/esm/{resources-ccd18bbb.js → resources-9afaaa17.js} +5 -5
  795. package/dist/esm/{resources-3157143b.js → resources-9e1ec649.js} +3 -3
  796. package/dist/esm/{sortable.esm-e7918a0d.js → sortable.esm-9a2fbede.js} +1 -1
  797. package/dist/esm/{utils-06a51b70.js → utils-011f57d8.js} +1 -1
  798. package/dist/esm-es5/ExpandToggle-131c7dcb.js +6 -0
  799. package/dist/esm-es5/Heading-93ced199.js +6 -0
  800. package/dist/esm-es5/{array-48f23287.js → array-5d7e7abd.js} +1 -1
  801. package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
  802. package/dist/esm-es5/calcite-action-bar.entry.js +3 -3
  803. package/dist/esm-es5/calcite-action-group.entry.js +2 -2
  804. package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
  805. package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
  806. package/dist/esm-es5/calcite-action.entry.js +2 -2
  807. package/dist/esm-es5/calcite-alert.entry.js +3 -3
  808. package/dist/esm-es5/calcite-avatar.entry.js +2 -2
  809. package/dist/esm-es5/calcite-block_2.entry.js +2 -2
  810. package/dist/esm-es5/calcite-button.entry.js +2 -2
  811. package/dist/esm-es5/calcite-card.entry.js +2 -2
  812. package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
  813. package/dist/esm-es5/calcite-chip.entry.js +3 -3
  814. package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
  815. package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
  816. package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
  817. package/dist/esm-es5/calcite-dropdown_3.entry.js +3 -3
  818. package/dist/esm-es5/calcite-fab.entry.js +3 -3
  819. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  820. package/dist/esm-es5/calcite-flow.entry.js +3 -3
  821. package/dist/esm-es5/calcite-graph_2.entry.js +3 -3
  822. package/dist/esm-es5/calcite-handle.entry.js +2 -2
  823. package/dist/esm-es5/calcite-icon.entry.js +2 -2
  824. package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
  825. package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
  826. package/dist/esm-es5/calcite-input-message.entry.js +2 -2
  827. package/dist/esm-es5/calcite-input-number.entry.js +2 -2
  828. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
  829. package/dist/esm-es5/calcite-input.entry.js +2 -2
  830. package/dist/esm-es5/calcite-label.entry.js +2 -2
  831. package/dist/esm-es5/calcite-link.entry.js +2 -2
  832. package/dist/esm-es5/calcite-list_3.entry.js +2 -2
  833. package/dist/esm-es5/calcite-loader.entry.js +3 -3
  834. package/dist/esm-es5/calcite-modal.entry.js +3 -3
  835. package/dist/esm-es5/calcite-notice.entry.js +2 -2
  836. package/dist/esm-es5/calcite-option_3.entry.js +3 -3
  837. package/dist/esm-es5/calcite-pagination.entry.js +2 -2
  838. package/dist/esm-es5/calcite-panel.entry.js +2 -2
  839. package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
  840. package/dist/esm-es5/calcite-popover_2.entry.js +3 -3
  841. package/dist/esm-es5/calcite-progress.entry.js +2 -2
  842. package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
  843. package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
  844. package/dist/esm-es5/calcite-radio-group_2.entry.js +3 -3
  845. package/dist/esm-es5/calcite-rating.entry.js +3 -3
  846. package/dist/esm-es5/calcite-scrim.entry.js +2 -2
  847. package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
  848. package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
  849. package/dist/esm-es5/calcite-split-button.entry.js +2 -2
  850. package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
  851. package/dist/esm-es5/calcite-switch.entry.js +3 -3
  852. package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
  853. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  854. package/dist/esm-es5/calcite-tile.entry.js +2 -2
  855. package/dist/esm-es5/calcite-tip_3.entry.js +3 -3
  856. package/dist/esm-es5/calcite-tooltip_2.entry.js +3 -3
  857. package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
  858. package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
  859. package/dist/esm-es5/calcite.js +2 -2
  860. package/dist/esm-es5/{conditionalSlot-13c69fa9.js → conditionalSlot-b78ec702.js} +2 -2
  861. package/dist/esm-es5/{debounce-bef6fc2c.js → debounce-7b337e34.js} +1 -1
  862. package/dist/esm-es5/{dom-6c1f7204.js → dom-773d1009.js} +2 -2
  863. package/dist/esm-es5/floating-ui-9b7dcf5f.js +6 -0
  864. package/dist/esm-es5/{forIn-566610cc.js → forIn-f0ad73ff.js} +2 -2
  865. package/dist/esm-es5/{form-115e3241.js → form-2cfa20ec.js} +2 -2
  866. package/dist/esm-es5/{guid-9ee41ac6.js → guid-41992570.js} +1 -1
  867. package/dist/esm-es5/{index-dfcf10d7.js → index-e2035750.js} +1 -1
  868. package/dist/esm-es5/index.js +1 -1
  869. package/dist/esm-es5/{interactive-2a03c362.js → interactive-52c414ad.js} +1 -1
  870. package/dist/esm-es5/{interfaces-02cee59d.js → interfaces-2163b1eb.js} +1 -1
  871. package/dist/esm-es5/{key-1219c482.js → key-7208494a.js} +1 -1
  872. package/dist/esm-es5/{label-b30a7cde.js → label-dd1d4ebf.js} +2 -2
  873. package/dist/esm-es5/loader.js +2 -2
  874. package/dist/esm-es5/{locale-98144f51.js → locale-66830132.js} +2 -2
  875. package/dist/esm-es5/{math-7409ae0d.js → math-d77047f4.js} +1 -1
  876. package/dist/esm-es5/{observers-fa0db945.js → observers-ebdbf52f.js} +1 -1
  877. package/dist/esm-es5/{resources-7198828a.js → resources-1b220b88.js} +1 -1
  878. package/dist/esm-es5/{resources-3b67e62a.js → resources-4e2c9912.js} +1 -1
  879. package/dist/esm-es5/{resources-ccd18bbb.js → resources-9afaaa17.js} +2 -2
  880. package/dist/esm-es5/{resources-3157143b.js → resources-9e1ec649.js} +2 -2
  881. package/dist/esm-es5/{sortable.esm-e7918a0d.js → sortable.esm-9a2fbede.js} +1 -1
  882. package/dist/esm-es5/{utils-06a51b70.js → utils-011f57d8.js} +1 -1
  883. package/dist/extras/docs-json.json +345 -178
  884. package/dist/loader/cdn.js +1 -1
  885. package/dist/loader/index.cjs.js +1 -1
  886. package/dist/loader/index.es2017.js +1 -1
  887. package/dist/loader/index.js +1 -1
  888. package/dist/types/components/accordion/accordion.d.ts +4 -4
  889. package/dist/types/components/accordion/interfaces.d.ts +3 -0
  890. package/dist/types/components/accordion-item/accordion-item.d.ts +13 -7
  891. package/dist/types/components/accordion-item/interfaces.d.ts +11 -0
  892. package/dist/types/components/accordion-item/resources.d.ts +16 -0
  893. package/dist/types/components/action/action.d.ts +1 -1
  894. package/dist/types/components/action-bar/action-bar.d.ts +10 -3
  895. package/dist/types/components/action-bar/utils.d.ts +9 -1
  896. package/dist/types/components/action-group/action-group.d.ts +2 -1
  897. package/dist/types/components/action-menu/action-menu.d.ts +8 -8
  898. package/dist/types/components/action-pad/action-pad.d.ts +1 -1
  899. package/dist/types/components/alert/alert.d.ts +20 -24
  900. package/dist/types/components/alert/interfaces.d.ts +3 -0
  901. package/dist/types/components/block/block.d.ts +6 -2
  902. package/dist/types/components/block-section/block-section.d.ts +1 -1
  903. package/dist/types/components/card/card.d.ts +1 -1
  904. package/dist/types/components/checkbox/checkbox.d.ts +3 -3
  905. package/dist/types/components/chip/chip.d.ts +7 -3
  906. package/dist/types/components/color-picker/color-picker.d.ts +2 -2
  907. package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +1 -1
  908. package/dist/types/components/combobox/combobox.d.ts +25 -28
  909. package/dist/types/components/combobox-item/combobox-item.d.ts +4 -2
  910. package/dist/types/components/date-picker/date-picker.d.ts +5 -5
  911. package/dist/types/components/date-picker-day/date-picker-day.d.ts +3 -3
  912. package/dist/types/components/date-picker-month/date-picker-month.d.ts +7 -7
  913. package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +1 -1
  914. package/dist/types/components/dropdown/dropdown.d.ts +30 -33
  915. package/dist/types/components/dropdown-group/dropdown-group.d.ts +2 -2
  916. package/dist/types/components/dropdown-group/interfaces.d.ts +4 -0
  917. package/dist/types/components/dropdown-item/dropdown-item.d.ts +4 -3
  918. package/dist/types/components/handle/handle.d.ts +4 -1
  919. package/dist/types/components/inline-editable/inline-editable.d.ts +1 -1
  920. package/dist/types/components/input/input.d.ts +6 -4
  921. package/dist/types/components/input-date-picker/input-date-picker.d.ts +37 -26
  922. package/dist/types/components/input-number/input-number.d.ts +6 -4
  923. package/dist/types/components/input-time-picker/input-time-picker.d.ts +4 -5
  924. package/dist/types/components/interfaces.d.ts +1 -0
  925. package/dist/types/components/loader/loader.d.ts +5 -1
  926. package/dist/types/components/modal/modal.d.ts +23 -7
  927. package/dist/types/components/notice/notice.d.ts +11 -3
  928. package/dist/types/components/panel/panel.d.ts +12 -9
  929. package/dist/types/components/popover/PopoverManager.d.ts +1 -1
  930. package/dist/types/components/popover/popover.d.ts +24 -15
  931. package/dist/types/components/radio-button/radio-button.d.ts +4 -4
  932. package/dist/types/components/radio-button-group/radio-button-group.d.ts +1 -1
  933. package/dist/types/components/radio-group-item/radio-group-item.d.ts +1 -1
  934. package/dist/types/components/shell/resources.d.ts +2 -0
  935. package/dist/types/components/shell/shell.d.ts +4 -2
  936. package/dist/types/components/shell-panel/shell-panel.d.ts +1 -1
  937. package/dist/types/components/slider/slider.d.ts +3 -3
  938. package/dist/types/components/sortable-list/sortable-list.d.ts +1 -1
  939. package/dist/types/components/split-button/split-button.d.ts +14 -6
  940. package/dist/types/components/stepper/interfaces.d.ts +0 -1
  941. package/dist/types/components/stepper/stepper.d.ts +4 -13
  942. package/dist/types/components/stepper-item/stepper-item.d.ts +2 -3
  943. package/dist/types/components/switch/switch.d.ts +5 -3
  944. package/dist/types/components/tab/tab.d.ts +1 -1
  945. package/dist/types/components/tab-nav/tab-nav.d.ts +7 -7
  946. package/dist/types/components/tab-title/tab-title.d.ts +3 -3
  947. package/dist/types/components/tabs/tabs.d.ts +8 -8
  948. package/dist/types/components/tile-select/tile-select.d.ts +1 -1
  949. package/dist/types/components/tip/tip.d.ts +1 -1
  950. package/dist/types/components/tip-manager/tip-manager.d.ts +3 -3
  951. package/dist/types/components/tooltip/TooltipManager.d.ts +1 -1
  952. package/dist/types/components/tooltip/tooltip.d.ts +6 -9
  953. package/dist/types/components/tree/tree.d.ts +2 -2
  954. package/dist/types/components/tree-item/tree-item.d.ts +2 -2
  955. package/dist/types/components.d.ts +211 -120
  956. package/dist/types/preact.d.ts +15 -9
  957. package/dist/types/utils/floating-ui.d.ts +109 -0
  958. package/hydrate/index.js +2318 -2612
  959. package/package.json +30 -26
  960. package/readme.md +2 -2
  961. package/dist/calcite/p-03005912.system.entry.js +0 -6
  962. package/dist/calcite/p-05acf942.system.entry.js +0 -6
  963. package/dist/calcite/p-098bf101.entry.js +0 -6
  964. package/dist/calcite/p-0ac22887.js +0 -6
  965. package/dist/calcite/p-0d0ab1c5.system.entry.js +0 -6
  966. package/dist/calcite/p-15a9e209.system.entry.js +0 -6
  967. package/dist/calcite/p-17c8a622.system.entry.js +0 -6
  968. package/dist/calcite/p-1b79a3a3.entry.js +0 -6
  969. package/dist/calcite/p-1b939beb.system.entry.js +0 -6
  970. package/dist/calcite/p-1e7d3d02.system.entry.js +0 -6
  971. package/dist/calcite/p-1e9d27fe.system.entry.js +0 -6
  972. package/dist/calcite/p-1ef82cc5.system.entry.js +0 -6
  973. package/dist/calcite/p-1f0bf183.system.entry.js +0 -6
  974. package/dist/calcite/p-22217b06.entry.js +0 -6
  975. package/dist/calcite/p-247f1abc.entry.js +0 -6
  976. package/dist/calcite/p-27f31e04.js +0 -6
  977. package/dist/calcite/p-283ed748.entry.js +0 -6
  978. package/dist/calcite/p-29122323.system.entry.js +0 -6
  979. package/dist/calcite/p-2d556f94.system.entry.js +0 -6
  980. package/dist/calcite/p-2d7b7215.system.entry.js +0 -6
  981. package/dist/calcite/p-36ee6a02.entry.js +0 -6
  982. package/dist/calcite/p-37f621e1.entry.js +0 -6
  983. package/dist/calcite/p-386d256d.entry.js +0 -6
  984. package/dist/calcite/p-39201c6f.entry.js +0 -6
  985. package/dist/calcite/p-40825758.entry.js +0 -6
  986. package/dist/calcite/p-40ddce6a.system.entry.js +0 -6
  987. package/dist/calcite/p-451e4a81.entry.js +0 -6
  988. package/dist/calcite/p-498af5d7.system.entry.js +0 -6
  989. package/dist/calcite/p-55b9c3d8.system.entry.js +0 -6
  990. package/dist/calcite/p-58ba388d.entry.js +0 -6
  991. package/dist/calcite/p-62f31a5a.system.entry.js +0 -6
  992. package/dist/calcite/p-661fe743.system.js +0 -6
  993. package/dist/calcite/p-667c6be1.entry.js +0 -6
  994. package/dist/calcite/p-670df541.system.entry.js +0 -6
  995. package/dist/calcite/p-6abdcefa.system.entry.js +0 -6
  996. package/dist/calcite/p-6f3fad62.system.entry.js +0 -6
  997. package/dist/calcite/p-705dcfd0.system.entry.js +0 -6
  998. package/dist/calcite/p-7124aeac.entry.js +0 -6
  999. package/dist/calcite/p-718bec4c.entry.js +0 -6
  1000. package/dist/calcite/p-71df706c.system.entry.js +0 -6
  1001. package/dist/calcite/p-7285074f.entry.js +0 -6
  1002. package/dist/calcite/p-72d06cc6.entry.js +0 -6
  1003. package/dist/calcite/p-78f82837.system.entry.js +0 -6
  1004. package/dist/calcite/p-81460471.entry.js +0 -6
  1005. package/dist/calcite/p-822445af.entry.js +0 -6
  1006. package/dist/calcite/p-82655fe7.entry.js +0 -6
  1007. package/dist/calcite/p-82c99865.entry.js +0 -6
  1008. package/dist/calcite/p-8381e935.system.entry.js +0 -6
  1009. package/dist/calcite/p-869ceaf2.system.entry.js +0 -6
  1010. package/dist/calcite/p-8701d6ec.js +0 -6
  1011. package/dist/calcite/p-881346ec.system.entry.js +0 -6
  1012. package/dist/calcite/p-8b8580be.system.entry.js +0 -6
  1013. package/dist/calcite/p-8d90241c.system.entry.js +0 -6
  1014. package/dist/calcite/p-8e8279db.system.entry.js +0 -6
  1015. package/dist/calcite/p-8f8f1f3c.entry.js +0 -6
  1016. package/dist/calcite/p-92c0a612.entry.js +0 -6
  1017. package/dist/calcite/p-93fb8320.js +0 -6
  1018. package/dist/calcite/p-97f24602.entry.js +0 -6
  1019. package/dist/calcite/p-9e7c867f.entry.js +0 -6
  1020. package/dist/calcite/p-a1dec328.system.entry.js +0 -6
  1021. package/dist/calcite/p-a574d688.entry.js +0 -6
  1022. package/dist/calcite/p-a6da6fa9.entry.js +0 -6
  1023. package/dist/calcite/p-a6ec6d30.system.entry.js +0 -6
  1024. package/dist/calcite/p-a792b4d4.system.entry.js +0 -6
  1025. package/dist/calcite/p-a8d26072.entry.js +0 -6
  1026. package/dist/calcite/p-a8e86b7c.system.js +0 -6
  1027. package/dist/calcite/p-a930b4c7.system.entry.js +0 -6
  1028. package/dist/calcite/p-ad42a290.system.entry.js +0 -6
  1029. package/dist/calcite/p-afa96d7b.entry.js +0 -6
  1030. package/dist/calcite/p-b3b7d99f.entry.js +0 -6
  1031. package/dist/calcite/p-b3c08277.system.entry.js +0 -6
  1032. package/dist/calcite/p-bae5371e.entry.js +0 -6
  1033. package/dist/calcite/p-bbad2c78.entry.js +0 -6
  1034. package/dist/calcite/p-bbc195d0.system.entry.js +0 -6
  1035. package/dist/calcite/p-be0b7ae8.entry.js +0 -6
  1036. package/dist/calcite/p-bed13ccd.system.entry.js +0 -6
  1037. package/dist/calcite/p-c075111b.system.entry.js +0 -6
  1038. package/dist/calcite/p-c09197e1.system.entry.js +0 -6
  1039. package/dist/calcite/p-c3200434.system.entry.js +0 -6
  1040. package/dist/calcite/p-c7e8f753.js +0 -6
  1041. package/dist/calcite/p-cda3843c.entry.js +0 -6
  1042. package/dist/calcite/p-d1fef3a5.entry.js +0 -6
  1043. package/dist/calcite/p-d69560ee.system.entry.js +0 -6
  1044. package/dist/calcite/p-d7614205.entry.js +0 -6
  1045. package/dist/calcite/p-d8cca171.system.entry.js +0 -6
  1046. package/dist/calcite/p-d8d3ee29.entry.js +0 -6
  1047. package/dist/calcite/p-d91ab8b3.system.entry.js +0 -6
  1048. package/dist/calcite/p-da603fb6.system.js +0 -6
  1049. package/dist/calcite/p-dc5681bd.system.entry.js +0 -6
  1050. package/dist/calcite/p-dda6305e.system.entry.js +0 -6
  1051. package/dist/calcite/p-dfd66185.entry.js +0 -6
  1052. package/dist/calcite/p-e4a9f3a3.entry.js +0 -6
  1053. package/dist/calcite/p-e5100a68.system.entry.js +0 -6
  1054. package/dist/calcite/p-e55af056.entry.js +0 -6
  1055. package/dist/calcite/p-ec0ff216.entry.js +0 -6
  1056. package/dist/calcite/p-ee4221f2.entry.js +0 -6
  1057. package/dist/calcite/p-ef596bf4.system.js +0 -6
  1058. package/dist/calcite/p-f29e929e.system.entry.js +0 -6
  1059. package/dist/calcite/p-fcbb3104.entry.js +0 -6
  1060. package/dist/calcite/p-fe758da5.system.entry.js +0 -6
  1061. package/dist/calcite/p-ffc4d4f5.system.entry.js +0 -6
  1062. package/dist/cjs/popper-f29f9a3b.js +0 -1876
  1063. package/dist/collection/utils/popper.js +0 -126
  1064. package/dist/components/popper.js +0 -1868
  1065. package/dist/esm/popper-f38ba1ab.js +0 -1868
  1066. package/dist/esm-es5/ExpandToggle-7076d600.js +0 -6
  1067. package/dist/esm-es5/Heading-5ccb3b17.js +0 -6
  1068. package/dist/esm-es5/popper-f38ba1ab.js +0 -6
  1069. package/dist/types/utils/popper.d.ts +0 -35
@@ -0,0 +1,1620 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-beta.89
5
+ */
6
+ 'use strict';
7
+
8
+ const dom = require('./dom-63f7a393.js');
9
+
10
+ function getSide(placement) {
11
+ return placement.split('-')[0];
12
+ }
13
+
14
+ function getAlignment(placement) {
15
+ return placement.split('-')[1];
16
+ }
17
+
18
+ function getMainAxisFromPlacement(placement) {
19
+ return ['top', 'bottom'].includes(getSide(placement)) ? 'x' : 'y';
20
+ }
21
+
22
+ function getLengthFromAxis(axis) {
23
+ return axis === 'y' ? 'height' : 'width';
24
+ }
25
+
26
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
27
+ let {
28
+ reference,
29
+ floating
30
+ } = _ref;
31
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
32
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
33
+ const mainAxis = getMainAxisFromPlacement(placement);
34
+ const length = getLengthFromAxis(mainAxis);
35
+ const commonAlign = reference[length] / 2 - floating[length] / 2;
36
+ const side = getSide(placement);
37
+ const isVertical = mainAxis === 'x';
38
+ let coords;
39
+
40
+ switch (side) {
41
+ case 'top':
42
+ coords = {
43
+ x: commonX,
44
+ y: reference.y - floating.height
45
+ };
46
+ break;
47
+
48
+ case 'bottom':
49
+ coords = {
50
+ x: commonX,
51
+ y: reference.y + reference.height
52
+ };
53
+ break;
54
+
55
+ case 'right':
56
+ coords = {
57
+ x: reference.x + reference.width,
58
+ y: commonY
59
+ };
60
+ break;
61
+
62
+ case 'left':
63
+ coords = {
64
+ x: reference.x - floating.width,
65
+ y: commonY
66
+ };
67
+ break;
68
+
69
+ default:
70
+ coords = {
71
+ x: reference.x,
72
+ y: reference.y
73
+ };
74
+ }
75
+
76
+ switch (getAlignment(placement)) {
77
+ case 'start':
78
+ coords[mainAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
79
+ break;
80
+
81
+ case 'end':
82
+ coords[mainAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
83
+ break;
84
+ }
85
+
86
+ return coords;
87
+ }
88
+
89
+ /**
90
+ * Computes the `x` and `y` coordinates that will place the floating element
91
+ * next to a reference element when it is given a certain positioning strategy.
92
+ *
93
+ * This export does not have any `platform` interface logic. You will need to
94
+ * write one for the platform you are using Floating UI with.
95
+ */
96
+
97
+ const computePosition$1 = async (reference, floating, config) => {
98
+ const {
99
+ placement = 'bottom',
100
+ strategy = 'absolute',
101
+ middleware = [],
102
+ platform
103
+ } = config;
104
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
105
+
106
+ let rects = await platform.getElementRects({
107
+ reference,
108
+ floating,
109
+ strategy
110
+ });
111
+ let {
112
+ x,
113
+ y
114
+ } = computeCoordsFromPlacement(rects, placement, rtl);
115
+ let statefulPlacement = placement;
116
+ let middlewareData = {};
117
+ let resetCount = 0;
118
+
119
+ for (let i = 0; i < middleware.length; i++) {
120
+ const {
121
+ name,
122
+ fn
123
+ } = middleware[i];
124
+ const {
125
+ x: nextX,
126
+ y: nextY,
127
+ data,
128
+ reset
129
+ } = await fn({
130
+ x,
131
+ y,
132
+ initialPlacement: placement,
133
+ placement: statefulPlacement,
134
+ strategy,
135
+ middlewareData,
136
+ rects,
137
+ platform,
138
+ elements: {
139
+ reference,
140
+ floating
141
+ }
142
+ });
143
+ x = nextX != null ? nextX : x;
144
+ y = nextY != null ? nextY : y;
145
+ middlewareData = { ...middlewareData,
146
+ [name]: { ...middlewareData[name],
147
+ ...data
148
+ }
149
+ };
150
+
151
+ if (reset && resetCount <= 50) {
152
+ resetCount++;
153
+
154
+ if (typeof reset === 'object') {
155
+ if (reset.placement) {
156
+ statefulPlacement = reset.placement;
157
+ }
158
+
159
+ if (reset.rects) {
160
+ rects = reset.rects === true ? await platform.getElementRects({
161
+ reference,
162
+ floating,
163
+ strategy
164
+ }) : reset.rects;
165
+ }
166
+
167
+ ({
168
+ x,
169
+ y
170
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
171
+ }
172
+
173
+ i = -1;
174
+ continue;
175
+ }
176
+ }
177
+
178
+ return {
179
+ x,
180
+ y,
181
+ placement: statefulPlacement,
182
+ strategy,
183
+ middlewareData
184
+ };
185
+ };
186
+
187
+ function expandPaddingObject(padding) {
188
+ return {
189
+ top: 0,
190
+ right: 0,
191
+ bottom: 0,
192
+ left: 0,
193
+ ...padding
194
+ };
195
+ }
196
+
197
+ function getSideObjectFromPadding(padding) {
198
+ return typeof padding !== 'number' ? expandPaddingObject(padding) : {
199
+ top: padding,
200
+ right: padding,
201
+ bottom: padding,
202
+ left: padding
203
+ };
204
+ }
205
+
206
+ function rectToClientRect(rect) {
207
+ return { ...rect,
208
+ top: rect.y,
209
+ left: rect.x,
210
+ right: rect.x + rect.width,
211
+ bottom: rect.y + rect.height
212
+ };
213
+ }
214
+
215
+ /**
216
+ * Resolves with an object of overflow side offsets that determine how much the
217
+ * element is overflowing a given clipping boundary.
218
+ * - positive = overflowing the boundary by that number of pixels
219
+ * - negative = how many pixels left before it will overflow
220
+ * - 0 = lies flush with the boundary
221
+ * @see https://floating-ui.com/docs/detectOverflow
222
+ */
223
+ async function detectOverflow(middlewareArguments, options) {
224
+ var _await$platform$isEle;
225
+
226
+ if (options === void 0) {
227
+ options = {};
228
+ }
229
+
230
+ const {
231
+ x,
232
+ y,
233
+ platform,
234
+ rects,
235
+ elements,
236
+ strategy
237
+ } = middlewareArguments;
238
+ const {
239
+ boundary = 'clippingAncestors',
240
+ rootBoundary = 'viewport',
241
+ elementContext = 'floating',
242
+ altBoundary = false,
243
+ padding = 0
244
+ } = options;
245
+ const paddingObject = getSideObjectFromPadding(padding);
246
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
247
+ const element = elements[altBoundary ? altContext : elementContext];
248
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
249
+ 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))),
250
+ boundary,
251
+ rootBoundary,
252
+ strategy
253
+ }));
254
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
255
+ rect: elementContext === 'floating' ? { ...rects.floating,
256
+ x,
257
+ y
258
+ } : rects.reference,
259
+ offsetParent: await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating)),
260
+ strategy
261
+ }) : rects[elementContext]);
262
+ return {
263
+ top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
264
+ bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
265
+ left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
266
+ right: elementClientRect.right - clippingClientRect.right + paddingObject.right
267
+ };
268
+ }
269
+
270
+ const min$1 = Math.min;
271
+ const max$1 = Math.max;
272
+
273
+ function within(min$1$1, value, max$1$1) {
274
+ return max$1(min$1$1, min$1(value, max$1$1));
275
+ }
276
+
277
+ /**
278
+ * Positions an inner element of the floating element such that it is centered
279
+ * to the reference element.
280
+ * @see https://floating-ui.com/docs/arrow
281
+ */
282
+ const arrow = options => ({
283
+ name: 'arrow',
284
+ options,
285
+
286
+ async fn(middlewareArguments) {
287
+ // Since `element` is required, we don't Partial<> the type
288
+ const {
289
+ element,
290
+ padding = 0
291
+ } = options != null ? options : {};
292
+ const {
293
+ x,
294
+ y,
295
+ placement,
296
+ rects,
297
+ platform
298
+ } = middlewareArguments;
299
+
300
+ if (element == null) {
301
+
302
+ return {};
303
+ }
304
+
305
+ const paddingObject = getSideObjectFromPadding(padding);
306
+ const coords = {
307
+ x,
308
+ y
309
+ };
310
+ const axis = getMainAxisFromPlacement(placement);
311
+ const alignment = getAlignment(placement);
312
+ const length = getLengthFromAxis(axis);
313
+ const arrowDimensions = await platform.getDimensions(element);
314
+ const minProp = axis === 'y' ? 'top' : 'left';
315
+ const maxProp = axis === 'y' ? 'bottom' : 'right';
316
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
317
+ const startDiff = coords[axis] - rects.reference[axis];
318
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
319
+ let clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
320
+
321
+ if (clientSize === 0) {
322
+ clientSize = rects.floating[length];
323
+ }
324
+
325
+ const centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the floating element if the center
326
+ // point is outside the floating element's bounds
327
+
328
+ const min = paddingObject[minProp];
329
+ const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];
330
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
331
+ const offset = within(min, center, max); // Make sure that arrow points at the reference
332
+
333
+ const alignmentPadding = alignment === 'start' ? paddingObject[minProp] : paddingObject[maxProp];
334
+ const shouldAddOffset = alignmentPadding > 0 && center !== offset && rects.reference[length] <= rects.floating[length];
335
+ const alignmentOffset = shouldAddOffset ? center < min ? min - center : max - center : 0;
336
+ return {
337
+ [axis]: coords[axis] - alignmentOffset,
338
+ data: {
339
+ [axis]: offset,
340
+ centerOffset: center - offset
341
+ }
342
+ };
343
+ }
344
+
345
+ });
346
+
347
+ const hash$1 = {
348
+ left: 'right',
349
+ right: 'left',
350
+ bottom: 'top',
351
+ top: 'bottom'
352
+ };
353
+ function getOppositePlacement(placement) {
354
+ return placement.replace(/left|right|bottom|top/g, matched => hash$1[matched]);
355
+ }
356
+
357
+ function getAlignmentSides(placement, rects, rtl) {
358
+ if (rtl === void 0) {
359
+ rtl = false;
360
+ }
361
+
362
+ const alignment = getAlignment(placement);
363
+ const mainAxis = getMainAxisFromPlacement(placement);
364
+ const length = getLengthFromAxis(mainAxis);
365
+ let mainAlignmentSide = mainAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
366
+
367
+ if (rects.reference[length] > rects.floating[length]) {
368
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
369
+ }
370
+
371
+ return {
372
+ main: mainAlignmentSide,
373
+ cross: getOppositePlacement(mainAlignmentSide)
374
+ };
375
+ }
376
+
377
+ const hash = {
378
+ start: 'end',
379
+ end: 'start'
380
+ };
381
+ function getOppositeAlignmentPlacement(placement) {
382
+ return placement.replace(/start|end/g, matched => hash[matched]);
383
+ }
384
+
385
+ const sides = ['top', 'right', 'bottom', 'left'];
386
+ const allPlacements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-start", side + "-end"), []);
387
+
388
+ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
389
+ const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
390
+ return allowedPlacementsSortedByAlignment.filter(placement => {
391
+ if (alignment) {
392
+ return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
393
+ }
394
+
395
+ return true;
396
+ });
397
+ }
398
+
399
+ /**
400
+ * Automatically chooses the `placement` which has the most space available.
401
+ * @see https://floating-ui.com/docs/autoPlacement
402
+ */
403
+ const autoPlacement = function (options) {
404
+ if (options === void 0) {
405
+ options = {};
406
+ }
407
+
408
+ return {
409
+ name: 'autoPlacement',
410
+ options,
411
+
412
+ async fn(middlewareArguments) {
413
+ var _middlewareData$autoP, _middlewareData$autoP2, _middlewareData$autoP3, _middlewareData$autoP4, _placementsSortedByLe;
414
+
415
+ const {
416
+ x,
417
+ y,
418
+ rects,
419
+ middlewareData,
420
+ placement,
421
+ platform,
422
+ elements
423
+ } = middlewareArguments;
424
+ const {
425
+ alignment = null,
426
+ allowedPlacements = allPlacements,
427
+ autoAlignment = true,
428
+ ...detectOverflowOptions
429
+ } = options;
430
+ const placements = getPlacementList(alignment, autoAlignment, allowedPlacements);
431
+ const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
432
+ const currentIndex = (_middlewareData$autoP = (_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.index) != null ? _middlewareData$autoP : 0;
433
+ const currentPlacement = placements[currentIndex];
434
+
435
+ if (currentPlacement == null) {
436
+ return {};
437
+ }
438
+
439
+ const {
440
+ main,
441
+ cross
442
+ } = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))); // Make `computeCoords` start from the right place
443
+
444
+ if (placement !== currentPlacement) {
445
+ return {
446
+ x,
447
+ y,
448
+ reset: {
449
+ placement: placements[0]
450
+ }
451
+ };
452
+ }
453
+
454
+ const currentOverflows = [overflow[getSide(currentPlacement)], overflow[main], overflow[cross]];
455
+ const allOverflows = [...((_middlewareData$autoP3 = (_middlewareData$autoP4 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP4.overflows) != null ? _middlewareData$autoP3 : []), {
456
+ placement: currentPlacement,
457
+ overflows: currentOverflows
458
+ }];
459
+ const nextPlacement = placements[currentIndex + 1]; // There are more placements to check
460
+
461
+ if (nextPlacement) {
462
+ return {
463
+ data: {
464
+ index: currentIndex + 1,
465
+ overflows: allOverflows
466
+ },
467
+ reset: {
468
+ placement: nextPlacement
469
+ }
470
+ };
471
+ }
472
+
473
+ const placementsSortedByLeastOverflow = allOverflows.slice().sort((a, b) => a.overflows[0] - b.overflows[0]);
474
+ const placementThatFitsOnAllSides = (_placementsSortedByLe = placementsSortedByLeastOverflow.find(_ref => {
475
+ let {
476
+ overflows
477
+ } = _ref;
478
+ return overflows.every(overflow => overflow <= 0);
479
+ })) == null ? void 0 : _placementsSortedByLe.placement;
480
+ const resetPlacement = placementThatFitsOnAllSides != null ? placementThatFitsOnAllSides : placementsSortedByLeastOverflow[0].placement;
481
+
482
+ if (resetPlacement !== placement) {
483
+ return {
484
+ data: {
485
+ index: currentIndex + 1,
486
+ overflows: allOverflows
487
+ },
488
+ reset: {
489
+ placement: resetPlacement
490
+ }
491
+ };
492
+ }
493
+
494
+ return {};
495
+ }
496
+
497
+ };
498
+ };
499
+
500
+ function getExpandedPlacements(placement) {
501
+ const oppositePlacement = getOppositePlacement(placement);
502
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
503
+ }
504
+
505
+ /**
506
+ * Changes the placement of the floating element to one that will fit if the
507
+ * initially specified `placement` does not.
508
+ * @see https://floating-ui.com/docs/flip
509
+ */
510
+ const flip = function (options) {
511
+ if (options === void 0) {
512
+ options = {};
513
+ }
514
+
515
+ return {
516
+ name: 'flip',
517
+ options,
518
+
519
+ async fn(middlewareArguments) {
520
+ var _middlewareData$flip;
521
+
522
+ const {
523
+ placement,
524
+ middlewareData,
525
+ rects,
526
+ initialPlacement,
527
+ platform,
528
+ elements
529
+ } = middlewareArguments;
530
+ const {
531
+ mainAxis: checkMainAxis = true,
532
+ crossAxis: checkCrossAxis = true,
533
+ fallbackPlacements: specifiedFallbackPlacements,
534
+ fallbackStrategy = 'bestFit',
535
+ flipAlignment = true,
536
+ ...detectOverflowOptions
537
+ } = options;
538
+ const side = getSide(placement);
539
+ const isBasePlacement = side === initialPlacement;
540
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
541
+ const placements = [initialPlacement, ...fallbackPlacements];
542
+ const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
543
+ const overflows = [];
544
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
545
+
546
+ if (checkMainAxis) {
547
+ overflows.push(overflow[side]);
548
+ }
549
+
550
+ if (checkCrossAxis) {
551
+ const {
552
+ main,
553
+ cross
554
+ } = getAlignmentSides(placement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
555
+ overflows.push(overflow[main], overflow[cross]);
556
+ }
557
+
558
+ overflowsData = [...overflowsData, {
559
+ placement,
560
+ overflows
561
+ }]; // One or more sides is overflowing
562
+
563
+ if (!overflows.every(side => side <= 0)) {
564
+ var _middlewareData$flip$, _middlewareData$flip2;
565
+
566
+ const nextIndex = ((_middlewareData$flip$ = (_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) != null ? _middlewareData$flip$ : 0) + 1;
567
+ const nextPlacement = placements[nextIndex];
568
+
569
+ if (nextPlacement) {
570
+ // Try next placement and re-run the lifecycle
571
+ return {
572
+ data: {
573
+ index: nextIndex,
574
+ overflows: overflowsData
575
+ },
576
+ reset: {
577
+ placement: nextPlacement
578
+ }
579
+ };
580
+ }
581
+
582
+ let resetPlacement = 'bottom';
583
+
584
+ switch (fallbackStrategy) {
585
+ case 'bestFit':
586
+ {
587
+ var _overflowsData$map$so;
588
+
589
+ const placement = (_overflowsData$map$so = overflowsData.map(d => [d, 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].placement;
590
+
591
+ if (placement) {
592
+ resetPlacement = placement;
593
+ }
594
+
595
+ break;
596
+ }
597
+
598
+ case 'initialPlacement':
599
+ resetPlacement = initialPlacement;
600
+ break;
601
+ }
602
+
603
+ if (placement !== resetPlacement) {
604
+ return {
605
+ reset: {
606
+ placement: resetPlacement
607
+ }
608
+ };
609
+ }
610
+ }
611
+
612
+ return {};
613
+ }
614
+
615
+ };
616
+ };
617
+
618
+ function getSideOffsets(overflow, rect) {
619
+ return {
620
+ top: overflow.top - rect.height,
621
+ right: overflow.right - rect.width,
622
+ bottom: overflow.bottom - rect.height,
623
+ left: overflow.left - rect.width
624
+ };
625
+ }
626
+
627
+ function isAnySideFullyClipped(overflow) {
628
+ return sides.some(side => overflow[side] >= 0);
629
+ }
630
+
631
+ /**
632
+ * Provides data to hide the floating element in applicable situations, such as
633
+ * when it is not in the same clipping context as the reference element.
634
+ * @see https://floating-ui.com/docs/hide
635
+ */
636
+ const hide = function (_temp) {
637
+ let {
638
+ strategy = 'referenceHidden',
639
+ ...detectOverflowOptions
640
+ } = _temp === void 0 ? {} : _temp;
641
+ return {
642
+ name: 'hide',
643
+
644
+ async fn(middlewareArguments) {
645
+ const {
646
+ rects
647
+ } = middlewareArguments;
648
+
649
+ switch (strategy) {
650
+ case 'referenceHidden':
651
+ {
652
+ const overflow = await detectOverflow(middlewareArguments, { ...detectOverflowOptions,
653
+ elementContext: 'reference'
654
+ });
655
+ const offsets = getSideOffsets(overflow, rects.reference);
656
+ return {
657
+ data: {
658
+ referenceHiddenOffsets: offsets,
659
+ referenceHidden: isAnySideFullyClipped(offsets)
660
+ }
661
+ };
662
+ }
663
+
664
+ case 'escaped':
665
+ {
666
+ const overflow = await detectOverflow(middlewareArguments, { ...detectOverflowOptions,
667
+ altBoundary: true
668
+ });
669
+ const offsets = getSideOffsets(overflow, rects.floating);
670
+ return {
671
+ data: {
672
+ escapedOffsets: offsets,
673
+ escaped: isAnySideFullyClipped(offsets)
674
+ }
675
+ };
676
+ }
677
+
678
+ default:
679
+ {
680
+ return {};
681
+ }
682
+ }
683
+ }
684
+
685
+ };
686
+ };
687
+
688
+ async function convertValueToCoords(middlewareArguments, value) {
689
+ const {
690
+ placement,
691
+ platform,
692
+ elements
693
+ } = middlewareArguments;
694
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
695
+ const side = getSide(placement);
696
+ const alignment = getAlignment(placement);
697
+ const isVertical = getMainAxisFromPlacement(placement) === 'x';
698
+ const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
699
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
700
+ const rawValue = typeof value === 'function' ? value(middlewareArguments) : value; // eslint-disable-next-line prefer-const
701
+
702
+ let {
703
+ mainAxis,
704
+ crossAxis,
705
+ alignmentAxis
706
+ } = typeof rawValue === 'number' ? {
707
+ mainAxis: rawValue,
708
+ crossAxis: 0,
709
+ alignmentAxis: null
710
+ } : {
711
+ mainAxis: 0,
712
+ crossAxis: 0,
713
+ alignmentAxis: null,
714
+ ...rawValue
715
+ };
716
+
717
+ if (alignment && typeof alignmentAxis === 'number') {
718
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
719
+ }
720
+
721
+ return isVertical ? {
722
+ x: crossAxis * crossAxisMulti,
723
+ y: mainAxis * mainAxisMulti
724
+ } : {
725
+ x: mainAxis * mainAxisMulti,
726
+ y: crossAxis * crossAxisMulti
727
+ };
728
+ }
729
+ /**
730
+ * Displaces the floating element from its reference element.
731
+ * @see https://floating-ui.com/docs/offset
732
+ */
733
+
734
+ const offset = function (value) {
735
+ if (value === void 0) {
736
+ value = 0;
737
+ }
738
+
739
+ return {
740
+ name: 'offset',
741
+ options: value,
742
+
743
+ async fn(middlewareArguments) {
744
+ const {
745
+ x,
746
+ y
747
+ } = middlewareArguments;
748
+ const diffCoords = await convertValueToCoords(middlewareArguments, value);
749
+ return {
750
+ x: x + diffCoords.x,
751
+ y: y + diffCoords.y,
752
+ data: diffCoords
753
+ };
754
+ }
755
+
756
+ };
757
+ };
758
+
759
+ function getCrossAxis(axis) {
760
+ return axis === 'x' ? 'y' : 'x';
761
+ }
762
+
763
+ /**
764
+ * Shifts the floating element in order to keep it in view when it will overflow
765
+ * a clipping boundary.
766
+ * @see https://floating-ui.com/docs/shift
767
+ */
768
+ const shift = function (options) {
769
+ if (options === void 0) {
770
+ options = {};
771
+ }
772
+
773
+ return {
774
+ name: 'shift',
775
+ options,
776
+
777
+ async fn(middlewareArguments) {
778
+ const {
779
+ x,
780
+ y,
781
+ placement
782
+ } = middlewareArguments;
783
+ const {
784
+ mainAxis: checkMainAxis = true,
785
+ crossAxis: checkCrossAxis = false,
786
+ limiter = {
787
+ fn: _ref => {
788
+ let {
789
+ x,
790
+ y
791
+ } = _ref;
792
+ return {
793
+ x,
794
+ y
795
+ };
796
+ }
797
+ },
798
+ ...detectOverflowOptions
799
+ } = options;
800
+ const coords = {
801
+ x,
802
+ y
803
+ };
804
+ const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
805
+ const mainAxis = getMainAxisFromPlacement(getSide(placement));
806
+ const crossAxis = getCrossAxis(mainAxis);
807
+ let mainAxisCoord = coords[mainAxis];
808
+ let crossAxisCoord = coords[crossAxis];
809
+
810
+ if (checkMainAxis) {
811
+ const minSide = mainAxis === 'y' ? 'top' : 'left';
812
+ const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
813
+ const min = mainAxisCoord + overflow[minSide];
814
+ const max = mainAxisCoord - overflow[maxSide];
815
+ mainAxisCoord = within(min, mainAxisCoord, max);
816
+ }
817
+
818
+ if (checkCrossAxis) {
819
+ const minSide = crossAxis === 'y' ? 'top' : 'left';
820
+ const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
821
+ const min = crossAxisCoord + overflow[minSide];
822
+ const max = crossAxisCoord - overflow[maxSide];
823
+ crossAxisCoord = within(min, crossAxisCoord, max);
824
+ }
825
+
826
+ const limitedCoords = limiter.fn({ ...middlewareArguments,
827
+ [mainAxis]: mainAxisCoord,
828
+ [crossAxis]: crossAxisCoord
829
+ });
830
+ return { ...limitedCoords,
831
+ data: {
832
+ x: limitedCoords.x - x,
833
+ y: limitedCoords.y - y
834
+ }
835
+ };
836
+ }
837
+
838
+ };
839
+ };
840
+
841
+ function isWindow(value) {
842
+ return value && value.document && value.location && value.alert && value.setInterval;
843
+ }
844
+ function getWindow(node) {
845
+ if (node == null) {
846
+ return window;
847
+ }
848
+
849
+ if (!isWindow(node)) {
850
+ const ownerDocument = node.ownerDocument;
851
+ return ownerDocument ? ownerDocument.defaultView || window : window;
852
+ }
853
+
854
+ return node;
855
+ }
856
+
857
+ function getComputedStyle$1(element) {
858
+ return getWindow(element).getComputedStyle(element);
859
+ }
860
+
861
+ function getNodeName(node) {
862
+ return isWindow(node) ? '' : node ? (node.nodeName || '').toLowerCase() : '';
863
+ }
864
+
865
+ function getUAString() {
866
+ const uaData = navigator.userAgentData;
867
+
868
+ if (uaData != null && uaData.brands) {
869
+ return uaData.brands.map(item => item.brand + "/" + item.version).join(' ');
870
+ }
871
+
872
+ return navigator.userAgent;
873
+ }
874
+
875
+ function isHTMLElement(value) {
876
+ return value instanceof getWindow(value).HTMLElement;
877
+ }
878
+ function isElement(value) {
879
+ return value instanceof getWindow(value).Element;
880
+ }
881
+ function isNode(value) {
882
+ return value instanceof getWindow(value).Node;
883
+ }
884
+ function isShadowRoot(node) {
885
+ // Browsers without `ShadowRoot` support
886
+ if (typeof ShadowRoot === 'undefined') {
887
+ return false;
888
+ }
889
+
890
+ const OwnElement = getWindow(node).ShadowRoot;
891
+ return node instanceof OwnElement || node instanceof ShadowRoot;
892
+ }
893
+ function isOverflowElement(element) {
894
+ // Firefox wants us to check `-x` and `-y` variations as well
895
+ const {
896
+ overflow,
897
+ overflowX,
898
+ overflowY
899
+ } = getComputedStyle$1(element);
900
+ return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
901
+ }
902
+ function isTableElement(element) {
903
+ return ['table', 'td', 'th'].includes(getNodeName(element));
904
+ }
905
+ function isContainingBlock(element) {
906
+ // TODO: Try and use feature detection here instead
907
+ const isFirefox = /firefox/i.test(getUAString());
908
+ const css = getComputedStyle$1(element); // This is non-exhaustive but covers the most common CSS properties that
909
+ // create a containing block.
910
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
911
+
912
+ return css.transform !== 'none' || css.perspective !== 'none' || // @ts-ignore (TS 4.1 compat)
913
+ css.contain === 'paint' || ['transform', 'perspective'].includes(css.willChange) || isFirefox && css.willChange === 'filter' || isFirefox && (css.filter ? css.filter !== 'none' : false);
914
+ }
915
+ function isLayoutViewport() {
916
+ // Not Safari
917
+ return !/^((?!chrome|android).)*safari/i.test(getUAString()); // Feature detection for this fails in various ways
918
+ // • Always-visible scrollbar or not
919
+ // • Width of <html>, etc.
920
+ // const vV = win.visualViewport;
921
+ // return vV ? Math.abs(win.innerWidth / vV.scale - vV.width) < 0.5 : true;
922
+ }
923
+
924
+ const min = Math.min;
925
+ const max = Math.max;
926
+ const round = Math.round;
927
+
928
+ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
929
+ var _win$visualViewport$o, _win$visualViewport, _win$visualViewport$o2, _win$visualViewport2;
930
+
931
+ if (includeScale === void 0) {
932
+ includeScale = false;
933
+ }
934
+
935
+ if (isFixedStrategy === void 0) {
936
+ isFixedStrategy = false;
937
+ }
938
+
939
+ const clientRect = element.getBoundingClientRect();
940
+ let scaleX = 1;
941
+ let scaleY = 1;
942
+
943
+ if (includeScale && isHTMLElement(element)) {
944
+ scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
945
+ scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
946
+ }
947
+
948
+ const win = isElement(element) ? getWindow(element) : window;
949
+ const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
950
+ const x = (clientRect.left + (addVisualOffsets ? (_win$visualViewport$o = (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null ? _win$visualViewport$o : 0 : 0)) / scaleX;
951
+ const y = (clientRect.top + (addVisualOffsets ? (_win$visualViewport$o2 = (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null ? _win$visualViewport$o2 : 0 : 0)) / scaleY;
952
+ const width = clientRect.width / scaleX;
953
+ const height = clientRect.height / scaleY;
954
+ return {
955
+ width,
956
+ height,
957
+ top: y,
958
+ right: x + width,
959
+ bottom: y + height,
960
+ left: x,
961
+ x,
962
+ y
963
+ };
964
+ }
965
+
966
+ function getDocumentElement(node) {
967
+ return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
968
+ }
969
+
970
+ function getNodeScroll(element) {
971
+ if (isElement(element)) {
972
+ return {
973
+ scrollLeft: element.scrollLeft,
974
+ scrollTop: element.scrollTop
975
+ };
976
+ }
977
+
978
+ return {
979
+ scrollLeft: element.pageXOffset,
980
+ scrollTop: element.pageYOffset
981
+ };
982
+ }
983
+
984
+ function getWindowScrollBarX(element) {
985
+ // If <html> has a CSS width greater than the viewport, then this will be
986
+ // incorrect for RTL.
987
+ return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
988
+ }
989
+
990
+ function isScaled(element) {
991
+ const rect = getBoundingClientRect(element);
992
+ return round(rect.width) !== element.offsetWidth || round(rect.height) !== element.offsetHeight;
993
+ }
994
+
995
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
996
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
997
+ const documentElement = getDocumentElement(offsetParent);
998
+ const rect = getBoundingClientRect(element, // @ts-ignore - checked above (TS 4.1 compat)
999
+ isOffsetParentAnElement && isScaled(offsetParent), strategy === 'fixed');
1000
+ let scroll = {
1001
+ scrollLeft: 0,
1002
+ scrollTop: 0
1003
+ };
1004
+ const offsets = {
1005
+ x: 0,
1006
+ y: 0
1007
+ };
1008
+
1009
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
1010
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1011
+ scroll = getNodeScroll(offsetParent);
1012
+ }
1013
+
1014
+ if (isHTMLElement(offsetParent)) {
1015
+ const offsetRect = getBoundingClientRect(offsetParent, true);
1016
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1017
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1018
+ } else if (documentElement) {
1019
+ offsets.x = getWindowScrollBarX(documentElement);
1020
+ }
1021
+ }
1022
+
1023
+ return {
1024
+ x: rect.left + scroll.scrollLeft - offsets.x,
1025
+ y: rect.top + scroll.scrollTop - offsets.y,
1026
+ width: rect.width,
1027
+ height: rect.height
1028
+ };
1029
+ }
1030
+
1031
+ function getParentNode(node) {
1032
+ if (getNodeName(node) === 'html') {
1033
+ return node;
1034
+ }
1035
+
1036
+ return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
1037
+ // @ts-ignore
1038
+ node.assignedSlot || // step into the shadow DOM of the parent of a slotted node
1039
+ node.parentNode || ( // DOM Element detected
1040
+ isShadowRoot(node) ? node.host : null) || // ShadowRoot detected
1041
+ getDocumentElement(node) // fallback
1042
+
1043
+ );
1044
+ }
1045
+
1046
+ function getTrueOffsetParent(element) {
1047
+ if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
1048
+ return null;
1049
+ }
1050
+
1051
+ return element.offsetParent;
1052
+ }
1053
+
1054
+ function getContainingBlock(element) {
1055
+ let currentNode = getParentNode(element);
1056
+
1057
+ if (isShadowRoot(currentNode)) {
1058
+ currentNode = currentNode.host;
1059
+ }
1060
+
1061
+ while (isHTMLElement(currentNode) && !['html', 'body'].includes(getNodeName(currentNode))) {
1062
+ if (isContainingBlock(currentNode)) {
1063
+ return currentNode;
1064
+ } else {
1065
+ currentNode = currentNode.parentNode;
1066
+ }
1067
+ }
1068
+
1069
+ return null;
1070
+ } // Gets the closest ancestor positioned element. Handles some edge cases,
1071
+ // such as table ancestors and cross browser bugs.
1072
+
1073
+
1074
+ function getOffsetParent(element) {
1075
+ const window = getWindow(element);
1076
+ let offsetParent = getTrueOffsetParent(element);
1077
+
1078
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
1079
+ offsetParent = getTrueOffsetParent(offsetParent);
1080
+ }
1081
+
1082
+ if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
1083
+ return window;
1084
+ }
1085
+
1086
+ return offsetParent || getContainingBlock(element) || window;
1087
+ }
1088
+
1089
+ function getDimensions(element) {
1090
+ if (isHTMLElement(element)) {
1091
+ return {
1092
+ width: element.offsetWidth,
1093
+ height: element.offsetHeight
1094
+ };
1095
+ }
1096
+
1097
+ const rect = getBoundingClientRect(element);
1098
+ return {
1099
+ width: rect.width,
1100
+ height: rect.height
1101
+ };
1102
+ }
1103
+
1104
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
1105
+ let {
1106
+ rect,
1107
+ offsetParent,
1108
+ strategy
1109
+ } = _ref;
1110
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
1111
+ const documentElement = getDocumentElement(offsetParent);
1112
+
1113
+ if (offsetParent === documentElement) {
1114
+ return rect;
1115
+ }
1116
+
1117
+ let scroll = {
1118
+ scrollLeft: 0,
1119
+ scrollTop: 0
1120
+ };
1121
+ const offsets = {
1122
+ x: 0,
1123
+ y: 0
1124
+ };
1125
+
1126
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
1127
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1128
+ scroll = getNodeScroll(offsetParent);
1129
+ }
1130
+
1131
+ if (isHTMLElement(offsetParent)) {
1132
+ const offsetRect = getBoundingClientRect(offsetParent, true);
1133
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1134
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1135
+ } // This doesn't appear to be need to be negated.
1136
+ // else if (documentElement) {
1137
+ // offsets.x = getWindowScrollBarX(documentElement);
1138
+ // }
1139
+
1140
+ }
1141
+
1142
+ return { ...rect,
1143
+ x: rect.x - scroll.scrollLeft + offsets.x,
1144
+ y: rect.y - scroll.scrollTop + offsets.y
1145
+ };
1146
+ }
1147
+
1148
+ function getViewportRect(element, strategy) {
1149
+ const win = getWindow(element);
1150
+ const html = getDocumentElement(element);
1151
+ const visualViewport = win.visualViewport;
1152
+ let width = html.clientWidth;
1153
+ let height = html.clientHeight;
1154
+ let x = 0;
1155
+ let y = 0;
1156
+
1157
+ if (visualViewport) {
1158
+ width = visualViewport.width;
1159
+ height = visualViewport.height;
1160
+ const layoutViewport = isLayoutViewport();
1161
+
1162
+ if (layoutViewport || !layoutViewport && strategy === 'fixed') {
1163
+ x = visualViewport.offsetLeft;
1164
+ y = visualViewport.offsetTop;
1165
+ }
1166
+ }
1167
+
1168
+ return {
1169
+ width,
1170
+ height,
1171
+ x,
1172
+ y
1173
+ };
1174
+ }
1175
+
1176
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable
1177
+
1178
+ function getDocumentRect(element) {
1179
+ var _element$ownerDocumen;
1180
+
1181
+ const html = getDocumentElement(element);
1182
+ const scroll = getNodeScroll(element);
1183
+ const body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
1184
+ const width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
1185
+ const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
1186
+ let x = -scroll.scrollLeft + getWindowScrollBarX(element);
1187
+ const y = -scroll.scrollTop;
1188
+
1189
+ if (getComputedStyle$1(body || html).direction === 'rtl') {
1190
+ x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
1191
+ }
1192
+
1193
+ return {
1194
+ width,
1195
+ height,
1196
+ x,
1197
+ y
1198
+ };
1199
+ }
1200
+
1201
+ function getNearestOverflowAncestor(node) {
1202
+ const parentNode = getParentNode(node);
1203
+
1204
+ if (['html', 'body', '#document'].includes(getNodeName(parentNode))) {
1205
+ // @ts-ignore assume body is always available
1206
+ return node.ownerDocument.body;
1207
+ }
1208
+
1209
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
1210
+ return parentNode;
1211
+ }
1212
+
1213
+ return getNearestOverflowAncestor(parentNode);
1214
+ }
1215
+
1216
+ function getOverflowAncestors(node, list) {
1217
+ var _node$ownerDocument;
1218
+
1219
+ if (list === void 0) {
1220
+ list = [];
1221
+ }
1222
+
1223
+ const scrollableAncestor = getNearestOverflowAncestor(node);
1224
+ const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
1225
+ const win = getWindow(scrollableAncestor);
1226
+ const target = isBody ? [win].concat(win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []) : scrollableAncestor;
1227
+ const updatedList = list.concat(target);
1228
+ return isBody ? updatedList : // @ts-ignore: isBody tells us target will be an HTMLElement here
1229
+ updatedList.concat(getOverflowAncestors(target));
1230
+ }
1231
+
1232
+ function contains(parent, child) {
1233
+ const rootNode = child.getRootNode == null ? void 0 : child.getRootNode(); // First, attempt with faster native method
1234
+
1235
+ if (parent.contains(child)) {
1236
+ return true;
1237
+ } // then fallback to custom implementation with Shadow DOM support
1238
+ else if (rootNode && isShadowRoot(rootNode)) {
1239
+ let next = child;
1240
+
1241
+ do {
1242
+ // use `===` replace node.isSameNode()
1243
+ if (next && parent === next) {
1244
+ return true;
1245
+ } // @ts-ignore: need a better way to handle this...
1246
+
1247
+
1248
+ next = next.parentNode || next.host;
1249
+ } while (next);
1250
+ }
1251
+
1252
+ return false;
1253
+ }
1254
+
1255
+ function getInnerBoundingClientRect(element, strategy) {
1256
+ const clientRect = getBoundingClientRect(element, false, strategy === 'fixed');
1257
+ const top = clientRect.top + element.clientTop;
1258
+ const left = clientRect.left + element.clientLeft;
1259
+ return {
1260
+ top,
1261
+ left,
1262
+ x: left,
1263
+ y: top,
1264
+ right: left + element.clientWidth,
1265
+ bottom: top + element.clientHeight,
1266
+ width: element.clientWidth,
1267
+ height: element.clientHeight
1268
+ };
1269
+ }
1270
+
1271
+ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
1272
+ if (clippingParent === 'viewport') {
1273
+ return rectToClientRect(getViewportRect(element, strategy));
1274
+ }
1275
+
1276
+ if (isElement(clippingParent)) {
1277
+ return getInnerBoundingClientRect(clippingParent, strategy);
1278
+ }
1279
+
1280
+ return rectToClientRect(getDocumentRect(getDocumentElement(element)));
1281
+ } // A "clipping ancestor" is an overflowable container with the characteristic of
1282
+ // clipping (or hiding) overflowing elements with a position different from
1283
+ // `initial`
1284
+
1285
+
1286
+ function getClippingAncestors(element) {
1287
+ const clippingAncestors = getOverflowAncestors(element);
1288
+ const canEscapeClipping = ['absolute', 'fixed'].includes(getComputedStyle$1(element).position);
1289
+ const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
1290
+
1291
+ if (!isElement(clipperElement)) {
1292
+ return [];
1293
+ } // @ts-ignore isElement check ensures we return Array<Element>
1294
+
1295
+
1296
+ return clippingAncestors.filter(clippingAncestors => isElement(clippingAncestors) && contains(clippingAncestors, clipperElement) && getNodeName(clippingAncestors) !== 'body');
1297
+ } // Gets the maximum area that the element is visible in due to any number of
1298
+ // clipping ancestors
1299
+
1300
+
1301
+ function getClippingRect(_ref) {
1302
+ let {
1303
+ element,
1304
+ boundary,
1305
+ rootBoundary,
1306
+ strategy
1307
+ } = _ref;
1308
+ const mainClippingAncestors = boundary === 'clippingAncestors' ? getClippingAncestors(element) : [].concat(boundary);
1309
+ const clippingAncestors = [...mainClippingAncestors, rootBoundary];
1310
+ const firstClippingAncestor = clippingAncestors[0];
1311
+ const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
1312
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
1313
+ accRect.top = max(rect.top, accRect.top);
1314
+ accRect.right = min(rect.right, accRect.right);
1315
+ accRect.bottom = min(rect.bottom, accRect.bottom);
1316
+ accRect.left = max(rect.left, accRect.left);
1317
+ return accRect;
1318
+ }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
1319
+ return {
1320
+ width: clippingRect.right - clippingRect.left,
1321
+ height: clippingRect.bottom - clippingRect.top,
1322
+ x: clippingRect.left,
1323
+ y: clippingRect.top
1324
+ };
1325
+ }
1326
+
1327
+ const platform = {
1328
+ getClippingRect,
1329
+ convertOffsetParentRelativeRectToViewportRelativeRect,
1330
+ isElement,
1331
+ getDimensions,
1332
+ getOffsetParent,
1333
+ getDocumentElement,
1334
+ getElementRects: _ref => {
1335
+ let {
1336
+ reference,
1337
+ floating,
1338
+ strategy
1339
+ } = _ref;
1340
+ return {
1341
+ reference: getRectRelativeToOffsetParent(reference, getOffsetParent(floating), strategy),
1342
+ floating: { ...getDimensions(floating),
1343
+ x: 0,
1344
+ y: 0
1345
+ }
1346
+ };
1347
+ },
1348
+ getClientRects: element => Array.from(element.getClientRects()),
1349
+ isRTL: element => getComputedStyle$1(element).direction === 'rtl'
1350
+ };
1351
+
1352
+ /**
1353
+ * Automatically updates the position of the floating element when necessary.
1354
+ * @see https://floating-ui.com/docs/autoUpdate
1355
+ */
1356
+ function autoUpdate(reference, floating, update, options) {
1357
+ if (options === void 0) {
1358
+ options = {};
1359
+ }
1360
+
1361
+ const {
1362
+ ancestorScroll: _ancestorScroll = true,
1363
+ ancestorResize: _ancestorResize = true,
1364
+ elementResize = true,
1365
+ animationFrame = false
1366
+ } = options;
1367
+ const ancestorScroll = _ancestorScroll && !animationFrame;
1368
+ const ancestorResize = _ancestorResize && !animationFrame;
1369
+ const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : []), ...getOverflowAncestors(floating)] : [];
1370
+ ancestors.forEach(ancestor => {
1371
+ ancestorScroll && ancestor.addEventListener('scroll', update, {
1372
+ passive: true
1373
+ });
1374
+ ancestorResize && ancestor.addEventListener('resize', update);
1375
+ });
1376
+ let observer = null;
1377
+
1378
+ if (elementResize) {
1379
+ let initialUpdate = true;
1380
+ observer = new ResizeObserver(() => {
1381
+ if (!initialUpdate) {
1382
+ update();
1383
+ }
1384
+
1385
+ initialUpdate = false;
1386
+ });
1387
+ isElement(reference) && !animationFrame && observer.observe(reference);
1388
+ observer.observe(floating);
1389
+ }
1390
+
1391
+ let frameId;
1392
+ let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
1393
+
1394
+ if (animationFrame) {
1395
+ frameLoop();
1396
+ }
1397
+
1398
+ function frameLoop() {
1399
+ const nextRefRect = getBoundingClientRect(reference);
1400
+
1401
+ if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
1402
+ update();
1403
+ }
1404
+
1405
+ prevRefRect = nextRefRect;
1406
+ frameId = requestAnimationFrame(frameLoop);
1407
+ }
1408
+
1409
+ update();
1410
+ return () => {
1411
+ var _observer;
1412
+
1413
+ ancestors.forEach(ancestor => {
1414
+ ancestorScroll && ancestor.removeEventListener('scroll', update);
1415
+ ancestorResize && ancestor.removeEventListener('resize', update);
1416
+ });
1417
+ (_observer = observer) == null ? void 0 : _observer.disconnect();
1418
+ observer = null;
1419
+
1420
+ if (animationFrame) {
1421
+ cancelAnimationFrame(frameId);
1422
+ }
1423
+ };
1424
+ }
1425
+
1426
+ /**
1427
+ * Computes the `x` and `y` coordinates that will place the floating element
1428
+ * next to a reference element when it is given a certain CSS positioning
1429
+ * strategy.
1430
+ */
1431
+
1432
+ const computePosition = (reference, floating, options) => computePosition$1(reference, floating, {
1433
+ platform,
1434
+ ...options
1435
+ });
1436
+
1437
+ const effectivePlacements = [
1438
+ "top",
1439
+ "bottom",
1440
+ "right",
1441
+ "left",
1442
+ "top-start",
1443
+ "top-end",
1444
+ "bottom-start",
1445
+ "bottom-end",
1446
+ "right-start",
1447
+ "right-end",
1448
+ "left-start",
1449
+ "left-end"
1450
+ ];
1451
+ const defaultMenuPlacement = "bottom-start";
1452
+ const FloatingCSS = {
1453
+ animation: "calcite-floating-ui-anim",
1454
+ animationActive: "calcite-floating-ui-anim--active"
1455
+ };
1456
+ function getMiddleware({ placement, disableFlip, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type }) {
1457
+ const defaultMiddleware = [shift(), hide()];
1458
+ if (type === "menu") {
1459
+ return [
1460
+ ...defaultMiddleware,
1461
+ flip({ fallbackPlacements: ["top-start", "top", "top-end", "bottom-start", "bottom", "bottom-end"] })
1462
+ ];
1463
+ }
1464
+ if (type === "popover" || type === "tooltip") {
1465
+ const middleware = [
1466
+ ...defaultMiddleware,
1467
+ offset({
1468
+ mainAxis: typeof offsetDistance === "number" ? offsetDistance : 0,
1469
+ crossAxis: typeof offsetSkidding === "number" ? offsetSkidding : 0
1470
+ })
1471
+ ];
1472
+ if (placement === "auto" || placement === "auto-start" || placement === "auto-end") {
1473
+ middleware.push(autoPlacement({ alignment: placement === "auto-start" ? "start" : placement === "auto-end" ? "end" : null }));
1474
+ }
1475
+ else if (!disableFlip) {
1476
+ middleware.push(flip(flipPlacements ? { fallbackPlacements: flipPlacements } : {}));
1477
+ }
1478
+ if (arrowEl) {
1479
+ middleware.push(arrow({
1480
+ element: arrowEl
1481
+ }));
1482
+ }
1483
+ return middleware;
1484
+ }
1485
+ return [];
1486
+ }
1487
+ function filterComputedPlacements(placements, el) {
1488
+ const filteredPlacements = placements.filter((placement) => effectivePlacements.includes(placement));
1489
+ if (filteredPlacements.length !== placements.length) {
1490
+ console.warn(`${el.tagName}: Invalid value found in: flipPlacements. Try any of these: ${effectivePlacements
1491
+ .map((placement) => `"${placement}"`)
1492
+ .join(", ")
1493
+ .trim()}`, { el });
1494
+ }
1495
+ return filteredPlacements;
1496
+ }
1497
+ /*
1498
+ In floating-ui, "*-start" and "*-end" are already flipped in RTL.
1499
+ There is no need for our "*-leading" and "*-trailing" values anymore.
1500
+ https://github.com/floating-ui/floating-ui/issues/1530
1501
+ https://github.com/floating-ui/floating-ui/issues/1563
1502
+ */
1503
+ function getEffectivePlacement(floatingEl, placement) {
1504
+ const placements = ["left", "right"];
1505
+ if (dom.getElementDir(floatingEl) === "rtl") {
1506
+ placements.reverse();
1507
+ }
1508
+ return placement
1509
+ .replace(/-leading/gi, "-start")
1510
+ .replace(/-trailing/gi, "-end")
1511
+ .replace(/leading/gi, placements[0])
1512
+ .replace(/trailing/gi, placements[1]);
1513
+ }
1514
+ /**
1515
+ * Positions the floating element relative to the reference element.
1516
+ *
1517
+ * @param root0
1518
+ * @param root0.referenceEl
1519
+ * @param root0.floatingEl
1520
+ * @param root0.overlayPositioning
1521
+ * @param root0.placement
1522
+ * @param root0.disableFlip
1523
+ * @param root0.flipPlacements
1524
+ * @param root0.offsetDistance
1525
+ * @param root0.offsetSkidding
1526
+ * @param root0.arrowEl
1527
+ * @param root0.type
1528
+ */
1529
+ async function positionFloatingUI({ referenceEl, floatingEl, overlayPositioning = "absolute", placement, disableFlip, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type }) {
1530
+ var _a;
1531
+ if (!referenceEl || !floatingEl) {
1532
+ return null;
1533
+ }
1534
+ const { x, y, placement: effectivePlacement, strategy: position, middlewareData } = await computePosition(referenceEl, floatingEl, {
1535
+ strategy: overlayPositioning,
1536
+ placement: placement === "auto" || placement === "auto-start" || placement === "auto-end"
1537
+ ? undefined
1538
+ : getEffectivePlacement(floatingEl, placement),
1539
+ middleware: getMiddleware({
1540
+ placement,
1541
+ disableFlip,
1542
+ flipPlacements,
1543
+ offsetDistance,
1544
+ offsetSkidding,
1545
+ arrowEl,
1546
+ type
1547
+ })
1548
+ });
1549
+ if (middlewareData === null || middlewareData === void 0 ? void 0 : middlewareData.arrow) {
1550
+ const { x: arrowX, y: arrowY } = middlewareData.arrow;
1551
+ Object.assign(arrowEl.style, {
1552
+ left: arrowX != null ? `${arrowX}px` : "",
1553
+ top: arrowY != null ? `${arrowY}px` : ""
1554
+ });
1555
+ }
1556
+ const referenceHidden = (_a = middlewareData === null || middlewareData === void 0 ? void 0 : middlewareData.hide) === null || _a === void 0 ? void 0 : _a.referenceHidden;
1557
+ const visibility = referenceHidden ? "hidden" : null;
1558
+ const pointerEvents = visibility ? "none" : null;
1559
+ floatingEl.setAttribute("data-placement", effectivePlacement);
1560
+ const transform = `translate(${Math.round(x)}px,${Math.round(y)}px)`;
1561
+ Object.assign(floatingEl.style, {
1562
+ visibility,
1563
+ pointerEvents,
1564
+ position,
1565
+ top: "0",
1566
+ left: "0",
1567
+ transform
1568
+ });
1569
+ }
1570
+ const cleanupMap = new WeakMap();
1571
+ /**
1572
+ * Helper to set up floating element interactions on connectedCallback.
1573
+ *
1574
+ * @param component
1575
+ * @param referenceEl
1576
+ * @param floatingEl
1577
+ */
1578
+ function connectFloatingUI(component, referenceEl, floatingEl) {
1579
+ if (!floatingEl || !referenceEl) {
1580
+ return;
1581
+ }
1582
+ disconnectFloatingUI(component, referenceEl, floatingEl);
1583
+ cleanupMap.set(component, autoUpdate(referenceEl, floatingEl, () => {
1584
+ if (component.open) {
1585
+ component.reposition();
1586
+ }
1587
+ }));
1588
+ }
1589
+ /**
1590
+ * Helper to tear down floating element interactions on disconnectedCallback.
1591
+ *
1592
+ * @param component
1593
+ * @param referenceEl
1594
+ * @param floatingEl
1595
+ */
1596
+ function disconnectFloatingUI(component, referenceEl, floatingEl) {
1597
+ if (!floatingEl || !referenceEl) {
1598
+ return;
1599
+ }
1600
+ const cleanup = cleanupMap.get(component);
1601
+ if (cleanup) {
1602
+ cleanup();
1603
+ }
1604
+ cleanupMap.delete(component);
1605
+ }
1606
+ const visiblePointerSize = 4;
1607
+ /**
1608
+ * Default offset the position of the floating element away from the reference element.
1609
+ *
1610
+ * @default 6
1611
+ */
1612
+ const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePointerSize));
1613
+
1614
+ exports.FloatingCSS = FloatingCSS;
1615
+ exports.connectFloatingUI = connectFloatingUI;
1616
+ exports.defaultMenuPlacement = defaultMenuPlacement;
1617
+ exports.defaultOffsetDistance = defaultOffsetDistance;
1618
+ exports.disconnectFloatingUI = disconnectFloatingUI;
1619
+ exports.filterComputedPlacements = filterComputedPlacements;
1620
+ exports.positionFloatingUI = positionFloatingUI;