rsuite 6.0.0-canary-20250315 → 6.0.0-canary-2025031915

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 (654) hide show
  1. package/Accordion/styles/index.css +2 -1
  2. package/AutoComplete/styles/index.css +2 -1
  3. package/Box/styles/index.css +40 -40
  4. package/ButtonToolbar/styles/index.css +4 -0
  5. package/ButtonToolbar/styles/index.less +5 -0
  6. package/Card/styles/index.css +2 -1
  7. package/Cascader/styles/index.css +2 -1
  8. package/CheckPicker/styles/index.css +2 -1
  9. package/CheckTree/styles/index.css +4 -3
  10. package/CheckTree/styles/index.less +1 -1
  11. package/CheckTreePicker/styles/index.css +4 -3
  12. package/DatePicker/styles/index.css +2 -1
  13. package/DateRangePicker/styles/index.css +2 -1
  14. package/Drawer/styles/index.css +2 -1
  15. package/Dropdown/styles/index.css +2 -1
  16. package/Form/styles/index.css +1 -0
  17. package/Form/styles/index.less +2 -0
  18. package/FormGroup/styles/index.css +1 -0
  19. package/InlineEdit/styles/index.css +2 -1
  20. package/InputPicker/styles/index.css +2 -1
  21. package/List/styles/index.css +2 -1
  22. package/Modal/styles/index.css +2 -1
  23. package/MultiCascadeTree/styles/index.css +2 -1
  24. package/MultiCascader/styles/index.css +2 -1
  25. package/Nav/styles/index.css +3 -2
  26. package/Navbar/styles/index.css +2 -1
  27. package/Notification/styles/index.css +2 -1
  28. package/Pagination/styles/index.css +2 -1
  29. package/Panel/styles/index.css +2 -1
  30. package/RadioTile/styles/index.css +4 -0
  31. package/RadioTile/styles/index.less +4 -1
  32. package/SelectPicker/styles/index.css +2 -1
  33. package/Sidebar/styles/index.css +4 -0
  34. package/Sidebar/styles/index.less +8 -1
  35. package/Tabs/styles/index.css +3 -2
  36. package/TagInput/styles/index.css +2 -1
  37. package/TagPicker/styles/index.css +2 -1
  38. package/Text/styles/index.css +12 -31
  39. package/Text/styles/index.less +5 -7
  40. package/TimePicker/styles/index.css +2 -1
  41. package/TimeRangePicker/styles/index.css +2 -1
  42. package/Tree/styles/indent-line.less +1 -1
  43. package/Tree/styles/index.css +4 -3
  44. package/TreePicker/styles/index.css +4 -3
  45. package/cjs/Affix/Affix.d.ts +3 -2
  46. package/cjs/Affix/Affix.js +5 -2
  47. package/cjs/AutoComplete/AutoComplete.d.ts +3 -2
  48. package/cjs/AutoComplete/AutoComplete.js +4 -2
  49. package/cjs/Avatar/Avatar.d.ts +3 -2
  50. package/cjs/AvatarGroup/AvatarGroup.d.ts +3 -2
  51. package/cjs/AvatarGroup/AvatarGroup.js +4 -2
  52. package/cjs/Badge/Badge.d.ts +3 -2
  53. package/cjs/Badge/Badge.js +6 -3
  54. package/cjs/Breadcrumb/Breadcrumb.d.ts +2 -2
  55. package/cjs/Breadcrumb/BreadcrumbItem.d.ts +2 -2
  56. package/cjs/Breadcrumb/BreadcrumbItem.js +4 -2
  57. package/cjs/Button/Button.d.ts +3 -2
  58. package/cjs/Button/Button.js +8 -14
  59. package/cjs/ButtonGroup/ButtonGroup.d.ts +3 -2
  60. package/cjs/ButtonGroup/ButtonGroup.js +5 -2
  61. package/cjs/ButtonToolbar/ButtonToolbar.d.ts +1 -2
  62. package/cjs/ButtonToolbar/ButtonToolbar.js +4 -7
  63. package/cjs/Calendar/Calendar.d.ts +2 -2
  64. package/cjs/Calendar/Calendar.js +7 -6
  65. package/cjs/Card/Card.d.ts +5 -14
  66. package/cjs/Card/Card.js +4 -2
  67. package/cjs/Card/CardBody.d.ts +1 -4
  68. package/cjs/Card/CardBody.js +0 -0
  69. package/cjs/Card/CardFooter.d.ts +1 -4
  70. package/cjs/Card/CardFooter.js +0 -0
  71. package/cjs/Card/CardHeader.d.ts +1 -4
  72. package/cjs/Card/CardHeader.js +0 -0
  73. package/cjs/CardGroup/CardGroup.d.ts +2 -2
  74. package/cjs/CardGroup/CardGroup.js +4 -2
  75. package/cjs/Carousel/Carousel.d.ts +2 -2
  76. package/cjs/Carousel/Carousel.js +5 -2
  77. package/cjs/CascadeTree/CascadeTree.js +4 -2
  78. package/cjs/CascadeTree/types.d.ts +3 -2
  79. package/cjs/Cascader/Cascader.d.ts +1 -1
  80. package/cjs/Cascader/Cascader.js +4 -2
  81. package/cjs/CheckPicker/CheckPicker.js +4 -2
  82. package/cjs/CheckTree/CheckTreeView.js +4 -2
  83. package/cjs/CheckTreePicker/CheckTreePicker.js +4 -2
  84. package/cjs/Checkbox/Checkbox.d.ts +3 -2
  85. package/cjs/Checkbox/Checkbox.js +8 -3
  86. package/cjs/CheckboxGroup/CheckboxGroup.d.ts +3 -2
  87. package/cjs/CheckboxGroup/CheckboxGroup.js +5 -2
  88. package/cjs/Container/Container.d.ts +2 -2
  89. package/cjs/Container/Container.js +5 -2
  90. package/cjs/Content/Content.d.ts +1 -4
  91. package/cjs/Content/Content.js +0 -0
  92. package/cjs/DatePicker/DatePicker.js +4 -2
  93. package/cjs/DateRangePicker/DateRangePicker.js +4 -2
  94. package/cjs/Divider/Divider.d.ts +3 -2
  95. package/cjs/Drawer/Drawer.d.ts +2 -4
  96. package/cjs/Drawer/DrawerActions.d.ts +1 -3
  97. package/cjs/Drawer/DrawerActions.js +0 -0
  98. package/cjs/Drawer/DrawerBody.d.ts +1 -1
  99. package/cjs/Dropdown/DropdownItem.d.ts +3 -2
  100. package/cjs/Dropdown/DropdownItem.js +2 -2
  101. package/cjs/Footer/Footer.d.ts +1 -4
  102. package/cjs/Footer/Footer.js +0 -0
  103. package/cjs/Grid/Col.d.ts +3 -2
  104. package/cjs/Grid/Col.js +5 -2
  105. package/cjs/Grid/Grid.d.ts +2 -2
  106. package/cjs/Grid/Grid.js +5 -2
  107. package/cjs/Grid/Row.d.ts +3 -2
  108. package/cjs/Grid/Row.js +8 -4
  109. package/cjs/Header/Header.d.ts +1 -4
  110. package/cjs/Header/Header.js +0 -0
  111. package/cjs/Heading/Heading.d.ts +2 -2
  112. package/cjs/Heading/Heading.js +4 -2
  113. package/cjs/HeadingGroup/HeadingGroup.d.ts +1 -4
  114. package/cjs/HeadingGroup/HeadingGroup.js +0 -0
  115. package/cjs/Highlight/Highlight.d.ts +2 -2
  116. package/cjs/Highlight/Highlight.js +4 -2
  117. package/cjs/Image/Image.d.ts +2 -2
  118. package/cjs/Image/Image.js +8 -8
  119. package/cjs/Image/ImageWrapper.d.ts +3 -4
  120. package/cjs/Image/ImageWrapper.js +0 -0
  121. package/cjs/InlineEdit/InlineEdit.d.ts +2 -2
  122. package/cjs/InlineEdit/InlineEdit.js +4 -2
  123. package/cjs/Input/Input.d.ts +3 -2
  124. package/cjs/Input/Input.js +5 -2
  125. package/cjs/InputGroup/InputGroup.d.ts +3 -2
  126. package/cjs/InputGroup/InputGroup.js +5 -2
  127. package/cjs/InputGroup/InputGroupAddon.d.ts +2 -2
  128. package/cjs/InputGroup/InputGroupAddon.js +5 -2
  129. package/cjs/InputNumber/InputNumber.d.ts +3 -2
  130. package/cjs/InputNumber/InputNumber.js +5 -2
  131. package/cjs/InputPicker/InputPicker.d.ts +2 -2
  132. package/cjs/InputPicker/InputPicker.js +14 -5
  133. package/cjs/Kbd/Kbd.d.ts +3 -2
  134. package/cjs/Kbd/Kbd.js +5 -2
  135. package/cjs/List/List.d.ts +2 -2
  136. package/cjs/List/List.js +6 -5
  137. package/cjs/List/ListItem.d.ts +2 -2
  138. package/cjs/List/ListItem.js +6 -5
  139. package/cjs/Loader/Loader.d.ts +3 -2
  140. package/cjs/Loader/Loader.js +6 -5
  141. package/cjs/Menu/Menu.d.ts +3 -2
  142. package/cjs/Menu/Menu.js +5 -1
  143. package/cjs/Menu/MenuItem.d.ts +3 -2
  144. package/cjs/Menu/MenuItem.js +2 -2
  145. package/cjs/Menu/MenuSeparator.d.ts +2 -2
  146. package/cjs/Menu/MenuSeparator.js +6 -4
  147. package/cjs/Message/Message.d.ts +3 -2
  148. package/cjs/Message/Message.js +4 -2
  149. package/cjs/Modal/Modal.d.ts +2 -4
  150. package/cjs/Modal/ModalBody.d.ts +3 -3
  151. package/cjs/Modal/ModalBody.js +5 -2
  152. package/cjs/Modal/ModalDialog.d.ts +3 -2
  153. package/cjs/Modal/ModalDialog.js +4 -2
  154. package/cjs/Modal/ModalFooter.d.ts +1 -3
  155. package/cjs/Modal/ModalHeader.d.ts +2 -2
  156. package/cjs/Modal/ModalHeader.js +5 -2
  157. package/cjs/Modal/ModalTitle.js +4 -2
  158. package/cjs/MultiCascadeTree/MultiCascadeTree.js +4 -2
  159. package/cjs/MultiCascadeTree/types.d.ts +2 -2
  160. package/cjs/MultiCascader/MultiCascader.js +4 -2
  161. package/cjs/Nav/Nav.d.ts +3 -2
  162. package/cjs/Nav/Nav.js +7 -3
  163. package/cjs/Nav/NavDropdown.d.ts +4 -3
  164. package/cjs/Nav/NavDropdown.js +4 -2
  165. package/cjs/Nav/NavDropdownItem.d.ts +3 -2
  166. package/cjs/Nav/NavDropdownItem.js +4 -4
  167. package/cjs/Nav/NavDropdownToggle.d.ts +4 -3
  168. package/cjs/Nav/NavDropdownToggle.js +5 -2
  169. package/cjs/Nav/NavItem.d.ts +3 -2
  170. package/cjs/Nav/NavItem.js +4 -2
  171. package/cjs/Navbar/Navbar.d.ts +4 -8
  172. package/cjs/Navbar/Navbar.js +5 -2
  173. package/cjs/Navbar/NavbarBrand.d.ts +1 -5
  174. package/cjs/Navbar/NavbarBrand.js +0 -0
  175. package/cjs/Navbar/NavbarContent.d.ts +1 -1
  176. package/cjs/Navbar/NavbarDropdown.d.ts +2 -1
  177. package/cjs/Navbar/NavbarDropdown.js +4 -2
  178. package/cjs/Navbar/NavbarDropdownItem.d.ts +4 -3
  179. package/cjs/Navbar/NavbarDropdownItem.js +7 -7
  180. package/cjs/Navbar/NavbarDropdownToggle.d.ts +4 -3
  181. package/cjs/Navbar/NavbarDropdownToggle.js +5 -2
  182. package/cjs/Navbar/NavbarItem.d.ts +3 -2
  183. package/cjs/Navbar/NavbarItem.js +5 -3
  184. package/cjs/Notification/Notification.d.ts +3 -2
  185. package/cjs/Notification/Notification.js +4 -2
  186. package/cjs/Pagination/Pagination.d.ts +3 -2
  187. package/cjs/Pagination/Pagination.js +5 -3
  188. package/cjs/Pagination/PaginationGroup.js +4 -2
  189. package/cjs/Panel/Panel.d.ts +3 -2
  190. package/cjs/Panel/Panel.js +5 -3
  191. package/cjs/Panel/PanelBody.d.ts +1 -1
  192. package/cjs/Panel/PanelBody.js +1 -1
  193. package/cjs/Panel/PanelHeader.d.ts +2 -2
  194. package/cjs/Panel/PanelHeader.js +4 -2
  195. package/cjs/PanelGroup/PanelGroup.d.ts +2 -2
  196. package/cjs/PanelGroup/PanelGroup.js +5 -2
  197. package/cjs/Placeholder/PlaceholderGraph.d.ts +2 -2
  198. package/cjs/Placeholder/PlaceholderGraph.js +8 -8
  199. package/cjs/Placeholder/PlaceholderGrid.d.ts +2 -2
  200. package/cjs/Placeholder/PlaceholderGrid.js +8 -8
  201. package/cjs/Placeholder/PlaceholderParagraph.d.ts +2 -2
  202. package/cjs/Placeholder/PlaceholderParagraph.js +8 -8
  203. package/cjs/Popover/Popover.d.ts +2 -2
  204. package/cjs/Popover/Popover.js +6 -5
  205. package/cjs/Progress/ProgressCircle.d.ts +2 -2
  206. package/cjs/Progress/ProgressCircle.js +4 -2
  207. package/cjs/Progress/ProgressLine.d.ts +2 -2
  208. package/cjs/Progress/ProgressLine.js +4 -2
  209. package/cjs/Radio/Radio.d.ts +3 -2
  210. package/cjs/Radio/Radio.js +8 -5
  211. package/cjs/RadioGroup/RadioGroup.d.ts +3 -2
  212. package/cjs/RadioGroup/RadioGroup.js +4 -2
  213. package/cjs/RadioTile/RadioTile.d.ts +4 -5
  214. package/cjs/RadioTile/RadioTile.js +6 -8
  215. package/cjs/RadioTileGroup/RadioTileGroup.d.ts +3 -2
  216. package/cjs/RadioTileGroup/RadioTileGroup.js +6 -5
  217. package/cjs/RangeSlider/RangeSlider.js +5 -3
  218. package/cjs/Rate/Character.d.ts +2 -2
  219. package/cjs/Rate/Character.js +5 -3
  220. package/cjs/Rate/Rate.d.ts +3 -2
  221. package/cjs/Rate/Rate.js +4 -2
  222. package/cjs/SafeAnchor/SafeAnchor.d.ts +2 -2
  223. package/cjs/SafeAnchor/SafeAnchor.js +4 -2
  224. package/cjs/Schema/Schema.d.ts +1 -0
  225. package/cjs/Schema/Schema.js +8 -0
  226. package/cjs/SelectPicker/SelectPicker.js +4 -2
  227. package/cjs/Sidebar/Sidebar.d.ts +2 -2
  228. package/cjs/Sidebar/Sidebar.js +7 -10
  229. package/cjs/Sidenav/ExpandedSidenavDropdown.d.ts +4 -3
  230. package/cjs/Sidenav/ExpandedSidenavDropdown.js +6 -6
  231. package/cjs/Sidenav/ExpandedSidenavDropdownItem.d.ts +3 -2
  232. package/cjs/Sidenav/ExpandedSidenavDropdownItem.js +2 -2
  233. package/cjs/Sidenav/ExpandedSidenavDropdownMenu.d.ts +3 -2
  234. package/cjs/Sidenav/ExpandedSidenavDropdownMenu.js +6 -5
  235. package/cjs/Sidenav/Sidenav.d.ts +6 -14
  236. package/cjs/Sidenav/Sidenav.js +5 -2
  237. package/cjs/Sidenav/SidenavBody.d.ts +1 -3
  238. package/cjs/Sidenav/SidenavBody.js +0 -0
  239. package/cjs/Sidenav/SidenavDropdown.d.ts +4 -7
  240. package/cjs/Sidenav/SidenavDropdown.js +7 -5
  241. package/cjs/Sidenav/SidenavDropdownCollapse.d.ts +2 -2
  242. package/cjs/Sidenav/SidenavDropdownCollapse.js +4 -1
  243. package/cjs/Sidenav/SidenavDropdownItem.d.ts +3 -2
  244. package/cjs/Sidenav/SidenavDropdownItem.js +7 -7
  245. package/cjs/Sidenav/SidenavFooter.d.ts +1 -3
  246. package/cjs/Sidenav/SidenavGroupLabel.d.ts +1 -3
  247. package/cjs/Sidenav/SidenavHeader.d.ts +1 -3
  248. package/cjs/Sidenav/SidenavHeader.js +0 -0
  249. package/cjs/Sidenav/SidenavItem.d.ts +3 -2
  250. package/cjs/Sidenav/SidenavItem.js +7 -4
  251. package/cjs/Sidenav/SidenavToggle.d.ts +2 -2
  252. package/cjs/Sidenav/SidenavToggle.js +6 -4
  253. package/cjs/Slider/Graduated.d.ts +2 -2
  254. package/cjs/Slider/Graduated.js +8 -4
  255. package/cjs/Slider/Handle.d.ts +2 -2
  256. package/cjs/Slider/Handle.js +4 -2
  257. package/cjs/Slider/Mark.d.ts +2 -2
  258. package/cjs/Slider/Mark.js +4 -2
  259. package/cjs/Slider/ProgressBar.d.ts +2 -2
  260. package/cjs/Slider/ProgressBar.js +8 -4
  261. package/cjs/Slider/Slider.d.ts +3 -2
  262. package/cjs/Slider/Slider.js +7 -5
  263. package/cjs/Stack/Stack.d.ts +3 -2
  264. package/cjs/Stack/Stack.js +0 -1
  265. package/cjs/Stack/StackItem.d.ts +2 -2
  266. package/cjs/Stack/StackItem.js +4 -2
  267. package/cjs/Stat/Stat.d.ts +4 -10
  268. package/cjs/Stat/Stat.js +4 -2
  269. package/cjs/Stat/StatHelpText.d.ts +1 -4
  270. package/cjs/Stat/StatHelpText.js +0 -0
  271. package/cjs/Stat/StatLabel.d.ts +2 -2
  272. package/cjs/Stat/StatLabel.js +4 -2
  273. package/cjs/Stat/StatTrend.d.ts +2 -2
  274. package/cjs/Stat/StatTrend.js +4 -2
  275. package/cjs/Stat/StatValue.d.ts +2 -2
  276. package/cjs/Stat/StatValue.js +4 -2
  277. package/cjs/Stat/StatValueUnit.d.ts +1 -4
  278. package/cjs/Stat/StatValueUnit.js +0 -0
  279. package/cjs/StatGroup/StatGroup.d.ts +2 -2
  280. package/cjs/StatGroup/StatGroup.js +4 -2
  281. package/cjs/Steps/Steps.d.ts +2 -2
  282. package/cjs/Steps/Steps.js +5 -3
  283. package/cjs/Tabs/TabPanel.d.ts +2 -2
  284. package/cjs/Tabs/TabPanel.js +4 -2
  285. package/cjs/Tabs/Tabs.d.ts +2 -2
  286. package/cjs/Tabs/Tabs.js +4 -2
  287. package/cjs/Tag/Tag.d.ts +3 -2
  288. package/cjs/Tag/Tag.js +4 -2
  289. package/cjs/TagGroup/TagGroup.d.ts +1 -3
  290. package/cjs/TagGroup/TagGroup.js +0 -0
  291. package/cjs/Text/Text.d.ts +4 -4
  292. package/cjs/Text/Text.js +10 -21
  293. package/cjs/Timeline/Timeline.d.ts +2 -2
  294. package/cjs/Timeline/Timeline.js +5 -3
  295. package/cjs/Timeline/TimelineItem.d.ts +2 -2
  296. package/cjs/Timeline/TimelineItem.js +5 -3
  297. package/cjs/Toggle/Toggle.d.ts +3 -2
  298. package/cjs/Toggle/Toggle.js +5 -3
  299. package/cjs/Tooltip/Tooltip.d.ts +3 -2
  300. package/cjs/Tooltip/Tooltip.js +4 -2
  301. package/cjs/Tree/Tree.d.ts +1 -1
  302. package/cjs/Tree/TreeNode.d.ts +2 -2
  303. package/cjs/Tree/TreeNode.js +6 -4
  304. package/cjs/Tree/TreeView.js +4 -2
  305. package/cjs/Tree/types.d.ts +2 -2
  306. package/cjs/TreePicker/TreePicker.d.ts +1 -1
  307. package/cjs/TreePicker/TreePicker.js +4 -2
  308. package/cjs/Uploader/UploadFileItem.d.ts +2 -2
  309. package/cjs/Uploader/UploadFileItem.js +11 -4
  310. package/cjs/Uploader/Uploader.d.ts +2 -2
  311. package/cjs/Uploader/Uploader.js +4 -2
  312. package/cjs/VisuallyHidden/VisuallyHidden.d.ts +1 -4
  313. package/cjs/VisuallyHidden/VisuallyHidden.js +0 -0
  314. package/cjs/internals/Box/Box.d.ts +12 -8
  315. package/cjs/internals/Box/Box.js +16 -14
  316. package/cjs/internals/Box/utils.js +5 -5
  317. package/cjs/internals/Menu/useRenderMenuItem.d.ts +1 -1
  318. package/cjs/internals/Menu/useRenderMenuItem.js +17 -8
  319. package/cjs/internals/Overlay/Modal.d.ts +3 -2
  320. package/cjs/internals/Overlay/Modal.js +5 -2
  321. package/cjs/internals/Picker/PickerToggle.d.ts +1 -1
  322. package/cjs/internals/Picker/ToggleButton.d.ts +2 -2
  323. package/cjs/internals/Picker/ToggleButton.js +0 -0
  324. package/cjs/internals/Picker/hooks/useCombobox.d.ts +1 -1
  325. package/cjs/internals/Plaintext/Plaintext.d.ts +2 -2
  326. package/cjs/internals/Plaintext/Plaintext.js +4 -2
  327. package/cjs/internals/Tree/TreeView.d.ts +2 -2
  328. package/cjs/internals/Tree/TreeView.js +4 -2
  329. package/cjs/internals/types/picker.d.ts +2 -2
  330. package/cjs/internals/utils/colours.d.ts +1 -1
  331. package/cjs/internals/utils/createComponent.d.ts +4 -3
  332. package/cjs/internals/utils/createComponent.js +8 -5
  333. package/cjs/internals/utils/sizes.d.ts +4 -1
  334. package/cjs/internals/utils/sizes.js +9 -3
  335. package/cjs/internals/utils/style-sheet/css.d.ts +1 -1
  336. package/cjs/internals/utils/style-sheet/css.js +4 -1
  337. package/cjs/internals/utils/style-sheet/styles.d.ts +2 -2
  338. package/cjs/internals/utils/style-sheet/styles.js +6 -6
  339. package/dist/rsuite-no-reset-rtl.css +76 -70
  340. package/dist/rsuite-no-reset-rtl.min.css +1 -1
  341. package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
  342. package/dist/rsuite-no-reset.css +76 -70
  343. package/dist/rsuite-no-reset.min.css +1 -1
  344. package/dist/rsuite-no-reset.min.css.map +1 -1
  345. package/dist/rsuite-rtl.css +76 -70
  346. package/dist/rsuite-rtl.min.css +1 -1
  347. package/dist/rsuite-rtl.min.css.map +1 -1
  348. package/dist/rsuite.css +76 -70
  349. package/dist/rsuite.js +131 -131
  350. package/dist/rsuite.min.css +1 -1
  351. package/dist/rsuite.min.css.map +1 -1
  352. package/dist/rsuite.min.js +1 -1
  353. package/dist/rsuite.min.js.map +1 -1
  354. package/esm/Affix/Affix.d.ts +3 -2
  355. package/esm/Affix/Affix.js +5 -2
  356. package/esm/AutoComplete/AutoComplete.d.ts +3 -2
  357. package/esm/AutoComplete/AutoComplete.js +4 -2
  358. package/esm/Avatar/Avatar.d.ts +3 -2
  359. package/esm/AvatarGroup/AvatarGroup.d.ts +3 -2
  360. package/esm/AvatarGroup/AvatarGroup.js +4 -2
  361. package/esm/Badge/Badge.d.ts +3 -2
  362. package/esm/Badge/Badge.js +6 -3
  363. package/esm/Breadcrumb/Breadcrumb.d.ts +2 -2
  364. package/esm/Breadcrumb/BreadcrumbItem.d.ts +2 -2
  365. package/esm/Breadcrumb/BreadcrumbItem.js +4 -2
  366. package/esm/Button/Button.d.ts +3 -2
  367. package/esm/Button/Button.js +8 -14
  368. package/esm/ButtonGroup/ButtonGroup.d.ts +3 -2
  369. package/esm/ButtonGroup/ButtonGroup.js +5 -2
  370. package/esm/ButtonToolbar/ButtonToolbar.d.ts +1 -2
  371. package/esm/ButtonToolbar/ButtonToolbar.js +4 -7
  372. package/esm/Calendar/Calendar.d.ts +2 -2
  373. package/esm/Calendar/Calendar.js +7 -6
  374. package/esm/Card/Card.d.ts +5 -14
  375. package/esm/Card/Card.js +4 -2
  376. package/esm/Card/CardBody.d.ts +1 -4
  377. package/esm/Card/CardBody.js +0 -0
  378. package/esm/Card/CardFooter.d.ts +1 -4
  379. package/esm/Card/CardFooter.js +0 -0
  380. package/esm/Card/CardHeader.d.ts +1 -4
  381. package/esm/Card/CardHeader.js +0 -0
  382. package/esm/CardGroup/CardGroup.d.ts +2 -2
  383. package/esm/CardGroup/CardGroup.js +4 -2
  384. package/esm/Carousel/Carousel.d.ts +2 -2
  385. package/esm/Carousel/Carousel.js +5 -2
  386. package/esm/CascadeTree/CascadeTree.js +4 -2
  387. package/esm/CascadeTree/types.d.ts +3 -2
  388. package/esm/Cascader/Cascader.d.ts +1 -1
  389. package/esm/Cascader/Cascader.js +4 -2
  390. package/esm/CheckPicker/CheckPicker.js +4 -2
  391. package/esm/CheckTree/CheckTreeView.js +4 -2
  392. package/esm/CheckTreePicker/CheckTreePicker.js +4 -2
  393. package/esm/Checkbox/Checkbox.d.ts +3 -2
  394. package/esm/Checkbox/Checkbox.js +8 -3
  395. package/esm/CheckboxGroup/CheckboxGroup.d.ts +3 -2
  396. package/esm/CheckboxGroup/CheckboxGroup.js +5 -2
  397. package/esm/Container/Container.d.ts +2 -2
  398. package/esm/Container/Container.js +5 -2
  399. package/esm/Content/Content.d.ts +1 -4
  400. package/esm/Content/Content.js +0 -0
  401. package/esm/DatePicker/DatePicker.js +4 -2
  402. package/esm/DateRangePicker/DateRangePicker.js +4 -2
  403. package/esm/Divider/Divider.d.ts +3 -2
  404. package/esm/Drawer/Drawer.d.ts +2 -4
  405. package/esm/Drawer/DrawerActions.d.ts +1 -3
  406. package/esm/Drawer/DrawerActions.js +0 -0
  407. package/esm/Drawer/DrawerBody.d.ts +1 -1
  408. package/esm/Dropdown/DropdownItem.d.ts +3 -2
  409. package/esm/Dropdown/DropdownItem.js +2 -2
  410. package/esm/Footer/Footer.d.ts +1 -4
  411. package/esm/Footer/Footer.js +0 -0
  412. package/esm/Grid/Col.d.ts +3 -2
  413. package/esm/Grid/Col.js +5 -2
  414. package/esm/Grid/Grid.d.ts +2 -2
  415. package/esm/Grid/Grid.js +5 -2
  416. package/esm/Grid/Row.d.ts +3 -2
  417. package/esm/Grid/Row.js +8 -4
  418. package/esm/Header/Header.d.ts +1 -4
  419. package/esm/Header/Header.js +0 -0
  420. package/esm/Heading/Heading.d.ts +2 -2
  421. package/esm/Heading/Heading.js +4 -2
  422. package/esm/HeadingGroup/HeadingGroup.d.ts +1 -4
  423. package/esm/HeadingGroup/HeadingGroup.js +0 -0
  424. package/esm/Highlight/Highlight.d.ts +2 -2
  425. package/esm/Highlight/Highlight.js +4 -2
  426. package/esm/Image/Image.d.ts +2 -2
  427. package/esm/Image/Image.js +8 -8
  428. package/esm/Image/ImageWrapper.d.ts +3 -4
  429. package/esm/Image/ImageWrapper.js +0 -0
  430. package/esm/InlineEdit/InlineEdit.d.ts +2 -2
  431. package/esm/InlineEdit/InlineEdit.js +4 -2
  432. package/esm/Input/Input.d.ts +3 -2
  433. package/esm/Input/Input.js +5 -2
  434. package/esm/InputGroup/InputGroup.d.ts +3 -2
  435. package/esm/InputGroup/InputGroup.js +5 -2
  436. package/esm/InputGroup/InputGroupAddon.d.ts +2 -2
  437. package/esm/InputGroup/InputGroupAddon.js +5 -2
  438. package/esm/InputNumber/InputNumber.d.ts +3 -2
  439. package/esm/InputNumber/InputNumber.js +5 -2
  440. package/esm/InputPicker/InputPicker.d.ts +2 -2
  441. package/esm/InputPicker/InputPicker.js +14 -5
  442. package/esm/Kbd/Kbd.d.ts +3 -2
  443. package/esm/Kbd/Kbd.js +5 -2
  444. package/esm/List/List.d.ts +2 -2
  445. package/esm/List/List.js +6 -5
  446. package/esm/List/ListItem.d.ts +2 -2
  447. package/esm/List/ListItem.js +6 -5
  448. package/esm/Loader/Loader.d.ts +3 -2
  449. package/esm/Loader/Loader.js +6 -5
  450. package/esm/Menu/Menu.d.ts +3 -2
  451. package/esm/Menu/Menu.js +5 -1
  452. package/esm/Menu/MenuItem.d.ts +3 -2
  453. package/esm/Menu/MenuItem.js +2 -2
  454. package/esm/Menu/MenuSeparator.d.ts +2 -2
  455. package/esm/Menu/MenuSeparator.js +6 -4
  456. package/esm/Message/Message.d.ts +3 -2
  457. package/esm/Message/Message.js +4 -2
  458. package/esm/Modal/Modal.d.ts +2 -4
  459. package/esm/Modal/ModalBody.d.ts +3 -3
  460. package/esm/Modal/ModalBody.js +5 -2
  461. package/esm/Modal/ModalDialog.d.ts +3 -2
  462. package/esm/Modal/ModalDialog.js +4 -2
  463. package/esm/Modal/ModalFooter.d.ts +1 -3
  464. package/esm/Modal/ModalHeader.d.ts +2 -2
  465. package/esm/Modal/ModalHeader.js +5 -2
  466. package/esm/Modal/ModalTitle.js +4 -2
  467. package/esm/MultiCascadeTree/MultiCascadeTree.js +4 -2
  468. package/esm/MultiCascadeTree/types.d.ts +2 -2
  469. package/esm/MultiCascader/MultiCascader.js +4 -2
  470. package/esm/Nav/Nav.d.ts +3 -2
  471. package/esm/Nav/Nav.js +7 -3
  472. package/esm/Nav/NavDropdown.d.ts +4 -3
  473. package/esm/Nav/NavDropdown.js +4 -2
  474. package/esm/Nav/NavDropdownItem.d.ts +3 -2
  475. package/esm/Nav/NavDropdownItem.js +4 -4
  476. package/esm/Nav/NavDropdownToggle.d.ts +4 -3
  477. package/esm/Nav/NavDropdownToggle.js +5 -2
  478. package/esm/Nav/NavItem.d.ts +3 -2
  479. package/esm/Nav/NavItem.js +4 -2
  480. package/esm/Navbar/Navbar.d.ts +4 -8
  481. package/esm/Navbar/Navbar.js +5 -2
  482. package/esm/Navbar/NavbarBrand.d.ts +1 -5
  483. package/esm/Navbar/NavbarBrand.js +0 -0
  484. package/esm/Navbar/NavbarContent.d.ts +1 -1
  485. package/esm/Navbar/NavbarDropdown.d.ts +2 -1
  486. package/esm/Navbar/NavbarDropdown.js +4 -2
  487. package/esm/Navbar/NavbarDropdownItem.d.ts +4 -3
  488. package/esm/Navbar/NavbarDropdownItem.js +7 -7
  489. package/esm/Navbar/NavbarDropdownToggle.d.ts +4 -3
  490. package/esm/Navbar/NavbarDropdownToggle.js +5 -2
  491. package/esm/Navbar/NavbarItem.d.ts +3 -2
  492. package/esm/Navbar/NavbarItem.js +5 -3
  493. package/esm/Notification/Notification.d.ts +3 -2
  494. package/esm/Notification/Notification.js +4 -2
  495. package/esm/Pagination/Pagination.d.ts +3 -2
  496. package/esm/Pagination/Pagination.js +5 -3
  497. package/esm/Pagination/PaginationGroup.js +4 -2
  498. package/esm/Panel/Panel.d.ts +3 -2
  499. package/esm/Panel/Panel.js +5 -3
  500. package/esm/Panel/PanelBody.d.ts +1 -1
  501. package/esm/Panel/PanelBody.js +1 -1
  502. package/esm/Panel/PanelHeader.d.ts +2 -2
  503. package/esm/Panel/PanelHeader.js +4 -2
  504. package/esm/PanelGroup/PanelGroup.d.ts +2 -2
  505. package/esm/PanelGroup/PanelGroup.js +5 -2
  506. package/esm/Placeholder/PlaceholderGraph.d.ts +2 -2
  507. package/esm/Placeholder/PlaceholderGraph.js +8 -8
  508. package/esm/Placeholder/PlaceholderGrid.d.ts +2 -2
  509. package/esm/Placeholder/PlaceholderGrid.js +8 -8
  510. package/esm/Placeholder/PlaceholderParagraph.d.ts +2 -2
  511. package/esm/Placeholder/PlaceholderParagraph.js +8 -8
  512. package/esm/Popover/Popover.d.ts +2 -2
  513. package/esm/Popover/Popover.js +6 -5
  514. package/esm/Progress/ProgressCircle.d.ts +2 -2
  515. package/esm/Progress/ProgressCircle.js +4 -2
  516. package/esm/Progress/ProgressLine.d.ts +2 -2
  517. package/esm/Progress/ProgressLine.js +4 -2
  518. package/esm/Radio/Radio.d.ts +3 -2
  519. package/esm/Radio/Radio.js +8 -5
  520. package/esm/RadioGroup/RadioGroup.d.ts +3 -2
  521. package/esm/RadioGroup/RadioGroup.js +4 -2
  522. package/esm/RadioTile/RadioTile.d.ts +4 -5
  523. package/esm/RadioTile/RadioTile.js +6 -8
  524. package/esm/RadioTileGroup/RadioTileGroup.d.ts +3 -2
  525. package/esm/RadioTileGroup/RadioTileGroup.js +6 -5
  526. package/esm/RangeSlider/RangeSlider.js +5 -3
  527. package/esm/Rate/Character.d.ts +2 -2
  528. package/esm/Rate/Character.js +5 -3
  529. package/esm/Rate/Rate.d.ts +3 -2
  530. package/esm/Rate/Rate.js +4 -2
  531. package/esm/SafeAnchor/SafeAnchor.d.ts +2 -2
  532. package/esm/SafeAnchor/SafeAnchor.js +4 -2
  533. package/esm/Schema/Schema.d.ts +1 -0
  534. package/esm/Schema/Schema.js +1 -0
  535. package/esm/SelectPicker/SelectPicker.js +4 -2
  536. package/esm/Sidebar/Sidebar.d.ts +2 -2
  537. package/esm/Sidebar/Sidebar.js +8 -11
  538. package/esm/Sidenav/ExpandedSidenavDropdown.d.ts +4 -3
  539. package/esm/Sidenav/ExpandedSidenavDropdown.js +6 -6
  540. package/esm/Sidenav/ExpandedSidenavDropdownItem.d.ts +3 -2
  541. package/esm/Sidenav/ExpandedSidenavDropdownItem.js +2 -2
  542. package/esm/Sidenav/ExpandedSidenavDropdownMenu.d.ts +3 -2
  543. package/esm/Sidenav/ExpandedSidenavDropdownMenu.js +6 -5
  544. package/esm/Sidenav/Sidenav.d.ts +6 -14
  545. package/esm/Sidenav/Sidenav.js +5 -2
  546. package/esm/Sidenav/SidenavBody.d.ts +1 -3
  547. package/esm/Sidenav/SidenavBody.js +0 -0
  548. package/esm/Sidenav/SidenavDropdown.d.ts +4 -7
  549. package/esm/Sidenav/SidenavDropdown.js +7 -5
  550. package/esm/Sidenav/SidenavDropdownCollapse.d.ts +2 -2
  551. package/esm/Sidenav/SidenavDropdownCollapse.js +4 -1
  552. package/esm/Sidenav/SidenavDropdownItem.d.ts +3 -2
  553. package/esm/Sidenav/SidenavDropdownItem.js +7 -7
  554. package/esm/Sidenav/SidenavFooter.d.ts +1 -3
  555. package/esm/Sidenav/SidenavGroupLabel.d.ts +1 -3
  556. package/esm/Sidenav/SidenavHeader.d.ts +1 -3
  557. package/esm/Sidenav/SidenavHeader.js +0 -0
  558. package/esm/Sidenav/SidenavItem.d.ts +3 -2
  559. package/esm/Sidenav/SidenavItem.js +7 -4
  560. package/esm/Sidenav/SidenavToggle.d.ts +2 -2
  561. package/esm/Sidenav/SidenavToggle.js +7 -5
  562. package/esm/Slider/Graduated.d.ts +2 -2
  563. package/esm/Slider/Graduated.js +8 -4
  564. package/esm/Slider/Handle.d.ts +2 -2
  565. package/esm/Slider/Handle.js +4 -2
  566. package/esm/Slider/Mark.d.ts +2 -2
  567. package/esm/Slider/Mark.js +4 -2
  568. package/esm/Slider/ProgressBar.d.ts +2 -2
  569. package/esm/Slider/ProgressBar.js +8 -4
  570. package/esm/Slider/Slider.d.ts +3 -2
  571. package/esm/Slider/Slider.js +7 -5
  572. package/esm/Stack/Stack.d.ts +3 -2
  573. package/esm/Stack/Stack.js +0 -1
  574. package/esm/Stack/StackItem.d.ts +2 -2
  575. package/esm/Stack/StackItem.js +4 -2
  576. package/esm/Stat/Stat.d.ts +4 -10
  577. package/esm/Stat/Stat.js +4 -2
  578. package/esm/Stat/StatHelpText.d.ts +1 -4
  579. package/esm/Stat/StatHelpText.js +0 -0
  580. package/esm/Stat/StatLabel.d.ts +2 -2
  581. package/esm/Stat/StatLabel.js +4 -2
  582. package/esm/Stat/StatTrend.d.ts +2 -2
  583. package/esm/Stat/StatTrend.js +4 -2
  584. package/esm/Stat/StatValue.d.ts +2 -2
  585. package/esm/Stat/StatValue.js +4 -2
  586. package/esm/Stat/StatValueUnit.d.ts +1 -4
  587. package/esm/Stat/StatValueUnit.js +0 -0
  588. package/esm/StatGroup/StatGroup.d.ts +2 -2
  589. package/esm/StatGroup/StatGroup.js +4 -2
  590. package/esm/Steps/Steps.d.ts +2 -2
  591. package/esm/Steps/Steps.js +5 -3
  592. package/esm/Tabs/TabPanel.d.ts +2 -2
  593. package/esm/Tabs/TabPanel.js +4 -2
  594. package/esm/Tabs/Tabs.d.ts +2 -2
  595. package/esm/Tabs/Tabs.js +4 -2
  596. package/esm/Tag/Tag.d.ts +3 -2
  597. package/esm/Tag/Tag.js +4 -2
  598. package/esm/TagGroup/TagGroup.d.ts +1 -3
  599. package/esm/TagGroup/TagGroup.js +0 -0
  600. package/esm/Text/Text.d.ts +4 -4
  601. package/esm/Text/Text.js +11 -20
  602. package/esm/Timeline/Timeline.d.ts +2 -2
  603. package/esm/Timeline/Timeline.js +5 -3
  604. package/esm/Timeline/TimelineItem.d.ts +2 -2
  605. package/esm/Timeline/TimelineItem.js +5 -3
  606. package/esm/Toggle/Toggle.d.ts +3 -2
  607. package/esm/Toggle/Toggle.js +5 -3
  608. package/esm/Tooltip/Tooltip.d.ts +3 -2
  609. package/esm/Tooltip/Tooltip.js +4 -2
  610. package/esm/Tree/Tree.d.ts +1 -1
  611. package/esm/Tree/TreeNode.d.ts +2 -2
  612. package/esm/Tree/TreeNode.js +6 -4
  613. package/esm/Tree/TreeView.js +4 -2
  614. package/esm/Tree/types.d.ts +2 -2
  615. package/esm/TreePicker/TreePicker.d.ts +1 -1
  616. package/esm/TreePicker/TreePicker.js +4 -2
  617. package/esm/Uploader/UploadFileItem.d.ts +2 -2
  618. package/esm/Uploader/UploadFileItem.js +11 -4
  619. package/esm/Uploader/Uploader.d.ts +2 -2
  620. package/esm/Uploader/Uploader.js +4 -2
  621. package/esm/VisuallyHidden/VisuallyHidden.d.ts +1 -4
  622. package/esm/VisuallyHidden/VisuallyHidden.js +0 -0
  623. package/esm/internals/Box/Box.d.ts +12 -8
  624. package/esm/internals/Box/Box.js +16 -14
  625. package/esm/internals/Box/utils.js +5 -5
  626. package/esm/internals/Menu/useRenderMenuItem.d.ts +1 -1
  627. package/esm/internals/Menu/useRenderMenuItem.js +16 -8
  628. package/esm/internals/Overlay/Modal.d.ts +3 -2
  629. package/esm/internals/Overlay/Modal.js +5 -2
  630. package/esm/internals/Picker/PickerToggle.d.ts +1 -1
  631. package/esm/internals/Picker/ToggleButton.d.ts +2 -2
  632. package/esm/internals/Picker/ToggleButton.js +0 -0
  633. package/esm/internals/Picker/hooks/useCombobox.d.ts +1 -1
  634. package/esm/internals/Plaintext/Plaintext.d.ts +2 -2
  635. package/esm/internals/Plaintext/Plaintext.js +4 -2
  636. package/esm/internals/Tree/TreeView.d.ts +2 -2
  637. package/esm/internals/Tree/TreeView.js +4 -2
  638. package/esm/internals/types/picker.d.ts +2 -2
  639. package/esm/internals/utils/colours.d.ts +1 -1
  640. package/esm/internals/utils/createComponent.d.ts +4 -3
  641. package/esm/internals/utils/createComponent.js +7 -4
  642. package/esm/internals/utils/sizes.d.ts +4 -1
  643. package/esm/internals/utils/sizes.js +9 -3
  644. package/esm/internals/utils/style-sheet/css.d.ts +1 -1
  645. package/esm/internals/utils/style-sheet/css.js +3 -1
  646. package/esm/internals/utils/style-sheet/styles.d.ts +2 -2
  647. package/esm/internals/utils/style-sheet/styles.js +6 -6
  648. package/internals/Box/styles/index.less +57 -136
  649. package/package.json +1 -1
  650. package/styles/color-modes/dark.less +1 -1
  651. package/styles/color-modes/light.less +1 -1
  652. package/styles/root.less +10 -6
  653. package/toaster/styles/index.css +2 -1
  654. package/useToaster/styles/index.css +2 -1
@@ -1,6 +1,6 @@
1
1
  import React, { CSSProperties } from 'react';
2
- import type { WithAsProps } from '../internals/types';
3
- export interface ImageProps extends WithAsProps, Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'placeholder'> {
2
+ import { BoxProps } from '../internals/Box';
3
+ export interface ImageProps extends Omit<BoxProps, 'rounded'>, Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'placeholder'> {
4
4
  /**
5
5
  * An image may appear with border.
6
6
  */
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  import React from 'react';
4
+ import Box from "../internals/Box/index.js";
4
5
  import { useStyles } from "../internals/hooks/index.js";
5
6
  import { ImageWrapper } from "./ImageWrapper.js";
6
7
  import { useImage } from "./hooks/useImage.js";
@@ -11,7 +12,7 @@ const Image = forwardRef((props, ref) => {
11
12
  propsWithDefaults
12
13
  } = useCustom('Image', props);
13
14
  const {
14
- as: Component = 'img',
15
+ as = 'img',
15
16
  bordered,
16
17
  classPrefix = 'image',
17
18
  className,
@@ -63,11 +64,8 @@ const Image = forwardRef((props, ref) => {
63
64
  ['--rs-object-fit']: fit,
64
65
  ['--rs-object-position']: position
65
66
  };
66
- const wrapStyles = {
67
- width,
68
- height
69
- };
70
- const image = /*#__PURE__*/React.createElement(Component, _extends({
67
+ const image = /*#__PURE__*/React.createElement(Box, _extends({
68
+ as: as,
71
69
  ref: ref,
72
70
  src: imgSrc,
73
71
  className: classes,
@@ -77,12 +75,14 @@ const Image = forwardRef((props, ref) => {
77
75
  }, imgProps, rest));
78
76
  if (zoomed) {
79
77
  return /*#__PURE__*/React.createElement(ImageWrapper, {
80
- style: wrapStyles
78
+ w: width,
79
+ h: height
81
80
  }, image);
82
81
  }
83
82
  if (placeholder) {
84
83
  return /*#__PURE__*/React.createElement(ImageWrapper, {
85
- style: wrapStyles
84
+ w: width,
85
+ h: height
86
86
  }, isLoading && placeholder, image);
87
87
  }
88
88
  return image;
@@ -1,4 +1,3 @@
1
- export declare const ImageWrapper: import("../internals/types").InternalRefForwardingComponent<"div", Partial<{
2
- name: string;
3
- componentAs: "div";
4
- }>, never> & Record<string, never>;
1
+ import { ComponentProps } from '../internals/utils';
2
+ export type ImageWrapperProps = ComponentProps;
3
+ export declare const ImageWrapper: import("../internals/types").InternalRefForwardingComponent<"div", Partial<ComponentProps>, never> & Record<string, never>;
File without changes
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
+ import { BoxProps } from '../internals/Box';
2
3
  import { ChildrenProps } from './renderChildren';
3
- import type { WithAsPropsWithoutChildren } from '../internals/types';
4
- export interface InlineEditProps extends WithAsPropsWithoutChildren {
4
+ export interface InlineEditProps extends Omit<BoxProps, 'children'> {
5
5
  /**
6
6
  * If true, the InlineEdit will be disabled.
7
7
  */
@@ -4,6 +4,7 @@ import React from 'react';
4
4
  import EditableControls from "./EditableControls.js";
5
5
  import useFocusEvent from "./useFocusEvent.js";
6
6
  import useEditState from "./useEditState.js";
7
+ import Box from "../internals/Box/index.js";
7
8
  import { useStyles } from "../internals/hooks/index.js";
8
9
  import { forwardRef, mergeRefs } from "../internals/utils/index.js";
9
10
  import { renderChildren, defaultRenderInput } from "./renderChildren.js";
@@ -13,7 +14,7 @@ const InlineEdit = forwardRef((props, ref) => {
13
14
  propsWithDefaults
14
15
  } = useCustom('InlineEdit', props);
15
16
  const {
16
- as: Component = 'div',
17
+ as,
17
18
  children = defaultRenderInput,
18
19
  classPrefix = 'inline-edit',
19
20
  className,
@@ -61,7 +62,8 @@ const InlineEdit = forwardRef((props, ref) => {
61
62
  onChange,
62
63
  onBlur
63
64
  };
64
- return /*#__PURE__*/React.createElement(Component, _extends({
65
+ return /*#__PURE__*/React.createElement(Box, _extends({
66
+ as: as,
65
67
  ref: mergeRefs(root, ref),
66
68
  tabIndex: 0,
67
69
  className: merge(className, withPrefix(size, {
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
+ import { BoxProps } from '../internals/Box';
2
3
  import { PrependParameters } from '../internals/types/utils';
3
- import type { PropsWithoutChange, SanitizedInputProps, FormControlBaseProps, WithAsProps, Size } from '../internals/types';
4
+ import type { PropsWithoutChange, SanitizedInputProps, FormControlBaseProps, Size } from '../internals/types';
4
5
  export interface LocaleType {
5
6
  unfilled: string;
6
7
  }
7
- export interface InputProps extends WithAsProps, SanitizedInputProps, PropsWithoutChange<FormControlBaseProps> {
8
+ export interface InputProps extends BoxProps, SanitizedInputProps, PropsWithoutChange<FormControlBaseProps> {
8
9
  /** The HTML input type */
9
10
  type?: string;
10
11
  /** The HTML input id */
@@ -2,6 +2,7 @@
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  import React, { useContext } from 'react';
4
4
  import Plaintext from "../internals/Plaintext/index.js";
5
+ import Box from "../internals/Box/index.js";
5
6
  import { forwardRef } from "../internals/utils/index.js";
6
7
  import { useFormGroup } from "../FormGroup/index.js";
7
8
  import { InputGroupContext } from "../InputGroup/InputGroup.js";
@@ -20,9 +21,9 @@ const Input = forwardRef((props, ref) => {
20
21
  } = useCustom('Input', props);
21
22
  const inputGroup = useContext(InputGroupContext);
22
23
  const {
24
+ as = 'input',
23
25
  className,
24
26
  classPrefix = 'input',
25
- as: Component = 'input',
26
27
  type = 'text',
27
28
  disabled,
28
29
  value,
@@ -79,7 +80,9 @@ const Input = forwardRef((props, ref) => {
79
80
  eventProps.onFocus = createChainedFunction(onFocus, inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.onFocus);
80
81
  eventProps.onBlur = createChainedFunction(onBlur, inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.onBlur);
81
82
  }
82
- return /*#__PURE__*/React.createElement(Component, _extends({}, rest, eventProps, {
83
+ return /*#__PURE__*/React.createElement(Box, _extends({
84
+ as: as
85
+ }, rest, eventProps, {
83
86
  ref: mergeRefs(ref, inputRef),
84
87
  className: classes,
85
88
  type: type,
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
- import { WithAsProps, Size } from '../internals/types';
2
+ import { BoxProps } from '../internals/Box';
3
+ import type { Size } from '../internals/types';
3
4
  export declare const InputGroupContext: React.Context<{
4
5
  onFocus: () => void;
5
6
  onBlur: () => void;
6
7
  size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
7
8
  } | null>;
8
- export interface InputGroupProps extends WithAsProps {
9
+ export interface InputGroupProps extends BoxProps {
9
10
  /** Sets the composition content internally */
10
11
  inside?: boolean;
11
12
  /** An Input group can show that it is disabled */
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  import React, { useState, useCallback, useMemo } from 'react';
4
+ import Box from "../internals/Box/index.js";
4
5
  import InputGroupAddon from "./InputGroupAddon.js";
5
6
  import InputGroupButton from "./InputGroupButton.js";
6
7
  import { forwardRef } from "../internals/utils/index.js";
@@ -21,7 +22,7 @@ const InputGroup = forwardRef((props, ref) => {
21
22
  propsWithDefaults
22
23
  } = useCustom('InputGroup', props);
23
24
  const {
24
- as: Component = 'div',
25
+ as,
25
26
  classPrefix = 'input-group',
26
27
  className,
27
28
  disabled,
@@ -66,7 +67,9 @@ const InputGroup = forwardRef((props, ref) => {
66
67
  }), [size, handleFocus, handleBlur]);
67
68
  return /*#__PURE__*/React.createElement(InputGroupContext.Provider, {
68
69
  value: contextValue
69
- }, /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
70
+ }, /*#__PURE__*/React.createElement(Box, _extends({
71
+ as: as
72
+ }, rest, {
70
73
  ref: ref,
71
74
  className: classes
72
75
  }), renderChildren()));
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { WithAsProps } from '../internals/types';
3
- export interface InputGroupAddonProps extends WithAsProps, React.HTMLAttributes<HTMLSpanElement> {
2
+ import { BoxProps } from '../internals/Box';
3
+ export interface InputGroupAddonProps extends BoxProps, React.HTMLAttributes<HTMLSpanElement> {
4
4
  /** An Input group addon can show that it is disabled */
5
5
  disabled?: boolean;
6
6
  }
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  import React from 'react';
4
+ import Box from "../internals/Box/index.js";
4
5
  import { useStyles } from "../internals/hooks/index.js";
5
6
  import { forwardRef } from "../internals/utils/index.js";
6
7
  /**
@@ -9,7 +10,7 @@ import { forwardRef } from "../internals/utils/index.js";
9
10
  */
10
11
  const InputGroupAddon = forwardRef((props, ref) => {
11
12
  const {
12
- as: Component = 'span',
13
+ as = 'span',
13
14
  classPrefix = 'input-group-addon',
14
15
  className,
15
16
  disabled,
@@ -22,7 +23,9 @@ const InputGroupAddon = forwardRef((props, ref) => {
22
23
  const classes = merge(className, withPrefix({
23
24
  disabled
24
25
  }));
25
- return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
26
+ return /*#__PURE__*/React.createElement(Box, _extends({
27
+ as: as
28
+ }, rest, {
26
29
  ref: ref,
27
30
  className: classes
28
31
  }));
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import type { SanitizedInputProps, FormControlBaseProps, AppearanceType, WithAsProps, Size } from '../internals/types';
3
- export interface InputNumberProps<T = number | string | null> extends Omit<SanitizedInputProps, 'value' | 'defaultValue' | 'prefix'>, WithAsProps, FormControlBaseProps<T> {
2
+ import { BoxProps } from '../internals/Box';
3
+ import type { SanitizedInputProps, FormControlBaseProps, AppearanceType, Size } from '../internals/types';
4
+ export interface InputNumberProps<T = number | string | null> extends Omit<SanitizedInputProps, 'value' | 'defaultValue' | 'prefix'>, BoxProps, FormControlBaseProps<T> {
4
5
  /**
5
6
  * Button can have different appearances
6
7
  */
@@ -9,6 +9,7 @@ import InputGroup from "../InputGroup/InputGroup.js";
9
9
  import InputGroupAddon from "../InputGroup/InputGroupAddon.js";
10
10
  import Input from "../Input/index.js";
11
11
  import Button from "../Button/index.js";
12
+ import Box from "../internals/Box/index.js";
12
13
  import { useStyles, useControlled, useEventCallback } from "../internals/hooks/index.js";
13
14
  import { KEY_VALUES } from "../internals/constants/index.js";
14
15
  import { forwardRef, partitionHTMLProps, createChainedFunction } from "../internals/utils/index.js";
@@ -75,7 +76,7 @@ const InputNumber = forwardRef((props, ref) => {
75
76
  propsWithDefaults
76
77
  } = useCustom('InputNumber', props);
77
78
  const {
78
- as: Component = InputGroup,
79
+ as = InputGroup,
79
80
  className,
80
81
  classPrefix = 'input-number',
81
82
  disabled,
@@ -261,7 +262,9 @@ const InputNumber = forwardRef((props, ref) => {
261
262
  if (plaintext) {
262
263
  return input;
263
264
  }
264
- return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
265
+ return /*#__PURE__*/React.createElement(Box, _extends({
266
+ as: as
267
+ }, rest, {
265
268
  ref: ref,
266
269
  className: classes,
267
270
  disabled: disabled,
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import { type InputOption } from './hooks/useData';
2
+ import { InputOption } from './hooks/useData';
3
3
  import { PickerToggleProps } from '../internals/Picker';
4
4
  import type { Option, FormControlPickerProps } from '../internals/types';
5
5
  import type { InputPickerLocale } from '../locales';
6
6
  import type { SelectProps } from '../SelectPicker';
7
7
  export type ValueType = any;
8
- export interface InputPickerProps<V = ValueType> extends FormControlPickerProps<V, InputPickerLocale, InputOption>, Omit<SelectProps<V>, 'renderValue'>, Pick<PickerToggleProps, 'caretAs' | 'loading'> {
8
+ export interface InputPickerProps<V = ValueType> extends FormControlPickerProps<V, InputPickerLocale, InputOption>, Omit<SelectProps<V>, 'renderValue'>, Pick<PickerToggleProps, 'caretAs' | 'loading' | 'label'> {
9
9
  tabIndex?: number;
10
10
  /** Settings can create new options */
11
11
  creatable?: boolean;
@@ -14,6 +14,7 @@ import Stack from "../Stack/index.js";
14
14
  import useInput from "./hooks/useInput.js";
15
15
  import useData from "./hooks/useData.js";
16
16
  import Plaintext from "../internals/Plaintext/index.js";
17
+ import Box from "../internals/Box/index.js";
17
18
  import { filterNodesOfTree } from "../internals/Tree/utils/index.js";
18
19
  import { useStyles, useControlled, useEventCallback } from "../internals/hooks/index.js";
19
20
  import { KEY_VALUES } from "../internals/constants/index.js";
@@ -33,11 +34,12 @@ const InputPicker = forwardRef((props, ref) => {
33
34
  propsWithDefaults
34
35
  } = useCustom('InputPicker', props);
35
36
  const {
36
- as: Component = 'div',
37
+ as,
37
38
  appearance = 'default',
38
39
  cleanable = true,
39
40
  cacheData = [],
40
41
  classPrefix = 'picker',
42
+ caretAs,
41
43
  data: controlledData = [],
42
44
  disabled,
43
45
  readOnly,
@@ -67,6 +69,8 @@ const InputPicker = forwardRef((props, ref) => {
67
69
  listProps,
68
70
  id,
69
71
  tabIndex,
72
+ loading,
73
+ label,
70
74
  sort,
71
75
  renderListbox,
72
76
  renderExtraFooter,
@@ -405,6 +409,7 @@ const InputPicker = forwardRef((props, ref) => {
405
409
  trigger: triggerRef,
406
410
  target,
407
411
  overlay,
412
+ loading,
408
413
  ...events,
409
414
  ...rest
410
415
  });
@@ -574,7 +579,7 @@ const InputPicker = forwardRef((props, ref) => {
574
579
  [prefix`disabled-options`]: disabledOptions
575
580
  });
576
581
  const searching = !!searchKeyword && open;
577
- const editable = searchable && !disabled && !rest.loading;
582
+ const editable = searchable && !disabled && !loading;
578
583
  if (plaintext) {
579
584
  const plaintextProps = {};
580
585
 
@@ -602,18 +607,22 @@ const InputPicker = forwardRef((props, ref) => {
602
607
  onExited: createChainedFunction(handleExited, onExited),
603
608
  speaker: renderPopup,
604
609
  placement: placement
605
- }, /*#__PURE__*/React.createElement(Component, {
610
+ }, /*#__PURE__*/React.createElement(Box, _extends({
611
+ as: as,
606
612
  className: classes,
607
613
  style: style,
608
614
  onClick: focus,
609
615
  onKeyDown: onPickerKeyDown,
610
616
  ref: root
611
- }, /*#__PURE__*/React.createElement(PickerToggle, _extends({}, omit(rest, [...omitTriggerPropKeys, ...usedClassNamePropKeys]), {
617
+ }, omit(rest, [...omitTriggerPropKeys, ...usedClassNamePropKeys])), /*#__PURE__*/React.createElement(PickerToggle, {
618
+ loading: loading,
619
+ label: label,
612
620
  appearance: appearance,
613
621
  readOnly: readOnly,
614
622
  plaintext: plaintext,
615
623
  ref: target,
616
624
  as: toggleAs,
625
+ caretAs: caretAs,
617
626
  tabIndex: tabIndex,
618
627
  onClean: handleClean,
619
628
  cleanable: cleanable && !disabled,
@@ -625,7 +634,7 @@ const InputPicker = forwardRef((props, ref) => {
625
634
  focusItemValue: focusItemValue,
626
635
  caret: !disabledOptions,
627
636
  size: size
628
- }), searching || multi && hasValue ? null : itemNode || placeholderNode), /*#__PURE__*/React.createElement(TextBox, {
637
+ }, searching || multi && hasValue ? null : itemNode || placeholderNode), /*#__PURE__*/React.createElement(TextBox, {
629
638
  showTagList: multi,
630
639
  inputRef: inputRef,
631
640
  inputValue: open ? searchKeyword : '',
package/esm/Kbd/Kbd.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import type { WithAsProps, Size } from '../internals/types';
2
- export interface KbdProps extends WithAsProps {
1
+ import { BoxProps } from '../internals/Box';
2
+ import type { Size } from '../internals/types';
3
+ export interface KbdProps extends BoxProps {
3
4
  /**
4
5
  * Sets Kbd size.
5
6
  */
package/esm/Kbd/Kbd.js CHANGED
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  import React from 'react';
4
+ import Box from "../internals/Box/index.js";
4
5
  import { forwardRef } from "../internals/utils/index.js";
5
6
  import { useStyles } from "../internals/hooks/index.js";
6
7
  import { useCustom } from "../CustomProvider/index.js";
@@ -15,7 +16,7 @@ const Kbd = forwardRef((props, ref) => {
15
16
  propsWithDefaults
16
17
  } = useCustom('Kbd', props);
17
18
  const {
18
- as: Component = 'kbd',
19
+ as = 'kbd',
19
20
  classPrefix = 'kbd',
20
21
  className,
21
22
  size = 'md',
@@ -26,7 +27,9 @@ const Kbd = forwardRef((props, ref) => {
26
27
  merge
27
28
  } = useStyles(classPrefix);
28
29
  const classes = merge(className, withPrefix(size));
29
- return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
30
+ return /*#__PURE__*/React.createElement(Box, _extends({
31
+ as: as
32
+ }, rest, {
30
33
  ref: ref,
31
34
  className: classes
32
35
  }));
@@ -1,6 +1,6 @@
1
1
  import { SortConfig } from './helper/useSortHelper';
2
- import type { WithAsProps } from '../internals/types';
3
- export interface ListProps extends WithAsProps, SortConfig {
2
+ import { BoxProps } from '../internals/Box';
3
+ export interface ListProps extends BoxProps, SortConfig {
4
4
  /**
5
5
  * Size of list item.
6
6
  */
package/esm/List/List.js CHANGED
@@ -4,6 +4,7 @@ import React, { useMemo } from 'react';
4
4
  import useSortHelper from "./helper/useSortHelper.js";
5
5
  import ListContext from "./ListContext.js";
6
6
  import ListItem from "./ListItem.js";
7
+ import Box from "../internals/Box/index.js";
7
8
  import { useStyles } from "../internals/hooks/index.js";
8
9
  import { forwardRef, mergeRefs } from "../internals/utils/index.js";
9
10
  import { useCustom } from "../CustomProvider/index.js";
@@ -20,7 +21,7 @@ const List = forwardRef((props, ref) => {
20
21
  propsWithDefaults
21
22
  } = useCustom('List', props);
22
23
  const {
23
- as: Component = 'div',
24
+ as,
24
25
  autoScroll = true,
25
26
  bordered,
26
27
  classPrefix = 'list',
@@ -69,14 +70,14 @@ const List = forwardRef((props, ref) => {
69
70
  size,
70
71
  register
71
72
  }), [bordered, register, size]);
72
- return /*#__PURE__*/React.createElement(Component, _extends({
73
- role: "list"
74
- }, rest, {
73
+ return /*#__PURE__*/React.createElement(Box, _extends({
74
+ as: as,
75
+ role: "list",
75
76
  ref: mergeRefs(containerRef, ref),
76
77
  className: classes,
77
78
  onMouseDown: sortable ? handleStart : undefined,
78
79
  onMouseUp: sortable ? handleEnd : undefined
79
- }), /*#__PURE__*/React.createElement(ListContext.Provider, {
80
+ }, rest), /*#__PURE__*/React.createElement(ListContext.Provider, {
80
81
  value: contextValue
81
82
  }, children));
82
83
  }, Subcomponents);
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { WithAsProps } from '../internals/types';
2
+ import { BoxProps } from '../internals/Box';
3
3
  import { Collection } from './helper/useManager';
4
- export interface ListItemProps extends WithAsProps, React.HTMLAttributes<HTMLElement> {
4
+ export interface ListItemProps extends BoxProps, React.HTMLAttributes<HTMLElement> {
5
5
  index?: number;
6
6
  collection?: Collection;
7
7
  disabled?: boolean;
@@ -2,6 +2,7 @@
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  import React, { useContext, useEffect, useRef } from 'react';
4
4
  import ListContext from "./ListContext.js";
5
+ import Box from "../internals/Box/index.js";
5
6
  import { forwardRef, mergeRefs } from "../internals/utils/index.js";
6
7
  import { useStyles } from "../internals/hooks/index.js";
7
8
  /**
@@ -10,7 +11,7 @@ import { useStyles } from "../internals/hooks/index.js";
10
11
  */
11
12
  const ListItem = forwardRef((props, ref) => {
12
13
  const {
13
- as: Component = 'div',
14
+ as,
14
15
  children,
15
16
  className,
16
17
  classPrefix = 'list-item',
@@ -51,13 +52,13 @@ const ListItem = forwardRef((props, ref) => {
51
52
  disabled,
52
53
  bordered
53
54
  }));
54
- return /*#__PURE__*/React.createElement(Component, _extends({
55
+ return /*#__PURE__*/React.createElement(Box, _extends({
56
+ as: as,
55
57
  role: "listitem",
56
- "aria-disabled": disabled
57
- }, rest, {
58
+ "aria-disabled": disabled,
58
59
  ref: mergeRefs(listItemRef, ref),
59
60
  className: classes
60
- }), children);
61
+ }, rest), children);
61
62
  });
62
63
  ListItem.displayName = 'ListItem';
63
64
  export default ListItem;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import type { WithAsProps, Size } from '../internals/types';
3
- export interface LoaderProps extends WithAsProps {
2
+ import { BoxProps } from '../internals/Box';
3
+ import type { Size } from '../internals/types';
4
+ export interface LoaderProps extends BoxProps {
4
5
  /** Centered in the container */
5
6
  center?: boolean;
6
7
  /** Whether the background is displayed */
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  import React from 'react';
4
+ import Box from "../internals/Box/index.js";
4
5
  import { forwardRef } from "../internals/utils/index.js";
5
6
  import { useStyles, useUniqueId } from "../internals/hooks/index.js";
6
7
  import { useCustom } from "../CustomProvider/index.js";
@@ -13,7 +14,7 @@ const Loader = forwardRef((props, ref) => {
13
14
  propsWithDefaults
14
15
  } = useCustom('Loader', props);
15
16
  const {
16
- as: Component = 'div',
17
+ as,
17
18
  classPrefix = 'loader',
18
19
  className,
19
20
  inverse,
@@ -36,13 +37,13 @@ const Loader = forwardRef((props, ref) => {
36
37
  vertical,
37
38
  inverse
38
39
  }));
39
- return /*#__PURE__*/React.createElement(Component, _extends({
40
+ return /*#__PURE__*/React.createElement(Box, _extends({
41
+ as: as,
40
42
  role: "status",
41
- "aria-labelledby": content ? labelId : undefined
42
- }, rest, {
43
+ "aria-labelledby": content ? labelId : undefined,
43
44
  ref: ref,
44
45
  className: classes
45
- }), backdrop && /*#__PURE__*/React.createElement("div", {
46
+ }, rest), backdrop && /*#__PURE__*/React.createElement("div", {
46
47
  className: prefix('backdrop')
47
48
  }), /*#__PURE__*/React.createElement("div", {
48
49
  className: withPrefix()
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import type { StandardProps, HTMLPropsWithoutSelect } from '../internals/types';
3
- export interface MenuProps<T = string | number> extends StandardProps, HTMLPropsWithoutSelect<HTMLUListElement> {
2
+ import { BoxProps } from '../internals/Box';
3
+ import type { HTMLPropsWithoutSelect } from '../internals/types';
4
+ export interface MenuProps<T = string | number> extends BoxProps, HTMLPropsWithoutSelect<HTMLUListElement> {
4
5
  /** Set the active key for the menu */
5
6
  activeKey?: T;
6
7
  /** Callback function triggered when an item is selected */
package/esm/Menu/Menu.js CHANGED
@@ -5,6 +5,7 @@ import Menubar from "../internals/Menu/Menubar.js";
5
5
  import MenuContext from "./MenuContext.js";
6
6
  import MenuItem from "./MenuItem.js";
7
7
  import MenuSeparator from "./MenuSeparator.js";
8
+ import Box from "../internals/Box/index.js";
8
9
  import { useStyles } from "../internals/hooks/index.js";
9
10
  import { mergeRefs, forwardRef } from "../internals/utils/index.js";
10
11
  const Subcomponents = {
@@ -19,6 +20,7 @@ const Subcomponents = {
19
20
  */
20
21
  const Menu = forwardRef((props, ref) => {
21
22
  const {
23
+ as = 'ul',
22
24
  activeKey,
23
25
  classPrefix = 'menu',
24
26
  className,
@@ -39,7 +41,9 @@ const Menu = forwardRef((props, ref) => {
39
41
  value: contextValue
40
42
  }, /*#__PURE__*/React.createElement(Menubar, {
41
43
  vertical: true
42
- }, (menubar, menubarRef) => /*#__PURE__*/React.createElement("ul", _extends({}, menubar, rest, {
44
+ }, (menubar, menubarRef) => /*#__PURE__*/React.createElement(Box, _extends({
45
+ as: as
46
+ }, menubar, rest, {
43
47
  ref: mergeRefs(menubarRef, ref),
44
48
  className: classes,
45
49
  role: "menu"
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { IconProps } from '@rsuite/icons/Icon';
3
- import type { WithAsProps, HTMLPropsWithoutSelect } from '../internals/types';
4
- export interface MenuItemProps<T = any> extends WithAsProps, HTMLPropsWithoutSelect {
3
+ import type { HTMLPropsWithoutSelect } from '../internals/types';
4
+ import type { BoxProps } from '../internals/Box';
5
+ export interface MenuItemProps<T = any> extends BoxProps, HTMLPropsWithoutSelect {
5
6
  /** Active the current option */
6
7
  active?: boolean;
7
8
  /** Disable the current option */
@@ -10,7 +10,7 @@ import { forwardRef, mergeRefs, shallowEqual } from "../internals/utils/index.js
10
10
  import { useRenderMenuItem } from "../internals/Menu/useRenderMenuItem.js";
11
11
  const MenuItem = forwardRef((props, ref) => {
12
12
  const {
13
- as: Component = 'li',
13
+ as = 'li',
14
14
  active: activeProp,
15
15
  classPrefix = 'menu-item',
16
16
  className,
@@ -35,7 +35,7 @@ const MenuItem = forwardRef((props, ref) => {
35
35
  menu === null || menu === void 0 || (_menu$onSelect = menu.onSelect) === null || _menu$onSelect === void 0 || _menu$onSelect.call(menu, eventKey, event);
36
36
  }, [onSelect, eventKey, menu]);
37
37
  const selected = activeProp || !isNil(eventKey) && shallowEqual(menu === null || menu === void 0 ? void 0 : menu.activeKey, eventKey);
38
- const renderMenuItem = useRenderMenuItem(Component);
38
+ const renderMenuItem = useRenderMenuItem(as);
39
39
  return /*#__PURE__*/React.createElement(MenuItemBase, {
40
40
  selected: selected,
41
41
  disabled: disabled,
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { WithAsProps } from '../internals/types';
3
- export interface MenuSeparatorProps extends WithAsProps, React.HTMLAttributes<HTMLElement> {
2
+ import { BoxProps } from '../internals/Box';
3
+ export interface MenuSeparatorProps extends BoxProps, React.HTMLAttributes<HTMLElement> {
4
4
  /** You can use a custom element for this component */
5
5
  as?: React.ElementType;
6
6
  }