@editora/ui-react 0.1.8 → 0.1.10

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 (622) hide show
  1. package/dist/Accordion.cjs.js +1 -1
  2. package/dist/Accordion.esm.js +5 -1
  3. package/dist/AlertDialog.cjs.js +1 -0
  4. package/dist/AlertDialog.esm.js +93 -0
  5. package/dist/AlertDialogProvider.cjs.js +1 -0
  6. package/dist/AlertDialogProvider.esm.js +58 -0
  7. package/dist/Anchor.cjs.js +1 -0
  8. package/dist/Anchor.esm.js +10 -0
  9. package/dist/AnimatedBeam.cjs.js +1 -0
  10. package/dist/AnimatedBeam.esm.js +178 -0
  11. package/dist/AnimatedList.cjs.js +1 -0
  12. package/dist/AnimatedList.esm.js +86 -0
  13. package/dist/AnimatedNumber.cjs.js +1 -0
  14. package/dist/AnimatedNumber.esm.js +181 -0
  15. package/dist/AnimatedText.cjs.js +1 -0
  16. package/dist/AnimatedText.esm.js +92 -0
  17. package/dist/AppHeader.cjs.js +33 -1
  18. package/dist/AppHeader.esm.js +97 -3
  19. package/dist/AspectRatio.cjs.js +1 -0
  20. package/dist/AspectRatio.esm.js +28 -0
  21. package/dist/Avatar.cjs.js +1 -0
  22. package/dist/Avatar.esm.js +63 -0
  23. package/dist/Badge.cjs.js +1 -0
  24. package/dist/Badge.esm.js +39 -0
  25. package/dist/BlockControls.cjs.js +1 -0
  26. package/dist/BlockControls.esm.js +39 -0
  27. package/dist/Box.cjs.js +1 -0
  28. package/dist/Box.esm.js +155 -0
  29. package/dist/Breadcrumb.cjs.js +1 -1
  30. package/dist/Breadcrumb.esm.js +1 -0
  31. package/dist/Button.cjs.js +1 -0
  32. package/dist/Button.esm.js +85 -0
  33. package/dist/Calendar.cjs.js +1 -0
  34. package/dist/Calendar.esm.js +115 -0
  35. package/dist/Card.cjs.js +2 -2
  36. package/dist/Card.esm.js +3 -2
  37. package/dist/Chart.cjs.js +1 -0
  38. package/dist/Chart.esm.js +115 -0
  39. package/dist/Checkbox.cjs.js +1 -0
  40. package/dist/Checkbox.esm.js +74 -0
  41. package/dist/Collapsible.cjs.js +1 -1
  42. package/dist/Collapsible.esm.js +4 -0
  43. package/dist/Collection.cjs.js +1 -0
  44. package/dist/Collection.esm.js +21 -0
  45. package/dist/ColorPicker.cjs.js +1 -0
  46. package/dist/ColorPicker.esm.js +104 -0
  47. package/dist/Combobox.cjs.js +1 -1
  48. package/dist/Combobox.esm.js +1 -0
  49. package/dist/Command.cjs.js +1 -1
  50. package/dist/Command.esm.js +61 -5
  51. package/dist/CommandPalette.cjs.js +1 -1
  52. package/dist/CommandPalette.esm.js +67 -5
  53. package/dist/Container.cjs.js +1 -0
  54. package/dist/Container.esm.js +9 -0
  55. package/dist/ContextMenu.cjs.js +1 -0
  56. package/dist/ContextMenu.esm.js +157 -0
  57. package/dist/DataTable.cjs.js +1 -0
  58. package/dist/DataTable.esm.js +148 -0
  59. package/dist/DateField.cjs.js +1 -0
  60. package/dist/DateField.esm.js +62 -0
  61. package/dist/DatePicker.cjs.js +1 -0
  62. package/dist/DatePicker.esm.js +122 -0
  63. package/dist/DateRangePicker.cjs.js +1 -0
  64. package/dist/DateRangePicker.esm.js +109 -0
  65. package/dist/DateRangeTimePicker.cjs.js +1 -0
  66. package/dist/DateRangeTimePicker.esm.js +103 -0
  67. package/dist/DateTimePicker.cjs.js +1 -0
  68. package/dist/DateTimePicker.esm.js +101 -0
  69. package/dist/Dialog.cjs.js +1 -0
  70. package/dist/Dialog.esm.js +76 -0
  71. package/dist/DialogProvider.cjs.js +1 -0
  72. package/dist/DialogProvider.esm.js +47 -0
  73. package/dist/DirectionProvider.cjs.js +1 -0
  74. package/dist/DirectionProvider.esm.js +6 -0
  75. package/dist/DismissableLayer.cjs.js +1 -0
  76. package/dist/DismissableLayer.esm.js +35 -0
  77. package/dist/Dock.cjs.js +1 -0
  78. package/dist/Dock.esm.js +115 -0
  79. package/dist/Drawer.cjs.js +1 -1
  80. package/dist/Drawer.esm.js +2 -0
  81. package/dist/Dropdown.cjs.js +1 -0
  82. package/dist/Dropdown.esm.js +136 -0
  83. package/dist/EmptyState.cjs.js +1 -0
  84. package/dist/EmptyState.esm.js +29 -0
  85. package/dist/Field.cjs.js +1 -0
  86. package/dist/Field.esm.js +45 -0
  87. package/dist/FieldSemantics.cjs.js +1 -0
  88. package/dist/FieldSemantics.esm.js +60 -0
  89. package/dist/FileUpload.cjs.js +1 -0
  90. package/dist/FileUpload.esm.js +79 -0
  91. package/dist/Flex.cjs.js +1 -0
  92. package/dist/Flex.esm.js +45 -0
  93. package/dist/FloatingToolbar.cjs.js +1 -1
  94. package/dist/FloatingToolbar.esm.js +1 -0
  95. package/dist/FocusScope.cjs.js +1 -0
  96. package/dist/FocusScope.esm.js +21 -0
  97. package/dist/Form.cjs.js +1 -1
  98. package/dist/Form.esm.js +3 -0
  99. package/dist/Gantt.cjs.js +1 -0
  100. package/dist/Gantt.esm.js +33 -0
  101. package/dist/Grid.cjs.js +1 -0
  102. package/dist/Grid.esm.js +59 -0
  103. package/dist/Icon.cjs.js +1 -0
  104. package/dist/Icon.esm.js +57 -0
  105. package/dist/IconCloud.cjs.js +1 -0
  106. package/dist/IconCloud.esm.js +97 -0
  107. package/dist/InlineEdit.cjs.js +1 -0
  108. package/dist/InlineEdit.esm.js +29 -0
  109. package/dist/Layout.cjs.js +1 -1
  110. package/dist/Layout.esm.js +5 -0
  111. package/dist/Listbox.cjs.js +1 -0
  112. package/dist/Listbox.esm.js +21 -0
  113. package/dist/Marquee.cjs.js +1 -0
  114. package/dist/Marquee.esm.js +72 -0
  115. package/dist/MasonryGrid.cjs.js +1 -0
  116. package/dist/MasonryGrid.esm.js +50 -0
  117. package/dist/Menu.cjs.js +1 -1
  118. package/dist/Menu.esm.js +141 -4
  119. package/dist/Meter.cjs.js +1 -0
  120. package/dist/Meter.esm.js +55 -0
  121. package/dist/MultiSelect.cjs.js +1 -0
  122. package/dist/MultiSelect.esm.js +92 -0
  123. package/dist/NavigationMenu.cjs.js +1 -0
  124. package/dist/NavigationMenu.esm.js +121 -0
  125. package/dist/NumberField.cjs.js +1 -0
  126. package/dist/NumberField.esm.js +99 -0
  127. package/dist/NumberTicker.cjs.js +1 -0
  128. package/dist/NumberTicker.esm.js +116 -0
  129. package/dist/Orbiter.cjs.js +1 -0
  130. package/dist/Orbiter.esm.js +114 -0
  131. package/dist/Pagination.cjs.js +1 -0
  132. package/dist/Pagination.esm.js +63 -0
  133. package/dist/PanelGroup.cjs.js +1 -0
  134. package/dist/PanelGroup.esm.js +47 -0
  135. package/dist/PasswordField.cjs.js +1 -0
  136. package/dist/PasswordField.esm.js +118 -0
  137. package/dist/PinInput.cjs.js +1 -0
  138. package/dist/PinInput.esm.js +48 -0
  139. package/dist/PlacementGrid.cjs.js +1 -0
  140. package/dist/PlacementGrid.esm.js +96 -0
  141. package/dist/PluginPanel.cjs.js +1 -0
  142. package/dist/PluginPanel.esm.js +39 -0
  143. package/dist/Popover.cjs.js +1 -1
  144. package/dist/Popover.esm.js +56 -47
  145. package/dist/Portal.cjs.js +1 -0
  146. package/dist/Portal.esm.js +23 -0
  147. package/dist/Positioner.cjs.js +1 -0
  148. package/dist/Positioner.esm.js +36 -0
  149. package/dist/Presence.cjs.js +1 -0
  150. package/dist/Presence.esm.js +42 -0
  151. package/dist/Progress.cjs.js +1 -0
  152. package/dist/Progress.esm.js +59 -0
  153. package/dist/RadioGroup.cjs.js +1 -0
  154. package/dist/RadioGroup.esm.js +46 -0
  155. package/dist/Rating.cjs.js +1 -1
  156. package/dist/Rating.esm.js +19 -18
  157. package/dist/RovingFocusGroup.cjs.js +1 -0
  158. package/dist/RovingFocusGroup.esm.js +24 -0
  159. package/dist/ScrollArea.cjs.js +1 -0
  160. package/dist/ScrollArea.esm.js +53 -0
  161. package/dist/Section.cjs.js +1 -0
  162. package/dist/Section.esm.js +34 -0
  163. package/dist/Separator.cjs.js +1 -0
  164. package/dist/Separator.esm.js +6 -0
  165. package/dist/Skeleton.cjs.js +1 -0
  166. package/dist/Skeleton.esm.js +27 -0
  167. package/dist/Slider.cjs.js +1 -0
  168. package/dist/Slider.esm.js +99 -0
  169. package/dist/Slot.cjs.js +1 -0
  170. package/dist/Slot.esm.js +51 -0
  171. package/dist/SpinningText.cjs.js +1 -0
  172. package/dist/SpinningText.esm.js +96 -0
  173. package/dist/SplitButton.cjs.js +1 -0
  174. package/dist/SplitButton.esm.js +58 -0
  175. package/dist/Stepper.cjs.js +1 -0
  176. package/dist/Stepper.esm.js +60 -0
  177. package/dist/Table.cjs.js +1 -0
  178. package/dist/Table.esm.js +57 -0
  179. package/dist/TagsInput.cjs.js +1 -0
  180. package/dist/TagsInput.esm.js +64 -0
  181. package/dist/ThemeProvider.cjs.js +1 -0
  182. package/dist/ThemeProvider.esm.js +154 -0
  183. package/dist/TimePicker.cjs.js +1 -0
  184. package/dist/TimePicker.esm.js +95 -0
  185. package/dist/Timeline.cjs.js +1 -0
  186. package/dist/Timeline.esm.js +33 -0
  187. package/dist/Toast.cjs.js +1 -0
  188. package/dist/Toast.esm.js +57 -0
  189. package/dist/ToastAPI.cjs.js +1 -0
  190. package/dist/ToastAPI.esm.js +72 -0
  191. package/dist/Toggle.cjs.js +1 -0
  192. package/dist/Toggle.esm.js +58 -0
  193. package/dist/ToggleGroup.cjs.js +1 -1
  194. package/dist/ToggleGroup.esm.js +64 -3
  195. package/dist/Toolbar.cjs.js +1 -0
  196. package/dist/Toolbar.esm.js +35 -0
  197. package/dist/Tooltip.cjs.js +1 -0
  198. package/dist/Tooltip.esm.js +60 -0
  199. package/dist/TransferList.cjs.js +1 -0
  200. package/dist/TransferList.esm.js +80 -0
  201. package/dist/Tree.cjs.js +1 -1
  202. package/dist/Tree.esm.js +12 -11
  203. package/dist/VisuallyHidden.cjs.js +1 -0
  204. package/dist/VisuallyHidden.esm.js +6 -0
  205. package/dist/Wizard.cjs.js +1 -1
  206. package/dist/Wizard.esm.js +2 -1
  207. package/dist/__tests__/setup.d.ts +6 -0
  208. package/dist/__tests__/setup.d.ts.map +1 -0
  209. package/dist/components/Accordion.cjs.js +1 -1
  210. package/dist/components/Accordion.esm.js +6 -2
  211. package/dist/components/Alert.cjs.js +1 -1
  212. package/dist/components/Alert.esm.js +1 -1
  213. package/dist/components/AlertDialog.cjs.js +1 -0
  214. package/dist/components/AlertDialog.esm.js +11 -0
  215. package/dist/components/AlertDialogProvider.cjs.js +1 -0
  216. package/dist/components/AlertDialogProvider.esm.js +8 -0
  217. package/dist/components/Anchor.cjs.js +1 -0
  218. package/dist/components/Anchor.esm.js +6 -0
  219. package/dist/components/AnimatedBeam.cjs.js +1 -0
  220. package/dist/components/AnimatedBeam.d.ts +122 -0
  221. package/dist/components/AnimatedBeam.d.ts.map +1 -0
  222. package/dist/components/AnimatedBeam.esm.js +7 -0
  223. package/dist/components/AnimatedList.cjs.js +1 -0
  224. package/dist/components/AnimatedList.d.ts +62 -0
  225. package/dist/components/AnimatedList.d.ts.map +1 -0
  226. package/dist/components/AnimatedList.esm.js +7 -0
  227. package/dist/components/AnimatedNumber.cjs.js +1 -0
  228. package/dist/components/AnimatedNumber.d.ts +96 -0
  229. package/dist/components/AnimatedNumber.d.ts.map +1 -0
  230. package/dist/components/AnimatedNumber.esm.js +9 -0
  231. package/dist/components/AnimatedText.cjs.js +1 -0
  232. package/dist/components/AnimatedText.d.ts +68 -0
  233. package/dist/components/AnimatedText.d.ts.map +1 -0
  234. package/dist/components/AnimatedText.esm.js +7 -0
  235. package/dist/components/AppHeader.cjs.js +1 -1
  236. package/dist/components/AppHeader.esm.js +8 -2
  237. package/dist/components/AspectRatio.cjs.js +1 -0
  238. package/dist/components/AspectRatio.esm.js +7 -0
  239. package/dist/components/Avatar.cjs.js +1 -0
  240. package/dist/components/Avatar.esm.js +6 -0
  241. package/dist/components/Badge.cjs.js +1 -0
  242. package/dist/components/Badge.d.ts +1 -1
  243. package/dist/components/Badge.d.ts.map +1 -1
  244. package/dist/components/Badge.esm.js +6 -0
  245. package/dist/components/BlockControls.cjs.js +1 -0
  246. package/dist/components/BlockControls.esm.js +7 -0
  247. package/dist/components/Box.cjs.js +1 -0
  248. package/dist/components/Box.d.ts +68 -2
  249. package/dist/components/Box.d.ts.map +1 -1
  250. package/dist/components/Box.esm.js +6 -0
  251. package/dist/components/Breadcrumb.cjs.js +1 -1
  252. package/dist/components/Breadcrumb.d.ts +1 -1
  253. package/dist/components/Breadcrumb.d.ts.map +1 -1
  254. package/dist/components/Breadcrumb.esm.js +4 -3
  255. package/dist/components/Button.cjs.js +1 -0
  256. package/dist/components/Button.esm.js +7 -0
  257. package/dist/components/Calendar.cjs.js +1 -0
  258. package/dist/components/Calendar.esm.js +7 -0
  259. package/dist/components/Card.cjs.js +1 -1
  260. package/dist/components/Card.d.ts +5 -11
  261. package/dist/components/Card.d.ts.map +1 -1
  262. package/dist/components/Card.esm.js +3 -2
  263. package/dist/components/Chart.cjs.js +1 -0
  264. package/dist/components/Chart.esm.js +10 -0
  265. package/dist/components/Checkbox.cjs.js +1 -0
  266. package/dist/components/Checkbox.esm.js +6 -0
  267. package/dist/components/Collapsible.cjs.js +1 -1
  268. package/dist/components/Collapsible.esm.js +7 -3
  269. package/dist/components/Collection.cjs.js +1 -0
  270. package/dist/components/Collection.esm.js +6 -0
  271. package/dist/components/ColorPicker.cjs.js +1 -0
  272. package/dist/components/ColorPicker.d.ts +2 -2
  273. package/dist/components/ColorPicker.d.ts.map +1 -1
  274. package/dist/components/ColorPicker.esm.js +6 -0
  275. package/dist/components/Combobox.cjs.js +1 -1
  276. package/dist/components/Combobox.d.ts +2 -2
  277. package/dist/components/Combobox.d.ts.map +1 -1
  278. package/dist/components/Combobox.esm.js +4 -3
  279. package/dist/components/Command.cjs.js +1 -1
  280. package/dist/components/Command.esm.js +4 -3
  281. package/dist/components/CommandPalette.cjs.js +1 -1
  282. package/dist/components/CommandPalette.d.ts +1 -1
  283. package/dist/components/CommandPalette.d.ts.map +1 -1
  284. package/dist/components/CommandPalette.esm.js +4 -3
  285. package/dist/components/Container.cjs.js +1 -0
  286. package/dist/components/Container.esm.js +6 -0
  287. package/dist/components/ContextMenu.cjs.js +1 -0
  288. package/dist/components/ContextMenu.d.ts +1 -1
  289. package/dist/components/ContextMenu.d.ts.map +1 -1
  290. package/dist/components/ContextMenu.esm.js +7 -0
  291. package/dist/components/DataTable.cjs.js +1 -0
  292. package/dist/components/DataTable.d.ts +1 -1
  293. package/dist/components/DataTable.esm.js +6 -0
  294. package/dist/components/DateField.cjs.js +1 -0
  295. package/dist/components/DateField.d.ts +2 -2
  296. package/dist/components/DateField.esm.js +7 -0
  297. package/dist/components/DatePicker.cjs.js +1 -0
  298. package/dist/components/DatePicker.d.ts +2 -2
  299. package/dist/components/DatePicker.d.ts.map +1 -1
  300. package/dist/components/DatePicker.esm.js +7 -0
  301. package/dist/components/DateRangePicker.cjs.js +1 -0
  302. package/dist/components/DateRangePicker.d.ts +2 -2
  303. package/dist/components/DateRangePicker.d.ts.map +1 -1
  304. package/dist/components/DateRangePicker.esm.js +7 -0
  305. package/dist/components/DateRangeTimePicker.cjs.js +1 -0
  306. package/dist/components/DateRangeTimePicker.d.ts +2 -2
  307. package/dist/components/DateRangeTimePicker.d.ts.map +1 -1
  308. package/dist/components/DateRangeTimePicker.esm.js +7 -0
  309. package/dist/components/DateTimePicker.cjs.js +1 -0
  310. package/dist/components/DateTimePicker.d.ts +2 -2
  311. package/dist/components/DateTimePicker.d.ts.map +1 -1
  312. package/dist/components/DateTimePicker.esm.js +7 -0
  313. package/dist/components/Dialog.cjs.js +1 -0
  314. package/dist/components/Dialog.d.ts +2 -2
  315. package/dist/components/Dialog.d.ts.map +1 -1
  316. package/dist/components/Dialog.esm.js +6 -0
  317. package/dist/components/DialogProvider.cjs.js +1 -0
  318. package/dist/components/DialogProvider.esm.js +8 -0
  319. package/dist/components/DirectionProvider.cjs.js +1 -0
  320. package/dist/components/DirectionProvider.esm.js +5 -0
  321. package/dist/components/DismissableLayer.cjs.js +1 -0
  322. package/dist/components/DismissableLayer.d.ts +2 -2
  323. package/dist/components/DismissableLayer.d.ts.map +1 -1
  324. package/dist/components/DismissableLayer.esm.js +6 -0
  325. package/dist/components/Dock.cjs.js +1 -0
  326. package/dist/components/Dock.d.ts +76 -0
  327. package/dist/components/Dock.d.ts.map +1 -0
  328. package/dist/components/Dock.esm.js +7 -0
  329. package/dist/components/Drawer.cjs.js +1 -1
  330. package/dist/components/Drawer.d.ts +1 -1
  331. package/dist/components/Drawer.d.ts.map +1 -1
  332. package/dist/components/Drawer.esm.js +4 -2
  333. package/dist/components/Dropdown.cjs.js +1 -0
  334. package/dist/components/Dropdown.d.ts +1 -1
  335. package/dist/components/Dropdown.d.ts.map +1 -1
  336. package/dist/components/Dropdown.esm.js +11 -0
  337. package/dist/components/EmptyState.cjs.js +1 -0
  338. package/dist/components/EmptyState.esm.js +6 -0
  339. package/dist/components/Field.cjs.js +1 -0
  340. package/dist/components/Field.esm.js +6 -0
  341. package/dist/components/FieldSemantics.cjs.js +1 -0
  342. package/dist/components/FieldSemantics.esm.js +9 -0
  343. package/dist/components/FileUpload.cjs.js +1 -0
  344. package/dist/components/FileUpload.esm.js +7 -0
  345. package/dist/components/Flex.cjs.js +1 -0
  346. package/dist/components/Flex.d.ts +8 -7
  347. package/dist/components/Flex.d.ts.map +1 -1
  348. package/dist/components/Flex.esm.js +6 -0
  349. package/dist/components/FloatingToolbar.cjs.js +1 -1
  350. package/dist/components/FloatingToolbar.esm.js +4 -3
  351. package/dist/components/FocusScope.cjs.js +1 -0
  352. package/dist/components/FocusScope.d.ts +2 -2
  353. package/dist/components/FocusScope.d.ts.map +1 -1
  354. package/dist/components/FocusScope.esm.js +6 -0
  355. package/dist/components/Form.cjs.js +1 -1
  356. package/dist/components/Form.esm.js +5 -2
  357. package/dist/components/Gantt.cjs.js +1 -0
  358. package/dist/components/Gantt.esm.js +6 -0
  359. package/dist/components/Grid.cjs.js +1 -0
  360. package/dist/components/Grid.d.ts +16 -15
  361. package/dist/components/Grid.d.ts.map +1 -1
  362. package/dist/components/Grid.esm.js +6 -0
  363. package/dist/components/HoverCard.cjs.js +1 -1
  364. package/dist/components/HoverCard.d.ts +2 -2
  365. package/dist/components/HoverCard.d.ts.map +1 -1
  366. package/dist/components/HoverCard.esm.js +1 -1
  367. package/dist/components/Icon.cjs.js +1 -0
  368. package/dist/components/Icon.esm.js +6 -0
  369. package/dist/components/IconCloud.cjs.js +1 -0
  370. package/dist/components/IconCloud.d.ts +74 -0
  371. package/dist/components/IconCloud.d.ts.map +1 -0
  372. package/dist/components/IconCloud.esm.js +7 -0
  373. package/dist/components/InlineEdit.cjs.js +1 -0
  374. package/dist/components/InlineEdit.d.ts +2 -2
  375. package/dist/components/InlineEdit.d.ts.map +1 -1
  376. package/dist/components/InlineEdit.esm.js +6 -0
  377. package/dist/components/Input.cjs.js +1 -1
  378. package/dist/components/Input.esm.js +1 -1
  379. package/dist/components/Label.cjs.js +1 -1
  380. package/dist/components/Label.esm.js +1 -1
  381. package/dist/components/Layout.cjs.js +1 -1
  382. package/dist/components/Layout.esm.js +8 -3
  383. package/dist/components/Listbox.cjs.js +1 -0
  384. package/dist/components/Listbox.esm.js +6 -0
  385. package/dist/components/Marquee.cjs.js +1 -0
  386. package/dist/components/Marquee.d.ts +53 -0
  387. package/dist/components/Marquee.d.ts.map +1 -0
  388. package/dist/components/Marquee.esm.js +7 -0
  389. package/dist/components/MasonryGrid.cjs.js +1 -0
  390. package/dist/components/MasonryGrid.d.ts +16 -0
  391. package/dist/components/MasonryGrid.d.ts.map +1 -0
  392. package/dist/components/MasonryGrid.esm.js +7 -0
  393. package/dist/components/Menu.cjs.js +1 -1
  394. package/dist/components/Menu.d.ts +1 -1
  395. package/dist/components/Menu.d.ts.map +1 -1
  396. package/dist/components/Menu.esm.js +6 -3
  397. package/dist/components/Menubar.cjs.js +1 -1
  398. package/dist/components/Menubar.d.ts +1 -1
  399. package/dist/components/Menubar.d.ts.map +1 -1
  400. package/dist/components/Menubar.esm.js +1 -1
  401. package/dist/components/Meter.cjs.js +1 -0
  402. package/dist/components/Meter.esm.js +6 -0
  403. package/dist/components/MultiSelect.cjs.js +1 -0
  404. package/dist/components/MultiSelect.d.ts +1 -1
  405. package/dist/components/MultiSelect.esm.js +6 -0
  406. package/dist/components/NavigationMenu.cjs.js +1 -0
  407. package/dist/components/NavigationMenu.d.ts +87 -87
  408. package/dist/components/NavigationMenu.d.ts.map +1 -1
  409. package/dist/components/NavigationMenu.esm.js +14 -0
  410. package/dist/components/NumberField.cjs.js +1 -0
  411. package/dist/components/NumberField.esm.js +6 -0
  412. package/dist/components/NumberTicker.cjs.js +1 -0
  413. package/dist/components/NumberTicker.d.ts +110 -0
  414. package/dist/components/NumberTicker.d.ts.map +1 -0
  415. package/dist/components/NumberTicker.esm.js +7 -0
  416. package/dist/components/Orbiter.cjs.js +1 -0
  417. package/dist/components/Orbiter.d.ts +89 -0
  418. package/dist/components/Orbiter.d.ts.map +1 -0
  419. package/dist/components/Orbiter.esm.js +7 -0
  420. package/dist/components/Pagination.cjs.js +1 -0
  421. package/dist/components/Pagination.esm.js +6 -0
  422. package/dist/components/PanelGroup.cjs.js +1 -0
  423. package/dist/components/PanelGroup.esm.js +8 -0
  424. package/dist/components/PasswordField.cjs.js +1 -0
  425. package/dist/components/PasswordField.d.ts +2 -2
  426. package/dist/components/PasswordField.d.ts.map +1 -1
  427. package/dist/components/PasswordField.esm.js +6 -0
  428. package/dist/components/PinInput.cjs.js +1 -0
  429. package/dist/components/PinInput.d.ts +3 -3
  430. package/dist/components/PinInput.d.ts.map +1 -1
  431. package/dist/components/PinInput.esm.js +7 -0
  432. package/dist/components/PlacementGrid.cjs.js +1 -0
  433. package/dist/components/PlacementGrid.d.ts +55 -0
  434. package/dist/components/PlacementGrid.d.ts.map +1 -0
  435. package/dist/components/PlacementGrid.esm.js +7 -0
  436. package/dist/components/PluginPanel.cjs.js +1 -0
  437. package/dist/components/PluginPanel.d.ts +2 -2
  438. package/dist/components/PluginPanel.d.ts.map +1 -1
  439. package/dist/components/PluginPanel.esm.js +7 -0
  440. package/dist/components/Popover.cjs.js +1 -1
  441. package/dist/components/Popover.d.ts +12 -2
  442. package/dist/components/Popover.d.ts.map +1 -1
  443. package/dist/components/Popover.esm.js +1 -1
  444. package/dist/components/Portal.cjs.js +1 -0
  445. package/dist/components/Portal.esm.js +5 -0
  446. package/dist/components/Positioner.cjs.js +1 -0
  447. package/dist/components/Positioner.esm.js +6 -0
  448. package/dist/components/Presence.cjs.js +1 -0
  449. package/dist/components/Presence.esm.js +5 -0
  450. package/dist/components/Progress.cjs.js +1 -0
  451. package/dist/components/Progress.esm.js +5 -0
  452. package/dist/components/QuickActions.cjs.js +1 -1
  453. package/dist/components/QuickActions.d.ts +2 -2
  454. package/dist/components/QuickActions.d.ts.map +1 -1
  455. package/dist/components/QuickActions.esm.js +1 -1
  456. package/dist/components/RadioGroup.cjs.js +1 -0
  457. package/dist/components/RadioGroup.esm.js +5 -0
  458. package/dist/components/Rating.cjs.js +1 -1
  459. package/dist/components/Rating.esm.js +3 -2
  460. package/dist/components/RovingFocusGroup.cjs.js +1 -0
  461. package/dist/components/RovingFocusGroup.esm.js +6 -0
  462. package/dist/components/ScrollArea.cjs.js +1 -0
  463. package/dist/components/ScrollArea.esm.js +5 -0
  464. package/dist/components/Section.cjs.js +1 -0
  465. package/dist/components/Section.esm.js +6 -0
  466. package/dist/components/Select.cjs.js +1 -1
  467. package/dist/components/Select.d.ts +2 -2
  468. package/dist/components/Select.d.ts.map +1 -1
  469. package/dist/components/Select.esm.js +1 -1
  470. package/dist/components/SelectionPopup.cjs.js +1 -1
  471. package/dist/components/SelectionPopup.d.ts +2 -2
  472. package/dist/components/SelectionPopup.d.ts.map +1 -1
  473. package/dist/components/SelectionPopup.esm.js +1 -1
  474. package/dist/components/Separator.cjs.js +1 -0
  475. package/dist/components/Separator.esm.js +5 -0
  476. package/dist/components/Sidebar.cjs.js +1 -1
  477. package/dist/components/Sidebar.d.ts +3 -3
  478. package/dist/components/Sidebar.d.ts.map +1 -1
  479. package/dist/components/Sidebar.esm.js +1 -1
  480. package/dist/components/Skeleton.cjs.js +1 -0
  481. package/dist/components/Skeleton.esm.js +6 -0
  482. package/dist/components/Slider.cjs.js +1 -0
  483. package/dist/components/Slider.esm.js +6 -0
  484. package/dist/components/Slot.cjs.js +1 -0
  485. package/dist/components/Slot.esm.js +6 -0
  486. package/dist/components/SpinningText.cjs.js +1 -0
  487. package/dist/components/SpinningText.d.ts +69 -0
  488. package/dist/components/SpinningText.d.ts.map +1 -0
  489. package/dist/components/SpinningText.esm.js +7 -0
  490. package/dist/components/SplitButton.cjs.js +1 -0
  491. package/dist/components/SplitButton.d.ts +2 -2
  492. package/dist/components/SplitButton.d.ts.map +1 -1
  493. package/dist/components/SplitButton.esm.js +6 -0
  494. package/dist/components/Stepper.cjs.js +1 -0
  495. package/dist/components/Stepper.d.ts +2 -2
  496. package/dist/components/Stepper.d.ts.map +1 -1
  497. package/dist/components/Stepper.esm.js +6 -0
  498. package/dist/components/Switch.cjs.js +1 -1
  499. package/dist/components/Switch.esm.js +1 -1
  500. package/dist/components/Table.cjs.js +1 -0
  501. package/dist/components/Table.esm.js +6 -0
  502. package/dist/components/Tabs.cjs.js +1 -1
  503. package/dist/components/Tabs.d.ts +2 -2
  504. package/dist/components/Tabs.d.ts.map +1 -1
  505. package/dist/components/Tabs.esm.js +1 -1
  506. package/dist/components/TagsInput.cjs.js +1 -0
  507. package/dist/components/TagsInput.esm.js +6 -0
  508. package/dist/components/Textarea.cjs.js +1 -1
  509. package/dist/components/Textarea.esm.js +1 -1
  510. package/dist/components/ThemeProvider.cjs.js +1 -0
  511. package/dist/components/ThemeProvider.esm.js +8 -0
  512. package/dist/components/TimePicker.cjs.js +1 -0
  513. package/dist/components/TimePicker.d.ts +2 -2
  514. package/dist/components/TimePicker.d.ts.map +1 -1
  515. package/dist/components/TimePicker.esm.js +7 -0
  516. package/dist/components/Timeline.cjs.js +1 -0
  517. package/dist/components/Timeline.esm.js +6 -0
  518. package/dist/components/Toast.cjs.js +1 -0
  519. package/dist/components/Toast.d.ts +9 -0
  520. package/dist/components/Toast.d.ts.map +1 -1
  521. package/dist/components/Toast.esm.js +7 -0
  522. package/dist/components/ToastAPI.cjs.js +1 -0
  523. package/dist/components/ToastAPI.esm.js +14 -0
  524. package/dist/components/Toggle.cjs.js +1 -0
  525. package/dist/components/Toggle.esm.js +6 -0
  526. package/dist/components/ToggleGroup.cjs.js +1 -1
  527. package/dist/components/ToggleGroup.esm.js +4 -2
  528. package/dist/components/Toolbar.cjs.js +1 -0
  529. package/dist/components/Toolbar.esm.js +6 -0
  530. package/dist/components/Tooltip.cjs.js +1 -0
  531. package/dist/components/Tooltip.d.ts +2 -2
  532. package/dist/components/Tooltip.d.ts.map +1 -1
  533. package/dist/components/Tooltip.esm.js +6 -0
  534. package/dist/components/TransferList.cjs.js +1 -0
  535. package/dist/components/TransferList.d.ts +50 -16
  536. package/dist/components/TransferList.d.ts.map +1 -1
  537. package/dist/components/TransferList.esm.js +7 -0
  538. package/dist/components/Tree.cjs.js +1 -1
  539. package/dist/components/Tree.esm.js +3 -2
  540. package/dist/components/VisuallyHidden.cjs.js +1 -0
  541. package/dist/components/VisuallyHidden.esm.js +5 -0
  542. package/dist/components/Wizard.cjs.js +1 -1
  543. package/dist/components/Wizard.d.ts +3 -2
  544. package/dist/components/Wizard.d.ts.map +1 -1
  545. package/dist/components/Wizard.esm.js +3 -2
  546. package/dist/components/index.d.ts +24 -1
  547. package/dist/components/index.d.ts.map +1 -1
  548. package/dist/index.cjs.js +1 -1
  549. package/dist/index.d.ts +25 -0
  550. package/dist/index.d.ts.map +1 -1
  551. package/dist/index.esm.js +410 -4445
  552. package/package.json +556 -35
  553. package/dist/Accordion.d.ts +0 -3
  554. package/dist/Accordion.d.ts.map +0 -1
  555. package/dist/Alert.d.ts +0 -2
  556. package/dist/Alert.d.ts.map +0 -1
  557. package/dist/AppHeader-49a8d3e0.mjs +0 -98
  558. package/dist/AppHeader-5c427700.js +0 -33
  559. package/dist/AppHeader.d.ts +0 -3
  560. package/dist/AppHeader.d.ts.map +0 -1
  561. package/dist/Breadcrumb.d.ts +0 -3
  562. package/dist/Breadcrumb.d.ts.map +0 -1
  563. package/dist/Card.d.ts +0 -3
  564. package/dist/Card.d.ts.map +0 -1
  565. package/dist/Collapsible.d.ts +0 -3
  566. package/dist/Collapsible.d.ts.map +0 -1
  567. package/dist/Combobox.d.ts +0 -3
  568. package/dist/Combobox.d.ts.map +0 -1
  569. package/dist/Command-93c3b761.mjs +0 -62
  570. package/dist/Command-da77cea8.js +0 -1
  571. package/dist/Command.d.ts +0 -3
  572. package/dist/Command.d.ts.map +0 -1
  573. package/dist/CommandPalette-136d08a9.mjs +0 -68
  574. package/dist/CommandPalette-e827844c.js +0 -1
  575. package/dist/CommandPalette.d.ts +0 -3
  576. package/dist/CommandPalette.d.ts.map +0 -1
  577. package/dist/Drawer.d.ts +0 -3
  578. package/dist/Drawer.d.ts.map +0 -1
  579. package/dist/FloatingToolbar.d.ts +0 -3
  580. package/dist/FloatingToolbar.d.ts.map +0 -1
  581. package/dist/Form.d.ts +0 -3
  582. package/dist/Form.d.ts.map +0 -1
  583. package/dist/HoverCard.d.ts +0 -3
  584. package/dist/HoverCard.d.ts.map +0 -1
  585. package/dist/Input.d.ts +0 -3
  586. package/dist/Input.d.ts.map +0 -1
  587. package/dist/Label.d.ts +0 -3
  588. package/dist/Label.d.ts.map +0 -1
  589. package/dist/Layout.d.ts +0 -3
  590. package/dist/Layout.d.ts.map +0 -1
  591. package/dist/Menu-010405cb.js +0 -1
  592. package/dist/Menu-43e67281.mjs +0 -142
  593. package/dist/Menu.d.ts +0 -3
  594. package/dist/Menu.d.ts.map +0 -1
  595. package/dist/Menubar.d.ts +0 -3
  596. package/dist/Menubar.d.ts.map +0 -1
  597. package/dist/Popover.d.ts +0 -3
  598. package/dist/Popover.d.ts.map +0 -1
  599. package/dist/QuickActions.d.ts +0 -3
  600. package/dist/QuickActions.d.ts.map +0 -1
  601. package/dist/Rating.d.ts +0 -2
  602. package/dist/Rating.d.ts.map +0 -1
  603. package/dist/Select.d.ts +0 -3
  604. package/dist/Select.d.ts.map +0 -1
  605. package/dist/SelectionPopup.d.ts +0 -3
  606. package/dist/SelectionPopup.d.ts.map +0 -1
  607. package/dist/Sidebar.d.ts +0 -3
  608. package/dist/Sidebar.d.ts.map +0 -1
  609. package/dist/Switch.d.ts +0 -3
  610. package/dist/Switch.d.ts.map +0 -1
  611. package/dist/Tabs.d.ts +0 -3
  612. package/dist/Tabs.d.ts.map +0 -1
  613. package/dist/Textarea.d.ts +0 -3
  614. package/dist/Textarea.d.ts.map +0 -1
  615. package/dist/ToggleGroup-4e0917a9.js +0 -1
  616. package/dist/ToggleGroup-5ef6a876.mjs +0 -118
  617. package/dist/ToggleGroup.d.ts +0 -3
  618. package/dist/ToggleGroup.d.ts.map +0 -1
  619. package/dist/Tree.d.ts +0 -3
  620. package/dist/Tree.d.ts.map +0 -1
  621. package/dist/Wizard.d.ts +0 -3
  622. package/dist/Wizard.d.ts.map +0 -1
package/dist/index.esm.js CHANGED
@@ -1,4483 +1,448 @@
1
- import * as W from "react";
2
- import h, { useRef as Q, useImperativeHandle as V, useEffect as G, useLayoutEffect as z, useState as Le, createContext as ke, useMemo as Re, useContext as Pe, useCallback as ce } from "react";
3
- import { w as de, s as ge } from "./_internals-f8fb69a8.mjs";
4
- import { Alert as Si, AlertActions as Hi, AlertDescription as ki, AlertIcon as Ri, AlertTitle as Pi } from "./Alert.esm.js";
5
- import { Input as $i } from "./Input.esm.js";
6
- import { Textarea as Fi } from "./Textarea.esm.js";
7
- import { Combobox as Di } from "./Combobox.esm.js";
8
- import { Wizard as Ji } from "./Wizard.esm.js";
9
- import { Rating as Gi } from "./Rating.esm.js";
10
- import { QuickActions as qi } from "./QuickActions.esm.js";
11
- import { Menubar as _i } from "./Menubar.esm.js";
12
- import { createDialogManager as vt, computePosition as pt, applyTheme as At, defaultTokens as Se, createAlertDialogManager as yt } from "@editora/ui-core";
13
- import { Popover as Xi } from "./Popover.esm.js";
14
- import { Tabs as Ki } from "./Tabs.esm.js";
15
- import { M as Wi, a as zi, c as Oi, b as Vi } from "./Menu-43e67281.mjs";
16
- import { toastAdvanced as ue } from "@editora/toast";
17
- import { toastAdvanced as el, default as tl, toastPro as rl } from "@editora/toast";
18
- import { FloatingToolbar as il } from "./FloatingToolbar.esm.js";
19
- import { C as ul, a as sl } from "./Command-93c3b761.mjs";
20
- import { C as cl, a as fl } from "./CommandPalette-136d08a9.mjs";
21
- import { createPortal as Et } from "react-dom";
22
- import { SelectionPopup as al } from "./SelectionPopup.esm.js";
23
- import { Form as bl } from "./Form.esm.js";
24
- import { Sidebar as pl } from "./Sidebar.esm.js";
25
- import { Tree as yl } from "./Tree.esm.js";
26
- import { Breadcrumb as Ll } from "./Breadcrumb.esm.js";
27
- import { C as wl, a as hl, d as Nl, A as Sl, c as Hl, b as kl } from "./AppHeader-49a8d3e0.mjs";
28
- import { Drawer as Pl } from "./Drawer.esm.js";
29
- import { Layout as $l } from "./Layout.esm.js";
30
- import { Switch as Fl } from "./Switch.esm.js";
31
- import { T as Dl, a as Bl } from "./ToggleGroup-5ef6a876.mjs";
32
- import { Collapsible as jl } from "./Collapsible.esm.js";
33
- import { Accordion as Ml } from "./Accordion.esm.js";
34
- import { HoverCard as Ul } from "./HoverCard.esm.js";
35
- import { Card as Ql } from "./Card.esm.js";
36
- import { Label as Yl } from "./Label.esm.js";
37
- import { Select as Zl } from "./Select.esm.js";
38
- function He(v, e, t) {
39
- if (t == null || !t) {
40
- v.removeAttribute(e);
41
- return;
42
- }
43
- v.setAttribute(e, "");
44
- }
45
- function oe(v, e, t) {
46
- if (!t) {
47
- v.removeAttribute(e);
48
- return;
49
- }
50
- v.setAttribute(e, t);
51
- }
52
- const Lt = h.forwardRef(function({
53
- children: e,
54
- onClick: t,
55
- variant: l,
56
- size: r,
57
- recipe: i,
58
- radius: f,
59
- scale: c,
60
- icon: s,
61
- startIcon: u,
62
- endIcon: p,
63
- loading: n,
64
- loadingLabel: b,
65
- state: A,
66
- tone: y,
67
- block: m,
68
- headless: a,
69
- disabled: d,
70
- animation: o,
71
- theme: L,
72
- type: g,
73
- ariaLabel: E,
74
- ...N
75
- }, w) {
76
- const S = Q(null), k = typeof window < "u" ? h.useLayoutEffect : h.useEffect;
77
- V(w, () => S.current), G(() => {
78
- de("ui-button", "Button");
79
- }, []), G(() => {
80
- const F = S.current;
81
- if (!F || !t)
82
- return;
83
- const D = (q) => t(q);
84
- return F.addEventListener("click", D), () => F.removeEventListener("click", D);
85
- }, [t]), k(() => {
86
- const F = S.current;
87
- if (!F)
88
- return;
89
- oe(F, "variant", l), r && r !== "md" ? oe(F, "size", r) : F.removeAttribute("size"), oe(F, "icon", s);
90
- const D = A || (n ? "loading" : "idle");
91
- D === "idle" ? F.removeAttribute("state") : oe(F, "state", D), He(F, "loading", !!n), He(F, "block", !!m), He(F, "headless", !!a), He(F, "disabled", !!d), oe(F, "animation", o), L && L !== "default" ? oe(F, "theme", L) : F.removeAttribute("theme"), oe(F, "tone", y), g && g !== "button" ? oe(F, "type", g) : F.removeAttribute("type"), b !== void 0 && oe(F, "loading-label", b), E !== void 0 && oe(F, "aria-label", E), oe(F, "recipe", i), oe(F, "radius", f != null ? String(f) : void 0), oe(F, "scale", c);
92
- }, [l, r, i, f, c, s, n, A, m, a, d, o, L, y, g, b, E]);
93
- const J = {
94
- ref: S,
95
- ...N,
96
- variant: l,
97
- size: r && r !== "md" ? r : void 0,
98
- recipe: i,
99
- radius: f != null ? String(f) : void 0,
100
- scale: c,
101
- icon: s,
102
- animation: o,
103
- tone: y,
104
- type: g && g !== "button" ? g : void 0,
105
- loading: n ? "" : void 0,
106
- block: m ? "" : void 0,
107
- headless: a ? "" : void 0,
108
- disabled: d ? "" : void 0,
109
- theme: L && L !== "default" ? L : void 0,
110
- state: A && A !== "idle" ? A : void 0,
111
- "loading-label": b,
112
- "aria-label": E
113
- }, x = u == null ? null : h.createElement("span", { slot: "prefix", "aria-hidden": "true" }, u), $ = p == null ? null : h.createElement("span", { slot: "suffix", "aria-hidden": "true" }, p);
114
- return h.createElement("ui-button", J, x, e, $);
115
- });
116
- Lt.displayName = "Button";
117
- const gt = typeof window < "u" ? z : G, wt = h.forwardRef(function({
118
- children: e,
119
- text: t,
120
- placement: l,
121
- open: r,
122
- disabled: i,
123
- headless: f,
124
- variant: c,
125
- size: s,
126
- tone: u,
127
- delay: p,
128
- closeDelay: n,
129
- trigger: b,
130
- offset: A,
131
- interactive: y,
132
- arrow: m,
133
- onOpen: a,
134
- onClose: d,
135
- onOpenChange: o,
136
- ...L
137
- }, g) {
138
- const E = Q(null);
139
- return V(g, () => E.current), G(() => {
140
- const N = E.current;
141
- if (!N)
142
- return;
143
- const w = () => {
144
- a == null || a();
145
- }, S = () => {
146
- d == null || d();
147
- }, k = (J) => {
148
- const x = J.detail;
149
- x && typeof x.open == "boolean" && (o == null || o(x.open));
150
- };
151
- return N.addEventListener("open", w), N.addEventListener("close", S), N.addEventListener("change", k), () => {
152
- N.removeEventListener("open", w), N.removeEventListener("close", S), N.removeEventListener("change", k);
153
- };
154
- }, [a, d, o]), gt(() => {
155
- const N = E.current;
156
- if (!N)
157
- return;
158
- const w = (k, J) => {
159
- const x = N.getAttribute(k);
160
- if (J == null) {
161
- x != null && N.removeAttribute(k);
162
- return;
163
- }
164
- x !== J && N.setAttribute(k, J);
165
- }, S = (k, J) => {
166
- J ? w(k, "") : w(k, null);
167
- };
168
- w("text", t || null), w("placement", l || null), S("open", r), S("disabled", i), S("headless", f), w("variant", c && c !== "default" ? c : null), w("size", s && s !== "md" ? s : null), w("tone", u && u !== "default" ? u : null), w("delay", typeof p == "number" && Number.isFinite(p) ? String(p) : null), w("close-delay", typeof n == "number" && Number.isFinite(n) ? String(n) : null), w("trigger", b || null), w("offset", typeof A == "number" && Number.isFinite(A) ? String(A) : null), S("interactive", y), typeof m == "boolean" ? w("arrow", m ? "true" : "false") : w("arrow", null);
169
- }, [t, l, r, i, f, c, s, u, p, n, b, A, y, m]), h.createElement("ui-tooltip", { ref: E, ...L }, e);
170
- });
171
- wt.displayName = "Tooltip";
172
- const ht = typeof window < "u" ? z : G, je = h.forwardRef(function({
173
- children: e,
174
- open: t,
175
- placement: l,
176
- variant: r,
177
- size: i,
178
- density: f,
179
- radius: c,
180
- shape: s,
181
- elevation: u,
182
- tone: p,
183
- closeOnSelect: n,
184
- typeahead: b,
185
- onOpen: A,
186
- onClose: y,
187
- onChange: m,
188
- onChangeDetail: a,
189
- onRequestClose: d,
190
- onSelect: o,
191
- ...L
192
- }, g) {
193
- const E = Q(null);
194
- return V(g, () => E.current), G(() => {
195
- const N = E.current;
196
- if (!N)
197
- return;
198
- const w = () => A == null ? void 0 : A(), S = () => y == null ? void 0 : y(), k = ($) => {
199
- const F = $.detail || {};
200
- typeof F.open == "boolean" && (m == null || m(F.open)), typeof F.open == "boolean" && (a == null || a({ open: F.open, reason: F.reason }));
201
- }, J = ($) => {
202
- const F = $.detail || {};
203
- typeof F.reason == "string" && (d == null || d({ reason: F.reason }));
204
- }, x = ($) => {
205
- o == null || o($.detail || {});
206
- };
207
- return N.addEventListener("open", w), N.addEventListener("close", S), N.addEventListener("change", k), N.addEventListener("request-close", J), N.addEventListener("select", x), () => {
208
- N.removeEventListener("open", w), N.removeEventListener("close", S), N.removeEventListener("change", k), N.removeEventListener("request-close", J), N.removeEventListener("select", x);
209
- };
210
- }, [A, y, m, a, d, o]), ht(() => {
211
- const N = E.current;
212
- if (!N)
213
- return;
214
- const w = (k, J) => {
215
- const x = N.getAttribute(k);
216
- if (J == null) {
217
- x != null && N.removeAttribute(k);
218
- return;
219
- }
220
- x !== J && N.setAttribute(k, J);
221
- }, S = (k, J, x = "presence") => {
222
- if (x === "presence") {
223
- J ? N.hasAttribute(k) || N.setAttribute(k, "") : N.hasAttribute(k) && N.removeAttribute(k);
224
- return;
225
- }
226
- if (J == null) {
227
- N.hasAttribute(k) && N.removeAttribute(k);
228
- return;
229
- }
230
- const $ = J ? "true" : "false";
231
- N.getAttribute(k) !== $ && N.setAttribute(k, $);
232
- };
233
- S("open", t), w("placement", l || null), w("variant", r && r !== "default" && r !== "surface" ? r : null), w("size", i && i !== "md" && i !== "2" ? i : null), w("density", f && f !== "default" ? f : null), w("radius", c == null || c === "" || c === "default" ? null : String(c)), w("shape", s && s !== "default" && s !== "rounded" ? s : null), w("elevation", u && u !== "default" ? u : null), w("tone", p && p !== "default" && p !== "brand" ? p : null), S("close-on-select", n, "value"), S("typeahead", b, "value");
234
- }, [t, l, r, i, f, c, s, u, p, n, b]), h.createElement("ui-dropdown", { ref: E, ...L }, e);
235
- });
236
- je.displayName = "Dropdown";
237
- const Ge = h.forwardRef(function(e, t) {
238
- return /* @__PURE__ */ h.createElement("button", { ...e, ref: t, slot: "trigger" });
239
- });
240
- Ge.displayName = "Dropdown.Trigger";
241
- const Me = h.forwardRef(function({ as: e = "div", ...t }, l) {
242
- return h.createElement(e, { ...t, ref: l, slot: "content" });
243
- });
244
- Me.displayName = "Dropdown.Content";
245
- const qe = h.forwardRef(function({
246
- children: e,
247
- icon: t,
248
- shortcut: l,
249
- caption: r,
250
- tone: i,
251
- role: f = "menuitem",
252
- checked: c,
253
- className: s,
254
- value: u,
255
- label: p,
256
- "aria-label": n,
257
- ...b
258
- }, A) {
259
- const y = ["item", s].filter(Boolean).join(" "), m = f === "menuitemcheckbox" || f === "menuitemradio" ? /* @__PURE__ */ h.createElement("span", { className: "selection-icon", "aria-hidden": "true" }) : null;
260
- return /* @__PURE__ */ h.createElement(
261
- "div",
262
- {
263
- ...b,
264
- ref: A,
265
- role: f,
266
- tabIndex: b.tabIndex ?? -1,
267
- className: y,
268
- "data-tone": i,
269
- "data-value": u,
270
- "aria-label": p ?? n,
271
- "aria-checked": f === "menuitemcheckbox" || f === "menuitemradio" ? c ? "true" : "false" : void 0,
272
- "data-menu-item": "true"
273
- },
274
- m,
275
- t ? /* @__PURE__ */ h.createElement("span", { className: "icon", "aria-hidden": "true" }, t) : null,
276
- /* @__PURE__ */ h.createElement("span", { className: "label" }, /* @__PURE__ */ h.createElement("span", { className: "text" }, e), r ? /* @__PURE__ */ h.createElement("span", { className: "caption" }, r) : null),
277
- l ? /* @__PURE__ */ h.createElement("span", { className: "shortcut" }, l) : null
278
- );
279
- });
280
- qe.displayName = "Dropdown.Item";
281
- const Ue = h.forwardRef(function({ className: e, ...t }, l) {
282
- const r = ["separator", e].filter(Boolean).join(" ");
283
- return /* @__PURE__ */ h.createElement("div", { ...t, ref: l, role: "separator", className: r });
284
- });
285
- Ue.displayName = "Dropdown.Separator";
286
- const _e = h.forwardRef(function({ children: e, className: t, ...l }, r) {
287
- const i = ["section-label", t].filter(Boolean).join(" ");
288
- return /* @__PURE__ */ h.createElement("div", { ...l, ref: r, className: i }, e);
289
- });
290
- _e.displayName = "Dropdown.SectionLabel";
291
- const Xn = Object.assign(je, {
292
- Trigger: Ge,
293
- Content: Me,
294
- Item: qe,
295
- Separator: Ue,
296
- SectionLabel: _e
297
- }), Nt = typeof window < "u" ? z : G, St = h.forwardRef(function(e, t) {
298
- const {
299
- value: l,
300
- onChange: r,
301
- onInput: i,
302
- onDebouncedInput: f,
303
- onClear: c,
304
- onVisibilityChange: s,
305
- onStrengthChange: u,
306
- clearable: p,
307
- debounce: n,
308
- validation: b,
309
- size: A,
310
- minlength: y,
311
- maxlength: m,
312
- readOnly: a,
313
- autofocus: d,
314
- disabled: o,
315
- counter: L,
316
- floatingLabel: g,
317
- name: E,
318
- required: N,
319
- pattern: w,
320
- autoComplete: S,
321
- spellCheck: k,
322
- placeholder: J,
323
- variant: x,
324
- tone: $,
325
- density: F,
326
- shape: D,
327
- color: q,
328
- radius: R,
329
- label: T,
330
- description: j,
331
- error: I,
332
- showStrength: H,
333
- revealable: P,
334
- strengthEvaluator: B,
335
- children: U,
336
- ...Y
337
- } = e, _ = Q(null);
338
- return V(t, () => _.current), G(() => {
339
- const M = _.current;
340
- if (!M)
341
- return;
342
- const X = (te) => {
343
- const re = te.detail;
344
- typeof (re == null ? void 0 : re.value) == "string" && (i == null || i(re.value));
345
- }, O = (te) => {
346
- const re = te.detail;
347
- typeof (re == null ? void 0 : re.value) == "string" && (r == null || r(re.value));
348
- }, K = (te) => {
349
- const re = te.detail;
350
- typeof (re == null ? void 0 : re.value) == "string" && (f == null || f(re.value));
351
- }, C = () => c == null ? void 0 : c(), ee = (te) => {
352
- const re = te.detail;
353
- s == null || s(!!(re != null && re.revealed));
354
- }, ie = (te) => {
355
- const re = te.detail;
356
- re && (u == null || u(re));
357
- };
358
- return M.addEventListener("input", X), M.addEventListener("change", O), M.addEventListener("debounced-input", K), M.addEventListener("clear", C), M.addEventListener("visibility-change", ee), M.addEventListener("strength-change", ie), () => {
359
- M.removeEventListener("input", X), M.removeEventListener("change", O), M.removeEventListener("debounced-input", K), M.removeEventListener("clear", C), M.removeEventListener("visibility-change", ee), M.removeEventListener("strength-change", ie);
360
- };
361
- }, [r, c, f, i, u, s]), Nt(() => {
362
- const M = _.current;
363
- if (!M)
364
- return;
365
- const X = (K, C) => {
366
- const ee = M.getAttribute(K);
367
- if (C == null) {
368
- ee != null && M.removeAttribute(K);
369
- return;
370
- }
371
- ee !== C && M.setAttribute(K, C);
372
- }, O = (K, C) => {
373
- C ? M.hasAttribute(K) || M.setAttribute(K, "") : M.hasAttribute(K) && M.removeAttribute(K);
374
- };
375
- l !== void 0 && X("value", l ?? null), X("debounce", typeof n == "number" && Number.isFinite(n) ? String(n) : null), X("validation", b && b !== "none" ? b : null), X("size", A && A !== "md" && A !== "2" ? String(A) : null), X("minlength", typeof y == "number" ? String(y) : null), X("maxlength", typeof m == "number" ? String(m) : null), X("pattern", w ?? null), X("autocomplete", S ?? null), X("spellcheck", typeof k == "boolean" ? String(k) : null), X("placeholder", J ?? null), X("variant", x && x !== "classic" ? x : null), X("tone", $ && $ !== "default" ? $ : null), X("density", F && F !== "default" ? F : null), X("shape", D && D !== "default" ? D : null), X("color", q ?? null), X("radius", R ? String(R) : null), X("label", T ?? null), X("description", j ?? null), X("data-error", I ?? null), X("name", E ?? null), O("clearable", p), O("readonly", a), O("autofocus", d), O("disabled", o), O("counter", L), O("floating-label", g), O("required", N), O("show-strength", H), typeof P == "boolean" ? X("revealable", String(P)) : M.removeAttribute("revealable"), M.strengthEvaluator = B ?? null;
376
- }, [
377
- S,
378
- d,
379
- p,
380
- q,
381
- L,
382
- n,
383
- F,
384
- j,
385
- o,
386
- I,
387
- g,
388
- T,
389
- m,
390
- y,
391
- E,
392
- w,
393
- J,
394
- R,
395
- a,
396
- N,
397
- P,
398
- H,
399
- D,
400
- A,
401
- k,
402
- B,
403
- $,
404
- b,
405
- l,
406
- x
407
- ]), h.createElement("ui-password-field", { ref: _, ...Y }, U);
408
- });
409
- St.displayName = "PasswordField";
410
- const Ht = typeof window < "u" ? z : G;
411
- function kt(v) {
412
- return v == null ? null : Array.isArray(v) ? JSON.stringify(v) : v;
413
- }
414
- const Rt = h.forwardRef(function({
415
- value: e,
416
- name: t,
417
- label: l,
418
- description: r,
419
- placeholder: i,
420
- required: f,
421
- disabled: c,
422
- readOnly: s,
423
- counter: u,
424
- maxTags: p,
425
- allowDuplicates: n,
426
- addOnBlur: b,
427
- onChange: A,
428
- onTagAdd: y,
429
- onTagRemove: m,
430
- children: a,
431
- ...d
432
- }, o) {
433
- const L = Q(null);
434
- return V(o, () => L.current), G(() => {
435
- const g = L.current;
436
- if (!g)
437
- return;
438
- const E = (S) => {
439
- const k = S.detail;
440
- Array.isArray(k == null ? void 0 : k.value) && (A == null || A(k.value));
441
- }, N = (S) => {
442
- const k = S.detail;
443
- k && (y == null || y(k));
444
- }, w = (S) => {
445
- const k = S.detail;
446
- k && (m == null || m(k));
447
- };
448
- return g.addEventListener("change", E), g.addEventListener("tag-add", N), g.addEventListener("tag-remove", w), () => {
449
- g.removeEventListener("change", E), g.removeEventListener("tag-add", N), g.removeEventListener("tag-remove", w);
450
- };
451
- }, [A, y, m]), Ht(() => {
452
- const g = L.current;
453
- if (!g)
454
- return;
455
- const E = (w, S) => {
456
- const k = g.getAttribute(w);
457
- if (S == null) {
458
- k != null && g.removeAttribute(w);
459
- return;
460
- }
461
- k !== S && g.setAttribute(w, S);
462
- }, N = (w, S) => {
463
- S ? g.hasAttribute(w) || g.setAttribute(w, "") : g.hasAttribute(w) && g.removeAttribute(w);
464
- };
465
- E("value", kt(e)), E("name", t ?? null), E("label", l ?? null), E("description", r ?? null), E("placeholder", i ?? null), N("required", f), N("disabled", c), N("readonly", s), N("counter", u), N("allow-duplicates", n), N("add-on-blur", b), E("max-tags", typeof p == "number" ? String(p) : null);
466
- }, [e, t, l, r, i, f, c, s, u, n, b, p]), h.createElement("ui-tags-input", { ref: L, ...d }, a);
467
- });
468
- Rt.displayName = "TagsInput";
469
- const Pt = typeof window < "u" ? z : G, Qe = h.forwardRef(function({
470
- value: e,
471
- onChange: t,
472
- onComplete: l,
473
- length: r,
474
- name: i,
475
- label: f,
476
- description: c,
477
- error: s,
478
- mode: u,
479
- mask: p,
480
- required: n,
481
- disabled: b,
482
- readOnly: A,
483
- placeholderChar: y,
484
- size: m,
485
- density: a,
486
- shape: d,
487
- invalid: o,
488
- children: L,
489
- ...g
490
- }, E) {
491
- const N = Q(null);
492
- return V(E, () => N.current), G(() => {
493
- const w = N.current;
494
- if (!w)
495
- return;
496
- const S = (J) => {
497
- t == null || t(J.detail.value || "");
498
- }, k = (J) => {
499
- l == null || l(J.detail.value || "");
500
- };
501
- return w.addEventListener("change", S), w.addEventListener("complete", k), () => {
502
- w.removeEventListener("change", S), w.removeEventListener("complete", k);
503
- };
504
- }, [t, l]), Pt(() => {
505
- const w = N.current;
506
- w && (e != null && e !== "" ? w.setAttribute("value", e) : w.removeAttribute("value"), typeof r == "number" && Number.isFinite(r) ? w.setAttribute("length", String(r)) : w.removeAttribute("length"), i ? w.setAttribute("name", i) : w.removeAttribute("name"), f ? w.setAttribute("label", f) : w.removeAttribute("label"), c ? w.setAttribute("description", c) : w.removeAttribute("description"), s ? w.setAttribute("error", s) : w.removeAttribute("error"), u && u !== "numeric" ? w.setAttribute("mode", u) : w.removeAttribute("mode"), p ? w.setAttribute("mask", "") : w.removeAttribute("mask"), n ? w.setAttribute("required", "") : w.removeAttribute("required"), b ? w.setAttribute("disabled", "") : w.removeAttribute("disabled"), A ? w.setAttribute("readonly", "") : w.removeAttribute("readonly"), y ? w.setAttribute("placeholder-char", y) : w.removeAttribute("placeholder-char"), m && m !== "md" && m !== "2" ? w.setAttribute("size", m) : w.removeAttribute("size"), a && a !== "default" ? w.setAttribute("density", a) : w.removeAttribute("density"), d && d !== "default" ? w.setAttribute("shape", d) : w.removeAttribute("shape"), o ? w.setAttribute("invalid", "") : w.removeAttribute("invalid"));
507
- }, [e, r, i, f, c, s, u, p, n, b, A, y, m, a, d, o]), h.createElement("ui-pin-input", { ref: N, ...g }, L);
508
- });
509
- Qe.displayName = "PinInput";
510
- const Yn = Qe, xt = typeof window < "u" ? z : G;
511
- function Xe(v, {
512
- onChange: e,
513
- onReject: t,
514
- onUploadStart: l,
515
- onUploadProgress: r,
516
- onUploadSuccess: i,
517
- onUploadError: f,
518
- onUploadCancel: c,
519
- onUploadComplete: s
520
- }) {
521
- G(() => {
522
- const u = v.current;
523
- if (!u)
524
- return;
525
- const p = (L) => {
526
- const g = L.detail;
527
- Array.isArray(g == null ? void 0 : g.files) && (e == null || e(g.files));
528
- }, n = (L) => {
529
- const g = L.detail;
530
- Array.isArray(g == null ? void 0 : g.rejected) && (t == null || t(g.rejected));
531
- }, b = (L) => (g) => {
532
- L == null || L(g.detail || {});
533
- }, A = b(l), y = b(r), m = b(i), a = b(f), d = b(c), o = b(s);
534
- return u.addEventListener("change", p), u.addEventListener("reject", n), u.addEventListener("upload-start", A), u.addEventListener("upload-progress", y), u.addEventListener("upload-success", m), u.addEventListener("upload-error", a), u.addEventListener("upload-cancel", d), u.addEventListener("upload-complete", o), () => {
535
- u.removeEventListener("change", p), u.removeEventListener("reject", n), u.removeEventListener("upload-start", A), u.removeEventListener("upload-progress", y), u.removeEventListener("upload-success", m), u.removeEventListener("upload-error", a), u.removeEventListener("upload-cancel", d), u.removeEventListener("upload-complete", o);
536
- };
537
- }, [e, t, c, s, f, r, l, i, v]);
538
- }
539
- function Ye(v, {
540
- name: e,
541
- label: t,
542
- description: l,
543
- accept: r,
544
- multiple: i,
545
- disabled: f,
546
- required: c,
547
- maxFiles: s,
548
- maxSize: u,
549
- buttonText: p,
550
- dropLabel: n,
551
- showPreviews: b,
552
- progress: A,
553
- uploadOnSelect: y,
554
- uploadButtonText: m,
555
- onUploadRequest: a
556
- }) {
557
- xt(() => {
558
- const d = v.current;
559
- if (!d)
560
- return;
561
- const o = (g, E) => {
562
- const N = d.getAttribute(g);
563
- if (E == null) {
564
- N != null && d.removeAttribute(g);
565
- return;
566
- }
567
- N !== E && d.setAttribute(g, E);
568
- }, L = (g, E) => {
569
- E ? d.hasAttribute(g) || d.setAttribute(g, "") : d.hasAttribute(g) && d.removeAttribute(g);
570
- };
571
- o("name", e ?? null), o("label", t ?? null), o("description", l ?? null), o("accept", r ?? null), L("multiple", i), L("disabled", f), L("required", c), o("max-files", typeof s == "number" ? String(s) : null), o("max-size", typeof u == "number" ? String(u) : null), o("button-text", p ?? null), o("drop-label", n ?? null), L("show-previews", b), L("upload-on-select", y), o("upload-button-text", m ?? null), o("progress", A ? JSON.stringify(A) : null), d.uploadRequest = a ?? null;
572
- }, [r, p, l, f, n, t, s, u, i, e, v, c, b, A, y, m, a]);
573
- }
574
- const $t = h.forwardRef(function({ onChange: e, onReject: t, children: l, ...r }, i) {
575
- const f = Q(null);
576
- return V(i, () => f.current), Xe(f, { onChange: e, onReject: t, ...r }), Ye(f, r), h.createElement("ui-file-upload", { ref: f, ...r }, l);
577
- }), Tt = h.forwardRef(function({ onChange: e, onReject: t, children: l, ...r }, i) {
578
- const f = Q(null);
579
- return V(i, () => f.current), Xe(f, { onChange: e, onReject: t, ...r }), Ye(f, r), h.createElement("ui-dropzone", { ref: f, ...r }, l);
580
- });
581
- $t.displayName = "FileUpload";
582
- Tt.displayName = "Dropzone";
583
- const Ft = typeof window < "u" ? z : G;
584
- function Kn(v) {
585
- const {
586
- children: e,
587
- label: t,
588
- description: l,
589
- error: r,
590
- htmlFor: i,
591
- required: f,
592
- invalid: c,
593
- orientation: s,
594
- variant: u,
595
- tone: p,
596
- density: n,
597
- shape: b,
598
- shell: A,
599
- labelWidth: y,
600
- headless: m,
601
- ...a
602
- } = v, d = Q(null);
603
- return Ft(() => {
604
- const o = d.current;
605
- o && (t != null && t !== "" ? o.setAttribute("label", t) : o.removeAttribute("label"), l != null && l !== "" ? o.setAttribute("description", l) : o.removeAttribute("description"), r != null && r !== "" ? o.setAttribute("error", r) : o.removeAttribute("error"), i ? o.setAttribute("for", i) : o.removeAttribute("for"), f ? o.setAttribute("required", "") : o.removeAttribute("required"), c ? o.setAttribute("invalid", "") : o.removeAttribute("invalid"), s && s !== "vertical" ? o.setAttribute("orientation", s) : o.removeAttribute("orientation"), u && u !== "default" ? o.setAttribute("variant", u) : o.removeAttribute("variant"), p && p !== "default" ? o.setAttribute("tone", p) : o.removeAttribute("tone"), n && n !== "default" ? o.setAttribute("density", n) : o.removeAttribute("density"), b && b !== "default" ? o.setAttribute("shape", b) : o.removeAttribute("shape"), A && A !== "none" ? o.setAttribute("shell", A) : o.removeAttribute("shell"), y ? o.setAttribute("label-width", y) : o.removeAttribute("label-width"), m ? o.setAttribute("headless", "") : o.removeAttribute("headless"));
606
- }, [
607
- t,
608
- l,
609
- r,
610
- i,
611
- f,
612
- c,
613
- s,
614
- u,
615
- p,
616
- n,
617
- b,
618
- A,
619
- y,
620
- m
621
- ]), h.createElement("ui-field", { ref: d, ...a }, e);
622
- }
623
- const xe = typeof window < "u" ? z : G, It = h.forwardRef(function({ children: e, htmlFor: t, for: l, tone: r, size: i, variant: f, hidden: c, ...s }, u) {
624
- const p = Q(null);
625
- return V(u, () => p.current), xe(() => {
626
- const n = p.current;
627
- if (!n)
628
- return;
629
- const b = t || l;
630
- b ? n.setAttribute("for", b) : n.removeAttribute("for"), r && r !== "default" ? n.setAttribute("tone", r) : n.removeAttribute("tone"), i && i !== "md" && i !== "2" ? n.setAttribute("size", i) : n.removeAttribute("size"), f && f !== "default" ? n.setAttribute("variant", f) : n.removeAttribute("variant"), c ? n.setAttribute("hidden", "") : n.removeAttribute("hidden");
631
- }, [t, l, r, i, f, c]), h.createElement("ui-description", { ref: p, ...s }, e);
632
- });
633
- It.displayName = "Description";
634
- const Dt = h.forwardRef(function({ children: e, htmlFor: t, for: l, active: r, size: i, variant: f, hidden: c, ...s }, u) {
635
- const p = Q(null);
636
- return V(u, () => p.current), xe(() => {
637
- const n = p.current;
638
- if (!n)
639
- return;
640
- const b = t || l;
641
- b ? n.setAttribute("for", b) : n.removeAttribute("for"), r ? n.setAttribute("active", "") : n.removeAttribute("active"), i && i !== "md" && i !== "2" ? n.setAttribute("size", i) : n.removeAttribute("size"), f && f !== "default" ? n.setAttribute("variant", f) : n.removeAttribute("variant"), c ? n.setAttribute("hidden", "") : n.removeAttribute("hidden");
642
- }, [t, l, r, i, f, c]), h.createElement("ui-field-error", { ref: p, ...s }, e);
643
- });
644
- Dt.displayName = "FieldError";
645
- const Bt = h.forwardRef(function({ children: e, label: t, orientation: l, variant: r, density: i, hidden: f, ...c }, s) {
646
- const u = Q(null);
647
- return V(s, () => u.current), xe(() => {
648
- const p = u.current;
649
- p && (t ? p.setAttribute("label", t) : p.removeAttribute("label"), l && l !== "vertical" ? p.setAttribute("orientation", l) : p.removeAttribute("orientation"), r && r !== "default" ? p.setAttribute("variant", r) : p.removeAttribute("variant"), i && i !== "default" ? p.setAttribute("density", i) : p.removeAttribute("density"), f ? p.setAttribute("hidden", "") : p.removeAttribute("hidden"));
650
- }, [t, l, r, i, f]), h.createElement("ui-control-group", { ref: u, ...c }, e);
651
- });
652
- Bt.displayName = "ControlGroup";
653
- const Jt = h.forwardRef(function({
654
- children: e,
655
- legend: t,
656
- description: l,
657
- error: r,
658
- required: i,
659
- invalid: f,
660
- orientation: c,
661
- variant: s,
662
- tone: u,
663
- density: p,
664
- shape: n,
665
- headless: b,
666
- ...A
667
- }, y) {
668
- const m = Q(null);
669
- return V(y, () => m.current), xe(() => {
670
- const a = m.current;
671
- a && (t != null && t !== "" ? a.setAttribute("legend", t) : a.removeAttribute("legend"), l != null && l !== "" ? a.setAttribute("description", l) : a.removeAttribute("description"), r != null && r !== "" ? a.setAttribute("error", r) : a.removeAttribute("error"), i ? a.setAttribute("required", "") : a.removeAttribute("required"), f ? a.setAttribute("invalid", "") : a.removeAttribute("invalid"), c && c !== "vertical" ? a.setAttribute("orientation", c) : a.removeAttribute("orientation"), s && s !== "default" ? a.setAttribute("variant", s) : a.removeAttribute("variant"), u && u !== "default" ? a.setAttribute("tone", u) : a.removeAttribute("tone"), p && p !== "default" ? a.setAttribute("density", p) : a.removeAttribute("density"), n && n !== "default" ? a.setAttribute("shape", n) : a.removeAttribute("shape"), b ? a.setAttribute("headless", "") : a.removeAttribute("headless"));
672
- }, [t, l, r, i, f, c, s, u, p, n, b]), h.createElement("ui-fieldset", { ref: m, ...A }, e);
673
- });
674
- Jt.displayName = "Fieldset";
675
- const jt = typeof window < "u" ? z : G;
676
- function Zn(v) {
677
- const {
678
- text: e,
679
- tone: t,
680
- variant: l,
681
- size: r,
682
- radius: i,
683
- elevation: f,
684
- state: c,
685
- pill: s,
686
- dot: u,
687
- interactive: p,
688
- truncate: n,
689
- maxWidth: b,
690
- removable: A,
691
- autoRemove: y,
692
- iconOnly: m,
693
- disabled: a,
694
- onRemove: d,
695
- children: o,
696
- ...L
697
- } = v, g = Q(null);
698
- return G(() => {
699
- const E = g.current;
700
- if (!E)
701
- return;
702
- const N = (w) => d == null ? void 0 : d(w.detail);
703
- return E.addEventListener("remove", N), () => E.removeEventListener("remove", N);
704
- }, [d]), jt(() => {
705
- const E = g.current;
706
- E && (e ? E.setAttribute("text", e) : E.removeAttribute("text"), t ? E.setAttribute("tone", t) : E.removeAttribute("tone"), l && l !== "surface" ? E.setAttribute("variant", l) : E.removeAttribute("variant"), r && r !== "md" && r !== "2" ? E.setAttribute("size", r) : E.removeAttribute("size"), i != null ? E.setAttribute("radius", String(i)) : E.removeAttribute("radius"), f && f !== "none" ? E.setAttribute("elevation", f) : E.removeAttribute("elevation"), c && c !== "idle" ? E.setAttribute("state", c) : E.removeAttribute("state"), s ? E.setAttribute("pill", "") : E.removeAttribute("pill"), u ? E.setAttribute("dot", "") : E.removeAttribute("dot"), p ? E.setAttribute("interactive", "") : E.removeAttribute("interactive"), n ? E.setAttribute("truncate", "") : E.removeAttribute("truncate"), b ? E.setAttribute("max-width", b) : E.removeAttribute("max-width"), A ? E.setAttribute("removable", "") : E.removeAttribute("removable"), y ? E.setAttribute("auto-remove", "") : E.removeAttribute("auto-remove"), m ? E.setAttribute("icon-only", "") : E.removeAttribute("icon-only"), a ? E.setAttribute("disabled", "") : E.removeAttribute("disabled"));
707
- }, [e, t, l, r, i, f, c, s, u, p, n, b, A, y, m, a]), h.createElement("ui-badge", { ref: g, ...L }, o);
708
- }
709
- const Gt = typeof window < "u" ? z : G;
710
- function Wn(v) {
711
- const {
712
- title: e,
713
- description: t,
714
- actionLabel: l,
715
- tone: r,
716
- compact: i,
717
- headless: f,
718
- onAction: c,
719
- children: s,
720
- ...u
721
- } = v, p = Q(null);
722
- return G(() => {
723
- const n = p.current;
724
- if (!n)
725
- return;
726
- const b = () => c == null ? void 0 : c();
727
- return n.addEventListener("action", b), () => n.removeEventListener("action", b);
728
- }, [c]), Gt(() => {
729
- const n = p.current;
730
- n && (e ? n.setAttribute("title", e) : n.removeAttribute("title"), t ? n.setAttribute("description", t) : n.removeAttribute("description"), l ? n.setAttribute("action-label", l) : n.removeAttribute("action-label"), r ? n.setAttribute("tone", r) : n.removeAttribute("tone"), i ? n.setAttribute("compact", "") : n.removeAttribute("compact"), f ? n.setAttribute("headless", "") : n.removeAttribute("headless"));
731
- }, [e, t, l, r, i, f]), h.createElement("ui-empty-state", { ref: p, ...u }, s);
732
- }
733
- function zn(v) {
734
- const {
735
- sortable: e,
736
- selectable: t,
737
- multiSelect: l,
738
- striped: r,
739
- hover: i,
740
- compact: f,
741
- bordered: c,
742
- stickyHeader: s,
743
- loading: u,
744
- headless: p,
745
- emptyText: n,
746
- onSortChange: b,
747
- onRowSelect: A,
748
- children: y,
749
- ...m
750
- } = v, a = Q(null);
751
- return G(() => {
752
- const d = a.current;
753
- if (!d)
754
- return;
755
- const o = (g) => {
756
- const E = g.detail;
757
- E && (b == null || b(E));
758
- }, L = (g) => {
759
- const E = g.detail;
760
- E && (A == null || A(E));
761
- };
762
- return d.addEventListener("sort-change", o), d.addEventListener("row-select", L), () => {
763
- d.removeEventListener("sort-change", o), d.removeEventListener("row-select", L);
764
- };
765
- }, [b, A]), h.createElement(
766
- "ui-table",
767
- {
768
- ref: a,
769
- ...m,
770
- ...e ? { sortable: "" } : {},
771
- ...t ? { selectable: "" } : {},
772
- ...l ? { "multi-select": "" } : {},
773
- ...r ? { striped: "" } : {},
774
- ...i ? { hover: "" } : {},
775
- ...f ? { compact: "" } : {},
776
- ...c ? { bordered: "" } : {},
777
- ...s ? { "sticky-header": "" } : {},
778
- ...u ? { loading: "" } : {},
779
- ...p ? { headless: "" } : {},
780
- ...n ? { "empty-text": n } : {}
781
- },
782
- y
783
- );
784
- }
785
- function On(v) {
786
- const {
787
- sortable: e,
788
- selectable: t,
789
- multiSelect: l,
790
- shape: r,
791
- variant: i,
792
- elevation: f,
793
- striped: c,
794
- hover: s,
795
- compact: u,
796
- bordered: p,
797
- stickyHeader: n,
798
- stickyFooter: b,
799
- loading: A,
800
- state: y,
801
- stateText: m,
802
- headless: a,
803
- hideSummary: d,
804
- emptyText: o,
805
- page: L,
806
- pageSize: g,
807
- paginationId: E,
808
- filterQuery: N,
809
- filterColumn: w,
810
- filterRules: S,
811
- columnOrder: k,
812
- pinColumns: J,
813
- draggableColumns: x,
814
- resizableColumns: $,
815
- bulkActionsLabel: F,
816
- bulkClearLabel: D,
817
- virtualize: q,
818
- rowHeight: R,
819
- overscan: T,
820
- onSortChange: j,
821
- onRowSelect: I,
822
- onPageChange: H,
823
- onFilterChange: P,
824
- onColumnResize: B,
825
- onVirtualRangeChange: U,
826
- onColumnOrderChange: Y,
827
- onBulkClear: _,
828
- children: M,
829
- ...X
830
- } = v, O = Q(null);
831
- G(() => {
832
- const ee = O.current;
833
- if (!ee)
834
- return;
835
- const ie = (le) => {
836
- const ne = le.detail;
837
- ne && (j == null || j(ne));
838
- }, te = (le) => {
839
- const ne = le.detail;
840
- ne && (I == null || I(ne));
841
- }, re = (le) => {
842
- const ne = le.detail;
843
- ne && (H == null || H(ne));
844
- }, ae = (le) => {
845
- const ne = le.detail;
846
- ne && (P == null || P(ne));
847
- }, me = (le) => {
848
- const ne = le.detail;
849
- ne && (B == null || B(ne));
850
- }, be = (le) => {
851
- const ne = le.detail;
852
- ne && (U == null || U(ne));
853
- }, ve = (le) => {
854
- const ne = le.detail;
855
- ne && (Y == null || Y(ne));
856
- }, pe = (le) => {
857
- const ne = le.detail;
858
- ne && (_ == null || _(ne));
859
- };
860
- return ee.addEventListener("sort-change", ie), ee.addEventListener("row-select", te), ee.addEventListener("page-change", re), ee.addEventListener("filter-change", ae), ee.addEventListener("column-resize", me), ee.addEventListener("virtual-range-change", be), ee.addEventListener("column-order-change", ve), ee.addEventListener("bulk-clear", pe), () => {
861
- ee.removeEventListener("sort-change", ie), ee.removeEventListener("row-select", te), ee.removeEventListener("page-change", re), ee.removeEventListener("filter-change", ae), ee.removeEventListener("column-resize", me), ee.removeEventListener("virtual-range-change", be), ee.removeEventListener("column-order-change", ve), ee.removeEventListener("bulk-clear", pe);
862
- };
863
- }, [
864
- j,
865
- I,
866
- H,
867
- P,
868
- B,
869
- U,
870
- Y,
871
- _
872
- ]);
873
- const K = S && S.length ? (() => {
874
- try {
875
- return JSON.stringify(S);
876
- } catch {
877
- return;
878
- }
879
- })() : void 0, C = typeof J == "string" ? J.trim() || void 0 : J && typeof J == "object" ? (() => {
880
- try {
881
- return JSON.stringify(J);
882
- } catch {
883
- return;
884
- }
885
- })() : void 0;
886
- return h.createElement(
887
- "ui-data-table",
888
- {
889
- ref: O,
890
- ...X,
891
- ...e ? { sortable: "" } : {},
892
- ...t ? { selectable: "" } : {},
893
- ...l ? { "multi-select": "" } : {},
894
- ...r && r !== "default" ? { shape: r } : {},
895
- ...i && i !== "default" ? { variant: i } : {},
896
- ...f && f !== "default" ? { elevation: f } : {},
897
- ...c ? { striped: "" } : {},
898
- ...s ? { hover: "" } : {},
899
- ...u ? { compact: "" } : {},
900
- ...p ? { bordered: "" } : {},
901
- ...n ? { "sticky-header": "" } : {},
902
- ...b ? { "sticky-footer": "" } : {},
903
- ...A ? { loading: "" } : {},
904
- ...y && y !== "idle" ? { state: y } : {},
905
- ...m ? { "state-text": m } : {},
906
- ...a ? { headless: "" } : {},
907
- ...d ? { "hide-summary": "" } : {},
908
- ...o ? { "empty-text": o } : {},
909
- ...typeof L == "number" && Number.isFinite(L) ? { page: String(L) } : {},
910
- ...typeof g == "number" && Number.isFinite(g) ? { "page-size": String(g) } : {},
911
- ...E ? { "pagination-id": E } : {},
912
- ...typeof N == "string" ? { "filter-query": N } : {},
913
- ...typeof w == "number" && Number.isFinite(w) ? { "filter-column": String(w) } : typeof w == "string" && w.trim() ? { "filter-column": w } : {},
914
- ...K ? { filters: K } : {},
915
- ...k ? { "column-order": k } : {},
916
- ...C ? { "pin-columns": C } : {},
917
- ...x ? { "draggable-columns": "" } : {},
918
- ...$ ? { "resizable-columns": "" } : {},
919
- ...F ? { "bulk-actions-label": F } : {},
920
- ...D ? { "bulk-clear-label": D } : {},
921
- ...q ? { virtualize: "" } : {},
922
- ...typeof R == "number" && Number.isFinite(R) ? { "row-height": String(R) } : {},
923
- ...typeof T == "number" && Number.isFinite(T) ? { overscan: String(T) } : {}
924
- },
925
- M
926
- );
927
- }
928
- const Mt = typeof window < "u" ? z : G, Te = h.forwardRef(function({
929
- data: e,
930
- series: t,
931
- values: l,
932
- labels: r,
933
- type: i,
934
- variant: f,
935
- title: c,
936
- subtitle: s,
937
- state: u,
938
- disabled: p,
939
- interactive: n,
940
- showLegend: b,
941
- showSummary: A,
942
- headless: y,
943
- valuePrefix: m,
944
- valueSuffix: a,
945
- ariaLabel: d,
946
- onPointSelect: o,
947
- children: L,
948
- ...g
949
- }, E) {
950
- const N = Q(null);
951
- return V(E, () => N.current), G(() => {
952
- de("ui-chart", "Chart");
953
- }, []), G(() => {
954
- const w = N.current;
955
- if (!w || !o)
956
- return;
957
- const S = (k) => {
958
- const J = k.detail;
959
- J && o(J);
960
- };
961
- return w.addEventListener("ui-point-select", S), () => {
962
- w.removeEventListener("ui-point-select", S);
963
- };
964
- }, [o]), Mt(() => {
965
- const w = N.current;
966
- if (!w)
967
- return;
968
- const S = (J, x) => {
969
- const $ = w.getAttribute(J);
970
- if (x == null) {
971
- $ != null && w.removeAttribute(J);
972
- return;
973
- }
974
- $ !== x && w.setAttribute(J, x);
975
- }, k = (J, x) => {
976
- x ? S(J, "") : S(J, null);
977
- };
978
- if (e && e.length)
979
- try {
980
- S("data", JSON.stringify(e));
981
- } catch {
982
- S("data", null);
983
- }
984
- else
985
- S("data", null);
986
- if (t && t.length)
987
- try {
988
- S("series", JSON.stringify(t));
989
- } catch {
990
- S("series", null);
991
- }
992
- else
993
- S("series", null);
994
- l && l.length ? S("values", l.join(",")) : S("values", null), r && r.length ? S("labels", r.join(",")) : S("labels", null), S("type", i && i !== "line" ? i : null), S("variant", f && f !== "default" ? f : null), S("title", c || null), S("subtitle", s || null), S("state", u && u !== "idle" ? u : null), S("interactive", n === !1 ? "false" : null), S("show-legend", typeof b == "boolean" ? b ? "true" : "false" : null), S("show-summary", typeof A == "boolean" ? A ? "true" : "false" : null), S("value-prefix", m || null), S("value-suffix", a || null), S("aria-label", d || null), k("disabled", p), k("headless", y);
995
- }, [
996
- e,
997
- t,
998
- l,
999
- r,
1000
- i,
1001
- f,
1002
- c,
1003
- s,
1004
- u,
1005
- p,
1006
- n,
1007
- b,
1008
- A,
1009
- y,
1010
- m,
1011
- a,
1012
- d
1013
- ]), h.createElement("ui-chart", { ref: N, ...g }, L);
1014
- });
1015
- Te.displayName = "Chart";
1016
- const Ke = h.forwardRef(function({ children: e, ...t }, l) {
1017
- return /* @__PURE__ */ h.createElement("div", { ref: l, slot: "header", ...t }, e);
1018
- });
1019
- Ke.displayName = "ChartHeader";
1020
- const Ze = h.forwardRef(function({ children: e, ...t }, l) {
1021
- return /* @__PURE__ */ h.createElement("h3", { ref: l, slot: "title", ...t }, e);
1022
- });
1023
- Ze.displayName = "ChartTitle";
1024
- const We = h.forwardRef(function({ children: e, ...t }, l) {
1025
- return /* @__PURE__ */ h.createElement("p", { ref: l, slot: "subtitle", ...t }, e);
1026
- });
1027
- We.displayName = "ChartSubtitle";
1028
- const Vn = Object.assign(Te, {
1029
- Root: Te,
1030
- Header: Ke,
1031
- Title: Ze,
1032
- Subtitle: We
1033
- }), qt = typeof window < "u" ? z : G, Ut = h.forwardRef(function({ items: e, variant: t, headless: l, children: r, ...i }, f) {
1034
- const c = Q(null);
1035
- return V(f, () => c.current), qt(() => {
1036
- const s = c.current;
1037
- if (!s)
1038
- return;
1039
- const u = (n, b) => {
1040
- const A = s.getAttribute(n);
1041
- if (b == null) {
1042
- A != null && s.removeAttribute(n);
1043
- return;
1044
- }
1045
- A !== b && s.setAttribute(n, b);
1046
- }, p = (n, b) => {
1047
- b ? u(n, "") : u(n, null);
1048
- };
1049
- if (e && e.length)
1050
- try {
1051
- u("items", JSON.stringify(e));
1052
- } catch {
1053
- u("items", null);
1054
- }
1055
- else
1056
- u("items", null);
1057
- u("variant", t && t !== "default" ? t : null), p("headless", l);
1058
- }, [e, t, l]), h.createElement("ui-timeline", { ref: c, ...i }, r);
1059
- });
1060
- Ut.displayName = "Timeline";
1061
- const _t = typeof window < "u" ? z : G, Qt = h.forwardRef(function({
1062
- year: e,
1063
- month: t,
1064
- value: l,
1065
- events: r,
1066
- variant: i,
1067
- selection: f,
1068
- min: c,
1069
- max: s,
1070
- disabled: u,
1071
- readOnly: p,
1072
- locale: n,
1073
- translations: b,
1074
- weekStart: A,
1075
- outsideClick: y,
1076
- eventsMax: m,
1077
- eventsDisplay: a,
1078
- maxSelections: d,
1079
- size: o,
1080
- bare: L,
1081
- tone: g,
1082
- state: E,
1083
- headless: N,
1084
- hideToday: w,
1085
- showToday: S,
1086
- ariaLabel: k,
1087
- onSelect: J,
1088
- onChange: x,
1089
- onCalendarChange: $,
1090
- onMonthChange: F,
1091
- onValueChange: D,
1092
- children: q,
1093
- ...R
1094
- }, T) {
1095
- const j = Q(null);
1096
- return V(T, () => j.current), G(() => {
1097
- de("ui-calendar", "Calendar");
1098
- }, []), G(() => {
1099
- const I = j.current;
1100
- if (!I)
1101
- return;
1102
- const H = (U) => {
1103
- const Y = U.detail;
1104
- Y && (J == null || J(Y), x == null || x(Y), D == null || D(Y.value));
1105
- }, P = (U) => {
1106
- const Y = U.detail;
1107
- Y && ($ == null || $(Y));
1108
- }, B = (U) => {
1109
- const Y = U.detail;
1110
- Y && (F == null || F(Y));
1111
- };
1112
- return I.addEventListener("ui-select", H), I.addEventListener("ui-change", P), I.addEventListener("ui-month-change", B), () => {
1113
- I.removeEventListener("ui-select", H), I.removeEventListener("ui-change", P), I.removeEventListener("ui-month-change", B);
1114
- };
1115
- }, [J, x, $, F, D]), _t(() => {
1116
- const I = j.current;
1117
- if (!I)
1118
- return;
1119
- const H = (B, U) => {
1120
- const Y = I.getAttribute(B);
1121
- if (U == null) {
1122
- Y != null && I.removeAttribute(B);
1123
- return;
1124
- }
1125
- Y !== U && I.setAttribute(B, U);
1126
- }, P = (B, U) => {
1127
- U ? I.hasAttribute(B) || I.setAttribute(B, "") : I.hasAttribute(B) && I.removeAttribute(B);
1128
- };
1129
- if (typeof e == "number" && Number.isFinite(e) ? H("year", String(e)) : H("year", null), typeof t == "number" && Number.isFinite(t) ? H("month", String(t)) : H("month", null), H("value", l || null), H("selection", f && f !== "single" ? f : null), H("min", c || null), H("max", s || null), H("locale", n || null), H("translations", ge(b)), H("week-start", typeof A == "number" ? String(A) : null), H("outside-click", y && y !== "navigate" ? y : null), H("events-max", typeof m == "number" && Number.isFinite(m) ? String(m) : null), H("events-display", a && a !== "dots" ? a : null), H(
1130
- "max-selections",
1131
- typeof d == "number" && Number.isFinite(d) ? String(d) : null
1132
- ), H("size", o && o !== "md" ? o : null), P("bare", L), H("tone", g || null), H("state", E && E !== "idle" ? E : null), H("show-today", typeof S == "boolean" ? S ? "true" : "false" : null), H("aria-label", k || null), P("disabled", u), P("readonly", p), P("hide-today", w), P("headless", N), r && r.length)
1133
- try {
1134
- H("events", JSON.stringify(r));
1135
- } catch {
1136
- H("events", null);
1137
- }
1138
- else
1139
- H("events", null);
1140
- H("variant", i && i !== "default" ? i : null);
1141
- }, [
1142
- e,
1143
- t,
1144
- l,
1145
- r,
1146
- i,
1147
- f,
1148
- c,
1149
- s,
1150
- u,
1151
- p,
1152
- n,
1153
- b,
1154
- A,
1155
- y,
1156
- m,
1157
- a,
1158
- d,
1159
- o,
1160
- L,
1161
- g,
1162
- E,
1163
- N,
1164
- w,
1165
- S,
1166
- k
1167
- ]), h.createElement("ui-calendar", { ref: j, ...R }, q);
1168
- });
1169
- Qt.displayName = "Calendar";
1170
- const Xt = typeof window < "u" ? z : G, Yt = h.forwardRef(function({
1171
- value: e,
1172
- format: t,
1173
- alpha: l,
1174
- disabled: r,
1175
- readOnly: i,
1176
- size: f,
1177
- variant: c,
1178
- state: s,
1179
- tone: u,
1180
- mode: p,
1181
- open: n,
1182
- closeOnEscape: b,
1183
- placeholder: A,
1184
- presets: y,
1185
- recent: m,
1186
- maxRecent: a,
1187
- persist: d,
1188
- onInput: o,
1189
- onChange: L,
1190
- onValueChange: g,
1191
- onOpen: E,
1192
- onClose: N,
1193
- onOpenDetail: w,
1194
- onCloseDetail: S,
1195
- onInvalid: k,
1196
- children: J,
1197
- ...x
1198
- }, $) {
1199
- const F = Q(null);
1200
- V($, () => F.current), G(() => {
1201
- const q = F.current;
1202
- if (!q)
1203
- return;
1204
- const R = (P) => {
1205
- const B = P.detail;
1206
- B && (o == null || o(B));
1207
- }, T = (P) => {
1208
- const B = P.detail;
1209
- B && (L == null || L(B), g == null || g(B.value));
1210
- }, j = (P) => {
1211
- const B = P.detail;
1212
- B && (k == null || k(B));
1213
- }, I = (P) => {
1214
- const B = P.detail;
1215
- E == null || E(), B && (w == null || w(B));
1216
- }, H = (P) => {
1217
- const B = P.detail;
1218
- N == null || N(), B && (S == null || S(B));
1219
- };
1220
- return q.addEventListener("input", R), q.addEventListener("change", T), q.addEventListener("open", I), q.addEventListener("close", H), q.addEventListener("invalid", j), () => {
1221
- q.removeEventListener("input", R), q.removeEventListener("change", T), q.removeEventListener("open", I), q.removeEventListener("close", H), q.removeEventListener("invalid", j);
1222
- };
1223
- }, [o, L, g, E, N, w, S, k]), Xt(() => {
1224
- const q = F.current;
1225
- if (!q)
1226
- return;
1227
- const R = (j, I) => {
1228
- const H = q.getAttribute(j);
1229
- I == null ? H != null && q.removeAttribute(j) : H !== I && q.setAttribute(j, I);
1230
- }, T = (j, I) => {
1231
- I ? R(j, "") : R(j, null);
1232
- };
1233
- if (R("value", e ?? null), R("format", t && t !== "hex" ? t : null), T("alpha", l), T("disabled", r), T("readonly", i), R("size", f && f !== "md" ? f : null), R("variant", c && c !== "default" ? c : null), R("state", s && s !== "idle" ? s : null), R("tone", u && u !== "brand" ? u : null), R("mode", p && p !== "inline" ? p : null), typeof n == "boolean" ? T("open", n) : R("open", null), R("close-on-escape", typeof b == "boolean" ? b ? "true" : "false" : null), R("placeholder", A ?? null), T("recent", m), R("max-recent", typeof a == "number" ? String(a) : null), T("persist", d), y && y.length > 0)
1234
- try {
1235
- R("presets", JSON.stringify(y));
1236
- } catch {
1237
- R("presets", null);
1238
- }
1239
- else
1240
- R("presets", null);
1241
- }, [
1242
- e,
1243
- t,
1244
- l,
1245
- r,
1246
- i,
1247
- f,
1248
- c,
1249
- s,
1250
- u,
1251
- p,
1252
- n,
1253
- b,
1254
- A,
1255
- y,
1256
- m,
1257
- a,
1258
- d
1259
- ]);
1260
- const D = { ref: F, ...x };
1261
- if (p && p !== "inline" && (D.mode = p), typeof n == "boolean" && n && (D.open = ""), e != null && (D.value = e), t && t !== "hex" && (D.format = t), l && (D.alpha = ""), r && (D.disabled = ""), i && (D.readonly = ""), f && f !== "md" && (D.size = f), c && c !== "default" && (D.variant = c), s && s !== "idle" && (D.state = s), u && u !== "brand" && (D.tone = u), A && (D.placeholder = A), typeof b == "boolean" && (D["close-on-escape"] = b ? "true" : "false"), m && (D.recent = ""), typeof a == "number" && (D["max-recent"] = String(a)), d && (D.persist = ""), y && y.length > 0)
1262
- try {
1263
- D.presets = JSON.stringify(y);
1264
- } catch {
1265
- }
1266
- return h.createElement("ui-color-picker", D, J);
1267
- });
1268
- Yt.displayName = "ColorPicker";
1269
- const Kt = typeof window < "u" ? z : G, Zt = h.forwardRef(function({
1270
- value: e,
1271
- defaultValue: t,
1272
- open: l,
1273
- defaultOpen: r,
1274
- min: i,
1275
- max: f,
1276
- locale: c,
1277
- translations: s,
1278
- weekStart: u,
1279
- size: p,
1280
- shape: n,
1281
- bare: b,
1282
- variant: A,
1283
- state: y,
1284
- placeholder: m,
1285
- label: a,
1286
- hint: d,
1287
- error: o,
1288
- clearable: L,
1289
- allowInput: g,
1290
- closeOnSelect: E,
1291
- outsideClick: N,
1292
- disabled: w,
1293
- readOnly: S,
1294
- required: k,
1295
- name: J,
1296
- mode: x,
1297
- showFooter: $,
1298
- events: F,
1299
- eventsMax: D,
1300
- eventsDisplay: q,
1301
- format: R,
1302
- displayFormat: T,
1303
- onInput: j,
1304
- onChange: I,
1305
- onValueChange: H,
1306
- onOpen: P,
1307
- onClose: B,
1308
- onInvalid: U,
1309
- children: Y,
1310
- ..._
1311
- }, M) {
1312
- const X = Q(null);
1313
- return V(M, () => X.current), G(() => {
1314
- const O = X.current;
1315
- if (!O)
1316
- return;
1317
- const K = (ie) => {
1318
- const te = ie.detail;
1319
- te && (j == null || j(te));
1320
- }, C = (ie) => {
1321
- const te = ie.detail;
1322
- te && (I == null || I(te), H == null || H(te.value));
1323
- }, ee = (ie) => {
1324
- const te = ie.detail;
1325
- te && (U == null || U(te));
1326
- };
1327
- return O.addEventListener("input", K), O.addEventListener("change", C), O.addEventListener("open", P), O.addEventListener("close", B), O.addEventListener("invalid", ee), () => {
1328
- O.removeEventListener("input", K), O.removeEventListener("change", C), O.removeEventListener("open", P), O.removeEventListener("close", B), O.removeEventListener("invalid", ee);
1329
- };
1330
- }, [j, I, H, P, B, U]), Kt(() => {
1331
- const O = X.current;
1332
- if (!O)
1333
- return;
1334
- const K = (ee, ie) => {
1335
- const te = O.getAttribute(ee);
1336
- ie == null ? te != null && O.removeAttribute(ee) : te !== ie && O.setAttribute(ee, ie);
1337
- }, C = (ee, ie) => {
1338
- ie ? K(ee, "") : K(ee, null);
1339
- };
1340
- if (K("value", e ?? null), K("default-value", t ?? null), typeof l == "boolean" ? C("open", l) : K("open", null), C("default-open", r), K("min", i ?? null), K("max", f ?? null), K("locale", c ?? null), K("translations", ge(s)), K("week-start", typeof u == "number" ? String(u) : null), K("size", p && p !== "md" ? p : null), K("shape", n && n !== "default" ? n : null), C("bare", b), K("variant", A && A !== "default" ? A : null), K("state", y && y !== "idle" ? y : null), K("placeholder", m ?? null), K("label", a ?? null), K("hint", d ?? null), K("error", o ?? null), C("clearable", L), C("allow-input", g), C("close-on-select", E), K("outside-click", N && N !== "navigate" ? N : null), C("disabled", w), C("readonly", S), C("required", k), K("name", J ?? null), K("mode", x && x !== "popover" ? x : null), K("show-footer", typeof $ == "boolean" ? String($) : null), K("events-max", typeof D == "number" ? String(D) : null), K("events-display", q && q !== "dots" ? q : null), K("format", R && R !== "locale" ? R : null), K("display-format", T ?? null), F != null && F.length)
1341
- try {
1342
- K("events", JSON.stringify(F));
1343
- } catch {
1344
- K("events", null);
1345
- }
1346
- else
1347
- K("events", null);
1348
- }, [
1349
- e,
1350
- t,
1351
- l,
1352
- r,
1353
- i,
1354
- f,
1355
- c,
1356
- s,
1357
- u,
1358
- p,
1359
- n,
1360
- b,
1361
- A,
1362
- y,
1363
- m,
1364
- a,
1365
- d,
1366
- o,
1367
- L,
1368
- g,
1369
- E,
1370
- N,
1371
- w,
1372
- S,
1373
- k,
1374
- J,
1375
- x,
1376
- $,
1377
- F,
1378
- D,
1379
- q,
1380
- R,
1381
- T
1382
- ]), h.createElement("ui-date-picker", { ref: X, ..._ }, Y);
1383
- });
1384
- Zt.displayName = "DatePicker";
1385
- const Wt = typeof window < "u" ? z : G, zt = h.forwardRef(function({
1386
- value: e,
1387
- defaultValue: t,
1388
- open: l,
1389
- defaultOpen: r,
1390
- min: i,
1391
- max: f,
1392
- locale: c,
1393
- translations: s,
1394
- weekStart: u,
1395
- size: p,
1396
- shape: n,
1397
- bare: b,
1398
- variant: A,
1399
- state: y,
1400
- rangeVariant: m,
1401
- label: a,
1402
- hint: d,
1403
- error: o,
1404
- allowSameDay: L,
1405
- allowPartial: g,
1406
- closeOnSelect: E,
1407
- clearable: N,
1408
- disabled: w,
1409
- readOnly: S,
1410
- required: k,
1411
- name: J,
1412
- nameStart: x,
1413
- nameEnd: $,
1414
- mode: F,
1415
- showFooter: D,
1416
- onInput: q,
1417
- onChange: R,
1418
- onValueChange: T,
1419
- onOpen: j,
1420
- onClose: I,
1421
- onInvalid: H,
1422
- children: P,
1423
- ...B
1424
- }, U) {
1425
- const Y = Q(null);
1426
- return V(U, () => Y.current), G(() => {
1427
- const _ = Y.current;
1428
- if (!_)
1429
- return;
1430
- const M = (K) => {
1431
- const C = K.detail;
1432
- C && (q == null || q(C));
1433
- }, X = (K) => {
1434
- const C = K.detail;
1435
- C && (R == null || R(C), T == null || T(C.value ? JSON.stringify(C.value) : null));
1436
- }, O = (K) => {
1437
- const C = K.detail;
1438
- C && (H == null || H(C));
1439
- };
1440
- return _.addEventListener("input", M), _.addEventListener("change", X), _.addEventListener("open", j), _.addEventListener("close", I), _.addEventListener("invalid", O), () => {
1441
- _.removeEventListener("input", M), _.removeEventListener("change", X), _.removeEventListener("open", j), _.removeEventListener("close", I), _.removeEventListener("invalid", O);
1442
- };
1443
- }, [q, R, T, j, I, H]), Wt(() => {
1444
- const _ = Y.current;
1445
- if (!_)
1446
- return;
1447
- const M = (O, K) => {
1448
- const C = _.getAttribute(O);
1449
- K == null ? C != null && _.removeAttribute(O) : C !== K && _.setAttribute(O, K);
1450
- }, X = (O, K) => {
1451
- K ? M(O, "") : M(O, null);
1452
- };
1453
- M("value", e ?? null), M("default-value", t ?? null), typeof l == "boolean" ? X("open", l) : M("open", null), X("default-open", r), M("min", i ?? null), M("max", f ?? null), M("locale", c ?? null), M("translations", ge(s)), M("week-start", typeof u == "number" ? String(u) : null), M("size", p && p !== "md" ? p : null), M("shape", n && n !== "default" ? n : null), X("bare", b), M("variant", A && A !== "default" ? A : null), M("state", y && y !== "idle" ? y : null), M("range-variant", m && m !== "two-fields" ? m : null), M("label", a ?? null), M("hint", d ?? null), M("error", o ?? null), X("allow-same-day", L), X("allow-partial", g), X("close-on-select", E), X("clearable", N), X("disabled", w), X("readonly", S), X("required", k), M("name", J ?? null), M("name-start", x ?? null), M("name-end", $ ?? null), M("mode", F && F !== "popover" ? F : null), M("show-footer", typeof D == "boolean" ? String(D) : null);
1454
- }, [
1455
- e,
1456
- t,
1457
- l,
1458
- r,
1459
- i,
1460
- f,
1461
- c,
1462
- s,
1463
- u,
1464
- p,
1465
- n,
1466
- b,
1467
- A,
1468
- y,
1469
- m,
1470
- a,
1471
- d,
1472
- o,
1473
- L,
1474
- g,
1475
- E,
1476
- N,
1477
- w,
1478
- S,
1479
- k,
1480
- J,
1481
- x,
1482
- $,
1483
- F,
1484
- D
1485
- ]), h.createElement("ui-date-range-picker", { ref: Y, ...B }, P);
1486
- });
1487
- zt.displayName = "DateRangePicker";
1488
- const ze = typeof window < "u" ? z : G;
1489
- function Oe(v, e, t) {
1490
- G(() => {
1491
- const l = v.current;
1492
- if (!l)
1493
- return;
1494
- const r = (i) => {
1495
- const f = i.detail;
1496
- f && (e == null || e(f), t == null || t(f.value));
1497
- };
1498
- return l.addEventListener("change", r), () => {
1499
- l.removeEventListener("change", r);
1500
- };
1501
- }, [e, t, v]);
1502
- }
1503
- const Ot = h.forwardRef(function({ value: e, min: t, max: l, locale: r, label: i, description: f, error: c, name: s, required: u, disabled: p, readOnly: n, onChange: b, onValueChange: A, children: y, ...m }, a) {
1504
- const d = Q(null);
1505
- return V(a, () => d.current), Oe(d, b, A), ze(() => {
1506
- const o = d.current;
1507
- if (!o)
1508
- return;
1509
- const L = (E, N) => {
1510
- const w = o.getAttribute(E);
1511
- if (N == null) {
1512
- w != null && o.removeAttribute(E);
1513
- return;
1514
- }
1515
- w !== N && o.setAttribute(E, N);
1516
- }, g = (E, N) => {
1517
- N ? o.hasAttribute(E) || o.setAttribute(E, "") : o.hasAttribute(E) && o.removeAttribute(E);
1518
- };
1519
- L("value", e ?? null), L("min", t ?? null), L("max", l ?? null), L("locale", r ?? null), L("label", i ?? null), L("description", f ?? null), L("data-error", c ?? null), L("name", s ?? null), g("required", u), g("disabled", p), g("readonly", n);
1520
- }, [e, t, l, r, i, f, c, s, u, p, n]), h.createElement("ui-date-field", { ref: d, ...m }, y);
1521
- }), Vt = h.forwardRef(
1522
- function({ value: e, min: t, max: l, locale: r, label: i, description: f, error: c, name: s, required: u, disabled: p, readOnly: n, format: b, seconds: A, onChange: y, onValueChange: m, children: a, ...d }, o) {
1523
- const L = Q(null);
1524
- return V(o, () => L.current), Oe(L, y, m), ze(() => {
1525
- const g = L.current;
1526
- if (!g)
1527
- return;
1528
- const E = (w, S) => {
1529
- const k = g.getAttribute(w);
1530
- if (S == null) {
1531
- k != null && g.removeAttribute(w);
1532
- return;
1533
- }
1534
- k !== S && g.setAttribute(w, S);
1535
- }, N = (w, S) => {
1536
- S ? g.hasAttribute(w) || g.setAttribute(w, "") : g.hasAttribute(w) && g.removeAttribute(w);
1537
- };
1538
- E("value", e ?? null), E("min", t ?? null), E("max", l ?? null), E("locale", r ?? null), E("label", i ?? null), E("description", f ?? null), E("data-error", c ?? null), E("name", s ?? null), E("format", b && b !== "24h" ? b : null), N("seconds", A), N("required", u), N("disabled", p), N("readonly", n);
1539
- }, [e, t, l, r, i, f, c, s, u, p, n, b, A]), h.createElement("ui-time-field", { ref: L, ...d }, a);
1540
- }
1541
- );
1542
- Ot.displayName = "DateField";
1543
- Vt.displayName = "TimeField";
1544
- const Ct = typeof window < "u" ? z : G, er = h.forwardRef(function({
1545
- value: e,
1546
- min: t,
1547
- max: l,
1548
- step: r,
1549
- precision: i,
1550
- locale: f,
1551
- format: c,
1552
- placeholder: s,
1553
- label: u,
1554
- description: p,
1555
- error: n,
1556
- name: b,
1557
- required: A,
1558
- disabled: y,
1559
- readOnly: m,
1560
- allowWheel: a,
1561
- showSteppers: d,
1562
- clampOnBlur: o,
1563
- autoComplete: L,
1564
- inputMode: g,
1565
- invalid: E,
1566
- prefix: N,
1567
- suffix: w,
1568
- incrementTrigger: S,
1569
- decrementTrigger: k,
1570
- children: J,
1571
- onValueChange: x,
1572
- onInvalidValue: $,
1573
- ...F
1574
- }, D) {
1575
- const q = Q(null);
1576
- return V(D, () => q.current), G(() => {
1577
- const R = q.current;
1578
- if (!R)
1579
- return;
1580
- const T = (I) => {
1581
- const H = I.detail;
1582
- H && (x == null || x(H));
1583
- }, j = (I) => {
1584
- const H = I.detail;
1585
- H != null && H.reason && ($ == null || $(H.reason));
1586
- };
1587
- return R.addEventListener("value-change", T), R.addEventListener("invalid", j), () => {
1588
- R.removeEventListener("value-change", T), R.removeEventListener("invalid", j);
1589
- };
1590
- }, [$, x]), Ct(() => {
1591
- const R = q.current;
1592
- if (!R)
1593
- return;
1594
- const T = (I, H) => {
1595
- const P = R.getAttribute(I);
1596
- if (H == null) {
1597
- P != null && R.removeAttribute(I);
1598
- return;
1599
- }
1600
- P !== H && R.setAttribute(I, H);
1601
- }, j = (I, H) => {
1602
- H ? R.hasAttribute(I) || R.setAttribute(I, "") : R.hasAttribute(I) && R.removeAttribute(I);
1603
- };
1604
- T("value", e != null && e !== "" ? String(e) : null), T("min", t != null ? String(t) : null), T("max", l != null ? String(l) : null), T("step", r != null ? String(r) : null), T("precision", i != null ? String(i) : null), T("locale", f ?? null), T("format", c && c !== "grouped" ? c : null), T("placeholder", s ?? null), T("label", u ?? null), T("description", p ?? null), T("data-error", n ?? null), T("name", b ?? null), T("autocomplete", L ?? null), T("inputmode", g ?? null), j("required", A), j("disabled", y), j("readonly", m), j("allow-wheel", a), j("show-steppers", d), j("clamp-on-blur", o), j("invalid", E);
1605
- }, [
1606
- L,
1607
- a,
1608
- o,
1609
- p,
1610
- y,
1611
- n,
1612
- c,
1613
- g,
1614
- E,
1615
- u,
1616
- f,
1617
- l,
1618
- t,
1619
- b,
1620
- s,
1621
- i,
1622
- m,
1623
- A,
1624
- d,
1625
- r,
1626
- e
1627
- ]), h.createElement(
1628
- "ui-number-field",
1629
- { ref: q, ...F },
1630
- N != null ? h.createElement("span", { slot: "prefix" }, N) : null,
1631
- w != null ? h.createElement("span", { slot: "suffix" }, w) : null,
1632
- k != null ? h.createElement("span", { slot: "decrement-trigger" }, k) : null,
1633
- S != null ? h.createElement("span", { slot: "increment-trigger" }, S) : null,
1634
- J
1635
- );
1636
- });
1637
- er.displayName = "NumberField";
1638
- const tr = typeof window < "u" ? z : G, rr = h.forwardRef(function({
1639
- options: e,
1640
- value: t,
1641
- placeholder: l,
1642
- label: r,
1643
- description: i,
1644
- error: f,
1645
- name: c,
1646
- required: s,
1647
- disabled: u,
1648
- readOnly: p,
1649
- loading: n,
1650
- loadingText: b,
1651
- clearable: A,
1652
- maxSelections: y,
1653
- renderLimit: m,
1654
- selectionIndicator: a,
1655
- optionBorder: d,
1656
- variant: o,
1657
- tone: L,
1658
- density: g,
1659
- shape: E,
1660
- radius: N,
1661
- optionRadius: w,
1662
- elevation: S,
1663
- size: k,
1664
- onChange: J,
1665
- onValueChange: x,
1666
- children: $,
1667
- ...F
1668
- }, D) {
1669
- const q = Q(null);
1670
- return V(D, () => q.current), G(() => {
1671
- const R = q.current;
1672
- if (!R)
1673
- return;
1674
- const T = (j) => {
1675
- const I = j.detail;
1676
- I && (J == null || J(I), x == null || x(I.value));
1677
- };
1678
- return R.addEventListener("change", T), () => {
1679
- R.removeEventListener("change", T);
1680
- };
1681
- }, [J, x]), tr(() => {
1682
- const R = q.current;
1683
- if (!R)
1684
- return;
1685
- const T = (I, H) => {
1686
- const P = R.getAttribute(I);
1687
- if (H == null) {
1688
- P != null && R.removeAttribute(I);
1689
- return;
1690
- }
1691
- P !== H && R.setAttribute(I, H);
1692
- }, j = (I, H) => {
1693
- H ? R.hasAttribute(I) || R.setAttribute(I, "") : R.hasAttribute(I) && R.removeAttribute(I);
1694
- };
1695
- T("options", JSON.stringify(e || [])), T("value", t != null && t.length ? JSON.stringify(t) : null), T("placeholder", l ?? null), T("label", r ?? null), T("description", i ?? null), T("data-error", f ?? null), T("name", c ?? null), T("max-selections", typeof y == "number" ? String(y) : null), T("render-limit", typeof m == "number" ? String(m) : null), T("loading-text", b ?? null), T("selection-indicator", a ?? null), j("option-border", d), T("variant", o && o !== "default" ? o : null), T("tone", L && L !== "default" ? L : null), T("density", g && g !== "default" ? g : null), T("shape", E && E !== "default" ? E : null), T("radius", N != null ? String(N) : null), T("option-radius", w != null ? String(w) : null), T("elevation", S && S !== "low" ? S : null), T("size", k && k !== "md" && k !== "2" ? k : null), j("required", s), j("disabled", u), j("readonly", p), j("loading", n), j("clearable", A);
1696
- }, [
1697
- e,
1698
- t,
1699
- l,
1700
- r,
1701
- i,
1702
- f,
1703
- c,
1704
- s,
1705
- u,
1706
- p,
1707
- n,
1708
- b,
1709
- A,
1710
- y,
1711
- m,
1712
- a,
1713
- d,
1714
- o,
1715
- L,
1716
- g,
1717
- E,
1718
- N,
1719
- w,
1720
- S,
1721
- k
1722
- ]), h.createElement("ui-multi-select", { ref: q, ...F }, $);
1723
- });
1724
- rr.displayName = "MultiSelect";
1725
- const nr = typeof window < "u" ? z : G, ir = h.forwardRef(function({
1726
- children: e,
1727
- label: t,
1728
- menuLabel: l,
1729
- menuHeading: r,
1730
- menuDescription: i,
1731
- variant: f,
1732
- density: c,
1733
- menuDensity: s,
1734
- menuShape: u,
1735
- disabled: p,
1736
- items: n,
1737
- onPrimaryAction: b,
1738
- onSelect: A,
1739
- ...y
1740
- }, m) {
1741
- const a = Q(null);
1742
- V(m, () => a.current), G(() => {
1743
- const o = a.current;
1744
- if (!o)
1745
- return;
1746
- const L = () => b == null ? void 0 : b(), g = (E) => A == null ? void 0 : A(E.detail);
1747
- return o.addEventListener("primary-action", L), o.addEventListener("select", g), () => {
1748
- o.removeEventListener("primary-action", L), o.removeEventListener("select", g);
1749
- };
1750
- }, [b, A]), nr(() => {
1751
- const o = a.current;
1752
- o && (t ? o.setAttribute("label", t) : o.removeAttribute("label"), l ? o.setAttribute("menu-label", l) : o.removeAttribute("menu-label"), r ? o.setAttribute("menu-heading", r) : o.removeAttribute("menu-heading"), i ? o.setAttribute("menu-description", i) : o.removeAttribute("menu-description"), f && f !== "primary" ? o.setAttribute("variant", f) : o.removeAttribute("variant"), c && c !== "default" ? o.setAttribute("density", c) : o.removeAttribute("density"), s && s !== "default" ? o.setAttribute("menu-density", s) : o.removeAttribute("menu-density"), u && u !== "default" ? o.setAttribute("menu-shape", u) : o.removeAttribute("menu-shape"), p ? o.setAttribute("disabled", "") : o.removeAttribute("disabled"));
1753
- }, [t, l, r, i, f, c, s, u, p]);
1754
- const d = (n == null ? void 0 : n.map(
1755
- (o) => h.createElement(
1756
- "button",
1757
- {
1758
- key: o.value,
1759
- slot: "menuitem",
1760
- type: "button",
1761
- "data-value": o.value,
1762
- "data-label": o.label,
1763
- "data-tone": o.tone || "default",
1764
- disabled: o.disabled
1765
- },
1766
- h.createElement(
1767
- "span",
1768
- { "data-menu-text": "true" },
1769
- h.createElement("span", { "data-menu-label": "true" }, o.label),
1770
- o.description ? h.createElement("span", { "data-menu-description": "true" }, o.description) : null
1771
- ),
1772
- o.shortcut ? h.createElement("span", { "data-menu-shortcut": "true" }, o.shortcut) : null
1773
- )
1774
- )) || null;
1775
- return h.createElement("ui-split-button", { ref: a, ...y }, d, e);
1776
- });
1777
- ir.displayName = "SplitButton";
1778
- const lr = typeof window < "u" ? z : G, ur = h.forwardRef(function({ options: e, value: t, label: l, description: r, error: i, name: f, disabled: c, onChange: s, onValueChange: u, children: p, ...n }, b) {
1779
- const A = Q(null);
1780
- return V(b, () => A.current), G(() => {
1781
- const y = A.current;
1782
- if (!y)
1783
- return;
1784
- const m = (a) => {
1785
- const d = a.detail;
1786
- s == null || s(d), u == null || u(d.value);
1787
- };
1788
- return y.addEventListener("change", m), () => y.removeEventListener("change", m);
1789
- }, [s, u]), lr(() => {
1790
- const y = A.current;
1791
- if (!y)
1792
- return;
1793
- const m = (a, d) => {
1794
- d == null ? y.removeAttribute(a) : y.setAttribute(a, d);
1795
- };
1796
- m("options", JSON.stringify(e || [])), m("value", t != null && t.length ? JSON.stringify(t) : null), m("label", l ?? null), m("description", r ?? null), m("error", i ?? null), m("name", f ?? null), c ? y.setAttribute("disabled", "") : y.removeAttribute("disabled");
1797
- }, [e, t, l, r, i, f, c]), h.createElement("ui-transfer-list", { ref: A, ...n }, p);
1798
- });
1799
- ur.displayName = "TransferList";
1800
- const sr = typeof window < "u" ? z : G, or = h.forwardRef(function({ value: e, placeholder: t, editing: l, multiline: r, disabled: i, readOnly: f, name: c, onChange: s, onValueChange: u, onSave: p, onCancel: n, children: b, ...A }, y) {
1801
- const m = Q(null);
1802
- return V(y, () => m.current), G(() => {
1803
- const a = m.current;
1804
- if (!a)
1805
- return;
1806
- const d = (g) => {
1807
- const E = g.detail;
1808
- s == null || s(E), u == null || u(E.value);
1809
- }, o = (g) => p == null ? void 0 : p(g.detail), L = (g) => n == null ? void 0 : n(g.detail.value);
1810
- return a.addEventListener("change", d), a.addEventListener("save", o), a.addEventListener("cancel", L), () => {
1811
- a.removeEventListener("change", d), a.removeEventListener("save", o), a.removeEventListener("cancel", L);
1812
- };
1813
- }, [s, u, p, n]), sr(() => {
1814
- const a = m.current;
1815
- if (!a)
1816
- return;
1817
- const d = (o, L) => {
1818
- L == null ? a.removeAttribute(o) : a.setAttribute(o, L);
1819
- };
1820
- d("value", e ?? null), d("placeholder", t ?? null), d("name", c ?? null), l ? a.setAttribute("editing", "") : a.removeAttribute("editing"), r ? a.setAttribute("multiline", "") : a.removeAttribute("multiline"), i ? a.setAttribute("disabled", "") : a.removeAttribute("disabled"), f ? a.setAttribute("readonly", "") : a.removeAttribute("readonly");
1821
- }, [e, t, c, l, r, i, f]), h.createElement("ui-inline-edit", { ref: m, ...A }, b);
1822
- });
1823
- or.displayName = "InlineEdit";
1824
- const cr = typeof window < "u" ? z : G, fr = h.forwardRef(function({
1825
- value: e,
1826
- defaultValue: t,
1827
- open: l,
1828
- defaultOpen: r,
1829
- format: i,
1830
- step: f,
1831
- seconds: c,
1832
- stepSeconds: s,
1833
- min: u,
1834
- max: p,
1835
- disabled: n,
1836
- readOnly: b,
1837
- required: A,
1838
- name: y,
1839
- clearable: m,
1840
- allowInput: a,
1841
- mode: d,
1842
- label: o,
1843
- hint: L,
1844
- error: g,
1845
- locale: E,
1846
- translations: N,
1847
- variant: w,
1848
- onInput: S,
1849
- onChange: k,
1850
- onValueChange: J,
1851
- onOpen: x,
1852
- onClose: $,
1853
- onInvalid: F,
1854
- children: D,
1855
- ...q
1856
- }, R) {
1857
- const T = Q(null);
1858
- return V(R, () => T.current), G(() => {
1859
- const j = T.current;
1860
- if (!j)
1861
- return;
1862
- const I = (B) => {
1863
- const U = B.detail;
1864
- U && (S == null || S(U));
1865
- }, H = (B) => {
1866
- const U = B.detail;
1867
- U && (k == null || k(U), J == null || J(U.value));
1868
- }, P = (B) => {
1869
- const U = B.detail;
1870
- U && (F == null || F(U));
1871
- };
1872
- return j.addEventListener("input", I), j.addEventListener("change", H), j.addEventListener("open", x), j.addEventListener("close", $), j.addEventListener("invalid", P), () => {
1873
- j.removeEventListener("input", I), j.removeEventListener("change", H), j.removeEventListener("open", x), j.removeEventListener("close", $), j.removeEventListener("invalid", P);
1874
- };
1875
- }, [S, k, J, x, $, F]), cr(() => {
1876
- const j = T.current;
1877
- if (!j)
1878
- return;
1879
- const I = (P, B) => {
1880
- const U = j.getAttribute(P);
1881
- B == null ? U != null && j.removeAttribute(P) : U !== B && j.setAttribute(P, B);
1882
- }, H = (P, B) => {
1883
- B ? I(P, "") : I(P, null);
1884
- };
1885
- I("value", e ?? null), I("default-value", t ?? null), typeof l == "boolean" ? H("open", l) : I("open", null), H("default-open", r), I("format", i && i !== "24h" ? i : null), I("step", typeof f == "number" ? String(f) : null), H("seconds", c), I("step-seconds", typeof s == "number" ? String(s) : null), I("min", u ?? null), I("max", p ?? null), H("disabled", n), H("readonly", b), H("required", A), I("name", y ?? null), H("clearable", m), H("allow-input", a), I("mode", d && d !== "popover" ? d : null), I("label", o ?? null), I("hint", L ?? null), I("error", g ?? null), I("locale", E ?? null), I("translations", ge(N)), I("variant", w && w !== "default" ? w : null);
1886
- }, [
1887
- e,
1888
- t,
1889
- l,
1890
- r,
1891
- i,
1892
- f,
1893
- c,
1894
- s,
1895
- u,
1896
- p,
1897
- n,
1898
- b,
1899
- A,
1900
- y,
1901
- m,
1902
- a,
1903
- d,
1904
- o,
1905
- L,
1906
- g,
1907
- E,
1908
- N,
1909
- w
1910
- ]), h.createElement("ui-time-picker", { ref: T, ...q }, D);
1911
- });
1912
- fr.displayName = "TimePicker";
1913
- const dr = typeof window < "u" ? z : G, ar = h.forwardRef(function({
1914
- value: e,
1915
- defaultValue: t,
1916
- open: l,
1917
- defaultOpen: r,
1918
- min: i,
1919
- max: f,
1920
- locale: c,
1921
- translations: s,
1922
- weekStart: u,
1923
- size: p,
1924
- bare: n,
1925
- variant: b,
1926
- step: A,
1927
- format: y,
1928
- disabled: m,
1929
- readOnly: a,
1930
- required: d,
1931
- name: o,
1932
- closeOnSelect: L,
1933
- clearable: g,
1934
- allowInput: E,
1935
- mode: N,
1936
- showFooter: w,
1937
- label: S,
1938
- hint: k,
1939
- error: J,
1940
- onInput: x,
1941
- onChange: $,
1942
- onValueChange: F,
1943
- onOpen: D,
1944
- onClose: q,
1945
- onInvalid: R,
1946
- children: T,
1947
- ...j
1948
- }, I) {
1949
- const H = Q(null);
1950
- return V(I, () => H.current), G(() => {
1951
- const P = H.current;
1952
- if (!P)
1953
- return;
1954
- const B = (_) => {
1955
- const M = _.detail;
1956
- M && (x == null || x(M));
1957
- }, U = (_) => {
1958
- const M = _.detail;
1959
- M && ($ == null || $(M), F == null || F(M.value));
1960
- }, Y = (_) => {
1961
- const M = _.detail;
1962
- M && (R == null || R(M));
1963
- };
1964
- return P.addEventListener("input", B), P.addEventListener("change", U), P.addEventListener("open", D), P.addEventListener("close", q), P.addEventListener("invalid", Y), () => {
1965
- P.removeEventListener("input", B), P.removeEventListener("change", U), P.removeEventListener("open", D), P.removeEventListener("close", q), P.removeEventListener("invalid", Y);
1966
- };
1967
- }, [x, $, F, D, q, R]), dr(() => {
1968
- const P = H.current;
1969
- if (!P)
1970
- return;
1971
- const B = (Y, _) => {
1972
- const M = P.getAttribute(Y);
1973
- _ == null ? M != null && P.removeAttribute(Y) : M !== _ && P.setAttribute(Y, _);
1974
- }, U = (Y, _) => {
1975
- _ ? B(Y, "") : B(Y, null);
1976
- };
1977
- B("value", e ?? null), B("default-value", t ?? null), typeof l == "boolean" ? U("open", l) : B("open", null), U("default-open", r), B("min", i ?? null), B("max", f ?? null), B("locale", c ?? null), B("translations", ge(s)), B("week-start", typeof u == "number" ? String(u) : null), B("size", p && p !== "md" ? p : null), U("bare", n), B("variant", b && b !== "default" ? b : null), B("step", typeof A == "number" ? String(A) : null), B("format", y && y !== "24h" ? y : null), U("disabled", m), U("readonly", a), U("required", d), B("name", o ?? null), U("close-on-select", L), U("clearable", g), U("allow-input", E), B("mode", N && N !== "popover" ? N : null), B("show-footer", typeof w == "boolean" ? String(w) : null), B("label", S ?? null), B("hint", k ?? null), B("error", J ?? null);
1978
- }, [
1979
- e,
1980
- t,
1981
- l,
1982
- r,
1983
- i,
1984
- f,
1985
- c,
1986
- s,
1987
- u,
1988
- p,
1989
- n,
1990
- b,
1991
- A,
1992
- y,
1993
- m,
1994
- a,
1995
- d,
1996
- o,
1997
- L,
1998
- g,
1999
- E,
2000
- N,
2001
- w,
2002
- S,
2003
- k,
2004
- J
2005
- ]), h.createElement("ui-date-time-picker", { ref: H, ...j }, T);
2006
- });
2007
- ar.displayName = "DateTimePicker";
2008
- const mr = typeof window < "u" ? z : G, br = h.forwardRef(
2009
- function({
2010
- value: e,
2011
- defaultValue: t,
2012
- open: l,
2013
- defaultOpen: r,
2014
- min: i,
2015
- max: f,
2016
- locale: c,
2017
- translations: s,
2018
- weekStart: u,
2019
- size: p,
2020
- bare: n,
2021
- variant: b,
2022
- step: A,
2023
- autoNormalize: y,
2024
- allowPartial: m,
2025
- disabled: a,
2026
- readOnly: d,
2027
- required: o,
2028
- name: L,
2029
- closeOnSelect: g,
2030
- clearable: E,
2031
- mode: N,
2032
- showFooter: w,
2033
- label: S,
2034
- hint: k,
2035
- error: J,
2036
- onInput: x,
2037
- onChange: $,
2038
- onValueChange: F,
2039
- onOpen: D,
2040
- onClose: q,
2041
- onInvalid: R,
2042
- children: T,
2043
- ...j
2044
- }, I) {
2045
- const H = Q(null);
2046
- return V(I, () => H.current), G(() => {
2047
- const P = H.current;
2048
- if (!P)
2049
- return;
2050
- const B = (_) => {
2051
- const M = _.detail;
2052
- M && (x == null || x(M));
2053
- }, U = (_) => {
2054
- const M = _.detail;
2055
- M && ($ == null || $(M), F == null || F(M.value ? JSON.stringify(M.value) : null));
2056
- }, Y = (_) => {
2057
- const M = _.detail;
2058
- M && (R == null || R(M));
2059
- };
2060
- return P.addEventListener("input", B), P.addEventListener("change", U), P.addEventListener("open", D), P.addEventListener("close", q), P.addEventListener("invalid", Y), () => {
2061
- P.removeEventListener("input", B), P.removeEventListener("change", U), P.removeEventListener("open", D), P.removeEventListener("close", q), P.removeEventListener("invalid", Y);
2062
- };
2063
- }, [x, $, F, D, q, R]), mr(() => {
2064
- const P = H.current;
2065
- if (!P)
2066
- return;
2067
- const B = (Y, _) => {
2068
- const M = P.getAttribute(Y);
2069
- _ == null ? M != null && P.removeAttribute(Y) : M !== _ && P.setAttribute(Y, _);
2070
- }, U = (Y, _) => {
2071
- _ ? B(Y, "") : B(Y, null);
2072
- };
2073
- B("value", e ?? null), B("default-value", t ?? null), typeof l == "boolean" ? U("open", l) : B("open", null), U("default-open", r), B("min", i ?? null), B("max", f ?? null), B("locale", c ?? null), B("translations", ge(s)), B("week-start", typeof u == "number" ? String(u) : null), B("size", p && p !== "md" ? p : null), U("bare", n), B("variant", b && b !== "default" ? b : null), B("step", typeof A == "number" ? String(A) : null), U("auto-normalize", y), U("allow-partial", m), U("disabled", a), U("readonly", d), U("required", o), B("name", L ?? null), U("close-on-select", g), U("clearable", E), B("mode", N && N !== "popover" ? N : null), B("show-footer", typeof w == "boolean" ? String(w) : null), B("label", S ?? null), B("hint", k ?? null), B("error", J ?? null);
2074
- }, [
2075
- e,
2076
- t,
2077
- l,
2078
- r,
2079
- i,
2080
- f,
2081
- c,
2082
- s,
2083
- u,
2084
- p,
2085
- n,
2086
- b,
2087
- A,
2088
- y,
2089
- m,
2090
- a,
2091
- d,
2092
- o,
2093
- L,
2094
- g,
2095
- E,
2096
- N,
2097
- w,
2098
- S,
2099
- k,
2100
- J
2101
- ]), h.createElement("ui-date-range-time-picker", { ref: H, ...j }, T);
2102
- }
2103
- );
2104
- br.displayName = "DateRangeTimePicker";
2105
- const vr = typeof window < "u" ? z : G, pr = h.forwardRef(function({ tasks: e, variant: t, headless: l, children: r, ...i }, f) {
2106
- const c = Q(null);
2107
- return V(f, () => c.current), vr(() => {
2108
- const s = c.current;
2109
- if (!s)
2110
- return;
2111
- const u = (n, b) => {
2112
- const A = s.getAttribute(n);
2113
- if (b == null) {
2114
- A != null && s.removeAttribute(n);
2115
- return;
2116
- }
2117
- A !== b && s.setAttribute(n, b);
2118
- }, p = (n, b) => {
2119
- b ? u(n, "") : u(n, null);
2120
- };
2121
- if (e && e.length)
2122
- try {
2123
- u("tasks", JSON.stringify(e));
2124
- } catch {
2125
- u("tasks", null);
2126
- }
2127
- else
2128
- u("tasks", null);
2129
- u("variant", t && t !== "default" ? t : null), p("headless", l);
2130
- }, [e, t, l]), h.createElement("ui-gantt", { ref: c, ...i }, r);
2131
- });
2132
- pr.displayName = "Gantt";
2133
- const Ar = typeof window < "u" ? z : G, yr = h.forwardRef(function({
2134
- steps: e,
2135
- value: t,
2136
- orientation: l,
2137
- variant: r,
2138
- size: i,
2139
- clickable: f,
2140
- linear: c,
2141
- headless: s,
2142
- onChange: u,
2143
- onSelect: p,
2144
- children: n,
2145
- ...b
2146
- }, A) {
2147
- const y = Q(null);
2148
- return V(A, () => y.current), G(() => {
2149
- const m = y.current;
2150
- if (!m)
2151
- return;
2152
- const a = (o) => {
2153
- const L = o.detail;
2154
- L && (u == null || u(L));
2155
- }, d = (o) => {
2156
- const L = o.detail;
2157
- L && (p == null || p(L));
2158
- };
2159
- return m.addEventListener("change", a), m.addEventListener("select", d), () => {
2160
- m.removeEventListener("change", a), m.removeEventListener("select", d);
2161
- };
2162
- }, [u, p]), Ar(() => {
2163
- const m = y.current;
2164
- if (!m)
2165
- return;
2166
- const a = (o, L) => {
2167
- const g = m.getAttribute(o);
2168
- if (L == null) {
2169
- g != null && m.removeAttribute(o);
2170
- return;
2171
- }
2172
- g !== L && m.setAttribute(o, L);
2173
- }, d = (o, L) => {
2174
- L ? a(o, "") : a(o, null);
2175
- };
2176
- if (e && e.length)
2177
- try {
2178
- a("steps", JSON.stringify(e));
2179
- } catch {
2180
- a("steps", null);
2181
- }
2182
- else
2183
- a("steps", null);
2184
- a("value", t || null), a("orientation", l && l !== "horizontal" ? l : null), a("variant", r && r !== "default" ? r : null), a("size", i && i !== "md" ? i : null), d("clickable", f), d("linear", c), d("headless", s);
2185
- }, [e, t, l, r, i, f, c, s]), h.createElement("ui-stepper", { ref: y, ...b }, n);
2186
- });
2187
- yr.displayName = "Stepper";
2188
- const Er = typeof window < "u" ? z : G, $e = h.createContext(null);
2189
- function Ie(v) {
2190
- const {
2191
- selected: e,
2192
- orientation: t,
2193
- activation: l,
2194
- variant: r,
2195
- size: i,
2196
- radius: f,
2197
- elevation: c,
2198
- tone: s,
2199
- loop: u,
2200
- collapsible: p,
2201
- headless: n,
2202
- onChange: b,
2203
- onSelect: A,
2204
- children: y,
2205
- ...m
2206
- } = v, a = Q(null);
2207
- return G(() => {
2208
- const d = a.current;
2209
- if (!d)
2210
- return;
2211
- const o = (L) => {
2212
- const g = L.detail;
2213
- g && (b == null || b(g), A == null || A(g.selected));
2214
- };
2215
- return d.addEventListener("change", o), () => d.removeEventListener("change", o);
2216
- }, [b, A]), Er(() => {
2217
- const d = a.current;
2218
- d && (typeof e == "number" ? d.setAttribute("selected", String(e)) : d.removeAttribute("selected"), t ? d.setAttribute("orientation", t) : d.removeAttribute("orientation"), l ? d.setAttribute("activation", l) : d.removeAttribute("activation"), r && r !== "surface" ? d.setAttribute("variant", r) : d.removeAttribute("variant"), i && i !== "md" && i !== "2" ? d.setAttribute("size", i) : d.removeAttribute("size"), f == null || f === "" || f === "default" ? d.removeAttribute("radius") : d.setAttribute("radius", String(f)), c && c !== "low" ? d.setAttribute("elevation", c) : d.removeAttribute("elevation"), s && s !== "default" ? d.setAttribute("tone", s) : d.removeAttribute("tone"), typeof u == "boolean" ? d.setAttribute("loop", String(u)) : d.removeAttribute("loop"), p ? d.setAttribute("collapsible", "") : d.removeAttribute("collapsible"), n ? d.setAttribute("headless", "") : d.removeAttribute("headless"));
2219
- }, [e, t, l, r, i, f, c, s, u, p, n]), h.createElement("ui-navigation-menu", { ref: a, ...m }, y);
2220
- }
2221
- function Lr({ children: v }) {
2222
- return /* @__PURE__ */ h.createElement(h.Fragment, null, v);
2223
- }
2224
- function gr({ children: v }) {
2225
- const e = Q(`ui-nav-item-${Math.random().toString(36).slice(2, 10)}`), [t, l] = Le(!1);
2226
- return /* @__PURE__ */ h.createElement($e.Provider, { value: { itemKey: e.current, hasContent: t, setHasContent: l } }, v);
2227
- }
2228
- function wr({ children: v, ...e }) {
2229
- const t = h.useContext($e), l = Q(null), [r, i] = Le(!1);
2230
- return G(() => {
2231
- const f = l.current;
2232
- if (!f)
2233
- return;
2234
- const c = () => {
2235
- i(f.getAttribute("aria-expanded") === "true");
2236
- };
2237
- c();
2238
- const s = new MutationObserver(c);
2239
- return s.observe(f, {
2240
- attributes: !0,
2241
- attributeFilter: ["aria-expanded"]
2242
- }), () => s.disconnect();
2243
- }, []), /* @__PURE__ */ h.createElement("button", { type: "button", ref: l, slot: "item", "data-nav-key": (t == null ? void 0 : t.itemKey) ?? void 0, ...e }, v, t != null && t.hasContent ? /* @__PURE__ */ h.createElement("span", { "aria-hidden": "true", style: { marginLeft: 6, display: "inline-flex", alignItems: "center", lineHeight: 1 } }, /* @__PURE__ */ h.createElement(
2244
- "svg",
2245
- {
2246
- width: "12",
2247
- height: "12",
2248
- viewBox: "0 0 12 12",
2249
- fill: "none",
2250
- xmlns: "http://www.w3.org/2000/svg",
2251
- style: {
2252
- display: "block",
2253
- transform: r ? "rotate(180deg)" : "rotate(0deg)",
2254
- transition: "transform 180ms cubic-bezier(0.2, 0.9, 0.24, 1)"
2255
- }
2256
- },
2257
- /* @__PURE__ */ h.createElement(
2258
- "path",
2259
- {
2260
- d: "M3 4.75L6 7.25L9 4.75",
2261
- stroke: "currentColor",
2262
- strokeWidth: "1.5",
2263
- strokeLinecap: "round",
2264
- strokeLinejoin: "round"
2265
- }
2266
- )
2267
- )) : null);
2268
- }
2269
- function hr({ children: v, ...e }) {
2270
- const t = h.useContext($e);
2271
- return /* @__PURE__ */ h.createElement("a", { slot: "item", "data-nav-key": (t == null ? void 0 : t.itemKey) ?? void 0, ...e }, v);
2272
- }
2273
- function Nr({ children: v, ...e }) {
2274
- const t = h.useContext($e);
2275
- return G(() => {
2276
- if (t)
2277
- return t.setHasContent(!0), () => t.setHasContent(!1);
2278
- }, [t]), /* @__PURE__ */ h.createElement("section", { slot: "panel", "data-nav-panel-for": (t == null ? void 0 : t.itemKey) ?? void 0, ...e }, v);
2279
- }
2280
- function Sr() {
2281
- return null;
2282
- }
2283
- function Hr() {
2284
- return null;
2285
- }
2286
- const Cn = Object.assign(Ie, {
2287
- Root: Ie,
2288
- List: Lr,
2289
- Item: gr,
2290
- Trigger: wr,
2291
- Link: hr,
2292
- Content: Nr,
2293
- Indicator: Sr,
2294
- Viewport: Hr
2295
- }), kr = typeof window < "u" ? h.useLayoutEffect : h.useEffect, Rr = h.forwardRef(function(e, t) {
2296
- const {
2297
- open: l,
2298
- title: r,
2299
- description: i,
2300
- closable: f,
2301
- dismissible: c,
2302
- closeOnOverlay: s,
2303
- closeOnEsc: u,
2304
- lockWhileLoading: p,
2305
- roleType: n,
2306
- size: b,
2307
- state: A,
2308
- initialFocus: y,
2309
- submitText: m,
2310
- cancelText: a,
2311
- loadingText: d,
2312
- dialogId: o,
2313
- config: L,
2314
- headless: g,
2315
- onOpen: E,
2316
- onClose: N,
2317
- onRequestClose: w,
2318
- onDialogOpen: S,
2319
- onDialogSubmit: k,
2320
- onDialogCancel: J,
2321
- onDialogDismiss: x,
2322
- onDialogClose: $,
2323
- children: F,
2324
- ...D
2325
- } = e, q = Q(null);
2326
- return h.useImperativeHandle(t, () => q.current), G(() => {
2327
- const R = q.current;
2328
- if (!R)
2329
- return;
2330
- const T = () => E == null ? void 0 : E(), j = () => N == null ? void 0 : N(), I = (_) => {
2331
- const M = _.detail;
2332
- M && (w == null || w(M));
2333
- }, H = (_) => S == null ? void 0 : S(_.detail), P = (_) => k == null ? void 0 : k(_.detail), B = (_) => J == null ? void 0 : J(_.detail), U = (_) => x == null ? void 0 : x(_.detail), Y = (_) => $ == null ? void 0 : $(_.detail);
2334
- return R.addEventListener("open", T), R.addEventListener("close", j), R.addEventListener("request-close", I), R.addEventListener("ui-open", H), R.addEventListener("ui-submit", P), R.addEventListener("ui-cancel", B), R.addEventListener("ui-dismiss", U), R.addEventListener("ui-close", Y), () => {
2335
- R.removeEventListener("open", T), R.removeEventListener("close", j), R.removeEventListener("request-close", I), R.removeEventListener("ui-open", H), R.removeEventListener("ui-submit", P), R.removeEventListener("ui-cancel", B), R.removeEventListener("ui-dismiss", U), R.removeEventListener("ui-close", Y);
2336
- };
2337
- }, [E, N, w, S, k, J, x, $]), kr(() => {
2338
- const R = q.current;
2339
- if (!R)
2340
- return;
2341
- typeof l == "boolean" && (l ? R.setAttribute("open", "") : R.removeAttribute("open")), r ? R.setAttribute("title", r) : R.removeAttribute("title"), i ? R.setAttribute("description", i) : R.removeAttribute("description");
2342
- const T = typeof c == "boolean" ? c : f;
2343
- typeof T == "boolean" ? (R.setAttribute("dismissible", String(T)), R.setAttribute("closable", String(T))) : (R.removeAttribute("dismissible"), R.removeAttribute("closable")), typeof s == "boolean" ? (R.setAttribute("close-on-overlay", String(s)), R.setAttribute("close-on-backdrop", String(s))) : (R.removeAttribute("close-on-overlay"), R.removeAttribute("close-on-backdrop")), typeof u == "boolean" ? R.setAttribute("close-on-esc", String(u)) : R.removeAttribute("close-on-esc"), typeof p == "boolean" ? R.setAttribute("lock-while-loading", String(p)) : R.removeAttribute("lock-while-loading"), n ? R.setAttribute("role", n) : R.removeAttribute("role"), b && b !== "md" && b !== "2" ? R.setAttribute("size", b) : R.removeAttribute("size"), A && A !== "idle" ? R.setAttribute("state", A) : R.removeAttribute("state"), y ? R.setAttribute("initial-focus", y) : R.removeAttribute("initial-focus"), m ? R.setAttribute("submit-text", m) : R.removeAttribute("submit-text"), a ? R.setAttribute("cancel-text", a) : R.removeAttribute("cancel-text"), d ? R.setAttribute("loading-text", d) : R.removeAttribute("loading-text"), o && (R.dialogId = o), L && (R.config = L), g ? R.setAttribute("headless", "") : R.removeAttribute("headless");
2344
- }, [
2345
- l,
2346
- r,
2347
- i,
2348
- f,
2349
- c,
2350
- s,
2351
- u,
2352
- p,
2353
- n,
2354
- b,
2355
- A,
2356
- y,
2357
- m,
2358
- a,
2359
- d,
2360
- o,
2361
- L,
2362
- g
2363
- ]), h.createElement("ui-dialog", { ref: q, ...D }, F);
2364
- });
2365
- Rr.displayName = "Dialog";
2366
- const Ve = ke(null), we = "data-ui-dialog-react-host-refcount";
2367
- function ei({ children: v, hostId: e = "ui-dialog-react-host" }) {
2368
- const t = Q(null);
2369
- t.current || (t.current = vt()), G(() => {
2370
- var c;
2371
- if (typeof document > "u")
2372
- return;
2373
- let r = document.getElementById(e);
2374
- const i = !r;
2375
- r || (r = document.createElement("div"), r.id = e, r.setAttribute("data-ui-dialog-react-host", "true"), document.body.appendChild(r));
2376
- const f = Number(r.getAttribute(we) || "0");
2377
- return r.setAttribute(we, String(Math.max(0, f) + 1)), (c = t.current) == null || c.setContainer(r), () => {
2378
- var p, n;
2379
- if ((p = t.current) == null || p.destroy("unmount"), t.current = null, !r || !r.isConnected)
2380
- return;
2381
- const s = Number(r.getAttribute(we) || "1"), u = Math.max(0, s - 1);
2382
- u === 0 ? (r.removeAttribute(we), i && ((n = r.parentElement) == null || n.removeChild(r))) : r.setAttribute(we, String(u));
2383
- };
2384
- }, [e]);
2385
- const l = Re(
2386
- () => ({
2387
- open: (r = {}) => {
2388
- var i;
2389
- return ((i = t.current) == null ? void 0 : i.open(r)) ?? Promise.resolve({ id: "", action: "dismiss" });
2390
- },
2391
- confirm: (r = {}) => {
2392
- var i;
2393
- return ((i = t.current) == null ? void 0 : i.confirm(r)) ?? Promise.resolve({ id: "", action: "dismiss" });
2394
- }
2395
- }),
2396
- []
2397
- );
2398
- return /* @__PURE__ */ h.createElement(Ve.Provider, { value: l }, v);
2399
- }
2400
- function ti() {
2401
- const v = Pe(Ve);
2402
- if (!v)
2403
- throw new Error("useDialog must be used within <DialogProvider>.");
2404
- return v;
2405
- }
2406
- const Pr = typeof window < "u" ? z : G, xr = h.forwardRef(function({
2407
- children: e,
2408
- name: t,
2409
- iconVariant: l,
2410
- size: r,
2411
- color: i,
2412
- secondaryColor: f,
2413
- variant: c,
2414
- tone: s,
2415
- shape: u,
2416
- spin: p,
2417
- pulse: n,
2418
- badge: b,
2419
- label: A,
2420
- decorative: y,
2421
- strokeWidth: m,
2422
- absoluteStrokeWidth: a,
2423
- strokeLinecap: d,
2424
- strokeLinejoin: o,
2425
- rotate: L,
2426
- flip: g,
2427
- rtl: E,
2428
- ...N
2429
- }, w) {
2430
- const S = Q(null);
2431
- return V(w, () => S.current), Pr(() => {
2432
- const k = S.current;
2433
- k && (t ? k.setAttribute("name", t) : k.removeAttribute("name"), l ? k.setAttribute("icon-variant", l) : k.removeAttribute("icon-variant"), r != null && r !== "" ? k.setAttribute("size", String(r)) : k.removeAttribute("size"), i ? k.setAttribute("color", i) : k.removeAttribute("color"), f ? k.setAttribute("secondary-color", f) : k.removeAttribute("secondary-color"), c && c !== "default" ? k.setAttribute("variant", c) : k.removeAttribute("variant"), s && s !== "default" ? k.setAttribute("tone", s) : k.removeAttribute("tone"), u && u !== "default" ? k.setAttribute("shape", u) : k.removeAttribute("shape"), p ? k.setAttribute("spin", "") : k.removeAttribute("spin"), n ? k.setAttribute("pulse", "") : k.removeAttribute("pulse"), b ? k.setAttribute("badge", "") : k.removeAttribute("badge"), A ? k.setAttribute("label", A) : k.removeAttribute("label"), y ? k.setAttribute("decorative", "") : k.removeAttribute("decorative"), m != null && m !== "" ? k.setAttribute("stroke-width", String(m)) : k.removeAttribute("stroke-width"), a ? k.setAttribute("absolute-stroke-width", "") : k.removeAttribute("absolute-stroke-width"), d ? k.setAttribute("stroke-linecap", d) : k.removeAttribute("stroke-linecap"), o ? k.setAttribute("stroke-linejoin", o) : k.removeAttribute("stroke-linejoin"), L != null && Number.isFinite(L) ? k.setAttribute("rotate", String(L)) : k.removeAttribute("rotate"), g ? k.setAttribute("flip", g) : k.removeAttribute("flip"), E ? k.setAttribute("rtl", "") : k.removeAttribute("rtl"));
2434
- }, [
2435
- t,
2436
- l,
2437
- r,
2438
- i,
2439
- f,
2440
- c,
2441
- s,
2442
- u,
2443
- p,
2444
- n,
2445
- b,
2446
- A,
2447
- y,
2448
- m,
2449
- a,
2450
- d,
2451
- o,
2452
- L,
2453
- g,
2454
- E
2455
- ]), h.createElement("ui-icon", { ref: S, ...N }, e);
2456
- });
2457
- xr.displayName = "Icon";
2458
- function Ae(v) {
2459
- if (!v)
2460
- return {};
2461
- const e = { ...v };
2462
- return e.type != null && e.level == null && (e.level = e.type), delete e.type, e;
2463
- }
2464
- function ri(v, e = {}) {
2465
- return ue.show({
2466
- message: v,
2467
- level: "info",
2468
- ...Ae(e)
2469
- });
2470
- }
2471
- const Ce = {
2472
- show(v, e = {}) {
2473
- return ue.show({ message: v, ...Ae(e) });
2474
- },
2475
- success(v, e = {}) {
2476
- return ue.success(v, Ae(e));
2477
- },
2478
- error(v, e = {}) {
2479
- return ue.error(v, Ae(e));
2480
- },
2481
- warning(v, e = {}) {
2482
- return ue.warning(v, Ae(e));
2483
- },
2484
- info(v, e = {}) {
2485
- return ue.info(v, Ae(e));
2486
- },
2487
- loading(v, e = {}) {
2488
- return ue.loading(v, Ae(e));
2489
- },
2490
- dismiss(v) {
2491
- return ue.dismiss(String(v));
2492
- },
2493
- clear() {
2494
- return ue.clear();
2495
- },
2496
- configure(v) {
2497
- return ue.configure(v);
2498
- }
2499
- }, et = ke(null);
2500
- function ni({ config: v } = {}) {
2501
- return G(() => {
2502
- v && ue.configure(v);
2503
- }, [v]), null;
2504
- }
2505
- function ii({ children: v, config: e }) {
2506
- G(() => {
2507
- e && ue.configure(e);
2508
- }, [e]);
2509
- const t = Re(() => Ce, []);
2510
- return /* @__PURE__ */ h.createElement(et.Provider, { value: t }, v);
2511
- }
2512
- function li() {
2513
- const v = Pe(et);
2514
- return v || Ce;
2515
- }
2516
- const $r = typeof window < "u" ? z : G;
2517
- function Tr(v) {
2518
- if (!v)
2519
- return {};
2520
- const e = { ...v };
2521
- return e.type != null && e.level == null && (e.level = e.type), delete e.type, e;
2522
- }
2523
- const Fr = h.forwardRef(function({ children: e, position: t, maxVisible: l, theme: r, config: i, headless: f, onShow: c, onHide: s, ...u }, p) {
2524
- const n = Q(c), b = Q(s);
2525
- return G(() => {
2526
- n.current = c;
2527
- }, [c]), G(() => {
2528
- b.current = s;
2529
- }, [s]), V(
2530
- p,
2531
- () => ({
2532
- show(A, y) {
2533
- let m = "";
2534
- const a = Tr(y), d = a.onShow, o = a.onHide;
2535
- return m = ue.show({
2536
- message: A,
2537
- ...a,
2538
- onShow: () => {
2539
- var g;
2540
- d == null || d(), (g = n.current) == null || g.call(n, { id: m, message: A });
2541
- },
2542
- onHide: () => {
2543
- var g;
2544
- o == null || o(), (g = b.current) == null || g.call(b, { id: m });
2545
- }
2546
- }).id, m;
2547
- },
2548
- hide(A) {
2549
- ue.dismiss(String(A));
2550
- },
2551
- clear() {
2552
- ue.clear();
2553
- },
2554
- configure(A) {
2555
- ue.configure(A);
2556
- }
2557
- }),
2558
- []
2559
- ), $r(() => {
2560
- const A = {
2561
- ...i || {}
2562
- };
2563
- t && (A.position = t), r && (A.theme = r), typeof l == "number" && Number.isFinite(l) && (A.maxVisible = Math.max(1, Math.trunc(l))), Object.keys(A).length > 0 && ue.configure(A);
2564
- }, [t, l, r, i]), e == null && Object.keys(u).length === 0 ? null : h.createElement("div", { ...u }, e);
2565
- });
2566
- Fr.displayName = "Toast";
2567
- const Ir = typeof window < "u" ? W.useLayoutEffect : W.useEffect, Dr = W.forwardRef(function({
2568
- children: e,
2569
- orientation: t,
2570
- variant: l,
2571
- tone: r,
2572
- state: i,
2573
- elevation: f,
2574
- size: c,
2575
- radius: s,
2576
- density: u,
2577
- wrap: p,
2578
- loop: n,
2579
- disabled: b,
2580
- activeIndex: A,
2581
- ariaLabel: y,
2582
- onNavigate: m,
2583
- ...a
2584
- }, d) {
2585
- const o = W.useRef(null);
2586
- return W.useImperativeHandle(d, () => o.current), W.useEffect(() => {
2587
- de("ui-block-controls", "BlockControls");
2588
- }, []), W.useEffect(() => {
2589
- const L = o.current;
2590
- if (!L || !m)
2591
- return;
2592
- const g = (E) => m(E.detail);
2593
- return L.addEventListener("ui-navigate", g), () => L.removeEventListener("ui-navigate", g);
2594
- }, [m]), Ir(() => {
2595
- const L = o.current;
2596
- L && (t ? L.setAttribute("orientation", t) : L.removeAttribute("orientation"), l && l !== "surface" && l !== "floating" ? L.setAttribute("variant", l) : L.removeAttribute("variant"), r && r !== "neutral" ? L.setAttribute("tone", r) : L.removeAttribute("tone"), i && i !== "idle" ? L.setAttribute("state", i) : L.removeAttribute("state"), f && f !== "low" && f !== "md" ? L.setAttribute("elevation", f) : L.removeAttribute("elevation"), c && c !== "md" && c !== "2" ? L.setAttribute("size", c) : L.removeAttribute("size"), s != null ? L.setAttribute("radius", String(s)) : L.removeAttribute("radius"), u ? L.setAttribute("density", u) : L.removeAttribute("density"), p == null ? L.removeAttribute("wrap") : p ? L.setAttribute("wrap", "") : L.removeAttribute("wrap"), n == null ? (L.removeAttribute("loop"), L.removeAttribute("no-loop")) : n ? (L.setAttribute("loop", ""), L.removeAttribute("no-loop")) : (L.removeAttribute("loop"), L.setAttribute("no-loop", "")), b == null ? L.removeAttribute("disabled") : b ? L.setAttribute("disabled", "") : L.removeAttribute("disabled"), typeof A == "number" && Number.isFinite(A) ? L.setAttribute("active-index", String(A)) : L.removeAttribute("active-index"), y ? L.setAttribute("aria-label", y) : L.removeAttribute("aria-label"));
2597
- }, [t, l, r, i, f, c, s, u, p, n, b, A, y]), W.createElement("ui-block-controls", { ref: o, ...a }, e);
2598
- });
2599
- Dr.displayName = "BlockControls";
2600
- function ui(v) {
2601
- const {
2602
- items: e,
2603
- anchorId: t,
2604
- anchorEl: l,
2605
- anchorPoint: r,
2606
- open: i,
2607
- disabled: f,
2608
- state: c,
2609
- stateText: s,
2610
- variant: u,
2611
- size: p,
2612
- radius: n,
2613
- density: b,
2614
- shape: A,
2615
- elevation: y,
2616
- tone: m,
2617
- closeOnSelect: a,
2618
- closeOnEscape: d,
2619
- typeahead: o,
2620
- children: L,
2621
- onOpenDetail: g,
2622
- onCloseDetail: E,
2623
- onOpen: N,
2624
- onClose: w,
2625
- onChange: S,
2626
- onSelect: k,
2627
- ...J
2628
- } = v, x = Q(null), $ = Q(""), [F, D] = Le(null), q = (H) => {
2629
- queueMicrotask(() => {
2630
- var P;
2631
- D(((P = H.getPortalContentHost) == null ? void 0 : P.call(H)) || null);
2632
- }), requestAnimationFrame(() => {
2633
- var P;
2634
- D(((P = H.getPortalContentHost) == null ? void 0 : P.call(H)) || null);
2635
- }), window.setTimeout(() => {
2636
- var P;
2637
- D(((P = H.getPortalContentHost) == null ? void 0 : P.call(H)) || null);
2638
- }, 0);
2639
- };
2640
- G(() => {
2641
- const H = x.current;
2642
- if (!H)
2643
- return;
2644
- const P = (_) => {
2645
- var X;
2646
- const M = _.detail;
2647
- D(((X = H.getPortalContentHost) == null ? void 0 : X.call(H)) || null), N == null || N(), M && (g == null || g(M));
2648
- }, B = (_) => {
2649
- const M = _.detail;
2650
- D(null), w == null || w(), M && (E == null || E(M));
2651
- }, U = (_) => {
2652
- var X;
2653
- const M = (X = _.detail) == null ? void 0 : X.open;
2654
- typeof M == "boolean" && (S == null || S(M));
2655
- }, Y = (_) => {
2656
- const M = _.detail;
2657
- k == null || k(M);
2658
- };
2659
- return H.addEventListener("open", P), H.addEventListener("close", B), H.addEventListener("change", U), H.addEventListener("select", Y), () => {
2660
- H.removeEventListener("open", P), H.removeEventListener("close", B), H.removeEventListener("change", U), H.removeEventListener("select", Y);
2661
- };
2662
- }, [N, w, g, E, S, k]), G(() => {
2663
- var P, B, U, Y, _, M;
2664
- const H = x.current;
2665
- if (!(!H || i == null)) {
2666
- if (!i) {
2667
- $.current = "closed", D(null), H.close ? H.close() : H.open = !1;
2668
- return;
2669
- }
2670
- if (r && H.openAt) {
2671
- const X = `point:${r.x}:${r.y}`;
2672
- ($.current !== X || !H.open) && (H.openAt(r), $.current = X), D(((P = H.getPortalContentHost) == null ? void 0 : P.call(H)) || null), q(H);
2673
- return;
2674
- }
2675
- if (l) {
2676
- const X = "anchor:element";
2677
- if (H.openForAnchor) {
2678
- ($.current !== X || !H.open) && (H.openForAnchor(l), $.current = X), D(((B = H.getPortalContentHost) == null ? void 0 : B.call(H)) || null), q(H);
2679
- return;
2680
- }
2681
- if (H.openFor) {
2682
- ($.current !== X || !H.open) && (H.openFor(l), $.current = X), D(((U = H.getPortalContentHost) == null ? void 0 : U.call(H)) || null), q(H);
2683
- return;
2684
- }
2685
- }
2686
- if (t) {
2687
- const X = `anchor:${t}`;
2688
- if (H.openForAnchorId) {
2689
- ($.current !== X || !H.open) && (H.openForAnchorId(t), $.current = X), D(((Y = H.getPortalContentHost) == null ? void 0 : Y.call(H)) || null), q(H);
2690
- return;
2691
- }
2692
- if (H.showForAnchorId) {
2693
- ($.current !== X || !H.open) && (H.showForAnchorId(t), $.current = X), D(((_ = H.getPortalContentHost) == null ? void 0 : _.call(H)) || null), q(H);
2694
- return;
2695
- }
2696
- }
2697
- H.open || (H.open = !0), $.current = "open", D(((M = H.getPortalContentHost) == null ? void 0 : M.call(H)) || null), q(H);
2698
- }
2699
- }, [i, t, l, r]), G(() => {
2700
- var P;
2701
- const H = x.current;
2702
- !F || !H || !i || (P = H.refreshLayout) == null || P.call(H);
2703
- }, [L, e, i, F]);
2704
- const R = (H) => H ? H.map((P, B) => {
2705
- if (P.separator)
2706
- return /* @__PURE__ */ h.createElement("div", { key: B, className: "separator", role: "separator" });
2707
- let U = null;
2708
- P.icon && (U = /* @__PURE__ */ h.createElement("span", { className: "icon" }, P.icon));
2709
- let Y = null;
2710
- return P.submenu && (Y = /* @__PURE__ */ h.createElement("div", { className: "submenu" }, R(P.submenu))), /* @__PURE__ */ h.createElement(
2711
- "div",
2712
- {
2713
- key: B,
2714
- className: "menuitem",
2715
- role: "menuitem",
2716
- tabIndex: P.disabled ? -1 : 0,
2717
- "aria-disabled": P.disabled ? "true" : void 0,
2718
- "data-value": P.value,
2719
- "data-tone": P.tone && P.tone !== "default" ? P.tone : void 0,
2720
- onClick: P.disabled ? void 0 : P.onClick
2721
- },
2722
- U,
2723
- /* @__PURE__ */ h.createElement("span", { className: "label" }, /* @__PURE__ */ h.createElement("span", { className: "text" }, P.label), P.description ? /* @__PURE__ */ h.createElement("span", { className: "caption" }, P.description) : null),
2724
- P.shortcut ? /* @__PURE__ */ h.createElement("span", { className: "shortcut" }, P.shortcut) : null,
2725
- P.submenu && /* @__PURE__ */ h.createElement("span", { className: "submenu-arrow" }, "▶"),
2726
- Y
2727
- );
2728
- }) : null, T = h.Children.count(L) > 0, j = !!i && !r && !t, I = T ? L : R(e);
2729
- return /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement(
2730
- "ui-context-menu",
2731
- {
2732
- ref: x,
2733
- ...J,
2734
- ...j ? { open: "" } : {},
2735
- ...u && u !== "default" && u !== "surface" ? { variant: u } : {},
2736
- ...p && p !== "md" && p !== "2" ? { size: p } : {},
2737
- ...n != null && n !== "" && n !== "md" ? { radius: String(n) } : {},
2738
- ...!p && b && b !== "default" ? { density: b } : {},
2739
- ...!n && A && A !== "default" ? { shape: A } : {},
2740
- ...y && y !== "default" ? { elevation: y } : {},
2741
- ...m && m !== "default" && m !== "brand" ? { tone: m } : {},
2742
- ...f ? { disabled: "" } : {},
2743
- ...c && c !== "idle" ? { state: c } : {},
2744
- ...s ? { "state-text": s } : {},
2745
- ...a == null ? {} : { "close-on-select": a ? "true" : "false" },
2746
- ...d == null ? {} : { "close-on-escape": d ? "true" : "false" },
2747
- ...o == null ? {} : { typeahead: o ? "true" : "false" }
2748
- }
2749
- ), F ? Et(/* @__PURE__ */ h.createElement("div", { slot: "menu" }, I), F) : null);
2750
- }
2751
- const Br = typeof window < "u" ? W.useLayoutEffect : W.useEffect, Jr = W.forwardRef(function({ children: e, open: t, position: l, size: r, title: i, description: f, headless: c, dismissible: s, onOpen: u, onClose: p, onOpenChange: n, ...b }, A) {
2752
- const y = W.useRef(null);
2753
- return W.useImperativeHandle(A, () => y.current), W.useEffect(() => {
2754
- de("ui-plugin-panel", "PluginPanel");
2755
- }, []), W.useEffect(() => {
2756
- const m = y.current;
2757
- if (!m)
2758
- return;
2759
- const a = () => u == null ? void 0 : u(), d = () => p == null ? void 0 : p(), o = (L) => {
2760
- const g = L.detail;
2761
- g && (n == null || n(g));
2762
- };
2763
- return m.addEventListener("open", a), m.addEventListener("close", d), m.addEventListener("open-change", o), () => {
2764
- m.removeEventListener("open", a), m.removeEventListener("close", d), m.removeEventListener("open-change", o);
2765
- };
2766
- }, [p, u, n]), Br(() => {
2767
- const m = y.current;
2768
- if (!m)
2769
- return;
2770
- const a = (d, o, L = !0) => {
2771
- if (!L)
2772
- return;
2773
- const g = m.getAttribute(d);
2774
- if (o == null) {
2775
- g != null && m.removeAttribute(d);
2776
- return;
2777
- }
2778
- g !== o && m.setAttribute(d, o);
2779
- };
2780
- typeof t == "boolean" && a("open", t ? "" : null), a("position", l ?? null, l !== void 0), a("size", r && r !== "md" ? r : null, r !== void 0), a("title", i ?? null, i !== void 0), a("description", f ?? null, f !== void 0), typeof c == "boolean" && a("headless", c ? "" : null), typeof s == "boolean" && a("dismissible", s ? "" : null);
2781
- }, [t, l, r, i, f, c, s]), W.createElement("ui-plugin-panel", { ref: y, ...b }, e);
2782
- });
2783
- Jr.displayName = "PluginPanel";
2784
- function si() {
2785
- const v = Q(null), e = ce(async () => {
2786
- const c = v.current;
2787
- return c ? await c.submit() : !1;
2788
- }, []), t = ce(async () => {
2789
- const c = v.current;
2790
- return c ? await c.validate() : { valid: !0, errors: {} };
2791
- }, []), l = ce(() => {
2792
- var s;
2793
- const c = v.current;
2794
- return c ? (s = c.getValues) == null ? void 0 : s.call(c) : {};
2795
- }, []), r = ce((c) => {
2796
- var u;
2797
- const s = v.current;
2798
- return (u = s == null ? void 0 : s.reset) == null ? void 0 : u.call(s, c);
2799
- }, []), i = ce(() => {
2800
- var s;
2801
- const c = v.current;
2802
- return c ? typeof c.isDirty == "function" ? !!c.isDirty() : ((s = c.hasAttribute) == null ? void 0 : s.call(c, "dirty")) || !1 : !1;
2803
- }, []), f = ce((c) => {
2804
- var u;
2805
- const s = v.current;
2806
- return (u = s == null ? void 0 : s.markClean) == null ? void 0 : u.call(s, c);
1
+ import { Button as Z } from "./Button.esm.js";
2
+ import { Tooltip as ee } from "./Tooltip.esm.js";
3
+ import { Alert as oe, AlertActions as te, AlertDescription as ne, AlertIcon as ie, AlertTitle as ae } from "./Alert.esm.js";
4
+ import { Dropdown as fe, DropdownContent as me, DropdownItem as se, DropdownSectionLabel as le, DropdownSeparator as ce, DropdownTrigger as ue } from "./Dropdown.esm.js";
5
+ import { Input as de } from "./Input.esm.js";
6
+ import { PasswordField as Ae } from "./PasswordField.esm.js";
7
+ import { TagsInput as Pe } from "./TagsInput.esm.js";
8
+ import { OTPInput as ye, PinInput as Te } from "./PinInput.esm.js";
9
+ import { Dropzone as we, FileUpload as Se } from "./FileUpload.esm.js";
10
+ import { Textarea as Me } from "./Textarea.esm.js";
11
+ import { Field as ke } from "./Field.esm.js";
12
+ import { ControlGroup as he, Description as Re, FieldError as Le, Fieldset as Ne } from "./FieldSemantics.esm.js";
13
+ import { Combobox as Be } from "./Combobox.esm.js";
14
+ import { Badge as He } from "./Badge.esm.js";
15
+ import { EmptyState as Ve } from "./EmptyState.esm.js";
16
+ import { Table as Oe } from "./Table.esm.js";
17
+ import { DataTable as Ke } from "./DataTable.esm.js";
18
+ import { Chart as Qe } from "./Chart.esm.js";
19
+ import { Timeline as je } from "./Timeline.esm.js";
20
+ import { Calendar as Xe } from "./Calendar.esm.js";
21
+ import { ColorPicker as Ze } from "./ColorPicker.esm.js";
22
+ import { DatePicker as er } from "./DatePicker.esm.js";
23
+ import { DateRangePicker as or } from "./DateRangePicker.esm.js";
24
+ import { DateField as nr, TimeField as ir } from "./DateField.esm.js";
25
+ import { NumberField as pr } from "./NumberField.esm.js";
26
+ import { MultiSelect as mr } from "./MultiSelect.esm.js";
27
+ import { SplitButton as lr } from "./SplitButton.esm.js";
28
+ import { TransferList as ur } from "./TransferList.esm.js";
29
+ import { InlineEdit as dr } from "./InlineEdit.esm.js";
30
+ import { TimePicker as Ar } from "./TimePicker.esm.js";
31
+ import { DateTimePicker as Pr } from "./DateTimePicker.esm.js";
32
+ import { DateRangeTimePicker as yr } from "./DateRangeTimePicker.esm.js";
33
+ import { Gantt as vr } from "./Gantt.esm.js";
34
+ import { Stepper as Sr } from "./Stepper.esm.js";
35
+ import { Wizard as Mr } from "./Wizard.esm.js";
36
+ import { Rating as kr } from "./Rating.esm.js";
37
+ import { QuickActions as hr } from "./QuickActions.esm.js";
38
+ import { NavigationMenu as Lr, NavigationMenuContent as Nr, NavigationMenuIndicator as Er, NavigationMenuItem as Br, NavigationMenuLink as Gr, NavigationMenuList as Hr, NavigationMenuRoot as zr, NavigationMenuTrigger as Vr, NavigationMenuViewport as qr } from "./NavigationMenu.esm.js";
39
+ import { Menubar as $r } from "./Menubar.esm.js";
40
+ import { Dialog as Ur } from "./Dialog.esm.js";
41
+ import { DialogProvider as Wr, useDialog as jr } from "./DialogProvider.esm.js";
42
+ import { Popover as Xr } from "./Popover.esm.js";
43
+ import { Tabs as Zr } from "./Tabs.esm.js";
44
+ import { Menu as eo, MenuItem as ro, MenuSectionLabel as oo, MenuSeparator as to } from "./Menu.esm.js";
45
+ import { Icon as io } from "./Icon.esm.js";
46
+ import { ToastAPI as po, ToastProvider as fo, toast as mo, toastApi as so, useToast as lo } from "./ToastAPI.esm.js";
47
+ import { Toast as uo } from "./Toast.esm.js";
48
+ import { FloatingToolbar as go } from "./FloatingToolbar.esm.js";
49
+ import { BlockControls as Do } from "./BlockControls.esm.js";
50
+ import { Command as bo, CommandItem as yo } from "./Command.esm.js";
51
+ import { CommandPalette as vo, CommandPaletteItem as wo } from "./CommandPalette.esm.js";
52
+ import { ContextMenu as Co } from "./ContextMenu.esm.js";
53
+ import { SelectionPopup as Io } from "./SelectionPopup.esm.js";
54
+ import { PluginPanel as Fo } from "./PluginPanel.esm.js";
55
+ import { Form as Ro } from "./Form.esm.js";
56
+ import { useRef as D, useCallback as f, useState as E, useEffect as V } from "react";
57
+ import { computePosition as q } from "@editora/ui-core";
58
+ import { Box as No } from "./Box.esm.js";
59
+ import { Flex as Bo } from "./Flex.esm.js";
60
+ import { Grid as Ho } from "./Grid.esm.js";
61
+ import { PlacementGrid as Vo } from "./PlacementGrid.esm.js";
62
+ import { MasonryGrid as Oo } from "./MasonryGrid.esm.js";
63
+ import { Section as Ko } from "./Section.esm.js";
64
+ import { Container as Qo } from "./Container.esm.js";
65
+ import { Sidebar as jo } from "./Sidebar.esm.js";
66
+ import { Panel as Xo, PanelGroup as Yo, Splitter as Zo } from "./PanelGroup.esm.js";
67
+ import { Tree as et } from "./Tree.esm.js";
68
+ import { Breadcrumb as ot } from "./Breadcrumb.esm.js";
69
+ import { AppHeader as nt, AppHeaderCenter as it, AppHeaderEnd as at, AppHeaderStart as pt, AppHeaderSubtitle as ft, AppHeaderTitle as mt } from "./AppHeader.esm.js";
70
+ import { Drawer as lt } from "./Drawer.esm.js";
71
+ import { Layout as ut } from "./Layout.esm.js";
72
+ import { ThemeProvider as dt, useTheme as gt } from "./ThemeProvider.esm.js";
73
+ import { Collection as Dt } from "./Collection.esm.js";
74
+ import { Listbox as bt } from "./Listbox.esm.js";
75
+ import { RovingFocusGroup as Tt } from "./RovingFocusGroup.esm.js";
76
+ import { DismissableLayer as wt } from "./DismissableLayer.esm.js";
77
+ import { FocusScope as Ct } from "./FocusScope.esm.js";
78
+ import { Positioner as It } from "./Positioner.esm.js";
79
+ import { Anchor as Ft } from "./Anchor.esm.js";
80
+ import { Checkbox as Rt } from "./Checkbox.esm.js";
81
+ import { RadioGroup as Nt } from "./RadioGroup.esm.js";
82
+ import { Switch as Bt } from "./Switch.esm.js";
83
+ import { Toggle as Ht } from "./Toggle.esm.js";
84
+ import { ToggleGroup as Vt } from "./ToggleGroup.esm.js";
85
+ import { AspectRatio as Ot } from "./AspectRatio.esm.js";
86
+ import { Avatar as Kt } from "./Avatar.esm.js";
87
+ import { Presence as Qt } from "./Presence.esm.js";
88
+ import { Progress as jt } from "./Progress.esm.js";
89
+ import { Meter as Xt } from "./Meter.esm.js";
90
+ import { Portal as Zt } from "./Portal.esm.js";
91
+ import { ScrollArea as en } from "./ScrollArea.esm.js";
92
+ import { Separator as on } from "./Separator.esm.js";
93
+ import { Slot as nn } from "./Slot.esm.js";
94
+ import { Toolbar as pn } from "./Toolbar.esm.js";
95
+ import { VisuallyHidden as mn } from "./VisuallyHidden.esm.js";
96
+ import { Collapsible as ln } from "./Collapsible.esm.js";
97
+ import { Pagination as un } from "./Pagination.esm.js";
98
+ import { Accordion as dn } from "./Accordion.esm.js";
99
+ import { DirectionProvider as An } from "./DirectionProvider.esm.js";
100
+ import { HoverCard as Pn } from "./HoverCard.esm.js";
101
+ import { Card as yn } from "./Card.esm.js";
102
+ import { Label as vn } from "./Label.esm.js";
103
+ import { AlertDialog as Sn, AlertDialogActions as Cn, AlertDialogContent as Mn, AlertDialogDescription as In, AlertDialogIcon as kn, AlertDialogTitle as Fn } from "./AlertDialog.esm.js";
104
+ import { AlertDialogProvider as Rn, useAlertDialog as Ln } from "./AlertDialogProvider.esm.js";
105
+ import { AnimatedText as En } from "./AnimatedText.esm.js";
106
+ import { SpinningText as Gn } from "./SpinningText.esm.js";
107
+ import { NumberTicker as zn } from "./NumberTicker.esm.js";
108
+ import { AnimatedList as qn } from "./AnimatedList.esm.js";
109
+ import { AnimatedBeam as $n } from "./AnimatedBeam.esm.js";
110
+ import { IconCloud as Un } from "./IconCloud.esm.js";
111
+ import { Dock as Wn } from "./Dock.esm.js";
112
+ import { Orbiter as Jn } from "./Orbiter.esm.js";
113
+ import { Marquee as Yn } from "./Marquee.esm.js";
114
+ import { Select as _n } from "./Select.esm.js";
115
+ import { Slider as ri } from "./Slider.esm.js";
116
+ import { Skeleton as ti } from "./Skeleton.esm.js";
117
+ import { AnimatedNumber as ii, useAnimatedNumber as ai, useAnimatedNumberValue as pi } from "./AnimatedNumber.esm.js";
118
+ import { toastAdvanced as mi, default as si, toastPro as li } from "@editora/toast";
119
+ import "./_internals-f8fb69a8.mjs";
120
+ import "react-dom";
121
+ function j() {
122
+ const p = D(null), s = f(async () => {
123
+ const o = p.current;
124
+ return o ? await o.submit() : !1;
125
+ }, []), P = f(async () => {
126
+ const o = p.current;
127
+ return o ? await o.validate() : { valid: !0, errors: {} };
128
+ }, []), g = f(() => {
129
+ var t;
130
+ const o = p.current;
131
+ return o ? (t = o.getValues) == null ? void 0 : t.call(o) : {};
132
+ }, []), x = f((o) => {
133
+ var a;
134
+ const t = p.current;
135
+ return (a = t == null ? void 0 : t.reset) == null ? void 0 : a.call(t, o);
136
+ }, []), d = f(() => {
137
+ var t;
138
+ const o = p.current;
139
+ return o ? typeof o.isDirty == "function" ? !!o.isDirty() : ((t = o.hasAttribute) == null ? void 0 : t.call(o, "dirty")) || !1 : !1;
140
+ }, []), b = f((o) => {
141
+ var a;
142
+ const t = p.current;
143
+ return (a = t == null ? void 0 : t.markClean) == null ? void 0 : a.call(t, o);
2807
144
  }, []);
2808
- return { ref: v, submit: e, validate: t, getValues: l, reset: r, isDirty: i, markClean: f };
145
+ return { ref: p, submit: s, validate: P, getValues: g, reset: x, isDirty: d, markClean: b };
2809
146
  }
2810
- function De(v, e) {
2811
- if (v) {
2812
- if (typeof v == "function") {
2813
- v(e);
147
+ function B(p, s) {
148
+ if (p) {
149
+ if (typeof p == "function") {
150
+ p(s);
2814
151
  return;
2815
152
  }
2816
- v.current = e;
153
+ p.current = s;
2817
154
  }
2818
155
  }
2819
- function oi(v) {
2820
- const { placement: e = "bottom", offset: t = 8, open: l, onOpen: r, onClose: i, role: f = "menu" } = v || {}, c = Q(null), s = Q(null), u = Q(null), p = Q(`floating-${Math.random().toString(36).slice(2, 9)}`), [n, b] = Le({ top: 0, left: 0, placement: e }), A = typeof l < "u", [y, m] = Le(!!l), a = A ? !!l : y, d = ce(() => {
2821
- const R = c.current, T = s.current;
2822
- if (!R || !T)
2823
- return;
2824
- const j = pt(R, T, { placement: e, offset: t });
2825
- b({
2826
- top: Math.round(j.top),
2827
- left: Math.round(j.left),
2828
- placement: j.placement,
2829
- arrow: j.x || j.y ? { x: j.x, y: j.y } : void 0
156
+ function J(p) {
157
+ const { placement: s = "bottom", offset: P = 8, open: g, onOpen: x, onClose: d, role: b = "menu" } = p || {}, o = D(null), t = D(null), a = D(null), C = D(`floating-${Math.random().toString(36).slice(2, 9)}`), [v, G] = E({ top: 0, left: 0, placement: s }), w = typeof g < "u", [H, z] = E(!!g), c = w ? !!g : H, A = f(() => {
158
+ const r = o.current, n = t.current;
159
+ if (!r || !n)
160
+ return;
161
+ const i = q(r, n, { placement: s, offset: P });
162
+ G({
163
+ top: Math.round(i.top),
164
+ left: Math.round(i.left),
165
+ placement: i.placement,
166
+ arrow: i.x || i.y ? { x: i.x, y: i.y } : void 0
2830
167
  });
2831
- }, [e, t]), o = ce(
2832
- (R) => {
2833
- A || m(R), R ? r == null || r() : i == null || i();
168
+ }, [s, P]), u = f(
169
+ (r) => {
170
+ w || z(r), r ? x == null || x() : d == null || d();
2834
171
  },
2835
- [A, r, i]
2836
- ), L = ce(() => o(!a), [a, o]), g = ce(() => o(!0), [o]), E = ce(() => o(!1), [o]);
2837
- G(() => {
2838
- if (!a)
2839
- return;
2840
- const R = c.current, T = s.current;
2841
- if (!R || !T)
2842
- return;
2843
- d();
2844
- const j = () => {
2845
- u.current && cancelAnimationFrame(u.current), u.current = requestAnimationFrame(() => d());
2846
- }, I = () => {
2847
- u.current && cancelAnimationFrame(u.current), u.current = requestAnimationFrame(() => d());
2848
- };
2849
- window.addEventListener("scroll", j, !0), window.addEventListener("resize", I);
2850
- let H = null, P = null;
172
+ [w, x, d]
173
+ ), M = f(() => u(!c), [c, u]), I = f(() => u(!0), [u]), k = f(() => u(!1), [u]);
174
+ V(() => {
175
+ if (!c)
176
+ return;
177
+ const r = o.current, n = t.current;
178
+ if (!r || !n)
179
+ return;
180
+ A();
181
+ const i = () => {
182
+ a.current && cancelAnimationFrame(a.current), a.current = requestAnimationFrame(() => A());
183
+ }, l = () => {
184
+ a.current && cancelAnimationFrame(a.current), a.current = requestAnimationFrame(() => A());
185
+ };
186
+ window.addEventListener("scroll", i, !0), window.addEventListener("resize", l);
187
+ let m = null, e = null;
2851
188
  try {
2852
- typeof ResizeObserver < "u" && (H = new ResizeObserver(I), P = new ResizeObserver(I), H.observe(R), P.observe(T));
189
+ typeof ResizeObserver < "u" && (m = new ResizeObserver(l), e = new ResizeObserver(l), m.observe(r), e.observe(n));
2853
190
  } catch {
2854
- H = P = null;
191
+ m = e = null;
2855
192
  }
2856
193
  return () => {
2857
- window.removeEventListener("scroll", j, !0), window.removeEventListener("resize", I), H == null || H.disconnect(), P == null || P.disconnect(), u.current && cancelAnimationFrame(u.current), u.current = null;
2858
- };
2859
- }, [a, d]);
2860
- const N = ce((R) => {
2861
- c.current = R;
2862
- }, []), w = ce((R) => {
2863
- s.current = R;
2864
- }, []), S = () => s.current ? Array.from(
2865
- s.current.querySelectorAll('[role="menuitem"], .item, [data-menu-item]')
2866
- ).filter(Boolean) : [], k = (R) => {
2867
- const T = S();
2868
- if (!T.length)
2869
- return;
2870
- const j = Math.max(0, Math.min(T.length - 1, R));
194
+ window.removeEventListener("scroll", i, !0), window.removeEventListener("resize", l), m == null || m.disconnect(), e == null || e.disconnect(), a.current && cancelAnimationFrame(a.current), a.current = null;
195
+ };
196
+ }, [c, A]);
197
+ const F = f((r) => {
198
+ o.current = r;
199
+ }, []), h = f((r) => {
200
+ t.current = r;
201
+ }, []), y = () => t.current ? Array.from(
202
+ t.current.querySelectorAll('[role="menuitem"], .item, [data-menu-item]')
203
+ ).filter(Boolean) : [], T = (r) => {
204
+ const n = y();
205
+ if (!n.length)
206
+ return;
207
+ const i = Math.max(0, Math.min(n.length - 1, r));
2871
208
  try {
2872
- T[j].focus();
209
+ n[i].focus();
2873
210
  } catch {
2874
211
  }
2875
- }, J = () => k(0), x = () => {
2876
- const R = S();
2877
- R.length && k(R.length - 1);
2878
- }, $ = () => {
2879
- const R = S(), T = R.findIndex((j) => j === document.activeElement);
2880
- k(T < 0 ? 0 : (T + 1) % R.length);
2881
- }, F = () => {
2882
- const R = S(), T = R.findIndex((j) => j === document.activeElement);
2883
- k(T <= 0 ? R.length - 1 : T - 1);
212
+ }, S = () => T(0), R = () => {
213
+ const r = y();
214
+ r.length && T(r.length - 1);
215
+ }, L = () => {
216
+ const r = y(), n = r.findIndex((i) => i === document.activeElement);
217
+ T(n < 0 ? 0 : (n + 1) % r.length);
218
+ }, N = () => {
219
+ const r = y(), n = r.findIndex((i) => i === document.activeElement);
220
+ T(n <= 0 ? r.length - 1 : n - 1);
2884
221
  };
2885
222
  return {
2886
- referenceRef: N,
2887
- floatingRef: w,
2888
- coords: n,
2889
- update: d,
2890
- open: a,
2891
- setOpen: o,
2892
- toggle: L,
2893
- openPopup: g,
2894
- closePopup: E,
2895
- getReferenceProps: (R = {}) => {
2896
- const { onClick: T, onKeyDown: j, ref: I, ...H } = R;
223
+ referenceRef: F,
224
+ floatingRef: h,
225
+ coords: v,
226
+ update: A,
227
+ open: c,
228
+ setOpen: u,
229
+ toggle: M,
230
+ openPopup: I,
231
+ closePopup: k,
232
+ getReferenceProps: (r = {}) => {
233
+ const { onClick: n, onKeyDown: i, ref: l, ...m } = r;
2897
234
  return {
2898
- ...H,
2899
- ref: (P) => {
2900
- N(P), De(I, P);
235
+ ...m,
236
+ ref: (e) => {
237
+ F(e), B(l, e);
2901
238
  },
2902
- "aria-haspopup": f,
2903
- "aria-controls": p.current,
2904
- "aria-expanded": a ? "true" : "false",
2905
- onClick: (P) => {
2906
- T == null || T(P), !P.defaultPrevented && L();
239
+ "aria-haspopup": b,
240
+ "aria-controls": C.current,
241
+ "aria-expanded": c ? "true" : "false",
242
+ onClick: (e) => {
243
+ n == null || n(e), !e.defaultPrevented && M();
2907
244
  },
2908
- onKeyDown: (P) => {
2909
- j == null || j(P), !P.defaultPrevented && P.key === "ArrowDown" && (P.preventDefault(), g(), setTimeout(() => J(), 0));
245
+ onKeyDown: (e) => {
246
+ i == null || i(e), !e.defaultPrevented && e.key === "ArrowDown" && (e.preventDefault(), I(), setTimeout(() => S(), 0));
2910
247
  }
2911
248
  };
2912
249
  },
2913
- getFloatingProps: (R = {}) => {
2914
- const { onKeyDown: T, style: j, ref: I, ...H } = R;
250
+ getFloatingProps: (r = {}) => {
251
+ const { onKeyDown: n, style: i, ref: l, ...m } = r;
2915
252
  return {
2916
- ...H,
2917
- id: p.current,
2918
- ref: (P) => {
2919
- w(P), De(I, P);
253
+ ...m,
254
+ id: C.current,
255
+ ref: (e) => {
256
+ h(e), B(l, e);
2920
257
  },
2921
- role: f,
258
+ role: b,
2922
259
  tabIndex: -1,
2923
260
  style: {
2924
- ...j || {},
261
+ ...i || {},
2925
262
  position: "absolute",
2926
- top: `${n.top}px`,
2927
- left: `${n.left}px`
263
+ top: `${v.top}px`,
264
+ left: `${v.left}px`
2928
265
  },
2929
- hidden: !a,
2930
- onKeyDown: (P) => {
2931
- T == null || T(P), !P.defaultPrevented && (P.key === "Escape" ? (P.preventDefault(), E()) : P.key === "ArrowDown" ? (P.preventDefault(), $()) : P.key === "ArrowUp" ? (P.preventDefault(), F()) : P.key === "Home" ? (P.preventDefault(), J()) : P.key === "End" && (P.preventDefault(), x()));
266
+ hidden: !c,
267
+ onKeyDown: (e) => {
268
+ n == null || n(e), !e.defaultPrevented && (e.key === "Escape" ? (e.preventDefault(), k()) : e.key === "ArrowDown" ? (e.preventDefault(), L()) : e.key === "ArrowUp" ? (e.preventDefault(), N()) : e.key === "Home" ? (e.preventDefault(), S()) : e.key === "End" && (e.preventDefault(), R()));
2932
269
  }
2933
270
  };
2934
271
  },
2935
- focusFirstItem: J,
2936
- focusLastItem: x,
2937
- focusNext: $,
2938
- focusPrev: F
2939
- };
2940
- }
2941
- function Z(v) {
2942
- if (v != null) {
2943
- if (typeof v == "object")
2944
- try {
2945
- return JSON.stringify(v);
2946
- } catch {
2947
- return;
2948
- }
2949
- return String(v);
2950
- }
2951
- }
2952
- function ci(v) {
2953
- const {
2954
- children: e,
2955
- className: t,
2956
- variant: l,
2957
- tone: r,
2958
- state: i,
2959
- elevation: f,
2960
- radius: c,
2961
- interactive: s,
2962
- disabled: u,
2963
- headless: p,
2964
- p: n,
2965
- px: b,
2966
- py: A,
2967
- pt: y,
2968
- pr: m,
2969
- pb: a,
2970
- pl: d,
2971
- m: o,
2972
- mx: L,
2973
- my: g,
2974
- mt: E,
2975
- mr: N,
2976
- mb: w,
2977
- ml: S,
2978
- width: k,
2979
- w: J,
2980
- minWidth: x,
2981
- minW: $,
2982
- maxWidth: F,
2983
- maxW: D,
2984
- height: q,
2985
- h: R,
2986
- minHeight: T,
2987
- minH: j,
2988
- maxHeight: I,
2989
- maxH: H,
2990
- display: P,
2991
- position: B,
2992
- inset: U,
2993
- top: Y,
2994
- right: _,
2995
- bottom: M,
2996
- left: X,
2997
- justify: O,
2998
- alignSelf: K,
2999
- alignContent: C,
3000
- gap: ee,
3001
- rowGap: ie,
3002
- columnGap: te,
3003
- flexBasis: re,
3004
- flexGrow: ae,
3005
- flexShrink: me,
3006
- gridArea: be,
3007
- gridColumn: ve,
3008
- gridColumnStart: pe,
3009
- gridColumnEnd: le,
3010
- gridRow: ne,
3011
- gridRowStart: nt,
3012
- gridRowEnd: it,
3013
- align: lt,
3014
- bg: ut,
3015
- color: st,
3016
- opacity: ot,
3017
- overflow: ct,
3018
- overflowX: ft,
3019
- overflowY: dt,
3020
- zIndex: at,
3021
- ...mt
3022
- } = v, bt = {
3023
- className: t,
3024
- ...mt,
3025
- p: Z(n),
3026
- px: Z(b),
3027
- py: Z(A),
3028
- pt: Z(y),
3029
- pr: Z(m),
3030
- pb: Z(a),
3031
- pl: Z(d),
3032
- m: Z(o),
3033
- mx: Z(L),
3034
- my: Z(g),
3035
- mt: Z(E),
3036
- mr: Z(N),
3037
- mb: Z(w),
3038
- ml: Z(S),
3039
- width: Z(k),
3040
- w: Z(J),
3041
- minwidth: Z(x ?? $),
3042
- maxwidth: Z(F ?? D),
3043
- height: Z(q),
3044
- h: Z(R),
3045
- minheight: Z(T ?? j),
3046
- maxheight: Z(I ?? H),
3047
- display: Z(P),
3048
- position: Z(B),
3049
- inset: Z(U),
3050
- top: Z(Y),
3051
- right: Z(_),
3052
- bottom: Z(M),
3053
- left: Z(X),
3054
- justify: Z(O),
3055
- flexbasis: Z(re),
3056
- flexgrow: Z(ae),
3057
- flexshrink: Z(me),
3058
- alignself: Z(K),
3059
- aligncontent: Z(C),
3060
- gap: Z(ee),
3061
- rowgap: Z(ie),
3062
- columngap: Z(te),
3063
- gridarea: Z(be),
3064
- gridcolumn: Z(ve),
3065
- gridcolumnstart: Z(pe),
3066
- gridcolumnend: Z(le),
3067
- gridrow: Z(ne),
3068
- gridrowstart: Z(nt),
3069
- gridrowend: Z(it),
3070
- align: Z(lt),
3071
- bg: Z(ut),
3072
- color: Z(st),
3073
- opacity: Z(ot),
3074
- overflow: Z(ct),
3075
- overflowx: Z(ft),
3076
- overflowy: Z(dt),
3077
- zindex: Z(at),
3078
- variant: l && l !== "default" ? l : void 0,
3079
- tone: r && r !== "default" ? r : void 0,
3080
- state: i && i !== "idle" ? i : void 0,
3081
- elevation: f && f !== "default" ? f : void 0,
3082
- radius: c && c !== "default" ? c : void 0,
3083
- interactive: s ? "" : void 0,
3084
- disabled: u ? "" : void 0,
3085
- headless: p ? "" : void 0
272
+ focusFirstItem: S,
273
+ focusLastItem: R,
274
+ focusNext: L,
275
+ focusPrev: N
3086
276
  };
3087
- return h.createElement("ui-box", bt, e);
3088
- }
3089
- function fe(v) {
3090
- if (v != null) {
3091
- if (typeof v == "object")
3092
- try {
3093
- return JSON.stringify(v);
3094
- } catch {
3095
- return;
3096
- }
3097
- return String(v);
3098
- }
3099
- }
3100
- function fi(v) {
3101
- const {
3102
- children: e,
3103
- className: t,
3104
- direction: l,
3105
- align: r,
3106
- justify: i,
3107
- wrap: f,
3108
- gap: c,
3109
- rowGap: s,
3110
- columnGap: u,
3111
- display: p,
3112
- headless: n,
3113
- ...b
3114
- } = v, A = {
3115
- className: t,
3116
- ...b,
3117
- direction: fe(l),
3118
- align: fe(r),
3119
- justify: fe(i),
3120
- wrap: fe(f),
3121
- gap: fe(c),
3122
- rowgap: fe(s),
3123
- columngap: fe(u),
3124
- display: fe(p),
3125
- headless: n ? "" : void 0
3126
- };
3127
- return h.createElement("ui-flex", A, e);
3128
- }
3129
- function se(v) {
3130
- if (v != null) {
3131
- if (typeof v == "object")
3132
- try {
3133
- return JSON.stringify(v);
3134
- } catch {
3135
- return;
3136
- }
3137
- return String(v);
3138
- }
3139
- }
3140
- function di(v) {
3141
- const {
3142
- children: e,
3143
- className: t,
3144
- columns: l,
3145
- rows: r,
3146
- gap: i,
3147
- rowGap: f,
3148
- columnGap: c,
3149
- autoFlow: s,
3150
- autoRows: u,
3151
- autoColumns: p,
3152
- align: n,
3153
- justify: b,
3154
- place: A,
3155
- alignContent: y,
3156
- justifyContent: m,
3157
- placeContent: a,
3158
- display: d,
3159
- headless: o,
3160
- ...L
3161
- } = v, g = {
3162
- className: t,
3163
- ...L,
3164
- columns: se(l),
3165
- rows: se(r),
3166
- gap: se(i),
3167
- rowgap: se(f),
3168
- columngap: se(c),
3169
- autoflow: se(s),
3170
- autorows: se(u),
3171
- autocolumns: se(p),
3172
- align: se(n),
3173
- justify: se(b),
3174
- place: se(A),
3175
- aligncontent: se(y),
3176
- justifycontent: se(m),
3177
- placecontent: se(a),
3178
- display: se(d),
3179
- headless: o ? "" : void 0
3180
- };
3181
- return h.createElement("ui-grid", g, e);
3182
- }
3183
- const jr = typeof window < "u" ? z : G, Gr = h.forwardRef(function({
3184
- size: e = "medium",
3185
- variant: t = "default",
3186
- tone: l = "neutral",
3187
- radius: r = "md",
3188
- density: i = "comfortable",
3189
- inset: f,
3190
- children: c,
3191
- ...s
3192
- }, u) {
3193
- const p = Q(null);
3194
- return h.useImperativeHandle(u, () => p.current), jr(() => {
3195
- const n = p.current;
3196
- if (!n)
3197
- return;
3198
- const b = (y, m) => {
3199
- const a = n.getAttribute(y);
3200
- if (m == null) {
3201
- a != null && n.removeAttribute(y);
3202
- return;
3203
- }
3204
- a !== m && n.setAttribute(y, m);
3205
- }, A = (y, m) => {
3206
- m ? n.hasAttribute(y) || n.setAttribute(y, "") : n.hasAttribute(y) && n.removeAttribute(y);
3207
- };
3208
- b("size", e !== "medium" ? e : null), b("variant", t !== "default" ? t : null), b("tone", l !== "neutral" ? l : null), b("radius", r !== "md" ? r : null), b("density", i !== "comfortable" ? i : null), A("inset", f);
3209
- }, [e, t, l, r, i, f]), h.createElement("ui-section", { ref: p, ...s }, c);
3210
- });
3211
- Gr.displayName = "Section";
3212
- function ai(v) {
3213
- const { children: e, size: t = "md", ...l } = v;
3214
- return h.createElement("ui-container", { size: t, ...l }, e);
3215
- }
3216
- const Fe = typeof window < "u" ? z : G, Mr = h.forwardRef(function({ orientation: e, storageKey: t, autoSave: l, children: r, onLayoutChange: i, onResizeStart: f, onResize: c, onResizeEnd: s, ...u }, p) {
3217
- const n = Q(null);
3218
- return V(p, () => n.current), G(() => {
3219
- const b = n.current;
3220
- if (!b)
3221
- return;
3222
- const A = (d) => i == null ? void 0 : i(d.detail), y = (d) => f == null ? void 0 : f(d.detail), m = (d) => c == null ? void 0 : c(d.detail), a = (d) => s == null ? void 0 : s(d.detail);
3223
- return b.addEventListener("layout-change", A), b.addEventListener("resize-start", y), b.addEventListener("resize", m), b.addEventListener("resize-end", a), () => {
3224
- b.removeEventListener("layout-change", A), b.removeEventListener("resize-start", y), b.removeEventListener("resize", m), b.removeEventListener("resize-end", a);
3225
- };
3226
- }, [i, c, s, f]), Fe(() => {
3227
- const b = n.current;
3228
- b && (e && e !== "horizontal" ? b.setAttribute("orientation", e) : b.removeAttribute("orientation"), t ? b.setAttribute("storage-key", t) : b.removeAttribute("storage-key"), l ? b.setAttribute("auto-save", "") : b.removeAttribute("auto-save"));
3229
- }, [e, t, l]), h.createElement("ui-panel-group", { ref: n, ...u }, r);
3230
- }), qr = h.forwardRef(function({ size: e, minSize: t, maxSize: l, collapsedSize: r, collapsed: i, children: f, ...c }, s) {
3231
- const u = Q(null);
3232
- return V(s, () => u.current), Fe(() => {
3233
- const p = u.current;
3234
- if (!p)
3235
- return;
3236
- const n = (b, A) => {
3237
- const y = p.getAttribute(b);
3238
- if (A == null) {
3239
- y != null && p.removeAttribute(b);
3240
- return;
3241
- }
3242
- y !== A && p.setAttribute(b, A);
3243
- };
3244
- i ? p.setAttribute("collapsed", "") : p.removeAttribute("collapsed"), n("size", e != null ? String(e) : null), n("min-size", t != null ? String(t) : null), n("max-size", l != null ? String(l) : null), n("collapsed-size", r != null ? String(r) : null);
3245
- }, [i, r, l, t, e]), h.createElement("ui-panel", { ref: u, ...c }, f);
3246
- }), Ur = h.forwardRef(function({ disabled: e, orientation: t, ariaLabel: l, children: r, ...i }, f) {
3247
- const c = Q(null);
3248
- return V(f, () => c.current), Fe(() => {
3249
- const s = c.current;
3250
- s && (e ? s.setAttribute("disabled", "") : s.removeAttribute("disabled"), t ? s.setAttribute("orientation", t) : s.removeAttribute("orientation"), l ? s.setAttribute("aria-label", l) : s.removeAttribute("aria-label"));
3251
- }, [l, e, t]), h.createElement("ui-splitter", { ref: c, ...i }, r);
3252
- });
3253
- Mr.displayName = "PanelGroup";
3254
- qr.displayName = "Panel";
3255
- Ur.displayName = "Splitter";
3256
- const tt = ke(null), _r = typeof window < "u" ? z : G;
3257
- function Ee(v, e) {
3258
- var t, l, r, i, f, c, s, u, p, n, b, A, y, m, a, d, o, L, g, E, N, w, S, k, J, x, $, F, D, q, R, T, j, I, H, P, B, U, Y, _, M, X, O, K, C, ee, ie, te, re, ae, me, be, ve, pe;
3259
- return e ? {
3260
- ...v,
3261
- ...e,
3262
- colors: { ...v.colors, ...e.colors || {} },
3263
- palette: {
3264
- ...v.palette || {},
3265
- ...e.palette || {},
3266
- gray: { ...((t = v.palette) == null ? void 0 : t.gray) || {}, ...((l = e.palette) == null ? void 0 : l.gray) || {} },
3267
- grayAlpha: { ...((r = v.palette) == null ? void 0 : r.grayAlpha) || {}, ...((i = e.palette) == null ? void 0 : i.grayAlpha) || {} },
3268
- blackAlpha: { ...((f = v.palette) == null ? void 0 : f.blackAlpha) || {}, ...((c = e.palette) == null ? void 0 : c.blackAlpha) || {} },
3269
- whiteAlpha: { ...((s = v.palette) == null ? void 0 : s.whiteAlpha) || {}, ...((u = e.palette) == null ? void 0 : u.whiteAlpha) || {} },
3270
- accent: { ...((p = v.palette) == null ? void 0 : p.accent) || {}, ...((n = e.palette) == null ? void 0 : n.accent) || {} },
3271
- accentAlpha: { ...((b = v.palette) == null ? void 0 : b.accentAlpha) || {}, ...((A = e.palette) == null ? void 0 : A.accentAlpha) || {} }
3272
- },
3273
- surfaces: { ...v.surfaces || {}, ...e.surfaces || {} },
3274
- shadows: { ...v.shadows || {}, ...e.shadows || {} },
3275
- spacing: { ...v.spacing || {}, ...e.spacing || {} },
3276
- spaceScale: { ...v.spaceScale || {}, ...e.spaceScale || {} },
3277
- radiusScale: { ...v.radiusScale || {}, ...e.radiusScale || {} },
3278
- typography: {
3279
- ...v.typography || {},
3280
- ...e.typography || {},
3281
- size: {
3282
- ...((y = v.typography) == null ? void 0 : y.size) || {},
3283
- ...((m = e.typography) == null ? void 0 : m.size) || {}
3284
- },
3285
- fontScale: {
3286
- ...((a = v.typography) == null ? void 0 : a.fontScale) || {},
3287
- ...((d = e.typography) == null ? void 0 : d.fontScale) || {}
3288
- },
3289
- lineHeight: {
3290
- ...((o = v.typography) == null ? void 0 : o.lineHeight) || {},
3291
- ...((L = e.typography) == null ? void 0 : L.lineHeight) || {}
3292
- },
3293
- letterSpacing: {
3294
- ...((g = v.typography) == null ? void 0 : g.letterSpacing) || {},
3295
- ...((E = e.typography) == null ? void 0 : E.letterSpacing) || {}
3296
- }
3297
- },
3298
- motion: { ...v.motion || {}, ...e.motion || {} },
3299
- effects: { ...v.effects || {}, ...e.effects || {} },
3300
- components: {
3301
- ...v.components || {},
3302
- ...e.components || {},
3303
- button: { ...((N = v.components) == null ? void 0 : N.button) || {}, ...((w = e.components) == null ? void 0 : w.button) || {} },
3304
- badge: { ...((S = v.components) == null ? void 0 : S.badge) || {}, ...((k = e.components) == null ? void 0 : k.badge) || {} },
3305
- sidebar: { ...((J = v.components) == null ? void 0 : J.sidebar) || {}, ...((x = e.components) == null ? void 0 : x.sidebar) || {} },
3306
- blockControls: { ...(($ = v.components) == null ? void 0 : $.blockControls) || {}, ...((F = e.components) == null ? void 0 : F.blockControls) || {} },
3307
- box: { ...((D = v.components) == null ? void 0 : D.box) || {}, ...((q = e.components) == null ? void 0 : q.box) || {} },
3308
- breadcrumb: { ...((R = v.components) == null ? void 0 : R.breadcrumb) || {}, ...((T = e.components) == null ? void 0 : T.breadcrumb) || {} },
3309
- card: { ...((j = v.components) == null ? void 0 : j.card) || {}, ...((I = e.components) == null ? void 0 : I.card) || {} },
3310
- contextMenu: { ...((H = v.components) == null ? void 0 : H.contextMenu) || {}, ...((P = e.components) == null ? void 0 : P.contextMenu) || {} },
3311
- alert: { ...((B = v.components) == null ? void 0 : B.alert) || {}, ...((U = e.components) == null ? void 0 : U.alert) || {} },
3312
- alertDialog: { ...((Y = v.components) == null ? void 0 : Y.alertDialog) || {}, ...((_ = e.components) == null ? void 0 : _.alertDialog) || {} },
3313
- appHeader: { ...((M = v.components) == null ? void 0 : M.appHeader) || {}, ...((X = e.components) == null ? void 0 : X.appHeader) || {} },
3314
- aspectRatio: { ...((O = v.components) == null ? void 0 : O.aspectRatio) || {}, ...((K = e.components) == null ? void 0 : K.aspectRatio) || {} },
3315
- avatar: { ...((C = v.components) == null ? void 0 : C.avatar) || {}, ...((ee = e.components) == null ? void 0 : ee.avatar) || {} },
3316
- menu: { ...((ie = v.components) == null ? void 0 : ie.menu) || {}, ...((te = e.components) == null ? void 0 : te.menu) || {} },
3317
- multiSelect: { ...((re = v.components) == null ? void 0 : re.multiSelect) || {}, ...((ae = e.components) == null ? void 0 : ae.multiSelect) || {} },
3318
- panel: { ...((me = v.components) == null ? void 0 : me.panel) || {}, ...((be = e.components) == null ? void 0 : be.panel) || {} },
3319
- input: { ...((ve = v.components) == null ? void 0 : ve.input) || {}, ...((pe = e.components) == null ? void 0 : pe.input) || {} }
3320
- },
3321
- zIndex: { ...v.zIndex || {}, ...e.zIndex || {} },
3322
- breakpoints: { ...v.breakpoints || {}, ...e.breakpoints || {} }
3323
- } : v;
3324
- }
3325
- function Qr() {
3326
- try {
3327
- const v = getComputedStyle(document.documentElement), e = v.getPropertyValue("--ui-color-primary").trim();
3328
- return e ? {
3329
- colors: {
3330
- primary: e || void 0,
3331
- text: v.getPropertyValue("--ui-color-text").trim() || void 0,
3332
- background: v.getPropertyValue("--ui-color-background").trim() || void 0
3333
- }
3334
- } : {};
3335
- } catch {
3336
- return {};
3337
- }
3338
- }
3339
- function Xr(v, e) {
3340
- const t = typeof e == "function" ? e(v) : e;
3341
- return Ee(v, t);
3342
- }
3343
- function mi({ tokens: v, children: e, storageKey: t = "editora.theme.tokens" }) {
3344
- const l = Q(null), r = () => {
3345
- if (typeof window < "u" && t)
3346
- try {
3347
- const s = localStorage.getItem(t);
3348
- if (s) {
3349
- const u = JSON.parse(s);
3350
- return Ee(Se, u);
3351
- }
3352
- } catch {
3353
- }
3354
- if (v && Object.keys(v).length)
3355
- return Ee(Se, v);
3356
- if (typeof window < "u") {
3357
- const s = Qr();
3358
- if (s.colors && s.colors.primary)
3359
- return Ee(Se, s);
3360
- }
3361
- return Ee(Se, v || {});
3362
- }, [i, f] = Le(() => r());
3363
- G(() => {
3364
- !v || !Object.keys(v).length || f((s) => Ee(s, v));
3365
- }, [v]), _r(() => {
3366
- const s = l.current;
3367
- s && At(i, s);
3368
- }, [i]), G(() => {
3369
- if (typeof window > "u" || !t)
3370
- return;
3371
- const s = JSON.stringify(i);
3372
- let u;
3373
- const p = () => {
3374
- try {
3375
- localStorage.setItem(t, s);
3376
- } catch {
3377
- }
3378
- };
3379
- return window.requestIdleCallback ? u = window.requestIdleCallback(p, { timeout: 1e3 }) : u = window.setTimeout(p, 250), () => {
3380
- try {
3381
- window.cancelIdleCallback && u ? window.cancelIdleCallback(u) : u && clearTimeout(u);
3382
- } catch {
3383
- }
3384
- };
3385
- }, [i, t]);
3386
- const c = Re(
3387
- () => ({
3388
- tokens: i,
3389
- setTokens: (s) => {
3390
- f((u) => Xr(u, s));
3391
- }
3392
- }),
3393
- [i]
3394
- );
3395
- return /* @__PURE__ */ h.createElement(tt.Provider, { value: c }, /* @__PURE__ */ h.createElement("div", { ref: l, style: { display: "contents" } }, e));
3396
- }
3397
- function bi() {
3398
- const v = Pe(tt);
3399
- if (!v)
3400
- throw new Error("useTheme must be used within ThemeProvider");
3401
- return v;
3402
- }
3403
- const Yr = typeof window < "u" ? z : G, Kr = h.forwardRef(function({ children: e, itemSelector: t, directItemSelector: l, itemRole: r, container: i, items: f, onCollectionChange: c, ...s }, u) {
3404
- const p = Q(null);
3405
- return V(u, () => p.current), G(() => {
3406
- const n = p.current;
3407
- if (!n)
3408
- return;
3409
- const b = () => c == null ? void 0 : c();
3410
- return n.addEventListener("collection-change", b), () => {
3411
- n.removeEventListener("collection-change", b);
3412
- };
3413
- }, [c]), Yr(() => {
3414
- const n = p.current;
3415
- n && (t ? n.setAttribute("item-selector", t) : n.removeAttribute("item-selector"), l ? n.setAttribute("direct-item-selector", l) : n.removeAttribute("direct-item-selector"), r ? n.setAttribute("item-role", r) : n.removeAttribute("item-role"), n.container = i ?? null, n.items = f ?? null);
3416
- }, [i, l, r, t, f]), h.createElement("ui-collection", { ref: p, ...s }, e);
3417
- });
3418
- Kr.displayName = "Collection";
3419
- const Zr = typeof window < "u" ? z : G, Wr = h.forwardRef(function({ children: e, itemSelector: t, directItemSelector: l, itemRole: r, activeAttribute: i, container: f, items: c, onCollectionChange: s, ...u }, p) {
3420
- const n = Q(null);
3421
- return V(p, () => n.current), G(() => {
3422
- const b = n.current;
3423
- if (!b)
3424
- return;
3425
- const A = () => s == null ? void 0 : s();
3426
- return b.addEventListener("collection-change", A), () => {
3427
- b.removeEventListener("collection-change", A);
3428
- };
3429
- }, [s]), Zr(() => {
3430
- const b = n.current;
3431
- b && (t ? b.setAttribute("item-selector", t) : b.removeAttribute("item-selector"), l ? b.setAttribute("direct-item-selector", l) : b.removeAttribute("direct-item-selector"), r ? b.setAttribute("item-role", r) : b.removeAttribute("item-role"), i ? b.setAttribute("active-attribute", i) : b.removeAttribute("active-attribute"), b.container = f ?? null, b.items = c ?? null);
3432
- }, [i, f, l, r, t, c]), h.createElement("ui-listbox", { ref: n, ...u }, e);
3433
- });
3434
- Wr.displayName = "Listbox";
3435
- const zr = typeof window < "u" ? z : G, Or = h.forwardRef(function({ children: e, itemSelector: t, directItemSelector: l, activeAttribute: r, loop: i, container: f, onActiveItemChange: c, ...s }, u) {
3436
- const p = Q(null);
3437
- return V(u, () => p.current), G(() => {
3438
- const n = p.current;
3439
- if (!n)
3440
- return;
3441
- const b = (A) => {
3442
- const y = A.detail;
3443
- y && (c == null || c(y));
3444
- };
3445
- return n.addEventListener("active-item-change", b), () => {
3446
- n.removeEventListener("active-item-change", b);
3447
- };
3448
- }, [c]), zr(() => {
3449
- const n = p.current;
3450
- n && (t ? n.setAttribute("item-selector", t) : n.removeAttribute("item-selector"), l ? n.setAttribute("direct-item-selector", l) : n.removeAttribute("direct-item-selector"), r === null ? n.setAttribute("active-attribute", "") : r ? n.setAttribute("active-attribute", r) : n.removeAttribute("active-attribute"), i === !1 ? n.setAttribute("loop", "false") : n.removeAttribute("loop"), n.container = f ?? null);
3451
- }, [r, f, l, t, i]), h.createElement("ui-roving-focus-group", { ref: p, ...s }, e);
3452
- });
3453
- Or.displayName = "RovingFocusGroup";
3454
- const Vr = typeof window < "u" ? z : G, Cr = h.forwardRef(function({
3455
- children: e,
3456
- open: t,
3457
- modal: l,
3458
- closeOnEscape: r,
3459
- closeOnPointerOutside: i,
3460
- closeOnFocusOutside: f,
3461
- disableOutsidePointerEvents: c,
3462
- headless: s,
3463
- onBeforeClose: u,
3464
- onClose: p,
3465
- onInteractOutside: n,
3466
- onEscapeKeyDown: b,
3467
- ...A
3468
- }, y) {
3469
- const m = Q(null);
3470
- return V(y, () => m.current), G(() => {
3471
- const a = m.current;
3472
- if (!a)
3473
- return;
3474
- const d = (E) => u == null ? void 0 : u(E.detail), o = (E) => p == null ? void 0 : p(E.detail), L = (E) => n == null ? void 0 : n(E.detail || {}), g = (E) => b == null ? void 0 : b(E.detail || {});
3475
- return a.addEventListener("before-close", d), a.addEventListener("close", o), a.addEventListener("interact-outside", L), a.addEventListener("escape-key-down", g), () => {
3476
- a.removeEventListener("before-close", d), a.removeEventListener("close", o), a.removeEventListener("interact-outside", L), a.removeEventListener("escape-key-down", g);
3477
- };
3478
- }, [u, p, b, n]), Vr(() => {
3479
- const a = m.current;
3480
- a && (t ? a.setAttribute("open", "") : a.removeAttribute("open"), l ? a.setAttribute("modal", "") : a.removeAttribute("modal"), r === !1 ? a.setAttribute("close-on-escape", "false") : r ? a.setAttribute("close-on-escape", "") : a.removeAttribute("close-on-escape"), i === !1 ? a.setAttribute("close-on-pointer-outside", "false") : i ? a.setAttribute("close-on-pointer-outside", "") : a.removeAttribute("close-on-pointer-outside"), f ? a.setAttribute("close-on-focus-outside", "") : a.removeAttribute("close-on-focus-outside"), c ? a.setAttribute("disable-outside-pointer-events", "") : a.removeAttribute("disable-outside-pointer-events"), s ? a.setAttribute("headless", "") : a.removeAttribute("headless"));
3481
- }, [r, f, i, c, s, l, t]), h.createElement("ui-dismissable-layer", { ref: m, ...A }, e);
3482
- });
3483
- Cr.displayName = "DismissableLayer";
3484
- const en = typeof window < "u" ? z : G, tn = h.forwardRef(function({ children: e, active: t, trapped: l, loop: r, restoreFocus: i, autoFocus: f, inertOthers: c, headless: s, onEscape: u, onFocusScopeMount: p, ...n }, b) {
3485
- const A = Q(null);
3486
- return V(b, () => A.current), G(() => {
3487
- const y = A.current;
3488
- if (!y)
3489
- return;
3490
- const m = (d) => u == null ? void 0 : u(d.detail || {}), a = () => p == null ? void 0 : p();
3491
- return y.addEventListener("escape", m), y.addEventListener("focus-scope-mount", a), () => {
3492
- y.removeEventListener("escape", m), y.removeEventListener("focus-scope-mount", a);
3493
- };
3494
- }, [u, p]), en(() => {
3495
- const y = A.current;
3496
- y && (t ? y.setAttribute("active", "") : y.removeAttribute("active"), l === !1 ? y.setAttribute("trapped", "false") : l ? y.setAttribute("trapped", "") : y.removeAttribute("trapped"), r === !1 ? y.setAttribute("loop", "false") : r ? y.setAttribute("loop", "") : y.removeAttribute("loop"), i === !1 ? y.setAttribute("restore-focus", "false") : i ? y.setAttribute("restore-focus", "") : y.removeAttribute("restore-focus"), f ? y.setAttribute("auto-focus", f) : y.removeAttribute("auto-focus"), c ? y.setAttribute("inert-others", "") : y.removeAttribute("inert-others"), s ? y.setAttribute("headless", "") : y.removeAttribute("headless"));
3497
- }, [t, f, s, c, r, i, l]), h.createElement("ui-focus-scope", { ref: A, ...n }, e);
3498
- });
3499
- tn.displayName = "FocusScope";
3500
- const rn = typeof window < "u" ? z : G, nn = h.forwardRef(function({
3501
- children: e,
3502
- open: t,
3503
- placement: l,
3504
- strategy: r,
3505
- offset: i,
3506
- crossOffset: f,
3507
- flip: c,
3508
- shift: s,
3509
- matchWidth: u,
3510
- fitViewport: p,
3511
- anchor: n,
3512
- headless: b,
3513
- onPositionChange: A,
3514
- ...y
3515
- }, m) {
3516
- const a = Q(null);
3517
- return V(m, () => a.current), G(() => {
3518
- const d = a.current;
3519
- if (!d)
3520
- return;
3521
- const o = (L) => A == null ? void 0 : A(L.detail);
3522
- return d.addEventListener("position-change", o), () => {
3523
- d.removeEventListener("position-change", o);
3524
- };
3525
- }, [A]), rn(() => {
3526
- const d = a.current;
3527
- d && (t ? d.setAttribute("open", "") : d.removeAttribute("open"), l ? d.setAttribute("placement", l) : d.removeAttribute("placement"), r && r !== "fixed" ? d.setAttribute("strategy", r) : d.removeAttribute("strategy"), i != null ? d.setAttribute("offset", String(i)) : d.removeAttribute("offset"), f != null ? d.setAttribute("cross-offset", String(f)) : d.removeAttribute("cross-offset"), c === !1 ? d.setAttribute("flip", "false") : c ? d.setAttribute("flip", "") : d.removeAttribute("flip"), s === !1 ? d.setAttribute("shift", "false") : s ? d.setAttribute("shift", "") : d.removeAttribute("shift"), u ? d.setAttribute("match-width", "") : d.removeAttribute("match-width"), p ? d.setAttribute("fit-viewport", "") : d.removeAttribute("fit-viewport"), n ? d.setAttribute("anchor", n) : d.removeAttribute("anchor"), b ? d.setAttribute("headless", "") : d.removeAttribute("headless"));
3528
- }, [n, f, p, c, b, u, i, t, l, s, r]), h.createElement("ui-positioner", { ref: a, ...y }, e);
3529
- });
3530
- nn.displayName = "Positioner";
3531
- const ln = h.forwardRef(function({ children: e, ...t }, l) {
3532
- const r = Q(null);
3533
- return V(l, () => r.current), h.createElement("ui-anchor", { ref: r, ...t }, e);
3534
- });
3535
- ln.displayName = "Anchor";
3536
- function ye(v, e, t) {
3537
- if (t == null) {
3538
- v.removeAttribute(e);
3539
- return;
3540
- }
3541
- t ? v.setAttribute(e, "") : v.removeAttribute(e);
3542
- }
3543
- function Be(v, e, t, l) {
3544
- const r = t && t !== l ? t : void 0;
3545
- if (!r) {
3546
- v.removeAttribute(e);
3547
- return;
3548
- }
3549
- v.setAttribute(e, r);
3550
- }
3551
- const un = W.forwardRef(function({
3552
- checked: e,
3553
- disabled: t,
3554
- indeterminate: l,
3555
- loading: r,
3556
- headless: i,
3557
- invalid: f,
3558
- density: c,
3559
- preset: s,
3560
- onCheckedChange: u,
3561
- onChange: p,
3562
- onInput: n,
3563
- children: b,
3564
- ...A
3565
- }, y) {
3566
- const m = W.useRef(null);
3567
- W.useImperativeHandle(y, () => m.current);
3568
- const a = typeof window < "u" ? W.useLayoutEffect : W.useEffect;
3569
- W.useEffect(() => {
3570
- de("ui-checkbox", "Checkbox");
3571
- }, []), a(() => {
3572
- const o = m.current;
3573
- o && (ye(o, "checked", e), ye(o, "disabled", t), ye(o, "indeterminate", l), ye(o, "loading", r), ye(o, "headless", i), ye(o, "invalid", f), Be(o, "density", c, "default"), Be(o, "preset", s, "default"));
3574
- }, [e, t, l, r, i, f, c, s]), W.useEffect(() => {
3575
- const o = m.current;
3576
- if (!o || !u && !p && !n)
3577
- return;
3578
- const L = (E) => {
3579
- var w;
3580
- const N = E;
3581
- n == null || n(N), typeof ((w = N.detail) == null ? void 0 : w.checked) == "boolean" && (u == null || u(N.detail.checked, N.detail));
3582
- }, g = (E) => {
3583
- const N = E;
3584
- p == null || p(N);
3585
- };
3586
- return o.addEventListener("input", L), o.addEventListener("change", g), () => {
3587
- o.removeEventListener("input", L), o.removeEventListener("change", g);
3588
- };
3589
- }, [u, p, n]);
3590
- const d = {
3591
- ref: m,
3592
- ...A,
3593
- checked: e ? "" : void 0,
3594
- disabled: t ? "" : void 0,
3595
- indeterminate: l ? "" : void 0,
3596
- loading: r ? "" : void 0,
3597
- headless: i ? "" : void 0,
3598
- invalid: f ? "" : void 0,
3599
- density: c && c !== "default" ? c : void 0,
3600
- preset: s && s !== "default" ? s : void 0
3601
- };
3602
- return W.createElement("ui-checkbox", d, b);
3603
- });
3604
- un.displayName = "Checkbox";
3605
- const sn = typeof window < "u" ? z : G, on = h.forwardRef(function({
3606
- value: e,
3607
- disabled: t,
3608
- required: l,
3609
- name: r,
3610
- orientation: i,
3611
- variant: f,
3612
- size: c,
3613
- tone: s,
3614
- options: u,
3615
- onValueChange: p,
3616
- children: n,
3617
- ...b
3618
- }, A) {
3619
- const y = Q(null);
3620
- return h.useImperativeHandle(A, () => y.current), G(() => {
3621
- const m = y.current;
3622
- if (!m)
3623
- return;
3624
- const a = (d) => {
3625
- const o = d.detail;
3626
- o && (p == null || p(o));
3627
- };
3628
- return m.addEventListener("change", a), () => m.removeEventListener("change", a);
3629
- }, [p]), sn(() => {
3630
- const m = y.current;
3631
- if (!m)
3632
- return;
3633
- const a = (o, L) => {
3634
- const g = m.getAttribute(o);
3635
- if (L == null) {
3636
- g != null && m.removeAttribute(o);
3637
- return;
3638
- }
3639
- g !== L && m.setAttribute(o, L);
3640
- }, d = (o, L) => {
3641
- L ? m.hasAttribute(o) || m.setAttribute(o, "") : m.hasAttribute(o) && m.removeAttribute(o);
3642
- };
3643
- a("value", e ?? null), d("disabled", t), d("required", l), a("name", r || null), a("orientation", i && i !== "vertical" ? i : null), a("variant", f && f !== "default" ? f : null), a("size", c && c !== "md" ? c : null), a("tone", s && s !== "brand" ? s : null), u && u.length ? a("options", JSON.stringify(u)) : a("options", null);
3644
- }, [e, t, l, r, i, f, c, s, u]), h.createElement("ui-radio-group", { ref: y, ...b }, n);
3645
- });
3646
- on.displayName = "RadioGroup";
3647
- const cn = typeof window < "u" ? W.useLayoutEffect : W.useEffect;
3648
- function fn(v) {
3649
- if (v != null) {
3650
- if (typeof v == "string")
3651
- return v;
3652
- if (!(!Number.isFinite(v) || v <= 0))
3653
- return Math.abs(v - 16 / 9) < 0.01 ? "16/9" : Math.abs(v - 4 / 3) < 0.01 ? "4/3" : Math.abs(v - 1) < 0.01 ? "1/1" : `${v}/1`;
3654
- }
3655
- }
3656
- const dn = W.forwardRef(function({ ratio: e, fit: t, tone: l, variant: r, size: i, radius: f, elevation: c, interactive: s, showRatioBadge: u, headless: p, children: n, ...b }, A) {
3657
- const y = W.useRef(null);
3658
- return W.useImperativeHandle(A, () => y.current), W.useEffect(() => {
3659
- de("ui-aspect-ratio", "AspectRatio");
3660
- }, []), cn(() => {
3661
- const m = y.current;
3662
- if (!m)
3663
- return;
3664
- const a = fn(e);
3665
- a ? m.setAttribute("ratio", a) : m.removeAttribute("ratio"), t ? m.setAttribute("fit", t) : m.removeAttribute("fit"), l && l !== "neutral" ? m.setAttribute("tone", l) : m.removeAttribute("tone"), r && r !== "surface" ? m.setAttribute("variant", r) : m.removeAttribute("variant"), i && i !== "md" ? m.setAttribute("size", i) : m.removeAttribute("size"), f != null ? m.setAttribute("radius", String(f)) : m.removeAttribute("radius"), c && c !== "none" ? m.setAttribute("elevation", c) : m.removeAttribute("elevation"), s ? m.setAttribute("interactive", "") : m.removeAttribute("interactive"), u ? m.setAttribute("show-ratio-badge", "") : m.removeAttribute("show-ratio-badge"), p ? m.setAttribute("headless", "") : m.removeAttribute("headless");
3666
- }, [e, t, l, r, i, f, c, s, u, p]), W.createElement("ui-aspect-ratio", { ref: y, ...b }, n);
3667
- });
3668
- dn.displayName = "AspectRatio";
3669
- const an = typeof window < "u" ? W.useLayoutEffect : W.useEffect;
3670
- function Je(v) {
3671
- const e = v.trim().split(/\s+/).filter(Boolean);
3672
- return e.length === 0 ? "?" : e.length === 1 ? e[0].slice(0, 2).toUpperCase() : `${e[0][0] || ""}${e[1][0] || ""}`.toUpperCase();
3673
- }
3674
- function mn(v) {
3675
- if (v != null)
3676
- return v === "lazy" || v === "eager" ? v : v ? "eager" : "lazy";
3677
- }
3678
- function bn(v, e, t) {
3679
- return v && v.trim() ? v.trim().slice(0, 2).toUpperCase() : e && e.trim() ? Je(e) : typeof t == "string" && t.trim() ? Je(t) : "?";
3680
- }
3681
- const vn = W.forwardRef(function({
3682
- src: e,
3683
- alt: t,
3684
- initials: l,
3685
- size: r,
3686
- bg: i,
3687
- color: f,
3688
- radius: c,
3689
- fontWeight: s,
3690
- shape: u,
3691
- tone: p,
3692
- variant: n,
3693
- elevation: b,
3694
- status: A,
3695
- state: y,
3696
- badge: m,
3697
- ring: a,
3698
- interactive: d,
3699
- disabled: o,
3700
- loading: L,
3701
- onAvatarLoad: g,
3702
- onAvatarError: E,
3703
- children: N,
3704
- ...w
3705
- }, S) {
3706
- const k = W.useRef(null), J = W.useMemo(() => bn(l, t, N), [l, t, N]);
3707
- return W.useImperativeHandle(S, () => k.current), W.useEffect(() => {
3708
- de("ui-avatar", "Avatar");
3709
- }, []), W.useEffect(() => {
3710
- const x = k.current;
3711
- if (!x || !g && !E)
3712
- return;
3713
- const $ = (D) => g == null ? void 0 : g(D.detail), F = (D) => E == null ? void 0 : E(D.detail);
3714
- return x.addEventListener("avatar-load", $), x.addEventListener("avatar-error", F), () => {
3715
- x.removeEventListener("avatar-load", $), x.removeEventListener("avatar-error", F);
3716
- };
3717
- }, [g, E]), an(() => {
3718
- const x = k.current;
3719
- if (!x)
3720
- return;
3721
- e ? x.setAttribute("src", e) : x.removeAttribute("src"), t ? x.setAttribute("alt", t) : x.removeAttribute("alt"), l ? x.setAttribute("initials", l) : x.removeAttribute("initials"), r != null ? x.setAttribute("size", String(r)) : x.removeAttribute("size"), i ? x.setAttribute("bg", i) : x.removeAttribute("bg"), f ? x.setAttribute("color", f) : x.removeAttribute("color"), c != null ? x.setAttribute("radius", String(c)) : x.removeAttribute("radius"), s != null ? x.setAttribute("fontweight", String(s)) : x.removeAttribute("fontweight"), u ? x.setAttribute("shape", u) : x.removeAttribute("shape"), p && p !== "neutral" ? x.setAttribute("tone", p) : x.removeAttribute("tone"), n && n !== "surface" ? x.setAttribute("variant", n) : x.removeAttribute("variant"), b && b !== "low" ? x.setAttribute("elevation", b) : x.removeAttribute("elevation"), A ? x.setAttribute("status", A) : x.removeAttribute("status"), y && y !== "idle" ? x.setAttribute("state", y) : x.removeAttribute("state"), m ? x.setAttribute("badge", m) : x.removeAttribute("badge"), a == null ? x.removeAttribute("ring") : a ? x.setAttribute("ring", "") : x.removeAttribute("ring"), d == null ? x.removeAttribute("interactive") : d ? x.setAttribute("interactive", "") : x.removeAttribute("interactive"), o == null ? x.removeAttribute("disabled") : o ? x.setAttribute("disabled", "") : x.removeAttribute("disabled");
3722
- const $ = mn(L);
3723
- $ ? x.setAttribute("loading", $) : x.removeAttribute("loading");
3724
- }, [e, t, l, r, i, f, c, s, u, p, n, b, A, y, m, a, d, o, L]), W.createElement("ui-avatar", { ref: k, ...w }, J);
3725
- });
3726
- vn.displayName = "Avatar";
3727
- const pn = typeof window < "u" ? z : G, An = h.forwardRef(function({
3728
- present: e,
3729
- headless: t,
3730
- mode: l,
3731
- size: r,
3732
- variant: i,
3733
- keepMounted: f,
3734
- lazy: c,
3735
- enterDuration: s,
3736
- exitDuration: u,
3737
- delay: p,
3738
- onBeforeEnter: n,
3739
- onEnter: b,
3740
- onAfterEnter: A,
3741
- onBeforeExit: y,
3742
- onExit: m,
3743
- onAfterExit: a,
3744
- children: d,
3745
- ...o
3746
- }, L) {
3747
- const g = Q(null);
3748
- return h.useImperativeHandle(L, () => g.current), G(() => {
3749
- const E = g.current;
3750
- if (!E)
3751
- return;
3752
- const N = (F) => {
3753
- const D = F.detail;
3754
- return (D == null ? void 0 : D.state) || "hidden";
3755
- }, w = (F) => n == null ? void 0 : n(N(F)), S = (F) => b == null ? void 0 : b(N(F)), k = (F) => A == null ? void 0 : A(N(F)), J = (F) => y == null ? void 0 : y(N(F)), x = (F) => m == null ? void 0 : m(N(F)), $ = (F) => a == null ? void 0 : a(N(F));
3756
- return E.addEventListener("before-enter", w), E.addEventListener("enter", S), E.addEventListener("after-enter", k), E.addEventListener("before-exit", J), E.addEventListener("exit", x), E.addEventListener("after-exit", $), () => {
3757
- E.removeEventListener("before-enter", w), E.removeEventListener("enter", S), E.removeEventListener("after-enter", k), E.removeEventListener("before-exit", J), E.removeEventListener("exit", x), E.removeEventListener("after-exit", $);
3758
- };
3759
- }, [n, b, A, y, m, a]), pn(() => {
3760
- const E = g.current;
3761
- E && (e ? E.setAttribute("present", "") : E.removeAttribute("present"), t ? E.setAttribute("headless", "") : E.removeAttribute("headless"), l && l !== "fade" ? E.setAttribute("mode", l) : E.removeAttribute("mode"), r && r !== "md" ? E.setAttribute("size", r) : E.removeAttribute("size"), i && i !== "default" ? E.setAttribute("variant", i) : E.removeAttribute("variant"), f ? E.setAttribute("keep-mounted", "") : E.removeAttribute("keep-mounted"), c ? E.setAttribute("lazy", "") : E.removeAttribute("lazy"), typeof s == "number" ? E.setAttribute("enter-duration", String(s)) : E.removeAttribute("enter-duration"), typeof u == "number" ? E.setAttribute("exit-duration", String(u)) : E.removeAttribute("exit-duration"), typeof p == "number" ? E.setAttribute("delay", String(p)) : E.removeAttribute("delay"));
3762
- }, [e, t, l, r, i, f, c, s, u, p]), h.createElement("ui-presence", { ref: g, ...o }, d);
3763
- });
3764
- An.displayName = "Presence";
3765
- const yn = typeof window < "u" ? z : G, En = h.forwardRef(function({
3766
- value: e,
3767
- buffer: t,
3768
- max: l,
3769
- min: r,
3770
- indeterminate: i,
3771
- striped: f,
3772
- animated: c,
3773
- showLabel: s,
3774
- label: u,
3775
- format: p,
3776
- precision: n,
3777
- size: b,
3778
- variant: A,
3779
- tone: y,
3780
- shape: m,
3781
- mode: a,
3782
- onValueChange: d,
3783
- onComplete: o,
3784
- children: L,
3785
- ...g
3786
- }, E) {
3787
- const N = Q(null);
3788
- return h.useImperativeHandle(E, () => N.current), G(() => {
3789
- const w = N.current;
3790
- if (!w)
3791
- return;
3792
- const S = (J) => {
3793
- const x = J.detail;
3794
- x && (d == null || d(x));
3795
- }, k = (J) => {
3796
- const x = J.detail;
3797
- x && (o == null || o(x));
3798
- };
3799
- return w.addEventListener("change", S), w.addEventListener("complete", k), () => {
3800
- w.removeEventListener("change", S), w.removeEventListener("complete", k);
3801
- };
3802
- }, [d, o]), yn(() => {
3803
- const w = N.current;
3804
- if (!w)
3805
- return;
3806
- const S = (J, x) => {
3807
- const $ = w.getAttribute(J);
3808
- if (x == null) {
3809
- $ != null && w.removeAttribute(J);
3810
- return;
3811
- }
3812
- $ !== x && w.setAttribute(J, x);
3813
- }, k = (J, x) => {
3814
- x ? w.hasAttribute(J) || w.setAttribute(J, "") : w.hasAttribute(J) && w.removeAttribute(J);
3815
- };
3816
- S("value", e != null ? String(e) : null), S("buffer", t != null ? String(t) : null), S("max", l != null ? String(l) : null), S("min", r != null ? String(r) : null), k("indeterminate", i), k("striped", f), k("animated", c), k("show-label", s), S("label", u != null && u !== "" ? u : null), S("format", p != null && p !== "percent" ? p : null), S("precision", n != null ? String(n) : null), S("size", b && b !== "md" ? b : null), S("variant", A && A !== "default" ? A : null), S("tone", y && y !== "brand" ? y : null), S("shape", m && m !== "pill" ? m : null), S("mode", a && a !== "line" ? a : null);
3817
- }, [e, t, l, r, i, f, c, s, u, p, n, b, A, y, m, a]), h.createElement("ui-progress", { ref: N, ...g }, L);
3818
- });
3819
- En.displayName = "Progress";
3820
- const Ln = typeof window < "u" ? z : G, gn = h.forwardRef(function({
3821
- value: e,
3822
- min: t,
3823
- max: l,
3824
- low: r,
3825
- high: i,
3826
- optimum: f,
3827
- label: c,
3828
- showLabel: s,
3829
- format: u,
3830
- precision: p,
3831
- size: n,
3832
- variant: b,
3833
- tone: A,
3834
- shape: y,
3835
- mode: m,
3836
- onValueChange: a,
3837
- children: d,
3838
- ...o
3839
- }, L) {
3840
- const g = Q(null);
3841
- return h.useImperativeHandle(L, () => g.current), G(() => {
3842
- const E = g.current;
3843
- if (!E)
3844
- return;
3845
- const N = (w) => {
3846
- const S = w.detail;
3847
- S && (a == null || a(S));
3848
- };
3849
- return E.addEventListener("change", N), () => {
3850
- E.removeEventListener("change", N);
3851
- };
3852
- }, [a]), Ln(() => {
3853
- const E = g.current;
3854
- if (!E)
3855
- return;
3856
- const N = (S, k) => {
3857
- const J = E.getAttribute(S);
3858
- if (k == null) {
3859
- J != null && E.removeAttribute(S);
3860
- return;
3861
- }
3862
- J !== k && E.setAttribute(S, k);
3863
- }, w = (S, k) => {
3864
- k ? E.hasAttribute(S) || E.setAttribute(S, "") : E.hasAttribute(S) && E.removeAttribute(S);
3865
- };
3866
- N("value", e != null ? String(e) : null), N("min", t != null ? String(t) : null), N("max", l != null ? String(l) : null), N("low", r != null ? String(r) : null), N("high", i != null ? String(i) : null), N("optimum", f != null ? String(f) : null), N("label", c != null && c !== "" ? c : null), w("show-label", s), N("format", u != null && u !== "value" ? u : null), N("precision", p != null ? String(p) : null), N("size", n && n !== "md" ? n : null), N("variant", b && b !== "default" ? b : null), N("tone", A && A !== "auto" ? A : null), N("shape", y && y !== "pill" ? y : null), N("mode", m && m !== "line" ? m : null);
3867
- }, [e, t, l, r, i, f, c, s, u, p, n, b, A, y, m]), h.createElement("ui-meter", { ref: g, ...o }, d);
3868
- });
3869
- gn.displayName = "Meter";
3870
- const wn = typeof window < "u" ? z : G, hn = h.forwardRef(function({ target: e, headless: t, disabled: l, strategy: r, onMount: i, onUnmount: f, onSync: c, onTargetMissing: s, children: u, ...p }, n) {
3871
- const b = Q(null);
3872
- return h.useImperativeHandle(n, () => b.current), G(() => {
3873
- const A = b.current;
3874
- if (!A)
3875
- return;
3876
- const y = (o) => i == null ? void 0 : i(o.detail || { count: 0 }), m = (o) => f == null ? void 0 : f(o.detail || { count: 0 }), a = (o) => c == null ? void 0 : c(o.detail || { count: 0 }), d = (o) => {
3877
- const L = o.detail;
3878
- L && (s == null || s(L));
3879
- };
3880
- return A.addEventListener("mount", y), A.addEventListener("unmount", m), A.addEventListener("sync", a), A.addEventListener("target-missing", d), () => {
3881
- A.removeEventListener("mount", y), A.removeEventListener("unmount", m), A.removeEventListener("sync", a), A.removeEventListener("target-missing", d);
3882
- };
3883
- }, [i, f, c, s]), wn(() => {
3884
- const A = b.current;
3885
- A && (e ? A.setAttribute("target", e) : A.removeAttribute("target"), r && r !== "append" ? A.setAttribute("strategy", r) : A.removeAttribute("strategy"), t ? A.setAttribute("headless", "") : A.removeAttribute("headless"), l ? A.setAttribute("disabled", "") : A.removeAttribute("disabled"));
3886
- }, [e, r, t, l]), h.createElement("ui-portal", { ref: b, ...p }, u);
3887
- });
3888
- hn.displayName = "Portal";
3889
- const Nn = typeof window < "u" ? z : G, Sn = h.forwardRef(function({
3890
- orientation: e,
3891
- size: t,
3892
- variant: l,
3893
- tone: r,
3894
- autoHide: i,
3895
- shadows: f,
3896
- onScrollChange: c,
3897
- onReachStart: s,
3898
- onReachEnd: u,
3899
- children: p,
3900
- ...n
3901
- }, b) {
3902
- const A = Q(null);
3903
- return h.useImperativeHandle(b, () => A.current), G(() => {
3904
- const y = A.current;
3905
- if (!y)
3906
- return;
3907
- const m = (o) => {
3908
- const L = o.detail;
3909
- L && (c == null || c(L));
3910
- }, a = () => s == null ? void 0 : s(), d = () => u == null ? void 0 : u();
3911
- return y.addEventListener("scroll", m), y.addEventListener("reach-start", a), y.addEventListener("reach-end", d), () => {
3912
- y.removeEventListener("scroll", m), y.removeEventListener("reach-start", a), y.removeEventListener("reach-end", d);
3913
- };
3914
- }, [c, s, u]), Nn(() => {
3915
- const y = A.current;
3916
- if (!y)
3917
- return;
3918
- const m = (d, o) => {
3919
- const L = y.getAttribute(d);
3920
- if (o == null) {
3921
- L != null && y.removeAttribute(d);
3922
- return;
3923
- }
3924
- L !== o && y.setAttribute(d, o);
3925
- }, a = (d, o) => {
3926
- const L = y.getAttribute(d);
3927
- if (o == null) {
3928
- L != null && y.removeAttribute(d);
3929
- return;
3930
- }
3931
- const g = o ? "true" : "false";
3932
- L !== g && y.setAttribute(d, g);
3933
- };
3934
- m("orientation", e && e !== "vertical" ? e : null), m("size", t && t !== "md" ? t : null), m("variant", l && l !== "default" ? l : null), m("tone", r && r !== "neutral" ? r : null), a("auto-hide", i), a("shadows", f);
3935
- }, [e, t, l, r, i, f]), h.createElement("ui-scroll-area", { ref: A, ...n }, p);
3936
- });
3937
- Sn.displayName = "ScrollArea";
3938
- const Hn = W.forwardRef((v, e) => /* @__PURE__ */ W.createElement("ui-separator", { ref: e, ...v }));
3939
- Hn.displayName = "Separator";
3940
- const kn = typeof window < "u" ? z : G, Rn = h.forwardRef(function({
3941
- children: e,
3942
- name: t,
3943
- fallback: l,
3944
- required: r,
3945
- inline: i,
3946
- align: f,
3947
- size: c,
3948
- variant: s,
3949
- tone: u,
3950
- headless: p,
3951
- onSlotChange: n,
3952
- onMissing: b,
3953
- onResolved: A,
3954
- ...y
3955
- }, m) {
3956
- const a = Q(null);
3957
- return V(m, () => a.current), G(() => {
3958
- const d = a.current;
3959
- if (!d)
3960
- return;
3961
- const o = (E) => {
3962
- const N = E.detail;
3963
- N && (n == null || n(N));
3964
- }, L = () => b == null ? void 0 : b(), g = () => A == null ? void 0 : A();
3965
- return d.addEventListener("slotchange", o), d.addEventListener("missing", L), d.addEventListener("resolved", g), () => {
3966
- d.removeEventListener("slotchange", o), d.removeEventListener("missing", L), d.removeEventListener("resolved", g);
3967
- };
3968
- }, [n, b, A]), kn(() => {
3969
- const d = a.current;
3970
- if (!d)
3971
- return;
3972
- const o = (g, E) => {
3973
- const N = d.getAttribute(g);
3974
- if (E == null) {
3975
- N != null && d.removeAttribute(g);
3976
- return;
3977
- }
3978
- N !== E && d.setAttribute(g, E);
3979
- }, L = (g, E) => {
3980
- E ? o(g, "") : o(g, null);
3981
- };
3982
- o("name", t || null), o("fallback", l || null), L("required", r), typeof i == "boolean" ? o("inline", i ? "true" : "false") : o("inline", null), o("align", f && f !== "start" ? f : null), o("size", c && c !== "md" ? c : null), o("variant", s && s !== "plain" ? s : null), o("tone", u && u !== "brand" ? u : null), L("headless", p);
3983
- }, [t, l, r, i, f, c, s, u, p]), h.createElement("ui-slot", { ref: a, ...y }, e);
3984
- });
3985
- Rn.displayName = "Slot";
3986
- const Pn = typeof window < "u" ? z : G, xn = h.forwardRef(function({
3987
- children: e,
3988
- orientation: t,
3989
- variant: l,
3990
- size: r,
3991
- density: i,
3992
- wrap: f,
3993
- loop: c,
3994
- headless: s,
3995
- ...u
3996
- }, p) {
3997
- const n = Q(null);
3998
- return V(p, () => n.current), Pn(() => {
3999
- const b = n.current;
4000
- if (!b)
4001
- return;
4002
- const A = (m, a) => {
4003
- const d = b.getAttribute(m);
4004
- if (a == null) {
4005
- d != null && b.removeAttribute(m);
4006
- return;
4007
- }
4008
- d !== a && b.setAttribute(m, a);
4009
- }, y = (m, a) => {
4010
- a ? A(m, "") : A(m, null);
4011
- };
4012
- A("orientation", t && t !== "horizontal" ? t : null), A("variant", l && l !== "default" ? l : null), A("size", r && r !== "md" ? r : null), A("density", i && i !== "default" ? i : null), y("wrap", f), typeof c == "boolean" ? y("loop", c) : A("loop", null), y("headless", s);
4013
- }, [t, l, r, i, f, c, s]), h.createElement("ui-toolbar", { ref: n, ...u }, e);
4014
- });
4015
- xn.displayName = "Toolbar";
4016
- const $n = W.forwardRef((v, e) => /* @__PURE__ */ W.createElement("ui-visually-hidden", { ref: e, ...v }));
4017
- $n.displayName = "VisuallyHidden";
4018
- const Tn = typeof window < "u" ? W.useLayoutEffect : W.useEffect, Fn = W.forwardRef(function({
4019
- page: e,
4020
- count: t,
4021
- size: l,
4022
- variant: r,
4023
- headless: i,
4024
- ariaLabel: f,
4025
- onPageChange: c,
4026
- onChange: s,
4027
- onFirst: u,
4028
- onPrev: p,
4029
- onNext: n,
4030
- onLast: b,
4031
- children: A,
4032
- ...y
4033
- }, m) {
4034
- const a = W.useRef(null);
4035
- return W.useImperativeHandle(m, () => a.current), W.useEffect(() => {
4036
- const d = a.current;
4037
- if (!d)
4038
- return;
4039
- const o = (w) => {
4040
- const S = w.detail;
4041
- S && (c == null || c(S), s == null || s(S));
4042
- }, L = (w) => {
4043
- const S = w.detail;
4044
- S && (u == null || u(S));
4045
- }, g = (w) => {
4046
- const S = w.detail;
4047
- S && (p == null || p(S));
4048
- }, E = (w) => {
4049
- const S = w.detail;
4050
- S && (n == null || n(S));
4051
- }, N = (w) => {
4052
- const S = w.detail;
4053
- S && (b == null || b(S));
4054
- };
4055
- return d.addEventListener("change", o), d.addEventListener("first", L), d.addEventListener("prev", g), d.addEventListener("next", E), d.addEventListener("last", N), () => {
4056
- d.removeEventListener("change", o), d.removeEventListener("first", L), d.removeEventListener("prev", g), d.removeEventListener("next", E), d.removeEventListener("last", N);
4057
- };
4058
- }, [c, s, u, p, n, b]), Tn(() => {
4059
- const d = a.current;
4060
- if (!d)
4061
- return;
4062
- const o = (g, E) => {
4063
- const N = d.getAttribute(g);
4064
- if (E == null) {
4065
- N != null && d.removeAttribute(g);
4066
- return;
4067
- }
4068
- N !== E && d.setAttribute(g, E);
4069
- }, L = (g, E) => {
4070
- E ? d.hasAttribute(g) || d.setAttribute(g, "") : d.hasAttribute(g) && d.removeAttribute(g);
4071
- };
4072
- o("page", typeof e == "number" && Number.isFinite(e) ? String(e) : null), o("count", typeof t == "number" && Number.isFinite(t) ? String(t) : null), o("size", l && l !== "md" ? l : null), o("variant", r && r !== "default" ? r : null), o("aria-label", f ?? null), L("headless", i);
4073
- }, [e, t, l, r, f, i]), W.createElement("ui-pagination", { ref: a, ...y }, A);
4074
- });
4075
- Fn.displayName = "Pagination";
4076
- const In = W.forwardRef((v, e) => /* @__PURE__ */ W.createElement("ui-direction-provider", { ref: e, ...v }));
4077
- In.displayName = "DirectionProvider";
4078
- const Dn = typeof window < "u" ? h.useLayoutEffect : h.useEffect, Bn = h.forwardRef(function({
4079
- children: e,
4080
- open: t,
4081
- headless: l,
4082
- dismissible: r,
4083
- closeOnEsc: i,
4084
- closeOnBackdrop: f,
4085
- lockWhileLoading: c,
4086
- roleType: s,
4087
- tone: u,
4088
- variant: p,
4089
- size: n,
4090
- radius: b,
4091
- elevation: A,
4092
- indicator: y,
4093
- state: m,
4094
- initialFocus: a,
4095
- dialogId: d,
4096
- config: o,
4097
- onOpen: L,
4098
- onConfirm: g,
4099
- onCancel: E,
4100
- onDismiss: N,
4101
- onClose: w,
4102
- onChange: S,
4103
- ...k
4104
- }, J) {
4105
- const x = Q(null);
4106
- return h.useImperativeHandle(J, () => x.current), G(() => {
4107
- const $ = x.current;
4108
- if (!$)
4109
- return;
4110
- const F = (I) => L == null ? void 0 : L(I.detail), D = (I) => g == null ? void 0 : g(I.detail), q = (I) => E == null ? void 0 : E(I.detail), R = (I) => N == null ? void 0 : N(I.detail), T = (I) => w == null ? void 0 : w(I.detail), j = (I) => S == null ? void 0 : S(I.detail);
4111
- return $.addEventListener("ui-open", F), $.addEventListener("ui-confirm", D), $.addEventListener("ui-cancel", q), $.addEventListener("ui-dismiss", R), $.addEventListener("ui-close", T), $.addEventListener("ui-change", j), () => {
4112
- $.removeEventListener("ui-open", F), $.removeEventListener("ui-confirm", D), $.removeEventListener("ui-cancel", q), $.removeEventListener("ui-dismiss", R), $.removeEventListener("ui-close", T), $.removeEventListener("ui-change", j);
4113
- };
4114
- }, [L, g, E, N, w, S]), Dn(() => {
4115
- const $ = x.current;
4116
- $ && (l ? $.setAttribute("headless", "") : $.removeAttribute("headless"), typeof t == "boolean" && t ? $.setAttribute("open", "") : $.removeAttribute("open"), typeof r == "boolean" ? $.setAttribute("dismissible", String(r)) : $.removeAttribute("dismissible"), typeof i == "boolean" ? $.setAttribute("close-on-esc", String(i)) : $.removeAttribute("close-on-esc"), typeof f == "boolean" ? $.setAttribute("close-on-backdrop", String(f)) : $.removeAttribute("close-on-backdrop"), typeof c == "boolean" ? $.setAttribute("lock-while-loading", String(c)) : $.removeAttribute("lock-while-loading"), s ? $.setAttribute("role", s) : $.removeAttribute("role"), u && u !== "neutral" ? $.setAttribute("tone", u) : $.removeAttribute("tone"), p && p !== "surface" ? $.setAttribute("variant", p) : $.removeAttribute("variant"), n && n !== "md" && n !== "2" ? $.setAttribute("size", n) : $.removeAttribute("size"), b != null ? $.setAttribute("radius", String(b)) : $.removeAttribute("radius"), A && A !== "low" ? $.setAttribute("elevation", A) : $.removeAttribute("elevation"), y && y !== "line" ? $.setAttribute("indicator", y) : $.removeAttribute("indicator"), m && m !== "idle" ? $.setAttribute("state", m) : $.removeAttribute("state"), a ? $.setAttribute("initial-focus", a) : $.removeAttribute("initial-focus"), d && ($.dialogId = d), o ? $.config = o : $.config = {});
4117
- }, [
4118
- t,
4119
- l,
4120
- r,
4121
- i,
4122
- f,
4123
- c,
4124
- s,
4125
- u,
4126
- p,
4127
- n,
4128
- b,
4129
- A,
4130
- y,
4131
- m,
4132
- a,
4133
- d,
4134
- o
4135
- ]), h.createElement("ui-alert-dialog", { ref: x, ...k }, e);
4136
- });
4137
- Bn.displayName = "AlertDialog";
4138
- function Ne(v, e, t, l) {
4139
- const r = h.forwardRef(function({ as: f, children: c, style: s, ...u }, p) {
4140
- const n = f || v, b = { ref: p, ...u };
4141
- return t && (b.slot = t), l && (b[l] = ""), s && (b.style = s), h.createElement(n, b, c);
4142
- });
4143
- return r.displayName = e, r;
4144
- }
4145
- const vi = Ne("span", "AlertDialogIcon", "icon", "data-ui-alert-dialog-icon"), pi = Ne("div", "AlertDialogTitle", "title", "data-ui-alert-dialog-title"), Ai = Ne(
4146
- "div",
4147
- "AlertDialogDescription",
4148
- "description",
4149
- "data-ui-alert-dialog-description"
4150
- ), yi = Ne(
4151
- "div",
4152
- "AlertDialogContent",
4153
- "content",
4154
- "data-ui-alert-dialog-content"
4155
- ), Ei = Ne(
4156
- "div",
4157
- "AlertDialogActions",
4158
- "footer",
4159
- "data-ui-alert-dialog-actions"
4160
- ), rt = ke(null), he = "data-ui-alert-dialog-react-host-refcount";
4161
- function Li({
4162
- children: v,
4163
- hostId: e = "ui-alert-dialog-react-host",
4164
- defaults: t
4165
- }) {
4166
- const l = Q(null);
4167
- l.current || (l.current = yt()), G(() => {
4168
- var i;
4169
- (i = l.current) == null || i.setDefaults(t || null);
4170
- }, [t]), G(() => {
4171
- var s;
4172
- if (typeof document > "u")
4173
- return;
4174
- let i = document.getElementById(e);
4175
- const f = !i;
4176
- i || (i = document.createElement("div"), i.id = e, i.setAttribute("data-ui-alert-dialog-react-host", "true"), document.body.appendChild(i));
4177
- const c = Number(i.getAttribute(he) || "0");
4178
- return i.setAttribute(he, String(Math.max(0, c) + 1)), (s = l.current) == null || s.setContainer(i), () => {
4179
- var n, b;
4180
- if ((n = l.current) == null || n.destroy("unmount"), l.current = null, !i || !i.isConnected)
4181
- return;
4182
- const u = Number(i.getAttribute(he) || "1"), p = Math.max(0, u - 1);
4183
- p === 0 ? (i.removeAttribute(he), f && ((b = i.parentElement) == null || b.removeChild(i))) : i.setAttribute(he, String(p));
4184
- };
4185
- }, [e]);
4186
- const r = Re(
4187
- () => ({
4188
- alert: (i = {}) => {
4189
- var f;
4190
- return ((f = l.current) == null ? void 0 : f.alert(i)) ?? Promise.resolve({ id: "", action: "dismiss" });
4191
- },
4192
- confirm: (i = {}) => {
4193
- var f;
4194
- return ((f = l.current) == null ? void 0 : f.confirm(i)) ?? Promise.resolve({ id: "", action: "dismiss" });
4195
- },
4196
- prompt: (i = {}) => {
4197
- var f;
4198
- return ((f = l.current) == null ? void 0 : f.prompt(i)) ?? Promise.resolve({ id: "", action: "dismiss", value: "" });
4199
- }
4200
- }),
4201
- []
4202
- );
4203
- return /* @__PURE__ */ h.createElement(rt.Provider, { value: r }, v);
4204
- }
4205
- function gi() {
4206
- const v = Pe(rt);
4207
- if (!v)
4208
- throw new Error("useAlertDialog must be used within <AlertDialogProvider>.");
4209
- return v;
4210
- }
4211
- const Jn = typeof window < "u" ? z : G, jn = h.forwardRef(function({
4212
- children: e,
4213
- value: t,
4214
- valueStart: l,
4215
- valueEnd: r,
4216
- min: i,
4217
- max: f,
4218
- step: c,
4219
- range: s,
4220
- disabled: u,
4221
- headless: p,
4222
- orientation: n,
4223
- size: b,
4224
- variant: A,
4225
- tone: y,
4226
- showValue: m,
4227
- format: a,
4228
- label: d,
4229
- description: o,
4230
- marks: L,
4231
- name: g,
4232
- nameStart: E,
4233
- nameEnd: N,
4234
- onInput: w,
4235
- onChange: S,
4236
- onValueChange: k,
4237
- ...J
4238
- }, x) {
4239
- const $ = Q(null);
4240
- return V(x, () => $.current), G(() => {
4241
- const F = $.current;
4242
- if (!F)
4243
- return;
4244
- const D = (R) => {
4245
- const T = R.detail;
4246
- T && (w == null || w(Number(T.value)), k == null || k(T));
4247
- }, q = (R) => {
4248
- const T = R.detail;
4249
- T && (S == null || S(Number(T.value)), k == null || k(T));
4250
- };
4251
- return F.addEventListener("input", D), F.addEventListener("change", q), () => {
4252
- F.removeEventListener("input", D), F.removeEventListener("change", q);
4253
- };
4254
- }, [w, S, k]), Jn(() => {
4255
- const F = $.current;
4256
- if (!F)
4257
- return;
4258
- const D = (R, T) => {
4259
- const j = F.getAttribute(R);
4260
- if (T == null) {
4261
- j != null && F.removeAttribute(R);
4262
- return;
4263
- }
4264
- j !== T && F.setAttribute(R, T);
4265
- }, q = (R, T, j) => {
4266
- if (T == null) {
4267
- j !== void 0 && j === !1 && D(R, null);
4268
- return;
4269
- }
4270
- T ? D(R, "") : D(R, null);
4271
- };
4272
- if (D("value", typeof t == "number" && Number.isFinite(t) ? String(t) : null), D("value-start", typeof l == "number" && Number.isFinite(l) ? String(l) : null), D("value-end", typeof r == "number" && Number.isFinite(r) ? String(r) : null), D("min", typeof i == "number" && Number.isFinite(i) ? String(i) : null), D("max", typeof f == "number" && Number.isFinite(f) ? String(f) : null), D("step", typeof c == "number" && Number.isFinite(c) ? String(c) : null), q("range", s), q("disabled", u), q("headless", p), D("orientation", n && n !== "horizontal" ? n : null), D("size", b && b !== "md" ? b : null), D("variant", A && A !== "default" ? A : null), D("tone", y && y !== "brand" ? y : null), typeof m == "boolean" ? D("show-value", m ? "true" : "false") : D("show-value", null), D("format", a || null), D("label", d || null), D("description", o || null), D("name", g || null), D("name-start", E || null), D("name-end", N || null), L && L.length)
4273
- try {
4274
- D("marks", JSON.stringify(L));
4275
- } catch {
4276
- D("marks", null);
4277
- }
4278
- else
4279
- D("marks", null);
4280
- }, [
4281
- t,
4282
- l,
4283
- r,
4284
- i,
4285
- f,
4286
- c,
4287
- s,
4288
- u,
4289
- p,
4290
- n,
4291
- b,
4292
- A,
4293
- y,
4294
- m,
4295
- a,
4296
- d,
4297
- o,
4298
- L,
4299
- g,
4300
- E,
4301
- N
4302
- ]), h.createElement("ui-slider", { ref: $, ...J }, e);
4303
- });
4304
- jn.displayName = "Slider";
4305
- const Gn = typeof window < "u" ? z : G;
4306
- function wi(v) {
4307
- const {
4308
- count: e,
4309
- width: t,
4310
- height: l,
4311
- radius: r,
4312
- gap: i,
4313
- duration: f,
4314
- variant: c,
4315
- animation: s,
4316
- density: u,
4317
- tone: p,
4318
- animated: n,
4319
- headless: b,
4320
- ...A
4321
- } = v, y = Q(null);
4322
- return Gn(() => {
4323
- const m = y.current;
4324
- m && (typeof e == "number" && Number.isFinite(e) ? m.setAttribute("count", String(e)) : m.removeAttribute("count"), t ? m.setAttribute("width", t) : m.removeAttribute("width"), l ? m.setAttribute("height", l) : m.removeAttribute("height"), r ? m.setAttribute("radius", r) : m.removeAttribute("radius"), i ? m.setAttribute("gap", i) : m.removeAttribute("gap"), f ? m.setAttribute("duration", f) : m.removeAttribute("duration"), c ? m.setAttribute("variant", c) : m.removeAttribute("variant"), s && s !== "none" ? m.setAttribute("animation", s) : s === "none" ? m.setAttribute("animation", "none") : m.removeAttribute("animation"), u && u !== "default" ? m.setAttribute("density", u) : m.removeAttribute("density"), p && p !== "default" ? m.setAttribute("tone", p) : m.removeAttribute("tone"), n ? m.setAttribute("animated", "") : m.removeAttribute("animated"), b ? m.setAttribute("headless", "") : m.removeAttribute("headless"));
4325
- }, [e, t, l, r, i, f, c, s, u, p, n, b]), h.createElement("ui-skeleton", { ref: y, ...A });
4326
277
  }
4327
278
  export {
4328
- Ml as Accordion,
4329
- Si as Alert,
4330
- Hi as AlertActions,
4331
- ki as AlertDescription,
4332
- Bn as AlertDialog,
4333
- Ei as AlertDialogActions,
4334
- yi as AlertDialogContent,
4335
- Ai as AlertDialogDescription,
4336
- vi as AlertDialogIcon,
4337
- Li as AlertDialogProvider,
4338
- pi as AlertDialogTitle,
4339
- Ri as AlertIcon,
4340
- Pi as AlertTitle,
4341
- ln as Anchor,
4342
- wl as AppHeader,
4343
- hl as AppHeaderCenter,
4344
- Nl as AppHeaderEnd,
4345
- Sl as AppHeaderStart,
4346
- Hl as AppHeaderSubtitle,
4347
- kl as AppHeaderTitle,
4348
- dn as AspectRatio,
4349
- vn as Avatar,
4350
- Zn as Badge,
4351
- Dr as BlockControls,
4352
- ci as Box,
4353
- Ll as Breadcrumb,
4354
- Lt as Button,
4355
- Qt as Calendar,
4356
- Ql as Card,
4357
- Vn as Chart,
4358
- un as Checkbox,
4359
- jl as Collapsible,
4360
- Kr as Collection,
4361
- Yt as ColorPicker,
4362
- Di as Combobox,
4363
- ul as Command,
4364
- sl as CommandItem,
4365
- cl as CommandPalette,
4366
- fl as CommandPaletteItem,
4367
- ai as Container,
4368
- ui as ContextMenu,
4369
- Bt as ControlGroup,
4370
- On as DataTable,
4371
- Ot as DateField,
4372
- Zt as DatePicker,
4373
- zt as DateRangePicker,
4374
- br as DateRangeTimePicker,
4375
- ar as DateTimePicker,
4376
- It as Description,
4377
- Rr as Dialog,
4378
- ei as DialogProvider,
4379
- In as DirectionProvider,
4380
- Cr as DismissableLayer,
4381
- Pl as Drawer,
4382
- Xn as Dropdown,
4383
- Me as DropdownContent,
4384
- qe as DropdownItem,
4385
- _e as DropdownSectionLabel,
4386
- Ue as DropdownSeparator,
4387
- Ge as DropdownTrigger,
4388
- Tt as Dropzone,
4389
- Wn as EmptyState,
4390
- Kn as Field,
4391
- Dt as FieldError,
4392
- Jt as Fieldset,
4393
- $t as FileUpload,
4394
- fi as Flex,
4395
- il as FloatingToolbar,
4396
- tn as FocusScope,
4397
- bl as Form,
4398
- pr as Gantt,
4399
- di as Grid,
4400
- Ul as HoverCard,
4401
- xr as Icon,
4402
- or as InlineEdit,
4403
- $i as Input,
4404
- Yl as Label,
4405
- $l as Layout,
4406
- Wr as Listbox,
4407
- Wi as Menu,
4408
- zi as MenuItem,
4409
- Oi as MenuSectionLabel,
4410
- Vi as MenuSeparator,
4411
- _i as Menubar,
4412
- gn as Meter,
4413
- rr as MultiSelect,
4414
- Cn as NavigationMenu,
279
+ dn as Accordion,
280
+ oe as Alert,
281
+ te as AlertActions,
282
+ ne as AlertDescription,
283
+ Sn as AlertDialog,
284
+ Cn as AlertDialogActions,
285
+ Mn as AlertDialogContent,
286
+ In as AlertDialogDescription,
287
+ kn as AlertDialogIcon,
288
+ Rn as AlertDialogProvider,
289
+ Fn as AlertDialogTitle,
290
+ ie as AlertIcon,
291
+ ae as AlertTitle,
292
+ Ft as Anchor,
293
+ $n as AnimatedBeam,
294
+ qn as AnimatedList,
295
+ ii as AnimatedNumber,
296
+ En as AnimatedText,
297
+ nt as AppHeader,
298
+ it as AppHeaderCenter,
299
+ at as AppHeaderEnd,
300
+ pt as AppHeaderStart,
301
+ ft as AppHeaderSubtitle,
302
+ mt as AppHeaderTitle,
303
+ Ot as AspectRatio,
304
+ Kt as Avatar,
305
+ He as Badge,
306
+ Do as BlockControls,
307
+ No as Box,
308
+ ot as Breadcrumb,
309
+ Z as Button,
310
+ Xe as Calendar,
311
+ yn as Card,
312
+ Qe as Chart,
313
+ Rt as Checkbox,
314
+ ln as Collapsible,
315
+ Dt as Collection,
316
+ Ze as ColorPicker,
317
+ Be as Combobox,
318
+ bo as Command,
319
+ yo as CommandItem,
320
+ vo as CommandPalette,
321
+ wo as CommandPaletteItem,
322
+ Qo as Container,
323
+ Co as ContextMenu,
324
+ he as ControlGroup,
325
+ Ke as DataTable,
326
+ nr as DateField,
327
+ er as DatePicker,
328
+ or as DateRangePicker,
329
+ yr as DateRangeTimePicker,
330
+ Pr as DateTimePicker,
331
+ Re as Description,
332
+ Ur as Dialog,
333
+ Wr as DialogProvider,
334
+ An as DirectionProvider,
335
+ wt as DismissableLayer,
336
+ Wn as Dock,
337
+ lt as Drawer,
338
+ fe as Dropdown,
339
+ me as DropdownContent,
340
+ se as DropdownItem,
341
+ le as DropdownSectionLabel,
342
+ ce as DropdownSeparator,
343
+ ue as DropdownTrigger,
344
+ we as Dropzone,
345
+ Ve as EmptyState,
346
+ ke as Field,
347
+ Le as FieldError,
348
+ Ne as Fieldset,
349
+ Se as FileUpload,
350
+ Bo as Flex,
351
+ go as FloatingToolbar,
352
+ Ct as FocusScope,
353
+ Ro as Form,
354
+ vr as Gantt,
355
+ Ho as Grid,
356
+ Pn as HoverCard,
357
+ io as Icon,
358
+ Un as IconCloud,
359
+ dr as InlineEdit,
360
+ de as Input,
361
+ vn as Label,
362
+ ut as Layout,
363
+ bt as Listbox,
364
+ Yn as Marquee,
365
+ Oo as MasonryGrid,
366
+ eo as Menu,
367
+ ro as MenuItem,
368
+ oo as MenuSectionLabel,
369
+ to as MenuSeparator,
370
+ $r as Menubar,
371
+ Xt as Meter,
372
+ mr as MultiSelect,
373
+ Lr as NavigationMenu,
4415
374
  Nr as NavigationMenuContent,
4416
- Sr as NavigationMenuIndicator,
4417
- gr as NavigationMenuItem,
4418
- hr as NavigationMenuLink,
4419
- Lr as NavigationMenuList,
4420
- Ie as NavigationMenuRoot,
4421
- wr as NavigationMenuTrigger,
4422
- Hr as NavigationMenuViewport,
4423
- er as NumberField,
4424
- Yn as OTPInput,
4425
- Fn as Pagination,
4426
- qr as Panel,
4427
- Mr as PanelGroup,
4428
- St as PasswordField,
4429
- Qe as PinInput,
4430
- Jr as PluginPanel,
4431
- Xi as Popover,
4432
- hn as Portal,
4433
- nn as Positioner,
4434
- An as Presence,
4435
- En as Progress,
4436
- qi as QuickActions,
4437
- on as RadioGroup,
4438
- Gi as Rating,
4439
- Or as RovingFocusGroup,
4440
- Sn as ScrollArea,
4441
- Gr as Section,
4442
- Zl as Select,
4443
- al as SelectionPopup,
4444
- Hn as Separator,
4445
- pl as Sidebar,
4446
- wi as Skeleton,
4447
- jn as Slider,
4448
- Rn as Slot,
4449
- ir as SplitButton,
4450
- Ur as Splitter,
4451
- yr as Stepper,
4452
- Fl as Switch,
4453
- zn as Table,
4454
- Ki as Tabs,
4455
- Rt as TagsInput,
4456
- Fi as Textarea,
4457
- mi as ThemeProvider,
4458
- Vt as TimeField,
4459
- fr as TimePicker,
4460
- Ut as Timeline,
4461
- Fr as Toast,
4462
- ni as ToastAPI,
4463
- ii as ToastProvider,
4464
- Dl as Toggle,
4465
- Bl as ToggleGroup,
4466
- xn as Toolbar,
4467
- wt as Tooltip,
375
+ Er as NavigationMenuIndicator,
376
+ Br as NavigationMenuItem,
377
+ Gr as NavigationMenuLink,
378
+ Hr as NavigationMenuList,
379
+ zr as NavigationMenuRoot,
380
+ Vr as NavigationMenuTrigger,
381
+ qr as NavigationMenuViewport,
382
+ pr as NumberField,
383
+ zn as NumberTicker,
384
+ ye as OTPInput,
385
+ Jn as Orbiter,
386
+ un as Pagination,
387
+ Xo as Panel,
388
+ Yo as PanelGroup,
389
+ Ae as PasswordField,
390
+ Te as PinInput,
391
+ Vo as PlacementGrid,
392
+ Fo as PluginPanel,
393
+ Xr as Popover,
394
+ Zt as Portal,
395
+ It as Positioner,
396
+ Qt as Presence,
397
+ jt as Progress,
398
+ hr as QuickActions,
399
+ Nt as RadioGroup,
400
+ kr as Rating,
401
+ Tt as RovingFocusGroup,
402
+ en as ScrollArea,
403
+ Ko as Section,
404
+ _n as Select,
405
+ Io as SelectionPopup,
406
+ on as Separator,
407
+ jo as Sidebar,
408
+ ti as Skeleton,
409
+ ri as Slider,
410
+ nn as Slot,
411
+ Gn as SpinningText,
412
+ lr as SplitButton,
413
+ Zo as Splitter,
414
+ Sr as Stepper,
415
+ Bt as Switch,
416
+ Oe as Table,
417
+ Zr as Tabs,
418
+ Pe as TagsInput,
419
+ Me as Textarea,
420
+ dt as ThemeProvider,
421
+ ir as TimeField,
422
+ Ar as TimePicker,
423
+ je as Timeline,
424
+ uo as Toast,
425
+ po as ToastAPI,
426
+ fo as ToastProvider,
427
+ Ht as Toggle,
428
+ Vt as ToggleGroup,
429
+ pn as Toolbar,
430
+ ee as Tooltip,
4468
431
  ur as TransferList,
4469
- yl as Tree,
4470
- $n as VisuallyHidden,
4471
- Ji as Wizard,
4472
- ri as toast,
4473
- el as toastAdvanced,
4474
- Ce as toastApi,
4475
- tl as toastLegacy,
4476
- rl as toastPro,
4477
- gi as useAlertDialog,
4478
- ti as useDialog,
4479
- oi as useFloating,
4480
- si as useForm,
4481
- bi as useTheme,
4482
- li as useToast
432
+ et as Tree,
433
+ mn as VisuallyHidden,
434
+ Mr as Wizard,
435
+ mo as toast,
436
+ mi as toastAdvanced,
437
+ so as toastApi,
438
+ si as toastLegacy,
439
+ li as toastPro,
440
+ Ln as useAlertDialog,
441
+ ai as useAnimatedNumber,
442
+ pi as useAnimatedNumberValue,
443
+ jr as useDialog,
444
+ J as useFloating,
445
+ j as useForm,
446
+ gt as useTheme,
447
+ lo as useToast
4483
448
  };