@editora/ui-react 0.1.20 → 0.1.22

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 (604) hide show
  1. package/dist/Accordion.cjs.js +1 -1
  2. package/dist/Accordion.esm.js +45 -47
  3. package/dist/Alert.cjs.js +1 -1
  4. package/dist/Alert.esm.js +42 -41
  5. package/dist/AlertDialog.cjs.js +1 -1
  6. package/dist/AlertDialog.esm.js +56 -56
  7. package/dist/AlertDialogProvider.cjs.js +1 -1
  8. package/dist/AlertDialogProvider.esm.js +33 -47
  9. package/dist/Anchor.cjs.js +1 -1
  10. package/dist/Anchor.esm.js +7 -6
  11. package/dist/AnimatedBeam.cjs.js +1 -1
  12. package/dist/AnimatedBeam.esm.js +57 -60
  13. package/dist/AnimatedList.cjs.js +1 -1
  14. package/dist/AnimatedList.esm.js +25 -28
  15. package/dist/AnimatedNumber.cjs.js +1 -1
  16. package/dist/AnimatedNumber.esm.js +84 -83
  17. package/dist/AnimatedText.cjs.js +1 -1
  18. package/dist/AnimatedText.esm.js +20 -23
  19. package/dist/AppHeader.cjs.js +2 -2
  20. package/dist/AppHeader.esm.js +21 -22
  21. package/dist/AspectRatio.cjs.js +1 -1
  22. package/dist/AspectRatio.esm.js +16 -16
  23. package/dist/Avatar.cjs.js +1 -1
  24. package/dist/Avatar.esm.js +54 -54
  25. package/dist/Badge.cjs.js +1 -1
  26. package/dist/Badge.esm.js +32 -31
  27. package/dist/BlockControls.cjs.js +1 -1
  28. package/dist/BlockControls.esm.js +8 -9
  29. package/dist/Box.cjs.js +1 -1
  30. package/dist/Box.esm.js +130 -129
  31. package/dist/Breadcrumb.cjs.js +1 -1
  32. package/dist/Breadcrumb.esm.js +34 -34
  33. package/dist/Button.cjs.js +1 -1
  34. package/dist/Button.esm.js +27 -29
  35. package/dist/Calendar.cjs.js +1 -1
  36. package/dist/Calendar.esm.js +84 -84
  37. package/dist/Card.cjs.js +2 -2
  38. package/dist/Card.esm.js +21 -22
  39. package/dist/Carousel.cjs.js +1 -1
  40. package/dist/Carousel.esm.js +172 -186
  41. package/dist/Chart.cjs.js +1 -1
  42. package/dist/Chart.esm.js +23 -25
  43. package/dist/Checkbox.cjs.js +1 -1
  44. package/dist/Checkbox.esm.js +48 -48
  45. package/dist/Collapsible.cjs.js +1 -1
  46. package/dist/Collapsible.esm.js +71 -71
  47. package/dist/Collection.cjs.js +1 -1
  48. package/dist/Collection.esm.js +17 -17
  49. package/dist/ColorPicker.cjs.js +1 -1
  50. package/dist/ColorPicker.esm.js +73 -73
  51. package/dist/Combobox.cjs.js +1 -1
  52. package/dist/Combobox.esm.js +97 -101
  53. package/dist/Command.cjs.js +1 -1
  54. package/dist/Command.esm.js +39 -41
  55. package/dist/CommandPalette.cjs.js +1 -1
  56. package/dist/CommandPalette.esm.js +46 -49
  57. package/dist/Container.cjs.js +1 -1
  58. package/dist/Container.esm.js +7 -5
  59. package/dist/ContextMenu.cjs.js +1 -1
  60. package/dist/ContextMenu.esm.js +106 -115
  61. package/dist/CopyButton.cjs.js +1 -1
  62. package/dist/CopyButton.esm.js +30 -35
  63. package/dist/DataTable.cjs.js +1 -1
  64. package/dist/DataTable.esm.js +123 -122
  65. package/dist/DataViewToolbar.cjs.js +1 -1
  66. package/dist/DataViewToolbar.esm.js +7 -14
  67. package/dist/DateField.cjs.js +1 -1
  68. package/dist/DateField.esm.js +24 -24
  69. package/dist/DatePicker.cjs.js +1 -1
  70. package/dist/DatePicker.esm.js +90 -90
  71. package/dist/DateRangePicker.cjs.js +1 -1
  72. package/dist/DateRangePicker.esm.js +81 -81
  73. package/dist/DateRangeTimePicker.cjs.js +1 -1
  74. package/dist/DateRangeTimePicker.esm.js +76 -76
  75. package/dist/DateTimePicker.cjs.js +1 -1
  76. package/dist/DateTimePicker.esm.js +76 -76
  77. package/dist/Dialog.cjs.js +1 -1
  78. package/dist/Dialog.esm.js +82 -82
  79. package/dist/DialogProvider.cjs.js +1 -1
  80. package/dist/DialogProvider.esm.js +27 -37
  81. package/dist/DirectionProvider.cjs.js +1 -1
  82. package/dist/DirectionProvider.esm.js +7 -4
  83. package/dist/DismissableLayer.cjs.js +1 -1
  84. package/dist/DismissableLayer.esm.js +29 -29
  85. package/dist/Dock.cjs.js +1 -1
  86. package/dist/Dock.esm.js +26 -29
  87. package/dist/Drawer.cjs.js +1 -1
  88. package/dist/Drawer.esm.js +79 -80
  89. package/dist/Dropdown.cjs.js +1 -1
  90. package/dist/Dropdown.esm.js +84 -85
  91. package/dist/EmptyState.cjs.js +1 -1
  92. package/dist/EmptyState.esm.js +20 -19
  93. package/dist/Field.cjs.js +1 -1
  94. package/dist/Field.esm.js +21 -18
  95. package/dist/FieldSemantics.cjs.js +1 -1
  96. package/dist/FieldSemantics.esm.js +40 -41
  97. package/dist/FileUpload.cjs.js +1 -1
  98. package/dist/FileUpload.esm.js +49 -50
  99. package/dist/FiltersBar.cjs.js +1 -1
  100. package/dist/FiltersBar.esm.js +47 -51
  101. package/dist/Flex.cjs.js +1 -1
  102. package/dist/Flex.esm.js +37 -34
  103. package/dist/FloatingToolbar.cjs.js +1 -1
  104. package/dist/FloatingToolbar.esm.js +74 -77
  105. package/dist/FocusScope.cjs.js +1 -1
  106. package/dist/FocusScope.esm.js +14 -14
  107. package/dist/Form.cjs.js +1 -1
  108. package/dist/Form.esm.js +83 -83
  109. package/dist/Gantt.cjs.js +1 -1
  110. package/dist/Gantt.esm.js +66 -70
  111. package/dist/Grid.cjs.js +1 -1
  112. package/dist/Grid.esm.js +45 -42
  113. package/dist/HoverCard.cjs.js +1 -1
  114. package/dist/HoverCard.esm.js +43 -44
  115. package/dist/Icon.cjs.js +1 -1
  116. package/dist/Icon.esm.js +43 -42
  117. package/dist/IconCloud.cjs.js +1 -1
  118. package/dist/IconCloud.esm.js +19 -22
  119. package/dist/InlineEdit.cjs.js +1 -1
  120. package/dist/InlineEdit.esm.js +23 -24
  121. package/dist/Input.cjs.js +1 -1
  122. package/dist/Input.esm.js +74 -74
  123. package/dist/Kbd.cjs.js +1 -1
  124. package/dist/Kbd.esm.js +14 -14
  125. package/dist/Label.cjs.js +1 -1
  126. package/dist/Label.esm.js +16 -15
  127. package/dist/Layout.cjs.js +1 -1
  128. package/dist/Layout.esm.js +22 -22
  129. package/dist/Listbox.cjs.js +1 -1
  130. package/dist/Listbox.esm.js +17 -17
  131. package/dist/Marquee.cjs.js +1 -1
  132. package/dist/Marquee.esm.js +32 -33
  133. package/dist/MasonryGrid.cjs.js +1 -1
  134. package/dist/MasonryGrid.esm.js +31 -31
  135. package/dist/Menu.cjs.js +1 -1
  136. package/dist/Menu.esm.js +77 -78
  137. package/dist/Menubar.cjs.js +1 -1
  138. package/dist/Menubar.esm.js +62 -62
  139. package/dist/Meter.cjs.js +1 -1
  140. package/dist/Meter.esm.js +25 -25
  141. package/dist/MultiSelect.cjs.js +1 -1
  142. package/dist/MultiSelect.esm.js +70 -71
  143. package/dist/NavigationMenu.cjs.js +1 -1
  144. package/dist/NavigationMenu.esm.js +79 -77
  145. package/dist/NumberField.cjs.js +1 -1
  146. package/dist/NumberField.esm.js +66 -66
  147. package/dist/NumberTicker.cjs.js +1 -1
  148. package/dist/NumberTicker.esm.js +37 -40
  149. package/dist/Orbiter.cjs.js +1 -1
  150. package/dist/Orbiter.esm.js +32 -35
  151. package/dist/PageHeader.cjs.js +1 -1
  152. package/dist/PageHeader.esm.js +9 -12
  153. package/dist/PageToolbar.cjs.js +1 -1
  154. package/dist/PageToolbar.esm.js +21 -26
  155. package/dist/Pagination.cjs.js +1 -1
  156. package/dist/Pagination.esm.js +52 -53
  157. package/dist/PanelGroup.cjs.js +1 -1
  158. package/dist/PanelGroup.esm.js +39 -40
  159. package/dist/PasswordField.cjs.js +1 -1
  160. package/dist/PasswordField.esm.js +94 -94
  161. package/dist/PinInput.cjs.js +1 -1
  162. package/dist/PinInput.esm.js +40 -42
  163. package/dist/PlacementGrid.cjs.js +1 -1
  164. package/dist/PlacementGrid.esm.js +37 -37
  165. package/dist/PluginPanel.cjs.js +1 -1
  166. package/dist/PluginPanel.esm.js +24 -27
  167. package/dist/Popover.cjs.js +1 -1
  168. package/dist/Popover.esm.js +36 -39
  169. package/dist/Portal.cjs.js +1 -1
  170. package/dist/Portal.esm.js +18 -18
  171. package/dist/Positioner.cjs.js +1 -1
  172. package/dist/Positioner.esm.js +27 -27
  173. package/dist/Presence.cjs.js +1 -1
  174. package/dist/Presence.esm.js +35 -38
  175. package/dist/Progress.cjs.js +1 -1
  176. package/dist/Progress.esm.js +34 -34
  177. package/dist/QuickActions.cjs.js +1 -1
  178. package/dist/QuickActions.esm.js +45 -47
  179. package/dist/Radio.cjs.js +1 -1
  180. package/dist/Radio.esm.js +50 -50
  181. package/dist/RadioGroup.cjs.js +1 -1
  182. package/dist/RadioGroup.esm.js +21 -21
  183. package/dist/Rating.cjs.js +1 -1
  184. package/dist/Rating.esm.js +62 -63
  185. package/dist/RecordHeader.cjs.js +1 -1
  186. package/dist/RecordHeader.esm.js +14 -19
  187. package/dist/RovingFocusGroup.cjs.js +1 -1
  188. package/dist/RovingFocusGroup.esm.js +19 -19
  189. package/dist/ScrollArea.cjs.js +1 -1
  190. package/dist/ScrollArea.esm.js +41 -42
  191. package/dist/Section.cjs.js +1 -1
  192. package/dist/Section.esm.js +21 -20
  193. package/dist/Select.cjs.js +1 -1
  194. package/dist/Select.esm.js +98 -101
  195. package/dist/SelectionPopup.cjs.js +1 -1
  196. package/dist/SelectionPopup.esm.js +61 -64
  197. package/dist/Separator.cjs.js +1 -1
  198. package/dist/Separator.esm.js +5 -2
  199. package/dist/Sidebar.cjs.js +1 -1
  200. package/dist/Sidebar.esm.js +195 -212
  201. package/dist/Skeleton.cjs.js +1 -1
  202. package/dist/Skeleton.esm.js +15 -14
  203. package/dist/Slider.cjs.js +1 -1
  204. package/dist/Slider.esm.js +63 -63
  205. package/dist/Slot.cjs.js +1 -1
  206. package/dist/Slot.esm.js +42 -43
  207. package/dist/Sortable.cjs.js +1 -1
  208. package/dist/Sortable.esm.js +149 -164
  209. package/dist/SpinningText.cjs.js +1 -1
  210. package/dist/SpinningText.esm.js +31 -34
  211. package/dist/SplitButton.cjs.js +2 -2
  212. package/dist/SplitButton.esm.js +144 -156
  213. package/dist/Stepper.cjs.js +1 -1
  214. package/dist/Stepper.esm.js +32 -32
  215. package/dist/Switch.cjs.js +1 -1
  216. package/dist/Switch.esm.js +43 -43
  217. package/dist/Table.cjs.js +1 -1
  218. package/dist/Table.esm.js +44 -43
  219. package/dist/Tabs.cjs.js +1 -1
  220. package/dist/Tabs.esm.js +58 -59
  221. package/dist/TagsInput.cjs.js +1 -1
  222. package/dist/TagsInput.esm.js +45 -45
  223. package/dist/Textarea.cjs.js +1 -1
  224. package/dist/Textarea.esm.js +88 -88
  225. package/dist/ThemeProvider.cjs.js +1 -1
  226. package/dist/ThemeProvider.esm.js +61 -63
  227. package/dist/TimePicker.cjs.js +1 -1
  228. package/dist/TimePicker.esm.js +72 -72
  229. package/dist/Timeline.cjs.js +1 -1
  230. package/dist/Timeline.esm.js +18 -18
  231. package/dist/Toast.cjs.js +1 -1
  232. package/dist/Toast.esm.js +37 -40
  233. package/dist/ToastAPI.esm.js +1 -2
  234. package/dist/Toggle.cjs.js +1 -1
  235. package/dist/Toggle.esm.js +36 -36
  236. package/dist/ToggleGroup.cjs.js +1 -1
  237. package/dist/ToggleGroup.esm.js +54 -57
  238. package/dist/Toolbar.cjs.js +1 -1
  239. package/dist/Toolbar.esm.js +25 -25
  240. package/dist/Tooltip.cjs.js +1 -1
  241. package/dist/Tooltip.esm.js +49 -50
  242. package/dist/TransferList.cjs.js +1 -1
  243. package/dist/TransferList.esm.js +67 -69
  244. package/dist/Tree.cjs.js +1 -1
  245. package/dist/Tree.esm.js +37 -37
  246. package/dist/VisuallyHidden.cjs.js +1 -1
  247. package/dist/VisuallyHidden.esm.js +5 -2
  248. package/dist/Wizard.cjs.js +1 -1
  249. package/dist/Wizard.esm.js +110 -114
  250. package/dist/_internals-BIT_j6Nr.js +1 -0
  251. package/dist/_internals-CEeSSGD-.mjs +122 -0
  252. package/dist/client.cjs.js +1 -1
  253. package/dist/client.esm.js +127 -172
  254. package/dist/components/Accordion.cjs.js +1 -1
  255. package/dist/components/Accordion.esm.js +1 -1
  256. package/dist/components/Alert.cjs.js +1 -1
  257. package/dist/components/Alert.d.ts +16 -267
  258. package/dist/components/Alert.d.ts.map +1 -1
  259. package/dist/components/Alert.esm.js +1 -1
  260. package/dist/components/AlertDialog.cjs.js +1 -1
  261. package/dist/components/AlertDialog.d.ts.map +1 -1
  262. package/dist/components/AlertDialog.esm.js +8 -7
  263. package/dist/components/Anchor.cjs.js +1 -1
  264. package/dist/components/Anchor.d.ts.map +1 -1
  265. package/dist/components/Anchor.esm.js +3 -2
  266. package/dist/components/AnimatedBeam.cjs.js +1 -1
  267. package/dist/components/AnimatedBeam.esm.js +1 -1
  268. package/dist/components/AnimatedList.cjs.js +1 -1
  269. package/dist/components/AnimatedList.esm.js +1 -1
  270. package/dist/components/AnimatedNumber.cjs.js +1 -1
  271. package/dist/components/AnimatedNumber.d.ts +1 -0
  272. package/dist/components/AnimatedNumber.d.ts.map +1 -1
  273. package/dist/components/AnimatedNumber.esm.js +7 -6
  274. package/dist/components/AnimatedText.cjs.js +1 -1
  275. package/dist/components/AnimatedText.esm.js +1 -1
  276. package/dist/components/AppHeader.cjs.js +1 -1
  277. package/dist/components/AppHeader.d.ts.map +1 -1
  278. package/dist/components/AppHeader.esm.js +8 -7
  279. package/dist/components/AspectRatio.cjs.js +1 -1
  280. package/dist/components/AspectRatio.d.ts.map +1 -1
  281. package/dist/components/AspectRatio.esm.js +4 -3
  282. package/dist/components/Avatar.cjs.js +1 -1
  283. package/dist/components/Avatar.d.ts.map +1 -1
  284. package/dist/components/Avatar.esm.js +1 -1
  285. package/dist/components/Badge.cjs.js +1 -1
  286. package/dist/components/Badge.d.ts +20 -268
  287. package/dist/components/Badge.d.ts.map +1 -1
  288. package/dist/components/Badge.esm.js +1 -1
  289. package/dist/components/BlockControls.cjs.js +1 -1
  290. package/dist/components/BlockControls.esm.js +1 -1
  291. package/dist/components/Box.cjs.js +1 -1
  292. package/dist/components/Box.d.ts.map +1 -1
  293. package/dist/components/Box.esm.js +3 -2
  294. package/dist/components/Breadcrumb.cjs.js +1 -1
  295. package/dist/components/Breadcrumb.d.ts.map +1 -1
  296. package/dist/components/Breadcrumb.esm.js +1 -1
  297. package/dist/components/Button.cjs.js +1 -1
  298. package/dist/components/Button.esm.js +1 -1
  299. package/dist/components/Calendar.cjs.js +1 -1
  300. package/dist/components/Calendar.d.ts.map +1 -1
  301. package/dist/components/Calendar.esm.js +1 -1
  302. package/dist/components/Card.cjs.js +1 -1
  303. package/dist/components/Card.esm.js +1 -1
  304. package/dist/components/Carousel.cjs.js +1 -1
  305. package/dist/components/Carousel.esm.js +3 -5
  306. package/dist/components/Chart.cjs.js +1 -1
  307. package/dist/components/Chart.esm.js +1 -1
  308. package/dist/components/Checkbox.cjs.js +1 -1
  309. package/dist/components/Checkbox.d.ts.map +1 -1
  310. package/dist/components/Checkbox.esm.js +1 -1
  311. package/dist/components/Collapsible.cjs.js +1 -1
  312. package/dist/components/Collapsible.d.ts.map +1 -1
  313. package/dist/components/Collapsible.esm.js +1 -1
  314. package/dist/components/Collection.cjs.js +1 -1
  315. package/dist/components/Collection.d.ts.map +1 -1
  316. package/dist/components/Collection.esm.js +4 -3
  317. package/dist/components/ColorPicker.cjs.js +1 -1
  318. package/dist/components/ColorPicker.d.ts.map +1 -1
  319. package/dist/components/ColorPicker.esm.js +1 -1
  320. package/dist/components/Combobox.cjs.js +1 -1
  321. package/dist/components/Combobox.d.ts.map +1 -1
  322. package/dist/components/Combobox.esm.js +4 -3
  323. package/dist/components/Command.cjs.js +1 -1
  324. package/dist/components/Command.esm.js +1 -1
  325. package/dist/components/CommandPalette.cjs.js +1 -1
  326. package/dist/components/CommandPalette.esm.js +1 -1
  327. package/dist/components/Container.cjs.js +1 -1
  328. package/dist/components/Container.d.ts +3 -4
  329. package/dist/components/Container.d.ts.map +1 -1
  330. package/dist/components/Container.esm.js +3 -2
  331. package/dist/components/ContextMenu.cjs.js +1 -1
  332. package/dist/components/ContextMenu.d.ts +57 -1
  333. package/dist/components/ContextMenu.d.ts.map +1 -1
  334. package/dist/components/ContextMenu.esm.js +4 -3
  335. package/dist/components/CopyButton.cjs.js +1 -1
  336. package/dist/components/CopyButton.esm.js +3 -5
  337. package/dist/components/DataTable.cjs.js +1 -1
  338. package/dist/components/DataTable.d.ts +47 -301
  339. package/dist/components/DataTable.d.ts.map +1 -1
  340. package/dist/components/DataTable.esm.js +4 -3
  341. package/dist/components/DataViewToolbar.cjs.js +1 -1
  342. package/dist/components/DataViewToolbar.d.ts +1 -1
  343. package/dist/components/DataViewToolbar.esm.js +3 -10
  344. package/dist/components/DateField.cjs.js +1 -1
  345. package/dist/components/DateField.d.ts.map +1 -1
  346. package/dist/components/DateField.esm.js +1 -1
  347. package/dist/components/DatePicker.cjs.js +1 -1
  348. package/dist/components/DatePicker.d.ts.map +1 -1
  349. package/dist/components/DatePicker.esm.js +1 -1
  350. package/dist/components/DateRangePicker.cjs.js +1 -1
  351. package/dist/components/DateRangePicker.d.ts.map +1 -1
  352. package/dist/components/DateRangePicker.esm.js +1 -1
  353. package/dist/components/DateRangeTimePicker.cjs.js +1 -1
  354. package/dist/components/DateRangeTimePicker.d.ts.map +1 -1
  355. package/dist/components/DateRangeTimePicker.esm.js +1 -1
  356. package/dist/components/DateTimePicker.cjs.js +1 -1
  357. package/dist/components/DateTimePicker.d.ts.map +1 -1
  358. package/dist/components/DateTimePicker.esm.js +1 -1
  359. package/dist/components/Dialog.cjs.js +1 -1
  360. package/dist/components/Dialog.d.ts.map +1 -1
  361. package/dist/components/Dialog.esm.js +1 -1
  362. package/dist/components/DirectionProvider.cjs.js +1 -1
  363. package/dist/components/DirectionProvider.d.ts.map +1 -1
  364. package/dist/components/DirectionProvider.esm.js +3 -2
  365. package/dist/components/DismissableLayer.cjs.js +1 -1
  366. package/dist/components/DismissableLayer.d.ts.map +1 -1
  367. package/dist/components/DismissableLayer.esm.js +4 -3
  368. package/dist/components/Dock.cjs.js +1 -1
  369. package/dist/components/Dock.esm.js +1 -1
  370. package/dist/components/Drawer.cjs.js +1 -1
  371. package/dist/components/Drawer.d.ts.map +1 -1
  372. package/dist/components/Drawer.esm.js +6 -5
  373. package/dist/components/Dropdown.cjs.js +1 -1
  374. package/dist/components/Dropdown.d.ts.map +1 -1
  375. package/dist/components/Dropdown.esm.js +9 -8
  376. package/dist/components/EmptyState.cjs.js +1 -1
  377. package/dist/components/EmptyState.d.ts +10 -267
  378. package/dist/components/EmptyState.d.ts.map +1 -1
  379. package/dist/components/EmptyState.esm.js +1 -1
  380. package/dist/components/Field.cjs.js +1 -1
  381. package/dist/components/Field.d.ts +17 -1
  382. package/dist/components/Field.d.ts.map +1 -1
  383. package/dist/components/Field.esm.js +4 -3
  384. package/dist/components/FieldSemantics.cjs.js +1 -1
  385. package/dist/components/FieldSemantics.d.ts.map +1 -1
  386. package/dist/components/FieldSemantics.esm.js +6 -5
  387. package/dist/components/FileUpload.cjs.js +1 -1
  388. package/dist/components/FileUpload.d.ts.map +1 -1
  389. package/dist/components/FileUpload.esm.js +5 -4
  390. package/dist/components/FiltersBar.cjs.js +1 -1
  391. package/dist/components/FiltersBar.esm.js +3 -7
  392. package/dist/components/Flex.cjs.js +1 -1
  393. package/dist/components/Flex.d.ts +4 -5
  394. package/dist/components/Flex.d.ts.map +1 -1
  395. package/dist/components/Flex.esm.js +4 -3
  396. package/dist/components/FloatingToolbar.cjs.js +1 -1
  397. package/dist/components/FloatingToolbar.esm.js +1 -1
  398. package/dist/components/FocusScope.cjs.js +1 -1
  399. package/dist/components/FocusScope.d.ts.map +1 -1
  400. package/dist/components/FocusScope.esm.js +4 -3
  401. package/dist/components/Form.cjs.js +1 -1
  402. package/dist/components/Form.d.ts.map +1 -1
  403. package/dist/components/Form.esm.js +4 -3
  404. package/dist/components/Gantt.cjs.js +1 -1
  405. package/dist/components/Gantt.d.ts.map +1 -1
  406. package/dist/components/Gantt.esm.js +4 -3
  407. package/dist/components/Grid.cjs.js +1 -1
  408. package/dist/components/Grid.d.ts +3 -4
  409. package/dist/components/Grid.d.ts.map +1 -1
  410. package/dist/components/Grid.esm.js +4 -3
  411. package/dist/components/HoverCard.cjs.js +1 -1
  412. package/dist/components/HoverCard.d.ts.map +1 -1
  413. package/dist/components/HoverCard.esm.js +1 -1
  414. package/dist/components/Icon.cjs.js +1 -1
  415. package/dist/components/Icon.d.ts.map +1 -1
  416. package/dist/components/Icon.esm.js +3 -2
  417. package/dist/components/IconCloud.cjs.js +1 -1
  418. package/dist/components/IconCloud.esm.js +1 -1
  419. package/dist/components/InlineEdit.cjs.js +1 -1
  420. package/dist/components/InlineEdit.d.ts.map +1 -1
  421. package/dist/components/InlineEdit.esm.js +4 -3
  422. package/dist/components/Input.cjs.js +1 -1
  423. package/dist/components/Input.d.ts.map +1 -1
  424. package/dist/components/Input.esm.js +1 -1
  425. package/dist/components/Label.cjs.js +1 -1
  426. package/dist/components/Label.d.ts.map +1 -1
  427. package/dist/components/Label.esm.js +4 -3
  428. package/dist/components/Layout.cjs.js +1 -1
  429. package/dist/components/Layout.d.ts.map +1 -1
  430. package/dist/components/Layout.esm.js +7 -6
  431. package/dist/components/Listbox.cjs.js +1 -1
  432. package/dist/components/Listbox.d.ts.map +1 -1
  433. package/dist/components/Listbox.esm.js +4 -3
  434. package/dist/components/Marquee.cjs.js +1 -1
  435. package/dist/components/Marquee.esm.js +1 -1
  436. package/dist/components/MasonryGrid.cjs.js +1 -1
  437. package/dist/components/MasonryGrid.esm.js +1 -1
  438. package/dist/components/Menu.cjs.js +1 -1
  439. package/dist/components/Menu.d.ts.map +1 -1
  440. package/dist/components/Menu.esm.js +7 -6
  441. package/dist/components/Menubar.cjs.js +1 -1
  442. package/dist/components/Menubar.d.ts.map +1 -1
  443. package/dist/components/Menubar.esm.js +1 -1
  444. package/dist/components/Meter.cjs.js +1 -1
  445. package/dist/components/Meter.d.ts.map +1 -1
  446. package/dist/components/Meter.esm.js +1 -1
  447. package/dist/components/MultiSelect.cjs.js +1 -1
  448. package/dist/components/MultiSelect.d.ts.map +1 -1
  449. package/dist/components/MultiSelect.esm.js +4 -3
  450. package/dist/components/NavigationMenu.cjs.js +1 -1
  451. package/dist/components/NavigationMenu.d.ts +54 -274
  452. package/dist/components/NavigationMenu.d.ts.map +1 -1
  453. package/dist/components/NavigationMenu.esm.js +12 -11
  454. package/dist/components/NumberField.cjs.js +1 -1
  455. package/dist/components/NumberField.d.ts.map +1 -1
  456. package/dist/components/NumberField.esm.js +1 -1
  457. package/dist/components/NumberTicker.cjs.js +1 -1
  458. package/dist/components/NumberTicker.esm.js +1 -1
  459. package/dist/components/Orbiter.cjs.js +1 -1
  460. package/dist/components/Orbiter.esm.js +1 -1
  461. package/dist/components/PageHeader.cjs.js +1 -1
  462. package/dist/components/PageHeader.esm.js +3 -6
  463. package/dist/components/PageToolbar.cjs.js +1 -1
  464. package/dist/components/PageToolbar.esm.js +3 -8
  465. package/dist/components/Pagination.cjs.js +1 -1
  466. package/dist/components/Pagination.d.ts.map +1 -1
  467. package/dist/components/Pagination.esm.js +4 -3
  468. package/dist/components/PanelGroup.cjs.js +1 -1
  469. package/dist/components/PanelGroup.d.ts.map +1 -1
  470. package/dist/components/PanelGroup.esm.js +6 -5
  471. package/dist/components/PasswordField.cjs.js +1 -1
  472. package/dist/components/PasswordField.d.ts.map +1 -1
  473. package/dist/components/PasswordField.esm.js +1 -1
  474. package/dist/components/PinInput.cjs.js +1 -1
  475. package/dist/components/PinInput.d.ts.map +1 -1
  476. package/dist/components/PinInput.esm.js +1 -1
  477. package/dist/components/PlacementGrid.cjs.js +1 -1
  478. package/dist/components/PlacementGrid.esm.js +1 -1
  479. package/dist/components/PluginPanel.cjs.js +1 -1
  480. package/dist/components/PluginPanel.esm.js +1 -1
  481. package/dist/components/Popover.cjs.js +1 -1
  482. package/dist/components/Popover.esm.js +1 -1
  483. package/dist/components/Portal.cjs.js +1 -1
  484. package/dist/components/Portal.d.ts.map +1 -1
  485. package/dist/components/Portal.esm.js +3 -2
  486. package/dist/components/Positioner.cjs.js +1 -1
  487. package/dist/components/Positioner.d.ts.map +1 -1
  488. package/dist/components/Positioner.esm.js +4 -3
  489. package/dist/components/Presence.cjs.js +1 -1
  490. package/dist/components/Presence.d.ts.map +1 -1
  491. package/dist/components/Presence.esm.js +3 -2
  492. package/dist/components/Progress.cjs.js +1 -1
  493. package/dist/components/Progress.d.ts.map +1 -1
  494. package/dist/components/Progress.esm.js +1 -1
  495. package/dist/components/QuickActions.cjs.js +1 -1
  496. package/dist/components/QuickActions.d.ts.map +1 -1
  497. package/dist/components/QuickActions.esm.js +1 -1
  498. package/dist/components/Radio.cjs.js +1 -1
  499. package/dist/components/Radio.d.ts.map +1 -1
  500. package/dist/components/Radio.esm.js +1 -1
  501. package/dist/components/RadioGroup.cjs.js +1 -1
  502. package/dist/components/RadioGroup.d.ts.map +1 -1
  503. package/dist/components/RadioGroup.esm.js +1 -1
  504. package/dist/components/Rating.cjs.js +1 -1
  505. package/dist/components/Rating.d.ts.map +1 -1
  506. package/dist/components/Rating.esm.js +4 -3
  507. package/dist/components/RecordHeader.cjs.js +1 -1
  508. package/dist/components/RecordHeader.esm.js +3 -8
  509. package/dist/components/RovingFocusGroup.cjs.js +1 -1
  510. package/dist/components/RovingFocusGroup.d.ts.map +1 -1
  511. package/dist/components/RovingFocusGroup.esm.js +4 -3
  512. package/dist/components/ScrollArea.cjs.js +1 -1
  513. package/dist/components/ScrollArea.d.ts.map +1 -1
  514. package/dist/components/ScrollArea.esm.js +3 -2
  515. package/dist/components/Section.cjs.js +1 -1
  516. package/dist/components/Section.d.ts.map +1 -1
  517. package/dist/components/Section.esm.js +4 -3
  518. package/dist/components/Select.cjs.js +1 -1
  519. package/dist/components/Select.d.ts.map +1 -1
  520. package/dist/components/Select.esm.js +1 -1
  521. package/dist/components/SelectionPopup.cjs.js +1 -1
  522. package/dist/components/SelectionPopup.esm.js +1 -1
  523. package/dist/components/Separator.cjs.js +1 -1
  524. package/dist/components/Separator.d.ts.map +1 -1
  525. package/dist/components/Separator.esm.js +3 -2
  526. package/dist/components/Sidebar.cjs.js +1 -1
  527. package/dist/components/Sidebar.d.ts.map +1 -1
  528. package/dist/components/Sidebar.esm.js +10 -9
  529. package/dist/components/Skeleton.cjs.js +1 -1
  530. package/dist/components/Skeleton.d.ts +14 -269
  531. package/dist/components/Skeleton.d.ts.map +1 -1
  532. package/dist/components/Skeleton.esm.js +1 -1
  533. package/dist/components/Slider.cjs.js +1 -1
  534. package/dist/components/Slider.d.ts.map +1 -1
  535. package/dist/components/Slider.esm.js +1 -1
  536. package/dist/components/Slot.cjs.js +1 -1
  537. package/dist/components/Slot.d.ts.map +1 -1
  538. package/dist/components/Slot.esm.js +4 -3
  539. package/dist/components/Sortable.cjs.js +1 -1
  540. package/dist/components/Sortable.d.ts.map +1 -1
  541. package/dist/components/Sortable.esm.js +1 -1
  542. package/dist/components/SpinningText.cjs.js +1 -1
  543. package/dist/components/SpinningText.esm.js +1 -1
  544. package/dist/components/Stepper.cjs.js +1 -1
  545. package/dist/components/Stepper.d.ts.map +1 -1
  546. package/dist/components/Stepper.esm.js +1 -1
  547. package/dist/components/Switch.cjs.js +1 -1
  548. package/dist/components/Switch.d.ts.map +1 -1
  549. package/dist/components/Switch.esm.js +1 -1
  550. package/dist/components/Table.cjs.js +1 -1
  551. package/dist/components/Table.d.ts +16 -279
  552. package/dist/components/Table.d.ts.map +1 -1
  553. package/dist/components/Table.esm.js +4 -3
  554. package/dist/components/Tabs.cjs.js +1 -1
  555. package/dist/components/Tabs.d.ts.map +1 -1
  556. package/dist/components/Tabs.esm.js +4 -3
  557. package/dist/components/TagsInput.cjs.js +1 -1
  558. package/dist/components/TagsInput.d.ts.map +1 -1
  559. package/dist/components/TagsInput.esm.js +1 -1
  560. package/dist/components/Textarea.cjs.js +1 -1
  561. package/dist/components/Textarea.d.ts.map +1 -1
  562. package/dist/components/Textarea.esm.js +1 -1
  563. package/dist/components/TimePicker.cjs.js +1 -1
  564. package/dist/components/TimePicker.d.ts.map +1 -1
  565. package/dist/components/TimePicker.esm.js +1 -1
  566. package/dist/components/Timeline.cjs.js +1 -1
  567. package/dist/components/Timeline.d.ts.map +1 -1
  568. package/dist/components/Timeline.esm.js +4 -3
  569. package/dist/components/Toggle.cjs.js +1 -1
  570. package/dist/components/Toggle.d.ts.map +1 -1
  571. package/dist/components/Toggle.esm.js +1 -1
  572. package/dist/components/ToggleGroup.cjs.js +1 -1
  573. package/dist/components/ToggleGroup.d.ts.map +1 -1
  574. package/dist/components/ToggleGroup.esm.js +3 -4
  575. package/dist/components/Toolbar.cjs.js +1 -1
  576. package/dist/components/Toolbar.d.ts.map +1 -1
  577. package/dist/components/Toolbar.esm.js +4 -3
  578. package/dist/components/Tooltip.cjs.js +1 -1
  579. package/dist/components/Tooltip.d.ts.map +1 -1
  580. package/dist/components/Tooltip.esm.js +3 -2
  581. package/dist/components/TransferList.cjs.js +1 -1
  582. package/dist/components/TransferList.esm.js +1 -1
  583. package/dist/components/Tree.cjs.js +1 -1
  584. package/dist/components/Tree.d.ts.map +1 -1
  585. package/dist/components/Tree.esm.js +4 -3
  586. package/dist/components/VisuallyHidden.cjs.js +1 -1
  587. package/dist/components/VisuallyHidden.d.ts.map +1 -1
  588. package/dist/components/VisuallyHidden.esm.js +3 -2
  589. package/dist/components/Wizard.cjs.js +1 -1
  590. package/dist/components/Wizard.d.ts.map +1 -1
  591. package/dist/components/Wizard.esm.js +4 -3
  592. package/dist/components/_internals.d.ts +10 -0
  593. package/dist/components/_internals.d.ts.map +1 -1
  594. package/dist/hooks/useFloatingInteractions.d.ts +2 -2
  595. package/dist/hooks/useFloatingInteractions.d.ts.map +1 -1
  596. package/dist/index.cjs.js +1 -1
  597. package/dist/index.esm.js +1112 -1288
  598. package/dist/server.cjs.js +1 -1
  599. package/dist/server.esm.js +38 -52
  600. package/dist/ui-react.css +1 -0
  601. package/package.json +3 -3
  602. package/dist/_internals-68620b0c.mjs +0 -121
  603. package/dist/_internals-a238f8ce.js +0 -1
  604. package/dist/style.css +0 -1
package/dist/index.esm.js CHANGED
@@ -1,607 +1,477 @@
1
1
  'use client';
2
2
  import "@editora/ui-core";
3
- import { Button as No } from "./Button.esm.js";
4
- import { Tooltip as $o } from "./Tooltip.esm.js";
5
- import { Alert as Bo, AlertActions as Vo, AlertDescription as Ho, AlertIcon as zo, AlertTitle as qo } from "./Alert.esm.js";
6
- import { Dropdown as Uo, DropdownContent as jo, DropdownItem as _o, DropdownSectionLabel as Qo, DropdownSeparator as Xo, DropdownTrigger as Yo } from "./Dropdown.esm.js";
7
- import { Input as Jo } from "./Input.esm.js";
8
- import { PasswordField as en } from "./PasswordField.esm.js";
9
- import { TagsInput as rn } from "./TagsInput.esm.js";
10
- import { OTPInput as nn, PinInput as sn } from "./PinInput.esm.js";
11
- import { Dropzone as ln, FileUpload as an } from "./FileUpload.esm.js";
12
- import { Textarea as cn } from "./Textarea.esm.js";
13
- import { Field as pn } from "./Field.esm.js";
14
- import { ControlGroup as gn, Description as yn, FieldError as xn, Fieldset as wn } from "./FieldSemantics.esm.js";
15
- import { FiltersBar as bn } from "./FiltersBar.esm.js";
16
- import { Combobox as vn } from "./Combobox.esm.js";
17
- import { Badge as An } from "./Badge.esm.js";
18
- import { EmptyState as In } from "./EmptyState.esm.js";
19
- import { Table as Mn } from "./Table.esm.js";
20
- import { DataTable as Tn } from "./DataTable.esm.js";
21
- import { Chart as Cn } from "./Chart.esm.js";
22
- import { Timeline as kn } from "./Timeline.esm.js";
23
- import { Carousel as On } from "./Carousel.esm.js";
24
- import { CodeBlock as Kn } from "./CodeBlock.esm.js";
25
- import { CodeSnippet as Vn } from "./CodeSnippet.esm.js";
26
- import { CopyButton as zn } from "./CopyButton.esm.js";
27
- import { DataViewToolbar as Gn } from "./DataViewToolbar.esm.js";
28
- import { Stat as jn } from "./Stat.esm.js";
29
- import { MetricCard as Qn } from "./MetricCard.esm.js";
30
- import { Calendar as Yn } from "./Calendar.esm.js";
31
- import { ColorPicker as Jn } from "./ColorPicker.esm.js";
32
- import { DatePicker as ei } from "./DatePicker.esm.js";
33
- import { DateRangePicker as ri } from "./DateRangePicker.esm.js";
34
- import { DateField as ni, TimeField as ii } from "./DateField.esm.js";
35
- import { NumberField as ui } from "./NumberField.esm.js";
36
- import { MultiSelect as ai } from "./MultiSelect.esm.js";
37
- import { SplitButton as ci } from "./SplitButton.esm.js";
38
- import { TransferList as pi } from "./TransferList.esm.js";
39
- import { Sortable as gi } from "./Sortable.esm.js";
40
- import { InlineEdit as xi } from "./InlineEdit.esm.js";
41
- import { TimePicker as Pi } from "./TimePicker.esm.js";
42
- import { DateTimePicker as Di } from "./DateTimePicker.esm.js";
43
- import { DateRangeTimePicker as hi } from "./DateRangeTimePicker.esm.js";
44
- import { Gantt as Ei } from "./Gantt.esm.js";
45
- import { Stepper as Ri } from "./Stepper.esm.js";
46
- import { Wizard as Fi } from "./Wizard.esm.js";
47
- import { Rating as Li } from "./Rating.esm.js";
48
- import { QuickActions as Si } from "./QuickActions.esm.js";
49
- import { NavigationMenu as Ni, NavigationMenuContent as Oi, NavigationMenuIndicator as $i, NavigationMenuItem as Ki, NavigationMenuLink as Bi, NavigationMenuList as Vi, NavigationMenuRoot as Hi, NavigationMenuTrigger as zi, NavigationMenuViewport as qi } from "./NavigationMenu.esm.js";
50
- import { Menubar as Ui } from "./Menubar.esm.js";
51
- import { Dialog as _i } from "./Dialog.esm.js";
52
- import { DialogProvider as Xi, useDialog as Yi } from "./DialogProvider.esm.js";
53
- import { Popover as Ji } from "./Popover.esm.js";
54
- import { Tabs as es } from "./Tabs.esm.js";
55
- import { Menu as rs, MenuItem as os, MenuSectionLabel as ns, MenuSeparator as is } from "./Menu.esm.js";
56
- import { Icon as us } from "./Icon.esm.js";
57
- import { ToastAPI as as, ToastProvider as fs, toast as cs, toastApi as ms, useToast as ps } from "./ToastAPI.esm.js";
58
- import { Toast as gs } from "./Toast.esm.js";
59
- import { FloatingToolbar as xs } from "./FloatingToolbar.esm.js";
60
- import { BlockControls as Ps } from "./BlockControls.esm.js";
61
- import { Kbd as Ds } from "./Kbd.esm.js";
62
- import { Shortcut as hs } from "./Shortcut.esm.js";
63
- import { Command as Es, CommandItem as Is } from "./Command.esm.js";
64
- import { CommandPalette as Ms, CommandPaletteItem as Fs } from "./CommandPalette.esm.js";
65
- import { ContextMenu as Ls } from "./ContextMenu.esm.js";
66
- import { SelectionPopup as Ss } from "./SelectionPopup.esm.js";
67
- import { PluginPanel as Ns } from "./PluginPanel.esm.js";
68
- import { Form as $s } from "./Form.esm.js";
69
- import S, { useRef as R, useCallback as D, useState as H, useLayoutEffect as Le, useEffect as K, createContext as ae, useMemo as V, useContext as re } from "react";
70
- import { createPositioner as Ue, createVirtualPoint as je } from "@editora/ui-core/runtime";
71
- import { createPortal as _e } from "react-dom";
72
- import { Box as Bs } from "./Box.esm.js";
73
- import { Flex as Hs } from "./Flex.esm.js";
74
- import { Grid as qs } from "./Grid.esm.js";
75
- import { PlacementGrid as Us } from "./PlacementGrid.esm.js";
76
- import { MasonryGrid as _s } from "./MasonryGrid.esm.js";
77
- import { Section as Xs } from "./Section.esm.js";
78
- import { Container as Zs } from "./Container.esm.js";
79
- import { Sidebar as Ws } from "./Sidebar.esm.js";
80
- import { Panel as tu, PanelGroup as ru, Splitter as ou } from "./PanelGroup.esm.js";
81
- import { Tree as iu } from "./Tree.esm.js";
82
- import { Breadcrumb as uu } from "./Breadcrumb.esm.js";
83
- import { AppHeader as au, AppHeaderCenter as fu, AppHeaderEnd as cu, AppHeaderStart as mu, AppHeaderSubtitle as pu, AppHeaderTitle as du } from "./AppHeader.esm.js";
84
- import { PageHeader as yu } from "./PageHeader.esm.js";
85
- import { PageToolbar as wu } from "./PageToolbar.esm.js";
86
- import { RecordHeader as bu } from "./RecordHeader.esm.js";
87
- import { Drawer as vu } from "./Drawer.esm.js";
88
- import { Layout as Au } from "./Layout.esm.js";
89
- import { ThemeProvider as Iu, useTheme as Ru } from "./ThemeProvider.esm.js";
90
- import { Collection as Fu } from "./Collection.esm.js";
91
- import { Listbox as Lu } from "./Listbox.esm.js";
92
- import { RovingFocusGroup as Su } from "./RovingFocusGroup.esm.js";
93
- import { DismissableLayer as Nu } from "./DismissableLayer.esm.js";
94
- import { FocusScope as $u } from "./FocusScope.esm.js";
95
- import { Positioner as Bu } from "./Positioner.esm.js";
96
- import { Anchor as Hu } from "./Anchor.esm.js";
97
- import { Checkbox as qu } from "./Checkbox.esm.js";
98
- import { Radio as Uu } from "./Radio.esm.js";
99
- import { RadioGroup as _u } from "./RadioGroup.esm.js";
100
- import { Switch as Xu } from "./Switch.esm.js";
101
- import { Toggle as Zu } from "./Toggle.esm.js";
102
- import { ToggleGroup as Wu } from "./ToggleGroup.esm.js";
103
- import { AspectRatio as tl } from "./AspectRatio.esm.js";
104
- import { Avatar as ol } from "./Avatar.esm.js";
105
- import { Presence as il } from "./Presence.esm.js";
106
- import { Progress as ul } from "./Progress.esm.js";
107
- import { Meter as al } from "./Meter.esm.js";
108
- import { Portal as cl } from "./Portal.esm.js";
109
- import { ScrollArea as pl } from "./ScrollArea.esm.js";
110
- import { Separator as gl } from "./Separator.esm.js";
111
- import { Slot as xl } from "./Slot.esm.js";
112
- import { Toolbar as Pl } from "./Toolbar.esm.js";
113
- import { VisuallyHidden as Dl } from "./VisuallyHidden.esm.js";
114
- import { Collapsible as hl } from "./Collapsible.esm.js";
115
- import { Pagination as El } from "./Pagination.esm.js";
116
- import { Accordion as Rl } from "./Accordion.esm.js";
117
- import { DirectionProvider as Fl } from "./DirectionProvider.esm.js";
118
- import { HoverCard as Ll } from "./HoverCard.esm.js";
119
- import { Card as Sl } from "./Card.esm.js";
120
- import { Label as Nl } from "./Label.esm.js";
121
- import { AlertDialog as $l, AlertDialogActions as Kl, AlertDialogContent as Bl, AlertDialogDescription as Vl, AlertDialogIcon as Hl, AlertDialogTitle as zl } from "./AlertDialog.esm.js";
122
- import { AlertDialogProvider as Gl, useAlertDialog as Ul } from "./AlertDialogProvider.esm.js";
123
- import { AnimatedText as _l } from "./AnimatedText.esm.js";
124
- import { SpinningText as Xl } from "./SpinningText.esm.js";
125
- import { NumberTicker as Zl } from "./NumberTicker.esm.js";
126
- import { AnimatedList as Wl } from "./AnimatedList.esm.js";
127
- import { AnimatedBeam as ta } from "./AnimatedBeam.esm.js";
128
- import { IconCloud as oa } from "./IconCloud.esm.js";
129
- import { Dock as ia } from "./Dock.esm.js";
130
- import { Orbiter as ua } from "./Orbiter.esm.js";
131
- import { Marquee as aa } from "./Marquee.esm.js";
132
- import { Select as ca } from "./Select.esm.js";
133
- import { Slider as pa } from "./Slider.esm.js";
134
- import { Skeleton as ga } from "./Skeleton.esm.js";
135
- import { AnimatedNumber as xa, useAnimatedNumber as wa, useAnimatedNumberValue as Pa } from "./AnimatedNumber.esm.js";
136
- import { toastAdvanced as Da, default as va, toastPro as ha } from "@editora/toast";
137
- import "@editora/ui-core/button";
138
- import "./_internals-68620b0c.mjs";
139
- import "@editora/ui-core/tooltip";
140
- import "@editora/ui-core/alert";
141
- import "@editora/ui-core/dropdown";
142
- import "@editora/ui-core/input";
143
- import "@editora/ui-core/password-field";
144
- import "@editora/ui-core/tags-input";
145
- import "@editora/ui-core/pin-input";
146
- import "@editora/ui-core/file-upload";
147
- import "@editora/ui-core/textarea";
148
- import "@editora/ui-core/field";
149
- import "@editora/ui-core/select";
150
- import "@editora/ui-core/combobox";
151
- import "@editora/ui-core/badge";
152
- import "@editora/ui-core/empty-state";
153
- import "@editora/ui-core/table";
154
- import "@editora/ui-core/data-table";
155
- import "@editora/ui-core/chart";
156
- import "@editora/ui-core/timeline";
157
- import "@editora/ui-core/calendar";
158
- import "@editora/ui-core/color-picker";
159
- import "@editora/ui-core/date-picker";
160
- import "@editora/ui-core/date-range-picker";
161
- import "@editora/ui-core/date-field";
162
- import "@editora/ui-core/number-field";
163
- import "@editora/ui-core/multi-select";
164
- import "@editora/ui-core/split-button";
165
- import "@editora/ui-core/transfer-list";
166
- import "@editora/ui-core/inline-edit";
167
- import "@editora/ui-core/time-picker";
168
- import "@editora/ui-core/date-time-picker";
169
- import "@editora/ui-core/date-range-time-picker";
170
- import "@editora/ui-core/gantt";
171
- import "@editora/ui-core/stepper";
172
- import "@editora/ui-core/wizard";
173
- import "@editora/ui-core/rating";
174
- import "@editora/ui-core/quick-actions";
175
- import "@editora/ui-core/navigation-menu";
176
- import "@editora/ui-core/menubar";
177
- import "@editora/ui-core/dialog";
178
- import "@editora/ui-core/popover";
179
- import "@editora/ui-core/tabs";
180
- import "@editora/ui-core/menu";
181
- import "@editora/ui-core/icon";
182
- import "@editora/ui-core/toast";
183
- import "@editora/ui-core/floating-toolbar";
184
- import "@editora/ui-core/block-controls";
185
- import "@editora/ui-core/command";
186
- import "@editora/ui-core/command-palette";
187
- import "@editora/ui-core/context-menu";
188
- import "@editora/ui-core/selection-popup";
189
- import "@editora/ui-core/plugin-panel";
190
- import "@editora/ui-core/form";
191
- import "@editora/ui-core/box";
192
- import "@editora/ui-core/flex";
193
- import "@editora/ui-core/grid";
194
- import "@editora/ui-core/placement-grid";
195
- import "@editora/ui-core/masonry-grid";
196
- import "@editora/ui-core/section";
197
- import "@editora/ui-core/container";
198
- import "@editora/ui-core/sidebar";
199
- import "react-dom/server";
200
- import "@editora/ui-core/panel-group";
201
- import "@editora/ui-core/tree";
202
- import "@editora/ui-core/breadcrumb";
203
- import "@editora/ui-core/app-header";
204
- import "@editora/ui-core/drawer";
205
- import "@editora/ui-core/layout";
206
- import "@editora/ui-core/collection";
207
- import "@editora/ui-core/listbox";
208
- import "@editora/ui-core/roving-focus-group";
209
- import "@editora/ui-core/dismissable-layer";
210
- import "@editora/ui-core/focus-scope";
211
- import "@editora/ui-core/positioner";
212
- import "@editora/ui-core/anchor";
213
- import "@editora/ui-core/checkbox";
214
- import "@editora/ui-core/radio";
215
- import "@editora/ui-core/radio-group";
216
- import "@editora/ui-core/switch";
217
- import "@editora/ui-core/toggle";
218
- import "@editora/ui-core/toggle-group";
219
- import "@editora/ui-core/aspect-ratio";
220
- import "@editora/ui-core/avatar";
221
- import "@editora/ui-core/presence";
222
- import "@editora/ui-core/progress";
223
- import "@editora/ui-core/meter";
224
- import "@editora/ui-core/portal";
225
- import "@editora/ui-core/scroll-area";
226
- import "@editora/ui-core/separator";
227
- import "@editora/ui-core/slot";
228
- import "@editora/ui-core/toolbar";
229
- import "@editora/ui-core/visually-hidden";
230
- import "@editora/ui-core/collapsible";
231
- import "@editora/ui-core/pagination";
232
- import "@editora/ui-core/accordion";
233
- import "@editora/ui-core/direction-provider";
234
- import "@editora/ui-core/hover-card";
235
- import "@editora/ui-core/card";
236
- import "@editora/ui-core/label";
237
- import "@editora/ui-core/alert-dialog";
238
- import "@editora/ui-core/animated-text";
239
- import "@editora/ui-core/spinning-text";
240
- import "@editora/ui-core/number-ticker";
241
- import "@editora/ui-core/animated-list";
242
- import "@editora/ui-core/animated-beam";
243
- import "@editora/ui-core/icon-cloud";
244
- import "@editora/ui-core/dock";
245
- import "@editora/ui-core/orbiter";
246
- import "@editora/ui-core/marquee";
247
- import "@editora/ui-core/slider";
248
- import "@editora/ui-core/skeleton";
249
- function ao() {
250
- const e = R(null), o = D(async () => {
251
- const c = e.current;
252
- return c ? await c.submit() : !1;
253
- }, []), r = D(async () => {
254
- const c = e.current;
255
- return c ? await c.validate() : { valid: !0, errors: {} };
256
- }, []), t = D(() => {
257
- var i;
258
- const c = e.current;
259
- return c ? (i = c.getValues) == null ? void 0 : i.call(c) : {};
260
- }, []), n = D((c) => {
261
- var u;
262
- const i = e.current;
263
- return (u = i == null ? void 0 : i.reset) == null ? void 0 : u.call(i, c);
264
- }, []), f = D(() => {
265
- var i;
266
- const c = e.current;
267
- return c ? typeof c.isDirty == "function" ? !!c.isDirty() : ((i = c.hasAttribute) == null ? void 0 : i.call(c, "dirty")) || !1 : !1;
268
- }, []), s = D((c) => {
269
- var u;
270
- const i = e.current;
271
- return (u = i == null ? void 0 : i.markClean) == null ? void 0 : u.call(i, c);
272
- }, []);
273
- return { ref: e, submit: o, validate: r, getValues: t, reset: n, isDirty: f, markClean: s };
3
+ import { Button as Mt } from "./Button.esm.js";
4
+ import { Tooltip as Ct } from "./Tooltip.esm.js";
5
+ import { Alert as Lt, AlertActions as St, AlertDescription as Ot, AlertIcon as kt, AlertTitle as Nt } from "./Alert.esm.js";
6
+ import { Dropdown as $t, DropdownContent as Bt, DropdownItem as Ht, DropdownSectionLabel as Gt, DropdownSeparator as Vt, DropdownTrigger as zt } from "./Dropdown.esm.js";
7
+ import { Input as Ut } from "./Input.esm.js";
8
+ import { PasswordField as _t } from "./PasswordField.esm.js";
9
+ import { TagsInput as Xt } from "./TagsInput.esm.js";
10
+ import { OTPInput as Zt, PinInput as Jt } from "./PinInput.esm.js";
11
+ import { Dropzone as er, FileUpload as tr } from "./FileUpload.esm.js";
12
+ import { Textarea as nr } from "./Textarea.esm.js";
13
+ import { Field as ir } from "./Field.esm.js";
14
+ import { ControlGroup as ar, Description as lr, FieldError as ur, Fieldset as fr } from "./FieldSemantics.esm.js";
15
+ import { FiltersBar as mr } from "./FiltersBar.esm.js";
16
+ import { Combobox as pr } from "./Combobox.esm.js";
17
+ import { Badge as yr } from "./Badge.esm.js";
18
+ import { EmptyState as xr } from "./EmptyState.esm.js";
19
+ import { Table as Dr } from "./Table.esm.js";
20
+ import { DataTable as hr } from "./DataTable.esm.js";
21
+ import { Chart as Ar } from "./Chart.esm.js";
22
+ import { Timeline as Er } from "./Timeline.esm.js";
23
+ import { Carousel as Mr } from "./Carousel.esm.js";
24
+ import { CodeBlock as Cr } from "./CodeBlock.esm.js";
25
+ import { CodeSnippet as Lr } from "./CodeSnippet.esm.js";
26
+ import { CopyButton as Or } from "./CopyButton.esm.js";
27
+ import { DataViewToolbar as Nr } from "./DataViewToolbar.esm.js";
28
+ import { Stat as $r } from "./Stat.esm.js";
29
+ import { MetricCard as Hr } from "./MetricCard.esm.js";
30
+ import { Calendar as Vr } from "./Calendar.esm.js";
31
+ import { ColorPicker as qr } from "./ColorPicker.esm.js";
32
+ import { DatePicker as jr } from "./DatePicker.esm.js";
33
+ import { DateRangePicker as Qr } from "./DateRangePicker.esm.js";
34
+ import { DateField as Yr, TimeField as Zr } from "./DateField.esm.js";
35
+ import { NumberField as Wr } from "./NumberField.esm.js";
36
+ import { MultiSelect as tn } from "./MultiSelect.esm.js";
37
+ import { SplitButton as nn } from "./SplitButton.esm.js";
38
+ import { TransferList as sn } from "./TransferList.esm.js";
39
+ import { Sortable as ln } from "./Sortable.esm.js";
40
+ import { InlineEdit as fn } from "./InlineEdit.esm.js";
41
+ import { TimePicker as mn } from "./TimePicker.esm.js";
42
+ import { DateTimePicker as pn } from "./DateTimePicker.esm.js";
43
+ import { DateRangeTimePicker as yn } from "./DateRangeTimePicker.esm.js";
44
+ import { Gantt as xn } from "./Gantt.esm.js";
45
+ import { Stepper as Dn } from "./Stepper.esm.js";
46
+ import { Wizard as hn } from "./Wizard.esm.js";
47
+ import { Rating as An } from "./Rating.esm.js";
48
+ import { QuickActions as En } from "./QuickActions.esm.js";
49
+ import { NavigationMenu as Mn, NavigationMenuContent as Tn, NavigationMenuIndicator as Cn, NavigationMenuItem as Fn, NavigationMenuLink as Ln, NavigationMenuList as Sn, NavigationMenuRoot as On, NavigationMenuTrigger as kn, NavigationMenuViewport as Nn } from "./NavigationMenu.esm.js";
50
+ import { Menubar as $n } from "./Menubar.esm.js";
51
+ import { Dialog as Hn } from "./Dialog.esm.js";
52
+ import { DialogProvider as Vn, useDialog as zn } from "./DialogProvider.esm.js";
53
+ import { Popover as Un } from "./Popover.esm.js";
54
+ import { Tabs as _n } from "./Tabs.esm.js";
55
+ import { Menu as Xn, MenuItem as Yn, MenuSectionLabel as Zn, MenuSeparator as Jn } from "./Menu.esm.js";
56
+ import { Icon as eo } from "./Icon.esm.js";
57
+ import { ToastAPI as ro, ToastProvider as no, toast as oo, toastApi as io, useToast as so } from "./ToastAPI.esm.js";
58
+ import { Toast as lo } from "./Toast.esm.js";
59
+ import { FloatingToolbar as fo } from "./FloatingToolbar.esm.js";
60
+ import { BlockControls as mo } from "./BlockControls.esm.js";
61
+ import { Kbd as go } from "./Kbd.esm.js";
62
+ import { Shortcut as wo } from "./Shortcut.esm.js";
63
+ import { Command as bo, CommandItem as Do } from "./Command.esm.js";
64
+ import { CommandPalette as ho, CommandPaletteItem as vo } from "./CommandPalette.esm.js";
65
+ import { ContextMenu as Io } from "./ContextMenu.esm.js";
66
+ import { SelectionPopup as Ro } from "./SelectionPopup.esm.js";
67
+ import { PluginPanel as To } from "./PluginPanel.esm.js";
68
+ import { Form as Fo } from "./Form.esm.js";
69
+ import F, { useRef as A, useCallback as b, useState as H, useLayoutEffect as Te, useEffect as N, createContext as ae, useMemo as $, useContext as ee } from "react";
70
+ import { createPositioner as ze, createVirtualPoint as qe } from "@editora/ui-core/runtime";
71
+ import { createPortal as Ue } from "react-dom";
72
+ import { Box as So } from "./Box.esm.js";
73
+ import { Flex as ko } from "./Flex.esm.js";
74
+ import { Grid as Ko } from "./Grid.esm.js";
75
+ import { PlacementGrid as Bo } from "./PlacementGrid.esm.js";
76
+ import { MasonryGrid as Go } from "./MasonryGrid.esm.js";
77
+ import { Section as zo } from "./Section.esm.js";
78
+ import { Container as Uo } from "./Container.esm.js";
79
+ import { Sidebar as _o } from "./Sidebar.esm.js";
80
+ import { Panel as Xo, PanelGroup as Yo, Splitter as Zo } from "./PanelGroup.esm.js";
81
+ import { Tree as Wo } from "./Tree.esm.js";
82
+ import { Breadcrumb as ti } from "./Breadcrumb.esm.js";
83
+ import { AppHeader as ni, AppHeaderCenter as oi, AppHeaderEnd as ii, AppHeaderStart as si, AppHeaderSubtitle as ai, AppHeaderTitle as li } from "./AppHeader.esm.js";
84
+ import { PageHeader as fi } from "./PageHeader.esm.js";
85
+ import { PageToolbar as mi } from "./PageToolbar.esm.js";
86
+ import { RecordHeader as pi } from "./RecordHeader.esm.js";
87
+ import { Drawer as yi } from "./Drawer.esm.js";
88
+ import { Layout as xi } from "./Layout.esm.js";
89
+ import { ThemeProvider as Di, useTheme as Pi } from "./ThemeProvider.esm.js";
90
+ import { Collection as vi } from "./Collection.esm.js";
91
+ import { Listbox as Ii } from "./Listbox.esm.js";
92
+ import { RovingFocusGroup as Ri } from "./RovingFocusGroup.esm.js";
93
+ import { DismissableLayer as Ti } from "./DismissableLayer.esm.js";
94
+ import { FocusScope as Fi } from "./FocusScope.esm.js";
95
+ import { Positioner as Si } from "./Positioner.esm.js";
96
+ import { Anchor as ki } from "./Anchor.esm.js";
97
+ import { Checkbox as Ki } from "./Checkbox.esm.js";
98
+ import { Radio as Bi } from "./Radio.esm.js";
99
+ import { RadioGroup as Gi } from "./RadioGroup.esm.js";
100
+ import { Switch as zi } from "./Switch.esm.js";
101
+ import { Toggle as Ui } from "./Toggle.esm.js";
102
+ import { ToggleGroup as _i } from "./ToggleGroup.esm.js";
103
+ import { AspectRatio as Xi } from "./AspectRatio.esm.js";
104
+ import { Avatar as Zi } from "./Avatar.esm.js";
105
+ import { Presence as Wi } from "./Presence.esm.js";
106
+ import { Progress as ts } from "./Progress.esm.js";
107
+ import { Meter as ns } from "./Meter.esm.js";
108
+ import { Portal as is } from "./Portal.esm.js";
109
+ import { ScrollArea as as } from "./ScrollArea.esm.js";
110
+ import { Separator as us } from "./Separator.esm.js";
111
+ import { Slot as cs } from "./Slot.esm.js";
112
+ import { Toolbar as ds } from "./Toolbar.esm.js";
113
+ import { VisuallyHidden as gs } from "./VisuallyHidden.esm.js";
114
+ import { Collapsible as ws } from "./Collapsible.esm.js";
115
+ import { Pagination as bs } from "./Pagination.esm.js";
116
+ import { Accordion as Ps } from "./Accordion.esm.js";
117
+ import { DirectionProvider as vs } from "./DirectionProvider.esm.js";
118
+ import { HoverCard as Is } from "./HoverCard.esm.js";
119
+ import { Card as Rs } from "./Card.esm.js";
120
+ import { Label as Ts } from "./Label.esm.js";
121
+ import { AlertDialog as Fs, AlertDialogActions as Ls, AlertDialogContent as Ss, AlertDialogDescription as Os, AlertDialogIcon as ks, AlertDialogTitle as Ns } from "./AlertDialog.esm.js";
122
+ import { AlertDialogProvider as $s, useAlertDialog as Bs } from "./AlertDialogProvider.esm.js";
123
+ import { AnimatedText as Gs } from "./AnimatedText.esm.js";
124
+ import { SpinningText as zs } from "./SpinningText.esm.js";
125
+ import { NumberTicker as Us } from "./NumberTicker.esm.js";
126
+ import { AnimatedList as _s } from "./AnimatedList.esm.js";
127
+ import { AnimatedBeam as Xs } from "./AnimatedBeam.esm.js";
128
+ import { IconCloud as Zs } from "./IconCloud.esm.js";
129
+ import { Dock as Ws } from "./Dock.esm.js";
130
+ import { Orbiter as ta } from "./Orbiter.esm.js";
131
+ import { Marquee as na } from "./Marquee.esm.js";
132
+ import { Select as ia } from "./Select.esm.js";
133
+ import { Slider as aa } from "./Slider.esm.js";
134
+ import { Skeleton as ua } from "./Skeleton.esm.js";
135
+ import { AnimatedNumber as ca, useAnimatedNumber as ma, useAnimatedNumberValue as da } from "./AnimatedNumber.esm.js";
136
+ import { toastAdvanced as ga, default as ya, toastPro as wa } from "@editora/toast";
137
+ function ot() {
138
+ const e = A(null), n = b(async () => {
139
+ const u = e.current;
140
+ return u ? await u.submit() : !1;
141
+ }, []), t = b(async () => {
142
+ const u = e.current;
143
+ return u ? await u.validate() : { valid: !0, errors: {} };
144
+ }, []), r = b(() => {
145
+ const u = e.current;
146
+ return u ? u.getValues?.() : {};
147
+ }, []), o = b((u) => e.current?.reset?.(u), []), a = b(() => {
148
+ const u = e.current;
149
+ return u ? typeof u.isDirty == "function" ? !!u.isDirty() : u.hasAttribute?.("dirty") || !1 : !1;
150
+ }, []), i = b((u) => e.current?.markClean?.(u), []);
151
+ return { ref: e, submit: n, validate: t, getValues: r, reset: o, isDirty: a, markClean: i };
274
152
  }
275
- const Te = typeof window < "u" ? Le : K;
276
- function ye(e, o) {
153
+ const Me = typeof window < "u" ? Te : N;
154
+ function ge(e, n) {
277
155
  if (e) {
278
156
  if (typeof e == "function") {
279
- e(o);
157
+ e(n);
280
158
  return;
281
159
  }
282
- e.current = o;
160
+ e.current = n;
283
161
  }
284
162
  }
285
- function xe(...e) {
286
- return (o) => {
287
- e.forEach((r) => ye(r, o));
163
+ function ye(...e) {
164
+ return (n) => {
165
+ e.forEach((t) => ge(t, n));
288
166
  };
289
167
  }
290
- function Qe(...e) {
291
- return (...o) => {
292
- e.forEach((r) => r == null ? void 0 : r(...o));
168
+ function je(...e) {
169
+ return (...n) => {
170
+ e.forEach((t) => t?.(...n));
293
171
  };
294
172
  }
295
- function k(e, o, r = {}) {
296
- return (t) => {
297
- e == null || e(t), !((r.checkDefaultPrevented ?? !0) && t.defaultPrevented) && o(t);
173
+ function S(e, n, t = {}) {
174
+ return (r) => {
175
+ e?.(r), !((t.checkDefaultPrevented ?? !0) && r.defaultPrevented) && n(r);
298
176
  };
299
177
  }
300
- function fo(e) {
178
+ function it(e) {
301
179
  const {
302
- placement: o = "bottom",
303
- offset: r = 8,
304
- open: t,
305
- onOpen: n,
306
- onClose: f,
307
- onOpenChange: s,
308
- role: c = "menu",
309
- flip: i = !0,
310
- shift: u = !0,
311
- matchWidth: a = !1,
312
- fitViewport: m = !1,
180
+ placement: n = "bottom",
181
+ offset: t = 8,
182
+ open: r,
183
+ onOpen: o,
184
+ onClose: a,
185
+ onOpenChange: i,
186
+ role: u = "menu",
187
+ flip: p = !0,
188
+ shift: l = !0,
189
+ matchWidth: m = !1,
190
+ fitViewport: f = !1,
313
191
  strategy: d = "absolute",
314
- arrowPadding: l = 8,
315
- dir: p,
316
- boundary: y = null,
317
- boundaryPadding: P,
318
- autoPlacement: F = !1,
192
+ arrowPadding: s = 8,
193
+ dir: c,
194
+ boundary: g = null,
195
+ boundaryPadding: h,
196
+ autoPlacement: O = !1,
319
197
  allowedPlacements: E,
320
- fallbackPlacements: M,
198
+ fallbackPlacements: T,
321
199
  inline: I = !1,
322
- hideWhenDetached: L = !1,
323
- observeWindowResize: B,
324
- observeScroll: T,
325
- observeAncestorScroll: N,
326
- observeAncestorResize: U,
327
- observeLayoutShift: j,
328
- observeAnchorResize: g,
329
- observeFloatingResize: b,
330
- animationFrame: A,
331
- middleware: C
332
- } = e || {}, O = R(null), v = R(null), z = R(null), Y = R(null), te = R(null), oe = R(`floating-${Math.random().toString(36).slice(2, 9)}`), [$e, be] = H(0), [De, Ke] = H(null), [Z, Be] = H(null), [ve, Ve] = H(null), [J, He] = H({ top: 0, left: 0, placement: o }), fe = typeof t < "u", [ze, qe] = H(!!t), q = fe ? !!t : ze, he = D(() => {
333
- var x;
334
- (x = te.current) == null || x.update();
335
- }, []), _ = D(
336
- (x, w = "manual") => {
337
- fe || qe(x), s == null || s(x, w), x ? n == null || n(w) : f == null || f(w);
200
+ hideWhenDetached: R = !1,
201
+ observeWindowResize: L,
202
+ observeScroll: k,
203
+ observeAncestorScroll: z,
204
+ observeAncestorResize: V,
205
+ observeLayoutShift: Q,
206
+ observeAnchorResize: y,
207
+ observeFloatingResize: D,
208
+ animationFrame: v,
209
+ middleware: M
210
+ } = e || {}, B = A(null), C = A(null), q = A(null), le = A(null), W = A(null), te = A(`floating-${Math.random().toString(36).slice(2, 9)}`), [ke, be] = H(0), [De, Ne] = H(null), [X, Ke] = H(null), [Pe, $e] = H(null), [Y, Be] = H({ top: 0, left: 0, placement: n }), ue = typeof r < "u", [He, Ge] = H(!!r), G = ue ? !!r : He, he = b(() => {
211
+ W.current?.update();
212
+ }, []), U = b(
213
+ (w, x = "manual") => {
214
+ ue || Ge(w), i?.(w, x), w ? o?.(x) : a?.(x);
338
215
  },
339
- [fe, n, f, s]
340
- ), ce = D((x = "manual") => _(!q, x), [q, _]), Ae = D((x = "manual") => _(!0, x), [_]), Ee = D((x = "manual") => _(!1, x), [_]);
341
- Te(() => {
342
- var h;
343
- if (!q)
344
- return;
345
- const x = De, w = Z;
346
- if (!x || !w)
347
- return;
348
- const $ = w.style.visibility, X = w.style.pointerEvents, W = !w.offsetWidth && !w.offsetHeight;
349
- return W && (w.style.visibility = "hidden", w.style.pointerEvents = "none"), (h = te.current) == null || h.destroy(), te.current = Ue({
350
- anchor: Y.current || x,
351
- floating: w,
352
- placement: o,
216
+ [ue, o, a, i]
217
+ ), fe = b((w = "manual") => U(!G, w), [G, U]), ve = b((w = "manual") => U(!0, w), [U]), Ae = b((w = "manual") => U(!1, w), [U]);
218
+ Me(() => {
219
+ if (!G) return;
220
+ const w = De, x = X;
221
+ if (!w || !x) return;
222
+ const K = x.style.visibility, _ = x.style.pointerEvents, Z = !x.offsetWidth && !x.offsetHeight;
223
+ return Z && (x.style.visibility = "hidden", x.style.pointerEvents = "none"), W.current?.destroy(), W.current = ze({
224
+ anchor: le.current || w,
225
+ floating: x,
226
+ placement: n,
353
227
  strategy: d,
354
- offset: r,
355
- flip: i,
356
- shift: u,
357
- matchWidth: a,
358
- fitViewport: m,
359
- arrow: ve,
360
- arrowPadding: l,
361
- dir: p,
362
- boundary: y,
363
- boundaryPadding: P,
364
- autoPlacement: F,
228
+ offset: t,
229
+ flip: p,
230
+ shift: l,
231
+ matchWidth: m,
232
+ fitViewport: f,
233
+ arrow: Pe,
234
+ arrowPadding: s,
235
+ dir: c,
236
+ boundary: g,
237
+ boundaryPadding: h,
238
+ autoPlacement: O,
365
239
  allowedPlacements: E,
366
- fallbackPlacements: M,
240
+ fallbackPlacements: T,
367
241
  inline: I,
368
- hideWhenDetached: L,
369
- observeWindowResize: B,
370
- observeScroll: T,
371
- observeAncestorScroll: N,
372
- observeAncestorResize: U,
373
- observeLayoutShift: j,
374
- observeAnchorResize: g,
375
- observeFloatingResize: b,
376
- animationFrame: A,
377
- middleware: C,
378
- onUpdate: (G) => {
379
- var Fe;
380
- He({
381
- top: Math.round(G.y),
382
- left: Math.round(G.x),
383
- placement: G.placement,
384
- arrow: (Fe = G.middlewareData) != null && Fe.arrow ? {
385
- x: G.middlewareData.arrow.x,
386
- y: G.middlewareData.arrow.y,
387
- centerOffset: G.middlewareData.arrow.centerOffset
242
+ hideWhenDetached: R,
243
+ observeWindowResize: L,
244
+ observeScroll: k,
245
+ observeAncestorScroll: z,
246
+ observeAncestorResize: V,
247
+ observeLayoutShift: Q,
248
+ observeAnchorResize: y,
249
+ observeFloatingResize: D,
250
+ animationFrame: v,
251
+ middleware: M,
252
+ onUpdate: (P) => {
253
+ Be({
254
+ top: Math.round(P.y),
255
+ left: Math.round(P.x),
256
+ placement: P.placement,
257
+ arrow: P.middlewareData?.arrow ? {
258
+ x: P.middlewareData.arrow.x,
259
+ y: P.middlewareData.arrow.y,
260
+ centerOffset: P.middlewareData.arrow.centerOffset
388
261
  } : void 0
389
262
  });
390
263
  }
391
264
  }), () => {
392
- var G;
393
- W && (w.style.visibility = $, w.style.pointerEvents = X), (G = te.current) == null || G.destroy(), te.current = null;
265
+ Z && (x.style.visibility = K, x.style.pointerEvents = _), W.current?.destroy(), W.current = null;
394
266
  };
395
267
  }, [
396
- q,
397
- o,
268
+ G,
269
+ n,
398
270
  d,
399
- r,
400
- i,
401
- u,
402
- a,
271
+ t,
272
+ p,
273
+ l,
403
274
  m,
404
- $e,
275
+ f,
276
+ ke,
405
277
  De,
406
- Z,
407
- ve,
408
- l,
409
- p,
410
- y,
411
- P,
412
- F,
278
+ X,
279
+ Pe,
280
+ s,
281
+ c,
282
+ g,
283
+ h,
284
+ O,
413
285
  E,
414
- M,
286
+ T,
415
287
  I,
288
+ R,
416
289
  L,
417
- B,
418
- T,
419
- N,
420
- U,
421
- j,
422
- g,
423
- b,
424
- A,
425
- C
426
- ]), Te(() => {
427
- !q || !Z || (Z.style.visibility = "", Z.style.pointerEvents = "");
428
- }, [J.left, J.top, q, Z]);
429
- const ne = D((x) => {
430
- O.current = x, Ke((w) => w === x ? w : x);
431
- }, []), ie = D((x) => {
432
- v.current = x, Be((w) => w === x ? w : x);
433
- }, []), me = D((x) => {
434
- z.current = x, Ve((w) => w === x ? w : x);
435
- }, []), pe = D((x) => {
436
- Y.current = x, be((w) => w + 1);
437
- }, []), Ge = D((x, w) => {
438
- const $ = O.current || v.current || void 0;
439
- Y.current = je(x, w, $), be((X) => X + 1);
440
- }, []), se = () => v.current ? Array.from(
441
- v.current.querySelectorAll('[role="menuitem"], .item, [data-menu-item]')
442
- ).filter(Boolean) : [], ue = (x) => {
443
- const w = se();
444
- if (!w.length)
445
- return;
446
- const $ = Math.max(0, Math.min(w.length - 1, x));
290
+ k,
291
+ z,
292
+ V,
293
+ Q,
294
+ y,
295
+ D,
296
+ v,
297
+ M
298
+ ]), Me(() => {
299
+ !G || !X || (X.style.visibility = "", X.style.pointerEvents = "");
300
+ }, [Y.left, Y.top, G, X]);
301
+ const re = b((w) => {
302
+ B.current = w, Ne((x) => x === w ? x : w);
303
+ }, []), ne = b((w) => {
304
+ C.current = w, Ke((x) => x === w ? x : w);
305
+ }, []), ce = b((w) => {
306
+ q.current = w, $e((x) => x === w ? x : w);
307
+ }, []), me = b((w) => {
308
+ le.current = w, be((x) => x + 1);
309
+ }, []), Ve = b((w, x) => {
310
+ const K = B.current || C.current || void 0;
311
+ le.current = qe(w, x, K), be((_) => _ + 1);
312
+ }, []), oe = () => C.current ? Array.from(
313
+ C.current.querySelectorAll('[role="menuitem"], .item, [data-menu-item]')
314
+ ).filter(Boolean) : [], ie = (w) => {
315
+ const x = oe();
316
+ if (!x.length) return;
317
+ const K = Math.max(0, Math.min(x.length - 1, w));
447
318
  try {
448
- w[$].focus();
319
+ x[K].focus();
449
320
  } catch {
450
321
  }
451
- }, de = () => ue(0), Ie = () => {
452
- const x = se();
453
- x.length && ue(x.length - 1);
322
+ }, de = () => ie(0), Ie = () => {
323
+ const w = oe();
324
+ w.length && ie(w.length - 1);
325
+ }, Ee = () => {
326
+ const w = oe(), x = w.findIndex((K) => K === document.activeElement);
327
+ ie(x < 0 ? 0 : (x + 1) % w.length);
454
328
  }, Re = () => {
455
- const x = se(), w = x.findIndex(($) => $ === document.activeElement);
456
- ue(w < 0 ? 0 : (w + 1) % x.length);
457
- }, Me = () => {
458
- const x = se(), w = x.findIndex(($) => $ === document.activeElement);
459
- ue(w <= 0 ? x.length - 1 : w - 1);
329
+ const w = oe(), x = w.findIndex((K) => K === document.activeElement);
330
+ ie(x <= 0 ? w.length - 1 : x - 1);
460
331
  };
461
332
  return {
462
- referenceRef: ne,
463
- floatingRef: ie,
464
- arrowRef: me,
465
- setPositionReference: pe,
466
- setClientPoint: Ge,
467
- coords: J,
333
+ referenceRef: re,
334
+ floatingRef: ne,
335
+ arrowRef: ce,
336
+ setPositionReference: me,
337
+ setClientPoint: Ve,
338
+ coords: Y,
468
339
  update: he,
469
- open: q,
470
- setOpen: _,
471
- toggle: ce,
472
- openPopup: Ae,
473
- closePopup: Ee,
474
- getReferenceProps: (x = {}) => {
475
- const { onClick: w, onKeyDown: $, ref: X, ...W } = x;
340
+ open: G,
341
+ setOpen: U,
342
+ toggle: fe,
343
+ openPopup: ve,
344
+ closePopup: Ae,
345
+ getReferenceProps: (w = {}) => {
346
+ const { onClick: x, onKeyDown: K, ref: _, ...Z } = w;
476
347
  return {
477
- ...W,
478
- ref: (h) => {
479
- ne(h), ye(X, h);
348
+ ...Z,
349
+ ref: (P) => {
350
+ re(P), ge(_, P);
480
351
  },
481
- "aria-haspopup": c,
482
- "aria-controls": oe.current,
483
- "aria-expanded": q ? "true" : "false",
484
- onClick: (h) => {
485
- w == null || w(h), !h.defaultPrevented && ce();
352
+ "aria-haspopup": u,
353
+ "aria-controls": te.current,
354
+ "aria-expanded": G ? "true" : "false",
355
+ onClick: (P) => {
356
+ x?.(P), !P.defaultPrevented && fe();
486
357
  },
487
- onKeyDown: (h) => {
488
- $ == null || $(h), !h.defaultPrevented && h.key === "ArrowDown" && (h.preventDefault(), Ae("list-navigation"), setTimeout(() => de(), 0));
358
+ onKeyDown: (P) => {
359
+ K?.(P), !P.defaultPrevented && P.key === "ArrowDown" && (P.preventDefault(), ve("list-navigation"), setTimeout(() => de(), 0));
489
360
  }
490
361
  };
491
362
  },
492
- getFloatingProps: (x = {}) => {
493
- const { onKeyDown: w, style: $, ref: X, ...W } = x;
363
+ getFloatingProps: (w = {}) => {
364
+ const { onKeyDown: x, style: K, ref: _, ...Z } = w;
494
365
  return {
495
- ...W,
496
- id: oe.current,
497
- ref: (h) => {
498
- ie(h), ye(X, h);
366
+ ...Z,
367
+ id: te.current,
368
+ ref: (P) => {
369
+ ne(P), ge(_, P);
499
370
  },
500
- role: c,
371
+ role: u,
501
372
  tabIndex: -1,
502
373
  style: {
503
- ...$ || {},
374
+ ...K || {},
504
375
  position: d,
505
- top: J.top,
506
- left: J.left
376
+ top: Y.top,
377
+ left: Y.left
507
378
  },
508
- hidden: !q,
509
- onKeyDown: (h) => {
510
- w == null || w(h), !h.defaultPrevented && (h.key === "Escape" ? (h.preventDefault(), Ee("dismiss")) : h.key === "ArrowDown" ? (h.preventDefault(), Re()) : h.key === "ArrowUp" ? (h.preventDefault(), Me()) : h.key === "Home" ? (h.preventDefault(), de()) : h.key === "End" && (h.preventDefault(), Ie()));
379
+ hidden: !G,
380
+ onKeyDown: (P) => {
381
+ x?.(P), !P.defaultPrevented && (P.key === "Escape" ? (P.preventDefault(), Ae("dismiss")) : P.key === "ArrowDown" ? (P.preventDefault(), Ee()) : P.key === "ArrowUp" ? (P.preventDefault(), Re()) : P.key === "Home" ? (P.preventDefault(), de()) : P.key === "End" && (P.preventDefault(), Ie()));
511
382
  }
512
383
  };
513
384
  },
514
385
  focusFirstItem: de,
515
386
  focusLastItem: Ie,
516
- focusNext: Re,
517
- focusPrev: Me,
387
+ focusNext: Ee,
388
+ focusPrev: Re,
518
389
  refs: {
519
- reference: O,
520
- floating: v,
521
- arrow: z,
522
- setReference: ne,
523
- setFloating: ie,
524
- setArrow: me,
525
- setPositionReference: pe
390
+ reference: B,
391
+ floating: C,
392
+ arrow: q,
393
+ setReference: re,
394
+ setFloating: ne,
395
+ setArrow: ce,
396
+ setPositionReference: me
526
397
  },
527
398
  elements: {
528
399
  get reference() {
529
- return O.current;
400
+ return B.current;
530
401
  },
531
402
  get floating() {
532
- return v.current;
403
+ return C.current;
533
404
  },
534
405
  get arrow() {
535
- return z.current;
406
+ return q.current;
536
407
  }
537
408
  },
538
- floatingId: oe.current,
539
- role: c,
540
- placement: o,
409
+ floatingId: te.current,
410
+ role: u,
411
+ placement: n,
541
412
  context: {
542
- open: q,
543
- setOpen: _,
544
- toggle: ce,
413
+ open: G,
414
+ setOpen: U,
415
+ toggle: fe,
545
416
  refs: {
546
- reference: O,
547
- floating: v,
548
- arrow: z,
549
- setReference: ne,
550
- setFloating: ie,
551
- setArrow: me,
552
- setPositionReference: pe
417
+ reference: B,
418
+ floating: C,
419
+ arrow: q,
420
+ setReference: re,
421
+ setFloating: ne,
422
+ setArrow: ce,
423
+ setPositionReference: me
553
424
  },
554
425
  elements: {
555
426
  get reference() {
556
- return O.current;
427
+ return B.current;
557
428
  },
558
429
  get floating() {
559
- return v.current;
430
+ return C.current;
560
431
  },
561
432
  get arrow() {
562
- return z.current;
433
+ return q.current;
563
434
  }
564
435
  },
565
- coords: J,
436
+ coords: Y,
566
437
  update: he,
567
- floatingId: oe.current,
568
- role: c,
569
- placement: o,
438
+ floatingId: te.current,
439
+ role: u,
440
+ placement: n,
570
441
  strategy: d
571
442
  }
572
443
  };
573
444
  }
574
- function ge(e, o = {}) {
575
- return e.reduce((r, t) => {
576
- const n = (t == null ? void 0 : t(r)) || r;
577
- return Xe(r, n);
578
- }, o);
445
+ function pe(e, n = {}) {
446
+ return e.reduce((t, r) => {
447
+ const o = r?.(t) || t;
448
+ return _e(t, o);
449
+ }, n);
579
450
  }
580
- function Xe(e, o) {
581
- const r = { ...e, ...o };
582
- return Object.keys(e).forEach((t) => {
583
- /^on[A-Z]/.test(t) && typeof e[t] == "function" && typeof o[t] == "function" && (r[t] = Qe(e[t], o[t]));
584
- }), (e.ref || o.ref) && (r.ref = xe(e.ref, o.ref)), (e.style || o.style) && (r.style = { ...e.style || {}, ...o.style || {} }), r;
451
+ function _e(e, n) {
452
+ const t = { ...e, ...n };
453
+ return Object.keys(e).forEach((r) => {
454
+ /^on[A-Z]/.test(r) && typeof e[r] == "function" && typeof n[r] == "function" && (t[r] = je(e[r], n[r]));
455
+ }), (e.ref || n.ref) && (t.ref = ye(e.ref, n.ref)), (e.style || n.style) && (t.style = { ...e.style || {}, ...n.style || {} }), t;
585
456
  }
586
- function Q(e, o) {
587
- return !!e && !!o && e.contains(o);
457
+ function j(e, n) {
458
+ return !!e && !!n && e.contains(n);
588
459
  }
589
- function ee(e, o) {
590
- return typeof e == "number" ? e : (e == null ? void 0 : e[o]) ?? 0;
460
+ function J(e, n) {
461
+ return typeof e == "number" ? e : e?.[n] ?? 0;
591
462
  }
592
- function le(e) {
463
+ function se(e) {
593
464
  return Array.from(
594
- (e == null ? void 0 : e.querySelectorAll(
465
+ e?.querySelectorAll(
595
466
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
596
- )) || []
597
- ).filter((o) => !o.hasAttribute("disabled") && o.getAttribute("aria-hidden") !== "true");
467
+ ) || []
468
+ ).filter((n) => !n.hasAttribute("disabled") && n.getAttribute("aria-hidden") !== "true");
598
469
  }
599
- function Ye(e) {
600
- const o = e.target;
601
- if (!o)
602
- return !0;
470
+ function Qe(e) {
471
+ const n = e.target;
472
+ if (!n) return !0;
603
473
  try {
604
- return typeof o.matches != "function" || o.matches(":focus-visible");
474
+ return typeof n.matches != "function" || n.matches(":focus-visible");
605
475
  } catch {
606
476
  return !0;
607
477
  }
@@ -609,627 +479,586 @@ function Ye(e) {
609
479
  function Ce(e) {
610
480
  return typeof e == "object" && e !== null && "current" in e;
611
481
  }
612
- function Se(e) {
613
- if (!(e instanceof Element))
614
- return null;
615
- const o = e.closest("[data-floating-node-id], [data-floating-reference-id]");
616
- return o && (o.dataset.floatingNodeId || o.dataset.floatingReferenceId) || null;
482
+ function Fe(e) {
483
+ if (!(e instanceof Element)) return null;
484
+ const n = e.closest("[data-floating-node-id], [data-floating-reference-id]");
485
+ return n && (n.dataset.floatingNodeId || n.dataset.floatingReferenceId) || null;
617
486
  }
618
- function ke(e, o, r) {
619
- if (!e || o === r)
620
- return !1;
621
- let t = e.getNode(o);
622
- for (; t != null && t.parentId; ) {
623
- if (t.parentId === r)
624
- return !0;
625
- t = e.getNode(t.parentId);
487
+ function Le(e, n, t) {
488
+ if (!e || n === t) return !1;
489
+ let r = e.getNode(n);
490
+ for (; r?.parentId; ) {
491
+ if (r.parentId === t) return !0;
492
+ r = e.getNode(r.parentId);
626
493
  }
627
494
  return !1;
628
495
  }
629
- function co(e) {
630
- const o = e.filter(Boolean);
631
- return V(() => ({
632
- getReferenceProps: (r = {}) => ge(o.map((t) => t.getReferenceProps), r),
633
- getFloatingProps: (r = {}) => ge(o.map((t) => t.getFloatingProps), r),
634
- getItemProps: (r = {}) => ge(o.map((t) => t.getItemProps), r)
635
- }), [o]);
496
+ function st(e) {
497
+ const n = e.filter(Boolean);
498
+ return $(() => ({
499
+ getReferenceProps: (t = {}) => pe(n.map((r) => r.getReferenceProps), t),
500
+ getFloatingProps: (t = {}) => pe(n.map((r) => r.getFloatingProps), t),
501
+ getItemProps: (t = {}) => pe(n.map((r) => r.getItemProps), t)
502
+ }), [n]);
636
503
  }
637
- function mo(e, o = {}) {
504
+ function at(e, n = {}) {
638
505
  const {
639
- enabled: r = !0,
640
- toggle: t = !0,
641
- event: n = "click",
642
- ignoreMouse: f = !1,
643
- keyboardHandlers: s = !0,
644
- stickIfOpen: c = !1
645
- } = o;
646
- return V(() => ({
647
- getReferenceProps(i = {}) {
648
- if (!r)
649
- return i;
650
- const u = n === "mousedown" ? "onMouseDown" : "onClick", a = (m = "click") => {
651
- e.open && c || (t ? e.toggle(m) : e.setOpen(!0, m));
506
+ enabled: t = !0,
507
+ toggle: r = !0,
508
+ event: o = "click",
509
+ ignoreMouse: a = !1,
510
+ keyboardHandlers: i = !0,
511
+ stickIfOpen: u = !1
512
+ } = n;
513
+ return $(() => ({
514
+ getReferenceProps(p = {}) {
515
+ if (!t) return p;
516
+ const l = o === "mousedown" ? "onMouseDown" : "onClick", m = (f = "click") => {
517
+ e.open && u || (r ? e.toggle(f) : e.setOpen(!0, f));
652
518
  };
653
519
  return {
654
- ...i,
655
- [u]: k(i[u], (m) => {
656
- f && (m.detail ?? 0) !== 0 || a("click");
520
+ ...p,
521
+ [l]: S(p[l], (f) => {
522
+ a && (f.detail ?? 0) !== 0 || m("click");
657
523
  }),
658
- onKeyDown: k(i.onKeyDown, (m) => {
659
- s && (m.key !== "Enter" && m.key !== " " || (m.preventDefault(), !(e.open && c) && (t ? e.toggle("click") : e.setOpen(!0, "click"))));
524
+ onKeyDown: S(p.onKeyDown, (f) => {
525
+ i && (f.key !== "Enter" && f.key !== " " || (f.preventDefault(), !(e.open && u) && (r ? e.toggle("click") : e.setOpen(!0, "click"))));
660
526
  })
661
527
  };
662
528
  }
663
- }), [e, r, n, f, s, c, t]);
529
+ }), [e, t, o, a, i, u, r]);
664
530
  }
665
- function po(e, o = {}) {
666
- const { enabled: r = !0, delay: t = 0, closeDelay: n, mouseOnly: f = !1, move: s = !0, restMs: c = 0 } = o, i = re(Pe), u = R(`delay-group-${Math.random().toString(36).slice(2, 9)}`), a = R(null), m = R(null), d = D(() => {
667
- a.current && window.clearTimeout(a.current), a.current = null, m.current && window.clearTimeout(m.current), m.current = null;
668
- }, []), l = D((p) => {
531
+ function lt(e, n = {}) {
532
+ const { enabled: t = !0, delay: r = 0, closeDelay: o, mouseOnly: a = !1, move: i = !0, restMs: u = 0 } = n, p = ee(xe), l = A(`delay-group-${Math.random().toString(36).slice(2, 9)}`), m = A(null), f = A(null), d = b(() => {
533
+ m.current && window.clearTimeout(m.current), m.current = null, f.current && window.clearTimeout(f.current), f.current = null;
534
+ }, []), s = b((c) => {
669
535
  d();
670
- const y = n ?? ee(t, "close"), P = p ? i != null && i.instantPhase || i != null && i.currentId && i.currentId !== u.current ? 1 : ee(t, "open") : y;
671
- a.current = window.setTimeout(() => {
672
- p ? i == null || i.beginInstantPhase(u.current) : (i == null ? void 0 : i.currentIdRef.current) === u.current && (i.setCurrentId(null), i.scheduleInstantPhaseReset(u.current)), e.setOpen(p, "hover");
673
- }, P);
674
- }, [d, n, e, t, i]);
675
- return K(() => d, [d]), V(() => ({
676
- getReferenceProps(p = {}) {
677
- return r ? {
678
- ...p,
679
- onMouseEnter: k(p.onMouseEnter, (y) => {
680
- if (!(f && y.pointerType && y.pointerType !== "mouse")) {
681
- if (c > 0) {
682
- d(), m.current = window.setTimeout(() => l(!0), c);
536
+ const g = o ?? J(r, "close"), h = c ? p?.instantPhase || p?.currentId && p.currentId !== l.current ? 1 : J(r, "open") : g;
537
+ m.current = window.setTimeout(() => {
538
+ c ? p?.beginInstantPhase(l.current) : p?.currentIdRef.current === l.current && (p.setCurrentId(null), p.scheduleInstantPhaseReset(l.current)), e.setOpen(c, "hover");
539
+ }, h);
540
+ }, [d, o, e, r, p]);
541
+ return N(() => d, [d]), $(() => ({
542
+ getReferenceProps(c = {}) {
543
+ return t ? {
544
+ ...c,
545
+ onMouseEnter: S(c.onMouseEnter, (g) => {
546
+ if (!(a && g.pointerType && g.pointerType !== "mouse")) {
547
+ if (u > 0) {
548
+ d(), f.current = window.setTimeout(() => s(!0), u);
683
549
  return;
684
550
  }
685
- l(!0);
551
+ s(!0);
686
552
  }
687
553
  }),
688
- onMouseLeave: k(p.onMouseLeave, () => l(!1))
689
- } : p;
554
+ onMouseLeave: S(c.onMouseLeave, () => s(!1))
555
+ } : c;
690
556
  },
691
- getFloatingProps(p = {}) {
692
- return r ? {
693
- ...p,
694
- onMouseEnter: k(p.onMouseEnter, () => {
695
- s && l(!0);
557
+ getFloatingProps(c = {}) {
558
+ return t ? {
559
+ ...c,
560
+ onMouseEnter: S(c.onMouseEnter, () => {
561
+ i && s(!0);
696
562
  }),
697
- onMouseLeave: k(p.onMouseLeave, () => l(!1))
698
- } : p;
563
+ onMouseLeave: S(c.onMouseLeave, () => s(!1))
564
+ } : c;
699
565
  }
700
- }), [d, r, f, s, c, l]);
566
+ }), [d, t, a, i, u, s]);
701
567
  }
702
- function go(e, o = {}) {
703
- const { enabled: r = !0, visibleOnly: t = !0 } = o;
704
- return V(() => ({
705
- getReferenceProps(n = {}) {
706
- return r ? {
707
- ...n,
708
- onFocus: k(n.onFocus, (f) => {
709
- t && !Ye(f) || e.setOpen(!0, "focus");
568
+ function ut(e, n = {}) {
569
+ const { enabled: t = !0, visibleOnly: r = !0 } = n;
570
+ return $(() => ({
571
+ getReferenceProps(o = {}) {
572
+ return t ? {
573
+ ...o,
574
+ onFocus: S(o.onFocus, (a) => {
575
+ r && !Qe(a) || e.setOpen(!0, "focus");
710
576
  }),
711
- onBlur: k(n.onBlur, (f) => {
712
- const s = f.relatedTarget;
713
- Q(e.elements.floating, s) || e.setOpen(!1, "focus");
577
+ onBlur: S(o.onBlur, (a) => {
578
+ const i = a.relatedTarget;
579
+ j(e.elements.floating, i) || e.setOpen(!1, "focus");
714
580
  })
715
- } : n;
581
+ } : o;
716
582
  },
717
- getFloatingProps(n = {}) {
718
- return r ? {
719
- ...n,
720
- onBlur: k(n.onBlur, (f) => {
721
- const s = f.relatedTarget;
722
- Q(e.elements.reference, s) || Q(e.elements.floating, s) || e.setOpen(!1, "focus");
583
+ getFloatingProps(o = {}) {
584
+ return t ? {
585
+ ...o,
586
+ onBlur: S(o.onBlur, (a) => {
587
+ const i = a.relatedTarget;
588
+ j(e.elements.reference, i) || j(e.elements.floating, i) || e.setOpen(!1, "focus");
723
589
  })
724
- } : n;
590
+ } : o;
725
591
  }
726
- }), [e, r, t]);
592
+ }), [e, t, r]);
727
593
  }
728
- function yo(e, o = {}) {
729
- const { role: r = e.role, enabled: t = !0 } = o;
730
- return V(() => ({
731
- getReferenceProps(n = {}) {
732
- return t ? {
733
- ...n,
734
- "aria-haspopup": r,
594
+ function ft(e, n = {}) {
595
+ const { role: t = e.role, enabled: r = !0 } = n;
596
+ return $(() => ({
597
+ getReferenceProps(o = {}) {
598
+ return r ? {
599
+ ...o,
600
+ "aria-haspopup": t,
735
601
  "aria-expanded": e.open ? "true" : "false",
736
602
  "aria-controls": e.floatingId
737
- } : n;
603
+ } : o;
738
604
  },
739
- getFloatingProps(n = {}) {
740
- return t ? {
741
- ...n,
605
+ getFloatingProps(o = {}) {
606
+ return r ? {
607
+ ...o,
742
608
  id: e.floatingId,
743
- role: r
744
- } : n;
609
+ role: t
610
+ } : o;
745
611
  }
746
- }), [e.floatingId, e.open, t, r]);
612
+ }), [e.floatingId, e.open, r, t]);
747
613
  }
748
- function xo(e, o = {}) {
614
+ function ct(e, n = {}) {
749
615
  const {
750
- enabled: r = !0,
751
- escapeKey: t = !0,
752
- outsidePress: n = !0,
753
- outsidePressEvent: f = "pointerdown",
754
- ancestorScroll: s = !1,
755
- referencePress: c = !1,
756
- referencePressEvent: i = "pointerdown",
757
- nodeId: u = null
758
- } = o, a = we(), m = D((l) => {
759
- if (!a || !u)
760
- return !1;
761
- const p = Se(l);
762
- return !p || p === u ? !1 : ke(a, p, u);
763
- }, [u, a]), d = D((l = "dismiss") => {
764
- u && (a == null || a.closeDescendants(u, l)), e.setOpen(!1, l);
765
- }, [e, u, a]);
766
- return K(() => {
767
- if (!r || !e.open)
768
- return;
769
- const l = (P) => {
770
- n && (Q(e.elements.reference, P.target) || Q(e.elements.floating, P.target) || m(P.target) || typeof n == "function" && !n(P) || d("dismiss"));
771
- }, p = (P) => {
772
- !t || P.key !== "Escape" || P.defaultPrevented || m(P.target) || (P.preventDefault(), d("dismiss"));
773
- }, y = () => {
774
- s && d("dismiss");
616
+ enabled: t = !0,
617
+ escapeKey: r = !0,
618
+ outsidePress: o = !0,
619
+ outsidePressEvent: a = "pointerdown",
620
+ ancestorScroll: i = !1,
621
+ referencePress: u = !1,
622
+ referencePressEvent: p = "pointerdown",
623
+ nodeId: l = null
624
+ } = n, m = we(), f = b((s) => {
625
+ if (!m || !l) return !1;
626
+ const c = Fe(s);
627
+ return !c || c === l ? !1 : Le(m, c, l);
628
+ }, [l, m]), d = b((s = "dismiss") => {
629
+ l && m?.closeDescendants(l, s), e.setOpen(!1, s);
630
+ }, [e, l, m]);
631
+ return N(() => {
632
+ if (!t || !e.open) return;
633
+ const s = (h) => {
634
+ o && (j(e.elements.reference, h.target) || j(e.elements.floating, h.target) || f(h.target) || typeof o == "function" && !o(h) || d("dismiss"));
635
+ }, c = (h) => {
636
+ !r || h.key !== "Escape" || h.defaultPrevented || f(h.target) || (h.preventDefault(), d("dismiss"));
637
+ }, g = () => {
638
+ i && d("dismiss");
775
639
  };
776
- return document.addEventListener(f, l, !0), document.addEventListener("keydown", p), window.addEventListener("scroll", y, !0), () => {
777
- document.removeEventListener(f, l, !0), document.removeEventListener("keydown", p), window.removeEventListener("scroll", y, !0);
640
+ return document.addEventListener(a, s, !0), document.addEventListener("keydown", c), window.addEventListener("scroll", g, !0), () => {
641
+ document.removeEventListener(a, s, !0), document.removeEventListener("keydown", c), window.removeEventListener("scroll", g, !0);
778
642
  };
779
643
  }, [
780
- s,
644
+ i,
781
645
  d,
782
646
  e,
783
- r,
784
647
  t,
785
- m,
786
- n,
787
- f
788
- ]), V(() => ({
789
- getReferenceProps(l = {}) {
790
- if (!r && !u)
791
- return l;
792
- const p = i === "click" ? "onClick" : i === "mousedown" ? "onMouseDown" : "onPointerDown", y = {
793
- ...l,
794
- "data-floating-reference-id": u ?? l["data-floating-reference-id"]
648
+ r,
649
+ f,
650
+ o,
651
+ a
652
+ ]), $(() => ({
653
+ getReferenceProps(s = {}) {
654
+ if (!t && !l) return s;
655
+ const c = p === "click" ? "onClick" : p === "mousedown" ? "onMouseDown" : "onPointerDown", g = {
656
+ ...s,
657
+ "data-floating-reference-id": l ?? s["data-floating-reference-id"]
795
658
  };
796
- return c ? {
797
- ...y,
798
- [p]: k(l[p], () => {
659
+ return u ? {
660
+ ...g,
661
+ [c]: S(s[c], () => {
799
662
  e.open && d("dismiss");
800
663
  })
801
- } : y;
664
+ } : g;
802
665
  },
803
- getFloatingProps(l = {}) {
804
- if (!r && !u)
805
- return l;
806
- const p = {
807
- ...l,
808
- "data-floating-node-id": u ?? l["data-floating-node-id"]
666
+ getFloatingProps(s = {}) {
667
+ if (!t && !l) return s;
668
+ const c = {
669
+ ...s,
670
+ "data-floating-node-id": l ?? s["data-floating-node-id"]
809
671
  };
810
- return r ? {
811
- ...p,
812
- onKeyDown: k(l.onKeyDown, (y) => {
813
- t && y.key === "Escape" && (y.preventDefault(), d("dismiss"));
672
+ return t ? {
673
+ ...c,
674
+ onKeyDown: S(s.onKeyDown, (g) => {
675
+ r && g.key === "Escape" && (g.preventDefault(), d("dismiss"));
814
676
  })
815
- } : p;
677
+ } : c;
816
678
  }
817
- }), [d, e, r, t, u, c, i]);
679
+ }), [d, e, t, r, l, u, p]);
818
680
  }
819
- function wo(e, o) {
681
+ function mt(e, n) {
820
682
  const {
821
- enabled: r = !0,
822
- listRef: t,
823
- activeIndex: n,
824
- onNavigate: f,
825
- loop: s = !0,
826
- orientation: c = "vertical",
827
- cols: i = 1,
828
- rtl: u = !1,
829
- focusItemOnOpen: a = !1,
830
- openOnArrowKeyDown: m = !1,
683
+ enabled: t = !0,
684
+ listRef: r,
685
+ activeIndex: o,
686
+ onNavigate: a,
687
+ loop: i = !0,
688
+ orientation: u = "vertical",
689
+ cols: p = 1,
690
+ rtl: l = !1,
691
+ focusItemOnOpen: m = !1,
692
+ openOnArrowKeyDown: f = !1,
831
693
  nested: d = !1,
832
- nodeId: l = null,
833
- getItemHasSubmenu: p,
834
- getItemExpanded: y,
835
- onOpenSubmenu: P,
836
- onCloseSubmenu: F,
837
- openSubmenuKey: E = u ? "ArrowLeft" : "ArrowRight",
838
- closeSubmenuKey: M = u ? "ArrowRight" : "ArrowLeft",
694
+ nodeId: s = null,
695
+ getItemHasSubmenu: c,
696
+ getItemExpanded: g,
697
+ onOpenSubmenu: h,
698
+ onCloseSubmenu: O,
699
+ openSubmenuKey: E = l ? "ArrowLeft" : "ArrowRight",
700
+ closeSubmenuKey: T = l ? "ArrowRight" : "ArrowLeft",
839
701
  restoreFocusOnClose: I = d
840
- } = o, L = D(() => {
841
- var g;
842
- return (g = t == null ? void 0 : t.current) == null ? void 0 : g.filter(Boolean);
843
- }, [t]), B = D((g) => {
844
- if (!(g instanceof Element))
845
- return null;
846
- const b = g.closest("[data-index]");
847
- if (!b)
848
- return null;
849
- const A = Number(b.dataset.index);
850
- return Number.isFinite(A) ? A : null;
851
- }, []), T = D(() => {
852
- const g = I && Ce(I) ? I.current : e.elements.reference;
853
- !I || !g || requestAnimationFrame(() => g.focus());
854
- }, [e.elements, I]), N = D((g, b) => {
855
- var z;
856
- const A = L();
857
- if (!(A != null && A.length))
858
- return;
859
- const C = A.indexOf(document.activeElement);
860
- let v = (b ?? n ?? (C >= 0 ? C : -1)) + g;
861
- s ? v = (v + A.length) % A.length : v = Math.max(0, Math.min(A.length - 1, v)), f(v), (z = A[v]) == null || z.focus();
862
- }, [n, L, s, f]);
863
- K(() => {
864
- if (!r || !e.open || !(a === !0 || a === "auto"))
865
- return;
866
- const g = n ?? 0;
867
- let b = 0, A = !1, C = 0;
868
- const O = () => {
869
- var Y;
870
- if (A)
871
- return;
872
- const v = L();
873
- if (!(v != null && v.length)) {
874
- C < 4 && (C += 1, b = requestAnimationFrame(O));
702
+ } = n, R = b(() => r?.current?.filter(Boolean), [r]), L = b((y) => {
703
+ if (!(y instanceof Element)) return null;
704
+ const D = y.closest("[data-index]");
705
+ if (!D) return null;
706
+ const v = Number(D.dataset.index);
707
+ return Number.isFinite(v) ? v : null;
708
+ }, []), k = b(() => {
709
+ const y = I && Ce(I) ? I.current : e.elements.reference;
710
+ !I || !y || requestAnimationFrame(() => y.focus());
711
+ }, [e.elements, I]), z = b((y, D) => {
712
+ const v = R();
713
+ if (!v?.length) return;
714
+ const M = v.indexOf(document.activeElement);
715
+ let C = (D ?? o ?? (M >= 0 ? M : -1)) + y;
716
+ i ? C = (C + v.length) % v.length : C = Math.max(0, Math.min(v.length - 1, C)), a(C), v[C]?.focus();
717
+ }, [o, R, i, a]);
718
+ N(() => {
719
+ if (!t || !e.open || !(m === !0 || m === "auto")) return;
720
+ const y = o ?? 0;
721
+ let D = 0, v = !1, M = 0;
722
+ const B = () => {
723
+ if (v) return;
724
+ const C = R();
725
+ if (!C?.length) {
726
+ M < 4 && (M += 1, D = requestAnimationFrame(B));
875
727
  return;
876
728
  }
877
- const z = v.indexOf(document.activeElement);
878
- if (z >= 0) {
879
- f(z);
729
+ const q = C.indexOf(document.activeElement);
730
+ if (q >= 0) {
731
+ a(q);
880
732
  return;
881
733
  }
882
- f(g), (Y = v[g]) == null || Y.focus();
734
+ a(y), C[y]?.focus();
883
735
  };
884
- return b = requestAnimationFrame(O), () => {
885
- A = !0, cancelAnimationFrame(b);
736
+ return D = requestAnimationFrame(B), () => {
737
+ v = !0, cancelAnimationFrame(D);
886
738
  };
887
- }, [n, e.open, r, a, L, f]);
888
- const U = D((g) => {
889
- const b = c === "vertical" || c === "both", A = c === "horizontal" || c === "both";
890
- return b && g === "ArrowDown" ? i : b && g === "ArrowUp" ? -i : A && g === (u ? "ArrowLeft" : "ArrowRight") ? 1 : A && g === (u ? "ArrowRight" : "ArrowLeft") ? -1 : 0;
891
- }, [i, c, u]), j = D((g) => {
892
- var C, O;
893
- const b = B(g.target) ?? n;
894
- if (d && g.key === E && b != null && (p != null && p(b))) {
895
- g.preventDefault(), f(b), P == null || P(b);
739
+ }, [o, e.open, t, m, R, a]);
740
+ const V = b((y) => {
741
+ const D = u === "vertical" || u === "both", v = u === "horizontal" || u === "both";
742
+ return D && y === "ArrowDown" ? p : D && y === "ArrowUp" ? -p : v && y === (l ? "ArrowLeft" : "ArrowRight") ? 1 : v && y === (l ? "ArrowRight" : "ArrowLeft") ? -1 : 0;
743
+ }, [p, u, l]), Q = b((y) => {
744
+ const D = L(y.target) ?? o;
745
+ if (d && y.key === E && D != null && c?.(D)) {
746
+ y.preventDefault(), a(D), h?.(D);
896
747
  return;
897
748
  }
898
- if (d && F && g.key === M) {
899
- g.preventDefault(), F == null || F(), T();
749
+ if (d && O && y.key === T) {
750
+ y.preventDefault(), O?.(), k();
900
751
  return;
901
752
  }
902
- const A = U(g.key);
903
- if (A)
904
- g.preventDefault(), N(A, b);
905
- else if (g.key === "Home") {
906
- const v = L();
907
- if (!(v != null && v.length))
908
- return;
909
- g.preventDefault(), f(0), (C = v[0]) == null || C.focus();
910
- } else if (g.key === "End") {
911
- const v = L();
912
- if (!(v != null && v.length))
913
- return;
914
- g.preventDefault(), f(v.length - 1), (O = v[v.length - 1]) == null || O.focus();
753
+ const v = V(y.key);
754
+ if (v)
755
+ y.preventDefault(), z(v, D);
756
+ else if (y.key === "Home") {
757
+ const M = R();
758
+ if (!M?.length) return;
759
+ y.preventDefault(), a(0), M[0]?.focus();
760
+ } else if (y.key === "End") {
761
+ const M = R();
762
+ if (!M?.length) return;
763
+ y.preventDefault(), a(M.length - 1), M[M.length - 1]?.focus();
915
764
  }
916
765
  }, [
917
- n,
918
- M,
766
+ o,
919
767
  T,
920
- U,
921
- p,
922
- B,
768
+ k,
769
+ V,
770
+ c,
923
771
  L,
924
- N,
772
+ R,
773
+ z,
925
774
  d,
926
- F,
927
- f,
928
- P,
775
+ O,
776
+ a,
777
+ h,
929
778
  E
930
779
  ]);
931
- return V(() => ({
932
- getReferenceProps(g = {}) {
933
- return !r || !m ? g : {
934
- ...g,
935
- onKeyDown: k(g.onKeyDown, (b) => {
936
- if (e.open || !U(b.key))
937
- return;
938
- const C = L();
939
- if (b.preventDefault(), C != null && C.length) {
940
- const O = b.key === "ArrowUp" || b.key === (u ? "ArrowRight" : "ArrowLeft") ? C.length - 1 : 0;
941
- f(O);
942
- } else
943
- b.key !== "ArrowUp" && b.key !== (u ? "ArrowRight" : "ArrowLeft") && f(0);
780
+ return $(() => ({
781
+ getReferenceProps(y = {}) {
782
+ return !t || !f ? y : {
783
+ ...y,
784
+ onKeyDown: S(y.onKeyDown, (D) => {
785
+ if (e.open || !V(D.key)) return;
786
+ const M = R();
787
+ if (D.preventDefault(), M?.length) {
788
+ const B = D.key === "ArrowUp" || D.key === (l ? "ArrowRight" : "ArrowLeft") ? M.length - 1 : 0;
789
+ a(B);
790
+ } else D.key !== "ArrowUp" && D.key !== (l ? "ArrowRight" : "ArrowLeft") && a(0);
944
791
  e.setOpen(!0, "list-navigation");
945
792
  })
946
793
  };
947
794
  },
948
- getFloatingProps(g = {}) {
949
- return r ? {
950
- ...g,
951
- "data-floating-node-id": l ?? g["data-floating-node-id"],
952
- "aria-activedescendant": n != null ? `floating-item-${n}` : void 0,
953
- onKeyDown: k(g.onKeyDown, j)
954
- } : g;
795
+ getFloatingProps(y = {}) {
796
+ return t ? {
797
+ ...y,
798
+ "data-floating-node-id": s ?? y["data-floating-node-id"],
799
+ "aria-activedescendant": o != null ? `floating-item-${o}` : void 0,
800
+ onKeyDown: S(y.onKeyDown, Q)
801
+ } : y;
955
802
  },
956
- getItemProps(g = {}) {
957
- const b = g["data-index"], A = typeof b == "number" ? b : Number(b), C = Number.isFinite(A) ? p == null ? void 0 : p(A) : !1;
803
+ getItemProps(y = {}) {
804
+ const D = y["data-index"], v = typeof D == "number" ? D : Number(D), M = Number.isFinite(v) ? c?.(v) : !1;
958
805
  return {
959
- ...g,
960
- id: typeof b == "number" ? `floating-item-${b}` : g.id,
961
- tabIndex: b === n ? 0 : -1,
962
- "data-active": b === n ? "" : void 0,
963
- "aria-haspopup": C ? "menu" : g["aria-haspopup"],
964
- "aria-expanded": C ? String((y == null ? void 0 : y(A)) ?? !1) : g["aria-expanded"],
965
- onKeyDown: k(g.onKeyDown, j)
806
+ ...y,
807
+ id: typeof D == "number" ? `floating-item-${D}` : y.id,
808
+ tabIndex: D === o ? 0 : -1,
809
+ "data-active": D === o ? "" : void 0,
810
+ "aria-haspopup": M ? "menu" : y["aria-haspopup"],
811
+ "aria-expanded": M ? String(g?.(v) ?? !1) : y["aria-expanded"],
812
+ onKeyDown: S(y.onKeyDown, Q)
966
813
  };
967
814
  }
968
815
  }), [
969
- n,
816
+ o,
970
817
  e,
971
- r,
972
- y,
973
- p,
974
- j,
975
- U,
976
- L,
977
- l,
818
+ t,
819
+ g,
820
+ c,
821
+ Q,
822
+ V,
823
+ R,
824
+ s,
825
+ a,
978
826
  f,
979
- m,
980
- u
827
+ l
981
828
  ]);
982
829
  }
983
- function Po(e, o) {
830
+ function dt(e, n) {
984
831
  const {
985
- enabled: r = !0,
986
- labelsRef: t,
987
- listRef: n,
988
- activeIndex: f,
989
- onMatch: s,
990
- resetMs: c = 750,
991
- selectedIndex: i = null,
992
- onTypingChange: u,
993
- findMatch: a
994
- } = o, m = R(""), d = R(null);
995
- return K(() => () => {
832
+ enabled: t = !0,
833
+ labelsRef: r,
834
+ listRef: o,
835
+ activeIndex: a,
836
+ onMatch: i,
837
+ resetMs: u = 750,
838
+ selectedIndex: p = null,
839
+ onTypingChange: l,
840
+ findMatch: m
841
+ } = n, f = A(""), d = A(null);
842
+ return N(() => () => {
996
843
  d.current && window.clearTimeout(d.current);
997
- }, []), V(() => ({
998
- getFloatingProps(l = {}) {
999
- return r ? {
1000
- ...l,
1001
- onKeyDown: k(l.onKeyDown, (p) => {
1002
- var E, M;
1003
- if (p.key.length !== 1 || p.altKey || p.ctrlKey || p.metaKey)
1004
- return;
1005
- m.current += p.key.toLocaleLowerCase(), u == null || u(!0), d.current && window.clearTimeout(d.current), d.current = window.setTimeout(() => {
1006
- m.current = "", u == null || u(!1);
1007
- }, c);
1008
- const y = t.current.map((I) => I.toLocaleLowerCase()), P = a ? a(y, m.current, f) : (() => {
1009
- const I = (f ?? i) == null ? 0 : (f ?? i) + 1;
1010
- return y.map((B, T) => (I + T) % y.length).find((B) => {
1011
- var T;
1012
- return (T = y[B]) == null ? void 0 : T.startsWith(m.current);
1013
- }) ?? null;
1014
- })(), F = P == null || P < 0 ? null : P;
1015
- F != null && (p.preventDefault(), s(F), (M = (E = n == null ? void 0 : n.current) == null ? void 0 : E[F]) == null || M.focus(), e.setOpen(!0, "typeahead"));
844
+ }, []), $(() => ({
845
+ getFloatingProps(s = {}) {
846
+ return t ? {
847
+ ...s,
848
+ onKeyDown: S(s.onKeyDown, (c) => {
849
+ if (c.key.length !== 1 || c.altKey || c.ctrlKey || c.metaKey) return;
850
+ f.current += c.key.toLocaleLowerCase(), l?.(!0), d.current && window.clearTimeout(d.current), d.current = window.setTimeout(() => {
851
+ f.current = "", l?.(!1);
852
+ }, u);
853
+ const g = r.current.map((E) => E.toLocaleLowerCase()), h = m ? m(g, f.current, a) : (() => {
854
+ const E = (a ?? p) == null ? 0 : (a ?? p) + 1;
855
+ return g.map((I, R) => (E + R) % g.length).find((I) => g[I]?.startsWith(f.current)) ?? null;
856
+ })(), O = h == null || h < 0 ? null : h;
857
+ O != null && (c.preventDefault(), i(O), o?.current?.[O]?.focus(), e.setOpen(!0, "typeahead"));
1016
858
  })
1017
- } : l;
859
+ } : s;
1018
860
  }
1019
- }), [f, e, r, a, t, n, s, u, c, i]);
861
+ }), [a, e, t, m, r, o, i, l, u, p]);
1020
862
  }
1021
- function bo(e, o = {}) {
1022
- const { duration: r = 160, initial: t, open: n, close: f } = o, [s, c] = H(e.open), [i, u] = H(e.open ? "open" : "unmounted"), a = ee(r, "open"), m = ee(r, "close");
1023
- return K(() => {
863
+ function pt(e, n = {}) {
864
+ const { duration: t = 160, initial: r, open: o, close: a } = n, [i, u] = H(e.open), [p, l] = H(e.open ? "open" : "unmounted"), m = J(t, "open"), f = J(t, "close");
865
+ return N(() => {
1024
866
  if (e.open) {
1025
- c(!0), u("initial");
1026
- const l = requestAnimationFrame(() => u("open"));
1027
- return () => cancelAnimationFrame(l);
867
+ u(!0), l("initial");
868
+ const s = requestAnimationFrame(() => l("open"));
869
+ return () => cancelAnimationFrame(s);
1028
870
  }
1029
- if (!s)
1030
- return;
1031
- u("close");
871
+ if (!i) return;
872
+ l("close");
1032
873
  const d = window.setTimeout(() => {
1033
- c(!1), u("unmounted");
1034
- }, m);
874
+ u(!1), l("unmounted");
875
+ }, f);
1035
876
  return () => window.clearTimeout(d);
1036
- }, [m, e.open, s]), {
1037
- isMounted: s,
1038
- status: i,
877
+ }, [f, e.open, i]), {
878
+ isMounted: i,
879
+ status: p,
1039
880
  styles: {
1040
- transition: `opacity ${i === "close" ? m : a}ms ease, transform ${i === "close" ? m : a}ms ease`,
1041
- ...i === "initial" ? { opacity: 0, transform: "scale(0.98)", ...t } : null,
1042
- ...i === "open" ? { opacity: 1, transform: "scale(1)", ...n } : null,
1043
- ...i === "close" ? { opacity: 0, transform: "scale(0.98)", ...f } : null
881
+ transition: `opacity ${p === "close" ? f : m}ms ease, transform ${p === "close" ? f : m}ms ease`,
882
+ ...p === "initial" ? { opacity: 0, transform: "scale(0.98)", ...r } : null,
883
+ ...p === "open" ? { opacity: 1, transform: "scale(1)", ...o } : null,
884
+ ...p === "close" ? { opacity: 0, transform: "scale(0.98)", ...a } : null
1044
885
  }
1045
886
  };
1046
887
  }
1047
- function Do(e, o = {}) {
1048
- const { enabled: r = !0, axis: t = "both" } = o, n = R({ x: 0, y: 0 });
1049
- return V(() => ({
1050
- getReferenceProps(f = {}) {
1051
- return r ? {
1052
- ...f,
1053
- onPointerMove: k(f.onPointerMove, (s) => {
1054
- n.current = {
1055
- x: t === "y" ? n.current.x : s.clientX,
1056
- y: t === "x" ? n.current.y : s.clientY
888
+ function gt(e, n = {}) {
889
+ const { enabled: t = !0, axis: r = "both" } = n, o = A({ x: 0, y: 0 });
890
+ return $(() => ({
891
+ getReferenceProps(a = {}) {
892
+ return t ? {
893
+ ...a,
894
+ onPointerMove: S(a.onPointerMove, (i) => {
895
+ o.current = {
896
+ x: r === "y" ? o.current.x : i.clientX,
897
+ y: r === "x" ? o.current.y : i.clientY
1057
898
  }, e.refs.setPositionReference({
1058
899
  contextElement: e.elements.reference || void 0,
1059
- getBoundingClientRect: () => new DOMRect(n.current.x, n.current.y, 0, 0)
900
+ getBoundingClientRect: () => new DOMRect(o.current.x, o.current.y, 0, 0)
1060
901
  }), e.update();
1061
902
  })
1062
- } : f;
903
+ } : a;
1063
904
  }
1064
- }), [t, e, r]);
905
+ }), [r, e, t]);
1065
906
  }
1066
- const Ne = ae(null);
1067
- function vo({ children: e, elementsRef: o, labelsRef: r }) {
1068
- const t = R([]), n = R([]), f = V(() => ({
1069
- elementsRef: o || t,
1070
- labelsRef: r || n
1071
- }), [o, r]);
1072
- return /* @__PURE__ */ S.createElement(Ne.Provider, { value: f }, e);
907
+ const Se = ae(null);
908
+ function yt({ children: e, elementsRef: n, labelsRef: t }) {
909
+ const r = A([]), o = A([]), a = $(() => ({
910
+ elementsRef: n || r,
911
+ labelsRef: t || o
912
+ }), [n, t]);
913
+ return /* @__PURE__ */ F.createElement(Se.Provider, { value: a }, e);
1073
914
  }
1074
- function ho() {
1075
- return re(Ne);
915
+ function wt() {
916
+ return ee(Se);
1076
917
  }
1077
- const Ao = S.forwardRef(function({
1078
- context: o,
1079
- width: r = 14,
1080
- height: t = 8,
1081
- fill: n = "currentColor",
1082
- stroke: f,
1083
- strokeWidth: s = 1,
1084
- style: c,
1085
- ...i
1086
- }, u) {
1087
- const a = o.coords.arrow, m = o.coords.placement.split("-")[0], d = {
1088
- top: `M0 ${s / 2} L${r / 2} ${t - s / 2} L${r} ${s / 2}`,
1089
- bottom: `M0 ${t - s / 2} L${r / 2} ${s / 2} L${r} ${t - s / 2}`,
1090
- left: `M${s / 2} ${s / 2} L${r - s / 2} ${t / 2} L${s / 2} ${t - s / 2}`,
1091
- right: `M${r - s / 2} ${s / 2} L${s / 2} ${t / 2} L${r - s / 2} ${t - s / 2}`
1092
- }, l = {
918
+ const xt = F.forwardRef(function({
919
+ context: n,
920
+ width: t = 14,
921
+ height: r = 8,
922
+ fill: o = "currentColor",
923
+ stroke: a,
924
+ strokeWidth: i = 1,
925
+ style: u,
926
+ ...p
927
+ }, l) {
928
+ const m = n.coords.arrow, f = n.coords.placement.split("-")[0], d = {
929
+ top: `M0 ${i / 2} L${t / 2} ${r - i / 2} L${t} ${i / 2}`,
930
+ bottom: `M0 ${r - i / 2} L${t / 2} ${i / 2} L${t} ${r - i / 2}`,
931
+ left: `M${i / 2} ${i / 2} L${t - i / 2} ${r / 2} L${i / 2} ${r - i / 2}`,
932
+ right: `M${t - i / 2} ${i / 2} L${i / 2} ${r / 2} L${t - i / 2} ${r - i / 2}`
933
+ }, s = {
1093
934
  position: "absolute",
1094
- width: r,
1095
- height: t,
935
+ width: t,
936
+ height: r,
1096
937
  pointerEvents: "none",
1097
938
  overflow: "visible",
1098
- left: typeof (a == null ? void 0 : a.x) == "number" ? Math.round(a.x) : void 0,
1099
- top: typeof (a == null ? void 0 : a.y) == "number" ? Math.round(a.y) : void 0,
1100
- transform: a != null && a.centerOffset ? `translate(${Math.round(a.centerOffset * (m === "top" || m === "bottom" ? 0.15 : 0))}px, ${Math.round(a.centerOffset * (m === "left" || m === "right" ? 0.15 : 0))}px)` : void 0
939
+ left: typeof m?.x == "number" ? Math.round(m.x) : void 0,
940
+ top: typeof m?.y == "number" ? Math.round(m.y) : void 0,
941
+ transform: m?.centerOffset ? `translate(${Math.round(m.centerOffset * (f === "top" || f === "bottom" ? 0.15 : 0))}px, ${Math.round(m.centerOffset * (f === "left" || f === "right" ? 0.15 : 0))}px)` : void 0
1101
942
  };
1102
- return m === "top" && (l.top = void 0, l.bottom = -t + s), m === "bottom" && (l.top = -t + s), m === "left" && (l.left = void 0, l.right = -r + s), m === "right" && (l.left = -r + s, l.top = typeof (a == null ? void 0 : a.y) == "number" ? Math.round(a.y) : void 0), /* @__PURE__ */ S.createElement(
943
+ return f === "top" && (s.top = void 0, s.bottom = -r + i), f === "bottom" && (s.top = -r + i), f === "left" && (s.left = void 0, s.right = -t + i), f === "right" && (s.left = -t + i, s.top = typeof m?.y == "number" ? Math.round(m.y) : void 0), /* @__PURE__ */ F.createElement(
1103
944
  "div",
1104
945
  {
1105
- ...i,
1106
- ref: xe(o.refs.setArrow, u),
946
+ ...p,
947
+ ref: ye(n.refs.setArrow, l),
1107
948
  "aria-hidden": "true",
1108
- "data-side": m,
1109
- "data-center-offset": typeof (a == null ? void 0 : a.centerOffset) == "number" ? String(Math.round(a.centerOffset)) : void 0,
1110
- style: { ...l, ...c }
949
+ "data-side": f,
950
+ "data-center-offset": typeof m?.centerOffset == "number" ? String(Math.round(m.centerOffset)) : void 0,
951
+ style: { ...s, ...u }
1111
952
  },
1112
- /* @__PURE__ */ S.createElement(
953
+ /* @__PURE__ */ F.createElement(
1113
954
  "svg",
1114
955
  {
1115
- width: r,
1116
- height: t,
1117
- viewBox: `0 0 ${r} ${t}`,
956
+ width: t,
957
+ height: r,
958
+ viewBox: `0 0 ${t} ${r}`,
1118
959
  style: { display: "block", overflow: "visible" }
1119
960
  },
1120
- /* @__PURE__ */ S.createElement(
961
+ /* @__PURE__ */ F.createElement(
1121
962
  "path",
1122
963
  {
1123
- d: d[m] || d.bottom,
1124
- fill: n,
1125
- stroke: f,
1126
- strokeWidth: f ? s : 0,
964
+ d: d[f] || d.bottom,
965
+ fill: o,
966
+ stroke: a,
967
+ strokeWidth: a ? i : 0,
1127
968
  strokeLinejoin: "round"
1128
969
  }
1129
970
  )
1130
971
  )
1131
972
  );
1132
973
  });
1133
- function Eo({ children: e, root: o }) {
1134
- const [r, t] = H(!1);
1135
- return K(() => t(!0), []), r ? _e(e, o || document.body) : null;
974
+ function bt({ children: e, root: n }) {
975
+ const [t, r] = H(!1);
976
+ return N(() => r(!0), []), t ? Ue(e, n || document.body) : null;
1136
977
  }
1137
- function Io({ lockScroll: e = !1, style: o, ...r }) {
1138
- return K(() => {
1139
- if (!e)
1140
- return;
1141
- const t = document.body.style.overflow;
978
+ const Xe = F.forwardRef(function({ lockScroll: n = !1, style: t, ...r }, o) {
979
+ return N(() => {
980
+ if (!n) return;
981
+ const a = document.body.style.overflow;
1142
982
  return document.body.style.overflow = "hidden", () => {
1143
- document.body.style.overflow = t;
983
+ document.body.style.overflow = a;
1144
984
  };
1145
- }, [e]), /* @__PURE__ */ S.createElement("div", { ...r, style: { position: "fixed", inset: 0, ...o } });
1146
- }
1147
- function Ro({
985
+ }, [n]), /* @__PURE__ */ F.createElement("div", { ...r, ref: o, style: { position: "fixed", inset: 0, ...t } });
986
+ });
987
+ Xe.displayName = "FloatingOverlay";
988
+ function Dt({
1148
989
  context: e,
1149
- children: o,
1150
- modal: r = !1,
1151
- initialFocus: t = !0,
1152
- returnFocus: n = !0,
1153
- guards: f = !0,
1154
- disabled: s = !1,
1155
- closeOnFocusOut: c = !r,
1156
- outsideElementsInert: i = !1,
1157
- visuallyHiddenDismiss: u = !1
990
+ children: n,
991
+ modal: t = !1,
992
+ initialFocus: r = !0,
993
+ returnFocus: o = !0,
994
+ guards: a = !0,
995
+ disabled: i = !1,
996
+ closeOnFocusOut: u = !t,
997
+ outsideElementsInert: p = !1,
998
+ visuallyHiddenDismiss: l = !1
1158
999
  }) {
1159
- const a = we(), m = R(null), d = R(null), l = R(null), p = R(null), y = R(!1), P = D(() => {
1160
- var E;
1161
- return typeof t == "number" ? le(e.elements.floating)[t] || null : typeof t == "object" && t && "current" in t ? t.current : ((E = e.elements.floating) == null ? void 0 : E.querySelector("[autofocus]")) || le(e.elements.floating)[0] || null;
1162
- }, [e.elements.floating, t]), F = D((E = !1) => {
1163
- const M = le(e.elements.floating), I = E ? M[M.length - 1] : M[0];
1164
- I == null || I.focus();
1000
+ const m = we(), f = A(null), d = A(null), s = A(null), c = A(null), g = A(!1), h = b(() => typeof r == "number" ? se(e.elements.floating)[r] || null : typeof r == "object" && r && "current" in r ? r.current : e.elements.floating?.querySelector("[autofocus]") || se(e.elements.floating)[0] || null, [e.elements.floating, r]), O = b((E = !1) => {
1001
+ const T = se(e.elements.floating);
1002
+ (E ? T[T.length - 1] : T[0])?.focus();
1165
1003
  }, [e.elements.floating]);
1166
- return Le(() => {
1167
- var E;
1168
- if (!(!e.open || s))
1169
- return y.current = !1, p.current = document.activeElement, t && (y.current = !0, (E = P()) == null || E.focus()), () => {
1170
- var M;
1171
- y.current = !1, n && (Ce(n) ? (M = n.current) == null || M.focus() : p.current instanceof HTMLElement && p.current.focus());
1004
+ return Te(() => {
1005
+ if (!(!e.open || i))
1006
+ return g.current = !1, c.current = document.activeElement, r && (g.current = !0, h()?.focus()), () => {
1007
+ g.current = !1, o && (Ce(o) ? o.current?.focus() : c.current instanceof HTMLElement && c.current.focus());
1172
1008
  };
1173
- }, [e.open, s, t, P, n]), K(() => {
1174
- if (s || !e.open)
1175
- return;
1176
- const E = (M) => {
1177
- var j, g, b;
1178
- const I = M.target;
1179
- if (!I)
1180
- return;
1181
- const L = Q(m.current, I) || Q(e.elements.floating, I), B = Q(e.elements.reference, I), T = ((j = e.elements.floating) == null ? void 0 : j.dataset.floatingNodeId) || ((g = e.elements.reference) == null ? void 0 : g.dataset.floatingReferenceId) || null, N = Se(I), U = !!T && !!N && ke(a, N, T);
1182
- if (!(L || B || U)) {
1183
- if (r) {
1184
- if (!y.current && t) {
1185
- y.current = !0, (b = P()) == null || b.focus();
1009
+ }, [e.open, i, r, h, o]), N(() => {
1010
+ if (i || !e.open) return;
1011
+ const E = (T) => {
1012
+ const I = T.target;
1013
+ if (!I) return;
1014
+ const R = j(f.current, I) || j(e.elements.floating, I), L = j(e.elements.reference, I), k = e.elements.floating?.dataset.floatingNodeId || e.elements.reference?.dataset.floatingReferenceId || null, z = Fe(I), V = !!k && !!z && Le(m, z, k);
1015
+ if (!(R || L || V)) {
1016
+ if (t) {
1017
+ if (!g.current && r) {
1018
+ g.current = !0, h()?.focus();
1186
1019
  return;
1187
1020
  }
1188
- F();
1021
+ O();
1189
1022
  return;
1190
1023
  }
1191
- c && e.setOpen(!1, "dismiss");
1024
+ u && e.setOpen(!1, "dismiss");
1192
1025
  }
1193
1026
  };
1194
1027
  return document.addEventListener("focusin", E), () => {
1195
1028
  document.removeEventListener("focusin", E);
1196
1029
  };
1197
- }, [c, e, e.open, s, F, t, r, P, a]), K(() => {
1198
- var B;
1199
- if (!i || !r || !e.open || s)
1200
- return;
1201
- const E = ((B = m.current) == null ? void 0 : B.parentElement) || document.body, M = Array.from(E.children), I = new Set(
1030
+ }, [u, e, e.open, i, O, r, t, h, m]), N(() => {
1031
+ if (!p || !t || !e.open || i) return;
1032
+ const E = f.current?.parentElement || document.body, T = Array.from(E.children), I = new Set(
1202
1033
  [
1203
- m.current,
1034
+ f.current,
1204
1035
  e.elements.floating,
1205
1036
  d.current,
1206
- l.current
1037
+ s.current
1207
1038
  ].filter(Boolean)
1208
- ), L = /* @__PURE__ */ new Map();
1209
- return M.forEach((T) => {
1210
- Array.from(I).some((N) => N === T || N.contains(T) || T.contains(N)) || (L.set(T, T.getAttribute("aria-hidden")), T.setAttribute("aria-hidden", "true"));
1039
+ ), R = /* @__PURE__ */ new Map();
1040
+ return T.forEach((L) => {
1041
+ Array.from(I).some((k) => k === L || k.contains(L) || L.contains(k)) || (R.set(L, L.getAttribute("aria-hidden")), L.setAttribute("aria-hidden", "true"));
1211
1042
  }), () => {
1212
- L.forEach((T, N) => {
1213
- T == null ? N.removeAttribute("aria-hidden") : N.setAttribute("aria-hidden", T);
1043
+ R.forEach((L, k) => {
1044
+ L == null ? k.removeAttribute("aria-hidden") : k.setAttribute("aria-hidden", L);
1214
1045
  });
1215
1046
  };
1216
- }, [e.elements.floating, e.open, s, r, i]), s ? /* @__PURE__ */ S.createElement(S.Fragment, null, o) : /* @__PURE__ */ S.createElement(S.Fragment, null, r && f ? /* @__PURE__ */ S.createElement("span", { ref: d, tabIndex: 0, "data-floating-focus-guard": "", "aria-hidden": "true", onFocus: () => F(!0) }) : null, /* @__PURE__ */ S.createElement(
1047
+ }, [e.elements.floating, e.open, i, t, p]), i ? /* @__PURE__ */ F.createElement(F.Fragment, null, n) : /* @__PURE__ */ F.createElement(F.Fragment, null, t && a ? /* @__PURE__ */ F.createElement("span", { ref: d, tabIndex: 0, "data-floating-focus-guard": "", "aria-hidden": "true", onFocus: () => O(!0) }) : null, /* @__PURE__ */ F.createElement(
1217
1048
  "div",
1218
1049
  {
1219
- ref: m,
1220
- role: r ? "dialog" : void 0,
1221
- "aria-modal": r ? "true" : void 0,
1050
+ ref: f,
1051
+ role: t ? "dialog" : void 0,
1052
+ "aria-modal": t ? "true" : void 0,
1222
1053
  onKeyDown: (E) => {
1223
- if (!r || E.key !== "Tab")
1224
- return;
1225
- const M = le(e.elements.floating);
1226
- if (!M.length)
1227
- return;
1228
- const I = M[0], L = M[M.length - 1];
1229
- E.shiftKey && document.activeElement === I ? (E.preventDefault(), L.focus()) : !E.shiftKey && document.activeElement === L && (E.preventDefault(), I.focus());
1054
+ if (!t || E.key !== "Tab") return;
1055
+ const T = se(e.elements.floating);
1056
+ if (!T.length) return;
1057
+ const I = T[0], R = T[T.length - 1];
1058
+ E.shiftKey && document.activeElement === I ? (E.preventDefault(), R.focus()) : !E.shiftKey && document.activeElement === R && (E.preventDefault(), I.focus());
1230
1059
  }
1231
1060
  },
1232
- u ? /* @__PURE__ */ S.createElement(
1061
+ l ? /* @__PURE__ */ F.createElement(
1233
1062
  "button",
1234
1063
  {
1235
1064
  type: "button",
@@ -1246,341 +1075,336 @@ function Ro({
1246
1075
  },
1247
1076
  onClick: () => e.setOpen(!1, "dismiss")
1248
1077
  },
1249
- typeof u == "string" ? u : "Dismiss"
1078
+ typeof l == "string" ? l : "Dismiss"
1250
1079
  ) : null,
1251
- o
1252
- ), r && f ? /* @__PURE__ */ S.createElement("span", { ref: l, tabIndex: 0, "data-floating-focus-guard": "", "aria-hidden": "true", onFocus: () => F(!1) }) : null);
1080
+ n
1081
+ ), t && a ? /* @__PURE__ */ F.createElement("span", { ref: s, tabIndex: 0, "data-floating-focus-guard": "", "aria-hidden": "true", onFocus: () => O(!1) }) : null);
1253
1082
  }
1254
- const Oe = ae(null), Ze = ae(null);
1255
- function Mo({ children: e }) {
1256
- const o = R([]), [r, t] = H(0), n = V(() => new EventTarget(), []), f = D((d) => (o.current = [...o.current.filter((l) => l.id !== d.id), d], t((l) => l + 1), () => {
1257
- o.current = o.current.filter((l) => l.id !== d.id), t((l) => l + 1);
1258
- }), []), s = D((d, l = {}) => {
1259
- n.dispatchEvent(new CustomEvent(d, { detail: l }));
1260
- }, [n]), c = D((d, l) => {
1261
- const p = l;
1262
- return n.addEventListener(d, p), () => {
1263
- n.removeEventListener(d, p);
1083
+ const Oe = ae(null), Ye = ae(null);
1084
+ function Pt({ children: e }) {
1085
+ const n = A([]), [t, r] = H(0), o = $(() => new EventTarget(), []), a = b((d) => (n.current = [...n.current.filter((s) => s.id !== d.id), d], r((s) => s + 1), () => {
1086
+ n.current = n.current.filter((s) => s.id !== d.id), r((s) => s + 1);
1087
+ }), []), i = b((d, s = {}) => {
1088
+ o.dispatchEvent(new CustomEvent(d, { detail: s }));
1089
+ }, [o]), u = b((d, s) => {
1090
+ const c = s;
1091
+ return o.addEventListener(d, c), () => {
1092
+ o.removeEventListener(d, c);
1264
1093
  };
1265
- }, [n]), i = D((d) => o.current.find((l) => l.id === d) || null, []), u = D((d) => o.current.filter((l) => (l.parentId ?? null) === (d ?? null)), []), a = D((d, l = "dismiss") => {
1266
- const p = (y) => {
1267
- o.current.filter((P) => P.parentId === y).forEach((P) => {
1268
- var F;
1269
- (F = P.setOpen) == null || F.call(P, !1, l), p(P.id);
1094
+ }, [o]), p = b((d) => n.current.find((s) => s.id === d) || null, []), l = b((d) => n.current.filter((s) => (s.parentId ?? null) === (d ?? null)), []), m = b((d, s = "dismiss") => {
1095
+ const c = (g) => {
1096
+ n.current.filter((h) => h.parentId === g).forEach((h) => {
1097
+ h.setOpen?.(!1, s), c(h.id);
1270
1098
  });
1271
1099
  };
1272
- p(d);
1273
- }, []), m = V(() => ({
1274
- nodes: o,
1275
- register: f,
1276
- events: n,
1277
- emit: s,
1278
- on: c,
1279
- getNode: i,
1280
- getChildren: u,
1281
- closeDescendants: a
1282
- }), [a, s, n, u, i, c, f, r]);
1283
- return /* @__PURE__ */ S.createElement(Oe.Provider, { value: m }, e);
1100
+ c(d);
1101
+ }, []), f = $(() => ({
1102
+ nodes: n,
1103
+ register: a,
1104
+ events: o,
1105
+ emit: i,
1106
+ on: u,
1107
+ getNode: p,
1108
+ getChildren: l,
1109
+ closeDescendants: m
1110
+ }), [m, i, o, l, p, u, a, t]);
1111
+ return /* @__PURE__ */ F.createElement(Oe.Provider, { value: f }, e);
1284
1112
  }
1285
1113
  function we() {
1286
- return re(Oe);
1114
+ return ee(Oe);
1287
1115
  }
1288
- function Je() {
1289
- return re(Ze);
1116
+ function Ze() {
1117
+ return ee(Ye);
1290
1118
  }
1291
- function Fo(e) {
1292
- const o = we(), r = Je(), t = R(`floating-node-${Math.random().toString(36).slice(2, 9)}`), n = R(void 0);
1293
- let f, s;
1294
- typeof e == "string" || e == null ? f = e ?? r : (f = e.parentId ?? r, s = e.setOpen), K(() => {
1295
- n.current = s;
1296
- }, [s]);
1297
- const c = D((u, a) => {
1298
- var m;
1299
- (m = n.current) == null || m.call(n, u, a);
1300
- }, []), i = o == null ? void 0 : o.register;
1301
- return K(() => i == null ? void 0 : i({ id: t.current, parentId: f, setOpen: c }), [c, f, i]), t.current;
1119
+ function ht(e) {
1120
+ const n = we(), t = Ze(), r = A(`floating-node-${Math.random().toString(36).slice(2, 9)}`), o = A(void 0);
1121
+ let a, i;
1122
+ typeof e == "string" || e == null ? a = e ?? t : (a = e.parentId ?? t, i = e.setOpen), N(() => {
1123
+ o.current = i;
1124
+ }, [i]);
1125
+ const u = b((l, m) => {
1126
+ o.current?.(l, m);
1127
+ }, []), p = n?.register;
1128
+ return N(() => p?.({ id: r.current, parentId: a, setOpen: u }), [u, a, p]), r.current;
1302
1129
  }
1303
- const Pe = ae(null);
1304
- function To({ children: e, delay: o = 250, closeDelay: r }) {
1305
- const t = R(null), [n, f] = H(null), [s, c] = H(!1), i = R(null), u = ee(o, "open"), a = r ?? (ee(o, "close") || 120), m = D(() => {
1306
- t.current && (window.clearTimeout(t.current), t.current = null);
1130
+ const xe = ae(null);
1131
+ function vt({ children: e, delay: n = 250, closeDelay: t }) {
1132
+ const r = A(null), [o, a] = H(null), [i, u] = H(!1), p = A(null), l = J(n, "open"), m = t ?? (J(n, "close") || 120), f = b(() => {
1133
+ r.current && (window.clearTimeout(r.current), r.current = null);
1307
1134
  }, []);
1308
- K(() => {
1309
- i.current = n;
1310
- }, [n]);
1311
- const d = D((y) => {
1312
- m(), i.current = y, f(y), c(!0);
1313
- }, [m]), l = D((y) => {
1314
- m(), t.current = window.setTimeout(() => {
1315
- (i.current === y || i.current == null) && (i.current = null, f(null), c(!1)), t.current = null;
1316
- }, a);
1317
- }, [m, a]);
1318
- K(() => m, [m]);
1319
- const p = V(() => ({
1320
- delay: u,
1321
- closeDelay: a,
1322
- timeoutRef: t,
1323
- currentId: n,
1324
- currentIdRef: i,
1325
- setCurrentId: f,
1326
- instantPhase: s,
1327
- setInstantPhase: c,
1135
+ N(() => {
1136
+ p.current = o;
1137
+ }, [o]);
1138
+ const d = b((g) => {
1139
+ f(), p.current = g, a(g), u(!0);
1140
+ }, [f]), s = b((g) => {
1141
+ f(), r.current = window.setTimeout(() => {
1142
+ (p.current === g || p.current == null) && (p.current = null, a(null), u(!1)), r.current = null;
1143
+ }, m);
1144
+ }, [f, m]);
1145
+ N(() => f, [f]);
1146
+ const c = $(() => ({
1147
+ delay: l,
1148
+ closeDelay: m,
1149
+ timeoutRef: r,
1150
+ currentId: o,
1151
+ currentIdRef: p,
1152
+ setCurrentId: a,
1153
+ instantPhase: i,
1154
+ setInstantPhase: u,
1328
1155
  beginInstantPhase: d,
1329
- scheduleInstantPhaseReset: l,
1330
- cancelInstantPhaseReset: m
1156
+ scheduleInstantPhaseReset: s,
1157
+ cancelInstantPhaseReset: f
1331
1158
  }), [
1332
1159
  d,
1160
+ f,
1161
+ o,
1162
+ i,
1163
+ l,
1333
1164
  m,
1334
- n,
1335
- s,
1336
- u,
1337
- a,
1338
- l
1165
+ s
1339
1166
  ]);
1340
- return /* @__PURE__ */ S.createElement(Pe.Provider, { value: p }, e);
1167
+ return /* @__PURE__ */ F.createElement(xe.Provider, { value: c }, e);
1341
1168
  }
1342
- function Lo() {
1343
- const e = re(Pe);
1169
+ function At() {
1170
+ const e = ee(xe);
1344
1171
  return e ? {
1345
1172
  ...e,
1346
1173
  isInstantPhase: e.instantPhase
1347
1174
  } : null;
1348
1175
  }
1349
- const Co = S.forwardRef(function({ children: o, orientation: r = "vertical", loop: t = !0, cols: n = 1, rtl: f = !1, ...s }, c) {
1350
- const i = R(null);
1351
- return /* @__PURE__ */ S.createElement(
1176
+ const It = F.forwardRef(function({ children: n, orientation: t = "vertical", loop: r = !0, cols: o = 1, rtl: a = !1, ...i }, u) {
1177
+ const p = A(null);
1178
+ return /* @__PURE__ */ F.createElement(
1352
1179
  "div",
1353
1180
  {
1354
- ...s,
1355
- ref: xe(i, c),
1356
- role: s.role || "group",
1357
- onKeyDown: k(s.onKeyDown, (u) => {
1358
- var P, F;
1359
- const a = Array.from(((P = i.current) == null ? void 0 : P.querySelectorAll("[data-composite-item]")) || []);
1360
- if (!a.length)
1361
- return;
1362
- const m = a.indexOf(document.activeElement), d = r === "vertical" || r === "both", l = r === "horizontal" || r === "both";
1363
- let p = 0;
1364
- if (d && u.key === "ArrowDown" ? p = n : d && u.key === "ArrowUp" ? p = -n : l && u.key === (f ? "ArrowLeft" : "ArrowRight") ? p = 1 : l && u.key === (f ? "ArrowRight" : "ArrowLeft") && (p = -1), !p && u.key !== "Home" && u.key !== "End")
1365
- return;
1366
- u.preventDefault();
1367
- let y = m;
1368
- u.key === "Home" ? y = 0 : u.key === "End" ? y = a.length - 1 : y += p, t && u.key !== "Home" && u.key !== "End" ? y = (y + a.length) % a.length : y = Math.max(0, Math.min(a.length - 1, y)), (F = a[y]) == null || F.focus();
1181
+ ...i,
1182
+ ref: ye(p, u),
1183
+ role: i.role || "group",
1184
+ onKeyDown: S(i.onKeyDown, (l) => {
1185
+ const m = Array.from(p.current?.querySelectorAll("[data-composite-item]") || []);
1186
+ if (!m.length) return;
1187
+ const f = m.indexOf(document.activeElement), d = t === "vertical" || t === "both", s = t === "horizontal" || t === "both";
1188
+ let c = 0;
1189
+ if (d && l.key === "ArrowDown" ? c = o : d && l.key === "ArrowUp" ? c = -o : s && l.key === (a ? "ArrowLeft" : "ArrowRight") ? c = 1 : s && l.key === (a ? "ArrowRight" : "ArrowLeft") && (c = -1), !c && l.key !== "Home" && l.key !== "End") return;
1190
+ l.preventDefault();
1191
+ let g = f;
1192
+ l.key === "Home" ? g = 0 : l.key === "End" ? g = m.length - 1 : g += c, r && l.key !== "Home" && l.key !== "End" ? g = (g + m.length) % m.length : g = Math.max(0, Math.min(m.length - 1, g)), m[g]?.focus();
1369
1193
  })
1370
1194
  },
1371
- o
1195
+ n
1372
1196
  );
1373
1197
  });
1374
1198
  export {
1375
- Rl as Accordion,
1376
- Bo as Alert,
1377
- Vo as AlertActions,
1378
- Ho as AlertDescription,
1379
- $l as AlertDialog,
1380
- Kl as AlertDialogActions,
1381
- Bl as AlertDialogContent,
1382
- Vl as AlertDialogDescription,
1383
- Hl as AlertDialogIcon,
1384
- Gl as AlertDialogProvider,
1385
- zl as AlertDialogTitle,
1386
- zo as AlertIcon,
1387
- qo as AlertTitle,
1388
- Hu as Anchor,
1389
- ta as AnimatedBeam,
1390
- Wl as AnimatedList,
1391
- xa as AnimatedNumber,
1392
- _l as AnimatedText,
1393
- au as AppHeader,
1394
- fu as AppHeaderCenter,
1395
- cu as AppHeaderEnd,
1396
- mu as AppHeaderStart,
1397
- pu as AppHeaderSubtitle,
1398
- du as AppHeaderTitle,
1399
- tl as AspectRatio,
1400
- ol as Avatar,
1401
- An as Badge,
1402
- Ps as BlockControls,
1403
- Bs as Box,
1404
- uu as Breadcrumb,
1405
- No as Button,
1406
- Yn as Calendar,
1407
- Sl as Card,
1408
- On as Carousel,
1409
- Cn as Chart,
1410
- qu as Checkbox,
1411
- Kn as CodeBlock,
1412
- Vn as CodeSnippet,
1413
- hl as Collapsible,
1414
- Fu as Collection,
1415
- Jn as ColorPicker,
1416
- vn as Combobox,
1417
- Es as Command,
1418
- Is as CommandItem,
1419
- Ms as CommandPalette,
1420
- Fs as CommandPaletteItem,
1421
- Co as Composite,
1422
- Zs as Container,
1423
- Ls as ContextMenu,
1424
- gn as ControlGroup,
1425
- zn as CopyButton,
1426
- Tn as DataTable,
1427
- Gn as DataViewToolbar,
1428
- ni as DateField,
1429
- ei as DatePicker,
1430
- ri as DateRangePicker,
1431
- hi as DateRangeTimePicker,
1432
- Di as DateTimePicker,
1433
- yn as Description,
1434
- _i as Dialog,
1435
- Xi as DialogProvider,
1436
- Fl as DirectionProvider,
1437
- Nu as DismissableLayer,
1438
- ia as Dock,
1439
- vu as Drawer,
1440
- Uo as Dropdown,
1441
- jo as DropdownContent,
1442
- _o as DropdownItem,
1443
- Qo as DropdownSectionLabel,
1444
- Xo as DropdownSeparator,
1445
- Yo as DropdownTrigger,
1446
- ln as Dropzone,
1447
- In as EmptyState,
1448
- pn as Field,
1449
- xn as FieldError,
1450
- wn as Fieldset,
1451
- an as FileUpload,
1452
- bn as FiltersBar,
1453
- Hs as Flex,
1454
- Ao as FloatingArrow,
1455
- To as FloatingDelayGroup,
1456
- Ro as FloatingFocusManager,
1457
- vo as FloatingList,
1458
- Ne as FloatingListContext,
1459
- Io as FloatingOverlay,
1460
- Eo as FloatingPortal,
1461
- xs as FloatingToolbar,
1462
- Mo as FloatingTree,
1463
- $u as FocusScope,
1464
- $s as Form,
1465
- Ei as Gantt,
1466
- qs as Grid,
1467
- Ll as HoverCard,
1468
- us as Icon,
1469
- oa as IconCloud,
1470
- xi as InlineEdit,
1471
- Jo as Input,
1472
- Ds as Kbd,
1473
- Nl as Label,
1474
- Au as Layout,
1475
- Lu as Listbox,
1476
- aa as Marquee,
1477
- _s as MasonryGrid,
1478
- rs as Menu,
1479
- os as MenuItem,
1480
- ns as MenuSectionLabel,
1481
- is as MenuSeparator,
1482
- Ui as Menubar,
1483
- al as Meter,
1484
- Qn as MetricCard,
1485
- ai as MultiSelect,
1486
- Ni as NavigationMenu,
1487
- Oi as NavigationMenuContent,
1488
- $i as NavigationMenuIndicator,
1489
- Ki as NavigationMenuItem,
1490
- Bi as NavigationMenuLink,
1491
- Vi as NavigationMenuList,
1492
- Hi as NavigationMenuRoot,
1493
- zi as NavigationMenuTrigger,
1494
- qi as NavigationMenuViewport,
1495
- ui as NumberField,
1496
- Zl as NumberTicker,
1497
- nn as OTPInput,
1498
- ua as Orbiter,
1499
- yu as PageHeader,
1500
- wu as PageToolbar,
1501
- El as Pagination,
1502
- tu as Panel,
1503
- ru as PanelGroup,
1504
- en as PasswordField,
1505
- sn as PinInput,
1506
- Us as PlacementGrid,
1507
- Ns as PluginPanel,
1508
- Ji as Popover,
1509
- cl as Portal,
1510
- Bu as Positioner,
1511
- il as Presence,
1512
- ul as Progress,
1513
- Si as QuickActions,
1514
- Uu as Radio,
1515
- _u as RadioGroup,
1516
- Li as Rating,
1517
- bu as RecordHeader,
1518
- Su as RovingFocusGroup,
1519
- pl as ScrollArea,
1520
- Xs as Section,
1521
- ca as Select,
1522
- Ss as SelectionPopup,
1523
- gl as Separator,
1524
- hs as Shortcut,
1525
- Ws as Sidebar,
1526
- ga as Skeleton,
1527
- pa as Slider,
1528
- xl as Slot,
1529
- gi as Sortable,
1530
- Xl as SpinningText,
1531
- ci as SplitButton,
1532
- ou as Splitter,
1533
- jn as Stat,
1534
- Ri as Stepper,
1535
- Xu as Switch,
1536
- Mn as Table,
1537
- es as Tabs,
1538
- rn as TagsInput,
1539
- cn as Textarea,
1540
- Iu as ThemeProvider,
1541
- ii as TimeField,
1542
- Pi as TimePicker,
1543
- kn as Timeline,
1544
- gs as Toast,
1545
- as as ToastAPI,
1546
- fs as ToastProvider,
1547
- Zu as Toggle,
1548
- Wu as ToggleGroup,
1549
- Pl as Toolbar,
1550
- $o as Tooltip,
1551
- pi as TransferList,
1552
- iu as Tree,
1553
- Dl as VisuallyHidden,
1554
- Fi as Wizard,
1555
- ye as assignRef,
1556
- Qe as callAll,
1557
- k as composeEventHandlers,
1558
- xe as mergeRefs,
1559
- cs as toast,
1560
- Da as toastAdvanced,
1561
- ms as toastApi,
1562
- va as toastLegacy,
1563
- ha as toastPro,
1564
- Ul as useAlertDialog,
1565
- wa as useAnimatedNumber,
1566
- Pa as useAnimatedNumberValue,
1567
- mo as useClick,
1568
- Do as useClientPoint,
1569
- Lo as useDelayGroup,
1570
- Yi as useDialog,
1571
- xo as useDismiss,
1572
- fo as useFloating,
1573
- ho as useFloatingList,
1574
- Fo as useFloatingNodeId,
1199
+ Ps as Accordion,
1200
+ Lt as Alert,
1201
+ St as AlertActions,
1202
+ Ot as AlertDescription,
1203
+ Fs as AlertDialog,
1204
+ Ls as AlertDialogActions,
1205
+ Ss as AlertDialogContent,
1206
+ Os as AlertDialogDescription,
1207
+ ks as AlertDialogIcon,
1208
+ $s as AlertDialogProvider,
1209
+ Ns as AlertDialogTitle,
1210
+ kt as AlertIcon,
1211
+ Nt as AlertTitle,
1212
+ ki as Anchor,
1213
+ Xs as AnimatedBeam,
1214
+ _s as AnimatedList,
1215
+ ca as AnimatedNumber,
1216
+ Gs as AnimatedText,
1217
+ ni as AppHeader,
1218
+ oi as AppHeaderCenter,
1219
+ ii as AppHeaderEnd,
1220
+ si as AppHeaderStart,
1221
+ ai as AppHeaderSubtitle,
1222
+ li as AppHeaderTitle,
1223
+ Xi as AspectRatio,
1224
+ Zi as Avatar,
1225
+ yr as Badge,
1226
+ mo as BlockControls,
1227
+ So as Box,
1228
+ ti as Breadcrumb,
1229
+ Mt as Button,
1230
+ Vr as Calendar,
1231
+ Rs as Card,
1232
+ Mr as Carousel,
1233
+ Ar as Chart,
1234
+ Ki as Checkbox,
1235
+ Cr as CodeBlock,
1236
+ Lr as CodeSnippet,
1237
+ ws as Collapsible,
1238
+ vi as Collection,
1239
+ qr as ColorPicker,
1240
+ pr as Combobox,
1241
+ bo as Command,
1242
+ Do as CommandItem,
1243
+ ho as CommandPalette,
1244
+ vo as CommandPaletteItem,
1245
+ It as Composite,
1246
+ Uo as Container,
1247
+ Io as ContextMenu,
1248
+ ar as ControlGroup,
1249
+ Or as CopyButton,
1250
+ hr as DataTable,
1251
+ Nr as DataViewToolbar,
1252
+ Yr as DateField,
1253
+ jr as DatePicker,
1254
+ Qr as DateRangePicker,
1255
+ yn as DateRangeTimePicker,
1256
+ pn as DateTimePicker,
1257
+ lr as Description,
1258
+ Hn as Dialog,
1259
+ Vn as DialogProvider,
1260
+ vs as DirectionProvider,
1261
+ Ti as DismissableLayer,
1262
+ Ws as Dock,
1263
+ yi as Drawer,
1264
+ $t as Dropdown,
1265
+ Bt as DropdownContent,
1266
+ Ht as DropdownItem,
1267
+ Gt as DropdownSectionLabel,
1268
+ Vt as DropdownSeparator,
1269
+ zt as DropdownTrigger,
1270
+ er as Dropzone,
1271
+ xr as EmptyState,
1272
+ ir as Field,
1273
+ ur as FieldError,
1274
+ fr as Fieldset,
1275
+ tr as FileUpload,
1276
+ mr as FiltersBar,
1277
+ ko as Flex,
1278
+ xt as FloatingArrow,
1279
+ vt as FloatingDelayGroup,
1280
+ Dt as FloatingFocusManager,
1281
+ yt as FloatingList,
1282
+ Se as FloatingListContext,
1283
+ Xe as FloatingOverlay,
1284
+ bt as FloatingPortal,
1285
+ fo as FloatingToolbar,
1286
+ Pt as FloatingTree,
1287
+ Fi as FocusScope,
1288
+ Fo as Form,
1289
+ xn as Gantt,
1290
+ Ko as Grid,
1291
+ Is as HoverCard,
1292
+ eo as Icon,
1293
+ Zs as IconCloud,
1294
+ fn as InlineEdit,
1295
+ Ut as Input,
1296
+ go as Kbd,
1297
+ Ts as Label,
1298
+ xi as Layout,
1299
+ Ii as Listbox,
1300
+ na as Marquee,
1301
+ Go as MasonryGrid,
1302
+ Xn as Menu,
1303
+ Yn as MenuItem,
1304
+ Zn as MenuSectionLabel,
1305
+ Jn as MenuSeparator,
1306
+ $n as Menubar,
1307
+ ns as Meter,
1308
+ Hr as MetricCard,
1309
+ tn as MultiSelect,
1310
+ Mn as NavigationMenu,
1311
+ Tn as NavigationMenuContent,
1312
+ Cn as NavigationMenuIndicator,
1313
+ Fn as NavigationMenuItem,
1314
+ Ln as NavigationMenuLink,
1315
+ Sn as NavigationMenuList,
1316
+ On as NavigationMenuRoot,
1317
+ kn as NavigationMenuTrigger,
1318
+ Nn as NavigationMenuViewport,
1319
+ Wr as NumberField,
1320
+ Us as NumberTicker,
1321
+ Zt as OTPInput,
1322
+ ta as Orbiter,
1323
+ fi as PageHeader,
1324
+ mi as PageToolbar,
1325
+ bs as Pagination,
1326
+ Xo as Panel,
1327
+ Yo as PanelGroup,
1328
+ _t as PasswordField,
1329
+ Jt as PinInput,
1330
+ Bo as PlacementGrid,
1331
+ To as PluginPanel,
1332
+ Un as Popover,
1333
+ is as Portal,
1334
+ Si as Positioner,
1335
+ Wi as Presence,
1336
+ ts as Progress,
1337
+ En as QuickActions,
1338
+ Bi as Radio,
1339
+ Gi as RadioGroup,
1340
+ An as Rating,
1341
+ pi as RecordHeader,
1342
+ Ri as RovingFocusGroup,
1343
+ as as ScrollArea,
1344
+ zo as Section,
1345
+ ia as Select,
1346
+ Ro as SelectionPopup,
1347
+ us as Separator,
1348
+ wo as Shortcut,
1349
+ _o as Sidebar,
1350
+ ua as Skeleton,
1351
+ aa as Slider,
1352
+ cs as Slot,
1353
+ ln as Sortable,
1354
+ zs as SpinningText,
1355
+ nn as SplitButton,
1356
+ Zo as Splitter,
1357
+ $r as Stat,
1358
+ Dn as Stepper,
1359
+ zi as Switch,
1360
+ Dr as Table,
1361
+ _n as Tabs,
1362
+ Xt as TagsInput,
1363
+ nr as Textarea,
1364
+ Di as ThemeProvider,
1365
+ Zr as TimeField,
1366
+ mn as TimePicker,
1367
+ Er as Timeline,
1368
+ lo as Toast,
1369
+ ro as ToastAPI,
1370
+ no as ToastProvider,
1371
+ Ui as Toggle,
1372
+ _i as ToggleGroup,
1373
+ ds as Toolbar,
1374
+ Ct as Tooltip,
1375
+ sn as TransferList,
1376
+ Wo as Tree,
1377
+ gs as VisuallyHidden,
1378
+ hn as Wizard,
1379
+ ge as assignRef,
1380
+ je as callAll,
1381
+ S as composeEventHandlers,
1382
+ ye as mergeRefs,
1383
+ oo as toast,
1384
+ ga as toastAdvanced,
1385
+ io as toastApi,
1386
+ ya as toastLegacy,
1387
+ wa as toastPro,
1388
+ Bs as useAlertDialog,
1389
+ ma as useAnimatedNumber,
1390
+ da as useAnimatedNumberValue,
1391
+ at as useClick,
1392
+ gt as useClientPoint,
1393
+ At as useDelayGroup,
1394
+ zn as useDialog,
1395
+ ct as useDismiss,
1396
+ it as useFloating,
1397
+ wt as useFloatingList,
1398
+ ht as useFloatingNodeId,
1575
1399
  we as useFloatingTree,
1576
- go as useFocus,
1577
- ao as useForm,
1578
- po as useHover,
1579
- co as useInteractions,
1580
- wo as useListNavigation,
1581
- yo as useRole,
1582
- Ru as useTheme,
1583
- ps as useToast,
1584
- bo as useTransition,
1585
- Po as useTypeahead
1400
+ ut as useFocus,
1401
+ ot as useForm,
1402
+ lt as useHover,
1403
+ st as useInteractions,
1404
+ mt as useListNavigation,
1405
+ ft as useRole,
1406
+ Pi as useTheme,
1407
+ so as useToast,
1408
+ pt as useTransition,
1409
+ dt as useTypeahead
1586
1410
  };