@editora/ui-react 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. package/README.md +35 -0
  2. package/dist/Accordion.cjs.js +1 -1
  3. package/dist/Accordion.esm.js +7 -7
  4. package/dist/Alert.cjs.js +1 -1
  5. package/dist/Alert.esm.js +1 -1
  6. package/dist/AlertDialog.cjs.js +1 -1
  7. package/dist/AlertDialog.esm.js +4 -4
  8. package/dist/AlertDialogProvider.cjs.js +1 -1
  9. package/dist/AlertDialogProvider.esm.js +6 -5
  10. package/dist/AnimatedBeam.cjs.js +1 -1
  11. package/dist/AnimatedBeam.esm.js +6 -6
  12. package/dist/AnimatedList.cjs.js +1 -1
  13. package/dist/AnimatedList.esm.js +9 -9
  14. package/dist/AnimatedNumber.cjs.js +1 -1
  15. package/dist/AnimatedNumber.esm.js +1 -1
  16. package/dist/AnimatedText.cjs.js +1 -1
  17. package/dist/AnimatedText.esm.js +18 -18
  18. package/dist/AppHeader.cjs.js +1 -1
  19. package/dist/AppHeader.esm.js +1 -1
  20. package/dist/Avatar.cjs.js +1 -1
  21. package/dist/Avatar.esm.js +1 -1
  22. package/dist/Badge.cjs.js +1 -1
  23. package/dist/Badge.esm.js +1 -1
  24. package/dist/BlockControls.cjs.js +1 -1
  25. package/dist/BlockControls.esm.js +4 -4
  26. package/dist/Breadcrumb.cjs.js +1 -1
  27. package/dist/Breadcrumb.esm.js +1 -1
  28. package/dist/Button.cjs.js +1 -1
  29. package/dist/Button.esm.js +68 -58
  30. package/dist/Calendar.cjs.js +1 -1
  31. package/dist/Calendar.esm.js +26 -26
  32. package/dist/Card.cjs.js +1 -1
  33. package/dist/Card.esm.js +1 -1
  34. package/dist/Carousel.cjs.js +1 -1
  35. package/dist/Carousel.esm.js +1 -1
  36. package/dist/Chart.cjs.js +1 -1
  37. package/dist/Chart.esm.js +66 -56
  38. package/dist/Checkbox.cjs.js +1 -1
  39. package/dist/Checkbox.esm.js +46 -41
  40. package/dist/Collapsible.cjs.js +1 -1
  41. package/dist/Collapsible.esm.js +1 -1
  42. package/dist/Collection.cjs.js +1 -1
  43. package/dist/Collection.esm.js +1 -1
  44. package/dist/ColorPicker.cjs.js +1 -1
  45. package/dist/ColorPicker.esm.js +13 -13
  46. package/dist/Combobox.cjs.js +1 -1
  47. package/dist/Combobox.esm.js +6 -6
  48. package/dist/Command.cjs.js +1 -1
  49. package/dist/Command.esm.js +7 -7
  50. package/dist/CommandPalette.cjs.js +1 -1
  51. package/dist/CommandPalette.esm.js +3 -3
  52. package/dist/ContextMenu.cjs.js +1 -1
  53. package/dist/ContextMenu.esm.js +1 -1
  54. package/dist/DataTable.cjs.js +1 -1
  55. package/dist/DataTable.esm.js +103 -95
  56. package/dist/DateField.cjs.js +1 -1
  57. package/dist/DateField.esm.js +11 -11
  58. package/dist/DatePicker.cjs.js +1 -1
  59. package/dist/DatePicker.esm.js +77 -75
  60. package/dist/DateRangePicker.cjs.js +1 -1
  61. package/dist/DateRangePicker.esm.js +75 -73
  62. package/dist/DateRangeTimePicker.cjs.js +1 -1
  63. package/dist/DateRangeTimePicker.esm.js +70 -68
  64. package/dist/DateTimePicker.cjs.js +1 -1
  65. package/dist/DateTimePicker.esm.js +59 -57
  66. package/dist/Dialog.cjs.js +1 -1
  67. package/dist/Dialog.esm.js +1 -1
  68. package/dist/DialogProvider.cjs.js +1 -1
  69. package/dist/DialogProvider.esm.js +9 -8
  70. package/dist/DismissableLayer.cjs.js +1 -1
  71. package/dist/DismissableLayer.esm.js +4 -4
  72. package/dist/Dock.cjs.js +1 -1
  73. package/dist/Dock.esm.js +1 -1
  74. package/dist/Drawer.cjs.js +1 -1
  75. package/dist/Drawer.esm.js +10 -10
  76. package/dist/Dropdown.cjs.js +1 -1
  77. package/dist/Dropdown.esm.js +99 -91
  78. package/dist/EmptyState.cjs.js +1 -1
  79. package/dist/EmptyState.esm.js +1 -1
  80. package/dist/FieldSemantics.cjs.js +1 -1
  81. package/dist/FieldSemantics.esm.js +1 -1
  82. package/dist/FileUpload.cjs.js +1 -1
  83. package/dist/FileUpload.esm.js +17 -17
  84. package/dist/FiltersBar.cjs.js +1 -1
  85. package/dist/FiltersBar.esm.js +137 -56
  86. package/dist/FloatingToolbar.cjs.js +1 -1
  87. package/dist/FloatingToolbar.esm.js +8 -8
  88. package/dist/FocusScope.cjs.js +1 -1
  89. package/dist/FocusScope.esm.js +1 -1
  90. package/dist/Form.cjs.js +1 -1
  91. package/dist/Form.esm.js +70 -67
  92. package/dist/Gantt.cjs.js +1 -1
  93. package/dist/Gantt.esm.js +1 -1
  94. package/dist/HoverCard.cjs.js +1 -1
  95. package/dist/HoverCard.esm.js +1 -1
  96. package/dist/IconCloud.cjs.js +1 -1
  97. package/dist/IconCloud.esm.js +13 -13
  98. package/dist/InlineEdit.cjs.js +1 -1
  99. package/dist/InlineEdit.esm.js +8 -8
  100. package/dist/Input.cjs.js +1 -1
  101. package/dist/Input.esm.js +90 -88
  102. package/dist/Layout.cjs.js +1 -1
  103. package/dist/Layout.esm.js +41 -40
  104. package/dist/Listbox.cjs.js +1 -1
  105. package/dist/Listbox.esm.js +1 -1
  106. package/dist/Marquee.cjs.js +1 -1
  107. package/dist/Marquee.esm.js +5 -5
  108. package/dist/MasonryGrid.cjs.js +1 -1
  109. package/dist/MasonryGrid.esm.js +1 -1
  110. package/dist/Menu.cjs.js +1 -1
  111. package/dist/Menu.esm.js +68 -61
  112. package/dist/Menubar.cjs.js +1 -1
  113. package/dist/Menubar.esm.js +1 -1
  114. package/dist/Meter.cjs.js +1 -1
  115. package/dist/Meter.esm.js +1 -1
  116. package/dist/{MetricCard-i3JmiOrN.js → MetricCard-9OrOTLxa.js} +1 -1
  117. package/dist/{MetricCard-CFA3d-0R.mjs → MetricCard-CoVdFQKl.mjs} +1 -1
  118. package/dist/MetricCard.cjs.js +2 -1
  119. package/dist/MetricCard.esm.js +5 -3
  120. package/dist/MultiSelect.cjs.js +1 -1
  121. package/dist/MultiSelect.esm.js +15 -15
  122. package/dist/NavigationMenu.cjs.js +1 -1
  123. package/dist/NavigationMenu.esm.js +7 -7
  124. package/dist/NumberField.cjs.js +1 -1
  125. package/dist/NumberField.esm.js +1 -1
  126. package/dist/NumberTicker.cjs.js +1 -1
  127. package/dist/NumberTicker.esm.js +1 -1
  128. package/dist/Orbiter.cjs.js +1 -1
  129. package/dist/Orbiter.esm.js +8 -8
  130. package/dist/PageHeader.cjs.js +1 -1
  131. package/dist/PageHeader.esm.js +30 -25
  132. package/dist/Pagination.cjs.js +1 -1
  133. package/dist/Pagination.esm.js +10 -10
  134. package/dist/PanelGroup.cjs.js +1 -1
  135. package/dist/PanelGroup.esm.js +11 -11
  136. package/dist/PasswordField.cjs.js +1 -1
  137. package/dist/PasswordField.esm.js +1 -1
  138. package/dist/PinInput.cjs.js +1 -1
  139. package/dist/PinInput.esm.js +1 -1
  140. package/dist/PlacementGrid.cjs.js +1 -1
  141. package/dist/PlacementGrid.esm.js +1 -1
  142. package/dist/PluginPanel.cjs.js +1 -1
  143. package/dist/PluginPanel.esm.js +1 -1
  144. package/dist/Popover.cjs.js +1 -1
  145. package/dist/Popover.esm.js +14 -14
  146. package/dist/Portal.cjs.js +1 -1
  147. package/dist/Portal.esm.js +4 -4
  148. package/dist/Positioner.cjs.js +1 -1
  149. package/dist/Positioner.esm.js +1 -1
  150. package/dist/Presence.cjs.js +1 -1
  151. package/dist/Presence.esm.js +9 -9
  152. package/dist/Progress.cjs.js +1 -1
  153. package/dist/Progress.esm.js +1 -1
  154. package/dist/QuickActions.cjs.js +1 -1
  155. package/dist/QuickActions.esm.js +1 -1
  156. package/dist/Radio.cjs.js +1 -1
  157. package/dist/Radio.esm.js +1 -1
  158. package/dist/RadioGroup.cjs.js +1 -1
  159. package/dist/RadioGroup.esm.js +16 -16
  160. package/dist/Rating.cjs.js +1 -1
  161. package/dist/Rating.esm.js +15 -15
  162. package/dist/RovingFocusGroup.cjs.js +1 -1
  163. package/dist/RovingFocusGroup.esm.js +1 -1
  164. package/dist/ScrollArea.cjs.js +1 -1
  165. package/dist/ScrollArea.esm.js +1 -1
  166. package/dist/Select.cjs.js +1 -1
  167. package/dist/Select.esm.js +6 -6
  168. package/dist/SelectionPopup.cjs.js +1 -1
  169. package/dist/SelectionPopup.esm.js +3 -3
  170. package/dist/Sidebar.cjs.js +1 -1
  171. package/dist/Sidebar.esm.js +238 -204
  172. package/dist/Skeleton.cjs.js +1 -1
  173. package/dist/Skeleton.esm.js +1 -1
  174. package/dist/Slider.cjs.js +1 -1
  175. package/dist/Slider.esm.js +20 -20
  176. package/dist/Slot.cjs.js +1 -1
  177. package/dist/Slot.esm.js +1 -1
  178. package/dist/Sortable.cjs.js +1 -1
  179. package/dist/Sortable.esm.js +77 -76
  180. package/dist/SpinningText.cjs.js +1 -1
  181. package/dist/SpinningText.esm.js +9 -9
  182. package/dist/SplitButton.cjs.js +1 -1
  183. package/dist/SplitButton.esm.js +1 -1
  184. package/dist/Stat-BRr5viaP.js +1 -0
  185. package/dist/{Stat-B4EexF-I.mjs → Stat-BSqxyLe3.mjs} +24 -22
  186. package/dist/Stat.cjs.js +2 -1
  187. package/dist/Stat.esm.js +5 -3
  188. package/dist/Stepper.cjs.js +1 -1
  189. package/dist/Stepper.esm.js +21 -21
  190. package/dist/Switch.cjs.js +1 -1
  191. package/dist/Switch.esm.js +8 -8
  192. package/dist/Table.cjs.js +1 -1
  193. package/dist/Table.esm.js +5 -5
  194. package/dist/Tabs.cjs.js +1 -1
  195. package/dist/Tabs.esm.js +13 -13
  196. package/dist/TagsInput.cjs.js +1 -1
  197. package/dist/TagsInput.esm.js +1 -1
  198. package/dist/Textarea.cjs.js +1 -1
  199. package/dist/Textarea.esm.js +79 -75
  200. package/dist/ThemeProvider.cjs.js +1 -1
  201. package/dist/ThemeProvider.esm.js +46 -44
  202. package/dist/TimePicker.cjs.js +1 -1
  203. package/dist/TimePicker.esm.js +45 -43
  204. package/dist/Timeline.cjs.js +1 -1
  205. package/dist/Timeline.esm.js +1 -1
  206. package/dist/Toggle.cjs.js +1 -1
  207. package/dist/Toggle.esm.js +11 -11
  208. package/dist/ToggleGroup.cjs.js +1 -1
  209. package/dist/ToggleGroup.esm.js +1 -1
  210. package/dist/Toolbar.cjs.js +1 -1
  211. package/dist/Toolbar.esm.js +5 -5
  212. package/dist/Tooltip.cjs.js +1 -1
  213. package/dist/Tooltip.esm.js +6 -6
  214. package/dist/TransferList.cjs.js +1 -1
  215. package/dist/TransferList.esm.js +12 -12
  216. package/dist/Tree.cjs.js +1 -1
  217. package/dist/Tree.esm.js +9 -9
  218. package/dist/Wizard.cjs.js +1 -1
  219. package/dist/Wizard.esm.js +1 -1
  220. package/dist/_internals-D5N3IfhU.mjs +193 -0
  221. package/dist/_internals-eekVrW2b.js +1 -0
  222. package/dist/client.cjs.js +1 -1
  223. package/dist/client.esm.js +98 -96
  224. package/dist/components/Accordion.cjs.js +1 -1
  225. package/dist/components/Accordion.esm.js +1 -1
  226. package/dist/components/Alert.cjs.js +1 -1
  227. package/dist/components/Alert.esm.js +1 -1
  228. package/dist/components/AlertDialog.cjs.js +1 -1
  229. package/dist/components/AlertDialog.esm.js +1 -1
  230. package/dist/components/AlertDialogProvider.cjs.js +1 -1
  231. package/dist/components/AlertDialogProvider.d.ts +1 -0
  232. package/dist/components/AlertDialogProvider.d.ts.map +1 -1
  233. package/dist/components/AlertDialogProvider.esm.js +4 -3
  234. package/dist/components/AnimatedBeam.cjs.js +1 -1
  235. package/dist/components/AnimatedBeam.esm.js +1 -1
  236. package/dist/components/AnimatedList.cjs.js +1 -1
  237. package/dist/components/AnimatedList.esm.js +1 -1
  238. package/dist/components/AnimatedNumber.cjs.js +1 -1
  239. package/dist/components/AnimatedNumber.esm.js +1 -1
  240. package/dist/components/AnimatedText.cjs.js +1 -1
  241. package/dist/components/AnimatedText.esm.js +1 -1
  242. package/dist/components/AppHeader.cjs.js +1 -1
  243. package/dist/components/AppHeader.esm.js +1 -1
  244. package/dist/components/Avatar.cjs.js +1 -1
  245. package/dist/components/Avatar.esm.js +1 -1
  246. package/dist/components/Badge.cjs.js +1 -1
  247. package/dist/components/Badge.esm.js +1 -1
  248. package/dist/components/BlockControls.cjs.js +1 -1
  249. package/dist/components/BlockControls.esm.js +1 -1
  250. package/dist/components/Breadcrumb.cjs.js +1 -1
  251. package/dist/components/Breadcrumb.esm.js +1 -1
  252. package/dist/components/Button.cjs.js +1 -1
  253. package/dist/components/Button.d.ts +19 -0
  254. package/dist/components/Button.d.ts.map +1 -1
  255. package/dist/components/Button.esm.js +5 -4
  256. package/dist/components/Calendar.cjs.js +1 -1
  257. package/dist/components/Calendar.d.ts.map +1 -1
  258. package/dist/components/Calendar.esm.js +1 -1
  259. package/dist/components/Card.cjs.js +1 -1
  260. package/dist/components/Card.esm.js +1 -1
  261. package/dist/components/Carousel.cjs.js +1 -1
  262. package/dist/components/Carousel.esm.js +1 -1
  263. package/dist/components/Chart.cjs.js +1 -1
  264. package/dist/components/Chart.d.ts +15 -2
  265. package/dist/components/Chart.d.ts.map +1 -1
  266. package/dist/components/Chart.esm.js +1 -1
  267. package/dist/components/Checkbox.cjs.js +1 -1
  268. package/dist/components/Checkbox.d.ts +7 -0
  269. package/dist/components/Checkbox.d.ts.map +1 -1
  270. package/dist/components/Checkbox.esm.js +1 -1
  271. package/dist/components/Collapsible.cjs.js +1 -1
  272. package/dist/components/Collapsible.esm.js +1 -1
  273. package/dist/components/Collection.cjs.js +1 -1
  274. package/dist/components/Collection.esm.js +1 -1
  275. package/dist/components/ColorPicker.cjs.js +1 -1
  276. package/dist/components/ColorPicker.d.ts.map +1 -1
  277. package/dist/components/ColorPicker.esm.js +1 -1
  278. package/dist/components/Combobox.cjs.js +1 -1
  279. package/dist/components/Combobox.esm.js +1 -1
  280. package/dist/components/Command.cjs.js +1 -1
  281. package/dist/components/Command.esm.js +1 -1
  282. package/dist/components/CommandPalette.cjs.js +1 -1
  283. package/dist/components/CommandPalette.esm.js +1 -1
  284. package/dist/components/ContextMenu.cjs.js +1 -1
  285. package/dist/components/ContextMenu.esm.js +1 -1
  286. package/dist/components/DataTable.cjs.js +1 -1
  287. package/dist/components/DataTable.d.ts +40 -0
  288. package/dist/components/DataTable.d.ts.map +1 -1
  289. package/dist/components/DataTable.esm.js +4 -3
  290. package/dist/components/DateField.cjs.js +1 -1
  291. package/dist/components/DateField.d.ts.map +1 -1
  292. package/dist/components/DateField.esm.js +1 -1
  293. package/dist/components/DatePicker.cjs.js +1 -1
  294. package/dist/components/DatePicker.d.ts +4 -0
  295. package/dist/components/DatePicker.d.ts.map +1 -1
  296. package/dist/components/DatePicker.esm.js +1 -1
  297. package/dist/components/DateRangePicker.cjs.js +1 -1
  298. package/dist/components/DateRangePicker.d.ts +4 -0
  299. package/dist/components/DateRangePicker.d.ts.map +1 -1
  300. package/dist/components/DateRangePicker.esm.js +1 -1
  301. package/dist/components/DateRangeTimePicker.cjs.js +1 -1
  302. package/dist/components/DateRangeTimePicker.d.ts +4 -0
  303. package/dist/components/DateRangeTimePicker.d.ts.map +1 -1
  304. package/dist/components/DateRangeTimePicker.esm.js +1 -1
  305. package/dist/components/DateTimePicker.cjs.js +1 -1
  306. package/dist/components/DateTimePicker.d.ts +4 -0
  307. package/dist/components/DateTimePicker.d.ts.map +1 -1
  308. package/dist/components/DateTimePicker.esm.js +1 -1
  309. package/dist/components/Dialog.cjs.js +1 -1
  310. package/dist/components/Dialog.esm.js +1 -1
  311. package/dist/components/DialogProvider.cjs.js +1 -1
  312. package/dist/components/DialogProvider.d.ts +1 -0
  313. package/dist/components/DialogProvider.d.ts.map +1 -1
  314. package/dist/components/DialogProvider.esm.js +4 -3
  315. package/dist/components/DismissableLayer.cjs.js +1 -1
  316. package/dist/components/DismissableLayer.esm.js +1 -1
  317. package/dist/components/Dock.cjs.js +1 -1
  318. package/dist/components/Dock.esm.js +1 -1
  319. package/dist/components/Drawer.cjs.js +1 -1
  320. package/dist/components/Drawer.esm.js +1 -1
  321. package/dist/components/Dropdown.cjs.js +1 -1
  322. package/dist/components/Dropdown.d.ts +4 -0
  323. package/dist/components/Dropdown.d.ts.map +1 -1
  324. package/dist/components/Dropdown.esm.js +10 -9
  325. package/dist/components/EmptyState.cjs.js +1 -1
  326. package/dist/components/EmptyState.esm.js +1 -1
  327. package/dist/components/FieldSemantics.cjs.js +1 -1
  328. package/dist/components/FieldSemantics.esm.js +1 -1
  329. package/dist/components/FileUpload.cjs.js +1 -1
  330. package/dist/components/FileUpload.esm.js +1 -1
  331. package/dist/components/FiltersBar.cjs.js +1 -1
  332. package/dist/components/FiltersBar.d.ts +24 -0
  333. package/dist/components/FiltersBar.d.ts.map +1 -1
  334. package/dist/components/FiltersBar.esm.js +4 -3
  335. package/dist/components/FloatingToolbar.cjs.js +1 -1
  336. package/dist/components/FloatingToolbar.esm.js +1 -1
  337. package/dist/components/FocusScope.cjs.js +1 -1
  338. package/dist/components/FocusScope.esm.js +1 -1
  339. package/dist/components/Form.cjs.js +1 -1
  340. package/dist/components/Form.d.ts +7 -0
  341. package/dist/components/Form.d.ts.map +1 -1
  342. package/dist/components/Form.esm.js +1 -1
  343. package/dist/components/Gantt.cjs.js +1 -1
  344. package/dist/components/Gantt.esm.js +1 -1
  345. package/dist/components/HoverCard.cjs.js +1 -1
  346. package/dist/components/HoverCard.esm.js +1 -1
  347. package/dist/components/IconCloud.cjs.js +1 -1
  348. package/dist/components/IconCloud.esm.js +1 -1
  349. package/dist/components/InlineEdit.cjs.js +1 -1
  350. package/dist/components/InlineEdit.esm.js +1 -1
  351. package/dist/components/Input.cjs.js +1 -1
  352. package/dist/components/Input.d.ts +4 -0
  353. package/dist/components/Input.d.ts.map +1 -1
  354. package/dist/components/Input.esm.js +1 -1
  355. package/dist/components/Layout.cjs.js +1 -1
  356. package/dist/components/Layout.d.ts +4 -0
  357. package/dist/components/Layout.d.ts.map +1 -1
  358. package/dist/components/Layout.esm.js +1 -1
  359. package/dist/components/Listbox.cjs.js +1 -1
  360. package/dist/components/Listbox.esm.js +1 -1
  361. package/dist/components/Marquee.cjs.js +1 -1
  362. package/dist/components/Marquee.esm.js +1 -1
  363. package/dist/components/MasonryGrid.cjs.js +1 -1
  364. package/dist/components/MasonryGrid.esm.js +1 -1
  365. package/dist/components/Menu.cjs.js +1 -1
  366. package/dist/components/Menu.d.ts +2 -0
  367. package/dist/components/Menu.d.ts.map +1 -1
  368. package/dist/components/Menu.esm.js +6 -5
  369. package/dist/components/Menubar.cjs.js +1 -1
  370. package/dist/components/Menubar.esm.js +1 -1
  371. package/dist/components/Meter.cjs.js +1 -1
  372. package/dist/components/Meter.esm.js +1 -1
  373. package/dist/components/MetricCard.cjs.js +2 -1
  374. package/dist/components/MetricCard.d.ts.map +1 -1
  375. package/dist/components/MetricCard.esm.js +4 -2
  376. package/dist/components/MultiSelect.cjs.js +1 -1
  377. package/dist/components/MultiSelect.esm.js +1 -1
  378. package/dist/components/NavigationMenu.cjs.js +1 -1
  379. package/dist/components/NavigationMenu.esm.js +1 -1
  380. package/dist/components/NumberField.cjs.js +1 -1
  381. package/dist/components/NumberField.esm.js +1 -1
  382. package/dist/components/NumberTicker.cjs.js +1 -1
  383. package/dist/components/NumberTicker.esm.js +1 -1
  384. package/dist/components/Orbiter.cjs.js +1 -1
  385. package/dist/components/Orbiter.esm.js +1 -1
  386. package/dist/components/PageHeader.d.ts +10 -0
  387. package/dist/components/PageHeader.d.ts.map +1 -1
  388. package/dist/components/Pagination.cjs.js +1 -1
  389. package/dist/components/Pagination.esm.js +1 -1
  390. package/dist/components/PanelGroup.cjs.js +1 -1
  391. package/dist/components/PanelGroup.esm.js +1 -1
  392. package/dist/components/PasswordField.cjs.js +1 -1
  393. package/dist/components/PasswordField.esm.js +1 -1
  394. package/dist/components/PinInput.cjs.js +1 -1
  395. package/dist/components/PinInput.esm.js +1 -1
  396. package/dist/components/PlacementGrid.cjs.js +1 -1
  397. package/dist/components/PlacementGrid.esm.js +1 -1
  398. package/dist/components/PluginPanel.cjs.js +1 -1
  399. package/dist/components/PluginPanel.esm.js +1 -1
  400. package/dist/components/Popover.cjs.js +1 -1
  401. package/dist/components/Popover.esm.js +1 -1
  402. package/dist/components/Portal.cjs.js +1 -1
  403. package/dist/components/Portal.esm.js +1 -1
  404. package/dist/components/Positioner.cjs.js +1 -1
  405. package/dist/components/Positioner.esm.js +1 -1
  406. package/dist/components/Presence.cjs.js +1 -1
  407. package/dist/components/Presence.esm.js +1 -1
  408. package/dist/components/Progress.cjs.js +1 -1
  409. package/dist/components/Progress.esm.js +1 -1
  410. package/dist/components/QuickActions.cjs.js +1 -1
  411. package/dist/components/QuickActions.esm.js +1 -1
  412. package/dist/components/Radio.cjs.js +1 -1
  413. package/dist/components/Radio.esm.js +1 -1
  414. package/dist/components/RadioGroup.cjs.js +1 -1
  415. package/dist/components/RadioGroup.esm.js +1 -1
  416. package/dist/components/Rating.cjs.js +1 -1
  417. package/dist/components/Rating.esm.js +1 -1
  418. package/dist/components/RovingFocusGroup.cjs.js +1 -1
  419. package/dist/components/RovingFocusGroup.esm.js +1 -1
  420. package/dist/components/ScrollArea.cjs.js +1 -1
  421. package/dist/components/ScrollArea.esm.js +1 -1
  422. package/dist/components/Select.cjs.js +1 -1
  423. package/dist/components/Select.esm.js +1 -1
  424. package/dist/components/SelectionPopup.cjs.js +1 -1
  425. package/dist/components/SelectionPopup.esm.js +1 -1
  426. package/dist/components/Sidebar.cjs.js +1 -1
  427. package/dist/components/Sidebar.d.ts +61 -3
  428. package/dist/components/Sidebar.d.ts.map +1 -1
  429. package/dist/components/Sidebar.esm.js +12 -11
  430. package/dist/components/Skeleton.cjs.js +1 -1
  431. package/dist/components/Skeleton.esm.js +1 -1
  432. package/dist/components/Slider.cjs.js +1 -1
  433. package/dist/components/Slider.esm.js +1 -1
  434. package/dist/components/Slot.cjs.js +1 -1
  435. package/dist/components/Slot.esm.js +1 -1
  436. package/dist/components/Sortable.cjs.js +1 -1
  437. package/dist/components/Sortable.d.ts +4 -0
  438. package/dist/components/Sortable.d.ts.map +1 -1
  439. package/dist/components/Sortable.esm.js +1 -1
  440. package/dist/components/SpinningText.cjs.js +1 -1
  441. package/dist/components/SpinningText.esm.js +1 -1
  442. package/dist/components/SplitButton.cjs.js +1 -1
  443. package/dist/components/SplitButton.esm.js +1 -1
  444. package/dist/components/Stat.cjs.js +2 -1
  445. package/dist/components/Stat.d.ts.map +1 -1
  446. package/dist/components/Stat.esm.js +5 -3
  447. package/dist/components/Stepper.cjs.js +1 -1
  448. package/dist/components/Stepper.d.ts.map +1 -1
  449. package/dist/components/Stepper.esm.js +1 -1
  450. package/dist/components/Switch.cjs.js +1 -1
  451. package/dist/components/Switch.esm.js +1 -1
  452. package/dist/components/Table.cjs.js +1 -1
  453. package/dist/components/Table.esm.js +1 -1
  454. package/dist/components/Tabs.cjs.js +1 -1
  455. package/dist/components/Tabs.esm.js +1 -1
  456. package/dist/components/TagsInput.cjs.js +1 -1
  457. package/dist/components/TagsInput.esm.js +1 -1
  458. package/dist/components/Textarea.cjs.js +1 -1
  459. package/dist/components/Textarea.d.ts +8 -0
  460. package/dist/components/Textarea.d.ts.map +1 -1
  461. package/dist/components/Textarea.esm.js +1 -1
  462. package/dist/components/ThemeProvider.d.ts.map +1 -1
  463. package/dist/components/TimePicker.cjs.js +1 -1
  464. package/dist/components/TimePicker.d.ts +4 -0
  465. package/dist/components/TimePicker.d.ts.map +1 -1
  466. package/dist/components/TimePicker.esm.js +1 -1
  467. package/dist/components/Timeline.cjs.js +1 -1
  468. package/dist/components/Timeline.esm.js +1 -1
  469. package/dist/components/Toggle.cjs.js +1 -1
  470. package/dist/components/Toggle.esm.js +1 -1
  471. package/dist/components/ToggleGroup.cjs.js +1 -1
  472. package/dist/components/ToggleGroup.esm.js +1 -1
  473. package/dist/components/Toolbar.cjs.js +1 -1
  474. package/dist/components/Toolbar.esm.js +1 -1
  475. package/dist/components/Tooltip.cjs.js +1 -1
  476. package/dist/components/Tooltip.esm.js +1 -1
  477. package/dist/components/TransferList.cjs.js +1 -1
  478. package/dist/components/TransferList.esm.js +1 -1
  479. package/dist/components/Tree.cjs.js +1 -1
  480. package/dist/components/Tree.esm.js +1 -1
  481. package/dist/components/Wizard.cjs.js +1 -1
  482. package/dist/components/Wizard.esm.js +1 -1
  483. package/dist/components/_internals.d.ts +6 -0
  484. package/dist/components/_internals.d.ts.map +1 -1
  485. package/dist/components/server/Stat.d.ts +2 -0
  486. package/dist/components/server/Stat.d.ts.map +1 -1
  487. package/dist/index.cjs.js +1 -1
  488. package/dist/index.d.ts +2 -2
  489. package/dist/index.d.ts.map +1 -1
  490. package/dist/index.esm.js +365 -362
  491. package/dist/server.cjs.js +1 -1
  492. package/dist/server.esm.js +2 -2
  493. package/dist/ui-react.css +1 -1
  494. package/package.json +3 -3
  495. package/dist/Stat-Rd8sIuGb.js +0 -1
  496. package/dist/_internals-C-WgnnZr.js +0 -1
  497. package/dist/_internals-aIt-eE1f.mjs +0 -184
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
  import w, { useRef as H, useLayoutEffect as N, useEffect as U } from "react";
3
3
  import "@editora/ui-core/presence";
4
- import { k as j } from "./_internals-aIt-eE1f.mjs";
4
+ import { m as j } from "./_internals-D5N3IfhU.mjs";
5
5
  import { c as q } from "./_createElement-CpMszO2a.mjs";
6
6
  const I = typeof window < "u" ? N : U, z = w.forwardRef(function({
7
- present: d,
8
- headless: m,
7
+ present: a,
8
+ headless: d,
9
9
  mode: n,
10
10
  size: i,
11
11
  variant: s,
@@ -13,7 +13,7 @@ const I = typeof window < "u" ? N : U, z = w.forwardRef(function({
13
13
  lazy: c,
14
14
  enterDuration: o,
15
15
  exitDuration: f,
16
- delay: a,
16
+ delay: m,
17
17
  onBeforeEnter: v,
18
18
  onEnter: l,
19
19
  onAfterEnter: A,
@@ -21,10 +21,10 @@ const I = typeof window < "u" ? N : U, z = w.forwardRef(function({
21
21
  onExit: E,
22
22
  onAfterExit: L,
23
23
  children: P,
24
- ...k
25
- }, _) {
24
+ ..._
25
+ }, k) {
26
26
  const u = H(null);
27
- return w.useImperativeHandle(_, () => u.current), I(() => {
27
+ return w.useImperativeHandle(k, () => u.current), I(() => {
28
28
  const e = u.current;
29
29
  if (!e) return;
30
30
  const r = (t) => t.detail?.state || "hidden", y = (t) => v?.(r(t)), x = (t) => l?.(r(t)), h = (t) => A?.(r(t)), R = (t) => p?.(r(t)), S = (t) => E?.(r(t)), g = (t) => L?.(r(t));
@@ -33,8 +33,8 @@ const I = typeof window < "u" ? N : U, z = w.forwardRef(function({
33
33
  };
34
34
  }, [v, l, A, p, E, L]), I(() => {
35
35
  const e = u.current;
36
- e && (d ? e.setAttribute("present", "") : e.removeAttribute("present"), m ? e.setAttribute("headless", "") : e.removeAttribute("headless"), n && n !== "fade" ? e.setAttribute("mode", n) : e.removeAttribute("mode"), i && i !== "md" ? e.setAttribute("size", i) : e.removeAttribute("size"), s && s !== "default" ? e.setAttribute("variant", s) : e.removeAttribute("variant"), b ? e.setAttribute("keep-mounted", "") : e.removeAttribute("keep-mounted"), c ? e.setAttribute("lazy", "") : e.removeAttribute("lazy"), typeof o == "number" ? e.setAttribute("enter-duration", String(o)) : e.removeAttribute("enter-duration"), typeof f == "number" ? e.setAttribute("exit-duration", String(f)) : e.removeAttribute("exit-duration"), typeof a == "number" ? e.setAttribute("delay", String(a)) : e.removeAttribute("delay"), j(e));
37
- }, [d, m, n, i, s, b, c, o, f, a]), q("ui-presence", { ref: u, ...k }, P);
36
+ e && (a ? e.setAttribute("present", "") : e.removeAttribute("present"), d ? e.setAttribute("headless", "") : e.removeAttribute("headless"), n && n !== "fade" ? e.setAttribute("mode", n) : e.removeAttribute("mode"), i && i !== "md" ? e.setAttribute("size", i) : e.removeAttribute("size"), s && s !== "default" ? e.setAttribute("variant", s) : e.removeAttribute("variant"), b ? e.setAttribute("keep-mounted", "") : e.removeAttribute("keep-mounted"), c ? e.setAttribute("lazy", "") : e.removeAttribute("lazy"), typeof o == "number" ? e.setAttribute("enter-duration", String(o)) : e.removeAttribute("enter-duration"), typeof f == "number" ? e.setAttribute("exit-duration", String(f)) : e.removeAttribute("exit-duration"), typeof m == "number" ? e.setAttribute("delay", String(m)) : e.removeAttribute("delay"), j(e));
37
+ }, [a, d, n, i, s, b, c, o, f, m]), q("ui-presence", { ref: u, ..._ }, P);
38
38
  });
39
39
  z.displayName = "Presence";
40
40
  export {
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const k=require("react");require("@editora/ui-core/progress");const t=require("./_internals-C-WgnnZr.js"),w=require("./_createElement-CKM7ey-v.js"),C=e=>e&&e.__esModule?e:{default:e},f=C(k),_=f.default.forwardRef(function({value:a,buffer:b,max:y,min:d,indeterminate:p,striped:E,animated:m,showLabel:P,label:u,format:l,precision:A,size:s,variant:i,tone:c,shape:o,mode:g,onValueChange:q,onComplete:B,children:D,...H},M){const S=t.useForwardedHostRef(M),R=f.default.useCallback(n=>{const r=t.getCustomEventDetail(n);r&&q?.(r)},[q]),v=f.default.useCallback(n=>{const r=t.getCustomEventDetail(n);r&&B?.(r)},[B]);return t.useElementEventListeners(S,[{type:"change",listener:R},{type:"complete",listener:v}],[R,v]),t.useElementAttributes(S,n=>{t.syncStringAttribute(n,"value",a!=null?String(a):null),t.syncStringAttribute(n,"buffer",b!=null?String(b):null),t.syncStringAttribute(n,"max",y!=null?String(y):null),t.syncStringAttribute(n,"min",d!=null?String(d):null),t.syncBooleanAttribute(n,"indeterminate",p),t.syncBooleanAttribute(n,"striped",E),t.syncBooleanAttribute(n,"animated",m),t.syncBooleanAttribute(n,"show-label",P),t.syncStringAttribute(n,"label",u!=null&&u!==""?u:null),t.syncStringAttribute(n,"format",l!=null&&l!=="percent"?l:null),t.syncNumberAttribute(n,"precision",typeof A=="number"?A:void 0),t.syncStringAttribute(n,"size",s&&s!=="md"?s:null),t.syncStringAttribute(n,"variant",i&&i!=="default"?i:null),t.syncStringAttribute(n,"tone",c&&c!=="brand"?c:null),t.syncStringAttribute(n,"shape",o&&o!=="pill"?o:null),t.syncStringAttribute(n,"mode",g&&g!=="line"?g:null)},[a,b,y,d,p,E,m,P,u,l,A,s,i,c,o,g]),w.createUIElement("ui-progress",{ref:S,...H},D)});_.displayName="Progress";exports.Progress=_;exports.default=_;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const k=require("react");require("@editora/ui-core/progress");const t=require("./_internals-eekVrW2b.js"),w=require("./_createElement-CKM7ey-v.js"),C=e=>e&&e.__esModule?e:{default:e},f=C(k),_=f.default.forwardRef(function({value:a,buffer:b,max:y,min:d,indeterminate:p,striped:E,animated:m,showLabel:P,label:u,format:l,precision:A,size:s,variant:i,tone:c,shape:o,mode:g,onValueChange:q,onComplete:B,children:D,...H},M){const S=t.useForwardedHostRef(M),R=f.default.useCallback(n=>{const r=t.getCustomEventDetail(n);r&&q?.(r)},[q]),v=f.default.useCallback(n=>{const r=t.getCustomEventDetail(n);r&&B?.(r)},[B]);return t.useElementEventListeners(S,[{type:"change",listener:R},{type:"complete",listener:v}],[R,v]),t.useElementAttributes(S,n=>{t.syncStringAttribute(n,"value",a!=null?String(a):null),t.syncStringAttribute(n,"buffer",b!=null?String(b):null),t.syncStringAttribute(n,"max",y!=null?String(y):null),t.syncStringAttribute(n,"min",d!=null?String(d):null),t.syncBooleanAttribute(n,"indeterminate",p),t.syncBooleanAttribute(n,"striped",E),t.syncBooleanAttribute(n,"animated",m),t.syncBooleanAttribute(n,"show-label",P),t.syncStringAttribute(n,"label",u!=null&&u!==""?u:null),t.syncStringAttribute(n,"format",l!=null&&l!=="percent"?l:null),t.syncNumberAttribute(n,"precision",typeof A=="number"?A:void 0),t.syncStringAttribute(n,"size",s&&s!=="md"?s:null),t.syncStringAttribute(n,"variant",i&&i!=="default"?i:null),t.syncStringAttribute(n,"tone",c&&c!=="brand"?c:null),t.syncStringAttribute(n,"shape",o&&o!=="pill"?o:null),t.syncStringAttribute(n,"mode",g&&g!=="line"?g:null)},[a,b,y,d,p,E,m,P,u,l,A,s,i,c,o,g]),w.createUIElement("ui-progress",{ref:S,...H},D)});_.displayName="Progress";exports.Progress=_;exports.default=_;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import y from "react";
3
3
  import "@editora/ui-core/progress";
4
- import { u as D, g as N, a as F, b as I, s as n, c as a, d as U } from "./_internals-aIt-eE1f.mjs";
4
+ import { u as D, g as N, a as F, b as I, s as n, c as a, d as U } from "./_internals-D5N3IfhU.mjs";
5
5
  import { c as j } from "./_createElement-CpMszO2a.mjs";
6
6
  const q = y.forwardRef(function({
7
7
  value: d,
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const q=require("react");require("@editora/ui-core/quick-actions");const e=require("./_internals-C-WgnnZr.js"),v=require("./_createElement-CKM7ey-v.js"),B=o=>o&&o.__esModule?o:{default:o},s=B(q),m=s.default.forwardRef(function({open:c,mode:u,orientation:i,variant:l,floating:f,placement:r,collapsible:b,label:A,headless:d,onSelect:y,onOpenChange:g,onToggle:k,children:h,...C},R){const a=e.useForwardedHostRef(R),p=s.default.useCallback(t=>{const n=e.getCustomEventDetail(t);n&&y?.(n)},[y]),E=s.default.useCallback(t=>{const n=e.getCustomEventDetail(t)?.open;typeof n=="boolean"&&g?.(n)},[g]),_=s.default.useCallback(t=>{const n=e.getCustomEventDetail(t)?.open;typeof n=="boolean"&&k?.(n)},[k]);return e.useElementEventListeners(a,[{type:"select",listener:p},{type:"change",listener:E},{type:"toggle",listener:_}],[p,E,_],{hostOnly:!0}),e.useElementAttributes(a,t=>{typeof c=="boolean"?e.syncBooleanAttribute(t,"open",c):e.syncStringAttribute(t,"open",null),e.syncStringAttribute(t,"mode",u&&u!=="bar"?u:null),e.syncStringAttribute(t,"orientation",i&&i!=="horizontal"?i:null),e.syncStringAttribute(t,"variant",l&&l!=="default"?l:null),e.syncBooleanAttribute(t,"floating",f),e.syncStringAttribute(t,"placement",r&&r!=="bottom-right"?r:null),e.syncBooleanAttribute(t,"collapsible",b),e.syncStringAttribute(t,"label",A||null),e.syncBooleanAttribute(t,"headless",d)},[c,u,i,l,f,r,b,A,d]),v.createUIElement("ui-quick-actions",{ref:a,...C},h)});m.displayName="QuickActions";const Q=s.default.forwardRef(function({children:c,...u},i){return s.default.createElement("button",{ref:i,slot:"action",type:"button",...u},c)});Q.displayName="QuickActions.Action";const S=Object.assign(m,{Action:Q});exports.QuickActions=S;exports.default=S;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const q=require("react");require("@editora/ui-core/quick-actions");const e=require("./_internals-eekVrW2b.js"),v=require("./_createElement-CKM7ey-v.js"),B=o=>o&&o.__esModule?o:{default:o},s=B(q),m=s.default.forwardRef(function({open:c,mode:u,orientation:i,variant:l,floating:f,placement:r,collapsible:b,label:A,headless:d,onSelect:y,onOpenChange:g,onToggle:k,children:h,...C},R){const a=e.useForwardedHostRef(R),p=s.default.useCallback(t=>{const n=e.getCustomEventDetail(t);n&&y?.(n)},[y]),E=s.default.useCallback(t=>{const n=e.getCustomEventDetail(t)?.open;typeof n=="boolean"&&g?.(n)},[g]),_=s.default.useCallback(t=>{const n=e.getCustomEventDetail(t)?.open;typeof n=="boolean"&&k?.(n)},[k]);return e.useElementEventListeners(a,[{type:"select",listener:p},{type:"change",listener:E},{type:"toggle",listener:_}],[p,E,_],{hostOnly:!0}),e.useElementAttributes(a,t=>{typeof c=="boolean"?e.syncBooleanAttribute(t,"open",c):e.syncStringAttribute(t,"open",null),e.syncStringAttribute(t,"mode",u&&u!=="bar"?u:null),e.syncStringAttribute(t,"orientation",i&&i!=="horizontal"?i:null),e.syncStringAttribute(t,"variant",l&&l!=="default"?l:null),e.syncBooleanAttribute(t,"floating",f),e.syncStringAttribute(t,"placement",r&&r!=="bottom-right"?r:null),e.syncBooleanAttribute(t,"collapsible",b),e.syncStringAttribute(t,"label",A||null),e.syncBooleanAttribute(t,"headless",d)},[c,u,i,l,f,r,b,A,d]),v.createUIElement("ui-quick-actions",{ref:a,...C},h)});m.displayName="QuickActions";const Q=s.default.forwardRef(function({children:c,...u},i){return s.default.createElement("button",{ref:i,slot:"action",type:"button",...u},c)});Q.displayName="QuickActions.Action";const S=Object.assign(m,{Action:Q});exports.QuickActions=S;exports.default=S;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import c from "react";
3
3
  import "@editora/ui-core/quick-actions";
4
- import { u as _, g as f, a as j, b as q, c as l, s } from "./_internals-aIt-eE1f.mjs";
4
+ import { u as _, g as f, a as j, b as q, c as l, s } from "./_internals-D5N3IfhU.mjs";
5
5
  import { c as z } from "./_createElement-CpMszO2a.mjs";
6
6
  const E = c.forwardRef(function({
7
7
  open: i,
package/dist/Radio.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("react");require("@editora/ui-core/radio");const e=require("./_internals-C-WgnnZr.js"),k=require("./_createElement-CKM7ey-v.js");function q(r){if(r&&r.__esModule)return r;const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const o in r)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(i,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}return i.default=r,Object.freeze(i)}const c=q(h),g=c.forwardRef(function({checked:i,disabled:o,loading:a,invalid:s,required:l,headless:d,name:b,value:f,density:n,tone:u,onCheckedChange:p,onChange:A,onInput:R,children:S,...B},O){const v=e.useForwardedHostRef(O);c.useEffect(()=>{e.warnIfElementNotRegistered("ui-radio","Radio")},[]),e.useElementAttributes(v,t=>{e.syncBooleanAttribute(t,"checked",i),e.syncBooleanAttribute(t,"disabled",o),e.syncBooleanAttribute(t,"loading",a),e.syncBooleanAttribute(t,"invalid",s),e.syncBooleanAttribute(t,"required",l),e.syncBooleanAttribute(t,"headless",d),e.syncStringAttribute(t,"name",b||null),e.syncStringAttribute(t,"value",f||null),e.syncStringAttribute(t,"density",n&&n!=="default"?n:null),e.syncStringAttribute(t,"tone",u&&u!=="brand"?u:null)},[i,o,a,s,l,d,b,f,n,u]);const _=c.useCallback(t=>{const y=e.getCustomEventDetail(t)??{};R?.(t),typeof y.checked=="boolean"&&p?.(y.checked,y)},[p,R]),E=c.useCallback(t=>{A?.(t)},[A]);e.useElementEventListeners(v,[{type:"input",listener:_},{type:"change",listener:E}],[_,E]);const j={ref:v,...B,checked:i?"":void 0,disabled:o?"":void 0,loading:a?"":void 0,invalid:s?"":void 0,required:l?"":void 0,headless:d?"":void 0,name:b||void 0,value:f||void 0,density:n&&n!=="default"?n:void 0,tone:u&&u!=="brand"?u:void 0};return k.createUIElement("ui-radio",j,S)});g.displayName="Radio";exports.Radio=g;exports.default=g;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("react");require("@editora/ui-core/radio");const e=require("./_internals-eekVrW2b.js"),k=require("./_createElement-CKM7ey-v.js");function q(r){if(r&&r.__esModule)return r;const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const o in r)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(i,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}return i.default=r,Object.freeze(i)}const c=q(h),g=c.forwardRef(function({checked:i,disabled:o,loading:a,invalid:s,required:l,headless:d,name:b,value:f,density:n,tone:u,onCheckedChange:p,onChange:A,onInput:R,children:S,...B},O){const v=e.useForwardedHostRef(O);c.useEffect(()=>{e.warnIfElementNotRegistered("ui-radio","Radio")},[]),e.useElementAttributes(v,t=>{e.syncBooleanAttribute(t,"checked",i),e.syncBooleanAttribute(t,"disabled",o),e.syncBooleanAttribute(t,"loading",a),e.syncBooleanAttribute(t,"invalid",s),e.syncBooleanAttribute(t,"required",l),e.syncBooleanAttribute(t,"headless",d),e.syncStringAttribute(t,"name",b||null),e.syncStringAttribute(t,"value",f||null),e.syncStringAttribute(t,"density",n&&n!=="default"?n:null),e.syncStringAttribute(t,"tone",u&&u!=="brand"?u:null)},[i,o,a,s,l,d,b,f,n,u]);const _=c.useCallback(t=>{const y=e.getCustomEventDetail(t)??{};R?.(t),typeof y.checked=="boolean"&&p?.(y.checked,y)},[p,R]),E=c.useCallback(t=>{A?.(t)},[A]);e.useElementEventListeners(v,[{type:"input",listener:_},{type:"change",listener:E}],[_,E]);const j={ref:v,...B,checked:i?"":void 0,disabled:o?"":void 0,loading:a?"":void 0,invalid:s?"":void 0,required:l?"":void 0,headless:d?"":void 0,name:b||void 0,value:f||void 0,density:n&&n!=="default"?n:void 0,tone:u&&u!=="brand"?u:void 0};return k.createUIElement("ui-radio",j,S)});g.displayName="Radio";exports.Radio=g;exports.default=g;
package/dist/Radio.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import * as t from "react";
3
3
  import "@editora/ui-core/radio";
4
- import { u as I, w as N, b as x, c as s, s as r, g as B, a as C } from "./_internals-aIt-eE1f.mjs";
4
+ import { u as I, w as N, b as x, c as s, s as r, g as B, a as C } from "./_internals-D5N3IfhU.mjs";
5
5
  import { c as D } from "./_createElement-CpMszO2a.mjs";
6
6
  const F = t.forwardRef(function({
7
7
  checked: d,
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const S=require("react");require("@editora/ui-core/radio-group");const t=require("./_internals-C-WgnnZr.js"),E=require("./_createElement-CKM7ey-v.js"),h=n=>n&&n.__esModule?n:{default:n},m=h(S),d=m.default.forwardRef(function({value:u,disabled:b,required:f,name:g,orientation:r,variant:l,size:i,tone:s,options:c,onValueChange:a,children:p,...y},R){const o=t.useForwardedHostRef(R),A=m.default.useCallback(e=>{const _=t.getCustomEventDetail(e);_&&a?.(_)},[a]);return t.useElementEventListeners(o,[{type:"change",listener:A}],[A]),t.useElementAttributes(o,e=>{t.syncStringAttribute(e,"value",u??null),t.syncBooleanAttribute(e,"disabled",b),t.syncBooleanAttribute(e,"required",f),t.syncStringAttribute(e,"name",g||null),t.syncStringAttribute(e,"orientation",r&&r!=="vertical"?r:null),t.syncStringAttribute(e,"variant",l&&l!=="default"?l:null),t.syncStringAttribute(e,"size",i&&i!=="md"?i:null),t.syncStringAttribute(e,"tone",s&&s!=="brand"?s:null),t.syncJsonAttribute(e,"options",c?.length?c:null)},[u,b,f,g,r,l,i,s,c]),t.useControlledAttribute(o,{attribute:"value",value:t.whenHandled([a,y.onChange],u??void 0),events:["change"]}),E.createUIElement("ui-radio-group",{ref:o,...y},p)});d.displayName="RadioGroup";exports.RadioGroup=d;exports.default=d;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const S=require("react");require("@editora/ui-core/radio-group");const t=require("./_internals-eekVrW2b.js"),E=require("./_createElement-CKM7ey-v.js"),h=n=>n&&n.__esModule?n:{default:n},m=h(S),d=m.default.forwardRef(function({value:u,disabled:b,required:f,name:g,orientation:r,variant:l,size:i,tone:s,options:c,onValueChange:a,children:p,...y},R){const o=t.useForwardedHostRef(R),A=m.default.useCallback(e=>{const _=t.getCustomEventDetail(e);_&&a?.(_)},[a]);return t.useElementEventListeners(o,[{type:"change",listener:A}],[A]),t.useElementAttributes(o,e=>{t.syncStringAttribute(e,"value",u??null),t.syncBooleanAttribute(e,"disabled",b),t.syncBooleanAttribute(e,"required",f),t.syncStringAttribute(e,"name",g||null),t.syncStringAttribute(e,"orientation",r&&r!=="vertical"?r:null),t.syncStringAttribute(e,"variant",l&&l!=="default"?l:null),t.syncStringAttribute(e,"size",i&&i!=="md"?i:null),t.syncStringAttribute(e,"tone",s&&s!=="brand"?s:null),t.syncJsonAttribute(e,"options",c?.length?c:null)},[u,b,f,g,r,l,i,s,c]),t.useControlledAttribute(o,{attribute:"value",value:t.whenHandled([a,y.onChange],u??void 0),events:["change"]}),E.createUIElement("ui-radio-group",{ref:o,...y},p)});d.displayName="RadioGroup";exports.RadioGroup=d;exports.default=d;
@@ -1,32 +1,32 @@
1
1
  'use client';
2
2
  import g from "react";
3
3
  import "@editora/ui-core/radio-group";
4
- import { u as E, g as h, a as w, b as G, s as e, c as R, f as v, i as C, j as H } from "./_internals-aIt-eE1f.mjs";
5
- import { c as _ } from "./_createElement-CpMszO2a.mjs";
6
- const j = g.forwardRef(function({
4
+ import { u as A, g as E, a as w, b as G, s as e, c as R, h as k, j as v, k as C } from "./_internals-D5N3IfhU.mjs";
5
+ import { c as H } from "./_createElement-CpMszO2a.mjs";
6
+ const _ = g.forwardRef(function({
7
7
  value: r,
8
- disabled: i,
9
- required: c,
10
- name: f,
8
+ disabled: c,
9
+ required: i,
10
+ name: m,
11
11
  orientation: s,
12
12
  variant: u,
13
13
  size: a,
14
14
  tone: n,
15
15
  options: o,
16
16
  onValueChange: d,
17
- children: y,
18
- ...m
19
- }, A) {
20
- const l = E(A), p = g.useCallback((t) => {
21
- const b = h(t);
17
+ children: h,
18
+ ...f
19
+ }, y) {
20
+ const l = A(y), p = g.useCallback((t) => {
21
+ const b = E(t);
22
22
  b && d?.(b);
23
23
  }, [d]);
24
24
  return w(l, [{ type: "change", listener: p }], [p]), G(l, (t) => {
25
- e(t, "value", r ?? null), R(t, "disabled", i), R(t, "required", c), e(t, "name", f || null), e(t, "orientation", s && s !== "vertical" ? s : null), e(t, "variant", u && u !== "default" ? u : null), e(t, "size", a && a !== "md" ? a : null), e(t, "tone", n && n !== "brand" ? n : null), v(t, "options", o?.length ? o : null);
26
- }, [r, i, c, f, s, u, a, n, o]), C(l, { attribute: "value", value: H([d, m.onChange], r ?? void 0), events: ["change"] }), _("ui-radio-group", { ref: l, ...m }, y);
25
+ e(t, "value", r ?? null), R(t, "disabled", c), R(t, "required", i), e(t, "name", m || null), e(t, "orientation", s && s !== "vertical" ? s : null), e(t, "variant", u && u !== "default" ? u : null), e(t, "size", a && a !== "md" ? a : null), e(t, "tone", n && n !== "brand" ? n : null), k(t, "options", o?.length ? o : null);
26
+ }, [r, c, i, m, s, u, a, n, o]), v(l, { attribute: "value", value: C([d, f.onChange], r ?? void 0), events: ["change"] }), H("ui-radio-group", { ref: l, ...f }, h);
27
27
  });
28
- j.displayName = "RadioGroup";
28
+ _.displayName = "RadioGroup";
29
29
  export {
30
- j as RadioGroup,
31
- j as default
30
+ _ as RadioGroup,
31
+ _ as default
32
32
  };
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react");require("@editora/ui-core/rating");const F=require("./_internals-C-WgnnZr.js"),G=require("./_createElement-CKM7ey-v.js"),J=s=>s&&s.__esModule?s:{default:s},K=J(o),T=typeof window<"u"?o.useLayoutEffect:o.useEffect,j=K.default.forwardRef(function({value:f,max:g,precision:v,disabled:c,readonly:d,variant:N,size:O,theme:U,tone:p,state:V,animation:y,shape:k,radius:u,ariaLabel:R,ariaLabelledBy:m,ariaDescribedBy:h,label:_,showValue:E,onChange:S,children:x,...C},D){const a=o.useRef(null),b=N??"default",P=O??"md",q=U??"light",A=V??"idle",M=k??"rounded";return o.useImperativeHandle(D,()=>a.current),T(()=>{const t=a.current;if(!t)return;const e=i=>{const n=i.detail;n&&S?.(n)};return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[S]),T(()=>{const t=a.current;if(!t)return;const e=(r,l)=>{const L=t.getAttribute(r);if(l==null){L!=null&&t.removeAttribute(r);return}L!==l&&t.setAttribute(r,l)},i=(r,l)=>{l===!0?e(r,""):e(r,null)},n=(r,l)=>{t[r]=l},w=f??0,I=g??5,z=v??1;n("value",w),n("max",I),n("precision",z),n("disabled",!!c),n("readonly",!!d),e("value",String(w)),e("max",String(I)),e("precision",String(z)),i("disabled",c),i("readonly",d),e("variant",b),e("size",P),e("theme",q),e("tone",p||null),e("state",A),e("animation",y||null),e("shape",M),e("aria-label",R||null),e("aria-labelledby",m||null),e("aria-describedby",h||null),e("label",_||null),i("show-value",E),u?(t.style.setProperty("--ui-rating-radius",u),e("radius",u)):(t.style.removeProperty("--ui-rating-radius"),e("radius",null)),F.flushElementRender(t)},[f,g,v,c,d,b,P,q,p,A,y,M,u,R,m,h,_,E]),G.createUIElement("ui-rating",{ref:a,...C},x)});j.displayName="Rating";const H=j;exports.Rating=H;exports.default=H;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react");require("@editora/ui-core/rating");const F=require("./_internals-eekVrW2b.js"),G=require("./_createElement-CKM7ey-v.js"),J=s=>s&&s.__esModule?s:{default:s},K=J(o),T=typeof window<"u"?o.useLayoutEffect:o.useEffect,j=K.default.forwardRef(function({value:f,max:g,precision:v,disabled:c,readonly:d,variant:N,size:O,theme:U,tone:p,state:V,animation:y,shape:k,radius:u,ariaLabel:R,ariaLabelledBy:m,ariaDescribedBy:h,label:_,showValue:E,onChange:S,children:x,...C},D){const a=o.useRef(null),b=N??"default",P=O??"md",q=U??"light",A=V??"idle",M=k??"rounded";return o.useImperativeHandle(D,()=>a.current),T(()=>{const t=a.current;if(!t)return;const e=i=>{const n=i.detail;n&&S?.(n)};return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[S]),T(()=>{const t=a.current;if(!t)return;const e=(r,l)=>{const L=t.getAttribute(r);if(l==null){L!=null&&t.removeAttribute(r);return}L!==l&&t.setAttribute(r,l)},i=(r,l)=>{l===!0?e(r,""):e(r,null)},n=(r,l)=>{t[r]=l},w=f??0,I=g??5,z=v??1;n("value",w),n("max",I),n("precision",z),n("disabled",!!c),n("readonly",!!d),e("value",String(w)),e("max",String(I)),e("precision",String(z)),i("disabled",c),i("readonly",d),e("variant",b),e("size",P),e("theme",q),e("tone",p||null),e("state",A),e("animation",y||null),e("shape",M),e("aria-label",R||null),e("aria-labelledby",m||null),e("aria-describedby",h||null),e("label",_||null),i("show-value",E),u?(t.style.setProperty("--ui-rating-radius",u),e("radius",u)):(t.style.removeProperty("--ui-rating-radius"),e("radius",null)),F.flushElementRender(t)},[f,g,v,c,d,b,P,q,p,A,y,M,u,R,m,h,_,E]),G.createUIElement("ui-rating",{ref:a,...C},x)});j.displayName="Rating";const H=j;exports.Rating=H;exports.default=H;
@@ -1,22 +1,22 @@
1
1
  'use client';
2
2
  import C, { useRef as F, useImperativeHandle as G, useLayoutEffect as J, useEffect as K } from "react";
3
3
  import "@editora/ui-core/rating";
4
- import { k as O } from "./_internals-aIt-eE1f.mjs";
4
+ import { m as O } from "./_internals-D5N3IfhU.mjs";
5
5
  import { c as Q } from "./_createElement-CpMszO2a.mjs";
6
- const k = typeof window < "u" ? J : K, x = C.forwardRef(
6
+ const x = typeof window < "u" ? J : K, H = C.forwardRef(
7
7
  function({
8
8
  value: c,
9
9
  max: f,
10
10
  precision: d,
11
11
  disabled: u,
12
12
  readonly: a,
13
- variant: H,
14
- size: M,
15
- theme: N,
13
+ variant: M,
14
+ size: N,
15
+ theme: T,
16
16
  tone: m,
17
- state: T,
17
+ state: U,
18
18
  animation: p,
19
- shape: U,
19
+ shape: V,
20
20
  radius: s,
21
21
  ariaLabel: g,
22
22
  ariaLabelledBy: v,
@@ -24,11 +24,11 @@ const k = typeof window < "u" ? J : K, x = C.forwardRef(
24
24
  label: h,
25
25
  showValue: R,
26
26
  onChange: E,
27
- children: V,
28
- ...j
27
+ children: j,
28
+ ...k
29
29
  }, q) {
30
- const i = F(null), S = H ?? "default", b = M ?? "md", A = N ?? "light", P = T ?? "idle", w = U ?? "rounded";
31
- return G(q, () => i.current), k(() => {
30
+ const i = F(null), S = M ?? "default", b = N ?? "md", A = T ?? "light", P = U ?? "idle", w = V ?? "rounded";
31
+ return G(q, () => i.current), x(() => {
32
32
  const t = i.current;
33
33
  if (!t) return;
34
34
  const e = (l) => {
@@ -38,7 +38,7 @@ const k = typeof window < "u" ? J : K, x = C.forwardRef(
38
38
  return t.addEventListener("change", e), () => {
39
39
  t.removeEventListener("change", e);
40
40
  };
41
- }, [E]), k(() => {
41
+ }, [E]), x(() => {
42
42
  const t = i.current;
43
43
  if (!t) return;
44
44
  const e = (r, o) => {
@@ -73,11 +73,11 @@ const k = typeof window < "u" ? J : K, x = C.forwardRef(
73
73
  y,
74
74
  h,
75
75
  R
76
- ]), Q("ui-rating", { ref: i, ...j }, V);
76
+ ]), Q("ui-rating", { ref: i, ...k }, j);
77
77
  }
78
78
  );
79
- x.displayName = "Rating";
80
- const B = x;
79
+ H.displayName = "Rating";
80
+ const B = H;
81
81
  export {
82
82
  B as Rating,
83
83
  B as default
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react");require("@editora/ui-core/roving-focus-group");const R=require("./_internals-C-WgnnZr.js"),_=require("./_createElement-CKM7ey-v.js"),E=t=>t&&t.__esModule?t:{default:t},A=E(r),v=typeof window<"u"?r.useLayoutEffect:r.useEffect,o=A.default.forwardRef(function({children:m,itemSelector:s,directItemSelector:n,activeAttribute:u,loop:l,container:c,onActiveItemChange:a,...p},b){const i=r.useRef(null);return r.useImperativeHandle(b,()=>i.current),v(()=>{const e=i.current;if(!e)return;const f=g=>{const d=g.detail;d&&a?.(d)};return e.addEventListener("active-item-change",f),()=>{e.removeEventListener("active-item-change",f)}},[a]),v(()=>{const e=i.current;e&&(s?e.setAttribute("item-selector",s):e.removeAttribute("item-selector"),n?e.setAttribute("direct-item-selector",n):e.removeAttribute("direct-item-selector"),u===null?e.setAttribute("active-attribute",""):u?e.setAttribute("active-attribute",u):e.removeAttribute("active-attribute"),l===!1?e.setAttribute("loop","false"):e.removeAttribute("loop"),e.container=c??null,R.flushElementRender(e))},[u,c,n,s,l]),_.createUIElement("ui-roving-focus-group",{ref:i,...p},m)});o.displayName="RovingFocusGroup";exports.RovingFocusGroup=o;exports.default=o;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react");require("@editora/ui-core/roving-focus-group");const R=require("./_internals-eekVrW2b.js"),_=require("./_createElement-CKM7ey-v.js"),E=t=>t&&t.__esModule?t:{default:t},A=E(r),v=typeof window<"u"?r.useLayoutEffect:r.useEffect,o=A.default.forwardRef(function({children:m,itemSelector:s,directItemSelector:n,activeAttribute:u,loop:l,container:c,onActiveItemChange:a,...p},b){const i=r.useRef(null);return r.useImperativeHandle(b,()=>i.current),v(()=>{const e=i.current;if(!e)return;const f=g=>{const d=g.detail;d&&a?.(d)};return e.addEventListener("active-item-change",f),()=>{e.removeEventListener("active-item-change",f)}},[a]),v(()=>{const e=i.current;e&&(s?e.setAttribute("item-selector",s):e.removeAttribute("item-selector"),n?e.setAttribute("direct-item-selector",n):e.removeAttribute("direct-item-selector"),u===null?e.setAttribute("active-attribute",""):u?e.setAttribute("active-attribute",u):e.removeAttribute("active-attribute"),l===!1?e.setAttribute("loop","false"):e.removeAttribute("loop"),e.container=c??null,R.flushElementRender(e))},[u,c,n,s,l]),_.createUIElement("ui-roving-focus-group",{ref:i,...p},m)});o.displayName="RovingFocusGroup";exports.RovingFocusGroup=o;exports.default=o;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import v, { useRef as b, useImperativeHandle as g, useLayoutEffect as E, useEffect as R } from "react";
3
3
  import "@editora/ui-core/roving-focus-group";
4
- import { k as A } from "./_internals-aIt-eE1f.mjs";
4
+ import { m as A } from "./_internals-D5N3IfhU.mjs";
5
5
  import { c as h } from "./_createElement-CpMszO2a.mjs";
6
6
  const c = typeof window < "u" ? E : R, y = v.forwardRef(function({ children: l, itemSelector: i, directItemSelector: o, activeAttribute: t, loop: s, container: u, onActiveItemChange: n, ...m }, d) {
7
7
  const r = b(null);
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react");require("@editora/ui-core/scroll-area");const g=require("./_internals-C-WgnnZr.js"),w=require("./_createElement-CKM7ey-v.js"),I=n=>n&&n.__esModule?n:{default:n},y=I(d),p=typeof window<"u"?d.useLayoutEffect:d.useEffect,v=y.default.forwardRef(function({orientation:c,size:o,variant:i,tone:f,autoHide:A,shadows:E,onScrollChange:m,onReachStart:_,onReachEnd:L,children:S,...h},q){const a=d.useRef(null);return y.default.useImperativeHandle(q,()=>a.current),p(()=>{const e=a.current;if(!e)return;const u=r=>{const l=r.detail;l&&m?.(l)},s=()=>_?.(),t=()=>L?.();return e.addEventListener("scroll",u),e.addEventListener("reach-start",s),e.addEventListener("reach-end",t),()=>{e.removeEventListener("scroll",u),e.removeEventListener("reach-start",s),e.removeEventListener("reach-end",t)}},[m,_,L]),p(()=>{const e=a.current;if(!e)return;const u=(t,r)=>{const l=e.getAttribute(t);if(r==null){l!=null&&e.removeAttribute(t);return}l!==r&&e.setAttribute(t,r)},s=(t,r)=>{const l=e.getAttribute(t);if(r==null){l!=null&&e.removeAttribute(t);return}const b=r?"true":"false";l!==b&&e.setAttribute(t,b)};u("orientation",c&&c!=="vertical"?c:null),u("size",o&&o!=="md"?o:null),u("variant",i&&i!=="default"?i:null),u("tone",f&&f!=="neutral"?f:null),s("auto-hide",A),s("shadows",E),g.flushElementRender(e)},[c,o,i,f,A,E]),w.createUIElement("ui-scroll-area",{ref:a,...h},S)});v.displayName="ScrollArea";exports.ScrollArea=v;exports.default=v;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react");require("@editora/ui-core/scroll-area");const g=require("./_internals-eekVrW2b.js"),w=require("./_createElement-CKM7ey-v.js"),I=n=>n&&n.__esModule?n:{default:n},y=I(d),p=typeof window<"u"?d.useLayoutEffect:d.useEffect,v=y.default.forwardRef(function({orientation:c,size:o,variant:i,tone:f,autoHide:A,shadows:E,onScrollChange:m,onReachStart:_,onReachEnd:L,children:S,...h},q){const a=d.useRef(null);return y.default.useImperativeHandle(q,()=>a.current),p(()=>{const e=a.current;if(!e)return;const u=r=>{const l=r.detail;l&&m?.(l)},s=()=>_?.(),t=()=>L?.();return e.addEventListener("scroll",u),e.addEventListener("reach-start",s),e.addEventListener("reach-end",t),()=>{e.removeEventListener("scroll",u),e.removeEventListener("reach-start",s),e.removeEventListener("reach-end",t)}},[m,_,L]),p(()=>{const e=a.current;if(!e)return;const u=(t,r)=>{const l=e.getAttribute(t);if(r==null){l!=null&&e.removeAttribute(t);return}l!==r&&e.setAttribute(t,r)},s=(t,r)=>{const l=e.getAttribute(t);if(r==null){l!=null&&e.removeAttribute(t);return}const b=r?"true":"false";l!==b&&e.setAttribute(t,b)};u("orientation",c&&c!=="vertical"?c:null),u("size",o&&o!=="md"?o:null),u("variant",i&&i!=="default"?i:null),u("tone",f&&f!=="neutral"?f:null),s("auto-hide",A),s("shadows",E),g.flushElementRender(e)},[c,o,i,f,A,E]),w.createUIElement("ui-scroll-area",{ref:a,...h},S)});v.displayName="ScrollArea";exports.ScrollArea=v;exports.default=v;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import p, { useRef as w, useLayoutEffect as I, useEffect as S } from "react";
3
3
  import "@editora/ui-core/scroll-area";
4
- import { k as R } from "./_internals-aIt-eE1f.mjs";
4
+ import { m as R } from "./_internals-D5N3IfhU.mjs";
5
5
  import { c as _ } from "./_createElement-CpMszO2a.mjs";
6
6
  const L = typeof window < "u" ? I : S, g = p.forwardRef(function({
7
7
  orientation: s,
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Y=require("react");require("@editora/ui-core/select");const e=require("./_internals-C-WgnnZr.js"),Z=require("./_createElement-CKM7ey-v.js"),$=u=>u&&u.__esModule?u:{default:u},r=$(Y),k=r.default.forwardRef(function({children:l,value:n,disabled:c,loading:N,required:B,invalid:D,headless:T,placeholder:p,name:y,label:A,description:m,error:E,size:i,variant:a,tone:s,density:o,shape:d,elevation:f,radius:R,optionBorder:q,showCheck:w,checkPlacement:G,validation:S,onChange:O,onInput:L,onValueChange:_,...W},X){const b=e.useForwardedHostRef(X),g=r.default.useCallback(t=>e.getCustomEventDetail(t)?.value??t.target?.value??"",[]),H=r.default.useCallback(t=>{L?.(g(t))},[L,g]),M=r.default.useCallback(t=>{const j=g(t);O?.(j),_?.(j)},[O,_,g]);return e.useElementEventListeners(b,[{type:"input",listener:H},{type:"change",listener:M}],[H,M]),e.useElementAttributes(b,t=>{e.syncStringAttribute(t,"placeholder",p||null),e.syncBooleanAttribute(t,"required",B),n==null?e.syncStringAttribute(t,"value",null):t.getAttribute("value")!==String(n)&&t.setAttribute("value",String(n)),e.syncBooleanAttribute(t,"disabled",c),e.syncBooleanAttribute(t,"loading",N),e.syncBooleanAttribute(t,"headless",T),e.syncBooleanAttribute(t,"invalid",D),e.syncStringAttribute(t,"name",y||null),e.syncStringAttribute(t,"label",A||null),e.syncStringAttribute(t,"description",m||null),e.syncStringAttribute(t,"error",E||null),e.syncStringAttribute(t,"size",i&&i!=="md"&&i!=="2"?i:null),e.syncStringAttribute(t,"variant",a&&a!=="classic"?a:null),e.syncStringAttribute(t,"tone",s&&s!=="default"?s:null),e.syncStringAttribute(t,"density",o&&o!=="default"?o:null),e.syncStringAttribute(t,"shape",d&&d!=="rounded"?d:null),e.syncStringAttribute(t,"elevation",f&&f!=="low"?f:null),e.syncStringAttribute(t,"radius",R?String(R):null),e.syncBooleanAttribute(t,"option-border",q),e.syncBooleanAttribute(t,"show-check",w),e.syncStringAttribute(t,"check-placement",w?G||"end":null),e.syncStringAttribute(t,"validation",S&&S!=="none"?S:null)},[n,c,N,B,D,T,p,y,A,m,E,i,a,s,o,d,f,R,q,w,G,S]),e.useControlledAttribute(b,{attribute:"value",value:e.whenHandled([O,L,_],n==null?void 0:String(n)),events:["change","input"]}),Z.createUIElement("ui-select",{ref:b,...W},l)});k.displayName="Select";const v=r.default.forwardRef(function(l,n){return r.default.createElement("option",{ref:n,...l})});v.displayName="Select.Option";const x=r.default.forwardRef(function(l,n){return r.default.createElement("optgroup",{ref:n,...l})});x.displayName="Select.OptGroup";const F=r.default.forwardRef(function({children:l,...n},c){return r.default.createElement("span",{ref:c,slot:"label",...n},l)});F.displayName="Select.Label";const U=r.default.forwardRef(function({children:l,...n},c){return r.default.createElement("span",{ref:c,slot:"description",...n},l)});U.displayName="Select.Description";const J=r.default.forwardRef(function({children:l,...n},c){return r.default.createElement("span",{ref:c,slot:"error",...n},l)});J.displayName="Select.Error";const K=r.default.forwardRef(function({children:l,...n},c){return r.default.createElement("span",{ref:c,slot:"leading",...n},l)});K.displayName="Select.Leading";const P=r.default.forwardRef(function({children:l,...n},c){return r.default.createElement("span",{ref:c,slot:"trailing",...n},l)});P.displayName="Select.Trailing";const Q=Object.assign(k,{Option:v,OptGroup:x,Label:F,Description:U,Error:J,Leading:K,Trailing:P});exports.Select=Q;exports.default=Q;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Y=require("react");require("@editora/ui-core/select");const e=require("./_internals-eekVrW2b.js"),Z=require("./_createElement-CKM7ey-v.js"),$=u=>u&&u.__esModule?u:{default:u},r=$(Y),k=r.default.forwardRef(function({children:l,value:n,disabled:c,loading:N,required:B,invalid:D,headless:T,placeholder:p,name:y,label:A,description:m,error:E,size:i,variant:a,tone:s,density:o,shape:d,elevation:f,radius:R,optionBorder:q,showCheck:w,checkPlacement:G,validation:S,onChange:O,onInput:L,onValueChange:_,...W},X){const b=e.useForwardedHostRef(X),g=r.default.useCallback(t=>e.getCustomEventDetail(t)?.value??t.target?.value??"",[]),H=r.default.useCallback(t=>{L?.(g(t))},[L,g]),M=r.default.useCallback(t=>{const j=g(t);O?.(j),_?.(j)},[O,_,g]);return e.useElementEventListeners(b,[{type:"input",listener:H},{type:"change",listener:M}],[H,M]),e.useElementAttributes(b,t=>{e.syncStringAttribute(t,"placeholder",p||null),e.syncBooleanAttribute(t,"required",B),n==null?e.syncStringAttribute(t,"value",null):t.getAttribute("value")!==String(n)&&t.setAttribute("value",String(n)),e.syncBooleanAttribute(t,"disabled",c),e.syncBooleanAttribute(t,"loading",N),e.syncBooleanAttribute(t,"headless",T),e.syncBooleanAttribute(t,"invalid",D),e.syncStringAttribute(t,"name",y||null),e.syncStringAttribute(t,"label",A||null),e.syncStringAttribute(t,"description",m||null),e.syncStringAttribute(t,"error",E||null),e.syncStringAttribute(t,"size",i&&i!=="md"&&i!=="2"?i:null),e.syncStringAttribute(t,"variant",a&&a!=="classic"?a:null),e.syncStringAttribute(t,"tone",s&&s!=="default"?s:null),e.syncStringAttribute(t,"density",o&&o!=="default"?o:null),e.syncStringAttribute(t,"shape",d&&d!=="rounded"?d:null),e.syncStringAttribute(t,"elevation",f&&f!=="low"?f:null),e.syncStringAttribute(t,"radius",R?String(R):null),e.syncBooleanAttribute(t,"option-border",q),e.syncBooleanAttribute(t,"show-check",w),e.syncStringAttribute(t,"check-placement",w?G||"end":null),e.syncStringAttribute(t,"validation",S&&S!=="none"?S:null)},[n,c,N,B,D,T,p,y,A,m,E,i,a,s,o,d,f,R,q,w,G,S]),e.useControlledAttribute(b,{attribute:"value",value:e.whenHandled([O,L,_],n==null?void 0:String(n)),events:["change","input"]}),Z.createUIElement("ui-select",{ref:b,...W},l)});k.displayName="Select";const v=r.default.forwardRef(function(l,n){return r.default.createElement("option",{ref:n,...l})});v.displayName="Select.Option";const x=r.default.forwardRef(function(l,n){return r.default.createElement("optgroup",{ref:n,...l})});x.displayName="Select.OptGroup";const F=r.default.forwardRef(function({children:l,...n},c){return r.default.createElement("span",{ref:c,slot:"label",...n},l)});F.displayName="Select.Label";const U=r.default.forwardRef(function({children:l,...n},c){return r.default.createElement("span",{ref:c,slot:"description",...n},l)});U.displayName="Select.Description";const J=r.default.forwardRef(function({children:l,...n},c){return r.default.createElement("span",{ref:c,slot:"error",...n},l)});J.displayName="Select.Error";const K=r.default.forwardRef(function({children:l,...n},c){return r.default.createElement("span",{ref:c,slot:"leading",...n},l)});K.displayName="Select.Leading";const P=r.default.forwardRef(function({children:l,...n},c){return r.default.createElement("span",{ref:c,slot:"trailing",...n},l)});P.displayName="Select.Trailing";const Q=Object.assign(k,{Option:v,OptGroup:x,Label:F,Description:U,Error:J,Leading:K,Trailing:P});exports.Select=Q;exports.default=Q;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import n from "react";
3
3
  import "@editora/ui-core/select";
4
- import { u as Z, g as $, a as C, b as I, s as l, c as o, i as P, j as V } from "./_internals-aIt-eE1f.mjs";
4
+ import { u as Z, g as $, a as C, b as I, s as l, c as o, j as P, k as V } from "./_internals-D5N3IfhU.mjs";
5
5
  import { c as z } from "./_createElement-CpMszO2a.mjs";
6
6
  const q = n.forwardRef(function({
7
7
  children: r,
@@ -10,7 +10,7 @@ const q = n.forwardRef(function({
10
10
  loading: G,
11
11
  required: H,
12
12
  invalid: T,
13
- headless: j,
13
+ headless: k,
14
14
  placeholder: b,
15
15
  name: E,
16
16
  label: R,
@@ -23,7 +23,7 @@ const q = n.forwardRef(function({
23
23
  shape: f,
24
24
  elevation: d,
25
25
  radius: L,
26
- optionBorder: k,
26
+ optionBorder: j,
27
27
  showCheck: O,
28
28
  checkPlacement: x,
29
29
  validation: S,
@@ -46,14 +46,14 @@ const q = n.forwardRef(function({
46
46
  ],
47
47
  [_, F]
48
48
  ), I(m, (t) => {
49
- l(t, "placeholder", b || null), o(t, "required", H), e == null ? l(t, "value", null) : t.getAttribute("value") !== String(e) && t.setAttribute("value", String(e)), o(t, "disabled", c), o(t, "loading", G), o(t, "headless", j), o(t, "invalid", T), l(t, "name", E || null), l(t, "label", R || null), l(t, "description", w || null), l(t, "error", y || null), l(t, "size", s && s !== "md" && s !== "2" ? s : null), l(t, "variant", u && u !== "classic" ? u : null), l(t, "tone", i && i !== "default" ? i : null), l(t, "density", p && p !== "default" ? p : null), l(t, "shape", f && f !== "rounded" ? f : null), l(t, "elevation", d && d !== "low" ? d : null), l(t, "radius", L ? String(L) : null), o(t, "option-border", k), o(t, "show-check", O), l(t, "check-placement", O ? x || "end" : null), l(t, "validation", S && S !== "none" ? S : null);
49
+ l(t, "placeholder", b || null), o(t, "required", H), e == null ? l(t, "value", null) : t.getAttribute("value") !== String(e) && t.setAttribute("value", String(e)), o(t, "disabled", c), o(t, "loading", G), o(t, "headless", k), o(t, "invalid", T), l(t, "name", E || null), l(t, "label", R || null), l(t, "description", w || null), l(t, "error", y || null), l(t, "size", s && s !== "md" && s !== "2" ? s : null), l(t, "variant", u && u !== "classic" ? u : null), l(t, "tone", i && i !== "default" ? i : null), l(t, "density", p && p !== "default" ? p : null), l(t, "shape", f && f !== "rounded" ? f : null), l(t, "elevation", d && d !== "low" ? d : null), l(t, "radius", L ? String(L) : null), o(t, "option-border", j), o(t, "show-check", O), l(t, "check-placement", O ? x || "end" : null), l(t, "validation", S && S !== "none" ? S : null);
50
50
  }, [
51
51
  e,
52
52
  c,
53
53
  G,
54
54
  H,
55
55
  T,
56
- j,
56
+ k,
57
57
  b,
58
58
  E,
59
59
  R,
@@ -66,7 +66,7 @@ const q = n.forwardRef(function({
66
66
  f,
67
67
  d,
68
68
  L,
69
- k,
69
+ j,
70
70
  O,
71
71
  x,
72
72
  S
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react");require("@editora/ui-core/selection-popup");const C=require("./_internals-C-WgnnZr.js"),M=require("./_createElement-CKM7ey-v.js"),j=o=>o&&o.__esModule?o:{default:o},S=j(s),L=typeof window<"u"?s.useLayoutEffect:s.useEffect,I=S.default.forwardRef(function(y,b){const{children:g,anchorId:i,open:c,placement:a,offset:f,strategy:p,arrow:R,variant:d,tone:v,radius:P,size:m,closeOnOutside:w,closeOnEscape:A,onOpen:O,onClose:h,onOpenChange:_,...H}=y,E=s.useRef(null);return S.default.useImperativeHandle(b,()=>E.current),s.useEffect(()=>{C.warnIfElementNotRegistered("ui-selection-popup","SelectionPopup")},[]),L(()=>{const e=E.current;if(!e)return;const t=()=>{O?.(),_?.(!0)},r=()=>{h?.(),_?.(!1)};return e.addEventListener("open",t),e.addEventListener("close",r),()=>{e.removeEventListener("open",t),e.removeEventListener("close",r)}},[O,h,_]),L(()=>{const e=E.current;if(!e)return;const t=(n,l)=>{const u=e.getAttribute(n);if(l==null){u!=null&&e.removeAttribute(n);return}u!==l&&e.setAttribute(n,l)},r=(n,l,u=void 0)=>{if(l==null){u!==void 0&&t(n,u?null:"false");return}l?t(n,""):t(n,"false")};t("anchor-id",i??null),t("placement",a&&a!=="top"?a:null),t("offset",typeof f=="number"&&Number.isFinite(f)?String(f):null),t("strategy",p&&p!=="fixed"?p:null),t("variant",d&&d!=="default"?d:null),t("tone",v&&v!=="brand"?v:null),t("radius",P?String(P):null),t("size",m&&m!=="md"?m:null),r("arrow",R),r("close-on-outside",w,!0),r("close-on-escape",A,!0),c&&i?e.openFor?.(i):c?e.setAttribute("open",""):c===!1?e.close?.():e.removeAttribute("open"),C.flushElementRender(e)},[c,i,a,f,p,R,d,v,P,m,w,A]),M.createUIElement("ui-selection-popup",{ref:E,...H},g)});I.displayName="SelectionPopup";const q=S.default.forwardRef(function({children:y,...b},g){return S.default.createElement("div",{ref:g,slot:"content",...b},y)});q.displayName="SelectionPopup.Content";const N=Object.assign(I,{Content:q});exports.SelectionPopup=N;exports.default=N;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react");require("@editora/ui-core/selection-popup");const C=require("./_internals-eekVrW2b.js"),M=require("./_createElement-CKM7ey-v.js"),j=o=>o&&o.__esModule?o:{default:o},S=j(s),L=typeof window<"u"?s.useLayoutEffect:s.useEffect,I=S.default.forwardRef(function(y,b){const{children:g,anchorId:i,open:c,placement:a,offset:f,strategy:p,arrow:R,variant:d,tone:v,radius:P,size:m,closeOnOutside:w,closeOnEscape:A,onOpen:O,onClose:h,onOpenChange:_,...H}=y,E=s.useRef(null);return S.default.useImperativeHandle(b,()=>E.current),s.useEffect(()=>{C.warnIfElementNotRegistered("ui-selection-popup","SelectionPopup")},[]),L(()=>{const e=E.current;if(!e)return;const t=()=>{O?.(),_?.(!0)},r=()=>{h?.(),_?.(!1)};return e.addEventListener("open",t),e.addEventListener("close",r),()=>{e.removeEventListener("open",t),e.removeEventListener("close",r)}},[O,h,_]),L(()=>{const e=E.current;if(!e)return;const t=(n,l)=>{const u=e.getAttribute(n);if(l==null){u!=null&&e.removeAttribute(n);return}u!==l&&e.setAttribute(n,l)},r=(n,l,u=void 0)=>{if(l==null){u!==void 0&&t(n,u?null:"false");return}l?t(n,""):t(n,"false")};t("anchor-id",i??null),t("placement",a&&a!=="top"?a:null),t("offset",typeof f=="number"&&Number.isFinite(f)?String(f):null),t("strategy",p&&p!=="fixed"?p:null),t("variant",d&&d!=="default"?d:null),t("tone",v&&v!=="brand"?v:null),t("radius",P?String(P):null),t("size",m&&m!=="md"?m:null),r("arrow",R),r("close-on-outside",w,!0),r("close-on-escape",A,!0),c&&i?e.openFor?.(i):c?e.setAttribute("open",""):c===!1?e.close?.():e.removeAttribute("open"),C.flushElementRender(e)},[c,i,a,f,p,R,d,v,P,m,w,A]),M.createUIElement("ui-selection-popup",{ref:E,...H},g)});I.displayName="SelectionPopup";const q=S.default.forwardRef(function({children:y,...b},g){return S.default.createElement("div",{ref:g,slot:"content",...b},y)});q.displayName="SelectionPopup.Content";const N=Object.assign(I,{Content:q});exports.SelectionPopup=N;exports.default=N;
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  import v, { useRef as z, useEffect as L, useLayoutEffect as F } from "react";
3
3
  import "@editora/ui-core/selection-popup";
4
- import { w as _, k as j } from "./_internals-aIt-eE1f.mjs";
5
- import { c as k } from "./_createElement-CpMszO2a.mjs";
4
+ import { w as _, m as j } from "./_internals-D5N3IfhU.mjs";
5
+ import { c as B } from "./_createElement-CpMszO2a.mjs";
6
6
  const C = typeof window < "u" ? F : L, O = v.forwardRef(function(E, y) {
7
7
  const {
8
8
  children: S,
@@ -67,7 +67,7 @@ const C = typeof window < "u" ? F : L, O = v.forwardRef(function(E, y) {
67
67
  d,
68
68
  P,
69
69
  A
70
- ]), k("ui-selection-popup", { ref: m, ...H }, S);
70
+ ]), B("ui-selection-popup", { ref: m, ...H }, S);
71
71
  });
72
72
  O.displayName = "SelectionPopup";
73
73
  const I = v.forwardRef(
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("react");require("@editora/ui-core/sidebar");const we=require("react-dom/server"),S=require("./_internals-C-WgnnZr.js"),Ie=require("./NavigationProvider.cjs.js"),He=require("./_createElement-CKM7ey-v.js"),Ne=e=>e&&e.__esModule?e:{default:e},l=Ne(f),he=typeof window<"u"?f.useLayoutEffect:f.useEffect,ke=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),M="SidebarGroup",R="SidebarItem";function F(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function xe(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function $e(e){const t=[];for(const[r,n]of Object.entries(e))n==null||n===""||t.push(`${xe(r)}:${String(n)}`);return t.join(";")}function Le(e){return e==="className"?"class":e==="htmlFor"?"for":e}function E(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number")return F(String(e));if(Array.isArray(e))return e.map(i=>E(i)).join("");if(!f.isValidElement(e))return"";if(e.type===l.default.Fragment)return E(e.props.children);if(typeof e.type=="function"){const i=e.type;if(!!i.prototype?.isReactComponent)return"";try{return E(i(e.props))}catch{return""}}if(typeof e.type!="string")return"";const t=e.type,r=e.props,n=[];let c;for(const[i,s]of Object.entries(r)){if(i==="children")continue;if(i==="dangerouslySetInnerHTML"){const d=s;typeof d?.__html=="string"&&(c=d.__html);continue}if(i==="ref"||i==="key"||i==="suppressHydrationWarning"||i==="suppressContentEditableWarning"||i.startsWith("on")||s==null||s===!1)continue;const h=Le(i);if(i==="style"&&typeof s=="object"){const d=$e(s);d&&n.push(` style="${F(d)}"`);continue}if(s===!0){n.push(` ${h}`);continue}(typeof s=="string"||typeof s=="number")&&n.push(` ${h}="${F(String(s))}"`)}const b=c??E(r.children);return!b&&ke.has(t)?`<${t}${n.join("")}>`:`<${t}${n.join("")}>${b}</${t}>`}function C(e,t){return f.isValidElement(e)&&e.type.__sidebarMarker===t}function Me(e){const t=[],r=[];return f.Children.forEach(e,n=>{if(C(n,M)||C(n,R)){t.push(n);return}n!=null&&n!==!1&&r.push(n)}),{submenuChildren:t,contentChildren:r}}function Re(e,t){if(typeof e=="string")return{contentChildren:t};if(e)return{iconHtml:G(e),contentChildren:t};const[r,...n]=t;return f.isValidElement(r)&&(typeof r.type!="string"||r.type==="svg")?{iconHtml:G(r),contentChildren:n}:{contentChildren:t}}function V(e,t=""){const r=[];return f.Children.forEach(e,n=>{if(C(n,M)){const c=n.props.title||t;r.push(...V(n.props.children,c));return}if(C(n,R)){const c=n.props.section||t,b=n.props.icon,{submenuChildren:i,contentChildren:s}=Me(n.props.children),{iconHtml:h,contentChildren:d}=Re(b,s);r.push({value:n.props.value,label:n.props.label,href:n.props.href,target:n.props.target,rel:n.props.rel,icon:typeof b=="string"?b:void 0,iconHtml:h,contentHtml:Ae(d),badge:n.props.badge,description:n.props.description,section:c,disabled:n.props.disabled,active:n.props.active,tone:n.props.tone,children:V(i,c)})}}),r}function ge(e){return e.map(t=>({...t,icon:typeof t.icon=="string"?t.icon:void 0,iconHtml:t.iconHtml||G(t.icon),contentHtml:t.contentHtml,children:t.children?ge(t.children):void 0}))}function v(e){return e==null||e===""?null:typeof e=="number"?`${e}px`:String(e)}function G(e){if(!e||typeof e=="string"||!f.isValidElement(e))return;const t=l.default.cloneElement(e,{width:e.props.width??18,height:e.props.height??18,"aria-hidden":!0,focusable:"false"});return E(t)||we.renderToStaticMarkup(t)||void 0}function Ae(e){return e.length&&E(l.default.createElement(l.default.Fragment,null,e))||void 0}function me(e,t=""){return V(e,t).map((r,n)=>{const c={slot:"item",key:`${r.section||"group"}:${r.value}:${n}`,"data-value":r.value,"data-label":r.label,"data-href":r.href||void 0,"data-target":r.target||void 0,"data-rel":r.rel||void 0,"data-section":r.section||void 0,"data-icon":r.icon||void 0,"data-icon-html":r.iconHtml||void 0,"data-content-html":r.contentHtml||void 0,"data-badge":r.badge||void 0,"data-description":r.description||void 0,"data-tone":r.tone&&r.tone!=="default"?r.tone:void 0};return r.disabled&&(c["data-disabled"]=""),r.active&&(c["data-active"]=""),r.children?.length&&(c["data-children"]=JSON.stringify(r.children)),l.default.createElement("div",c,r.label)})}const P=({children:e,...t})=>l.default.createElement("div",{slot:"header",...t},e),T=({children:e,...t})=>l.default.createElement("div",{slot:"search",...t},e),z=({icon:e,style:t,placeholder:r="Search…",...n})=>l.default.createElement("div",{slot:"search",style:{display:"grid",gridTemplateColumns:"16px minmax(0, 1fr)",alignItems:"center",gap:10,minHeight:44,padding:"0 14px",borderRadius:16,border:"1px solid color-mix(in srgb, var(--ui-color-border, #cbd5e1) 76%, transparent)",background:"color-mix(in srgb, var(--ui-color-primary, #2563eb) 4%, var(--color-panel-solid, var(--ui-color-surface, #ffffff)))",color:"var(--ui-color-muted, #526175)",boxSizing:"border-box",...t}},l.default.createElement("span",{"aria-hidden":"true",style:{display:"inline-grid",placeItems:"center",width:16,height:16,color:"currentColor"}},e||l.default.createElement("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.default.createElement("circle",{cx:"7",cy:"7",r:"4.75",stroke:"currentColor",strokeWidth:"1.5"}),l.default.createElement("path",{d:"M10.5 10.5L14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))),l.default.createElement("input",{type:"search",placeholder:r,style:{width:"100%",minWidth:0,border:"none",outline:"none",background:"transparent",color:"inherit",font:"inherit",lineHeight:"inherit"},...n})),B=({children:e,...t})=>l.default.createElement("div",{slot:"promo",...t},e),D=({children:e,...t})=>l.default.createElement("div",{slot:"footer",...t},e),A=({children:e})=>l.default.createElement(l.default.Fragment,null,e);A.__sidebarMarker=M;const O=()=>null;O.__sidebarMarker=R;const W=({children:e})=>l.default.createElement(l.default.Fragment,null,me(e)),ye=l.default.forwardRef(function({children:t,collapsed:r,collapsible:n,rail:c,resizable:b,position:i,value:s,items:h,searchQuery:d,variant:H,size:_,density:N,tone:k,radius:x,itemRadius:J,itemGap:U,itemPaddingX:K,itemPaddingY:Z,itemHeight:X,itemFontSize:Y,itemLineHeight:Q,sectionLabelTransform:$,elevation:L,showIcons:q,showBadges:j,headless:ee,width:te,minWidth:re,maxWidth:ne,collapsedWidth:oe,storageKey:ae,autoSave:ie,onSelect:le,onChange:se,onToggle:ue,onCollapseChange:ce,onWidthChange:de,onSearchChange:fe,onNavigate:ve,navigation:pe,...Ee},Ce){const w=f.useRef(null);f.useImperativeHandle(Ce,()=>w.current),he(()=>{const a=w.current;if(!a)return;const o=S.hostOnly(p=>{const u=p.detail;u&&le?.(u)}),g=S.hostOnly(p=>{const u=p.detail;u&&se?.(u)}),m=S.hostOnly(p=>{const u=p.detail?.collapsed;typeof u=="boolean"&&ue?.(u)}),y=S.hostOnly(p=>{const u=p.detail?.collapsed;typeof u=="boolean"&&ce?.(u)}),I=S.hostOnly(p=>{const u=p.detail;u&&de?.(u)}),be=S.hostOnly(p=>{const u=p.detail?.query;typeof u=="string"&&fe?.(u)});return a.addEventListener("select",o),a.addEventListener("change",g),a.addEventListener("toggle",m),a.addEventListener("collapse-change",y),a.addEventListener("width-change",I),a.addEventListener("search-change",be),()=>{a.removeEventListener("select",o),a.removeEventListener("change",g),a.removeEventListener("toggle",m),a.removeEventListener("collapse-change",y),a.removeEventListener("width-change",I),a.removeEventListener("search-change",be)}},[le,se,ue,ce,de,fe]),S.useNavigateBridge(w,ve,Ie.useNavigationContext()),he(()=>{const a=w.current;if(!a)return;const o=(m,y)=>{const I=a.getAttribute(m);if(y==null){I!=null&&a.removeAttribute(m);return}I!==y&&a.setAttribute(m,y)},g=(m,y)=>{y!=null&&(y?o(m,""):o(m,null))};if(g("collapsed",r),g("collapsible",n),g("rail",c),g("resizable",b),g("headless",ee),g("auto-save",ie),o("position",i&&i!=="left"?i:null),o("navigation",pe==="client"?"client":null),o("value",s!=null&&s!==""?String(s):null),o("search-query",typeof d=="string"&&d!==""?d:null),o("width",te||null),o("min-width",re||null),o("max-width",ne||null),o("collapsed-width",oe||null),o("storage-key",ae||null),h&&h.length)try{o("items",JSON.stringify(ge(h)))}catch{o("items",null)}else o("items",null);o("variant",H&&H!=="surface"?H:null),o("size",_&&_!=="md"&&_!=="2"?_:null),o("density",N&&N!=="default"?N:null),o("tone",k&&k!=="default"?k:null),o("radius",x==null||x===""?null:String(x)),o("item-radius",v(J)),o("item-gap",v(U)),o("item-padding-x",v(K)),o("item-padding-y",v(Z)),o("item-height",v(X)),o("item-font-size",v(Y)),o("item-line-height",v(Q)),o("section-label-transform",$&&$!=="none"?$:null),o("elevation",L&&L!=="low"?L:null),typeof q=="boolean"?o("show-icons",q?"true":"false"):o("show-icons",null),typeof j=="boolean"?o("show-badges",j?"true":"false"):o("show-badges",null),S.flushElementRender(a)},[r,n,c,b,ee,ie,i,s,te,re,ne,oe,ae,h,H,_,N,k,x,J,U,K,Z,X,Y,Q,$,d,L,q,j,pe]);const _e=f.Children.map(t,a=>C(a,M)||C(a,R)?me(a):a);return He.createUIElement("ui-sidebar",{ref:w,...Ee},_e)});ye.displayName="Sidebar";P.displayName="Sidebar.Header";T.displayName="Sidebar.Search";z.displayName="Sidebar.SearchInput";W.displayName="Sidebar.Content";A.displayName="Sidebar.Group";O.displayName="Sidebar.Item";B.displayName="Sidebar.Promo";D.displayName="Sidebar.Footer";const Se=Object.assign(ye,{Header:P,Search:T,SearchInput:z,Content:W,Group:A,Item:O,Promo:B,Footer:D});exports.Sidebar=Se;exports.SidebarContent=W;exports.SidebarFooter=D;exports.SidebarGroup=A;exports.SidebarHeader=P;exports.SidebarItem=O;exports.SidebarPromo=B;exports.SidebarSearch=T;exports.SidebarSearchInput=z;exports.default=Se;
2
+ "use strict";var Ve=Object.create;var He=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Te=Object.getOwnPropertyNames;var Ge=Object.getPrototypeOf,ze=Object.prototype.hasOwnProperty;var De=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of Te(t))!ze.call(e,l)&&l!==r&&He(e,l,{get:()=>t[l],enumerable:!(n=Pe(t,l))||n.enumerable});return e};var We=(e,t,r)=>(r=e!=null?Ve(Ge(e)):{},De(t||!e||!e.__esModule?He(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react");require("@editora/ui-core/sidebar");const S=require("./_internals-eekVrW2b.js"),Be=require("./NavigationProvider.cjs.js"),Je=require("./_createElement-CKM7ey-v.js"),Ue=e=>e&&e.__esModule?e:{default:e},o=Ue(u),Ne=typeof window<"u"?u.useLayoutEffect:u.useEffect,Ke=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),j="SidebarGroup",q="SidebarItem";function G(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Ze(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Xe(e){const t=[];for(const[r,n]of Object.entries(e))n==null||n===""||t.push(`${Ze(r)}:${String(n)}`);return t.join(";")}function Ye(e){return e==="className"?"class":e==="htmlFor"?"for":e}function E(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number")return G(String(e));if(Array.isArray(e))return e.map(c=>E(c)).join("");if(!u.isValidElement(e))return"";if(e.type===o.default.Fragment)return E(e.props.children);if(typeof e.type=="function"){const c=e.type;if(!!c.prototype?.isReactComponent)return"";try{return E(c(e.props))}catch{return""}}if(typeof e.type!="string")return"";const t=e.type,r=e.props,n=[];let l;for(const[c,d]of Object.entries(r)){if(c==="children")continue;if(c==="dangerouslySetInnerHTML"){const p=d;typeof p?.__html=="string"&&(l=p.__html);continue}if(c==="ref"||c==="key"||c==="suppressHydrationWarning"||c==="suppressContentEditableWarning"||c.startsWith("on")||d==null||d===!1)continue;const v=Ye(c);if(c==="style"&&typeof d=="object"){const p=Xe(d);p&&n.push(` style="${G(p)}"`);continue}if(d===!0){n.push(` ${v}`);continue}(typeof d=="string"||typeof d=="number")&&n.push(` ${v}="${G(String(d))}"`)}const h=l??E(r.children);return!h&&Ke.has(t)?`<${t}${n.join("")}>`:`<${t}${n.join("")}>${h}</${t}>`}function C(e,t){return u.isValidElement(e)&&e.type.__sidebarMarker===t}function Qe(e){const t=[],r=[];return u.Children.forEach(e,n=>{if(C(n,j)||C(n,q)){t.push(n);return}n!=null&&n!==!1&&r.push(n)}),{submenuChildren:t,contentChildren:r}}function et(e,t){if(typeof e=="string")return{contentChildren:t};if(e)return{iconHtml:B(e),contentChildren:t};const[r,...n]=t;return u.isValidElement(r)&&(typeof r.type!="string"||r.type==="svg")?{iconHtml:B(r),contentChildren:n}:{contentChildren:t}}function D(e,t=""){const r=[];return u.Children.forEach(e,n=>{if(C(n,j)){const l=n.props.title||t;r.push(...D(n.props.children,l));return}if(C(n,q)){const l=n.props.section||t,h=n.props.icon,{submenuChildren:c,contentChildren:d}=Qe(n.props.children),{iconHtml:v,contentChildren:p}=et(h,d);r.push({value:n.props.value,label:n.props.label,href:n.props.href,target:n.props.target,rel:n.props.rel,icon:typeof h=="string"?h:void 0,iconHtml:v,contentHtml:rt(p),badge:n.props.badge,description:n.props.description,section:l,disabled:n.props.disabled,active:n.props.active,tone:n.props.tone,children:D(c,l)})}}),r}function Le(e){return e.map(t=>({...t,icon:typeof t.icon=="string"?t.icon:void 0,iconHtml:t.iconHtml||B(t.icon),contentHtml:t.contentHtml,children:t.children?Le(t.children):void 0}))}function y(e){return e==null||e===""?null:typeof e=="number"?`${e}px`:String(e)}let I=null,z=!1;const W=new Set;function tt(){I||z||(z=!0,import("react-dom/server").then(e=>{I=e.renderToStaticMarkup,W.forEach(t=>t())}).catch(()=>{z=!1}))}function B(e){if(!e||typeof e=="string"||!u.isValidElement(e))return;const t=o.default.cloneElement(e,{width:e.props.width??18,height:e.props.height??18,"aria-hidden":!0,focusable:"false"});let r=E(t);return r||(I?r=I(t):tt()),r||void 0}function rt(e){return e.length&&E(o.default.createElement(o.default.Fragment,null,e))||void 0}function ke(e,t=""){return D(e,t).map((r,n)=>{const l={slot:"item",key:`${r.section||"group"}:${r.value}:${n}`,"data-value":r.value,"data-label":r.label,"data-href":r.href||void 0,"data-target":r.target||void 0,"data-rel":r.rel||void 0,"data-section":r.section||void 0,"data-icon":r.icon||void 0,"data-icon-html":r.iconHtml||void 0,"data-content-html":r.contentHtml||void 0,"data-badge":r.badge||void 0,"data-description":r.description||void 0,"data-tone":r.tone&&r.tone!=="default"?r.tone:void 0};return r.disabled&&(l["data-disabled"]=""),r.active&&(l["data-active"]=""),r.children?.length&&(l["data-children"]=JSON.stringify(r.children)),o.default.createElement("div",l,r.label)})}const J=({children:e,...t})=>o.default.createElement("div",{slot:"header",...t},e),U=({children:e,...t})=>o.default.createElement("div",{slot:"search",...t},e),K=({icon:e,style:t,placeholder:r="Search…",...n})=>o.default.createElement("div",{slot:"search",style:{display:"grid",gridTemplateColumns:"16px minmax(0, 1fr)",alignItems:"center",gap:10,minHeight:44,padding:"0 14px",borderRadius:16,border:"1px solid color-mix(in srgb, var(--ui-color-border, #cbd5e1) 76%, transparent)",background:"color-mix(in srgb, var(--ui-color-primary, #2563eb) 4%, var(--color-panel-solid, var(--ui-color-surface, #ffffff)))",color:"var(--ui-color-muted, #526175)",boxSizing:"border-box",...t}},o.default.createElement("span",{"aria-hidden":"true",style:{display:"inline-grid",placeItems:"center",width:16,height:16,color:"currentColor"}},e||o.default.createElement("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.default.createElement("circle",{cx:"7",cy:"7",r:"4.75",stroke:"currentColor",strokeWidth:"1.5"}),o.default.createElement("path",{d:"M10.5 10.5L14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))),o.default.createElement("input",{type:"search",placeholder:r,style:{width:"100%",minWidth:0,border:"none",outline:"none",background:"transparent",color:"inherit",font:"inherit",lineHeight:"inherit"},...n})),Z=({children:e,...t})=>o.default.createElement("div",{slot:"promo",...t},e),X=({children:e,...t})=>o.default.createElement("div",{slot:"footer",...t},e),Y=({children:e,...t})=>o.default.createElement("div",{slot:"rail-start",...t},e),Q=({children:e,...t})=>o.default.createElement("div",{slot:"rail-end",...t},e),F=({children:e})=>o.default.createElement(o.default.Fragment,null,e);F.__sidebarMarker=j;const V=()=>null;V.__sidebarMarker=q;const ee=({children:e})=>o.default.createElement(o.default.Fragment,null,ke(e)),xe=o.default.forwardRef(function({children:t,collapsed:r,defaultCollapsed:n,collapsible:l,collapseButton:h,rail:c,layout:d,resizable:v,position:p,value:H,items:N,searchQuery:L,variant:k,size:R,density:x,tone:$,radius:M,itemRadius:te,itemGap:re,rowGap:ne,itemPaddingX:ae,itemPaddingY:ie,itemHeight:oe,itemFontSize:le,itemLineHeight:se,sectionLabelTransform:O,elevation:A,showIcons:P,showBadges:T,headless:ce,width:de,minWidth:ue,maxWidth:fe,collapsedWidth:pe,storageKey:be,autoSave:he,onSelect:ge,onChange:me,onToggle:Se,onCollapseChange:ye,onWidthChange:ve,onSearchChange:Ee,onAreaChange:Ce,onNavigate:Me,navigation:Re,...Oe},Ae){const[je,we]=o.default.useReducer(i=>i+1,0);u.useEffect(()=>{if(!I)return W.add(we),()=>{W.delete(we)}},[]);const w=u.useRef(null);u.useImperativeHandle(Ae,()=>w.current),Ne(()=>{const i=w.current;if(!i)return;const a=S.hostOnly(f=>{const s=f.detail;s&&ge?.(s)}),b=S.hostOnly(f=>{const s=f.detail;s&&me?.(s)}),g=S.hostOnly(f=>{const s=f.detail?.collapsed;typeof s=="boolean"&&Se?.(s)}),m=S.hostOnly(f=>{const s=f.detail?.collapsed;typeof s=="boolean"&&ye?.(s)}),_=S.hostOnly(f=>{const s=f.detail;s&&ve?.(s)}),_e=S.hostOnly(f=>{const s=f.detail?.query;typeof s=="string"&&Ee?.(s)}),Ie=S.hostOnly(f=>{const s=f.detail?.value;typeof s=="string"&&Ce?.(s)});return i.addEventListener("select",a),i.addEventListener("change",b),i.addEventListener("toggle",g),i.addEventListener("collapse-change",m),i.addEventListener("width-change",_),i.addEventListener("search-change",_e),i.addEventListener("area-change",Ie),()=>{i.removeEventListener("select",a),i.removeEventListener("change",b),i.removeEventListener("toggle",g),i.removeEventListener("collapse-change",m),i.removeEventListener("width-change",_),i.removeEventListener("search-change",_e),i.removeEventListener("area-change",Ie)}},[ge,me,Se,ye,ve,Ee,Ce]),S.useNavigateBridge(w,Me,Be.useNavigationContext()),Ne(()=>{const i=w.current;if(!i)return;const a=(g,m)=>{const _=i.getAttribute(g);if(m==null){_!=null&&i.removeAttribute(g);return}_!==m&&i.setAttribute(g,m)},b=(g,m)=>{m!=null&&(m?a(g,""):a(g,null))};if(b("collapsed",r),b("collapsible",l),b("rail",c),b("resizable",v),b("headless",ce),b("auto-save",he),a("position",p&&p!=="left"?p:null),a("navigation",Re==="client"?"client":null),a("value",H!=null&&H!==""?String(H):null),a("search-query",typeof L=="string"&&L!==""?L:null),a("width",de||null),a("min-width",ue||null),a("max-width",fe||null),a("collapsed-width",pe||null),a("storage-key",be||null),N&&N.length)try{a("items",JSON.stringify(Le(N)))}catch{a("items",null)}else a("items",null);a("variant",k&&k!=="surface"?k:null),a("layout",d&&d!=="list"?d:null),b("collapse-button",h),a("size",R&&R!=="md"&&R!=="2"?R:null),a("density",x&&x!=="default"?x:null),a("tone",$&&$!=="default"?$:null),a("radius",M==null||M===""?null:String(M)),a("item-radius",y(te)),a("item-gap",y(re)),a("row-gap",y(ne)),a("item-padding-x",y(ae)),a("item-padding-y",y(ie)),a("item-height",y(oe)),a("item-font-size",y(le)),a("item-line-height",y(se)),a("section-label-transform",O&&O!=="none"?O:null),a("elevation",A&&A!=="low"?A:null),typeof P=="boolean"?a("show-icons",P?"true":"false"):a("show-icons",null),typeof T=="boolean"?a("show-badges",T?"true":"false"):a("show-badges",null),S.flushElementRender(i)},[je,r,l,h,c,d,v,ce,he,p,H,de,ue,fe,pe,be,N,k,R,x,$,M,te,re,ne,ae,ie,oe,le,se,O,L,A,P,T,Re]);const qe=u.Children.map(t,i=>C(i,j)||C(i,q)?ke(i):i),Fe=u.useRef(r==null&&!!n).current?{collapsed:""}:{};return Je.createUIElement("ui-sidebar",{ref:w,...Fe,...Oe},qe)});xe.displayName="Sidebar";J.displayName="Sidebar.Header";U.displayName="Sidebar.Search";K.displayName="Sidebar.SearchInput";ee.displayName="Sidebar.Content";F.displayName="Sidebar.Group";V.displayName="Sidebar.Item";Z.displayName="Sidebar.Promo";X.displayName="Sidebar.Footer";Y.displayName="Sidebar.RailStart";Q.displayName="Sidebar.RailEnd";const $e=Object.assign(xe,{Header:J,Search:U,SearchInput:K,Content:ee,Group:F,Item:V,Promo:Z,Footer:X,RailStart:Y,RailEnd:Q});exports.Sidebar=$e;exports.SidebarContent=ee;exports.SidebarFooter=X;exports.SidebarGroup=F;exports.SidebarHeader=J;exports.SidebarItem=V;exports.SidebarPromo=Z;exports.SidebarRailEnd=Q;exports.SidebarRailStart=Y;exports.SidebarSearch=U;exports.SidebarSearchInput=K;exports.default=$e;