@editora/ui-react 0.1.19 → 0.1.21

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