@editora/ui-react 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (557) hide show
  1. package/dist/Accordion.cjs.js +1 -1
  2. package/dist/Accordion.esm.js +29 -29
  3. package/dist/Alert.cjs.js +1 -1
  4. package/dist/Alert.esm.js +42 -41
  5. package/dist/AlertDialog.cjs.js +1 -1
  6. package/dist/AlertDialog.esm.js +41 -40
  7. package/dist/Anchor.cjs.js +1 -1
  8. package/dist/Anchor.esm.js +7 -6
  9. package/dist/AnimatedBeam.cjs.js +1 -1
  10. package/dist/AnimatedBeam.esm.js +55 -55
  11. package/dist/AnimatedList.cjs.js +1 -1
  12. package/dist/AnimatedList.esm.js +23 -23
  13. package/dist/AnimatedNumber.cjs.js +1 -1
  14. package/dist/AnimatedNumber.esm.js +33 -33
  15. package/dist/AnimatedText.cjs.js +1 -1
  16. package/dist/AnimatedText.esm.js +17 -17
  17. package/dist/AppHeader.cjs.js +2 -2
  18. package/dist/AppHeader.esm.js +19 -18
  19. package/dist/AspectRatio.cjs.js +1 -1
  20. package/dist/AspectRatio.esm.js +15 -14
  21. package/dist/Avatar.cjs.js +1 -1
  22. package/dist/Avatar.esm.js +27 -27
  23. package/dist/Badge.cjs.js +1 -1
  24. package/dist/Badge.esm.js +26 -25
  25. package/dist/BlockControls.cjs.js +1 -1
  26. package/dist/BlockControls.esm.js +7 -7
  27. package/dist/Box.cjs.js +1 -1
  28. package/dist/Box.esm.js +130 -129
  29. package/dist/Breadcrumb.cjs.js +1 -1
  30. package/dist/Breadcrumb.esm.js +2 -2
  31. package/dist/Button.cjs.js +1 -1
  32. package/dist/Button.esm.js +25 -25
  33. package/dist/Calendar.cjs.js +1 -1
  34. package/dist/Calendar.esm.js +40 -40
  35. package/dist/Card.cjs.js +2 -2
  36. package/dist/Card.esm.js +20 -20
  37. package/dist/Chart.cjs.js +1 -1
  38. package/dist/Chart.esm.js +21 -21
  39. package/dist/Checkbox.cjs.js +1 -1
  40. package/dist/Checkbox.esm.js +16 -16
  41. package/dist/Collapsible.cjs.js +1 -1
  42. package/dist/Collapsible.esm.js +7 -7
  43. package/dist/Collection.cjs.js +1 -1
  44. package/dist/Collection.esm.js +12 -11
  45. package/dist/ColorPicker.cjs.js +1 -1
  46. package/dist/ColorPicker.esm.js +34 -34
  47. package/dist/Combobox.cjs.js +1 -1
  48. package/dist/Combobox.esm.js +38 -37
  49. package/dist/Command.cjs.js +1 -1
  50. package/dist/Command.esm.js +16 -16
  51. package/dist/CommandPalette.cjs.js +1 -1
  52. package/dist/CommandPalette.esm.js +27 -27
  53. package/dist/Container.cjs.js +1 -1
  54. package/dist/Container.esm.js +7 -5
  55. package/dist/ContextMenu.cjs.js +1 -1
  56. package/dist/ContextMenu.esm.js +72 -73
  57. package/dist/DataTable.cjs.js +1 -1
  58. package/dist/DataTable.esm.js +67 -65
  59. package/dist/DateField.cjs.js +1 -1
  60. package/dist/DateField.esm.js +22 -22
  61. package/dist/DatePicker.cjs.js +1 -1
  62. package/dist/DatePicker.esm.js +51 -51
  63. package/dist/DateRangePicker.cjs.js +1 -1
  64. package/dist/DateRangePicker.esm.js +42 -42
  65. package/dist/DateRangeTimePicker.cjs.js +1 -1
  66. package/dist/DateRangeTimePicker.esm.js +36 -36
  67. package/dist/DateTimePicker.cjs.js +1 -1
  68. package/dist/DateTimePicker.esm.js +38 -38
  69. package/dist/Dialog.cjs.js +1 -1
  70. package/dist/Dialog.esm.js +29 -29
  71. package/dist/DirectionProvider.cjs.js +1 -1
  72. package/dist/DirectionProvider.esm.js +7 -4
  73. package/dist/DismissableLayer.cjs.js +1 -1
  74. package/dist/DismissableLayer.esm.js +21 -20
  75. package/dist/Dock.cjs.js +1 -1
  76. package/dist/Dock.esm.js +23 -23
  77. package/dist/Drawer.cjs.js +1 -1
  78. package/dist/Drawer.esm.js +47 -46
  79. package/dist/Dropdown.cjs.js +1 -1
  80. package/dist/Dropdown.esm.js +9 -8
  81. package/dist/EmptyState.cjs.js +1 -1
  82. package/dist/EmptyState.esm.js +18 -17
  83. package/dist/Field.cjs.js +1 -1
  84. package/dist/Field.esm.js +21 -18
  85. package/dist/FieldSemantics.cjs.js +1 -1
  86. package/dist/FieldSemantics.esm.js +38 -37
  87. package/dist/FileUpload.cjs.js +1 -1
  88. package/dist/FileUpload.esm.js +33 -32
  89. package/dist/Flex.cjs.js +1 -1
  90. package/dist/Flex.esm.js +37 -34
  91. package/dist/FloatingToolbar.cjs.js +1 -1
  92. package/dist/FloatingToolbar.esm.js +15 -15
  93. package/dist/FocusScope.cjs.js +1 -1
  94. package/dist/FocusScope.esm.js +8 -7
  95. package/dist/Form.cjs.js +1 -1
  96. package/dist/Form.esm.js +19 -18
  97. package/dist/Gantt.cjs.js +1 -1
  98. package/dist/Gantt.esm.js +17 -16
  99. package/dist/Grid.cjs.js +1 -1
  100. package/dist/Grid.esm.js +45 -42
  101. package/dist/HoverCard.cjs.js +1 -1
  102. package/dist/HoverCard.esm.js +6 -6
  103. package/dist/Icon.cjs.js +1 -1
  104. package/dist/Icon.esm.js +43 -42
  105. package/dist/IconCloud.cjs.js +1 -1
  106. package/dist/IconCloud.esm.js +16 -16
  107. package/dist/InlineEdit.cjs.js +1 -1
  108. package/dist/InlineEdit.esm.js +9 -8
  109. package/dist/Input.cjs.js +1 -1
  110. package/dist/Input.esm.js +32 -32
  111. package/dist/Label.cjs.js +1 -1
  112. package/dist/Label.esm.js +16 -15
  113. package/dist/Layout.cjs.js +1 -1
  114. package/dist/Layout.esm.js +7 -6
  115. package/dist/Listbox.cjs.js +1 -1
  116. package/dist/Listbox.esm.js +14 -13
  117. package/dist/Marquee.cjs.js +1 -1
  118. package/dist/Marquee.esm.js +32 -32
  119. package/dist/MasonryGrid.cjs.js +1 -1
  120. package/dist/MasonryGrid.esm.js +31 -31
  121. package/dist/Menu.cjs.js +1 -1
  122. package/dist/Menu.esm.js +11 -10
  123. package/dist/Menubar.cjs.js +1 -1
  124. package/dist/Menubar.esm.js +12 -12
  125. package/dist/Meter.cjs.js +1 -1
  126. package/dist/Meter.esm.js +15 -15
  127. package/dist/MultiSelect.cjs.js +1 -1
  128. package/dist/MultiSelect.esm.js +30 -29
  129. package/dist/NavigationMenu.cjs.js +1 -1
  130. package/dist/NavigationMenu.esm.js +80 -76
  131. package/dist/NumberField.cjs.js +1 -1
  132. package/dist/NumberField.esm.js +20 -20
  133. package/dist/NumberTicker.cjs.js +1 -1
  134. package/dist/NumberTicker.esm.js +34 -34
  135. package/dist/Orbiter.cjs.js +1 -1
  136. package/dist/Orbiter.esm.js +29 -29
  137. package/dist/Pagination.cjs.js +1 -1
  138. package/dist/Pagination.esm.js +25 -24
  139. package/dist/PanelGroup.cjs.js +1 -1
  140. package/dist/PanelGroup.esm.js +24 -23
  141. package/dist/PasswordField.cjs.js +1 -1
  142. package/dist/PasswordField.esm.js +32 -32
  143. package/dist/PinInput.cjs.js +1 -1
  144. package/dist/PinInput.esm.js +13 -13
  145. package/dist/PlacementGrid.cjs.js +1 -1
  146. package/dist/PlacementGrid.esm.js +37 -37
  147. package/dist/PluginPanel.cjs.js +1 -1
  148. package/dist/PluginPanel.esm.js +7 -7
  149. package/dist/Popover.cjs.js +1 -1
  150. package/dist/Popover.esm.js +7 -7
  151. package/dist/Portal.cjs.js +1 -1
  152. package/dist/Portal.esm.js +12 -11
  153. package/dist/Positioner.cjs.js +1 -1
  154. package/dist/Positioner.esm.js +12 -11
  155. package/dist/Presence.cjs.js +1 -1
  156. package/dist/Presence.esm.js +21 -20
  157. package/dist/Progress.cjs.js +1 -1
  158. package/dist/Progress.esm.js +16 -16
  159. package/dist/QuickActions.cjs.js +1 -1
  160. package/dist/QuickActions.esm.js +20 -20
  161. package/dist/Radio.cjs.js +1 -1
  162. package/dist/Radio.esm.js +7 -7
  163. package/dist/RadioGroup.cjs.js +1 -1
  164. package/dist/RadioGroup.esm.js +19 -19
  165. package/dist/Rating.cjs.js +1 -1
  166. package/dist/Rating.esm.js +33 -32
  167. package/dist/RovingFocusGroup.cjs.js +1 -1
  168. package/dist/RovingFocusGroup.esm.js +12 -11
  169. package/dist/ScrollArea.cjs.js +1 -1
  170. package/dist/ScrollArea.esm.js +17 -16
  171. package/dist/Section.cjs.js +1 -1
  172. package/dist/Section.esm.js +21 -20
  173. package/dist/Select.cjs.js +1 -1
  174. package/dist/Select.esm.js +40 -40
  175. package/dist/SelectionPopup.cjs.js +1 -1
  176. package/dist/SelectionPopup.esm.js +29 -29
  177. package/dist/Separator.cjs.js +1 -1
  178. package/dist/Separator.esm.js +5 -2
  179. package/dist/Sidebar.cjs.js +1 -1
  180. package/dist/Sidebar.esm.js +41 -40
  181. package/dist/Skeleton.cjs.js +1 -1
  182. package/dist/Skeleton.esm.js +15 -14
  183. package/dist/Slider.cjs.js +1 -1
  184. package/dist/Slider.esm.js +30 -30
  185. package/dist/Slot.cjs.js +1 -1
  186. package/dist/Slot.esm.js +18 -17
  187. package/dist/Sortable.cjs.js +1 -1
  188. package/dist/Sortable.esm.js +99 -99
  189. package/dist/SpinningText.cjs.js +1 -1
  190. package/dist/SpinningText.esm.js +29 -29
  191. package/dist/Stepper.cjs.js +1 -1
  192. package/dist/Stepper.esm.js +22 -22
  193. package/dist/Switch.cjs.js +1 -1
  194. package/dist/Switch.esm.js +19 -19
  195. package/dist/Table.cjs.js +1 -1
  196. package/dist/Table.esm.js +39 -37
  197. package/dist/Tabs.cjs.js +1 -1
  198. package/dist/Tabs.esm.js +35 -34
  199. package/dist/TagsInput.cjs.js +1 -1
  200. package/dist/TagsInput.esm.js +17 -17
  201. package/dist/Textarea.cjs.js +1 -1
  202. package/dist/Textarea.esm.js +27 -27
  203. package/dist/TimePicker.cjs.js +1 -1
  204. package/dist/TimePicker.esm.js +32 -32
  205. package/dist/Timeline.cjs.js +1 -1
  206. package/dist/Timeline.esm.js +18 -17
  207. package/dist/Toggle.cjs.js +1 -1
  208. package/dist/Toggle.esm.js +11 -11
  209. package/dist/ToggleGroup.cjs.js +1 -1
  210. package/dist/ToggleGroup.esm.js +22 -21
  211. package/dist/Toolbar.cjs.js +1 -1
  212. package/dist/Toolbar.esm.js +25 -24
  213. package/dist/Tooltip.cjs.js +1 -1
  214. package/dist/Tooltip.esm.js +17 -16
  215. package/dist/TransferList.cjs.js +1 -1
  216. package/dist/TransferList.esm.js +16 -16
  217. package/dist/Tree.cjs.js +1 -1
  218. package/dist/Tree.esm.js +29 -28
  219. package/dist/VisuallyHidden.cjs.js +1 -1
  220. package/dist/VisuallyHidden.esm.js +5 -2
  221. package/dist/Wizard.cjs.js +1 -1
  222. package/dist/Wizard.esm.js +50 -49
  223. package/dist/_internals-BIT_j6Nr.js +1 -0
  224. package/dist/_internals-CEeSSGD-.mjs +122 -0
  225. package/dist/components/Accordion.cjs.js +1 -1
  226. package/dist/components/Accordion.esm.js +1 -1
  227. package/dist/components/Alert.cjs.js +1 -1
  228. package/dist/components/Alert.d.ts +16 -267
  229. package/dist/components/Alert.d.ts.map +1 -1
  230. package/dist/components/Alert.esm.js +1 -1
  231. package/dist/components/AlertDialog.cjs.js +1 -1
  232. package/dist/components/AlertDialog.d.ts.map +1 -1
  233. package/dist/components/AlertDialog.esm.js +8 -7
  234. package/dist/components/Anchor.cjs.js +1 -1
  235. package/dist/components/Anchor.d.ts.map +1 -1
  236. package/dist/components/Anchor.esm.js +3 -2
  237. package/dist/components/AnimatedBeam.cjs.js +1 -1
  238. package/dist/components/AnimatedBeam.esm.js +1 -1
  239. package/dist/components/AnimatedList.cjs.js +1 -1
  240. package/dist/components/AnimatedList.esm.js +1 -1
  241. package/dist/components/AnimatedNumber.cjs.js +1 -1
  242. package/dist/components/AnimatedNumber.d.ts.map +1 -1
  243. package/dist/components/AnimatedNumber.esm.js +1 -1
  244. package/dist/components/AnimatedText.cjs.js +1 -1
  245. package/dist/components/AnimatedText.esm.js +1 -1
  246. package/dist/components/AppHeader.cjs.js +1 -1
  247. package/dist/components/AppHeader.d.ts.map +1 -1
  248. package/dist/components/AppHeader.esm.js +8 -7
  249. package/dist/components/AspectRatio.cjs.js +1 -1
  250. package/dist/components/AspectRatio.d.ts.map +1 -1
  251. package/dist/components/AspectRatio.esm.js +4 -3
  252. package/dist/components/Avatar.cjs.js +1 -1
  253. package/dist/components/Avatar.d.ts.map +1 -1
  254. package/dist/components/Avatar.esm.js +1 -1
  255. package/dist/components/Badge.cjs.js +1 -1
  256. package/dist/components/Badge.d.ts +20 -268
  257. package/dist/components/Badge.d.ts.map +1 -1
  258. package/dist/components/Badge.esm.js +1 -1
  259. package/dist/components/BlockControls.cjs.js +1 -1
  260. package/dist/components/BlockControls.esm.js +1 -1
  261. package/dist/components/Box.cjs.js +1 -1
  262. package/dist/components/Box.d.ts.map +1 -1
  263. package/dist/components/Box.esm.js +3 -2
  264. package/dist/components/Breadcrumb.cjs.js +1 -1
  265. package/dist/components/Breadcrumb.d.ts.map +1 -1
  266. package/dist/components/Breadcrumb.esm.js +1 -1
  267. package/dist/components/Button.cjs.js +1 -1
  268. package/dist/components/Button.esm.js +1 -1
  269. package/dist/components/Calendar.cjs.js +1 -1
  270. package/dist/components/Calendar.d.ts.map +1 -1
  271. package/dist/components/Calendar.esm.js +1 -1
  272. package/dist/components/Card.cjs.js +1 -1
  273. package/dist/components/Card.esm.js +1 -1
  274. package/dist/components/Chart.cjs.js +1 -1
  275. package/dist/components/Chart.esm.js +1 -1
  276. package/dist/components/Checkbox.cjs.js +1 -1
  277. package/dist/components/Checkbox.d.ts.map +1 -1
  278. package/dist/components/Checkbox.esm.js +1 -1
  279. package/dist/components/Collapsible.cjs.js +1 -1
  280. package/dist/components/Collapsible.d.ts.map +1 -1
  281. package/dist/components/Collapsible.esm.js +1 -1
  282. package/dist/components/Collection.cjs.js +1 -1
  283. package/dist/components/Collection.d.ts.map +1 -1
  284. package/dist/components/Collection.esm.js +4 -3
  285. package/dist/components/ColorPicker.cjs.js +1 -1
  286. package/dist/components/ColorPicker.d.ts.map +1 -1
  287. package/dist/components/ColorPicker.esm.js +1 -1
  288. package/dist/components/Combobox.cjs.js +1 -1
  289. package/dist/components/Combobox.d.ts.map +1 -1
  290. package/dist/components/Combobox.esm.js +4 -3
  291. package/dist/components/Command.cjs.js +1 -1
  292. package/dist/components/Command.esm.js +1 -1
  293. package/dist/components/CommandPalette.cjs.js +1 -1
  294. package/dist/components/CommandPalette.esm.js +1 -1
  295. package/dist/components/Container.cjs.js +1 -1
  296. package/dist/components/Container.d.ts +3 -4
  297. package/dist/components/Container.d.ts.map +1 -1
  298. package/dist/components/Container.esm.js +3 -2
  299. package/dist/components/ContextMenu.cjs.js +1 -1
  300. package/dist/components/ContextMenu.d.ts +57 -1
  301. package/dist/components/ContextMenu.d.ts.map +1 -1
  302. package/dist/components/ContextMenu.esm.js +4 -3
  303. package/dist/components/DataTable.cjs.js +1 -1
  304. package/dist/components/DataTable.d.ts +47 -301
  305. package/dist/components/DataTable.d.ts.map +1 -1
  306. package/dist/components/DataTable.esm.js +4 -3
  307. package/dist/components/DataViewToolbar.d.ts +1 -1
  308. package/dist/components/DateField.cjs.js +1 -1
  309. package/dist/components/DateField.d.ts.map +1 -1
  310. package/dist/components/DateField.esm.js +1 -1
  311. package/dist/components/DatePicker.cjs.js +1 -1
  312. package/dist/components/DatePicker.d.ts.map +1 -1
  313. package/dist/components/DatePicker.esm.js +1 -1
  314. package/dist/components/DateRangePicker.cjs.js +1 -1
  315. package/dist/components/DateRangePicker.d.ts.map +1 -1
  316. package/dist/components/DateRangePicker.esm.js +1 -1
  317. package/dist/components/DateRangeTimePicker.cjs.js +1 -1
  318. package/dist/components/DateRangeTimePicker.d.ts.map +1 -1
  319. package/dist/components/DateRangeTimePicker.esm.js +1 -1
  320. package/dist/components/DateTimePicker.cjs.js +1 -1
  321. package/dist/components/DateTimePicker.d.ts.map +1 -1
  322. package/dist/components/DateTimePicker.esm.js +1 -1
  323. package/dist/components/Dialog.cjs.js +1 -1
  324. package/dist/components/Dialog.d.ts.map +1 -1
  325. package/dist/components/Dialog.esm.js +1 -1
  326. package/dist/components/DirectionProvider.cjs.js +1 -1
  327. package/dist/components/DirectionProvider.d.ts.map +1 -1
  328. package/dist/components/DirectionProvider.esm.js +3 -2
  329. package/dist/components/DismissableLayer.cjs.js +1 -1
  330. package/dist/components/DismissableLayer.d.ts.map +1 -1
  331. package/dist/components/DismissableLayer.esm.js +4 -3
  332. package/dist/components/Dock.cjs.js +1 -1
  333. package/dist/components/Dock.esm.js +1 -1
  334. package/dist/components/Drawer.cjs.js +1 -1
  335. package/dist/components/Drawer.d.ts.map +1 -1
  336. package/dist/components/Drawer.esm.js +6 -5
  337. package/dist/components/Dropdown.cjs.js +1 -1
  338. package/dist/components/Dropdown.d.ts.map +1 -1
  339. package/dist/components/Dropdown.esm.js +9 -8
  340. package/dist/components/EmptyState.cjs.js +1 -1
  341. package/dist/components/EmptyState.d.ts +10 -267
  342. package/dist/components/EmptyState.d.ts.map +1 -1
  343. package/dist/components/EmptyState.esm.js +1 -1
  344. package/dist/components/Field.cjs.js +1 -1
  345. package/dist/components/Field.d.ts +17 -1
  346. package/dist/components/Field.d.ts.map +1 -1
  347. package/dist/components/Field.esm.js +4 -3
  348. package/dist/components/FieldSemantics.cjs.js +1 -1
  349. package/dist/components/FieldSemantics.d.ts.map +1 -1
  350. package/dist/components/FieldSemantics.esm.js +6 -5
  351. package/dist/components/FileUpload.cjs.js +1 -1
  352. package/dist/components/FileUpload.d.ts.map +1 -1
  353. package/dist/components/FileUpload.esm.js +5 -4
  354. package/dist/components/Flex.cjs.js +1 -1
  355. package/dist/components/Flex.d.ts +4 -5
  356. package/dist/components/Flex.d.ts.map +1 -1
  357. package/dist/components/Flex.esm.js +4 -3
  358. package/dist/components/FloatingToolbar.cjs.js +1 -1
  359. package/dist/components/FloatingToolbar.esm.js +1 -1
  360. package/dist/components/FocusScope.cjs.js +1 -1
  361. package/dist/components/FocusScope.d.ts.map +1 -1
  362. package/dist/components/FocusScope.esm.js +4 -3
  363. package/dist/components/Form.cjs.js +1 -1
  364. package/dist/components/Form.d.ts.map +1 -1
  365. package/dist/components/Form.esm.js +4 -3
  366. package/dist/components/Gantt.cjs.js +1 -1
  367. package/dist/components/Gantt.d.ts.map +1 -1
  368. package/dist/components/Gantt.esm.js +4 -3
  369. package/dist/components/Grid.cjs.js +1 -1
  370. package/dist/components/Grid.d.ts +3 -4
  371. package/dist/components/Grid.d.ts.map +1 -1
  372. package/dist/components/Grid.esm.js +4 -3
  373. package/dist/components/HoverCard.cjs.js +1 -1
  374. package/dist/components/HoverCard.d.ts.map +1 -1
  375. package/dist/components/HoverCard.esm.js +1 -1
  376. package/dist/components/Icon.cjs.js +1 -1
  377. package/dist/components/Icon.d.ts.map +1 -1
  378. package/dist/components/Icon.esm.js +3 -2
  379. package/dist/components/IconCloud.cjs.js +1 -1
  380. package/dist/components/IconCloud.esm.js +1 -1
  381. package/dist/components/InlineEdit.cjs.js +1 -1
  382. package/dist/components/InlineEdit.d.ts.map +1 -1
  383. package/dist/components/InlineEdit.esm.js +4 -3
  384. package/dist/components/Input.cjs.js +1 -1
  385. package/dist/components/Input.d.ts.map +1 -1
  386. package/dist/components/Input.esm.js +1 -1
  387. package/dist/components/Label.cjs.js +1 -1
  388. package/dist/components/Label.d.ts.map +1 -1
  389. package/dist/components/Label.esm.js +4 -3
  390. package/dist/components/Layout.cjs.js +1 -1
  391. package/dist/components/Layout.d.ts.map +1 -1
  392. package/dist/components/Layout.esm.js +7 -6
  393. package/dist/components/Listbox.cjs.js +1 -1
  394. package/dist/components/Listbox.d.ts.map +1 -1
  395. package/dist/components/Listbox.esm.js +4 -3
  396. package/dist/components/Marquee.cjs.js +1 -1
  397. package/dist/components/Marquee.esm.js +1 -1
  398. package/dist/components/MasonryGrid.cjs.js +1 -1
  399. package/dist/components/MasonryGrid.esm.js +1 -1
  400. package/dist/components/Menu.cjs.js +1 -1
  401. package/dist/components/Menu.d.ts.map +1 -1
  402. package/dist/components/Menu.esm.js +7 -6
  403. package/dist/components/Menubar.cjs.js +1 -1
  404. package/dist/components/Menubar.d.ts.map +1 -1
  405. package/dist/components/Menubar.esm.js +1 -1
  406. package/dist/components/Meter.cjs.js +1 -1
  407. package/dist/components/Meter.d.ts.map +1 -1
  408. package/dist/components/Meter.esm.js +1 -1
  409. package/dist/components/MultiSelect.cjs.js +1 -1
  410. package/dist/components/MultiSelect.d.ts.map +1 -1
  411. package/dist/components/MultiSelect.esm.js +4 -3
  412. package/dist/components/NavigationMenu.cjs.js +1 -1
  413. package/dist/components/NavigationMenu.d.ts +54 -274
  414. package/dist/components/NavigationMenu.d.ts.map +1 -1
  415. package/dist/components/NavigationMenu.esm.js +12 -11
  416. package/dist/components/NumberField.cjs.js +1 -1
  417. package/dist/components/NumberField.d.ts.map +1 -1
  418. package/dist/components/NumberField.esm.js +1 -1
  419. package/dist/components/NumberTicker.cjs.js +1 -1
  420. package/dist/components/NumberTicker.esm.js +1 -1
  421. package/dist/components/Orbiter.cjs.js +1 -1
  422. package/dist/components/Orbiter.esm.js +1 -1
  423. package/dist/components/Pagination.cjs.js +1 -1
  424. package/dist/components/Pagination.d.ts.map +1 -1
  425. package/dist/components/Pagination.esm.js +4 -3
  426. package/dist/components/PanelGroup.cjs.js +1 -1
  427. package/dist/components/PanelGroup.d.ts.map +1 -1
  428. package/dist/components/PanelGroup.esm.js +6 -5
  429. package/dist/components/PasswordField.cjs.js +1 -1
  430. package/dist/components/PasswordField.d.ts.map +1 -1
  431. package/dist/components/PasswordField.esm.js +1 -1
  432. package/dist/components/PinInput.cjs.js +1 -1
  433. package/dist/components/PinInput.d.ts.map +1 -1
  434. package/dist/components/PinInput.esm.js +1 -1
  435. package/dist/components/PlacementGrid.cjs.js +1 -1
  436. package/dist/components/PlacementGrid.esm.js +1 -1
  437. package/dist/components/PluginPanel.cjs.js +1 -1
  438. package/dist/components/PluginPanel.esm.js +1 -1
  439. package/dist/components/Popover.cjs.js +1 -1
  440. package/dist/components/Popover.esm.js +1 -1
  441. package/dist/components/Portal.cjs.js +1 -1
  442. package/dist/components/Portal.d.ts.map +1 -1
  443. package/dist/components/Portal.esm.js +3 -2
  444. package/dist/components/Positioner.cjs.js +1 -1
  445. package/dist/components/Positioner.d.ts.map +1 -1
  446. package/dist/components/Positioner.esm.js +4 -3
  447. package/dist/components/Presence.cjs.js +1 -1
  448. package/dist/components/Presence.d.ts.map +1 -1
  449. package/dist/components/Presence.esm.js +3 -2
  450. package/dist/components/Progress.cjs.js +1 -1
  451. package/dist/components/Progress.d.ts.map +1 -1
  452. package/dist/components/Progress.esm.js +1 -1
  453. package/dist/components/QuickActions.cjs.js +1 -1
  454. package/dist/components/QuickActions.d.ts.map +1 -1
  455. package/dist/components/QuickActions.esm.js +1 -1
  456. package/dist/components/Radio.cjs.js +1 -1
  457. package/dist/components/Radio.d.ts.map +1 -1
  458. package/dist/components/Radio.esm.js +1 -1
  459. package/dist/components/RadioGroup.cjs.js +1 -1
  460. package/dist/components/RadioGroup.d.ts.map +1 -1
  461. package/dist/components/RadioGroup.esm.js +1 -1
  462. package/dist/components/Rating.cjs.js +1 -1
  463. package/dist/components/Rating.d.ts.map +1 -1
  464. package/dist/components/Rating.esm.js +4 -3
  465. package/dist/components/RovingFocusGroup.cjs.js +1 -1
  466. package/dist/components/RovingFocusGroup.d.ts.map +1 -1
  467. package/dist/components/RovingFocusGroup.esm.js +4 -3
  468. package/dist/components/ScrollArea.cjs.js +1 -1
  469. package/dist/components/ScrollArea.d.ts.map +1 -1
  470. package/dist/components/ScrollArea.esm.js +3 -2
  471. package/dist/components/Section.cjs.js +1 -1
  472. package/dist/components/Section.d.ts.map +1 -1
  473. package/dist/components/Section.esm.js +4 -3
  474. package/dist/components/Select.cjs.js +1 -1
  475. package/dist/components/Select.d.ts.map +1 -1
  476. package/dist/components/Select.esm.js +1 -1
  477. package/dist/components/SelectionPopup.cjs.js +1 -1
  478. package/dist/components/SelectionPopup.esm.js +1 -1
  479. package/dist/components/Separator.cjs.js +1 -1
  480. package/dist/components/Separator.d.ts.map +1 -1
  481. package/dist/components/Separator.esm.js +3 -2
  482. package/dist/components/Sidebar.cjs.js +1 -1
  483. package/dist/components/Sidebar.d.ts.map +1 -1
  484. package/dist/components/Sidebar.esm.js +10 -9
  485. package/dist/components/Skeleton.cjs.js +1 -1
  486. package/dist/components/Skeleton.d.ts +14 -269
  487. package/dist/components/Skeleton.d.ts.map +1 -1
  488. package/dist/components/Skeleton.esm.js +1 -1
  489. package/dist/components/Slider.cjs.js +1 -1
  490. package/dist/components/Slider.d.ts.map +1 -1
  491. package/dist/components/Slider.esm.js +1 -1
  492. package/dist/components/Slot.cjs.js +1 -1
  493. package/dist/components/Slot.d.ts.map +1 -1
  494. package/dist/components/Slot.esm.js +4 -3
  495. package/dist/components/Sortable.cjs.js +1 -1
  496. package/dist/components/Sortable.d.ts.map +1 -1
  497. package/dist/components/Sortable.esm.js +1 -1
  498. package/dist/components/SpinningText.cjs.js +1 -1
  499. package/dist/components/SpinningText.esm.js +1 -1
  500. package/dist/components/Stepper.cjs.js +1 -1
  501. package/dist/components/Stepper.d.ts.map +1 -1
  502. package/dist/components/Stepper.esm.js +1 -1
  503. package/dist/components/Switch.cjs.js +1 -1
  504. package/dist/components/Switch.d.ts.map +1 -1
  505. package/dist/components/Switch.esm.js +1 -1
  506. package/dist/components/Table.cjs.js +1 -1
  507. package/dist/components/Table.d.ts +16 -279
  508. package/dist/components/Table.d.ts.map +1 -1
  509. package/dist/components/Table.esm.js +4 -3
  510. package/dist/components/Tabs.cjs.js +1 -1
  511. package/dist/components/Tabs.d.ts.map +1 -1
  512. package/dist/components/Tabs.esm.js +4 -3
  513. package/dist/components/TagsInput.cjs.js +1 -1
  514. package/dist/components/TagsInput.d.ts.map +1 -1
  515. package/dist/components/TagsInput.esm.js +1 -1
  516. package/dist/components/Textarea.cjs.js +1 -1
  517. package/dist/components/Textarea.d.ts.map +1 -1
  518. package/dist/components/Textarea.esm.js +1 -1
  519. package/dist/components/TimePicker.cjs.js +1 -1
  520. package/dist/components/TimePicker.d.ts.map +1 -1
  521. package/dist/components/TimePicker.esm.js +1 -1
  522. package/dist/components/Timeline.cjs.js +1 -1
  523. package/dist/components/Timeline.d.ts.map +1 -1
  524. package/dist/components/Timeline.esm.js +4 -3
  525. package/dist/components/Toggle.cjs.js +1 -1
  526. package/dist/components/Toggle.d.ts.map +1 -1
  527. package/dist/components/Toggle.esm.js +1 -1
  528. package/dist/components/ToggleGroup.cjs.js +1 -1
  529. package/dist/components/ToggleGroup.d.ts.map +1 -1
  530. package/dist/components/ToggleGroup.esm.js +3 -2
  531. package/dist/components/Toolbar.cjs.js +1 -1
  532. package/dist/components/Toolbar.d.ts.map +1 -1
  533. package/dist/components/Toolbar.esm.js +4 -3
  534. package/dist/components/Tooltip.cjs.js +1 -1
  535. package/dist/components/Tooltip.d.ts.map +1 -1
  536. package/dist/components/Tooltip.esm.js +3 -2
  537. package/dist/components/TransferList.cjs.js +1 -1
  538. package/dist/components/TransferList.esm.js +1 -1
  539. package/dist/components/Tree.cjs.js +1 -1
  540. package/dist/components/Tree.d.ts.map +1 -1
  541. package/dist/components/Tree.esm.js +4 -3
  542. package/dist/components/VisuallyHidden.cjs.js +1 -1
  543. package/dist/components/VisuallyHidden.d.ts.map +1 -1
  544. package/dist/components/VisuallyHidden.esm.js +3 -2
  545. package/dist/components/Wizard.cjs.js +1 -1
  546. package/dist/components/Wizard.d.ts.map +1 -1
  547. package/dist/components/Wizard.esm.js +4 -3
  548. package/dist/components/_internals.d.ts +10 -0
  549. package/dist/components/_internals.d.ts.map +1 -1
  550. package/dist/hooks/useFloatingInteractions.d.ts +2 -2
  551. package/dist/hooks/useFloatingInteractions.d.ts.map +1 -1
  552. package/dist/index.cjs.js +1 -1
  553. package/dist/index.esm.js +228 -227
  554. package/dist/ui-react.css +1 -1
  555. package/package.json +2 -2
  556. package/dist/_internals-C0zzLj8J.js +0 -1
  557. package/dist/_internals-pNJ1oPIS.mjs +0 -115
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  import t from "react";
3
3
  import "@editora/ui-core/select";
4
- import { c as Y, g as Z, u as $, a as I, s as l, b as o } from "./_internals-pNJ1oPIS.mjs";
5
- const B = t.forwardRef(function({
4
+ import { u as X, g as Y, a as Z, b as $, s as l, d as o, c as P } from "./_internals-CEeSSGD-.mjs";
5
+ const q = t.forwardRef(function({
6
6
  children: r,
7
7
  value: n,
8
8
  disabled: c,
@@ -20,32 +20,32 @@ const B = t.forwardRef(function({
20
20
  tone: i,
21
21
  density: p,
22
22
  shape: f,
23
- elevation: S,
23
+ elevation: d,
24
24
  radius: w,
25
25
  optionBorder: A,
26
26
  showCheck: L,
27
27
  checkPlacement: H,
28
- validation: d,
28
+ validation: S,
29
29
  onChange: k,
30
30
  onInput: x,
31
31
  onValueChange: _,
32
- ...W
33
- }, X) {
34
- const O = Y(X), m = t.useCallback((e) => Z(e)?.value ?? e.target?.value ?? "", []), j = t.useCallback((e) => {
32
+ ...V
33
+ }, W) {
34
+ const O = X(W), m = t.useCallback((e) => Y(e)?.value ?? e.target?.value ?? "", []), j = t.useCallback((e) => {
35
35
  x?.(m(e));
36
36
  }, [x, m]), F = t.useCallback((e) => {
37
- const q = m(e);
38
- k?.(q), _?.(q);
37
+ const U = m(e);
38
+ k?.(U), _?.(U);
39
39
  }, [k, _, m]);
40
- return $(
40
+ return Z(
41
41
  O,
42
42
  [
43
43
  { type: "input", listener: j },
44
44
  { type: "change", listener: F }
45
45
  ],
46
46
  [j, F]
47
- ), I(O, (e) => {
48
- l(e, "value", n != null ? String(n) : null), o(e, "disabled", c), o(e, "loading", N), o(e, "required", D), o(e, "headless", T), o(e, "invalid", G), l(e, "placeholder", g || null), l(e, "name", E || null), l(e, "label", b || null), l(e, "description", R || null), l(e, "error", y || null), l(e, "size", s && s !== "md" && s !== "2" ? s : null), l(e, "variant", u && u !== "classic" ? u : null), l(e, "tone", i && i !== "default" ? i : null), l(e, "density", p && p !== "default" ? p : null), l(e, "shape", f && f !== "rounded" ? f : null), l(e, "elevation", S && S !== "low" ? S : null), l(e, "radius", w ? String(w) : null), o(e, "option-border", A), o(e, "show-check", L), l(e, "check-placement", L ? H || "end" : null), l(e, "validation", d && d !== "none" ? d : null);
47
+ ), $(O, (e) => {
48
+ l(e, "value", n != null ? String(n) : null), o(e, "disabled", c), o(e, "loading", N), o(e, "required", D), o(e, "headless", T), o(e, "invalid", G), l(e, "placeholder", g || null), l(e, "name", E || null), l(e, "label", b || null), l(e, "description", R || null), l(e, "error", y || null), l(e, "size", s && s !== "md" && s !== "2" ? s : null), l(e, "variant", u && u !== "classic" ? u : null), l(e, "tone", i && i !== "default" ? i : null), l(e, "density", p && p !== "default" ? p : null), l(e, "shape", f && f !== "rounded" ? f : null), l(e, "elevation", d && d !== "low" ? d : null), l(e, "radius", w ? String(w) : null), o(e, "option-border", A), o(e, "show-check", L), l(e, "check-placement", L ? H || "end" : null), l(e, "validation", S && S !== "none" ? S : null);
49
49
  }, [
50
50
  n,
51
51
  c,
@@ -63,67 +63,67 @@ const B = t.forwardRef(function({
63
63
  i,
64
64
  p,
65
65
  f,
66
- S,
66
+ d,
67
67
  w,
68
68
  A,
69
69
  L,
70
70
  H,
71
- d
72
- ]), t.createElement("ui-select", { ref: O, ...W }, r);
71
+ S
72
+ ]), P("ui-select", { ref: O, ...V }, r);
73
73
  });
74
- B.displayName = "Select";
75
- const C = t.forwardRef(
74
+ q.displayName = "Select";
75
+ const B = t.forwardRef(
76
76
  function(r, n) {
77
77
  return /* @__PURE__ */ t.createElement("option", { ref: n, ...r });
78
78
  }
79
79
  );
80
- C.displayName = "Select.Option";
81
- const J = t.forwardRef(
80
+ B.displayName = "Select.Option";
81
+ const C = t.forwardRef(
82
82
  function(r, n) {
83
83
  return /* @__PURE__ */ t.createElement("optgroup", { ref: n, ...r });
84
84
  }
85
85
  );
86
- J.displayName = "Select.OptGroup";
87
- const K = t.forwardRef(
86
+ C.displayName = "Select.OptGroup";
87
+ const I = t.forwardRef(
88
88
  function({ children: r, ...n }, c) {
89
89
  return t.createElement("span", { ref: c, slot: "label", ...n }, r);
90
90
  }
91
91
  );
92
- K.displayName = "Select.Label";
93
- const M = t.forwardRef(
92
+ I.displayName = "Select.Label";
93
+ const J = t.forwardRef(
94
94
  function({ children: r, ...n }, c) {
95
95
  return t.createElement("span", { ref: c, slot: "description", ...n }, r);
96
96
  }
97
97
  );
98
- M.displayName = "Select.Description";
99
- const Q = t.forwardRef(
98
+ J.displayName = "Select.Description";
99
+ const K = t.forwardRef(
100
100
  function({ children: r, ...n }, c) {
101
101
  return t.createElement("span", { ref: c, slot: "error", ...n }, r);
102
102
  }
103
103
  );
104
- Q.displayName = "Select.Error";
105
- const U = t.forwardRef(
104
+ K.displayName = "Select.Error";
105
+ const M = t.forwardRef(
106
106
  function({ children: r, ...n }, c) {
107
107
  return t.createElement("span", { ref: c, slot: "leading", ...n }, r);
108
108
  }
109
109
  );
110
- U.displayName = "Select.Leading";
111
- const V = t.forwardRef(
110
+ M.displayName = "Select.Leading";
111
+ const Q = t.forwardRef(
112
112
  function({ children: r, ...n }, c) {
113
113
  return t.createElement("span", { ref: c, slot: "trailing", ...n }, r);
114
114
  }
115
115
  );
116
- V.displayName = "Select.Trailing";
117
- const h = Object.assign(B, {
118
- Option: C,
119
- OptGroup: J,
120
- Label: K,
121
- Description: M,
122
- Error: Q,
123
- Leading: U,
124
- Trailing: V
116
+ Q.displayName = "Select.Trailing";
117
+ const ee = Object.assign(q, {
118
+ Option: B,
119
+ OptGroup: C,
120
+ Label: I,
121
+ Description: J,
122
+ Error: K,
123
+ Leading: M,
124
+ Trailing: Q
125
125
  });
126
126
  export {
127
- h as Select,
128
- h as default
127
+ ee as Select,
128
+ ee as default
129
129
  };
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react");require("@editora/ui-core/selection-popup");const q=require("./_internals-C0zzLj8J.js"),H=o=>o&&o.__esModule?o:{default:o},i=H(u),M=typeof window<"u"?u.useLayoutEffect:u.useEffect,L=i.default.forwardRef(function(y,b){const{children:g,anchorId:c,open:f,placement:a,offset:p,strategy:d,arrow:w,variant:v,tone:m,radius:P,size:E,closeOnOutside:A,closeOnEscape:O,onOpen:R,onClose:C,onOpenChange:_,...N}=y,S=u.useRef(null);return i.default.useImperativeHandle(b,()=>S.current),u.useEffect(()=>{q.warnIfElementNotRegistered("ui-selection-popup","SelectionPopup")},[]),u.useEffect(()=>{const e=S.current;if(!e)return;const t=()=>{R?.(),_?.(!0)},r=()=>{C?.(),_?.(!1)};return e.addEventListener("open",t),e.addEventListener("close",r),()=>{e.removeEventListener("open",t),e.removeEventListener("close",r)}},[R,C,_]),M(()=>{const e=S.current;if(!e)return;const t=(n,l)=>{const s=e.getAttribute(n);if(l==null){s!=null&&e.removeAttribute(n);return}s!==l&&e.setAttribute(n,l)},r=(n,l,s=void 0)=>{if(l==null){s!==void 0&&t(n,s?null:"false");return}l?t(n,""):t(n,"false")};t("anchor-id",c??null),t("placement",a&&a!=="top"?a:null),t("offset",typeof p=="number"&&Number.isFinite(p)?String(p):null),t("strategy",d&&d!=="fixed"?d:null),t("variant",v&&v!=="default"?v:null),t("tone",m&&m!=="brand"?m:null),t("radius",P?String(P):null),t("size",E&&E!=="md"?E:null),r("arrow",w),r("close-on-outside",A,!0),r("close-on-escape",O,!0),f&&c?e.openFor?.(c):f?e.setAttribute("open",""):f===!1?e.close?.():e.removeAttribute("open")},[f,c,a,p,d,w,v,m,P,E,A,O]),i.default.createElement("ui-selection-popup",{ref:S,...N},g)});L.displayName="SelectionPopup";const h=i.default.forwardRef(function({children:y,...b},g){return i.default.createElement("div",{ref:g,slot:"content",...b},y)});h.displayName="SelectionPopup.Content";const I=Object.assign(L,{Content:h});exports.SelectionPopup=I;exports.default=I;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react");require("@editora/ui-core/selection-popup");const L=require("./_internals-BIT_j6Nr.js"),H=o=>o&&o.__esModule?o:{default:o},S=H(u),M=typeof window<"u"?u.useLayoutEffect:u.useEffect,h=S.default.forwardRef(function(y,b){const{children:g,anchorId:i,open:c,placement:f,offset:a,strategy:p,arrow:w,variant:d,tone:v,radius:P,size:m,closeOnOutside:A,closeOnEscape:O,onOpen:R,onClose:C,onOpenChange:_,...q}=y,E=u.useRef(null);return S.default.useImperativeHandle(b,()=>E.current),u.useEffect(()=>{L.warnIfElementNotRegistered("ui-selection-popup","SelectionPopup")},[]),u.useEffect(()=>{const e=E.current;if(!e)return;const t=()=>{R?.(),_?.(!0)},r=()=>{C?.(),_?.(!1)};return e.addEventListener("open",t),e.addEventListener("close",r),()=>{e.removeEventListener("open",t),e.removeEventListener("close",r)}},[R,C,_]),M(()=>{const e=E.current;if(!e)return;const t=(n,l)=>{const s=e.getAttribute(n);if(l==null){s!=null&&e.removeAttribute(n);return}s!==l&&e.setAttribute(n,l)},r=(n,l,s=void 0)=>{if(l==null){s!==void 0&&t(n,s?null:"false");return}l?t(n,""):t(n,"false")};t("anchor-id",i??null),t("placement",f&&f!=="top"?f:null),t("offset",typeof a=="number"&&Number.isFinite(a)?String(a):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",w),r("close-on-outside",A,!0),r("close-on-escape",O,!0),c&&i?e.openFor?.(i):c?e.setAttribute("open",""):c===!1?e.close?.():e.removeAttribute("open")},[c,i,f,a,p,w,d,v,P,m,A,O]),L.createUIElement("ui-selection-popup",{ref:E,...q},g)});h.displayName="SelectionPopup";const I=S.default.forwardRef(function({children:y,...b},g){return S.default.createElement("div",{ref:g,slot:"content",...b},y)});I.displayName="SelectionPopup.Content";const N=Object.assign(h,{Content:I});exports.SelectionPopup=N;exports.default=N;
@@ -1,31 +1,31 @@
1
1
  'use client';
2
- import s, { useRef as H, useEffect as w, useLayoutEffect as z } from "react";
2
+ import v, { useRef as H, useEffect as w, useLayoutEffect as z } from "react";
3
3
  import "@editora/ui-core/selection-popup";
4
- import { w as F } from "./_internals-pNJ1oPIS.mjs";
5
- const _ = typeof window < "u" ? z : w, R = s.forwardRef(function(E, y) {
4
+ import { w as F, c as _ } from "./_internals-CEeSSGD-.mjs";
5
+ const j = typeof window < "u" ? z : w, R = v.forwardRef(function(E, y) {
6
6
  const {
7
7
  children: S,
8
- anchorId: i,
9
- open: u,
10
- placement: c,
11
- offset: p,
12
- strategy: f,
8
+ anchorId: l,
9
+ open: i,
10
+ placement: u,
11
+ offset: c,
12
+ strategy: p,
13
13
  arrow: P,
14
- variant: a,
15
- tone: d,
14
+ variant: f,
15
+ tone: a,
16
16
  radius: b,
17
- size: m,
17
+ size: d,
18
18
  closeOnOutside: A,
19
19
  closeOnEscape: C,
20
20
  onOpen: L,
21
21
  onClose: O,
22
22
  onOpenChange: g,
23
23
  ...N
24
- } = E, v = H(null);
25
- return s.useImperativeHandle(y, () => v.current), w(() => {
24
+ } = E, m = H(null);
25
+ return v.useImperativeHandle(y, () => m.current), w(() => {
26
26
  F("ui-selection-popup", "SelectionPopup");
27
27
  }, []), w(() => {
28
- const e = v.current;
28
+ const e = m.current;
29
29
  if (!e) return;
30
30
  const t = () => {
31
31
  L?.(), g?.(!0);
@@ -35,43 +35,43 @@ const _ = typeof window < "u" ? z : w, R = s.forwardRef(function(E, y) {
35
35
  return e.addEventListener("open", t), e.addEventListener("close", o), () => {
36
36
  e.removeEventListener("open", t), e.removeEventListener("close", o);
37
37
  };
38
- }, [L, O, g]), _(() => {
39
- const e = v.current;
38
+ }, [L, O, g]), j(() => {
39
+ const e = m.current;
40
40
  if (!e) return;
41
41
  const t = (n, r) => {
42
- const l = e.getAttribute(n);
42
+ const s = e.getAttribute(n);
43
43
  if (r == null) {
44
- l != null && e.removeAttribute(n);
44
+ s != null && e.removeAttribute(n);
45
45
  return;
46
46
  }
47
- l !== r && e.setAttribute(n, r);
48
- }, o = (n, r, l = void 0) => {
47
+ s !== r && e.setAttribute(n, r);
48
+ }, o = (n, r, s = void 0) => {
49
49
  if (r == null) {
50
- l !== void 0 && t(n, l ? null : "false");
50
+ s !== void 0 && t(n, s ? null : "false");
51
51
  return;
52
52
  }
53
53
  r ? t(n, "") : t(n, "false");
54
54
  };
55
- t("anchor-id", i ?? null), t("placement", c && c !== "top" ? c : null), t("offset", typeof p == "number" && Number.isFinite(p) ? String(p) : null), t("strategy", f && f !== "fixed" ? f : null), t("variant", a && a !== "default" ? a : null), t("tone", d && d !== "brand" ? d : null), t("radius", b ? String(b) : null), t("size", m && m !== "md" ? m : null), o("arrow", P), o("close-on-outside", A, !0), o("close-on-escape", C, !0), u && i ? e.openFor?.(i) : u ? e.setAttribute("open", "") : u === !1 ? e.close?.() : e.removeAttribute("open");
55
+ t("anchor-id", l ?? null), t("placement", u && u !== "top" ? u : null), t("offset", typeof c == "number" && Number.isFinite(c) ? String(c) : null), t("strategy", p && p !== "fixed" ? p : null), t("variant", f && f !== "default" ? f : null), t("tone", a && a !== "brand" ? a : null), t("radius", b ? String(b) : null), t("size", d && d !== "md" ? d : null), o("arrow", P), o("close-on-outside", A, !0), o("close-on-escape", C, !0), i && l ? e.openFor?.(l) : i ? e.setAttribute("open", "") : i === !1 ? e.close?.() : e.removeAttribute("open");
56
56
  }, [
57
- u,
58
57
  i,
58
+ l,
59
+ u,
59
60
  c,
60
61
  p,
61
- f,
62
62
  P,
63
+ f,
63
64
  a,
64
- d,
65
65
  b,
66
- m,
66
+ d,
67
67
  A,
68
68
  C
69
- ]), s.createElement("ui-selection-popup", { ref: v, ...N }, S);
69
+ ]), _("ui-selection-popup", { ref: m, ...N }, S);
70
70
  });
71
71
  R.displayName = "SelectionPopup";
72
- const h = s.forwardRef(
72
+ const h = v.forwardRef(
73
73
  function({ children: E, ...y }, S) {
74
- return s.createElement("div", { ref: S, slot: "content", ...y }, E);
74
+ return v.createElement("div", { ref: S, slot: "content", ...y }, E);
75
75
  }
76
76
  );
77
77
  h.displayName = "SelectionPopup.Content";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react");require("@editora/ui-core/separator");function u(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=u(c),n=o.forwardRef((e,t)=>o.createElement("ui-separator",{ref:t,...e}));n.displayName="Separator";exports.Separator=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react");require("@editora/ui-core/separator");const c=require("./_internals-BIT_j6Nr.js");function u(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=u(n),o=i.forwardRef((e,t)=>c.createUIElement("ui-separator",{ref:t,...e}));o.displayName="Separator";exports.Separator=o;
@@ -1,6 +1,9 @@
1
- import * as r from "react";
1
+ import * as e from "react";
2
2
  import "@editora/ui-core/separator";
3
- const t = r.forwardRef((a, e) => /* @__PURE__ */ r.createElement("ui-separator", { ref: e, ...a }));
3
+ import { c as o } from "./_internals-CEeSSGD-.mjs";
4
+ const t = e.forwardRef(
5
+ (r, a) => o("ui-separator", { ref: a, ...r })
6
+ );
4
7
  t.displayName = "Separator";
5
8
  export {
6
9
  t as Separator
@@ -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 ye=require("react-dom/server"),Se=e=>e&&e.__esModule?e:{default:e},i=Se(f),ve=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ee=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),q="SidebarGroup",V="SidebarItem";function j(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Ce(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function we(e){const t=[];for(const[r,n]of Object.entries(e))n==null||n===""||t.push(`${Ce(r)}:${String(n)}`);return t.join(";")}function _e(e){return e==="className"?"class":e==="htmlFor"?"for":e}function v(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number")return j(String(e));if(Array.isArray(e))return e.map(a=>v(a)).join("");if(!f.isValidElement(e))return"";if(e.type===i.default.Fragment)return v(e.props.children);if(typeof e.type=="function"){const a=e.type;if(!!a.prototype?.isReactComponent)return"";try{return v(a(e.props))}catch{return""}}if(typeof e.type!="string")return"";const t=e.type,r=e.props,n=[];let u;for(const[a,s]of Object.entries(r)){if(a==="children")continue;if(a==="dangerouslySetInnerHTML"){const d=s;typeof d?.__html=="string"&&(u=d.__html);continue}if(a==="ref"||a==="key"||a==="suppressHydrationWarning"||a==="suppressContentEditableWarning"||a.startsWith("on")||s==null||s===!1)continue;const g=_e(a);if(a==="style"&&typeof s=="object"){const d=we(s);d&&n.push(` style="${j(d)}"`);continue}if(s===!0){n.push(` ${g}`);continue}(typeof s=="string"||typeof s=="number")&&n.push(` ${g}="${j(String(s))}"`)}const b=u??v(r.children);return!b&&Ee.has(t)?`<${t}${n.join("")}>`:`<${t}${n.join("")}>${b}</${t}>`}function N(e,t){return f.isValidElement(e)&&e.type.__sidebarMarker===t}function Ie(e){const t=[],r=[];return f.Children.forEach(e,n=>{if(N(n,q)||N(n,V)){t.push(n);return}n!=null&&n!==!1&&r.push(n)}),{submenuChildren:t,contentChildren:r}}function He(e,t){if(typeof e=="string")return{contentChildren:t};if(e)return{iconHtml:O(e),contentChildren:t};const[r,...n]=t;return f.isValidElement(r)&&(typeof r.type!="string"||r.type==="svg")?{iconHtml:O(r),contentChildren:n}:{contentChildren:t}}function F(e,t=""){const r=[];return f.Children.forEach(e,n=>{if(N(n,q)){const u=n.props.title||t;r.push(...F(n.props.children,u));return}if(N(n,V)){const u=n.props.section||t,b=n.props.icon,{submenuChildren:a,contentChildren:s}=Ie(n.props.children),{iconHtml:g,contentChildren:d}=He(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:g,contentHtml:ke(d),badge:n.props.badge,description:n.props.description,section:u,disabled:n.props.disabled,active:n.props.active,tone:n.props.tone,children:F(a,u)})}}),r}function pe(e){return e.map(t=>({...t,icon:typeof t.icon=="string"?t.icon:void 0,iconHtml:t.iconHtml||O(t.icon),contentHtml:t.contentHtml,children:t.children?pe(t.children):void 0}))}function S(e){return e==null||e===""?null:typeof e=="number"?`${e}px`:String(e)}function O(e){if(!e||typeof e=="string"||!f.isValidElement(e))return;const t=i.default.cloneElement(e,{width:e.props.width??18,height:e.props.height??18,"aria-hidden":!0,focusable:"false"});return v(t)||ye.renderToStaticMarkup(t)||void 0}function ke(e){return e.length&&v(i.default.createElement(i.default.Fragment,null,e))||void 0}function $e(e,t=""){return F(e,t).map((r,n)=>{const u={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&&(u["data-disabled"]=""),r.active&&(u["data-active"]=""),r.children?.length&&(u["data-children"]=JSON.stringify(r.children)),i.default.createElement("div",u,r.label)})}const G=({children:e,...t})=>i.default.createElement("div",{slot:"header",...t},e),T=({children:e,...t})=>i.default.createElement("div",{slot:"search",...t},e),P=({icon:e,style:t,placeholder:r="Search…",...n})=>i.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, #64748b)",boxSizing:"border-box",...t}},i.default.createElement("span",{"aria-hidden":"true",style:{display:"inline-grid",placeItems:"center",width:16,height:16,color:"currentColor"}},e||i.default.createElement("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.default.createElement("circle",{cx:"7",cy:"7",r:"4.75",stroke:"currentColor",strokeWidth:"1.5"}),i.default.createElement("path",{d:"M10.5 10.5L14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))),i.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})=>i.default.createElement("div",{slot:"promo",...t},e),D=({children:e,...t})=>i.default.createElement("div",{slot:"footer",...t},e),L=({children:e})=>i.default.createElement(i.default.Fragment,null,e);L.__sidebarMarker=q;const M=()=>null;M.__sidebarMarker=V;const W=({children:e})=>i.default.createElement(i.default.Fragment,null,$e(e)),be=i.default.forwardRef(function({children:t,collapsed:r,collapsible:n,rail:u,resizable:b,position:a,value:s,items:g,searchQuery:d,variant:w,size:E,density:_,tone:I,radius:H,itemRadius:B,itemGap:J,itemPaddingX:K,itemPaddingY:U,itemHeight:Z,itemFontSize:X,itemLineHeight:Y,sectionLabelTransform:k,elevation:$,showIcons:A,showBadges:R,headless:Q,width:ee,minWidth:te,maxWidth:re,collapsedWidth:ne,storageKey:oe,autoSave:ae,onSelect:ie,onChange:le,onToggle:se,onCollapseChange:ce,onWidthChange:ue,onSearchChange:de,...he},me){const x=f.useRef(null);return f.useImperativeHandle(me,()=>x.current),f.useEffect(()=>{const l=x.current;if(!l)return;const o=p=>{const c=p.detail;c&&ie?.(c)},h=p=>{const c=p.detail;c&&le?.(c)},m=p=>{const c=p.detail?.collapsed;typeof c=="boolean"&&se?.(c)},y=p=>{const c=p.detail?.collapsed;typeof c=="boolean"&&ce?.(c)},C=p=>{const c=p.detail;c&&ue?.(c)},fe=p=>{const c=p.detail?.query;typeof c=="string"&&de?.(c)};return l.addEventListener("select",o),l.addEventListener("change",h),l.addEventListener("toggle",m),l.addEventListener("collapse-change",y),l.addEventListener("width-change",C),l.addEventListener("search-change",fe),()=>{l.removeEventListener("select",o),l.removeEventListener("change",h),l.removeEventListener("toggle",m),l.removeEventListener("collapse-change",y),l.removeEventListener("width-change",C),l.removeEventListener("search-change",fe)}},[ie,le,se,ce,ue,de]),ve(()=>{const l=x.current;if(!l)return;const o=(m,y)=>{const C=l.getAttribute(m);if(y==null){C!=null&&l.removeAttribute(m);return}C!==y&&l.setAttribute(m,y)},h=(m,y)=>{y!=null&&(y?o(m,""):o(m,null))};if(h("collapsed",r),h("collapsible",n),h("rail",u),h("resizable",b),h("headless",Q),h("auto-save",ae),o("position",a&&a!=="left"?a:null),o("value",s!=null&&s!==""?String(s):null),o("search-query",typeof d=="string"&&d!==""?d:null),o("width",ee||null),o("min-width",te||null),o("max-width",re||null),o("collapsed-width",ne||null),o("storage-key",oe||null),g&&g.length)try{o("items",JSON.stringify(pe(g)))}catch{o("items",null)}else o("items",null);o("variant",w&&w!=="surface"?w:null),o("size",E&&E!=="md"&&E!=="2"?E:null),o("density",_&&_!=="default"?_:null),o("tone",I&&I!=="default"?I:null),o("radius",H==null||H===""?null:String(H)),o("item-radius",S(B)),o("item-gap",S(J)),o("item-padding-x",S(K)),o("item-padding-y",S(U)),o("item-height",S(Z)),o("item-font-size",S(X)),o("item-line-height",S(Y)),o("section-label-transform",k&&k!=="none"?k:null),o("elevation",$&&$!=="low"?$:null),typeof A=="boolean"?o("show-icons",A?"true":"false"):o("show-icons",null),typeof R=="boolean"?o("show-badges",R?"true":"false"):o("show-badges",null)},[r,n,u,b,Q,ae,a,s,ee,te,re,ne,oe,g,w,E,_,I,H,B,J,K,U,Z,X,Y,k,d,$,A,R]),i.default.createElement("ui-sidebar",{ref:x,...he},t)});be.displayName="Sidebar";G.displayName="Sidebar.Header";T.displayName="Sidebar.Search";P.displayName="Sidebar.SearchInput";W.displayName="Sidebar.Content";L.displayName="Sidebar.Group";M.displayName="Sidebar.Item";z.displayName="Sidebar.Promo";D.displayName="Sidebar.Footer";const ge=Object.assign(be,{Header:G,Search:T,SearchInput:P,Content:W,Group:L,Item:M,Promo:z,Footer:D});exports.Sidebar=ge;exports.SidebarContent=W;exports.SidebarFooter=D;exports.SidebarGroup=L;exports.SidebarHeader=G;exports.SidebarItem=M;exports.SidebarPromo=z;exports.SidebarSearch=T;exports.SidebarSearchInput=P;exports.default=ge;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("react");require("@editora/ui-core/sidebar");const ye=require("react-dom/server"),Se=require("./_internals-BIT_j6Nr.js"),ve=e=>e&&e.__esModule?e:{default:e},i=ve(f),Ee=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ce=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),O="SidebarGroup",V="SidebarItem";function j(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function we(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(`${we(r)}:${String(n)}`);return t.join(";")}function Ie(e){return e==="className"?"class":e==="htmlFor"?"for":e}function v(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number")return j(String(e));if(Array.isArray(e))return e.map(a=>v(a)).join("");if(!f.isValidElement(e))return"";if(e.type===i.default.Fragment)return v(e.props.children);if(typeof e.type=="function"){const a=e.type;if(!!a.prototype?.isReactComponent)return"";try{return v(a(e.props))}catch{return""}}if(typeof e.type!="string")return"";const t=e.type,r=e.props,n=[];let u;for(const[a,s]of Object.entries(r)){if(a==="children")continue;if(a==="dangerouslySetInnerHTML"){const d=s;typeof d?.__html=="string"&&(u=d.__html);continue}if(a==="ref"||a==="key"||a==="suppressHydrationWarning"||a==="suppressContentEditableWarning"||a.startsWith("on")||s==null||s===!1)continue;const g=Ie(a);if(a==="style"&&typeof s=="object"){const d=_e(s);d&&n.push(` style="${j(d)}"`);continue}if(s===!0){n.push(` ${g}`);continue}(typeof s=="string"||typeof s=="number")&&n.push(` ${g}="${j(String(s))}"`)}const b=u??v(r.children);return!b&&Ce.has(t)?`<${t}${n.join("")}>`:`<${t}${n.join("")}>${b}</${t}>`}function N(e,t){return f.isValidElement(e)&&e.type.__sidebarMarker===t}function He(e){const t=[],r=[];return f.Children.forEach(e,n=>{if(N(n,O)||N(n,V)){t.push(n);return}n!=null&&n!==!1&&r.push(n)}),{submenuChildren:t,contentChildren:r}}function ke(e,t){if(typeof e=="string")return{contentChildren:t};if(e)return{iconHtml:F(e),contentChildren:t};const[r,...n]=t;return f.isValidElement(r)&&(typeof r.type!="string"||r.type==="svg")?{iconHtml:F(r),contentChildren:n}:{contentChildren:t}}function q(e,t=""){const r=[];return f.Children.forEach(e,n=>{if(N(n,O)){const u=n.props.title||t;r.push(...q(n.props.children,u));return}if(N(n,V)){const u=n.props.section||t,b=n.props.icon,{submenuChildren:a,contentChildren:s}=He(n.props.children),{iconHtml:g,contentChildren:d}=ke(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:g,contentHtml:$e(d),badge:n.props.badge,description:n.props.description,section:u,disabled:n.props.disabled,active:n.props.active,tone:n.props.tone,children:q(a,u)})}}),r}function pe(e){return e.map(t=>({...t,icon:typeof t.icon=="string"?t.icon:void 0,iconHtml:t.iconHtml||F(t.icon),contentHtml:t.contentHtml,children:t.children?pe(t.children):void 0}))}function S(e){return e==null||e===""?null:typeof e=="number"?`${e}px`:String(e)}function F(e){if(!e||typeof e=="string"||!f.isValidElement(e))return;const t=i.default.cloneElement(e,{width:e.props.width??18,height:e.props.height??18,"aria-hidden":!0,focusable:"false"});return v(t)||ye.renderToStaticMarkup(t)||void 0}function $e(e){return e.length&&v(i.default.createElement(i.default.Fragment,null,e))||void 0}function xe(e,t=""){return q(e,t).map((r,n)=>{const u={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&&(u["data-disabled"]=""),r.active&&(u["data-active"]=""),r.children?.length&&(u["data-children"]=JSON.stringify(r.children)),i.default.createElement("div",u,r.label)})}const G=({children:e,...t})=>i.default.createElement("div",{slot:"header",...t},e),T=({children:e,...t})=>i.default.createElement("div",{slot:"search",...t},e),P=({icon:e,style:t,placeholder:r="Search…",...n})=>i.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, #64748b)",boxSizing:"border-box",...t}},i.default.createElement("span",{"aria-hidden":"true",style:{display:"inline-grid",placeItems:"center",width:16,height:16,color:"currentColor"}},e||i.default.createElement("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.default.createElement("circle",{cx:"7",cy:"7",r:"4.75",stroke:"currentColor",strokeWidth:"1.5"}),i.default.createElement("path",{d:"M10.5 10.5L14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))),i.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})=>i.default.createElement("div",{slot:"promo",...t},e),D=({children:e,...t})=>i.default.createElement("div",{slot:"footer",...t},e),L=({children:e})=>i.default.createElement(i.default.Fragment,null,e);L.__sidebarMarker=O;const M=()=>null;M.__sidebarMarker=V;const W=({children:e})=>i.default.createElement(i.default.Fragment,null,xe(e)),be=i.default.forwardRef(function({children:t,collapsed:r,collapsible:n,rail:u,resizable:b,position:a,value:s,items:g,searchQuery:d,variant:w,size:E,density:_,tone:I,radius:H,itemRadius:B,itemGap:J,itemPaddingX:U,itemPaddingY:K,itemHeight:Z,itemFontSize:X,itemLineHeight:Y,sectionLabelTransform:k,elevation:$,showIcons:A,showBadges:R,headless:Q,width:ee,minWidth:te,maxWidth:re,collapsedWidth:ne,storageKey:oe,autoSave:ae,onSelect:ie,onChange:le,onToggle:se,onCollapseChange:ce,onWidthChange:ue,onSearchChange:de,...he},me){const x=f.useRef(null);return f.useImperativeHandle(me,()=>x.current),f.useEffect(()=>{const l=x.current;if(!l)return;const o=p=>{const c=p.detail;c&&ie?.(c)},h=p=>{const c=p.detail;c&&le?.(c)},m=p=>{const c=p.detail?.collapsed;typeof c=="boolean"&&se?.(c)},y=p=>{const c=p.detail?.collapsed;typeof c=="boolean"&&ce?.(c)},C=p=>{const c=p.detail;c&&ue?.(c)},fe=p=>{const c=p.detail?.query;typeof c=="string"&&de?.(c)};return l.addEventListener("select",o),l.addEventListener("change",h),l.addEventListener("toggle",m),l.addEventListener("collapse-change",y),l.addEventListener("width-change",C),l.addEventListener("search-change",fe),()=>{l.removeEventListener("select",o),l.removeEventListener("change",h),l.removeEventListener("toggle",m),l.removeEventListener("collapse-change",y),l.removeEventListener("width-change",C),l.removeEventListener("search-change",fe)}},[ie,le,se,ce,ue,de]),Ee(()=>{const l=x.current;if(!l)return;const o=(m,y)=>{const C=l.getAttribute(m);if(y==null){C!=null&&l.removeAttribute(m);return}C!==y&&l.setAttribute(m,y)},h=(m,y)=>{y!=null&&(y?o(m,""):o(m,null))};if(h("collapsed",r),h("collapsible",n),h("rail",u),h("resizable",b),h("headless",Q),h("auto-save",ae),o("position",a&&a!=="left"?a:null),o("value",s!=null&&s!==""?String(s):null),o("search-query",typeof d=="string"&&d!==""?d:null),o("width",ee||null),o("min-width",te||null),o("max-width",re||null),o("collapsed-width",ne||null),o("storage-key",oe||null),g&&g.length)try{o("items",JSON.stringify(pe(g)))}catch{o("items",null)}else o("items",null);o("variant",w&&w!=="surface"?w:null),o("size",E&&E!=="md"&&E!=="2"?E:null),o("density",_&&_!=="default"?_:null),o("tone",I&&I!=="default"?I:null),o("radius",H==null||H===""?null:String(H)),o("item-radius",S(B)),o("item-gap",S(J)),o("item-padding-x",S(U)),o("item-padding-y",S(K)),o("item-height",S(Z)),o("item-font-size",S(X)),o("item-line-height",S(Y)),o("section-label-transform",k&&k!=="none"?k:null),o("elevation",$&&$!=="low"?$:null),typeof A=="boolean"?o("show-icons",A?"true":"false"):o("show-icons",null),typeof R=="boolean"?o("show-badges",R?"true":"false"):o("show-badges",null)},[r,n,u,b,Q,ae,a,s,ee,te,re,ne,oe,g,w,E,_,I,H,B,J,U,K,Z,X,Y,k,d,$,A,R]),Se.createUIElement("ui-sidebar",{ref:x,...he},t)});be.displayName="Sidebar";G.displayName="Sidebar.Header";T.displayName="Sidebar.Search";P.displayName="Sidebar.SearchInput";W.displayName="Sidebar.Content";L.displayName="Sidebar.Group";M.displayName="Sidebar.Item";z.displayName="Sidebar.Promo";D.displayName="Sidebar.Footer";const ge=Object.assign(be,{Header:G,Search:T,SearchInput:P,Content:W,Group:L,Item:M,Promo:z,Footer:D});exports.Sidebar=ge;exports.SidebarContent=W;exports.SidebarFooter=D;exports.SidebarGroup=L;exports.SidebarHeader=G;exports.SidebarItem=M;exports.SidebarPromo=z;exports.SidebarSearch=T;exports.SidebarSearchInput=P;exports.default=ge;
@@ -2,7 +2,8 @@
2
2
  import a, { useRef as ve, useImperativeHandle as Se, useEffect as le, useLayoutEffect as Ee, isValidElement as N, Children as se } from "react";
3
3
  import "@editora/ui-core/sidebar";
4
4
  import { renderToStaticMarkup as we } from "react-dom/server";
5
- const Ce = typeof window < "u" ? Ee : le, He = /* @__PURE__ */ new Set([
5
+ import { c as Ce } from "./_internals-CEeSSGD-.mjs";
6
+ const Ie = typeof window < "u" ? Ee : le, He = /* @__PURE__ */ new Set([
6
7
  "area",
7
8
  "base",
8
9
  "br",
@@ -21,16 +22,16 @@ const Ce = typeof window < "u" ? Ee : le, He = /* @__PURE__ */ new Set([
21
22
  function R(e) {
22
23
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
23
24
  }
24
- function Ie(e) {
25
+ function ke(e) {
25
26
  return e.startsWith("--") ? e : e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`);
26
27
  }
27
- function ke(e) {
28
+ function _e(e) {
28
29
  const t = [];
29
30
  for (const [r, n] of Object.entries(e))
30
- n == null || n === "" || t.push(`${Ie(r)}:${String(n)}`);
31
+ n == null || n === "" || t.push(`${ke(r)}:${String(n)}`);
31
32
  return t.join(";");
32
33
  }
33
- function _e(e) {
34
+ function xe(e) {
34
35
  return e === "className" ? "class" : e === "htmlFor" ? "for" : e;
35
36
  }
36
37
  function v(e) {
@@ -60,9 +61,9 @@ function v(e) {
60
61
  continue;
61
62
  }
62
63
  if (i === "ref" || i === "key" || i === "suppressHydrationWarning" || i === "suppressContentEditableWarning" || i.startsWith("on") || s == null || s === !1) continue;
63
- const b = _e(i);
64
+ const b = xe(i);
64
65
  if (i === "style" && typeof s == "object") {
65
- const d = ke(s);
66
+ const d = _e(s);
66
67
  d && n.push(` style="${R(d)}"`);
67
68
  continue;
68
69
  }
@@ -78,7 +79,7 @@ function v(e) {
78
79
  function $(e, t) {
79
80
  return N(e) && e.type.__sidebarMarker === t;
80
81
  }
81
- function xe(e) {
82
+ function $e(e) {
82
83
  const t = [], r = [];
83
84
  return se.forEach(e, (n) => {
84
85
  if ($(n, F) || $(n, O)) {
@@ -88,7 +89,7 @@ function xe(e) {
88
89
  n != null && n !== !1 && r.push(n);
89
90
  }), { submenuChildren: t, contentChildren: r };
90
91
  }
91
- function $e(e, t) {
92
+ function Ne(e, t) {
92
93
  if (typeof e == "string") return { contentChildren: t };
93
94
  if (e) return { iconHtml: j(e), contentChildren: t };
94
95
  const [r, ...n] = t;
@@ -106,7 +107,7 @@ function M(e, t = "") {
106
107
  return;
107
108
  }
108
109
  if ($(n, O)) {
109
- const u = n.props.section || t, f = n.props.icon, { submenuChildren: i, contentChildren: s } = xe(n.props.children), { iconHtml: b, contentChildren: d } = $e(f, s);
110
+ const u = n.props.section || t, f = n.props.icon, { submenuChildren: i, contentChildren: s } = $e(n.props.children), { iconHtml: b, contentChildren: d } = Ne(f, s);
110
111
  r.push({
111
112
  value: n.props.value,
112
113
  label: n.props.label,
@@ -115,7 +116,7 @@ function M(e, t = "") {
115
116
  rel: n.props.rel,
116
117
  icon: typeof f == "string" ? f : void 0,
117
118
  iconHtml: b,
118
- contentHtml: Ne(d),
119
+ contentHtml: Le(d),
119
120
  badge: n.props.badge,
120
121
  description: n.props.description,
121
122
  section: u,
@@ -149,10 +150,10 @@ function j(e) {
149
150
  });
150
151
  return v(t) || we(t) || void 0;
151
152
  }
152
- function Ne(e) {
153
+ function Le(e) {
153
154
  return e.length && v(/* @__PURE__ */ a.createElement(a.Fragment, null, e)) || void 0;
154
155
  }
155
- function Le(e, t = "") {
156
+ function Ae(e, t = "") {
156
157
  return M(e, t).map((r, n) => {
157
158
  const u = {
158
159
  slot: "item",
@@ -233,7 +234,7 @@ const ue = ({ children: e, ...t }) => /* @__PURE__ */ a.createElement("div", { s
233
234
  G.__sidebarMarker = F;
234
235
  const T = () => null;
235
236
  T.__sidebarMarker = O;
236
- const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null, Le(e)), he = a.forwardRef(function({
237
+ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null, Ae(e)), me = a.forwardRef(function({
237
238
  children: t,
238
239
  collapsed: r,
239
240
  collapsible: n,
@@ -246,8 +247,8 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
246
247
  variant: w,
247
248
  size: S,
248
249
  density: C,
249
- tone: H,
250
- radius: I,
250
+ tone: I,
251
+ radius: H,
251
252
  itemRadius: q,
252
253
  itemGap: z,
253
254
  itemPaddingX: V,
@@ -260,8 +261,8 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
260
261
  showIcons: L,
261
262
  showBadges: A,
262
263
  headless: J,
263
- width: K,
264
- minWidth: U,
264
+ width: U,
265
+ minWidth: K,
265
266
  maxWidth: Z,
266
267
  collapsedWidth: X,
267
268
  storageKey: Y,
@@ -272,7 +273,7 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
272
273
  onCollapseChange: ne,
273
274
  onWidthChange: oe,
274
275
  onSearchChange: ie,
275
- ...me
276
+ ...he
276
277
  }, ye) {
277
278
  const x = ve(null);
278
279
  return Se(ye, () => x.current), le(() => {
@@ -284,10 +285,10 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
284
285
  }, g = (p) => {
285
286
  const c = p.detail;
286
287
  c && te?.(c);
287
- }, h = (p) => {
288
+ }, m = (p) => {
288
289
  const c = p.detail?.collapsed;
289
290
  typeof c == "boolean" && re?.(c);
290
- }, m = (p) => {
291
+ }, h = (p) => {
291
292
  const c = p.detail?.collapsed;
292
293
  typeof c == "boolean" && ne?.(c);
293
294
  }, E = (p) => {
@@ -297,23 +298,23 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
297
298
  const c = p.detail?.query;
298
299
  typeof c == "string" && ie?.(c);
299
300
  };
300
- return l.addEventListener("select", o), l.addEventListener("change", g), l.addEventListener("toggle", h), l.addEventListener("collapse-change", m), l.addEventListener("width-change", E), l.addEventListener("search-change", ae), () => {
301
- l.removeEventListener("select", o), l.removeEventListener("change", g), l.removeEventListener("toggle", h), l.removeEventListener("collapse-change", m), l.removeEventListener("width-change", E), l.removeEventListener("search-change", ae);
301
+ return l.addEventListener("select", o), l.addEventListener("change", g), l.addEventListener("toggle", m), l.addEventListener("collapse-change", h), l.addEventListener("width-change", E), l.addEventListener("search-change", ae), () => {
302
+ l.removeEventListener("select", o), l.removeEventListener("change", g), l.removeEventListener("toggle", m), l.removeEventListener("collapse-change", h), l.removeEventListener("width-change", E), l.removeEventListener("search-change", ae);
302
303
  };
303
- }, [ee, te, re, ne, oe, ie]), Ce(() => {
304
+ }, [ee, te, re, ne, oe, ie]), Ie(() => {
304
305
  const l = x.current;
305
306
  if (!l) return;
306
- const o = (h, m) => {
307
- const E = l.getAttribute(h);
308
- if (m == null) {
309
- E != null && l.removeAttribute(h);
307
+ const o = (m, h) => {
308
+ const E = l.getAttribute(m);
309
+ if (h == null) {
310
+ E != null && l.removeAttribute(m);
310
311
  return;
311
312
  }
312
- E !== m && l.setAttribute(h, m);
313
- }, g = (h, m) => {
314
- m != null && (m ? o(h, "") : o(h, null));
313
+ E !== h && l.setAttribute(m, h);
314
+ }, g = (m, h) => {
315
+ h != null && (h ? o(m, "") : o(m, null));
315
316
  };
316
- if (g("collapsed", r), g("collapsible", n), g("rail", u), g("resizable", f), g("headless", J), g("auto-save", Q), o("position", i && i !== "left" ? i : null), o("value", s != null && s !== "" ? String(s) : null), o("search-query", typeof d == "string" && d !== "" ? d : null), o("width", K || null), o("min-width", U || null), o("max-width", Z || null), o("collapsed-width", X || null), o("storage-key", Y || null), b && b.length)
317
+ if (g("collapsed", r), g("collapsible", n), g("rail", u), g("resizable", f), g("headless", J), g("auto-save", Q), o("position", i && i !== "left" ? i : null), o("value", s != null && s !== "" ? String(s) : null), o("search-query", typeof d == "string" && d !== "" ? d : null), o("width", U || null), o("min-width", K || null), o("max-width", Z || null), o("collapsed-width", X || null), o("storage-key", Y || null), b && b.length)
317
318
  try {
318
319
  o("items", JSON.stringify(ce(b)));
319
320
  } catch {
@@ -321,7 +322,7 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
321
322
  }
322
323
  else
323
324
  o("items", null);
324
- o("variant", w && w !== "surface" ? w : null), o("size", S && S !== "md" && S !== "2" ? S : null), o("density", C && C !== "default" ? C : null), o("tone", H && H !== "default" ? H : null), o("radius", I == null || I === "" ? null : String(I)), o("item-radius", y(q)), o("item-gap", y(z)), o("item-padding-x", y(V)), o("item-padding-y", y(W)), o("item-height", y(B)), o("item-font-size", y(D)), o("item-line-height", y(P)), o(
325
+ o("variant", w && w !== "surface" ? w : null), o("size", S && S !== "md" && S !== "2" ? S : null), o("density", C && C !== "default" ? C : null), o("tone", I && I !== "default" ? I : null), o("radius", H == null || H === "" ? null : String(H)), o("item-radius", y(q)), o("item-gap", y(z)), o("item-padding-x", y(V)), o("item-padding-y", y(W)), o("item-height", y(B)), o("item-font-size", y(D)), o("item-line-height", y(P)), o(
325
326
  "section-label-transform",
326
327
  k && k !== "none" ? k : null
327
328
  ), o("elevation", _ && _ !== "low" ? _ : null), typeof L == "boolean" ? o("show-icons", L ? "true" : "false") : o("show-icons", null), typeof A == "boolean" ? o("show-badges", A ? "true" : "false") : o("show-badges", null);
@@ -334,8 +335,8 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
334
335
  Q,
335
336
  i,
336
337
  s,
337
- K,
338
338
  U,
339
+ K,
339
340
  Z,
340
341
  X,
341
342
  Y,
@@ -343,8 +344,8 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
343
344
  w,
344
345
  S,
345
346
  C,
346
- H,
347
347
  I,
348
+ H,
348
349
  q,
349
350
  z,
350
351
  V,
@@ -357,9 +358,9 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
357
358
  _,
358
359
  L,
359
360
  A
360
- ]), a.createElement("ui-sidebar", { ref: x, ...me }, t);
361
+ ]), Ce("ui-sidebar", { ref: x, ...he }, t);
361
362
  });
362
- he.displayName = "Sidebar";
363
+ me.displayName = "Sidebar";
363
364
  ue.displayName = "Sidebar.Header";
364
365
  de.displayName = "Sidebar.Search";
365
366
  pe.displayName = "Sidebar.SearchInput";
@@ -368,7 +369,7 @@ G.displayName = "Sidebar.Group";
368
369
  T.displayName = "Sidebar.Item";
369
370
  fe.displayName = "Sidebar.Promo";
370
371
  be.displayName = "Sidebar.Footer";
371
- const je = Object.assign(he, {
372
+ const Oe = Object.assign(me, {
372
373
  Header: ue,
373
374
  Search: de,
374
375
  SearchInput: pe,
@@ -379,7 +380,7 @@ const je = Object.assign(he, {
379
380
  Footer: be
380
381
  });
381
382
  export {
382
- je as Sidebar,
383
+ Oe as Sidebar,
383
384
  ge as SidebarContent,
384
385
  be as SidebarFooter,
385
386
  G as SidebarGroup,
@@ -388,5 +389,5 @@ export {
388
389
  fe as SidebarPromo,
389
390
  de as SidebarSearch,
390
391
  pe as SidebarSearchInput,
391
- je as default
392
+ Oe as default
392
393
  };
@@ -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/skeleton");const t=require("./_internals-C0zzLj8J.js"),_=e=>e&&e.__esModule?e:{default:e},A=_(h);function S(e){const{count:i,width:a,height:l,radius:o,gap:c,duration:d,variant:b,animation:s,density:u,tone:r,animated:y,headless:g,...m}=e,f=A.default.useRef(null);return t.useElementAttributes(f,n=>{t.syncNumberAttribute(n,"count",typeof i=="number"&&Number.isFinite(i)?i:void 0),t.syncStringAttribute(n,"width",a??null),t.syncStringAttribute(n,"height",l??null),t.syncStringAttribute(n,"radius",o??null),t.syncStringAttribute(n,"gap",c??null),t.syncStringAttribute(n,"duration",d??null),t.syncStringAttribute(n,"variant",b??null),t.syncStringAttribute(n,"animation",s||null),t.syncStringAttribute(n,"density",u&&u!=="default"?u:null),t.syncStringAttribute(n,"tone",r&&r!=="default"?r:null),t.syncBooleanAttribute(n,"animated",y),t.syncBooleanAttribute(n,"headless",g)},[i,a,l,o,c,d,b,s,u,r,y,g]),A.default.createElement("ui-skeleton",{ref:f,...m})}exports.Skeleton=S;exports.default=S;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=require("react");require("@editora/ui-core/skeleton");const t=require("./_internals-BIT_j6Nr.js"),p=n=>n&&n.__esModule?n:{default:n},k=p(_),a=k.default.forwardRef(function(A,m){const{count:i,width:o,height:l,radius:c,gap:d,duration:b,variant:y,animation:s,density:r,tone:u,animated:g,headless:S,...h}=A,f=t.useForwardedHostRef(m);return t.useElementAttributes(f,e=>{t.syncNumberAttribute(e,"count",typeof i=="number"&&Number.isFinite(i)?i:void 0),t.syncStringAttribute(e,"width",o??null),t.syncStringAttribute(e,"height",l??null),t.syncStringAttribute(e,"radius",c??null),t.syncStringAttribute(e,"gap",d??null),t.syncStringAttribute(e,"duration",b??null),t.syncStringAttribute(e,"variant",y??null),t.syncStringAttribute(e,"animation",s||null),t.syncStringAttribute(e,"density",r&&r!=="default"?r:null),t.syncStringAttribute(e,"tone",u&&u!=="default"?u:null),t.syncBooleanAttribute(e,"animated",g),t.syncBooleanAttribute(e,"headless",S)},[i,o,l,c,d,b,y,s,r,u,g,S]),t.createUIElement("ui-skeleton",{ref:f,...h})});a.displayName="Skeleton";exports.Skeleton=a;exports.default=a;