@vritti/quantum-ui 0.2.10 → 0.3.0

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 (939) hide show
  1. package/dist/Alert.js +4 -32
  2. package/dist/Alert.js.map +1 -1
  3. package/dist/AppSelector.js +37 -0
  4. package/dist/AppSelector.js.map +1 -0
  5. package/dist/Avatar.js +6 -6
  6. package/dist/Avatar.js.map +1 -1
  7. package/dist/Badge2.js +3 -3
  8. package/dist/Breadcrumb.js +125 -0
  9. package/dist/Breadcrumb.js.map +1 -0
  10. package/dist/Button.js +9 -5
  11. package/dist/Button.js.map +1 -1
  12. package/dist/Button2.js +4 -4
  13. package/dist/Button2.js.map +1 -1
  14. package/dist/Card.js +1 -1
  15. package/dist/CardSkeleton.js +17 -0
  16. package/dist/CardSkeleton.js.map +1 -0
  17. package/dist/Chart.js +6196 -6402
  18. package/dist/Chart.js.map +1 -1
  19. package/dist/Checkbox2.js +7 -6
  20. package/dist/Checkbox2.js.map +1 -1
  21. package/dist/CheckboxGroup.js +74 -0
  22. package/dist/CheckboxGroup.js.map +1 -0
  23. package/dist/CloudProviderSelector.js +37 -0
  24. package/dist/CloudProviderSelector.js.map +1 -0
  25. package/dist/Collapsible.js +8 -0
  26. package/dist/Collapsible.js.map +1 -0
  27. package/dist/Combination.js +10 -2509
  28. package/dist/Combination.js.map +1 -1
  29. package/dist/ConfirmContext.js +75 -0
  30. package/dist/ConfirmContext.js.map +1 -0
  31. package/dist/CurrencySelector.js +194 -0
  32. package/dist/CurrencySelector.js.map +1 -0
  33. package/dist/DangerZoneSkeleton.js +52 -0
  34. package/dist/DangerZoneSkeleton.js.map +1 -0
  35. package/dist/DatePicker.js +36 -18
  36. package/dist/DatePicker.js.map +1 -1
  37. package/dist/DeploymentSelector.js +37 -0
  38. package/dist/DeploymentSelector.js.map +1 -0
  39. package/dist/Dialog.js +159 -0
  40. package/dist/Dialog.js.map +1 -0
  41. package/dist/DropdownMenu.js +66 -1493
  42. package/dist/DropdownMenu.js.map +1 -1
  43. package/dist/Empty.js +49 -0
  44. package/dist/Empty.js.map +1 -0
  45. package/dist/ErrorBoundary.js +255 -0
  46. package/dist/ErrorBoundary.js.map +1 -0
  47. package/dist/FeatureSelector.js +37 -0
  48. package/dist/FeatureSelector.js.map +1 -0
  49. package/dist/FilePreview.js +194 -0
  50. package/dist/FilePreview.js.map +1 -0
  51. package/dist/Form.js +1922 -20
  52. package/dist/Form.js.map +1 -1
  53. package/dist/HierarchyGraph.js +10729 -0
  54. package/dist/HierarchyGraph.js.map +1 -0
  55. package/dist/IndustrySelector.js +37 -0
  56. package/dist/IndustrySelector.js.map +1 -0
  57. package/dist/Input.js +22 -0
  58. package/dist/Input.js.map +1 -0
  59. package/dist/Label.js +2 -22
  60. package/dist/Label.js.map +1 -1
  61. package/dist/LocaleSelector.js +111 -0
  62. package/dist/LocaleSelector.js.map +1 -0
  63. package/dist/MicrofrontendSelector.js +19 -0
  64. package/dist/MicrofrontendSelector.js.map +1 -0
  65. package/dist/OTPField.js +29 -27
  66. package/dist/OTPField.js.map +1 -1
  67. package/dist/PageHeaderSkeleton.js +35 -0
  68. package/dist/PageHeaderSkeleton.js.map +1 -0
  69. package/dist/PasswordField.js +2 -50
  70. package/dist/PasswordField.js.map +1 -1
  71. package/dist/PhoneField.js +9 -14
  72. package/dist/PhoneField.js.map +1 -1
  73. package/dist/PlanSelector.js +37 -0
  74. package/dist/PlanSelector.js.map +1 -0
  75. package/dist/Progress.js +5 -4
  76. package/dist/Progress.js.map +1 -1
  77. package/dist/RadioGroup.js +392 -0
  78. package/dist/RadioGroup.js.map +1 -0
  79. package/dist/RegionSelector.js +37 -0
  80. package/dist/RegionSelector.js.map +1 -0
  81. package/dist/Select.js +780 -0
  82. package/dist/Select.js.map +1 -0
  83. package/dist/SelectFilter.js +387 -0
  84. package/dist/SelectFilter.js.map +1 -0
  85. package/dist/Sidebar.js +616 -0
  86. package/dist/Sidebar.js.map +1 -0
  87. package/dist/SingleSelect.js +429 -0
  88. package/dist/SingleSelect.js.map +1 -0
  89. package/dist/Skeleton.js +1 -1
  90. package/dist/Sonner.js +2 -1134
  91. package/dist/Sonner.js.map +1 -1
  92. package/dist/Sortable.js +4517 -0
  93. package/dist/Sortable.js.map +1 -0
  94. package/dist/Spinner.js +1 -1
  95. package/dist/StepProgressIndicator.js +42 -0
  96. package/dist/StepProgressIndicator.js.map +1 -0
  97. package/dist/Switch.js +16 -16
  98. package/dist/Switch.js.map +1 -1
  99. package/dist/TabsSkeleton.js +188 -0
  100. package/dist/TabsSkeleton.js.map +1 -0
  101. package/dist/TextArea.js +17 -20
  102. package/dist/TextArea.js.map +1 -1
  103. package/dist/TextField.js +3 -19
  104. package/dist/TextField.js.map +1 -1
  105. package/dist/TimezoneSelector.js +144 -0
  106. package/dist/TimezoneSelector.js.map +1 -0
  107. package/dist/Toggle.js +3 -33
  108. package/dist/Toggle.js.map +1 -1
  109. package/dist/Typography.js +1 -1
  110. package/dist/UploadFile.js +232 -0
  111. package/dist/UploadFile.js.map +1 -0
  112. package/dist/ValueFilter.js +123 -0
  113. package/dist/ValueFilter.js.map +1 -0
  114. package/dist/ViewTabs.js +218 -0
  115. package/dist/ViewTabs.js.map +1 -0
  116. package/dist/_commonjsHelpers.js +3 -1
  117. package/dist/_commonjsHelpers.js.map +1 -1
  118. package/dist/assets/quantum-ui.css +808 -38
  119. package/dist/axios.js +4575 -0
  120. package/dist/axios.js.map +1 -0
  121. package/dist/circle-alert.js +19 -0
  122. package/dist/circle-alert.js.map +1 -0
  123. package/dist/circle-check.js +18 -0
  124. package/dist/circle-check.js.map +1 -0
  125. package/dist/collapsible2.js +154 -0
  126. package/dist/collapsible2.js.map +1 -0
  127. package/dist/components/Breadcrumb.js +2 -0
  128. package/dist/components/Breadcrumb.js.map +1 -0
  129. package/dist/components/Card.js +1 -0
  130. package/dist/components/Card.js.map +1 -1
  131. package/dist/components/CheckboxGroup.js +2 -0
  132. package/dist/components/CheckboxGroup.js.map +1 -0
  133. package/dist/components/Collapsible.js +2 -0
  134. package/dist/components/Collapsible.js.map +1 -0
  135. package/dist/components/DangerZone.js +2 -0
  136. package/dist/components/DangerZone.js.map +1 -0
  137. package/dist/components/DataTable.js +1 -1
  138. package/dist/components/Dialog.js +2 -0
  139. package/dist/components/Dialog.js.map +1 -0
  140. package/dist/components/DropdownMenu.js +1 -1
  141. package/dist/components/Empty.js +2 -0
  142. package/dist/components/Empty.js.map +1 -0
  143. package/dist/components/ErrorBoundary.js +2 -0
  144. package/dist/components/ErrorBoundary.js.map +1 -0
  145. package/dist/components/FilePreview.js +2 -0
  146. package/dist/components/FilePreview.js.map +1 -0
  147. package/dist/components/HierarchyGraph.js +2 -0
  148. package/dist/components/HierarchyGraph.js.map +1 -0
  149. package/dist/components/PageHeader.js +2 -0
  150. package/dist/components/PageHeader.js.map +1 -0
  151. package/dist/components/RadioGroup.js +2 -0
  152. package/dist/components/RadioGroup.js.map +1 -0
  153. package/dist/components/RichTextEditor.js +4 -0
  154. package/dist/components/RichTextEditor.js.map +1 -0
  155. package/dist/components/Select.js +6 -1356
  156. package/dist/components/Select.js.map +1 -1
  157. package/dist/components/Sidebar.js +2 -0
  158. package/dist/components/Sidebar.js.map +1 -0
  159. package/dist/components/Sortable.js +2 -0
  160. package/dist/components/Sortable.js.map +1 -0
  161. package/dist/components/StepProgressIndicator.js +2 -0
  162. package/dist/components/StepProgressIndicator.js.map +1 -0
  163. package/dist/components/Tabs.js +2 -0
  164. package/dist/components/Tabs.js.map +1 -0
  165. package/dist/components/UploadFile.js +2 -0
  166. package/dist/components/UploadFile.js.map +1 -0
  167. package/dist/components/ValueFilter.js +2 -0
  168. package/dist/components/ValueFilter.js.map +1 -0
  169. package/dist/components/ViewTabs.js +2 -0
  170. package/dist/components/ViewTabs.js.map +1 -0
  171. package/dist/context/index.js +1 -0
  172. package/dist/context/index.js.map +1 -1
  173. package/dist/dropdown-menu.js +1209 -0
  174. package/dist/dropdown-menu.js.map +1 -0
  175. package/dist/ellipsis.js +19 -0
  176. package/dist/ellipsis.js.map +1 -0
  177. package/dist/eye.js +52 -0
  178. package/dist/eye.js.map +1 -0
  179. package/dist/field.js +2 -2
  180. package/dist/file-text.js +27 -0
  181. package/dist/file-text.js.map +1 -0
  182. package/dist/grip-vertical.js +22 -0
  183. package/dist/grip-vertical.js.map +1 -0
  184. package/dist/hooks/index.js +3 -1
  185. package/dist/hooks/index.js.map +1 -1
  186. package/dist/image-component.js +614 -0
  187. package/dist/image-component.js.map +1 -0
  188. package/dist/index.js +48 -12
  189. package/dist/index.js.map +1 -1
  190. package/dist/index10.js +181 -11
  191. package/dist/index10.js.map +1 -1
  192. package/dist/index11.js +177 -4
  193. package/dist/index11.js.map +1 -1
  194. package/dist/index12.js +17 -38
  195. package/dist/index12.js.map +1 -1
  196. package/dist/index13.js +204 -188
  197. package/dist/index13.js.map +1 -1
  198. package/dist/index14.js +124 -192
  199. package/dist/index14.js.map +1 -1
  200. package/dist/index15.js +79 -0
  201. package/dist/index15.js.map +1 -0
  202. package/dist/index16.js +16 -0
  203. package/dist/index16.js.map +1 -0
  204. package/dist/index17.js +1137 -0
  205. package/dist/index17.js.map +1 -0
  206. package/dist/index18.js +41 -0
  207. package/dist/index18.js.map +1 -0
  208. package/dist/index19.js +314 -0
  209. package/dist/index19.js.map +1 -0
  210. package/dist/index2.js +54030 -59
  211. package/dist/index2.js.map +1 -1
  212. package/dist/index20.js +488 -0
  213. package/dist/index20.js.map +1 -0
  214. package/dist/index21.js +2540 -0
  215. package/dist/index21.js.map +1 -0
  216. package/dist/index22.js +36 -0
  217. package/dist/index22.js.map +1 -0
  218. package/dist/index23.js +13 -0
  219. package/dist/index23.js.map +1 -0
  220. package/dist/index24.js +8 -0
  221. package/dist/index24.js.map +1 -0
  222. package/dist/index25.js +35 -0
  223. package/dist/index25.js.map +1 -0
  224. package/dist/index26.js +65 -0
  225. package/dist/index26.js.map +1 -0
  226. package/dist/index27.js +16 -0
  227. package/dist/index27.js.map +1 -0
  228. package/dist/index28.js +41 -0
  229. package/dist/index28.js.map +1 -0
  230. package/dist/index29.js +84 -0
  231. package/dist/index29.js.map +1 -0
  232. package/dist/index3.js +41 -61
  233. package/dist/index3.js.map +1 -1
  234. package/dist/index30.js +199 -0
  235. package/dist/index30.js.map +1 -0
  236. package/dist/index4.js +290 -92
  237. package/dist/index4.js.map +1 -1
  238. package/dist/index5.js +102 -42
  239. package/dist/index5.js.map +1 -1
  240. package/dist/index6.js +35 -8
  241. package/dist/index6.js.map +1 -1
  242. package/dist/index7.js +1141 -110
  243. package/dist/index7.js.map +1 -1
  244. package/dist/index8.js +19 -34
  245. package/dist/index8.js.map +1 -1
  246. package/dist/index9.js +27 -4
  247. package/dist/index9.js.map +1 -1
  248. package/dist/lib/components/Breadcrumb/Breadcrumb.d.ts +17 -0
  249. package/dist/lib/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
  250. package/dist/lib/components/Breadcrumb/index.d.ts +4 -0
  251. package/dist/lib/components/Breadcrumb/index.d.ts.map +1 -0
  252. package/dist/lib/components/Button/Button.d.ts +3 -1
  253. package/dist/lib/components/Button/Button.d.ts.map +1 -1
  254. package/dist/lib/components/Card/CardSkeleton.d.ts +9 -0
  255. package/dist/lib/components/Card/CardSkeleton.d.ts.map +1 -0
  256. package/dist/lib/components/Card/index.d.ts +1 -0
  257. package/dist/lib/components/Card/index.d.ts.map +1 -1
  258. package/dist/lib/components/Chart/Chart.d.ts +1 -1
  259. package/dist/lib/components/Chart/Chart.d.ts.map +1 -1
  260. package/dist/lib/components/CheckboxGroup/CheckboxGroup.d.ts +24 -0
  261. package/dist/lib/components/CheckboxGroup/CheckboxGroup.d.ts.map +1 -0
  262. package/dist/lib/components/CheckboxGroup/index.d.ts +3 -0
  263. package/dist/lib/components/CheckboxGroup/index.d.ts.map +1 -0
  264. package/dist/lib/components/Collapsible/Collapsible.d.ts +5 -0
  265. package/dist/lib/components/Collapsible/Collapsible.d.ts.map +1 -0
  266. package/dist/lib/components/Collapsible/index.d.ts +2 -0
  267. package/dist/lib/components/Collapsible/index.d.ts.map +1 -0
  268. package/dist/lib/components/DangerZone/DangerZone.d.ts +13 -0
  269. package/dist/lib/components/DangerZone/DangerZone.d.ts.map +1 -0
  270. package/dist/lib/components/DangerZone/DangerZoneSkeleton.d.ts +9 -0
  271. package/dist/lib/components/DangerZone/DangerZoneSkeleton.d.ts.map +1 -0
  272. package/dist/lib/components/DangerZone/index.d.ts +4 -0
  273. package/dist/lib/components/DangerZone/index.d.ts.map +1 -0
  274. package/dist/lib/components/DataTable/DataTable.d.ts +2 -11
  275. package/dist/lib/components/DataTable/DataTable.d.ts.map +1 -1
  276. package/dist/lib/components/DataTable/components/DataTableColumnHeader.d.ts.map +1 -1
  277. package/dist/lib/components/DataTable/components/DataTableEmpty.d.ts.map +1 -1
  278. package/dist/lib/components/DataTable/components/DataTableFilters.d.ts +11 -0
  279. package/dist/lib/components/DataTable/components/DataTableFilters.d.ts.map +1 -0
  280. package/dist/lib/components/DataTable/components/DataTableImportDialog.d.ts +16 -0
  281. package/dist/lib/components/DataTable/components/DataTableImportDialog.d.ts.map +1 -0
  282. package/dist/lib/components/DataTable/components/DataTablePagination.d.ts +1 -2
  283. package/dist/lib/components/DataTable/components/DataTablePagination.d.ts.map +1 -1
  284. package/dist/lib/components/DataTable/components/DataTableRowDensity.d.ts +11 -0
  285. package/dist/lib/components/DataTable/components/DataTableRowDensity.d.ts.map +1 -0
  286. package/dist/lib/components/DataTable/components/DataTableSearch.d.ts +14 -0
  287. package/dist/lib/components/DataTable/components/DataTableSearch.d.ts.map +1 -0
  288. package/dist/lib/components/DataTable/components/DataTableSelectionBar.d.ts +14 -0
  289. package/dist/lib/components/DataTable/components/DataTableSelectionBar.d.ts.map +1 -0
  290. package/dist/lib/components/DataTable/components/DataTableViewOptions.d.ts.map +1 -1
  291. package/dist/lib/components/DataTable/components/DataTableViewTabs.d.ts +7 -0
  292. package/dist/lib/components/DataTable/components/DataTableViewTabs.d.ts.map +1 -0
  293. package/dist/lib/components/DataTable/components/DataTableViewsMenu.d.ts +14 -0
  294. package/dist/lib/components/DataTable/components/DataTableViewsMenu.d.ts.map +1 -0
  295. package/dist/lib/components/DataTable/components/FilterWrapper.d.ts +21 -0
  296. package/dist/lib/components/DataTable/components/FilterWrapper.d.ts.map +1 -0
  297. package/dist/lib/components/DataTable/components/RowActions.d.ts +20 -0
  298. package/dist/lib/components/DataTable/components/RowActions.d.ts.map +1 -0
  299. package/dist/lib/components/DataTable/hooks/useAutoUpsert.d.ts +3 -0
  300. package/dist/lib/components/DataTable/hooks/useAutoUpsert.d.ts.map +1 -0
  301. package/dist/lib/components/DataTable/hooks/useDataTable.d.ts +24 -2
  302. package/dist/lib/components/DataTable/hooks/useDataTable.d.ts.map +1 -1
  303. package/dist/lib/components/DataTable/index.d.ts +11 -3
  304. package/dist/lib/components/DataTable/index.d.ts.map +1 -1
  305. package/dist/lib/components/DataTable/store/store.d.ts +28 -0
  306. package/dist/lib/components/DataTable/store/store.d.ts.map +1 -0
  307. package/dist/lib/components/DataTable/store/useTableSlice.d.ts +18 -0
  308. package/dist/lib/components/DataTable/store/useTableSlice.d.ts.map +1 -0
  309. package/dist/lib/components/DataTable/types.d.ts +55 -56
  310. package/dist/lib/components/DataTable/types.d.ts.map +1 -1
  311. package/dist/lib/components/DataTable/utils.d.ts +8 -1
  312. package/dist/lib/components/DataTable/utils.d.ts.map +1 -1
  313. package/dist/lib/components/DatePicker/DatePicker.d.ts +1 -1
  314. package/dist/lib/components/DatePicker/DatePicker.d.ts.map +1 -1
  315. package/dist/lib/components/Dialog/Dialog.d.ts +31 -0
  316. package/dist/lib/components/Dialog/Dialog.d.ts.map +1 -0
  317. package/dist/lib/components/Dialog/index.d.ts +3 -0
  318. package/dist/lib/components/Dialog/index.d.ts.map +1 -0
  319. package/dist/lib/components/DropdownMenu/DropdownMenu.d.ts +1 -1
  320. package/dist/lib/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  321. package/dist/lib/components/DropdownMenu/types.d.ts +10 -1
  322. package/dist/lib/components/DropdownMenu/types.d.ts.map +1 -1
  323. package/dist/lib/components/Editor/context/editor-config-context.d.ts +9 -0
  324. package/dist/lib/components/Editor/context/editor-config-context.d.ts.map +1 -0
  325. package/dist/lib/components/Editor/context/toolbar-context.d.ts +18 -0
  326. package/dist/lib/components/Editor/context/toolbar-context.d.ts.map +1 -0
  327. package/dist/lib/components/Editor/editor-hooks/use-debounce.d.ts +2 -0
  328. package/dist/lib/components/Editor/editor-hooks/use-debounce.d.ts.map +1 -0
  329. package/dist/lib/components/Editor/editor-hooks/use-modal.d.ts +6 -0
  330. package/dist/lib/components/Editor/editor-hooks/use-modal.d.ts.map +1 -0
  331. package/dist/lib/components/Editor/editor-hooks/use-report.d.ts +2 -0
  332. package/dist/lib/components/Editor/editor-hooks/use-report.d.ts.map +1 -0
  333. package/dist/lib/components/Editor/editor-hooks/use-update-toolbar.d.ts +3 -0
  334. package/dist/lib/components/Editor/editor-hooks/use-update-toolbar.d.ts.map +1 -0
  335. package/dist/lib/components/Editor/editor-ui/button-group.d.ts +12 -0
  336. package/dist/lib/components/Editor/editor-ui/button-group.d.ts.map +1 -0
  337. package/dist/lib/components/Editor/editor-ui/button.d.ts +11 -0
  338. package/dist/lib/components/Editor/editor-ui/button.d.ts.map +1 -0
  339. package/dist/lib/components/Editor/editor-ui/code-button.d.ts +8 -0
  340. package/dist/lib/components/Editor/editor-ui/code-button.d.ts.map +1 -0
  341. package/dist/lib/components/Editor/editor-ui/color-picker.d.ts +92 -0
  342. package/dist/lib/components/Editor/editor-ui/color-picker.d.ts.map +1 -0
  343. package/dist/lib/components/Editor/editor-ui/command.d.ts +19 -0
  344. package/dist/lib/components/Editor/editor-ui/command.d.ts.map +1 -0
  345. package/dist/lib/components/Editor/editor-ui/content-editable.d.ts +9 -0
  346. package/dist/lib/components/Editor/editor-ui/content-editable.d.ts.map +1 -0
  347. package/dist/lib/components/Editor/editor-ui/dialog.d.ts +16 -0
  348. package/dist/lib/components/Editor/editor-ui/dialog.d.ts.map +1 -0
  349. package/dist/lib/components/Editor/editor-ui/image-component.d.ts +16 -0
  350. package/dist/lib/components/Editor/editor-ui/image-component.d.ts.map +1 -0
  351. package/dist/lib/components/Editor/editor-ui/image-resizer.d.ts +18 -0
  352. package/dist/lib/components/Editor/editor-ui/image-resizer.d.ts.map +1 -0
  353. package/dist/lib/components/Editor/editor-ui/input.d.ts +4 -0
  354. package/dist/lib/components/Editor/editor-ui/input.d.ts.map +1 -0
  355. package/dist/lib/components/Editor/editor-ui/label.d.ts +5 -0
  356. package/dist/lib/components/Editor/editor-ui/label.d.ts.map +1 -0
  357. package/dist/lib/components/Editor/editor-ui/popover.d.ts +8 -0
  358. package/dist/lib/components/Editor/editor-ui/popover.d.ts.map +1 -0
  359. package/dist/lib/components/Editor/editor-ui/scroll-area.d.ts +6 -0
  360. package/dist/lib/components/Editor/editor-ui/scroll-area.d.ts.map +1 -0
  361. package/dist/lib/components/Editor/editor-ui/select.d.ts +16 -0
  362. package/dist/lib/components/Editor/editor-ui/select.d.ts.map +1 -0
  363. package/dist/lib/components/Editor/editor-ui/separator.d.ts +5 -0
  364. package/dist/lib/components/Editor/editor-ui/separator.d.ts.map +1 -0
  365. package/dist/lib/components/Editor/editor-ui/tabs.d.ts +8 -0
  366. package/dist/lib/components/Editor/editor-ui/tabs.d.ts.map +1 -0
  367. package/dist/lib/components/Editor/editor-ui/toggle-group.d.ts +8 -0
  368. package/dist/lib/components/Editor/editor-ui/toggle-group.d.ts.map +1 -0
  369. package/dist/lib/components/Editor/editor-ui/toggle.d.ts +10 -0
  370. package/dist/lib/components/Editor/editor-ui/toggle.d.ts.map +1 -0
  371. package/dist/lib/components/Editor/editor-ui/tooltip.d.ts +8 -0
  372. package/dist/lib/components/Editor/editor-ui/tooltip.d.ts.map +1 -0
  373. package/dist/lib/components/Editor/index.d.ts +4 -0
  374. package/dist/lib/components/Editor/index.d.ts.map +1 -0
  375. package/dist/lib/components/Editor/nodes/autocomplete-node.d.ts +19 -0
  376. package/dist/lib/components/Editor/nodes/autocomplete-node.d.ts.map +1 -0
  377. package/dist/lib/components/Editor/nodes/embeds/tweet-node.d.ts +22 -0
  378. package/dist/lib/components/Editor/nodes/embeds/tweet-node.d.ts.map +1 -0
  379. package/dist/lib/components/Editor/nodes/embeds/youtube-node.d.ts +23 -0
  380. package/dist/lib/components/Editor/nodes/embeds/youtube-node.d.ts.map +1 -0
  381. package/dist/lib/components/Editor/nodes/emoji-node.d.ts +18 -0
  382. package/dist/lib/components/Editor/nodes/emoji-node.d.ts.map +1 -0
  383. package/dist/lib/components/Editor/nodes/image-node.d.ts +49 -0
  384. package/dist/lib/components/Editor/nodes/image-node.d.ts.map +1 -0
  385. package/dist/lib/components/Editor/nodes/keyword-node.d.ts +15 -0
  386. package/dist/lib/components/Editor/nodes/keyword-node.d.ts.map +1 -0
  387. package/dist/lib/components/Editor/nodes/layout-container-node.d.ts +23 -0
  388. package/dist/lib/components/Editor/nodes/layout-container-node.d.ts.map +1 -0
  389. package/dist/lib/components/Editor/nodes/layout-item-node.d.ts +15 -0
  390. package/dist/lib/components/Editor/nodes/layout-item-node.d.ts.map +1 -0
  391. package/dist/lib/components/Editor/nodes/mention-node.d.ts +21 -0
  392. package/dist/lib/components/Editor/nodes/mention-node.d.ts.map +1 -0
  393. package/dist/lib/components/Editor/nodes/nodes.d.ts +3 -0
  394. package/dist/lib/components/Editor/nodes/nodes.d.ts.map +1 -0
  395. package/dist/lib/components/Editor/nodes.d.ts +2 -0
  396. package/dist/lib/components/Editor/nodes.d.ts.map +1 -0
  397. package/dist/lib/components/Editor/plugins/actions/actions-plugin.d.ts +4 -0
  398. package/dist/lib/components/Editor/plugins/actions/actions-plugin.d.ts.map +1 -0
  399. package/dist/lib/components/Editor/plugins/actions/character-limit-plugin.d.ts +5 -0
  400. package/dist/lib/components/Editor/plugins/actions/character-limit-plugin.d.ts.map +1 -0
  401. package/dist/lib/components/Editor/plugins/actions/clear-editor-plugin.d.ts +2 -0
  402. package/dist/lib/components/Editor/plugins/actions/clear-editor-plugin.d.ts.map +1 -0
  403. package/dist/lib/components/Editor/plugins/actions/counter-character-plugin.d.ts +6 -0
  404. package/dist/lib/components/Editor/plugins/actions/counter-character-plugin.d.ts.map +1 -0
  405. package/dist/lib/components/Editor/plugins/actions/edit-mode-toggle-plugin.d.ts +2 -0
  406. package/dist/lib/components/Editor/plugins/actions/edit-mode-toggle-plugin.d.ts.map +1 -0
  407. package/dist/lib/components/Editor/plugins/actions/import-export-plugin.d.ts +2 -0
  408. package/dist/lib/components/Editor/plugins/actions/import-export-plugin.d.ts.map +1 -0
  409. package/dist/lib/components/Editor/plugins/actions/markdown-toggle-plugin.d.ts +6 -0
  410. package/dist/lib/components/Editor/plugins/actions/markdown-toggle-plugin.d.ts.map +1 -0
  411. package/dist/lib/components/Editor/plugins/actions/max-length-plugin.d.ts +4 -0
  412. package/dist/lib/components/Editor/plugins/actions/max-length-plugin.d.ts.map +1 -0
  413. package/dist/lib/components/Editor/plugins/actions/share-content-plugin.d.ts +2 -0
  414. package/dist/lib/components/Editor/plugins/actions/share-content-plugin.d.ts.map +1 -0
  415. package/dist/lib/components/Editor/plugins/actions/speech-to-text-plugin.d.ts +7 -0
  416. package/dist/lib/components/Editor/plugins/actions/speech-to-text-plugin.d.ts.map +1 -0
  417. package/dist/lib/components/Editor/plugins/actions/tree-view-plugin.d.ts +3 -0
  418. package/dist/lib/components/Editor/plugins/actions/tree-view-plugin.d.ts.map +1 -0
  419. package/dist/lib/components/Editor/plugins/auto-link-plugin.d.ts +3 -0
  420. package/dist/lib/components/Editor/plugins/auto-link-plugin.d.ts.map +1 -0
  421. package/dist/lib/components/Editor/plugins/autocomplete-plugin.d.ts +11 -0
  422. package/dist/lib/components/Editor/plugins/autocomplete-plugin.d.ts.map +1 -0
  423. package/dist/lib/components/Editor/plugins/code-action-menu-plugin.d.ts +4 -0
  424. package/dist/lib/components/Editor/plugins/code-action-menu-plugin.d.ts.map +1 -0
  425. package/dist/lib/components/Editor/plugins/code-highlight-plugin.d.ts +3 -0
  426. package/dist/lib/components/Editor/plugins/code-highlight-plugin.d.ts.map +1 -0
  427. package/dist/lib/components/Editor/plugins/component-picker-menu-plugin.d.ts +9 -0
  428. package/dist/lib/components/Editor/plugins/component-picker-menu-plugin.d.ts.map +1 -0
  429. package/dist/lib/components/Editor/plugins/context-menu-plugin.d.ts +3 -0
  430. package/dist/lib/components/Editor/plugins/context-menu-plugin.d.ts.map +1 -0
  431. package/dist/lib/components/Editor/plugins/drag-drop-paste-plugin.d.ts +2 -0
  432. package/dist/lib/components/Editor/plugins/drag-drop-paste-plugin.d.ts.map +1 -0
  433. package/dist/lib/components/Editor/plugins/draggable-block-plugin.d.ts +5 -0
  434. package/dist/lib/components/Editor/plugins/draggable-block-plugin.d.ts.map +1 -0
  435. package/dist/lib/components/Editor/plugins/embeds/auto-embed-plugin.d.ts +18 -0
  436. package/dist/lib/components/Editor/plugins/embeds/auto-embed-plugin.d.ts.map +1 -0
  437. package/dist/lib/components/Editor/plugins/embeds/twitter-plugin.d.ts +5 -0
  438. package/dist/lib/components/Editor/plugins/embeds/twitter-plugin.d.ts.map +1 -0
  439. package/dist/lib/components/Editor/plugins/embeds/youtube-plugin.d.ts +5 -0
  440. package/dist/lib/components/Editor/plugins/embeds/youtube-plugin.d.ts.map +1 -0
  441. package/dist/lib/components/Editor/plugins/emoji-picker-plugin.d.ts +2 -0
  442. package/dist/lib/components/Editor/plugins/emoji-picker-plugin.d.ts.map +1 -0
  443. package/dist/lib/components/Editor/plugins/emojis-plugin.d.ts +3 -0
  444. package/dist/lib/components/Editor/plugins/emojis-plugin.d.ts.map +1 -0
  445. package/dist/lib/components/Editor/plugins/floating-link-editor-plugin.d.ts +7 -0
  446. package/dist/lib/components/Editor/plugins/floating-link-editor-plugin.d.ts.map +1 -0
  447. package/dist/lib/components/Editor/plugins/floating-text-format-plugin.d.ts +7 -0
  448. package/dist/lib/components/Editor/plugins/floating-text-format-plugin.d.ts.map +1 -0
  449. package/dist/lib/components/Editor/plugins/images-plugin.d.ts +25 -0
  450. package/dist/lib/components/Editor/plugins/images-plugin.d.ts.map +1 -0
  451. package/dist/lib/components/Editor/plugins/keywords-plugin.d.ts +3 -0
  452. package/dist/lib/components/Editor/plugins/keywords-plugin.d.ts.map +1 -0
  453. package/dist/lib/components/Editor/plugins/layout-plugin.d.ts +13 -0
  454. package/dist/lib/components/Editor/plugins/layout-plugin.d.ts.map +1 -0
  455. package/dist/lib/components/Editor/plugins/link-plugin.d.ts +3 -0
  456. package/dist/lib/components/Editor/plugins/link-plugin.d.ts.map +1 -0
  457. package/dist/lib/components/Editor/plugins/list-max-indent-level-plugin.d.ts +4 -0
  458. package/dist/lib/components/Editor/plugins/list-max-indent-level-plugin.d.ts.map +1 -0
  459. package/dist/lib/components/Editor/plugins/mentions-plugin.d.ts +3 -0
  460. package/dist/lib/components/Editor/plugins/mentions-plugin.d.ts.map +1 -0
  461. package/dist/lib/components/Editor/plugins/picker/alignment-picker-plugin.d.ts +5 -0
  462. package/dist/lib/components/Editor/plugins/picker/alignment-picker-plugin.d.ts.map +1 -0
  463. package/dist/lib/components/Editor/plugins/picker/bulleted-list-picker-plugin.d.ts +3 -0
  464. package/dist/lib/components/Editor/plugins/picker/bulleted-list-picker-plugin.d.ts.map +1 -0
  465. package/dist/lib/components/Editor/plugins/picker/check-list-picker-plugin.d.ts +3 -0
  466. package/dist/lib/components/Editor/plugins/picker/check-list-picker-plugin.d.ts.map +1 -0
  467. package/dist/lib/components/Editor/plugins/picker/code-picker-plugin.d.ts +3 -0
  468. package/dist/lib/components/Editor/plugins/picker/code-picker-plugin.d.ts.map +1 -0
  469. package/dist/lib/components/Editor/plugins/picker/columns-layout-picker-plugin.d.ts +3 -0
  470. package/dist/lib/components/Editor/plugins/picker/columns-layout-picker-plugin.d.ts.map +1 -0
  471. package/dist/lib/components/Editor/plugins/picker/component-picker-menu-plugin.d.ts +2 -0
  472. package/dist/lib/components/Editor/plugins/picker/component-picker-menu-plugin.d.ts.map +1 -0
  473. package/dist/lib/components/Editor/plugins/picker/component-picker-option.d.ts +17 -0
  474. package/dist/lib/components/Editor/plugins/picker/component-picker-option.d.ts.map +1 -0
  475. package/dist/lib/components/Editor/plugins/picker/divider-picker-plugin.d.ts +3 -0
  476. package/dist/lib/components/Editor/plugins/picker/divider-picker-plugin.d.ts.map +1 -0
  477. package/dist/lib/components/Editor/plugins/picker/embeds-picker-plugin.d.ts +5 -0
  478. package/dist/lib/components/Editor/plugins/picker/embeds-picker-plugin.d.ts.map +1 -0
  479. package/dist/lib/components/Editor/plugins/picker/heading-picker-plugin.d.ts +5 -0
  480. package/dist/lib/components/Editor/plugins/picker/heading-picker-plugin.d.ts.map +1 -0
  481. package/dist/lib/components/Editor/plugins/picker/image-picker-plugin.d.ts +3 -0
  482. package/dist/lib/components/Editor/plugins/picker/image-picker-plugin.d.ts.map +1 -0
  483. package/dist/lib/components/Editor/plugins/picker/numbered-list-picker-plugin.d.ts +3 -0
  484. package/dist/lib/components/Editor/plugins/picker/numbered-list-picker-plugin.d.ts.map +1 -0
  485. package/dist/lib/components/Editor/plugins/picker/paragraph-picker-plugin.d.ts +3 -0
  486. package/dist/lib/components/Editor/plugins/picker/paragraph-picker-plugin.d.ts.map +1 -0
  487. package/dist/lib/components/Editor/plugins/picker/quote-picker-plugin.d.ts +3 -0
  488. package/dist/lib/components/Editor/plugins/picker/quote-picker-plugin.d.ts.map +1 -0
  489. package/dist/lib/components/Editor/plugins/picker/table-picker-plugin.d.ts +6 -0
  490. package/dist/lib/components/Editor/plugins/picker/table-picker-plugin.d.ts.map +1 -0
  491. package/dist/lib/components/Editor/plugins/plugins.d.ts +2 -0
  492. package/dist/lib/components/Editor/plugins/plugins.d.ts.map +1 -0
  493. package/dist/lib/components/Editor/plugins/tab-focus-plugin.d.ts +2 -0
  494. package/dist/lib/components/Editor/plugins/tab-focus-plugin.d.ts.map +1 -0
  495. package/dist/lib/components/Editor/plugins/table-plugin.d.ts +34 -0
  496. package/dist/lib/components/Editor/plugins/table-plugin.d.ts.map +1 -0
  497. package/dist/lib/components/Editor/plugins/toolbar/block-format/block-format-data.d.ts +5 -0
  498. package/dist/lib/components/Editor/plugins/toolbar/block-format/block-format-data.d.ts.map +1 -0
  499. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-bulleted-list.d.ts +2 -0
  500. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-bulleted-list.d.ts.map +1 -0
  501. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-check-list.d.ts +2 -0
  502. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-check-list.d.ts.map +1 -0
  503. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-code-block.d.ts +2 -0
  504. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-code-block.d.ts.map +1 -0
  505. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-heading.d.ts +5 -0
  506. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-heading.d.ts.map +1 -0
  507. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-numbered-list.d.ts +2 -0
  508. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-numbered-list.d.ts.map +1 -0
  509. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-paragraph.d.ts +2 -0
  510. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-paragraph.d.ts.map +1 -0
  511. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-quote.d.ts +2 -0
  512. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-quote.d.ts.map +1 -0
  513. package/dist/lib/components/Editor/plugins/toolbar/block-format-toolbar-plugin.d.ts +4 -0
  514. package/dist/lib/components/Editor/plugins/toolbar/block-format-toolbar-plugin.d.ts.map +1 -0
  515. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-columns-layout.d.ts +2 -0
  516. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-columns-layout.d.ts.map +1 -0
  517. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-embeds.d.ts +2 -0
  518. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-embeds.d.ts.map +1 -0
  519. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-horizontal-rule.d.ts +2 -0
  520. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-horizontal-rule.d.ts.map +1 -0
  521. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-image.d.ts +2 -0
  522. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-image.d.ts.map +1 -0
  523. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-table.d.ts +2 -0
  524. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-table.d.ts.map +1 -0
  525. package/dist/lib/components/Editor/plugins/toolbar/block-insert-plugin.d.ts +4 -0
  526. package/dist/lib/components/Editor/plugins/toolbar/block-insert-plugin.d.ts.map +1 -0
  527. package/dist/lib/components/Editor/plugins/toolbar/clear-formatting-toolbar-plugin.d.ts +2 -0
  528. package/dist/lib/components/Editor/plugins/toolbar/clear-formatting-toolbar-plugin.d.ts.map +1 -0
  529. package/dist/lib/components/Editor/plugins/toolbar/code-language-toolbar-plugin.d.ts +2 -0
  530. package/dist/lib/components/Editor/plugins/toolbar/code-language-toolbar-plugin.d.ts.map +1 -0
  531. package/dist/lib/components/Editor/plugins/toolbar/element-format-toolbar-plugin.d.ts +4 -0
  532. package/dist/lib/components/Editor/plugins/toolbar/element-format-toolbar-plugin.d.ts.map +1 -0
  533. package/dist/lib/components/Editor/plugins/toolbar/font-background-toolbar-plugin.d.ts +2 -0
  534. package/dist/lib/components/Editor/plugins/toolbar/font-background-toolbar-plugin.d.ts.map +1 -0
  535. package/dist/lib/components/Editor/plugins/toolbar/font-color-toolbar-plugin.d.ts +2 -0
  536. package/dist/lib/components/Editor/plugins/toolbar/font-color-toolbar-plugin.d.ts.map +1 -0
  537. package/dist/lib/components/Editor/plugins/toolbar/font-family-toolbar-plugin.d.ts +2 -0
  538. package/dist/lib/components/Editor/plugins/toolbar/font-family-toolbar-plugin.d.ts.map +1 -0
  539. package/dist/lib/components/Editor/plugins/toolbar/font-format-toolbar-plugin.d.ts +2 -0
  540. package/dist/lib/components/Editor/plugins/toolbar/font-format-toolbar-plugin.d.ts.map +1 -0
  541. package/dist/lib/components/Editor/plugins/toolbar/font-size-toolbar-plugin.d.ts +2 -0
  542. package/dist/lib/components/Editor/plugins/toolbar/font-size-toolbar-plugin.d.ts.map +1 -0
  543. package/dist/lib/components/Editor/plugins/toolbar/history-toolbar-plugin.d.ts +2 -0
  544. package/dist/lib/components/Editor/plugins/toolbar/history-toolbar-plugin.d.ts.map +1 -0
  545. package/dist/lib/components/Editor/plugins/toolbar/horizontal-rule-toolbar-plugin.d.ts +2 -0
  546. package/dist/lib/components/Editor/plugins/toolbar/horizontal-rule-toolbar-plugin.d.ts.map +1 -0
  547. package/dist/lib/components/Editor/plugins/toolbar/image-toolbar-plugin.d.ts +2 -0
  548. package/dist/lib/components/Editor/plugins/toolbar/image-toolbar-plugin.d.ts.map +1 -0
  549. package/dist/lib/components/Editor/plugins/toolbar/link-toolbar-plugin.d.ts +4 -0
  550. package/dist/lib/components/Editor/plugins/toolbar/link-toolbar-plugin.d.ts.map +1 -0
  551. package/dist/lib/components/Editor/plugins/toolbar/subsuper-toolbar-plugin.d.ts +2 -0
  552. package/dist/lib/components/Editor/plugins/toolbar/subsuper-toolbar-plugin.d.ts.map +1 -0
  553. package/dist/lib/components/Editor/plugins/toolbar/table-toolbar-plugin.d.ts +2 -0
  554. package/dist/lib/components/Editor/plugins/toolbar/table-toolbar-plugin.d.ts.map +1 -0
  555. package/dist/lib/components/Editor/plugins/toolbar/toolbar-plugin.d.ts +6 -0
  556. package/dist/lib/components/Editor/plugins/toolbar/toolbar-plugin.d.ts.map +1 -0
  557. package/dist/lib/components/Editor/plugins/typing-pref-plugin.d.ts +4 -0
  558. package/dist/lib/components/Editor/plugins/typing-pref-plugin.d.ts.map +1 -0
  559. package/dist/lib/components/Editor/plugins.d.ts +2 -0
  560. package/dist/lib/components/Editor/plugins.d.ts.map +1 -0
  561. package/dist/lib/components/Editor/shared/can-use-dom.d.ts +2 -0
  562. package/dist/lib/components/Editor/shared/can-use-dom.d.ts.map +1 -0
  563. package/dist/lib/components/Editor/shared/caret-from-point.d.ts +5 -0
  564. package/dist/lib/components/Editor/shared/caret-from-point.d.ts.map +1 -0
  565. package/dist/lib/components/Editor/shared/environment.d.ts +18 -0
  566. package/dist/lib/components/Editor/shared/environment.d.ts.map +1 -0
  567. package/dist/lib/components/Editor/shared/invariant.d.ts +2 -0
  568. package/dist/lib/components/Editor/shared/invariant.d.ts.map +1 -0
  569. package/dist/lib/components/Editor/shared/normalize-class-names.d.ts +2 -0
  570. package/dist/lib/components/Editor/shared/normalize-class-names.d.ts.map +1 -0
  571. package/dist/lib/components/Editor/shared/react-patches.d.ts +2 -0
  572. package/dist/lib/components/Editor/shared/react-patches.d.ts.map +1 -0
  573. package/dist/lib/components/Editor/shared/react-test-utils.d.ts +3 -0
  574. package/dist/lib/components/Editor/shared/react-test-utils.d.ts.map +1 -0
  575. package/dist/lib/components/Editor/shared/simple-diff-with-cursor.d.ts +6 -0
  576. package/dist/lib/components/Editor/shared/simple-diff-with-cursor.d.ts.map +1 -0
  577. package/dist/lib/components/Editor/shared/use-layout-effect.d.ts +4 -0
  578. package/dist/lib/components/Editor/shared/use-layout-effect.d.ts.map +1 -0
  579. package/dist/lib/components/Editor/shared/warn-only-once.d.ts +2 -0
  580. package/dist/lib/components/Editor/shared/warn-only-once.d.ts.map +1 -0
  581. package/dist/lib/components/Editor/themes/editor-theme.d.ts +3 -0
  582. package/dist/lib/components/Editor/themes/editor-theme.d.ts.map +1 -0
  583. package/dist/lib/components/Editor/transformers/index.d.ts +16 -0
  584. package/dist/lib/components/Editor/transformers/index.d.ts.map +1 -0
  585. package/dist/lib/components/Editor/transformers/markdown-emoji-transformer.d.ts +3 -0
  586. package/dist/lib/components/Editor/transformers/markdown-emoji-transformer.d.ts.map +1 -0
  587. package/dist/lib/components/Editor/transformers/markdown-hr-transformer.d.ts +3 -0
  588. package/dist/lib/components/Editor/transformers/markdown-hr-transformer.d.ts.map +1 -0
  589. package/dist/lib/components/Editor/transformers/markdown-image-transformer.d.ts +3 -0
  590. package/dist/lib/components/Editor/transformers/markdown-image-transformer.d.ts.map +1 -0
  591. package/dist/lib/components/Editor/transformers/markdown-table-transformer.d.ts +3 -0
  592. package/dist/lib/components/Editor/transformers/markdown-table-transformer.d.ts.map +1 -0
  593. package/dist/lib/components/Editor/transformers/markdown-tweet-transformer.d.ts +3 -0
  594. package/dist/lib/components/Editor/transformers/markdown-tweet-transformer.d.ts.map +1 -0
  595. package/dist/lib/components/Editor/types.d.ts +23 -0
  596. package/dist/lib/components/Editor/types.d.ts.map +1 -0
  597. package/dist/lib/components/Editor/utils/can-use-dom.d.ts +2 -0
  598. package/dist/lib/components/Editor/utils/can-use-dom.d.ts.map +1 -0
  599. package/dist/lib/components/Editor/utils/collapsible.d.ts +3 -0
  600. package/dist/lib/components/Editor/utils/collapsible.d.ts.map +1 -0
  601. package/dist/lib/components/Editor/utils/doc-serialization.d.ts +4 -0
  602. package/dist/lib/components/Editor/utils/doc-serialization.d.ts.map +1 -0
  603. package/dist/lib/components/Editor/utils/emoji-list.d.ts +21 -0
  604. package/dist/lib/components/Editor/utils/emoji-list.d.ts.map +1 -0
  605. package/dist/lib/components/Editor/utils/get-dom-range-rect.d.ts +2 -0
  606. package/dist/lib/components/Editor/utils/get-dom-range-rect.d.ts.map +1 -0
  607. package/dist/lib/components/Editor/utils/get-selected-node.d.ts +3 -0
  608. package/dist/lib/components/Editor/utils/get-selected-node.d.ts.map +1 -0
  609. package/dist/lib/components/Editor/utils/guard.d.ts +2 -0
  610. package/dist/lib/components/Editor/utils/guard.d.ts.map +1 -0
  611. package/dist/lib/components/Editor/utils/is-mobile-width.d.ts +2 -0
  612. package/dist/lib/components/Editor/utils/is-mobile-width.d.ts.map +1 -0
  613. package/dist/lib/components/Editor/utils/set-floating-elem-position-for-link-editor.d.ts +2 -0
  614. package/dist/lib/components/Editor/utils/set-floating-elem-position-for-link-editor.d.ts.map +1 -0
  615. package/dist/lib/components/Editor/utils/set-floating-elem-position.d.ts +2 -0
  616. package/dist/lib/components/Editor/utils/set-floating-elem-position.d.ts.map +1 -0
  617. package/dist/lib/components/Editor/utils/swipe.d.ts +5 -0
  618. package/dist/lib/components/Editor/utils/swipe.d.ts.map +1 -0
  619. package/dist/lib/components/Editor/utils/url.d.ts +3 -0
  620. package/dist/lib/components/Editor/utils/url.d.ts.map +1 -0
  621. package/dist/lib/components/Empty/Empty.d.ts +12 -0
  622. package/dist/lib/components/Empty/Empty.d.ts.map +1 -0
  623. package/dist/lib/components/Empty/index.d.ts +3 -0
  624. package/dist/lib/components/Empty/index.d.ts.map +1 -0
  625. package/dist/lib/components/ErrorBoundary/ErrorBoundary.d.ts +7 -0
  626. package/dist/lib/components/ErrorBoundary/ErrorBoundary.d.ts.map +1 -0
  627. package/dist/lib/components/ErrorBoundary/ErrorPage.d.ts +38 -0
  628. package/dist/lib/components/ErrorBoundary/ErrorPage.d.ts.map +1 -0
  629. package/dist/lib/components/ErrorBoundary/index.d.ts +3 -0
  630. package/dist/lib/components/ErrorBoundary/index.d.ts.map +1 -0
  631. package/dist/lib/components/FilePreview/FilePreview.d.ts +8 -0
  632. package/dist/lib/components/FilePreview/FilePreview.d.ts.map +1 -0
  633. package/dist/lib/components/FilePreview/index.d.ts +2 -0
  634. package/dist/lib/components/FilePreview/index.d.ts.map +1 -0
  635. package/dist/lib/components/Form/Form.d.ts +5 -3
  636. package/dist/lib/components/Form/Form.d.ts.map +1 -1
  637. package/dist/lib/components/HierarchyGraph/HierarchyGraph.d.ts +24 -0
  638. package/dist/lib/components/HierarchyGraph/HierarchyGraph.d.ts.map +1 -0
  639. package/dist/lib/components/HierarchyGraph/index.d.ts +5 -0
  640. package/dist/lib/components/HierarchyGraph/index.d.ts.map +1 -0
  641. package/dist/lib/components/PageHeader/PageHeader.d.ts +8 -0
  642. package/dist/lib/components/PageHeader/PageHeader.d.ts.map +1 -0
  643. package/dist/lib/components/PageHeader/PageHeaderSkeleton.d.ts +10 -0
  644. package/dist/lib/components/PageHeader/PageHeaderSkeleton.d.ts.map +1 -0
  645. package/dist/lib/components/PageHeader/index.d.ts +3 -0
  646. package/dist/lib/components/PageHeader/index.d.ts.map +1 -0
  647. package/dist/lib/components/PhoneField/PhoneField.d.ts.map +1 -1
  648. package/dist/lib/components/RadioGroup/RadioGroup.d.ts +23 -0
  649. package/dist/lib/components/RadioGroup/RadioGroup.d.ts.map +1 -0
  650. package/dist/lib/components/RadioGroup/index.d.ts +3 -0
  651. package/dist/lib/components/RadioGroup/index.d.ts.map +1 -0
  652. package/dist/lib/components/Select/Select.d.ts +8 -10
  653. package/dist/lib/components/Select/Select.d.ts.map +1 -1
  654. package/dist/lib/components/Select/SelectFilter.d.ts +20 -0
  655. package/dist/lib/components/Select/SelectFilter.d.ts.map +1 -0
  656. package/dist/lib/components/Select/components/MultiSelect/MultiSelect.d.ts +3 -1
  657. package/dist/lib/components/Select/components/MultiSelect/MultiSelect.d.ts.map +1 -1
  658. package/dist/lib/components/Select/components/MultiSelect/MultiSelectFilter.d.ts +13 -6
  659. package/dist/lib/components/Select/components/MultiSelect/MultiSelectFilter.d.ts.map +1 -1
  660. package/dist/lib/components/Select/components/SingleSelect/SingleSelect.d.ts +17 -1
  661. package/dist/lib/components/Select/components/SingleSelect/SingleSelect.d.ts.map +1 -1
  662. package/dist/lib/components/Select/components/SingleSelect/SingleSelectFilter.d.ts +9 -2
  663. package/dist/lib/components/Select/components/SingleSelect/SingleSelectFilter.d.ts.map +1 -1
  664. package/dist/lib/components/Select/hooks/useMultiSelect.d.ts +2 -1
  665. package/dist/lib/components/Select/hooks/useMultiSelect.d.ts.map +1 -1
  666. package/dist/lib/components/Select/hooks/useSelect.d.ts +3 -1
  667. package/dist/lib/components/Select/hooks/useSelect.d.ts.map +1 -1
  668. package/dist/lib/components/Select/hooks/useSingleSelect.d.ts +2 -1
  669. package/dist/lib/components/Select/hooks/useSingleSelect.d.ts.map +1 -1
  670. package/dist/lib/components/Select/index.d.ts +4 -2
  671. package/dist/lib/components/Select/index.d.ts.map +1 -1
  672. package/dist/lib/components/Select/types.d.ts +8 -1
  673. package/dist/lib/components/Select/types.d.ts.map +1 -1
  674. package/dist/lib/components/Sidebar/Sidebar.d.ts +24 -0
  675. package/dist/lib/components/Sidebar/Sidebar.d.ts.map +1 -0
  676. package/dist/lib/components/Sidebar/index.d.ts +2 -0
  677. package/dist/lib/components/Sidebar/index.d.ts.map +1 -0
  678. package/dist/lib/components/Sortable/Sortable.d.ts +39 -0
  679. package/dist/lib/components/Sortable/Sortable.d.ts.map +1 -0
  680. package/dist/lib/components/Sortable/index.d.ts +3 -0
  681. package/dist/lib/components/Sortable/index.d.ts.map +1 -0
  682. package/dist/lib/components/StepProgressIndicator/StepProgressIndicator.d.ts +12 -0
  683. package/dist/lib/components/StepProgressIndicator/StepProgressIndicator.d.ts.map +1 -0
  684. package/dist/lib/components/StepProgressIndicator/index.d.ts +3 -0
  685. package/dist/lib/components/StepProgressIndicator/index.d.ts.map +1 -0
  686. package/dist/lib/components/Switch/Switch.d.ts.map +1 -1
  687. package/dist/lib/components/Tabs/Tabs.d.ts +27 -0
  688. package/dist/lib/components/Tabs/Tabs.d.ts.map +1 -0
  689. package/dist/lib/components/Tabs/TabsSkeleton.d.ts +11 -0
  690. package/dist/lib/components/Tabs/TabsSkeleton.d.ts.map +1 -0
  691. package/dist/lib/components/Tabs/index.d.ts +3 -0
  692. package/dist/lib/components/Tabs/index.d.ts.map +1 -0
  693. package/dist/lib/components/TextArea/TextArea.d.ts.map +1 -1
  694. package/dist/lib/components/UploadFile/UploadFile.d.ts +26 -0
  695. package/dist/lib/components/UploadFile/UploadFile.d.ts.map +1 -0
  696. package/dist/lib/components/UploadFile/index.d.ts +2 -0
  697. package/dist/lib/components/UploadFile/index.d.ts.map +1 -0
  698. package/dist/lib/components/ValueFilter/ValueFilter.d.ts +11 -0
  699. package/dist/lib/components/ValueFilter/ValueFilter.d.ts.map +1 -0
  700. package/dist/lib/components/ValueFilter/index.d.ts +3 -0
  701. package/dist/lib/components/ValueFilter/index.d.ts.map +1 -0
  702. package/dist/lib/components/ViewTabs/ViewTabs.d.ts +23 -0
  703. package/dist/lib/components/ViewTabs/ViewTabs.d.ts.map +1 -0
  704. package/dist/lib/components/ViewTabs/index.d.ts +3 -0
  705. package/dist/lib/components/ViewTabs/index.d.ts.map +1 -0
  706. package/dist/lib/components/index.d.ts +19 -0
  707. package/dist/lib/components/index.d.ts.map +1 -1
  708. package/dist/lib/config/index.d.ts +6 -0
  709. package/dist/lib/config/index.d.ts.map +1 -1
  710. package/dist/lib/context/ConfirmContext.d.ts +21 -0
  711. package/dist/lib/context/ConfirmContext.d.ts.map +1 -0
  712. package/dist/lib/context/index.d.ts +1 -0
  713. package/dist/lib/context/index.d.ts.map +1 -1
  714. package/dist/lib/hooks/index.d.ts +5 -0
  715. package/dist/lib/hooks/index.d.ts.map +1 -1
  716. package/dist/lib/hooks/useConfirm.d.ts +4 -0
  717. package/dist/lib/hooks/useConfirm.d.ts.map +1 -0
  718. package/dist/lib/hooks/useDialog.d.ts +11 -0
  719. package/dist/lib/hooks/useDialog.d.ts.map +1 -0
  720. package/dist/lib/hooks/useIsMobile.d.ts +2 -0
  721. package/dist/lib/hooks/useIsMobile.d.ts.map +1 -0
  722. package/dist/lib/hooks/useSlugParams.d.ts +12 -0
  723. package/dist/lib/hooks/useSlugParams.d.ts.map +1 -0
  724. package/dist/lib/hooks/useTimer.d.ts +6 -0
  725. package/dist/lib/hooks/useTimer.d.ts.map +1 -0
  726. package/dist/lib/index.d.ts +1 -0
  727. package/dist/lib/index.d.ts.map +1 -1
  728. package/dist/lib/selects/app/AppFilter.d.ts +11 -0
  729. package/dist/lib/selects/app/AppFilter.d.ts.map +1 -0
  730. package/dist/lib/selects/app/AppSelector.d.ts +4 -0
  731. package/dist/lib/selects/app/AppSelector.d.ts.map +1 -0
  732. package/dist/lib/selects/app/index.d.ts +3 -0
  733. package/dist/lib/selects/app/index.d.ts.map +1 -0
  734. package/dist/lib/selects/app-code/AppCodeFilter.d.ts +11 -0
  735. package/dist/lib/selects/app-code/AppCodeFilter.d.ts.map +1 -0
  736. package/dist/lib/selects/app-code/AppCodeSelector.d.ts +4 -0
  737. package/dist/lib/selects/app-code/AppCodeSelector.d.ts.map +1 -0
  738. package/dist/lib/selects/app-code/index.d.ts +3 -0
  739. package/dist/lib/selects/app-code/index.d.ts.map +1 -0
  740. package/dist/lib/selects/cloud-provider/CloudProviderFilter.d.ts +11 -0
  741. package/dist/lib/selects/cloud-provider/CloudProviderFilter.d.ts.map +1 -0
  742. package/dist/lib/selects/cloud-provider/CloudProviderSelector.d.ts +4 -0
  743. package/dist/lib/selects/cloud-provider/CloudProviderSelector.d.ts.map +1 -0
  744. package/dist/lib/selects/cloud-provider/index.d.ts +3 -0
  745. package/dist/lib/selects/cloud-provider/index.d.ts.map +1 -0
  746. package/dist/lib/selects/currency/CurrencyFilter.d.ts +11 -0
  747. package/dist/lib/selects/currency/CurrencyFilter.d.ts.map +1 -0
  748. package/dist/lib/selects/currency/CurrencySelector.d.ts +4 -0
  749. package/dist/lib/selects/currency/CurrencySelector.d.ts.map +1 -0
  750. package/dist/lib/selects/currency/currencies.d.ts +3 -0
  751. package/dist/lib/selects/currency/currencies.d.ts.map +1 -0
  752. package/dist/lib/selects/currency/index.d.ts +3 -0
  753. package/dist/lib/selects/currency/index.d.ts.map +1 -0
  754. package/dist/lib/selects/deployment/DeploymentFilter.d.ts +11 -0
  755. package/dist/lib/selects/deployment/DeploymentFilter.d.ts.map +1 -0
  756. package/dist/lib/selects/deployment/DeploymentSelector.d.ts +4 -0
  757. package/dist/lib/selects/deployment/DeploymentSelector.d.ts.map +1 -0
  758. package/dist/lib/selects/deployment/index.d.ts +3 -0
  759. package/dist/lib/selects/deployment/index.d.ts.map +1 -0
  760. package/dist/lib/selects/feature/FeatureFilter.d.ts +11 -0
  761. package/dist/lib/selects/feature/FeatureFilter.d.ts.map +1 -0
  762. package/dist/lib/selects/feature/FeatureSelector.d.ts +4 -0
  763. package/dist/lib/selects/feature/FeatureSelector.d.ts.map +1 -0
  764. package/dist/lib/selects/feature/index.d.ts +3 -0
  765. package/dist/lib/selects/feature/index.d.ts.map +1 -0
  766. package/dist/lib/selects/index.d.ts +12 -0
  767. package/dist/lib/selects/index.d.ts.map +1 -0
  768. package/dist/lib/selects/industry/IndustryFilter.d.ts +11 -0
  769. package/dist/lib/selects/industry/IndustryFilter.d.ts.map +1 -0
  770. package/dist/lib/selects/industry/IndustrySelector.d.ts +4 -0
  771. package/dist/lib/selects/industry/IndustrySelector.d.ts.map +1 -0
  772. package/dist/lib/selects/industry/index.d.ts +3 -0
  773. package/dist/lib/selects/industry/index.d.ts.map +1 -0
  774. package/dist/lib/selects/locale/LocaleFilter.d.ts +11 -0
  775. package/dist/lib/selects/locale/LocaleFilter.d.ts.map +1 -0
  776. package/dist/lib/selects/locale/LocaleSelector.d.ts +4 -0
  777. package/dist/lib/selects/locale/LocaleSelector.d.ts.map +1 -0
  778. package/dist/lib/selects/locale/index.d.ts +3 -0
  779. package/dist/lib/selects/locale/index.d.ts.map +1 -0
  780. package/dist/lib/selects/locale/locales.d.ts +3 -0
  781. package/dist/lib/selects/locale/locales.d.ts.map +1 -0
  782. package/dist/lib/selects/microfrontend/MicrofrontendSelector.d.ts +4 -0
  783. package/dist/lib/selects/microfrontend/MicrofrontendSelector.d.ts.map +1 -0
  784. package/dist/lib/selects/microfrontend/index.d.ts +2 -0
  785. package/dist/lib/selects/microfrontend/index.d.ts.map +1 -0
  786. package/dist/lib/selects/plan/PlanFilter.d.ts +11 -0
  787. package/dist/lib/selects/plan/PlanFilter.d.ts.map +1 -0
  788. package/dist/lib/selects/plan/PlanSelector.d.ts +4 -0
  789. package/dist/lib/selects/plan/PlanSelector.d.ts.map +1 -0
  790. package/dist/lib/selects/plan/index.d.ts +3 -0
  791. package/dist/lib/selects/plan/index.d.ts.map +1 -0
  792. package/dist/lib/selects/region/RegionFilter.d.ts +11 -0
  793. package/dist/lib/selects/region/RegionFilter.d.ts.map +1 -0
  794. package/dist/lib/selects/region/RegionSelector.d.ts +4 -0
  795. package/dist/lib/selects/region/RegionSelector.d.ts.map +1 -0
  796. package/dist/lib/selects/region/index.d.ts +3 -0
  797. package/dist/lib/selects/region/index.d.ts.map +1 -0
  798. package/dist/lib/selects/timezone/TimezoneFilter.d.ts +11 -0
  799. package/dist/lib/selects/timezone/TimezoneFilter.d.ts.map +1 -0
  800. package/dist/lib/selects/timezone/TimezoneSelector.d.ts +4 -0
  801. package/dist/lib/selects/timezone/TimezoneSelector.d.ts.map +1 -0
  802. package/dist/lib/selects/timezone/index.d.ts +3 -0
  803. package/dist/lib/selects/timezone/index.d.ts.map +1 -0
  804. package/dist/lib/selects/timezone/timezones.d.ts +3 -0
  805. package/dist/lib/selects/timezone/timezones.d.ts.map +1 -0
  806. package/dist/lib/services/table-views.service.d.ts +25 -0
  807. package/dist/lib/services/table-views.service.d.ts.map +1 -0
  808. package/dist/lib/types/api-response.d.ts +21 -0
  809. package/dist/lib/types/api-response.d.ts.map +1 -0
  810. package/dist/lib/types/table-filter.d.ts +41 -0
  811. package/dist/lib/types/table-filter.d.ts.map +1 -0
  812. package/dist/lib/utils/axios.d.ts.map +1 -1
  813. package/dist/lib/utils/index.d.ts +1 -0
  814. package/dist/lib/utils/index.d.ts.map +1 -1
  815. package/dist/lib/utils/motion.d.ts +2 -0
  816. package/dist/lib/utils/motion.d.ts.map +1 -0
  817. package/dist/lib/utils/slug.d.ts +7 -0
  818. package/dist/lib/utils/slug.d.ts.map +1 -0
  819. package/dist/plus.js +18 -0
  820. package/dist/plus.js.map +1 -0
  821. package/dist/popover.js +3 -299
  822. package/dist/popover.js.map +1 -1
  823. package/dist/proxy.js +11392 -0
  824. package/dist/proxy.js.map +1 -0
  825. package/dist/react-error-boundary.js +67 -0
  826. package/dist/react-error-boundary.js.map +1 -0
  827. package/dist/select2.js +116 -0
  828. package/dist/select2.js.map +1 -0
  829. package/dist/selects/app-code.js +37 -0
  830. package/dist/selects/app-code.js.map +1 -0
  831. package/dist/selects/app.js +2 -0
  832. package/dist/selects/app.js.map +1 -0
  833. package/dist/selects/cloud-provider.js +2 -0
  834. package/dist/selects/cloud-provider.js.map +1 -0
  835. package/dist/selects/currency.js +2 -0
  836. package/dist/selects/currency.js.map +1 -0
  837. package/dist/selects/deployment.js +2 -0
  838. package/dist/selects/deployment.js.map +1 -0
  839. package/dist/selects/feature.js +2 -0
  840. package/dist/selects/feature.js.map +1 -0
  841. package/dist/selects/industry.js +2 -0
  842. package/dist/selects/industry.js.map +1 -0
  843. package/dist/selects/locale.js +2 -0
  844. package/dist/selects/locale.js.map +1 -0
  845. package/dist/selects/microfrontend.js +2 -0
  846. package/dist/selects/microfrontend.js.map +1 -0
  847. package/dist/selects/plan.js +2 -0
  848. package/dist/selects/plan.js.map +1 -0
  849. package/dist/selects/region.js +2 -0
  850. package/dist/selects/region.js.map +1 -0
  851. package/dist/selects/timezone.js +2 -0
  852. package/dist/selects/timezone.js.map +1 -0
  853. package/dist/separator2.js +2 -28
  854. package/dist/separator2.js.map +1 -1
  855. package/dist/shadcn/index.d.ts +2 -0
  856. package/dist/shadcn/index.d.ts.map +1 -1
  857. package/dist/shadcn/shadcnBreadcrumb/breadcrumb.d.ts +18 -0
  858. package/dist/shadcn/shadcnBreadcrumb/breadcrumb.d.ts.map +1 -0
  859. package/dist/shadcn/shadcnBreadcrumb/index.d.ts +2 -0
  860. package/dist/shadcn/shadcnBreadcrumb/index.d.ts.map +1 -0
  861. package/dist/shadcn/shadcnCalendar/calendar.d.ts +1 -1
  862. package/dist/shadcn/shadcnCalendar/calendar.d.ts.map +1 -1
  863. package/dist/shadcn/shadcnChart/Chart.d.ts +2 -2
  864. package/dist/shadcn/shadcnChart/Chart.d.ts.map +1 -1
  865. package/dist/shadcn/shadcnCollapsible/collapsible.d.ts +7 -0
  866. package/dist/shadcn/shadcnCollapsible/collapsible.d.ts.map +1 -0
  867. package/dist/shadcn/shadcnCollapsible/index.d.ts +2 -0
  868. package/dist/shadcn/shadcnCollapsible/index.d.ts.map +1 -0
  869. package/dist/shadcn/shadcnDialog/dialog.d.ts +20 -0
  870. package/dist/shadcn/shadcnDialog/dialog.d.ts.map +1 -0
  871. package/dist/shadcn/shadcnDialog/index.d.ts +2 -0
  872. package/dist/shadcn/shadcnDialog/index.d.ts.map +1 -0
  873. package/dist/shadcn/shadcnDropdownMenu/dropdown-menu.d.ts +1 -1
  874. package/dist/shadcn/shadcnDropdownMenu/dropdown-menu.d.ts.map +1 -1
  875. package/dist/shadcn/shadcnForm/form.d.ts +1 -1
  876. package/dist/shadcn/shadcnForm/form.d.ts.map +1 -1
  877. package/dist/shadcn/shadcnInputOTP/InputOTP.d.ts +1 -1
  878. package/dist/shadcn/shadcnInputOTP/InputOTP.d.ts.map +1 -1
  879. package/dist/shadcn/shadcnMultiSelect/multi-select.d.ts +1 -1
  880. package/dist/shadcn/shadcnMultiSelect/multi-select.d.ts.map +1 -1
  881. package/dist/shadcn/shadcnProgress/Progress.d.ts +1 -1
  882. package/dist/shadcn/shadcnProgress/Progress.d.ts.map +1 -1
  883. package/dist/shadcn/shadcnRadioGroup/RadioGroup.d.ts +6 -0
  884. package/dist/shadcn/shadcnRadioGroup/RadioGroup.d.ts.map +1 -0
  885. package/dist/shadcn/shadcnRadioGroup/index.d.ts +2 -0
  886. package/dist/shadcn/shadcnRadioGroup/index.d.ts.map +1 -0
  887. package/dist/shadcn/shadcnSheet/sheet.d.ts +1 -1
  888. package/dist/shadcn/shadcnSheet/sheet.d.ts.map +1 -1
  889. package/dist/shadcn/shadcnSidebar/index.d.ts +2 -0
  890. package/dist/shadcn/shadcnSidebar/index.d.ts.map +1 -0
  891. package/dist/shadcn/shadcnSidebar/sidebar.d.ts +86 -0
  892. package/dist/shadcn/shadcnSidebar/sidebar.d.ts.map +1 -0
  893. package/dist/shadcn/shadcnSingleSelect/single-select.d.ts +2 -1
  894. package/dist/shadcn/shadcnSingleSelect/single-select.d.ts.map +1 -1
  895. package/dist/shadcn/shadcnSwitch/Switch.d.ts.map +1 -1
  896. package/dist/shadcn/shadcnTable/table.d.ts +1 -1
  897. package/dist/shadcn/shadcnTable/table.d.ts.map +1 -1
  898. package/dist/shadcn/shadcnTabs/index.d.ts +2 -0
  899. package/dist/shadcn/shadcnTabs/index.d.ts.map +1 -0
  900. package/dist/shadcn/shadcnTabs/tabs.d.ts +8 -0
  901. package/dist/shadcn/shadcnTabs/tabs.d.ts.map +1 -0
  902. package/dist/shadcn/shadcnTooltip/tooltip.d.ts +1 -1
  903. package/dist/shadcn/shadcnTooltip/tooltip.d.ts.map +1 -1
  904. package/dist/share-2.js +42 -0
  905. package/dist/share-2.js.map +1 -0
  906. package/dist/text-align-justify.js +34 -0
  907. package/dist/text-align-justify.js.map +1 -0
  908. package/dist/trash-2.js +55 -0
  909. package/dist/trash-2.js.map +1 -0
  910. package/dist/types/api-response.js +2 -0
  911. package/dist/types/api-response.js.map +1 -0
  912. package/dist/types/table-filter.js +17 -0
  913. package/dist/types/table-filter.js.map +1 -0
  914. package/dist/upload.js +19 -0
  915. package/dist/upload.js.map +1 -0
  916. package/dist/useConfirm.js +37 -0
  917. package/dist/useConfirm.js.map +1 -0
  918. package/dist/useDataTable.js +26545 -0
  919. package/dist/useDataTable.js.map +1 -0
  920. package/dist/useIsMobile.js +19 -0
  921. package/dist/useIsMobile.js.map +1 -0
  922. package/dist/{useSSE.js → useTimer.js} +33 -3
  923. package/dist/useTimer.js.map +1 -0
  924. package/dist/utils/axios.js +2 -4167
  925. package/dist/utils/axios.js.map +1 -1
  926. package/dist/utils/motion.js +4425 -0
  927. package/dist/utils/motion.js.map +1 -0
  928. package/dist/utils/slug.js +15 -0
  929. package/dist/utils/slug.js.map +1 -0
  930. package/dist/utils.js +3137 -3750
  931. package/dist/utils.js.map +1 -1
  932. package/dist/value.js +820 -0
  933. package/dist/value.js.map +1 -0
  934. package/package.json +186 -3
  935. package/dist/lib/components/DataTable/components/DataTableToolbar.d.ts +0 -15
  936. package/dist/lib/components/DataTable/components/DataTableToolbar.d.ts.map +0 -1
  937. package/dist/useSSE.js.map +0 -1
  938. package/dist/utils2.js +0 -3042
  939. package/dist/utils2.js.map +0 -1
@@ -0,0 +1,2540 @@
1
+ import * as React from 'react';
2
+ import { useLayoutEffect } from 'react';
3
+ import * as ReactDOM from 'react-dom';
4
+ import { P as Primitive } from './index11.js';
5
+ import { jsx } from 'react/jsx-runtime';
6
+ import { u as useComposedRefs } from './index6.js';
7
+ import { c as createContextScope } from './index12.js';
8
+ import { u as useCallbackRef } from './index23.js';
9
+ import { u as useLayoutEffect2 } from './index24.js';
10
+ import { u as useSize } from './index28.js';
11
+
12
+ /**
13
+ * Custom positioning reference element.
14
+ * @see https://floating-ui.com/docs/virtual-elements
15
+ */
16
+
17
+ const sides = ['top', 'right', 'bottom', 'left'];
18
+ const min = Math.min;
19
+ const max = Math.max;
20
+ const round = Math.round;
21
+ const floor = Math.floor;
22
+ const createCoords = v => ({
23
+ x: v,
24
+ y: v
25
+ });
26
+ const oppositeSideMap = {
27
+ left: 'right',
28
+ right: 'left',
29
+ bottom: 'top',
30
+ top: 'bottom'
31
+ };
32
+ function clamp(start, value, end) {
33
+ return max(start, min(value, end));
34
+ }
35
+ function evaluate(value, param) {
36
+ return typeof value === 'function' ? value(param) : value;
37
+ }
38
+ function getSide(placement) {
39
+ return placement.split('-')[0];
40
+ }
41
+ function getAlignment(placement) {
42
+ return placement.split('-')[1];
43
+ }
44
+ function getOppositeAxis(axis) {
45
+ return axis === 'x' ? 'y' : 'x';
46
+ }
47
+ function getAxisLength(axis) {
48
+ return axis === 'y' ? 'height' : 'width';
49
+ }
50
+ function getSideAxis(placement) {
51
+ const firstChar = placement[0];
52
+ return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
53
+ }
54
+ function getAlignmentAxis(placement) {
55
+ return getOppositeAxis(getSideAxis(placement));
56
+ }
57
+ function getAlignmentSides(placement, rects, rtl) {
58
+ if (rtl === void 0) {
59
+ rtl = false;
60
+ }
61
+ const alignment = getAlignment(placement);
62
+ const alignmentAxis = getAlignmentAxis(placement);
63
+ const length = getAxisLength(alignmentAxis);
64
+ let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
65
+ if (rects.reference[length] > rects.floating[length]) {
66
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
67
+ }
68
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
69
+ }
70
+ function getExpandedPlacements(placement) {
71
+ const oppositePlacement = getOppositePlacement(placement);
72
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
73
+ }
74
+ function getOppositeAlignmentPlacement(placement) {
75
+ return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
76
+ }
77
+ const lrPlacement = ['left', 'right'];
78
+ const rlPlacement = ['right', 'left'];
79
+ const tbPlacement = ['top', 'bottom'];
80
+ const btPlacement = ['bottom', 'top'];
81
+ function getSideList(side, isStart, rtl) {
82
+ switch (side) {
83
+ case 'top':
84
+ case 'bottom':
85
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
86
+ return isStart ? lrPlacement : rlPlacement;
87
+ case 'left':
88
+ case 'right':
89
+ return isStart ? tbPlacement : btPlacement;
90
+ default:
91
+ return [];
92
+ }
93
+ }
94
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
95
+ const alignment = getAlignment(placement);
96
+ let list = getSideList(getSide(placement), direction === 'start', rtl);
97
+ if (alignment) {
98
+ list = list.map(side => side + "-" + alignment);
99
+ if (flipAlignment) {
100
+ list = list.concat(list.map(getOppositeAlignmentPlacement));
101
+ }
102
+ }
103
+ return list;
104
+ }
105
+ function getOppositePlacement(placement) {
106
+ const side = getSide(placement);
107
+ return oppositeSideMap[side] + placement.slice(side.length);
108
+ }
109
+ function expandPaddingObject(padding) {
110
+ return {
111
+ top: 0,
112
+ right: 0,
113
+ bottom: 0,
114
+ left: 0,
115
+ ...padding
116
+ };
117
+ }
118
+ function getPaddingObject(padding) {
119
+ return typeof padding !== 'number' ? expandPaddingObject(padding) : {
120
+ top: padding,
121
+ right: padding,
122
+ bottom: padding,
123
+ left: padding
124
+ };
125
+ }
126
+ function rectToClientRect(rect) {
127
+ const {
128
+ x,
129
+ y,
130
+ width,
131
+ height
132
+ } = rect;
133
+ return {
134
+ width,
135
+ height,
136
+ top: y,
137
+ left: x,
138
+ right: x + width,
139
+ bottom: y + height,
140
+ x,
141
+ y
142
+ };
143
+ }
144
+
145
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
146
+ let {
147
+ reference,
148
+ floating
149
+ } = _ref;
150
+ const sideAxis = getSideAxis(placement);
151
+ const alignmentAxis = getAlignmentAxis(placement);
152
+ const alignLength = getAxisLength(alignmentAxis);
153
+ const side = getSide(placement);
154
+ const isVertical = sideAxis === 'y';
155
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
156
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
157
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
158
+ let coords;
159
+ switch (side) {
160
+ case 'top':
161
+ coords = {
162
+ x: commonX,
163
+ y: reference.y - floating.height
164
+ };
165
+ break;
166
+ case 'bottom':
167
+ coords = {
168
+ x: commonX,
169
+ y: reference.y + reference.height
170
+ };
171
+ break;
172
+ case 'right':
173
+ coords = {
174
+ x: reference.x + reference.width,
175
+ y: commonY
176
+ };
177
+ break;
178
+ case 'left':
179
+ coords = {
180
+ x: reference.x - floating.width,
181
+ y: commonY
182
+ };
183
+ break;
184
+ default:
185
+ coords = {
186
+ x: reference.x,
187
+ y: reference.y
188
+ };
189
+ }
190
+ switch (getAlignment(placement)) {
191
+ case 'start':
192
+ coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
193
+ break;
194
+ case 'end':
195
+ coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
196
+ break;
197
+ }
198
+ return coords;
199
+ }
200
+
201
+ /**
202
+ * Resolves with an object of overflow side offsets that determine how much the
203
+ * element is overflowing a given clipping boundary on each side.
204
+ * - positive = overflowing the boundary by that number of pixels
205
+ * - negative = how many pixels left before it will overflow
206
+ * - 0 = lies flush with the boundary
207
+ * @see https://floating-ui.com/docs/detectOverflow
208
+ */
209
+ async function detectOverflow(state, options) {
210
+ var _await$platform$isEle;
211
+ if (options === void 0) {
212
+ options = {};
213
+ }
214
+ const {
215
+ x,
216
+ y,
217
+ platform,
218
+ rects,
219
+ elements,
220
+ strategy
221
+ } = state;
222
+ const {
223
+ boundary = 'clippingAncestors',
224
+ rootBoundary = 'viewport',
225
+ elementContext = 'floating',
226
+ altBoundary = false,
227
+ padding = 0
228
+ } = evaluate(options, state);
229
+ const paddingObject = getPaddingObject(padding);
230
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
231
+ const element = elements[altBoundary ? altContext : elementContext];
232
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
233
+ 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))),
234
+ boundary,
235
+ rootBoundary,
236
+ strategy
237
+ }));
238
+ const rect = elementContext === 'floating' ? {
239
+ x,
240
+ y,
241
+ width: rects.floating.width,
242
+ height: rects.floating.height
243
+ } : rects.reference;
244
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
245
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
246
+ x: 1,
247
+ y: 1
248
+ } : {
249
+ x: 1,
250
+ y: 1
251
+ };
252
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
253
+ elements,
254
+ rect,
255
+ offsetParent,
256
+ strategy
257
+ }) : rect);
258
+ return {
259
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
260
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
261
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
262
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
263
+ };
264
+ }
265
+
266
+ // Maximum number of resets that can occur before bailing to avoid infinite reset loops.
267
+ const MAX_RESET_COUNT = 50;
268
+
269
+ /**
270
+ * Computes the `x` and `y` coordinates that will place the floating element
271
+ * next to a given reference element.
272
+ *
273
+ * This export does not have any `platform` interface logic. You will need to
274
+ * write one for the platform you are using Floating UI with.
275
+ */
276
+ const computePosition$1 = async (reference, floating, config) => {
277
+ const {
278
+ placement = 'bottom',
279
+ strategy = 'absolute',
280
+ middleware = [],
281
+ platform
282
+ } = config;
283
+ const platformWithDetectOverflow = platform.detectOverflow ? platform : {
284
+ ...platform,
285
+ detectOverflow
286
+ };
287
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
288
+ let rects = await platform.getElementRects({
289
+ reference,
290
+ floating,
291
+ strategy
292
+ });
293
+ let {
294
+ x,
295
+ y
296
+ } = computeCoordsFromPlacement(rects, placement, rtl);
297
+ let statefulPlacement = placement;
298
+ let resetCount = 0;
299
+ const middlewareData = {};
300
+ for (let i = 0; i < middleware.length; i++) {
301
+ const currentMiddleware = middleware[i];
302
+ if (!currentMiddleware) {
303
+ continue;
304
+ }
305
+ const {
306
+ name,
307
+ fn
308
+ } = currentMiddleware;
309
+ const {
310
+ x: nextX,
311
+ y: nextY,
312
+ data,
313
+ reset
314
+ } = await fn({
315
+ x,
316
+ y,
317
+ initialPlacement: placement,
318
+ placement: statefulPlacement,
319
+ strategy,
320
+ middlewareData,
321
+ rects,
322
+ platform: platformWithDetectOverflow,
323
+ elements: {
324
+ reference,
325
+ floating
326
+ }
327
+ });
328
+ x = nextX != null ? nextX : x;
329
+ y = nextY != null ? nextY : y;
330
+ middlewareData[name] = {
331
+ ...middlewareData[name],
332
+ ...data
333
+ };
334
+ if (reset && resetCount < MAX_RESET_COUNT) {
335
+ resetCount++;
336
+ if (typeof reset === 'object') {
337
+ if (reset.placement) {
338
+ statefulPlacement = reset.placement;
339
+ }
340
+ if (reset.rects) {
341
+ rects = reset.rects === true ? await platform.getElementRects({
342
+ reference,
343
+ floating,
344
+ strategy
345
+ }) : reset.rects;
346
+ }
347
+ ({
348
+ x,
349
+ y
350
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
351
+ }
352
+ i = -1;
353
+ }
354
+ }
355
+ return {
356
+ x,
357
+ y,
358
+ placement: statefulPlacement,
359
+ strategy,
360
+ middlewareData
361
+ };
362
+ };
363
+
364
+ /**
365
+ * Provides data to position an inner element of the floating element so that it
366
+ * appears centered to the reference element.
367
+ * @see https://floating-ui.com/docs/arrow
368
+ */
369
+ const arrow$3 = options => ({
370
+ name: 'arrow',
371
+ options,
372
+ async fn(state) {
373
+ const {
374
+ x,
375
+ y,
376
+ placement,
377
+ rects,
378
+ platform,
379
+ elements,
380
+ middlewareData
381
+ } = state;
382
+ // Since `element` is required, we don't Partial<> the type.
383
+ const {
384
+ element,
385
+ padding = 0
386
+ } = evaluate(options, state) || {};
387
+ if (element == null) {
388
+ return {};
389
+ }
390
+ const paddingObject = getPaddingObject(padding);
391
+ const coords = {
392
+ x,
393
+ y
394
+ };
395
+ const axis = getAlignmentAxis(placement);
396
+ const length = getAxisLength(axis);
397
+ const arrowDimensions = await platform.getDimensions(element);
398
+ const isYAxis = axis === 'y';
399
+ const minProp = isYAxis ? 'top' : 'left';
400
+ const maxProp = isYAxis ? 'bottom' : 'right';
401
+ const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
402
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
403
+ const startDiff = coords[axis] - rects.reference[axis];
404
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
405
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
406
+
407
+ // DOM platform can return `window` as the `offsetParent`.
408
+ if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
409
+ clientSize = elements.floating[clientProp] || rects.floating[length];
410
+ }
411
+ const centerToReference = endDiff / 2 - startDiff / 2;
412
+
413
+ // If the padding is large enough that it causes the arrow to no longer be
414
+ // centered, modify the padding so that it is centered.
415
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
416
+ const minPadding = min(paddingObject[minProp], largestPossiblePadding);
417
+ const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
418
+
419
+ // Make sure the arrow doesn't overflow the floating element if the center
420
+ // point is outside the floating element's bounds.
421
+ const min$1 = minPadding;
422
+ const max = clientSize - arrowDimensions[length] - maxPadding;
423
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
424
+ const offset = clamp(min$1, center, max);
425
+
426
+ // If the reference is small enough that the arrow's padding causes it to
427
+ // to point to nothing for an aligned placement, adjust the offset of the
428
+ // floating element itself. To ensure `shift()` continues to take action,
429
+ // a single reset is performed when this is true.
430
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
431
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
432
+ return {
433
+ [axis]: coords[axis] + alignmentOffset,
434
+ data: {
435
+ [axis]: offset,
436
+ centerOffset: center - offset - alignmentOffset,
437
+ ...(shouldAddOffset && {
438
+ alignmentOffset
439
+ })
440
+ },
441
+ reset: shouldAddOffset
442
+ };
443
+ }
444
+ });
445
+
446
+ /**
447
+ * Optimizes the visibility of the floating element by flipping the `placement`
448
+ * in order to keep it in view when the preferred placement(s) will overflow the
449
+ * clipping boundary. Alternative to `autoPlacement`.
450
+ * @see https://floating-ui.com/docs/flip
451
+ */
452
+ const flip$2 = function (options) {
453
+ if (options === void 0) {
454
+ options = {};
455
+ }
456
+ return {
457
+ name: 'flip',
458
+ options,
459
+ async fn(state) {
460
+ var _middlewareData$arrow, _middlewareData$flip;
461
+ const {
462
+ placement,
463
+ middlewareData,
464
+ rects,
465
+ initialPlacement,
466
+ platform,
467
+ elements
468
+ } = state;
469
+ const {
470
+ mainAxis: checkMainAxis = true,
471
+ crossAxis: checkCrossAxis = true,
472
+ fallbackPlacements: specifiedFallbackPlacements,
473
+ fallbackStrategy = 'bestFit',
474
+ fallbackAxisSideDirection = 'none',
475
+ flipAlignment = true,
476
+ ...detectOverflowOptions
477
+ } = evaluate(options, state);
478
+
479
+ // If a reset by the arrow was caused due to an alignment offset being
480
+ // added, we should skip any logic now since `flip()` has already done its
481
+ // work.
482
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
483
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
484
+ return {};
485
+ }
486
+ const side = getSide(placement);
487
+ const initialSideAxis = getSideAxis(initialPlacement);
488
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
489
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
490
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
491
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
492
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
493
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
494
+ }
495
+ const placements = [initialPlacement, ...fallbackPlacements];
496
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
497
+ const overflows = [];
498
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
499
+ if (checkMainAxis) {
500
+ overflows.push(overflow[side]);
501
+ }
502
+ if (checkCrossAxis) {
503
+ const sides = getAlignmentSides(placement, rects, rtl);
504
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
505
+ }
506
+ overflowsData = [...overflowsData, {
507
+ placement,
508
+ overflows
509
+ }];
510
+
511
+ // One or more sides is overflowing.
512
+ if (!overflows.every(side => side <= 0)) {
513
+ var _middlewareData$flip2, _overflowsData$filter;
514
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
515
+ const nextPlacement = placements[nextIndex];
516
+ if (nextPlacement) {
517
+ const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
518
+ if (!ignoreCrossAxisOverflow ||
519
+ // We leave the current main axis only if every placement on that axis
520
+ // overflows the main axis.
521
+ overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
522
+ // Try next placement and re-run the lifecycle.
523
+ return {
524
+ data: {
525
+ index: nextIndex,
526
+ overflows: overflowsData
527
+ },
528
+ reset: {
529
+ placement: nextPlacement
530
+ }
531
+ };
532
+ }
533
+ }
534
+
535
+ // First, find the candidates that fit on the mainAxis side of overflow,
536
+ // then find the placement that fits the best on the main crossAxis side.
537
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
538
+
539
+ // Otherwise fallback.
540
+ if (!resetPlacement) {
541
+ switch (fallbackStrategy) {
542
+ case 'bestFit':
543
+ {
544
+ var _overflowsData$filter2;
545
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
546
+ if (hasFallbackAxisSideDirection) {
547
+ const currentSideAxis = getSideAxis(d.placement);
548
+ return currentSideAxis === initialSideAxis ||
549
+ // Create a bias to the `y` side axis due to horizontal
550
+ // reading directions favoring greater width.
551
+ currentSideAxis === 'y';
552
+ }
553
+ return true;
554
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
555
+ if (placement) {
556
+ resetPlacement = placement;
557
+ }
558
+ break;
559
+ }
560
+ case 'initialPlacement':
561
+ resetPlacement = initialPlacement;
562
+ break;
563
+ }
564
+ }
565
+ if (placement !== resetPlacement) {
566
+ return {
567
+ reset: {
568
+ placement: resetPlacement
569
+ }
570
+ };
571
+ }
572
+ }
573
+ return {};
574
+ }
575
+ };
576
+ };
577
+
578
+ function getSideOffsets(overflow, rect) {
579
+ return {
580
+ top: overflow.top - rect.height,
581
+ right: overflow.right - rect.width,
582
+ bottom: overflow.bottom - rect.height,
583
+ left: overflow.left - rect.width
584
+ };
585
+ }
586
+ function isAnySideFullyClipped(overflow) {
587
+ return sides.some(side => overflow[side] >= 0);
588
+ }
589
+ /**
590
+ * Provides data to hide the floating element in applicable situations, such as
591
+ * when it is not in the same clipping context as the reference element.
592
+ * @see https://floating-ui.com/docs/hide
593
+ */
594
+ const hide$2 = function (options) {
595
+ if (options === void 0) {
596
+ options = {};
597
+ }
598
+ return {
599
+ name: 'hide',
600
+ options,
601
+ async fn(state) {
602
+ const {
603
+ rects,
604
+ platform
605
+ } = state;
606
+ const {
607
+ strategy = 'referenceHidden',
608
+ ...detectOverflowOptions
609
+ } = evaluate(options, state);
610
+ switch (strategy) {
611
+ case 'referenceHidden':
612
+ {
613
+ const overflow = await platform.detectOverflow(state, {
614
+ ...detectOverflowOptions,
615
+ elementContext: 'reference'
616
+ });
617
+ const offsets = getSideOffsets(overflow, rects.reference);
618
+ return {
619
+ data: {
620
+ referenceHiddenOffsets: offsets,
621
+ referenceHidden: isAnySideFullyClipped(offsets)
622
+ }
623
+ };
624
+ }
625
+ case 'escaped':
626
+ {
627
+ const overflow = await platform.detectOverflow(state, {
628
+ ...detectOverflowOptions,
629
+ altBoundary: true
630
+ });
631
+ const offsets = getSideOffsets(overflow, rects.floating);
632
+ return {
633
+ data: {
634
+ escapedOffsets: offsets,
635
+ escaped: isAnySideFullyClipped(offsets)
636
+ }
637
+ };
638
+ }
639
+ default:
640
+ {
641
+ return {};
642
+ }
643
+ }
644
+ }
645
+ };
646
+ };
647
+
648
+ const originSides = /*#__PURE__*/new Set(['left', 'top']);
649
+
650
+ // For type backwards-compatibility, the `OffsetOptions` type was also
651
+ // Derivable.
652
+
653
+ async function convertValueToCoords(state, options) {
654
+ const {
655
+ placement,
656
+ platform,
657
+ elements
658
+ } = state;
659
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
660
+ const side = getSide(placement);
661
+ const alignment = getAlignment(placement);
662
+ const isVertical = getSideAxis(placement) === 'y';
663
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
664
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
665
+ const rawValue = evaluate(options, state);
666
+
667
+ // eslint-disable-next-line prefer-const
668
+ let {
669
+ mainAxis,
670
+ crossAxis,
671
+ alignmentAxis
672
+ } = typeof rawValue === 'number' ? {
673
+ mainAxis: rawValue,
674
+ crossAxis: 0,
675
+ alignmentAxis: null
676
+ } : {
677
+ mainAxis: rawValue.mainAxis || 0,
678
+ crossAxis: rawValue.crossAxis || 0,
679
+ alignmentAxis: rawValue.alignmentAxis
680
+ };
681
+ if (alignment && typeof alignmentAxis === 'number') {
682
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
683
+ }
684
+ return isVertical ? {
685
+ x: crossAxis * crossAxisMulti,
686
+ y: mainAxis * mainAxisMulti
687
+ } : {
688
+ x: mainAxis * mainAxisMulti,
689
+ y: crossAxis * crossAxisMulti
690
+ };
691
+ }
692
+
693
+ /**
694
+ * Modifies the placement by translating the floating element along the
695
+ * specified axes.
696
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
697
+ * object may be passed.
698
+ * @see https://floating-ui.com/docs/offset
699
+ */
700
+ const offset$2 = function (options) {
701
+ if (options === void 0) {
702
+ options = 0;
703
+ }
704
+ return {
705
+ name: 'offset',
706
+ options,
707
+ async fn(state) {
708
+ var _middlewareData$offse, _middlewareData$arrow;
709
+ const {
710
+ x,
711
+ y,
712
+ placement,
713
+ middlewareData
714
+ } = state;
715
+ const diffCoords = await convertValueToCoords(state, options);
716
+
717
+ // If the placement is the same and the arrow caused an alignment offset
718
+ // then we don't need to change the positioning coordinates.
719
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
720
+ return {};
721
+ }
722
+ return {
723
+ x: x + diffCoords.x,
724
+ y: y + diffCoords.y,
725
+ data: {
726
+ ...diffCoords,
727
+ placement
728
+ }
729
+ };
730
+ }
731
+ };
732
+ };
733
+
734
+ /**
735
+ * Optimizes the visibility of the floating element by shifting it in order to
736
+ * keep it in view when it will overflow the clipping boundary.
737
+ * @see https://floating-ui.com/docs/shift
738
+ */
739
+ const shift$2 = function (options) {
740
+ if (options === void 0) {
741
+ options = {};
742
+ }
743
+ return {
744
+ name: 'shift',
745
+ options,
746
+ async fn(state) {
747
+ const {
748
+ x,
749
+ y,
750
+ placement,
751
+ platform
752
+ } = state;
753
+ const {
754
+ mainAxis: checkMainAxis = true,
755
+ crossAxis: checkCrossAxis = false,
756
+ limiter = {
757
+ fn: _ref => {
758
+ let {
759
+ x,
760
+ y
761
+ } = _ref;
762
+ return {
763
+ x,
764
+ y
765
+ };
766
+ }
767
+ },
768
+ ...detectOverflowOptions
769
+ } = evaluate(options, state);
770
+ const coords = {
771
+ x,
772
+ y
773
+ };
774
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
775
+ const crossAxis = getSideAxis(getSide(placement));
776
+ const mainAxis = getOppositeAxis(crossAxis);
777
+ let mainAxisCoord = coords[mainAxis];
778
+ let crossAxisCoord = coords[crossAxis];
779
+ if (checkMainAxis) {
780
+ const minSide = mainAxis === 'y' ? 'top' : 'left';
781
+ const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
782
+ const min = mainAxisCoord + overflow[minSide];
783
+ const max = mainAxisCoord - overflow[maxSide];
784
+ mainAxisCoord = clamp(min, mainAxisCoord, max);
785
+ }
786
+ if (checkCrossAxis) {
787
+ const minSide = crossAxis === 'y' ? 'top' : 'left';
788
+ const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
789
+ const min = crossAxisCoord + overflow[minSide];
790
+ const max = crossAxisCoord - overflow[maxSide];
791
+ crossAxisCoord = clamp(min, crossAxisCoord, max);
792
+ }
793
+ const limitedCoords = limiter.fn({
794
+ ...state,
795
+ [mainAxis]: mainAxisCoord,
796
+ [crossAxis]: crossAxisCoord
797
+ });
798
+ return {
799
+ ...limitedCoords,
800
+ data: {
801
+ x: limitedCoords.x - x,
802
+ y: limitedCoords.y - y,
803
+ enabled: {
804
+ [mainAxis]: checkMainAxis,
805
+ [crossAxis]: checkCrossAxis
806
+ }
807
+ }
808
+ };
809
+ }
810
+ };
811
+ };
812
+ /**
813
+ * Built-in `limiter` that will stop `shift()` at a certain point.
814
+ */
815
+ const limitShift$2 = function (options) {
816
+ if (options === void 0) {
817
+ options = {};
818
+ }
819
+ return {
820
+ options,
821
+ fn(state) {
822
+ const {
823
+ x,
824
+ y,
825
+ placement,
826
+ rects,
827
+ middlewareData
828
+ } = state;
829
+ const {
830
+ offset = 0,
831
+ mainAxis: checkMainAxis = true,
832
+ crossAxis: checkCrossAxis = true
833
+ } = evaluate(options, state);
834
+ const coords = {
835
+ x,
836
+ y
837
+ };
838
+ const crossAxis = getSideAxis(placement);
839
+ const mainAxis = getOppositeAxis(crossAxis);
840
+ let mainAxisCoord = coords[mainAxis];
841
+ let crossAxisCoord = coords[crossAxis];
842
+ const rawOffset = evaluate(offset, state);
843
+ const computedOffset = typeof rawOffset === 'number' ? {
844
+ mainAxis: rawOffset,
845
+ crossAxis: 0
846
+ } : {
847
+ mainAxis: 0,
848
+ crossAxis: 0,
849
+ ...rawOffset
850
+ };
851
+ if (checkMainAxis) {
852
+ const len = mainAxis === 'y' ? 'height' : 'width';
853
+ const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
854
+ const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
855
+ if (mainAxisCoord < limitMin) {
856
+ mainAxisCoord = limitMin;
857
+ } else if (mainAxisCoord > limitMax) {
858
+ mainAxisCoord = limitMax;
859
+ }
860
+ }
861
+ if (checkCrossAxis) {
862
+ var _middlewareData$offse, _middlewareData$offse2;
863
+ const len = mainAxis === 'y' ? 'width' : 'height';
864
+ const isOriginSide = originSides.has(getSide(placement));
865
+ const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
866
+ const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
867
+ if (crossAxisCoord < limitMin) {
868
+ crossAxisCoord = limitMin;
869
+ } else if (crossAxisCoord > limitMax) {
870
+ crossAxisCoord = limitMax;
871
+ }
872
+ }
873
+ return {
874
+ [mainAxis]: mainAxisCoord,
875
+ [crossAxis]: crossAxisCoord
876
+ };
877
+ }
878
+ };
879
+ };
880
+
881
+ /**
882
+ * Provides data that allows you to change the size of the floating element —
883
+ * for instance, prevent it from overflowing the clipping boundary or match the
884
+ * width of the reference element.
885
+ * @see https://floating-ui.com/docs/size
886
+ */
887
+ const size$2 = function (options) {
888
+ if (options === void 0) {
889
+ options = {};
890
+ }
891
+ return {
892
+ name: 'size',
893
+ options,
894
+ async fn(state) {
895
+ var _state$middlewareData, _state$middlewareData2;
896
+ const {
897
+ placement,
898
+ rects,
899
+ platform,
900
+ elements
901
+ } = state;
902
+ const {
903
+ apply = () => {},
904
+ ...detectOverflowOptions
905
+ } = evaluate(options, state);
906
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
907
+ const side = getSide(placement);
908
+ const alignment = getAlignment(placement);
909
+ const isYAxis = getSideAxis(placement) === 'y';
910
+ const {
911
+ width,
912
+ height
913
+ } = rects.floating;
914
+ let heightSide;
915
+ let widthSide;
916
+ if (side === 'top' || side === 'bottom') {
917
+ heightSide = side;
918
+ widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
919
+ } else {
920
+ widthSide = side;
921
+ heightSide = alignment === 'end' ? 'top' : 'bottom';
922
+ }
923
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
924
+ const maximumClippingWidth = width - overflow.left - overflow.right;
925
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
926
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
927
+ const noShift = !state.middlewareData.shift;
928
+ let availableHeight = overflowAvailableHeight;
929
+ let availableWidth = overflowAvailableWidth;
930
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
931
+ availableWidth = maximumClippingWidth;
932
+ }
933
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
934
+ availableHeight = maximumClippingHeight;
935
+ }
936
+ if (noShift && !alignment) {
937
+ const xMin = max(overflow.left, 0);
938
+ const xMax = max(overflow.right, 0);
939
+ const yMin = max(overflow.top, 0);
940
+ const yMax = max(overflow.bottom, 0);
941
+ if (isYAxis) {
942
+ availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
943
+ } else {
944
+ availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
945
+ }
946
+ }
947
+ await apply({
948
+ ...state,
949
+ availableWidth,
950
+ availableHeight
951
+ });
952
+ const nextDimensions = await platform.getDimensions(elements.floating);
953
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
954
+ return {
955
+ reset: {
956
+ rects: true
957
+ }
958
+ };
959
+ }
960
+ return {};
961
+ }
962
+ };
963
+ };
964
+
965
+ function hasWindow() {
966
+ return typeof window !== 'undefined';
967
+ }
968
+ function getNodeName(node) {
969
+ if (isNode(node)) {
970
+ return (node.nodeName || '').toLowerCase();
971
+ }
972
+ // Mocked nodes in testing environments may not be instances of Node. By
973
+ // returning `#document` an infinite loop won't occur.
974
+ // https://github.com/floating-ui/floating-ui/issues/2317
975
+ return '#document';
976
+ }
977
+ function getWindow(node) {
978
+ var _node$ownerDocument;
979
+ return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
980
+ }
981
+ function getDocumentElement(node) {
982
+ var _ref;
983
+ return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
984
+ }
985
+ function isNode(value) {
986
+ if (!hasWindow()) {
987
+ return false;
988
+ }
989
+ return value instanceof Node || value instanceof getWindow(value).Node;
990
+ }
991
+ function isElement(value) {
992
+ if (!hasWindow()) {
993
+ return false;
994
+ }
995
+ return value instanceof Element || value instanceof getWindow(value).Element;
996
+ }
997
+ function isHTMLElement(value) {
998
+ if (!hasWindow()) {
999
+ return false;
1000
+ }
1001
+ return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
1002
+ }
1003
+ function isShadowRoot(value) {
1004
+ if (!hasWindow() || typeof ShadowRoot === 'undefined') {
1005
+ return false;
1006
+ }
1007
+ return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
1008
+ }
1009
+ function isOverflowElement(element) {
1010
+ const {
1011
+ overflow,
1012
+ overflowX,
1013
+ overflowY,
1014
+ display
1015
+ } = getComputedStyle$1(element);
1016
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
1017
+ }
1018
+ function isTableElement(element) {
1019
+ return /^(table|td|th)$/.test(getNodeName(element));
1020
+ }
1021
+ function isTopLayer(element) {
1022
+ try {
1023
+ if (element.matches(':popover-open')) {
1024
+ return true;
1025
+ }
1026
+ } catch (_e) {
1027
+ // no-op
1028
+ }
1029
+ try {
1030
+ return element.matches(':modal');
1031
+ } catch (_e) {
1032
+ return false;
1033
+ }
1034
+ }
1035
+ const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
1036
+ const containRe = /paint|layout|strict|content/;
1037
+ const isNotNone = value => !!value && value !== 'none';
1038
+ let isWebKitValue;
1039
+ function isContainingBlock(elementOrCss) {
1040
+ const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
1041
+
1042
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1043
+ // https://drafts.csswg.org/css-transforms-2/#individual-transforms
1044
+ return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
1045
+ }
1046
+ function getContainingBlock(element) {
1047
+ let currentNode = getParentNode(element);
1048
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1049
+ if (isContainingBlock(currentNode)) {
1050
+ return currentNode;
1051
+ } else if (isTopLayer(currentNode)) {
1052
+ return null;
1053
+ }
1054
+ currentNode = getParentNode(currentNode);
1055
+ }
1056
+ return null;
1057
+ }
1058
+ function isWebKit() {
1059
+ if (isWebKitValue == null) {
1060
+ isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
1061
+ }
1062
+ return isWebKitValue;
1063
+ }
1064
+ function isLastTraversableNode(node) {
1065
+ return /^(html|body|#document)$/.test(getNodeName(node));
1066
+ }
1067
+ function getComputedStyle$1(element) {
1068
+ return getWindow(element).getComputedStyle(element);
1069
+ }
1070
+ function getNodeScroll(element) {
1071
+ if (isElement(element)) {
1072
+ return {
1073
+ scrollLeft: element.scrollLeft,
1074
+ scrollTop: element.scrollTop
1075
+ };
1076
+ }
1077
+ return {
1078
+ scrollLeft: element.scrollX,
1079
+ scrollTop: element.scrollY
1080
+ };
1081
+ }
1082
+ function getParentNode(node) {
1083
+ if (getNodeName(node) === 'html') {
1084
+ return node;
1085
+ }
1086
+ const result =
1087
+ // Step into the shadow DOM of the parent of a slotted node.
1088
+ node.assignedSlot ||
1089
+ // DOM Element detected.
1090
+ node.parentNode ||
1091
+ // ShadowRoot detected.
1092
+ isShadowRoot(node) && node.host ||
1093
+ // Fallback.
1094
+ getDocumentElement(node);
1095
+ return isShadowRoot(result) ? result.host : result;
1096
+ }
1097
+ function getNearestOverflowAncestor(node) {
1098
+ const parentNode = getParentNode(node);
1099
+ if (isLastTraversableNode(parentNode)) {
1100
+ return node.ownerDocument ? node.ownerDocument.body : node.body;
1101
+ }
1102
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
1103
+ return parentNode;
1104
+ }
1105
+ return getNearestOverflowAncestor(parentNode);
1106
+ }
1107
+ function getOverflowAncestors(node, list, traverseIframes) {
1108
+ var _node$ownerDocument2;
1109
+ if (list === void 0) {
1110
+ list = [];
1111
+ }
1112
+ if (traverseIframes === void 0) {
1113
+ traverseIframes = true;
1114
+ }
1115
+ const scrollableAncestor = getNearestOverflowAncestor(node);
1116
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
1117
+ const win = getWindow(scrollableAncestor);
1118
+ if (isBody) {
1119
+ const frameElement = getFrameElement(win);
1120
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
1121
+ } else {
1122
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
1123
+ }
1124
+ }
1125
+ function getFrameElement(win) {
1126
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
1127
+ }
1128
+
1129
+ function getCssDimensions(element) {
1130
+ const css = getComputedStyle$1(element);
1131
+ // In testing environments, the `width` and `height` properties are empty
1132
+ // strings for SVG elements, returning NaN. Fallback to `0` in this case.
1133
+ let width = parseFloat(css.width) || 0;
1134
+ let height = parseFloat(css.height) || 0;
1135
+ const hasOffset = isHTMLElement(element);
1136
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
1137
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
1138
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
1139
+ if (shouldFallback) {
1140
+ width = offsetWidth;
1141
+ height = offsetHeight;
1142
+ }
1143
+ return {
1144
+ width,
1145
+ height,
1146
+ $: shouldFallback
1147
+ };
1148
+ }
1149
+
1150
+ function unwrapElement(element) {
1151
+ return !isElement(element) ? element.contextElement : element;
1152
+ }
1153
+
1154
+ function getScale(element) {
1155
+ const domElement = unwrapElement(element);
1156
+ if (!isHTMLElement(domElement)) {
1157
+ return createCoords(1);
1158
+ }
1159
+ const rect = domElement.getBoundingClientRect();
1160
+ const {
1161
+ width,
1162
+ height,
1163
+ $
1164
+ } = getCssDimensions(domElement);
1165
+ let x = ($ ? round(rect.width) : rect.width) / width;
1166
+ let y = ($ ? round(rect.height) : rect.height) / height;
1167
+
1168
+ // 0, NaN, or Infinity should always fallback to 1.
1169
+
1170
+ if (!x || !Number.isFinite(x)) {
1171
+ x = 1;
1172
+ }
1173
+ if (!y || !Number.isFinite(y)) {
1174
+ y = 1;
1175
+ }
1176
+ return {
1177
+ x,
1178
+ y
1179
+ };
1180
+ }
1181
+
1182
+ const noOffsets = /*#__PURE__*/createCoords(0);
1183
+ function getVisualOffsets(element) {
1184
+ const win = getWindow(element);
1185
+ if (!isWebKit() || !win.visualViewport) {
1186
+ return noOffsets;
1187
+ }
1188
+ return {
1189
+ x: win.visualViewport.offsetLeft,
1190
+ y: win.visualViewport.offsetTop
1191
+ };
1192
+ }
1193
+ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
1194
+ if (isFixed === void 0) {
1195
+ isFixed = false;
1196
+ }
1197
+ if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
1198
+ return false;
1199
+ }
1200
+ return isFixed;
1201
+ }
1202
+
1203
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
1204
+ if (includeScale === void 0) {
1205
+ includeScale = false;
1206
+ }
1207
+ if (isFixedStrategy === void 0) {
1208
+ isFixedStrategy = false;
1209
+ }
1210
+ const clientRect = element.getBoundingClientRect();
1211
+ const domElement = unwrapElement(element);
1212
+ let scale = createCoords(1);
1213
+ if (includeScale) {
1214
+ if (offsetParent) {
1215
+ if (isElement(offsetParent)) {
1216
+ scale = getScale(offsetParent);
1217
+ }
1218
+ } else {
1219
+ scale = getScale(element);
1220
+ }
1221
+ }
1222
+ const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
1223
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
1224
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
1225
+ let width = clientRect.width / scale.x;
1226
+ let height = clientRect.height / scale.y;
1227
+ if (domElement) {
1228
+ const win = getWindow(domElement);
1229
+ const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
1230
+ let currentWin = win;
1231
+ let currentIFrame = getFrameElement(currentWin);
1232
+ while (currentIFrame && offsetParent && offsetWin !== currentWin) {
1233
+ const iframeScale = getScale(currentIFrame);
1234
+ const iframeRect = currentIFrame.getBoundingClientRect();
1235
+ const css = getComputedStyle$1(currentIFrame);
1236
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
1237
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
1238
+ x *= iframeScale.x;
1239
+ y *= iframeScale.y;
1240
+ width *= iframeScale.x;
1241
+ height *= iframeScale.y;
1242
+ x += left;
1243
+ y += top;
1244
+ currentWin = getWindow(currentIFrame);
1245
+ currentIFrame = getFrameElement(currentWin);
1246
+ }
1247
+ }
1248
+ return rectToClientRect({
1249
+ width,
1250
+ height,
1251
+ x,
1252
+ y
1253
+ });
1254
+ }
1255
+
1256
+ // If <html> has a CSS width greater than the viewport, then this will be
1257
+ // incorrect for RTL.
1258
+ function getWindowScrollBarX(element, rect) {
1259
+ const leftScroll = getNodeScroll(element).scrollLeft;
1260
+ if (!rect) {
1261
+ return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
1262
+ }
1263
+ return rect.left + leftScroll;
1264
+ }
1265
+
1266
+ function getHTMLOffset(documentElement, scroll) {
1267
+ const htmlRect = documentElement.getBoundingClientRect();
1268
+ const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
1269
+ const y = htmlRect.top + scroll.scrollTop;
1270
+ return {
1271
+ x,
1272
+ y
1273
+ };
1274
+ }
1275
+
1276
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
1277
+ let {
1278
+ elements,
1279
+ rect,
1280
+ offsetParent,
1281
+ strategy
1282
+ } = _ref;
1283
+ const isFixed = strategy === 'fixed';
1284
+ const documentElement = getDocumentElement(offsetParent);
1285
+ const topLayer = elements ? isTopLayer(elements.floating) : false;
1286
+ if (offsetParent === documentElement || topLayer && isFixed) {
1287
+ return rect;
1288
+ }
1289
+ let scroll = {
1290
+ scrollLeft: 0,
1291
+ scrollTop: 0
1292
+ };
1293
+ let scale = createCoords(1);
1294
+ const offsets = createCoords(0);
1295
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
1296
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1297
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1298
+ scroll = getNodeScroll(offsetParent);
1299
+ }
1300
+ if (isOffsetParentAnElement) {
1301
+ const offsetRect = getBoundingClientRect(offsetParent);
1302
+ scale = getScale(offsetParent);
1303
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1304
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1305
+ }
1306
+ }
1307
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1308
+ return {
1309
+ width: rect.width * scale.x,
1310
+ height: rect.height * scale.y,
1311
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
1312
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
1313
+ };
1314
+ }
1315
+
1316
+ function getClientRects(element) {
1317
+ return Array.from(element.getClientRects());
1318
+ }
1319
+
1320
+ // Gets the entire size of the scrollable document area, even extending outside
1321
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
1322
+ function getDocumentRect(element) {
1323
+ const html = getDocumentElement(element);
1324
+ const scroll = getNodeScroll(element);
1325
+ const body = element.ownerDocument.body;
1326
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
1327
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
1328
+ let x = -scroll.scrollLeft + getWindowScrollBarX(element);
1329
+ const y = -scroll.scrollTop;
1330
+ if (getComputedStyle$1(body).direction === 'rtl') {
1331
+ x += max(html.clientWidth, body.clientWidth) - width;
1332
+ }
1333
+ return {
1334
+ width,
1335
+ height,
1336
+ x,
1337
+ y
1338
+ };
1339
+ }
1340
+
1341
+ // Safety check: ensure the scrollbar space is reasonable in case this
1342
+ // calculation is affected by unusual styles.
1343
+ // Most scrollbars leave 15-18px of space.
1344
+ const SCROLLBAR_MAX = 25;
1345
+ function getViewportRect(element, strategy) {
1346
+ const win = getWindow(element);
1347
+ const html = getDocumentElement(element);
1348
+ const visualViewport = win.visualViewport;
1349
+ let width = html.clientWidth;
1350
+ let height = html.clientHeight;
1351
+ let x = 0;
1352
+ let y = 0;
1353
+ if (visualViewport) {
1354
+ width = visualViewport.width;
1355
+ height = visualViewport.height;
1356
+ const visualViewportBased = isWebKit();
1357
+ if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
1358
+ x = visualViewport.offsetLeft;
1359
+ y = visualViewport.offsetTop;
1360
+ }
1361
+ }
1362
+ const windowScrollbarX = getWindowScrollBarX(html);
1363
+ // <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the
1364
+ // visual width of the <html> but this is not considered in the size
1365
+ // of `html.clientWidth`.
1366
+ if (windowScrollbarX <= 0) {
1367
+ const doc = html.ownerDocument;
1368
+ const body = doc.body;
1369
+ const bodyStyles = getComputedStyle(body);
1370
+ const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
1371
+ const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
1372
+ if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
1373
+ width -= clippingStableScrollbarWidth;
1374
+ }
1375
+ } else if (windowScrollbarX <= SCROLLBAR_MAX) {
1376
+ // If the <body> scrollbar is on the left, the width needs to be extended
1377
+ // by the scrollbar amount so there isn't extra space on the right.
1378
+ width += windowScrollbarX;
1379
+ }
1380
+ return {
1381
+ width,
1382
+ height,
1383
+ x,
1384
+ y
1385
+ };
1386
+ }
1387
+
1388
+ // Returns the inner client rect, subtracting scrollbars if present.
1389
+ function getInnerBoundingClientRect(element, strategy) {
1390
+ const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
1391
+ const top = clientRect.top + element.clientTop;
1392
+ const left = clientRect.left + element.clientLeft;
1393
+ const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
1394
+ const width = element.clientWidth * scale.x;
1395
+ const height = element.clientHeight * scale.y;
1396
+ const x = left * scale.x;
1397
+ const y = top * scale.y;
1398
+ return {
1399
+ width,
1400
+ height,
1401
+ x,
1402
+ y
1403
+ };
1404
+ }
1405
+ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
1406
+ let rect;
1407
+ if (clippingAncestor === 'viewport') {
1408
+ rect = getViewportRect(element, strategy);
1409
+ } else if (clippingAncestor === 'document') {
1410
+ rect = getDocumentRect(getDocumentElement(element));
1411
+ } else if (isElement(clippingAncestor)) {
1412
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
1413
+ } else {
1414
+ const visualOffsets = getVisualOffsets(element);
1415
+ rect = {
1416
+ x: clippingAncestor.x - visualOffsets.x,
1417
+ y: clippingAncestor.y - visualOffsets.y,
1418
+ width: clippingAncestor.width,
1419
+ height: clippingAncestor.height
1420
+ };
1421
+ }
1422
+ return rectToClientRect(rect);
1423
+ }
1424
+ function hasFixedPositionAncestor(element, stopNode) {
1425
+ const parentNode = getParentNode(element);
1426
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
1427
+ return false;
1428
+ }
1429
+ return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
1430
+ }
1431
+
1432
+ // A "clipping ancestor" is an `overflow` element with the characteristic of
1433
+ // clipping (or hiding) child elements. This returns all clipping ancestors
1434
+ // of the given element up the tree.
1435
+ function getClippingElementAncestors(element, cache) {
1436
+ const cachedResult = cache.get(element);
1437
+ if (cachedResult) {
1438
+ return cachedResult;
1439
+ }
1440
+ let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
1441
+ let currentContainingBlockComputedStyle = null;
1442
+ const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
1443
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
1444
+
1445
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1446
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1447
+ const computedStyle = getComputedStyle$1(currentNode);
1448
+ const currentNodeIsContaining = isContainingBlock(currentNode);
1449
+ if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
1450
+ currentContainingBlockComputedStyle = null;
1451
+ }
1452
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === 'absolute' || currentContainingBlockComputedStyle.position === 'fixed') || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
1453
+ if (shouldDropCurrentNode) {
1454
+ // Drop non-containing blocks.
1455
+ result = result.filter(ancestor => ancestor !== currentNode);
1456
+ } else {
1457
+ // Record last containing block for next iteration.
1458
+ currentContainingBlockComputedStyle = computedStyle;
1459
+ }
1460
+ currentNode = getParentNode(currentNode);
1461
+ }
1462
+ cache.set(element, result);
1463
+ return result;
1464
+ }
1465
+
1466
+ // Gets the maximum area that the element is visible in due to any number of
1467
+ // clipping ancestors.
1468
+ function getClippingRect(_ref) {
1469
+ let {
1470
+ element,
1471
+ boundary,
1472
+ rootBoundary,
1473
+ strategy
1474
+ } = _ref;
1475
+ const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
1476
+ const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1477
+ const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
1478
+ let top = firstRect.top;
1479
+ let right = firstRect.right;
1480
+ let bottom = firstRect.bottom;
1481
+ let left = firstRect.left;
1482
+ for (let i = 1; i < clippingAncestors.length; i++) {
1483
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
1484
+ top = max(rect.top, top);
1485
+ right = min(rect.right, right);
1486
+ bottom = min(rect.bottom, bottom);
1487
+ left = max(rect.left, left);
1488
+ }
1489
+ return {
1490
+ width: right - left,
1491
+ height: bottom - top,
1492
+ x: left,
1493
+ y: top
1494
+ };
1495
+ }
1496
+
1497
+ function getDimensions(element) {
1498
+ const {
1499
+ width,
1500
+ height
1501
+ } = getCssDimensions(element);
1502
+ return {
1503
+ width,
1504
+ height
1505
+ };
1506
+ }
1507
+
1508
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1509
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
1510
+ const documentElement = getDocumentElement(offsetParent);
1511
+ const isFixed = strategy === 'fixed';
1512
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1513
+ let scroll = {
1514
+ scrollLeft: 0,
1515
+ scrollTop: 0
1516
+ };
1517
+ const offsets = createCoords(0);
1518
+
1519
+ // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
1520
+ // Firefox with layout.scrollbar.side = 3 in about:config to test this.
1521
+ function setLeftRTLScrollbarOffset() {
1522
+ offsets.x = getWindowScrollBarX(documentElement);
1523
+ }
1524
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1525
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1526
+ scroll = getNodeScroll(offsetParent);
1527
+ }
1528
+ if (isOffsetParentAnElement) {
1529
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1530
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1531
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1532
+ } else if (documentElement) {
1533
+ setLeftRTLScrollbarOffset();
1534
+ }
1535
+ }
1536
+ if (isFixed && !isOffsetParentAnElement && documentElement) {
1537
+ setLeftRTLScrollbarOffset();
1538
+ }
1539
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1540
+ const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
1541
+ const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
1542
+ return {
1543
+ x,
1544
+ y,
1545
+ width: rect.width,
1546
+ height: rect.height
1547
+ };
1548
+ }
1549
+
1550
+ function isStaticPositioned(element) {
1551
+ return getComputedStyle$1(element).position === 'static';
1552
+ }
1553
+
1554
+ function getTrueOffsetParent(element, polyfill) {
1555
+ if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
1556
+ return null;
1557
+ }
1558
+ if (polyfill) {
1559
+ return polyfill(element);
1560
+ }
1561
+ let rawOffsetParent = element.offsetParent;
1562
+
1563
+ // Firefox returns the <html> element as the offsetParent if it's non-static,
1564
+ // while Chrome and Safari return the <body> element. The <body> element must
1565
+ // be used to perform the correct calculations even if the <html> element is
1566
+ // non-static.
1567
+ if (getDocumentElement(element) === rawOffsetParent) {
1568
+ rawOffsetParent = rawOffsetParent.ownerDocument.body;
1569
+ }
1570
+ return rawOffsetParent;
1571
+ }
1572
+
1573
+ // Gets the closest ancestor positioned element. Handles some edge cases,
1574
+ // such as table ancestors and cross browser bugs.
1575
+ function getOffsetParent(element, polyfill) {
1576
+ const win = getWindow(element);
1577
+ if (isTopLayer(element)) {
1578
+ return win;
1579
+ }
1580
+ if (!isHTMLElement(element)) {
1581
+ let svgOffsetParent = getParentNode(element);
1582
+ while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
1583
+ if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
1584
+ return svgOffsetParent;
1585
+ }
1586
+ svgOffsetParent = getParentNode(svgOffsetParent);
1587
+ }
1588
+ return win;
1589
+ }
1590
+ let offsetParent = getTrueOffsetParent(element, polyfill);
1591
+ while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
1592
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1593
+ }
1594
+ if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
1595
+ return win;
1596
+ }
1597
+ return offsetParent || getContainingBlock(element) || win;
1598
+ }
1599
+
1600
+ const getElementRects = async function (data) {
1601
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1602
+ const getDimensionsFn = this.getDimensions;
1603
+ const floatingDimensions = await getDimensionsFn(data.floating);
1604
+ return {
1605
+ reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
1606
+ floating: {
1607
+ x: 0,
1608
+ y: 0,
1609
+ width: floatingDimensions.width,
1610
+ height: floatingDimensions.height
1611
+ }
1612
+ };
1613
+ };
1614
+
1615
+ function isRTL(element) {
1616
+ return getComputedStyle$1(element).direction === 'rtl';
1617
+ }
1618
+
1619
+ const platform = {
1620
+ convertOffsetParentRelativeRectToViewportRelativeRect,
1621
+ getDocumentElement,
1622
+ getClippingRect,
1623
+ getOffsetParent,
1624
+ getElementRects,
1625
+ getClientRects,
1626
+ getDimensions,
1627
+ getScale,
1628
+ isElement,
1629
+ isRTL
1630
+ };
1631
+
1632
+ function rectsAreEqual(a, b) {
1633
+ return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
1634
+ }
1635
+
1636
+ // https://samthor.au/2021/observing-dom/
1637
+ function observeMove(element, onMove) {
1638
+ let io = null;
1639
+ let timeoutId;
1640
+ const root = getDocumentElement(element);
1641
+ function cleanup() {
1642
+ var _io;
1643
+ clearTimeout(timeoutId);
1644
+ (_io = io) == null || _io.disconnect();
1645
+ io = null;
1646
+ }
1647
+ function refresh(skip, threshold) {
1648
+ if (skip === void 0) {
1649
+ skip = false;
1650
+ }
1651
+ if (threshold === void 0) {
1652
+ threshold = 1;
1653
+ }
1654
+ cleanup();
1655
+ const elementRectForRootMargin = element.getBoundingClientRect();
1656
+ const {
1657
+ left,
1658
+ top,
1659
+ width,
1660
+ height
1661
+ } = elementRectForRootMargin;
1662
+ if (!skip) {
1663
+ onMove();
1664
+ }
1665
+ if (!width || !height) {
1666
+ return;
1667
+ }
1668
+ const insetTop = floor(top);
1669
+ const insetRight = floor(root.clientWidth - (left + width));
1670
+ const insetBottom = floor(root.clientHeight - (top + height));
1671
+ const insetLeft = floor(left);
1672
+ const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
1673
+ const options = {
1674
+ rootMargin,
1675
+ threshold: max(0, min(1, threshold)) || 1
1676
+ };
1677
+ let isFirstUpdate = true;
1678
+ function handleObserve(entries) {
1679
+ const ratio = entries[0].intersectionRatio;
1680
+ if (ratio !== threshold) {
1681
+ if (!isFirstUpdate) {
1682
+ return refresh();
1683
+ }
1684
+ if (!ratio) {
1685
+ // If the reference is clipped, the ratio is 0. Throttle the refresh
1686
+ // to prevent an infinite loop of updates.
1687
+ timeoutId = setTimeout(() => {
1688
+ refresh(false, 1e-7);
1689
+ }, 1000);
1690
+ } else {
1691
+ refresh(false, ratio);
1692
+ }
1693
+ }
1694
+ if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
1695
+ // It's possible that even though the ratio is reported as 1, the
1696
+ // element is not actually fully within the IntersectionObserver's root
1697
+ // area anymore. This can happen under performance constraints. This may
1698
+ // be a bug in the browser's IntersectionObserver implementation. To
1699
+ // work around this, we compare the element's bounding rect now with
1700
+ // what it was at the time we created the IntersectionObserver. If they
1701
+ // are not equal then the element moved, so we refresh.
1702
+ refresh();
1703
+ }
1704
+ isFirstUpdate = false;
1705
+ }
1706
+
1707
+ // Older browsers don't support a `document` as the root and will throw an
1708
+ // error.
1709
+ try {
1710
+ io = new IntersectionObserver(handleObserve, {
1711
+ ...options,
1712
+ // Handle <iframe>s
1713
+ root: root.ownerDocument
1714
+ });
1715
+ } catch (_e) {
1716
+ io = new IntersectionObserver(handleObserve, options);
1717
+ }
1718
+ io.observe(element);
1719
+ }
1720
+ refresh(true);
1721
+ return cleanup;
1722
+ }
1723
+
1724
+ /**
1725
+ * Automatically updates the position of the floating element when necessary.
1726
+ * Should only be called when the floating element is mounted on the DOM or
1727
+ * visible on the screen.
1728
+ * @returns cleanup function that should be invoked when the floating element is
1729
+ * removed from the DOM or hidden from the screen.
1730
+ * @see https://floating-ui.com/docs/autoUpdate
1731
+ */
1732
+ function autoUpdate(reference, floating, update, options) {
1733
+ if (options === void 0) {
1734
+ options = {};
1735
+ }
1736
+ const {
1737
+ ancestorScroll = true,
1738
+ ancestorResize = true,
1739
+ elementResize = typeof ResizeObserver === 'function',
1740
+ layoutShift = typeof IntersectionObserver === 'function',
1741
+ animationFrame = false
1742
+ } = options;
1743
+ const referenceEl = unwrapElement(reference);
1744
+ const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];
1745
+ ancestors.forEach(ancestor => {
1746
+ ancestorScroll && ancestor.addEventListener('scroll', update, {
1747
+ passive: true
1748
+ });
1749
+ ancestorResize && ancestor.addEventListener('resize', update);
1750
+ });
1751
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
1752
+ let reobserveFrame = -1;
1753
+ let resizeObserver = null;
1754
+ if (elementResize) {
1755
+ resizeObserver = new ResizeObserver(_ref => {
1756
+ let [firstEntry] = _ref;
1757
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
1758
+ // Prevent update loops when using the `size` middleware.
1759
+ // https://github.com/floating-ui/floating-ui/issues/1740
1760
+ resizeObserver.unobserve(floating);
1761
+ cancelAnimationFrame(reobserveFrame);
1762
+ reobserveFrame = requestAnimationFrame(() => {
1763
+ var _resizeObserver;
1764
+ (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
1765
+ });
1766
+ }
1767
+ update();
1768
+ });
1769
+ if (referenceEl && !animationFrame) {
1770
+ resizeObserver.observe(referenceEl);
1771
+ }
1772
+ if (floating) {
1773
+ resizeObserver.observe(floating);
1774
+ }
1775
+ }
1776
+ let frameId;
1777
+ let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
1778
+ if (animationFrame) {
1779
+ frameLoop();
1780
+ }
1781
+ function frameLoop() {
1782
+ const nextRefRect = getBoundingClientRect(reference);
1783
+ if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
1784
+ update();
1785
+ }
1786
+ prevRefRect = nextRefRect;
1787
+ frameId = requestAnimationFrame(frameLoop);
1788
+ }
1789
+ update();
1790
+ return () => {
1791
+ var _resizeObserver2;
1792
+ ancestors.forEach(ancestor => {
1793
+ ancestorScroll && ancestor.removeEventListener('scroll', update);
1794
+ ancestorResize && ancestor.removeEventListener('resize', update);
1795
+ });
1796
+ cleanupIo == null || cleanupIo();
1797
+ (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
1798
+ resizeObserver = null;
1799
+ if (animationFrame) {
1800
+ cancelAnimationFrame(frameId);
1801
+ }
1802
+ };
1803
+ }
1804
+
1805
+ /**
1806
+ * Modifies the placement by translating the floating element along the
1807
+ * specified axes.
1808
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
1809
+ * object may be passed.
1810
+ * @see https://floating-ui.com/docs/offset
1811
+ */
1812
+ const offset$1 = offset$2;
1813
+
1814
+ /**
1815
+ * Optimizes the visibility of the floating element by shifting it in order to
1816
+ * keep it in view when it will overflow the clipping boundary.
1817
+ * @see https://floating-ui.com/docs/shift
1818
+ */
1819
+ const shift$1 = shift$2;
1820
+
1821
+ /**
1822
+ * Optimizes the visibility of the floating element by flipping the `placement`
1823
+ * in order to keep it in view when the preferred placement(s) will overflow the
1824
+ * clipping boundary. Alternative to `autoPlacement`.
1825
+ * @see https://floating-ui.com/docs/flip
1826
+ */
1827
+ const flip$1 = flip$2;
1828
+
1829
+ /**
1830
+ * Provides data that allows you to change the size of the floating element —
1831
+ * for instance, prevent it from overflowing the clipping boundary or match the
1832
+ * width of the reference element.
1833
+ * @see https://floating-ui.com/docs/size
1834
+ */
1835
+ const size$1 = size$2;
1836
+
1837
+ /**
1838
+ * Provides data to hide the floating element in applicable situations, such as
1839
+ * when it is not in the same clipping context as the reference element.
1840
+ * @see https://floating-ui.com/docs/hide
1841
+ */
1842
+ const hide$1 = hide$2;
1843
+
1844
+ /**
1845
+ * Provides data to position an inner element of the floating element so that it
1846
+ * appears centered to the reference element.
1847
+ * @see https://floating-ui.com/docs/arrow
1848
+ */
1849
+ const arrow$2 = arrow$3;
1850
+
1851
+ /**
1852
+ * Built-in `limiter` that will stop `shift()` at a certain point.
1853
+ */
1854
+ const limitShift$1 = limitShift$2;
1855
+
1856
+ /**
1857
+ * Computes the `x` and `y` coordinates that will place the floating element
1858
+ * next to a given reference element.
1859
+ */
1860
+ const computePosition = (reference, floating, options) => {
1861
+ // This caches the expensive `getClippingElementAncestors` function so that
1862
+ // multiple lifecycle resets re-use the same result. It only lives for a
1863
+ // single call. If other functions become expensive, we can add them as well.
1864
+ const cache = new Map();
1865
+ const mergedOptions = {
1866
+ platform,
1867
+ ...options
1868
+ };
1869
+ const platformWithCache = {
1870
+ ...mergedOptions.platform,
1871
+ _c: cache
1872
+ };
1873
+ return computePosition$1(reference, floating, {
1874
+ ...mergedOptions,
1875
+ platform: platformWithCache
1876
+ });
1877
+ };
1878
+
1879
+ var isClient = typeof document !== 'undefined';
1880
+
1881
+ var noop = function noop() {};
1882
+ var index = isClient ? useLayoutEffect : noop;
1883
+
1884
+ // Fork of `fast-deep-equal` that only does the comparisons we need and compares
1885
+ // functions
1886
+ function deepEqual(a, b) {
1887
+ if (a === b) {
1888
+ return true;
1889
+ }
1890
+ if (typeof a !== typeof b) {
1891
+ return false;
1892
+ }
1893
+ if (typeof a === 'function' && a.toString() === b.toString()) {
1894
+ return true;
1895
+ }
1896
+ let length;
1897
+ let i;
1898
+ let keys;
1899
+ if (a && b && typeof a === 'object') {
1900
+ if (Array.isArray(a)) {
1901
+ length = a.length;
1902
+ if (length !== b.length) return false;
1903
+ for (i = length; i-- !== 0;) {
1904
+ if (!deepEqual(a[i], b[i])) {
1905
+ return false;
1906
+ }
1907
+ }
1908
+ return true;
1909
+ }
1910
+ keys = Object.keys(a);
1911
+ length = keys.length;
1912
+ if (length !== Object.keys(b).length) {
1913
+ return false;
1914
+ }
1915
+ for (i = length; i-- !== 0;) {
1916
+ if (!{}.hasOwnProperty.call(b, keys[i])) {
1917
+ return false;
1918
+ }
1919
+ }
1920
+ for (i = length; i-- !== 0;) {
1921
+ const key = keys[i];
1922
+ if (key === '_owner' && a.$$typeof) {
1923
+ continue;
1924
+ }
1925
+ if (!deepEqual(a[key], b[key])) {
1926
+ return false;
1927
+ }
1928
+ }
1929
+ return true;
1930
+ }
1931
+ return a !== a && b !== b;
1932
+ }
1933
+
1934
+ function getDPR(element) {
1935
+ if (typeof window === 'undefined') {
1936
+ return 1;
1937
+ }
1938
+ const win = element.ownerDocument.defaultView || window;
1939
+ return win.devicePixelRatio || 1;
1940
+ }
1941
+
1942
+ function roundByDPR(element, value) {
1943
+ const dpr = getDPR(element);
1944
+ return Math.round(value * dpr) / dpr;
1945
+ }
1946
+
1947
+ function useLatestRef(value) {
1948
+ const ref = React.useRef(value);
1949
+ index(() => {
1950
+ ref.current = value;
1951
+ });
1952
+ return ref;
1953
+ }
1954
+
1955
+ /**
1956
+ * Provides data to position a floating element.
1957
+ * @see https://floating-ui.com/docs/useFloating
1958
+ */
1959
+ function useFloating(options) {
1960
+ if (options === void 0) {
1961
+ options = {};
1962
+ }
1963
+ const {
1964
+ placement = 'bottom',
1965
+ strategy = 'absolute',
1966
+ middleware = [],
1967
+ platform,
1968
+ elements: {
1969
+ reference: externalReference,
1970
+ floating: externalFloating
1971
+ } = {},
1972
+ transform = true,
1973
+ whileElementsMounted,
1974
+ open
1975
+ } = options;
1976
+ const [data, setData] = React.useState({
1977
+ x: 0,
1978
+ y: 0,
1979
+ strategy,
1980
+ placement,
1981
+ middlewareData: {},
1982
+ isPositioned: false
1983
+ });
1984
+ const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);
1985
+ if (!deepEqual(latestMiddleware, middleware)) {
1986
+ setLatestMiddleware(middleware);
1987
+ }
1988
+ const [_reference, _setReference] = React.useState(null);
1989
+ const [_floating, _setFloating] = React.useState(null);
1990
+ const setReference = React.useCallback(node => {
1991
+ if (node !== referenceRef.current) {
1992
+ referenceRef.current = node;
1993
+ _setReference(node);
1994
+ }
1995
+ }, []);
1996
+ const setFloating = React.useCallback(node => {
1997
+ if (node !== floatingRef.current) {
1998
+ floatingRef.current = node;
1999
+ _setFloating(node);
2000
+ }
2001
+ }, []);
2002
+ const referenceEl = externalReference || _reference;
2003
+ const floatingEl = externalFloating || _floating;
2004
+ const referenceRef = React.useRef(null);
2005
+ const floatingRef = React.useRef(null);
2006
+ const dataRef = React.useRef(data);
2007
+ const hasWhileElementsMounted = whileElementsMounted != null;
2008
+ const whileElementsMountedRef = useLatestRef(whileElementsMounted);
2009
+ const platformRef = useLatestRef(platform);
2010
+ const openRef = useLatestRef(open);
2011
+ const update = React.useCallback(() => {
2012
+ if (!referenceRef.current || !floatingRef.current) {
2013
+ return;
2014
+ }
2015
+ const config = {
2016
+ placement,
2017
+ strategy,
2018
+ middleware: latestMiddleware
2019
+ };
2020
+ if (platformRef.current) {
2021
+ config.platform = platformRef.current;
2022
+ }
2023
+ computePosition(referenceRef.current, floatingRef.current, config).then(data => {
2024
+ const fullData = {
2025
+ ...data,
2026
+ // The floating element's position may be recomputed while it's closed
2027
+ // but still mounted (such as when transitioning out). To ensure
2028
+ // `isPositioned` will be `false` initially on the next open, avoid
2029
+ // setting it to `true` when `open === false` (must be specified).
2030
+ isPositioned: openRef.current !== false
2031
+ };
2032
+ if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
2033
+ dataRef.current = fullData;
2034
+ ReactDOM.flushSync(() => {
2035
+ setData(fullData);
2036
+ });
2037
+ }
2038
+ });
2039
+ }, [latestMiddleware, placement, strategy, platformRef, openRef]);
2040
+ index(() => {
2041
+ if (open === false && dataRef.current.isPositioned) {
2042
+ dataRef.current.isPositioned = false;
2043
+ setData(data => ({
2044
+ ...data,
2045
+ isPositioned: false
2046
+ }));
2047
+ }
2048
+ }, [open]);
2049
+ const isMountedRef = React.useRef(false);
2050
+ index(() => {
2051
+ isMountedRef.current = true;
2052
+ return () => {
2053
+ isMountedRef.current = false;
2054
+ };
2055
+ }, []);
2056
+ index(() => {
2057
+ if (referenceEl) referenceRef.current = referenceEl;
2058
+ if (floatingEl) floatingRef.current = floatingEl;
2059
+ if (referenceEl && floatingEl) {
2060
+ if (whileElementsMountedRef.current) {
2061
+ return whileElementsMountedRef.current(referenceEl, floatingEl, update);
2062
+ }
2063
+ update();
2064
+ }
2065
+ }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
2066
+ const refs = React.useMemo(() => ({
2067
+ reference: referenceRef,
2068
+ floating: floatingRef,
2069
+ setReference,
2070
+ setFloating
2071
+ }), [setReference, setFloating]);
2072
+ const elements = React.useMemo(() => ({
2073
+ reference: referenceEl,
2074
+ floating: floatingEl
2075
+ }), [referenceEl, floatingEl]);
2076
+ const floatingStyles = React.useMemo(() => {
2077
+ const initialStyles = {
2078
+ position: strategy,
2079
+ left: 0,
2080
+ top: 0
2081
+ };
2082
+ if (!elements.floating) {
2083
+ return initialStyles;
2084
+ }
2085
+ const x = roundByDPR(elements.floating, data.x);
2086
+ const y = roundByDPR(elements.floating, data.y);
2087
+ if (transform) {
2088
+ return {
2089
+ ...initialStyles,
2090
+ transform: "translate(" + x + "px, " + y + "px)",
2091
+ ...(getDPR(elements.floating) >= 1.5 && {
2092
+ willChange: 'transform'
2093
+ })
2094
+ };
2095
+ }
2096
+ return {
2097
+ position: strategy,
2098
+ left: x,
2099
+ top: y
2100
+ };
2101
+ }, [strategy, transform, elements.floating, data.x, data.y]);
2102
+ return React.useMemo(() => ({
2103
+ ...data,
2104
+ update,
2105
+ refs,
2106
+ elements,
2107
+ floatingStyles
2108
+ }), [data, update, refs, elements, floatingStyles]);
2109
+ }
2110
+
2111
+ /**
2112
+ * Provides data to position an inner element of the floating element so that it
2113
+ * appears centered to the reference element.
2114
+ * This wraps the core `arrow` middleware to allow React refs as the element.
2115
+ * @see https://floating-ui.com/docs/arrow
2116
+ */
2117
+ const arrow$1 = options => {
2118
+ function isRef(value) {
2119
+ return {}.hasOwnProperty.call(value, 'current');
2120
+ }
2121
+ return {
2122
+ name: 'arrow',
2123
+ options,
2124
+ fn(state) {
2125
+ const {
2126
+ element,
2127
+ padding
2128
+ } = typeof options === 'function' ? options(state) : options;
2129
+ if (element && isRef(element)) {
2130
+ if (element.current != null) {
2131
+ return arrow$2({
2132
+ element: element.current,
2133
+ padding
2134
+ }).fn(state);
2135
+ }
2136
+ return {};
2137
+ }
2138
+ if (element) {
2139
+ return arrow$2({
2140
+ element,
2141
+ padding
2142
+ }).fn(state);
2143
+ }
2144
+ return {};
2145
+ }
2146
+ };
2147
+ };
2148
+
2149
+ /**
2150
+ * Modifies the placement by translating the floating element along the
2151
+ * specified axes.
2152
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
2153
+ * object may be passed.
2154
+ * @see https://floating-ui.com/docs/offset
2155
+ */
2156
+ const offset = (options, deps) => {
2157
+ const result = offset$1(options);
2158
+ return {
2159
+ name: result.name,
2160
+ fn: result.fn,
2161
+ options: [options, deps]
2162
+ };
2163
+ };
2164
+
2165
+ /**
2166
+ * Optimizes the visibility of the floating element by shifting it in order to
2167
+ * keep it in view when it will overflow the clipping boundary.
2168
+ * @see https://floating-ui.com/docs/shift
2169
+ */
2170
+ const shift = (options, deps) => {
2171
+ const result = shift$1(options);
2172
+ return {
2173
+ name: result.name,
2174
+ fn: result.fn,
2175
+ options: [options, deps]
2176
+ };
2177
+ };
2178
+
2179
+ /**
2180
+ * Built-in `limiter` that will stop `shift()` at a certain point.
2181
+ */
2182
+ const limitShift = (options, deps) => {
2183
+ const result = limitShift$1(options);
2184
+ return {
2185
+ fn: result.fn,
2186
+ options: [options, deps]
2187
+ };
2188
+ };
2189
+
2190
+ /**
2191
+ * Optimizes the visibility of the floating element by flipping the `placement`
2192
+ * in order to keep it in view when the preferred placement(s) will overflow the
2193
+ * clipping boundary. Alternative to `autoPlacement`.
2194
+ * @see https://floating-ui.com/docs/flip
2195
+ */
2196
+ const flip = (options, deps) => {
2197
+ const result = flip$1(options);
2198
+ return {
2199
+ name: result.name,
2200
+ fn: result.fn,
2201
+ options: [options, deps]
2202
+ };
2203
+ };
2204
+
2205
+ /**
2206
+ * Provides data that allows you to change the size of the floating element —
2207
+ * for instance, prevent it from overflowing the clipping boundary or match the
2208
+ * width of the reference element.
2209
+ * @see https://floating-ui.com/docs/size
2210
+ */
2211
+ const size = (options, deps) => {
2212
+ const result = size$1(options);
2213
+ return {
2214
+ name: result.name,
2215
+ fn: result.fn,
2216
+ options: [options, deps]
2217
+ };
2218
+ };
2219
+
2220
+ /**
2221
+ * Provides data to hide the floating element in applicable situations, such as
2222
+ * when it is not in the same clipping context as the reference element.
2223
+ * @see https://floating-ui.com/docs/hide
2224
+ */
2225
+ const hide = (options, deps) => {
2226
+ const result = hide$1(options);
2227
+ return {
2228
+ name: result.name,
2229
+ fn: result.fn,
2230
+ options: [options, deps]
2231
+ };
2232
+ };
2233
+
2234
+ /**
2235
+ * Provides data to position an inner element of the floating element so that it
2236
+ * appears centered to the reference element.
2237
+ * This wraps the core `arrow` middleware to allow React refs as the element.
2238
+ * @see https://floating-ui.com/docs/arrow
2239
+ */
2240
+ const arrow = (options, deps) => {
2241
+ const result = arrow$1(options);
2242
+ return {
2243
+ name: result.name,
2244
+ fn: result.fn,
2245
+ options: [options, deps]
2246
+ };
2247
+ };
2248
+
2249
+ // src/arrow.tsx
2250
+ var NAME = "Arrow";
2251
+ var Arrow$1 = React.forwardRef((props, forwardedRef) => {
2252
+ const { children, width = 10, height = 5, ...arrowProps } = props;
2253
+ return /* @__PURE__ */ jsx(
2254
+ Primitive.svg,
2255
+ {
2256
+ ...arrowProps,
2257
+ ref: forwardedRef,
2258
+ width,
2259
+ height,
2260
+ viewBox: "0 0 30 10",
2261
+ preserveAspectRatio: "none",
2262
+ children: props.asChild ? children : /* @__PURE__ */ jsx("polygon", { points: "0,0 30,0 15,10" })
2263
+ }
2264
+ );
2265
+ });
2266
+ Arrow$1.displayName = NAME;
2267
+ var Root = Arrow$1;
2268
+
2269
+ var POPPER_NAME = "Popper";
2270
+ var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
2271
+ var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
2272
+ var Popper = (props) => {
2273
+ const { __scopePopper, children } = props;
2274
+ const [anchor, setAnchor] = React.useState(null);
2275
+ return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
2276
+ };
2277
+ Popper.displayName = POPPER_NAME;
2278
+ var ANCHOR_NAME = "PopperAnchor";
2279
+ var PopperAnchor = React.forwardRef(
2280
+ (props, forwardedRef) => {
2281
+ const { __scopePopper, virtualRef, ...anchorProps } = props;
2282
+ const context = usePopperContext(ANCHOR_NAME, __scopePopper);
2283
+ const ref = React.useRef(null);
2284
+ const composedRefs = useComposedRefs(forwardedRef, ref);
2285
+ const anchorRef = React.useRef(null);
2286
+ React.useEffect(() => {
2287
+ const previousAnchor = anchorRef.current;
2288
+ anchorRef.current = virtualRef?.current || ref.current;
2289
+ if (previousAnchor !== anchorRef.current) {
2290
+ context.onAnchorChange(anchorRef.current);
2291
+ }
2292
+ });
2293
+ return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });
2294
+ }
2295
+ );
2296
+ PopperAnchor.displayName = ANCHOR_NAME;
2297
+ var CONTENT_NAME = "PopperContent";
2298
+ var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);
2299
+ var PopperContent = React.forwardRef(
2300
+ (props, forwardedRef) => {
2301
+ const {
2302
+ __scopePopper,
2303
+ side = "bottom",
2304
+ sideOffset = 0,
2305
+ align = "center",
2306
+ alignOffset = 0,
2307
+ arrowPadding = 0,
2308
+ avoidCollisions = true,
2309
+ collisionBoundary = [],
2310
+ collisionPadding: collisionPaddingProp = 0,
2311
+ sticky = "partial",
2312
+ hideWhenDetached = false,
2313
+ updatePositionStrategy = "optimized",
2314
+ onPlaced,
2315
+ ...contentProps
2316
+ } = props;
2317
+ const context = usePopperContext(CONTENT_NAME, __scopePopper);
2318
+ const [content, setContent] = React.useState(null);
2319
+ const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
2320
+ const [arrow$1, setArrow] = React.useState(null);
2321
+ const arrowSize = useSize(arrow$1);
2322
+ const arrowWidth = arrowSize?.width ?? 0;
2323
+ const arrowHeight = arrowSize?.height ?? 0;
2324
+ const desiredPlacement = side + (align !== "center" ? "-" + align : "");
2325
+ const collisionPadding = typeof collisionPaddingProp === "number" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };
2326
+ const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];
2327
+ const hasExplicitBoundaries = boundary.length > 0;
2328
+ const detectOverflowOptions = {
2329
+ padding: collisionPadding,
2330
+ boundary: boundary.filter(isNotNull),
2331
+ // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2332
+ altBoundary: hasExplicitBoundaries
2333
+ };
2334
+ const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({
2335
+ // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2336
+ strategy: "fixed",
2337
+ placement: desiredPlacement,
2338
+ whileElementsMounted: (...args) => {
2339
+ const cleanup = autoUpdate(...args, {
2340
+ animationFrame: updatePositionStrategy === "always"
2341
+ });
2342
+ return cleanup;
2343
+ },
2344
+ elements: {
2345
+ reference: context.anchor
2346
+ },
2347
+ middleware: [
2348
+ offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),
2349
+ avoidCollisions && shift({
2350
+ mainAxis: true,
2351
+ crossAxis: false,
2352
+ limiter: sticky === "partial" ? limitShift() : void 0,
2353
+ ...detectOverflowOptions
2354
+ }),
2355
+ avoidCollisions && flip({ ...detectOverflowOptions }),
2356
+ size({
2357
+ ...detectOverflowOptions,
2358
+ apply: ({ elements, rects, availableWidth, availableHeight }) => {
2359
+ const { width: anchorWidth, height: anchorHeight } = rects.reference;
2360
+ const contentStyle = elements.floating.style;
2361
+ contentStyle.setProperty("--radix-popper-available-width", `${availableWidth}px`);
2362
+ contentStyle.setProperty("--radix-popper-available-height", `${availableHeight}px`);
2363
+ contentStyle.setProperty("--radix-popper-anchor-width", `${anchorWidth}px`);
2364
+ contentStyle.setProperty("--radix-popper-anchor-height", `${anchorHeight}px`);
2365
+ }
2366
+ }),
2367
+ arrow$1 && arrow({ element: arrow$1, padding: arrowPadding }),
2368
+ transformOrigin({ arrowWidth, arrowHeight }),
2369
+ hideWhenDetached && hide({ strategy: "referenceHidden", ...detectOverflowOptions })
2370
+ ]
2371
+ });
2372
+ const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
2373
+ const handlePlaced = useCallbackRef(onPlaced);
2374
+ useLayoutEffect2(() => {
2375
+ if (isPositioned) {
2376
+ handlePlaced?.();
2377
+ }
2378
+ }, [isPositioned, handlePlaced]);
2379
+ const arrowX = middlewareData.arrow?.x;
2380
+ const arrowY = middlewareData.arrow?.y;
2381
+ const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
2382
+ const [contentZIndex, setContentZIndex] = React.useState();
2383
+ useLayoutEffect2(() => {
2384
+ if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
2385
+ }, [content]);
2386
+ return /* @__PURE__ */ jsx(
2387
+ "div",
2388
+ {
2389
+ ref: refs.setFloating,
2390
+ "data-radix-popper-content-wrapper": "",
2391
+ style: {
2392
+ ...floatingStyles,
2393
+ transform: isPositioned ? floatingStyles.transform : "translate(0, -200%)",
2394
+ // keep off the page when measuring
2395
+ minWidth: "max-content",
2396
+ zIndex: contentZIndex,
2397
+ ["--radix-popper-transform-origin"]: [
2398
+ middlewareData.transformOrigin?.x,
2399
+ middlewareData.transformOrigin?.y
2400
+ ].join(" "),
2401
+ // hide the content if using the hide middleware and should be hidden
2402
+ // set visibility to hidden and disable pointer events so the UI behaves
2403
+ // as if the PopperContent isn't there at all
2404
+ ...middlewareData.hide?.referenceHidden && {
2405
+ visibility: "hidden",
2406
+ pointerEvents: "none"
2407
+ }
2408
+ },
2409
+ dir: props.dir,
2410
+ children: /* @__PURE__ */ jsx(
2411
+ PopperContentProvider,
2412
+ {
2413
+ scope: __scopePopper,
2414
+ placedSide,
2415
+ onArrowChange: setArrow,
2416
+ arrowX,
2417
+ arrowY,
2418
+ shouldHideArrow: cannotCenterArrow,
2419
+ children: /* @__PURE__ */ jsx(
2420
+ Primitive.div,
2421
+ {
2422
+ "data-side": placedSide,
2423
+ "data-align": placedAlign,
2424
+ ...contentProps,
2425
+ ref: composedRefs,
2426
+ style: {
2427
+ ...contentProps.style,
2428
+ // if the PopperContent hasn't been placed yet (not all measurements done)
2429
+ // we prevent animations so that users's animation don't kick in too early referring wrong sides
2430
+ animation: !isPositioned ? "none" : void 0
2431
+ }
2432
+ }
2433
+ )
2434
+ }
2435
+ )
2436
+ }
2437
+ );
2438
+ }
2439
+ );
2440
+ PopperContent.displayName = CONTENT_NAME;
2441
+ var ARROW_NAME = "PopperArrow";
2442
+ var OPPOSITE_SIDE = {
2443
+ top: "bottom",
2444
+ right: "left",
2445
+ bottom: "top",
2446
+ left: "right"
2447
+ };
2448
+ var PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {
2449
+ const { __scopePopper, ...arrowProps } = props;
2450
+ const contentContext = useContentContext(ARROW_NAME, __scopePopper);
2451
+ const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
2452
+ return (
2453
+ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2454
+ // doesn't report size as we'd expect on SVG elements.
2455
+ // it reports their bounding box which is effectively the largest path inside the SVG.
2456
+ /* @__PURE__ */ jsx(
2457
+ "span",
2458
+ {
2459
+ ref: contentContext.onArrowChange,
2460
+ style: {
2461
+ position: "absolute",
2462
+ left: contentContext.arrowX,
2463
+ top: contentContext.arrowY,
2464
+ [baseSide]: 0,
2465
+ transformOrigin: {
2466
+ top: "",
2467
+ right: "0 0",
2468
+ bottom: "center 0",
2469
+ left: "100% 0"
2470
+ }[contentContext.placedSide],
2471
+ transform: {
2472
+ top: "translateY(100%)",
2473
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
2474
+ bottom: `rotate(180deg)`,
2475
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
2476
+ }[contentContext.placedSide],
2477
+ visibility: contentContext.shouldHideArrow ? "hidden" : void 0
2478
+ },
2479
+ children: /* @__PURE__ */ jsx(
2480
+ Root,
2481
+ {
2482
+ ...arrowProps,
2483
+ ref: forwardedRef,
2484
+ style: {
2485
+ ...arrowProps.style,
2486
+ // ensures the element can be measured correctly (mostly for if SVG)
2487
+ display: "block"
2488
+ }
2489
+ }
2490
+ )
2491
+ }
2492
+ )
2493
+ );
2494
+ });
2495
+ PopperArrow.displayName = ARROW_NAME;
2496
+ function isNotNull(value) {
2497
+ return value !== null;
2498
+ }
2499
+ var transformOrigin = (options) => ({
2500
+ name: "transformOrigin",
2501
+ options,
2502
+ fn(data) {
2503
+ const { placement, rects, middlewareData } = data;
2504
+ const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
2505
+ const isArrowHidden = cannotCenterArrow;
2506
+ const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
2507
+ const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
2508
+ const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
2509
+ const noArrowAlign = { start: "0%", center: "50%", end: "100%" }[placedAlign];
2510
+ const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;
2511
+ const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;
2512
+ let x = "";
2513
+ let y = "";
2514
+ if (placedSide === "bottom") {
2515
+ x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
2516
+ y = `${-arrowHeight}px`;
2517
+ } else if (placedSide === "top") {
2518
+ x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
2519
+ y = `${rects.floating.height + arrowHeight}px`;
2520
+ } else if (placedSide === "right") {
2521
+ x = `${-arrowHeight}px`;
2522
+ y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
2523
+ } else if (placedSide === "left") {
2524
+ x = `${rects.floating.width + arrowHeight}px`;
2525
+ y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
2526
+ }
2527
+ return { data: { x, y } };
2528
+ }
2529
+ });
2530
+ function getSideAndAlignFromPlacement(placement) {
2531
+ const [side, align = "center"] = placement.split("-");
2532
+ return [side, align];
2533
+ }
2534
+ var Root2 = Popper;
2535
+ var Anchor = PopperAnchor;
2536
+ var Content = PopperContent;
2537
+ var Arrow = PopperArrow;
2538
+
2539
+ export { Anchor as A, Content as C, Root2 as R, Arrow as a, isHTMLElement as b, createPopperScope as c, isElement as d, isWebKit as e, floor as f, getOverflowAncestors as g, isLastTraversableNode as h, isShadowRoot as i, getParentNode as j, getComputedStyle$1 as k, isNode as l, getNodeName as m, autoUpdate as n, offset as o, flip as p, shift as s, useFloating as u };
2540
+ //# sourceMappingURL=index21.js.map