rsuite 5.74.2 → 5.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (502) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/Card/package.json +7 -0
  3. package/Card/styles/index.css +105 -0
  4. package/Card/styles/index.less +62 -0
  5. package/CardBody/package.json +7 -0
  6. package/CardFooter/package.json +7 -0
  7. package/CardGroup/package.json +7 -0
  8. package/CardGroup/styles/index.css +7 -0
  9. package/CardGroup/styles/index.less +8 -0
  10. package/CardHeader/package.json +7 -0
  11. package/Image/package.json +7 -0
  12. package/Image/styles/index.css +33 -0
  13. package/Image/styles/index.less +34 -0
  14. package/List/styles/index.css +10 -12
  15. package/List/styles/index.less +12 -4
  16. package/Stat/package.json +7 -0
  17. package/Stat/styles/index.css +1749 -0
  18. package/Stat/styles/index.less +106 -0
  19. package/StatGroup/package.json +7 -0
  20. package/StatGroup/styles/index.css +7 -0
  21. package/StatGroup/styles/index.less +8 -0
  22. package/StatHelpText/package.json +7 -0
  23. package/StatLabel/package.json +7 -0
  24. package/StatTrend/package.json +7 -0
  25. package/StatValue/package.json +7 -0
  26. package/StatValueUnit/package.json +7 -0
  27. package/cjs/Affix/Affix.js +2 -2
  28. package/cjs/Animation/Transition.js +7 -7
  29. package/cjs/AutoComplete/AutoComplete.js +7 -7
  30. package/cjs/Avatar/useImage.js +1 -1
  31. package/cjs/Breadcrumb/Breadcrumb.js +1 -1
  32. package/cjs/Calendar/Calendar.js +3 -3
  33. package/cjs/Calendar/CalendarContainer.js +1 -1
  34. package/cjs/Calendar/Grid/GridRow.js +3 -3
  35. package/cjs/Calendar/MonthDropdown/MonthDropdownItem.js +1 -1
  36. package/cjs/Calendar/TimeDropdown/TimeDropdown.js +3 -3
  37. package/cjs/Calendar/hooks/useCalendarState.js +6 -6
  38. package/cjs/Card/Card.d.ts +33 -0
  39. package/cjs/Card/Card.js +63 -0
  40. package/cjs/Card/CardBody.d.ts +4 -0
  41. package/cjs/Card/CardBody.js +11 -0
  42. package/cjs/Card/CardFooter.d.ts +4 -0
  43. package/cjs/Card/CardFooter.js +11 -0
  44. package/cjs/Card/CardHeader.d.ts +4 -0
  45. package/cjs/Card/CardHeader.js +11 -0
  46. package/cjs/Card/index.d.ts +6 -0
  47. package/cjs/Card/index.js +8 -0
  48. package/cjs/CardGroup/CardGroup.d.ts +13 -0
  49. package/cjs/CardGroup/CardGroup.js +47 -0
  50. package/cjs/CardGroup/index.d.ts +3 -0
  51. package/cjs/CardGroup/index.js +8 -0
  52. package/cjs/Carousel/Carousel.js +5 -4
  53. package/cjs/CascadeTree/CascadeTree.js +1 -1
  54. package/cjs/CascadeTree/TreeView.js +1 -1
  55. package/cjs/CascadeTree/hooks/useSearch.js +4 -4
  56. package/cjs/CascadeTree/hooks/useSelect.js +2 -2
  57. package/cjs/Cascader/Cascader.js +13 -13
  58. package/cjs/Cascader/useActive.js +4 -4
  59. package/cjs/CheckPicker/CheckPicker.js +5 -5
  60. package/cjs/CheckTree/CheckTree.js +1 -1
  61. package/cjs/CheckTree/CheckTreeNode.js +3 -3
  62. package/cjs/CheckTree/CheckTreeView.js +7 -7
  63. package/cjs/CheckTree/utils.js +3 -3
  64. package/cjs/CheckTreePicker/CheckTreePicker.js +2 -2
  65. package/cjs/CheckTreePicker/hooks/useFocusState.js +3 -3
  66. package/cjs/Checkbox/Checkbox.js +2 -2
  67. package/cjs/CheckboxGroup/CheckboxGroup.js +1 -1
  68. package/cjs/CustomProvider/FormattedNumber.d.ts +7 -0
  69. package/cjs/CustomProvider/FormattedNumber.js +19 -0
  70. package/cjs/CustomProvider/index.d.ts +1 -0
  71. package/cjs/CustomProvider/index.js +3 -1
  72. package/cjs/CustomProvider/types.d.ts +10 -0
  73. package/cjs/CustomProvider/useCustom.d.ts +1 -0
  74. package/cjs/CustomProvider/useCustom.js +3 -1
  75. package/cjs/DateInput/DateField.js +2 -2
  76. package/cjs/DateInput/DateInput.js +2 -2
  77. package/cjs/DateInput/hooks/useDateInputState.js +2 -2
  78. package/cjs/DateInput/hooks/useIsFocused.js +2 -2
  79. package/cjs/DateInput/hooks/useKeyboardInputEvent.js +5 -5
  80. package/cjs/DatePicker/DatePicker.js +14 -14
  81. package/cjs/DatePicker/PredefinedRanges.js +1 -1
  82. package/cjs/DatePicker/hooks/useFocus.js +1 -1
  83. package/cjs/DatePicker/hooks/useMonthView.js +1 -1
  84. package/cjs/DateRangeInput/DateRangeInput.js +4 -4
  85. package/cjs/DateRangePicker/DateRangePicker.js +8 -8
  86. package/cjs/DateRangePicker/hooks/useCalendarHandlers.js +5 -5
  87. package/cjs/Dropdown/Dropdown.js +3 -3
  88. package/cjs/Dropdown/DropdownItem.js +2 -2
  89. package/cjs/Dropdown/DropdownMenu.js +1 -1
  90. package/cjs/Form/Form.js +8 -8
  91. package/cjs/Form/hooks/useFormValidate.js +19 -19
  92. package/cjs/FormControl/FormControl.js +5 -5
  93. package/cjs/FormControl/hooks/useField.js +1 -1
  94. package/cjs/FormControl/hooks/useRegisterModel.js +2 -2
  95. package/cjs/Image/Image.d.ts +42 -0
  96. package/cjs/Image/Image.js +102 -0
  97. package/cjs/Image/ImageWrapper.d.ts +1 -0
  98. package/cjs/Image/ImageWrapper.js +10 -0
  99. package/cjs/Image/hooks/useImage.d.ts +14 -0
  100. package/cjs/Image/hooks/useImage.js +68 -0
  101. package/cjs/Image/index.d.ts +3 -0
  102. package/cjs/Image/index.js +8 -0
  103. package/cjs/InlineEdit/renderChildren.js +1 -1
  104. package/cjs/InlineEdit/useEditState.js +7 -7
  105. package/cjs/InlineEdit/useFocusEvent.js +5 -5
  106. package/cjs/Input/Input.js +3 -3
  107. package/cjs/InputGroup/InputGroup.js +2 -2
  108. package/cjs/InputNumber/InputNumber.js +3 -3
  109. package/cjs/InputPicker/InputAutosize.js +1 -1
  110. package/cjs/InputPicker/InputPicker.js +13 -13
  111. package/cjs/InputPicker/InputSearch.js +1 -1
  112. package/cjs/InputPicker/hooks/useData.js +1 -1
  113. package/cjs/InputPicker/hooks/useInput.js +2 -2
  114. package/cjs/List/List.d.ts +19 -1
  115. package/cjs/List/List.js +11 -7
  116. package/cjs/List/ListItem.d.ts +1 -1
  117. package/cjs/List/helper/useSortHelper.js +10 -10
  118. package/cjs/MaskedInput/TextMask.js +3 -3
  119. package/cjs/Message/Message.js +1 -1
  120. package/cjs/Modal/Modal.js +6 -6
  121. package/cjs/Modal/utils.js +2 -2
  122. package/cjs/MultiCascadeTree/SearchView.js +1 -1
  123. package/cjs/MultiCascadeTree/TreeView.js +1 -1
  124. package/cjs/MultiCascadeTree/hooks/useCascadeValue.js +5 -5
  125. package/cjs/MultiCascadeTree/hooks/useSearch.js +1 -1
  126. package/cjs/MultiCascadeTree/hooks/useSelect.js +1 -1
  127. package/cjs/MultiCascadeTree/utils.js +9 -9
  128. package/cjs/MultiCascader/MultiCascader.js +5 -5
  129. package/cjs/Nav/Nav.js +2 -2
  130. package/cjs/Nav/NavDropdown.js +3 -3
  131. package/cjs/Nav/NavDropdownItem.js +2 -2
  132. package/cjs/Nav/NavDropdownMenu.js +1 -1
  133. package/cjs/Nav/NavItem.js +3 -3
  134. package/cjs/Navbar/NavbarDropdown.js +3 -3
  135. package/cjs/Navbar/NavbarDropdownItem.js +4 -4
  136. package/cjs/Navbar/NavbarItem.js +3 -3
  137. package/cjs/Notification/Notification.js +1 -1
  138. package/cjs/Pagination/PaginationButton.js +1 -1
  139. package/cjs/Pagination/PaginationGroup.js +3 -3
  140. package/cjs/Panel/Panel.js +2 -2
  141. package/cjs/PanelGroup/PanelGroup.js +1 -1
  142. package/cjs/Placeholder/PlaceholderGrid.js +2 -2
  143. package/cjs/Placeholder/PlaceholderParagraph.js +1 -1
  144. package/cjs/Radio/Radio.js +2 -2
  145. package/cjs/RadioGroup/RadioGroup.js +1 -1
  146. package/cjs/RadioTile/RadioTile.js +2 -2
  147. package/cjs/RadioTileGroup/RadioTileGroup.js +1 -1
  148. package/cjs/RangeSlider/RangeSlider.js +5 -5
  149. package/cjs/Rate/Character.js +2 -2
  150. package/cjs/Rate/Rate.js +3 -3
  151. package/cjs/SafeAnchor/SafeAnchor.js +1 -1
  152. package/cjs/SelectPicker/SelectPicker.js +7 -7
  153. package/cjs/Sidebar/Sidebar.js +1 -1
  154. package/cjs/Sidenav/ExpandedSidenavDropdown.js +4 -4
  155. package/cjs/Sidenav/ExpandedSidenavDropdownItem.js +3 -3
  156. package/cjs/Sidenav/ExpandedSidenavDropdownMenu.js +2 -2
  157. package/cjs/Sidenav/Sidenav.js +1 -1
  158. package/cjs/Sidenav/SidenavDropdown.js +4 -4
  159. package/cjs/Sidenav/SidenavDropdownItem.js +2 -2
  160. package/cjs/Sidenav/SidenavDropdownMenu.js +1 -1
  161. package/cjs/Sidenav/SidenavItem.js +4 -4
  162. package/cjs/Sidenav/SidenavToggle.js +1 -1
  163. package/cjs/Slider/Graduated.js +1 -1
  164. package/cjs/Slider/Slider.js +3 -3
  165. package/cjs/Slider/useDrag.js +6 -6
  166. package/cjs/Stack/HStack.d.ts +6 -3
  167. package/cjs/Stack/HStack.js +1 -0
  168. package/cjs/Stack/Stack.d.ts +6 -2
  169. package/cjs/Stack/Stack.js +1 -1
  170. package/cjs/Stack/VStack.d.ts +6 -3
  171. package/cjs/Stack/VStack.js +1 -0
  172. package/cjs/Stat/Stat.d.ts +26 -0
  173. package/cjs/Stat/Stat.js +57 -0
  174. package/cjs/Stat/StatHelpText.d.ts +4 -0
  175. package/cjs/Stat/StatHelpText.js +11 -0
  176. package/cjs/Stat/StatLabel.d.ts +14 -0
  177. package/cjs/Stat/StatLabel.js +53 -0
  178. package/cjs/Stat/StatTrend.d.ts +7 -0
  179. package/cjs/Stat/StatTrend.js +68 -0
  180. package/cjs/Stat/StatValue.d.ts +7 -0
  181. package/cjs/Stat/StatValue.js +41 -0
  182. package/cjs/Stat/StatValueUnit.d.ts +4 -0
  183. package/cjs/Stat/StatValueUnit.js +11 -0
  184. package/cjs/Stat/index.d.ts +3 -0
  185. package/cjs/Stat/index.js +8 -0
  186. package/cjs/StatGroup/StatGroup.d.ts +13 -0
  187. package/cjs/StatGroup/StatGroup.js +47 -0
  188. package/cjs/StatGroup/index.d.ts +3 -0
  189. package/cjs/StatGroup/index.js +8 -0
  190. package/cjs/Tabs/Tabs.js +1 -1
  191. package/cjs/Timeline/Timeline.js +1 -1
  192. package/cjs/Toggle/Toggle.js +1 -1
  193. package/cjs/Tree/Tree.js +1 -1
  194. package/cjs/Tree/TreeNode.js +9 -9
  195. package/cjs/Tree/TreeView.js +7 -7
  196. package/cjs/Tree/hooks/useExpandTree.js +1 -1
  197. package/cjs/Tree/hooks/useFlattenTree.js +1 -1
  198. package/cjs/Tree/hooks/useFocusTree.js +6 -6
  199. package/cjs/Tree/hooks/useTreeDrag.js +17 -17
  200. package/cjs/Tree/hooks/useTreeSearch.js +1 -1
  201. package/cjs/Tree/utils/flattenTree.js +6 -6
  202. package/cjs/Tree/utils/focusableTree.js +6 -6
  203. package/cjs/Tree/utils/getNodeParentKeys.js +4 -4
  204. package/cjs/Tree/utils/treeKeyboardInteractions.js +2 -2
  205. package/cjs/TreePicker/TreePicker.js +5 -5
  206. package/cjs/TreePicker/hooks/useFocusState.js +4 -4
  207. package/cjs/Uploader/UploadFileItem.js +5 -5
  208. package/cjs/Uploader/UploadTrigger.js +11 -11
  209. package/cjs/Uploader/Uploader.js +16 -16
  210. package/cjs/Uploader/utils/ajaxUpload.js +5 -5
  211. package/cjs/index.d.ts +10 -0
  212. package/cjs/index.js +12 -2
  213. package/cjs/internals/Disclosure/Disclosure.js +3 -3
  214. package/cjs/internals/Disclosure/DisclosureButton.js +2 -2
  215. package/cjs/internals/Menu/Menu.js +3 -3
  216. package/cjs/internals/Menu/MenuItem.js +1 -1
  217. package/cjs/internals/Menu/Menubar.js +2 -2
  218. package/cjs/internals/Overlay/Modal.js +7 -7
  219. package/cjs/internals/Overlay/Overlay.js +1 -1
  220. package/cjs/internals/Overlay/OverlayTrigger.js +3 -3
  221. package/cjs/internals/Overlay/Position.js +5 -5
  222. package/cjs/internals/Picker/ListCheckItem.js +3 -3
  223. package/cjs/internals/Picker/ListItem.js +1 -1
  224. package/cjs/internals/Picker/Listbox.js +4 -4
  225. package/cjs/internals/Picker/PickerToggle.js +2 -2
  226. package/cjs/internals/Picker/SelectedElement.js +1 -1
  227. package/cjs/internals/Picker/hooks/useFocusItemValue.js +2 -2
  228. package/cjs/internals/Picker/hooks/usePickerRef.js +4 -4
  229. package/cjs/internals/Picker/hooks/useSearch.js +1 -1
  230. package/cjs/internals/Picker/hooks/useToggleKeyDownEvent.js +9 -9
  231. package/cjs/internals/Picker/utils.js +8 -8
  232. package/cjs/internals/Ripple/Ripple.js +2 -2
  233. package/cjs/internals/ScrollView/hooks/useScrollState.js +1 -1
  234. package/cjs/internals/Tree/utils/filterNodesOfTree.js +3 -3
  235. package/cjs/internals/Tree/utils/findNodeOfTree.js +3 -3
  236. package/cjs/internals/Tree/utils/getParentMap.js +3 -3
  237. package/cjs/internals/Windowing/AutoSizer.js +1 -1
  238. package/cjs/internals/Windowing/List.js +4 -4
  239. package/cjs/internals/hooks/useClickOutside.js +1 -1
  240. package/cjs/internals/hooks/useElementResize.js +1 -1
  241. package/cjs/internals/hooks/useEventListener.js +1 -1
  242. package/cjs/internals/hooks/useFocus.js +2 -2
  243. package/cjs/internals/hooks/useMount.js +1 -1
  244. package/cjs/internals/hooks/useRootClose.js +4 -4
  245. package/cjs/internals/hooks/useTimeout.js +1 -1
  246. package/cjs/internals/utils/getDOMNode.js +2 -1
  247. package/cjs/internals/utils/stringifyReactNode.js +5 -5
  248. package/cjs/toaster/ToastContainer.d.ts +1 -0
  249. package/cjs/toaster/ToastContainer.js +19 -14
  250. package/cjs/toaster/hooks/useDelayedClosure.js +2 -2
  251. package/cjs/toaster/toaster.js +7 -7
  252. package/cjs/useToaster/useToaster.js +1 -1
  253. package/dist/rsuite-no-reset-rtl.css +274 -36
  254. package/dist/rsuite-no-reset-rtl.min.css +1 -1
  255. package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
  256. package/dist/rsuite-no-reset.css +274 -36
  257. package/dist/rsuite-no-reset.min.css +1 -1
  258. package/dist/rsuite-no-reset.min.css.map +1 -1
  259. package/dist/rsuite-rtl.css +274 -36
  260. package/dist/rsuite-rtl.min.css +1 -1
  261. package/dist/rsuite-rtl.min.css.map +1 -1
  262. package/dist/rsuite.css +274 -36
  263. package/dist/rsuite.js +427 -174
  264. package/dist/rsuite.js.map +1 -1
  265. package/dist/rsuite.min.css +1 -1
  266. package/dist/rsuite.min.css.map +1 -1
  267. package/dist/rsuite.min.js +1 -1
  268. package/dist/rsuite.min.js.map +1 -1
  269. package/esm/Affix/Affix.js +2 -2
  270. package/esm/Animation/Transition.js +7 -7
  271. package/esm/AutoComplete/AutoComplete.js +7 -7
  272. package/esm/Avatar/useImage.js +1 -1
  273. package/esm/Breadcrumb/Breadcrumb.js +1 -1
  274. package/esm/Calendar/Calendar.js +3 -3
  275. package/esm/Calendar/CalendarContainer.js +1 -1
  276. package/esm/Calendar/Grid/GridRow.js +3 -3
  277. package/esm/Calendar/MonthDropdown/MonthDropdownItem.js +1 -1
  278. package/esm/Calendar/TimeDropdown/TimeDropdown.js +3 -3
  279. package/esm/Calendar/hooks/useCalendarState.js +6 -6
  280. package/esm/Card/Card.d.ts +33 -0
  281. package/esm/Card/Card.js +58 -0
  282. package/esm/Card/CardBody.d.ts +4 -0
  283. package/esm/Card/CardBody.js +7 -0
  284. package/esm/Card/CardFooter.d.ts +4 -0
  285. package/esm/Card/CardFooter.js +7 -0
  286. package/esm/Card/CardHeader.d.ts +4 -0
  287. package/esm/Card/CardHeader.js +7 -0
  288. package/esm/Card/index.d.ts +6 -0
  289. package/esm/Card/index.js +3 -0
  290. package/esm/CardGroup/CardGroup.d.ts +13 -0
  291. package/esm/CardGroup/CardGroup.js +42 -0
  292. package/esm/CardGroup/index.d.ts +3 -0
  293. package/esm/CardGroup/index.js +3 -0
  294. package/esm/Carousel/Carousel.js +5 -4
  295. package/esm/CascadeTree/CascadeTree.js +1 -1
  296. package/esm/CascadeTree/TreeView.js +1 -1
  297. package/esm/CascadeTree/hooks/useSearch.js +4 -4
  298. package/esm/CascadeTree/hooks/useSelect.js +2 -2
  299. package/esm/Cascader/Cascader.js +13 -13
  300. package/esm/Cascader/useActive.js +4 -4
  301. package/esm/CheckPicker/CheckPicker.js +5 -5
  302. package/esm/CheckTree/CheckTree.js +1 -1
  303. package/esm/CheckTree/CheckTreeNode.js +3 -3
  304. package/esm/CheckTree/CheckTreeView.js +7 -7
  305. package/esm/CheckTree/utils.js +3 -3
  306. package/esm/CheckTreePicker/CheckTreePicker.js +2 -2
  307. package/esm/CheckTreePicker/hooks/useFocusState.js +3 -3
  308. package/esm/Checkbox/Checkbox.js +2 -2
  309. package/esm/CheckboxGroup/CheckboxGroup.js +1 -1
  310. package/esm/CustomProvider/FormattedNumber.d.ts +7 -0
  311. package/esm/CustomProvider/FormattedNumber.js +13 -0
  312. package/esm/CustomProvider/index.d.ts +1 -0
  313. package/esm/CustomProvider/index.js +1 -0
  314. package/esm/CustomProvider/types.d.ts +10 -0
  315. package/esm/CustomProvider/useCustom.d.ts +1 -0
  316. package/esm/CustomProvider/useCustom.js +3 -1
  317. package/esm/DateInput/DateField.js +2 -2
  318. package/esm/DateInput/DateInput.js +2 -2
  319. package/esm/DateInput/hooks/useDateInputState.js +2 -2
  320. package/esm/DateInput/hooks/useIsFocused.js +2 -2
  321. package/esm/DateInput/hooks/useKeyboardInputEvent.js +5 -5
  322. package/esm/DatePicker/DatePicker.js +14 -14
  323. package/esm/DatePicker/PredefinedRanges.js +1 -1
  324. package/esm/DatePicker/hooks/useFocus.js +1 -1
  325. package/esm/DatePicker/hooks/useMonthView.js +1 -1
  326. package/esm/DateRangeInput/DateRangeInput.js +4 -4
  327. package/esm/DateRangePicker/DateRangePicker.js +8 -8
  328. package/esm/DateRangePicker/hooks/useCalendarHandlers.js +5 -5
  329. package/esm/Dropdown/Dropdown.js +3 -3
  330. package/esm/Dropdown/DropdownItem.js +2 -2
  331. package/esm/Dropdown/DropdownMenu.js +1 -1
  332. package/esm/Form/Form.js +8 -8
  333. package/esm/Form/hooks/useFormValidate.js +19 -19
  334. package/esm/FormControl/FormControl.js +5 -5
  335. package/esm/FormControl/hooks/useField.js +1 -1
  336. package/esm/FormControl/hooks/useRegisterModel.js +2 -2
  337. package/esm/Image/Image.d.ts +42 -0
  338. package/esm/Image/Image.js +97 -0
  339. package/esm/Image/ImageWrapper.d.ts +1 -0
  340. package/esm/Image/ImageWrapper.js +6 -0
  341. package/esm/Image/hooks/useImage.d.ts +14 -0
  342. package/esm/Image/hooks/useImage.js +63 -0
  343. package/esm/Image/index.d.ts +3 -0
  344. package/esm/Image/index.js +3 -0
  345. package/esm/InlineEdit/renderChildren.js +1 -1
  346. package/esm/InlineEdit/useEditState.js +7 -7
  347. package/esm/InlineEdit/useFocusEvent.js +5 -5
  348. package/esm/Input/Input.js +3 -3
  349. package/esm/InputGroup/InputGroup.js +2 -2
  350. package/esm/InputNumber/InputNumber.js +3 -3
  351. package/esm/InputPicker/InputAutosize.js +1 -1
  352. package/esm/InputPicker/InputPicker.js +13 -13
  353. package/esm/InputPicker/InputSearch.js +1 -1
  354. package/esm/InputPicker/hooks/useData.js +1 -1
  355. package/esm/InputPicker/hooks/useInput.js +2 -2
  356. package/esm/List/List.d.ts +19 -1
  357. package/esm/List/List.js +11 -7
  358. package/esm/List/ListItem.d.ts +1 -1
  359. package/esm/List/helper/useSortHelper.js +10 -10
  360. package/esm/MaskedInput/TextMask.js +3 -3
  361. package/esm/Message/Message.js +1 -1
  362. package/esm/Modal/Modal.js +6 -6
  363. package/esm/Modal/utils.js +2 -2
  364. package/esm/MultiCascadeTree/SearchView.js +1 -1
  365. package/esm/MultiCascadeTree/TreeView.js +1 -1
  366. package/esm/MultiCascadeTree/hooks/useCascadeValue.js +5 -5
  367. package/esm/MultiCascadeTree/hooks/useSearch.js +1 -1
  368. package/esm/MultiCascadeTree/hooks/useSelect.js +1 -1
  369. package/esm/MultiCascadeTree/utils.js +13 -10
  370. package/esm/MultiCascader/MultiCascader.js +5 -5
  371. package/esm/Nav/Nav.js +2 -2
  372. package/esm/Nav/NavDropdown.js +3 -3
  373. package/esm/Nav/NavDropdownItem.js +2 -2
  374. package/esm/Nav/NavDropdownMenu.js +1 -1
  375. package/esm/Nav/NavItem.js +3 -3
  376. package/esm/Navbar/NavbarDropdown.js +3 -3
  377. package/esm/Navbar/NavbarDropdownItem.js +4 -4
  378. package/esm/Navbar/NavbarItem.js +3 -3
  379. package/esm/Notification/Notification.js +1 -1
  380. package/esm/Pagination/PaginationButton.js +1 -1
  381. package/esm/Pagination/PaginationGroup.js +3 -3
  382. package/esm/Panel/Panel.js +2 -2
  383. package/esm/PanelGroup/PanelGroup.js +1 -1
  384. package/esm/Placeholder/PlaceholderGrid.js +2 -2
  385. package/esm/Placeholder/PlaceholderParagraph.js +1 -1
  386. package/esm/Radio/Radio.js +2 -2
  387. package/esm/RadioGroup/RadioGroup.js +1 -1
  388. package/esm/RadioTile/RadioTile.js +2 -2
  389. package/esm/RadioTileGroup/RadioTileGroup.js +1 -1
  390. package/esm/RangeSlider/RangeSlider.js +5 -5
  391. package/esm/Rate/Character.js +2 -2
  392. package/esm/Rate/Rate.js +3 -3
  393. package/esm/SafeAnchor/SafeAnchor.js +1 -1
  394. package/esm/SelectPicker/SelectPicker.js +7 -7
  395. package/esm/Sidebar/Sidebar.js +1 -1
  396. package/esm/Sidenav/ExpandedSidenavDropdown.js +4 -4
  397. package/esm/Sidenav/ExpandedSidenavDropdownItem.js +3 -3
  398. package/esm/Sidenav/ExpandedSidenavDropdownMenu.js +2 -2
  399. package/esm/Sidenav/Sidenav.js +1 -1
  400. package/esm/Sidenav/SidenavDropdown.js +4 -4
  401. package/esm/Sidenav/SidenavDropdownItem.js +2 -2
  402. package/esm/Sidenav/SidenavDropdownMenu.js +1 -1
  403. package/esm/Sidenav/SidenavItem.js +4 -4
  404. package/esm/Sidenav/SidenavToggle.js +1 -1
  405. package/esm/Slider/Graduated.js +1 -1
  406. package/esm/Slider/Slider.js +3 -3
  407. package/esm/Slider/useDrag.js +6 -6
  408. package/esm/Stack/HStack.d.ts +6 -3
  409. package/esm/Stack/HStack.js +1 -0
  410. package/esm/Stack/Stack.d.ts +6 -2
  411. package/esm/Stack/Stack.js +1 -1
  412. package/esm/Stack/VStack.d.ts +6 -3
  413. package/esm/Stack/VStack.js +1 -0
  414. package/esm/Stat/Stat.d.ts +26 -0
  415. package/esm/Stat/Stat.js +52 -0
  416. package/esm/Stat/StatHelpText.d.ts +4 -0
  417. package/esm/Stat/StatHelpText.js +7 -0
  418. package/esm/Stat/StatLabel.d.ts +14 -0
  419. package/esm/Stat/StatLabel.js +48 -0
  420. package/esm/Stat/StatTrend.d.ts +7 -0
  421. package/esm/Stat/StatTrend.js +63 -0
  422. package/esm/Stat/StatValue.d.ts +7 -0
  423. package/esm/Stat/StatValue.js +36 -0
  424. package/esm/Stat/StatValueUnit.d.ts +4 -0
  425. package/esm/Stat/StatValueUnit.js +7 -0
  426. package/esm/Stat/index.d.ts +3 -0
  427. package/esm/Stat/index.js +3 -0
  428. package/esm/StatGroup/StatGroup.d.ts +13 -0
  429. package/esm/StatGroup/StatGroup.js +42 -0
  430. package/esm/StatGroup/index.d.ts +3 -0
  431. package/esm/StatGroup/index.js +3 -0
  432. package/esm/Tabs/Tabs.js +1 -1
  433. package/esm/Timeline/Timeline.js +1 -1
  434. package/esm/Toggle/Toggle.js +1 -1
  435. package/esm/Tree/Tree.js +1 -1
  436. package/esm/Tree/TreeNode.js +9 -9
  437. package/esm/Tree/TreeView.js +7 -7
  438. package/esm/Tree/hooks/useExpandTree.js +1 -1
  439. package/esm/Tree/hooks/useFlattenTree.js +1 -1
  440. package/esm/Tree/hooks/useFocusTree.js +6 -6
  441. package/esm/Tree/hooks/useTreeDrag.js +17 -17
  442. package/esm/Tree/hooks/useTreeSearch.js +1 -1
  443. package/esm/Tree/utils/flattenTree.js +6 -6
  444. package/esm/Tree/utils/focusableTree.js +6 -6
  445. package/esm/Tree/utils/getNodeParentKeys.js +4 -4
  446. package/esm/Tree/utils/treeKeyboardInteractions.js +2 -2
  447. package/esm/TreePicker/TreePicker.js +5 -5
  448. package/esm/TreePicker/hooks/useFocusState.js +4 -4
  449. package/esm/Uploader/UploadFileItem.js +5 -5
  450. package/esm/Uploader/UploadTrigger.js +11 -11
  451. package/esm/Uploader/Uploader.js +16 -16
  452. package/esm/Uploader/utils/ajaxUpload.js +5 -5
  453. package/esm/index.d.ts +10 -0
  454. package/esm/index.js +5 -0
  455. package/esm/internals/Disclosure/Disclosure.js +3 -3
  456. package/esm/internals/Disclosure/DisclosureButton.js +2 -2
  457. package/esm/internals/Menu/Menu.js +3 -3
  458. package/esm/internals/Menu/MenuItem.js +1 -1
  459. package/esm/internals/Menu/Menubar.js +2 -2
  460. package/esm/internals/Overlay/Modal.js +7 -7
  461. package/esm/internals/Overlay/Overlay.js +1 -1
  462. package/esm/internals/Overlay/OverlayTrigger.js +3 -3
  463. package/esm/internals/Overlay/Position.js +5 -5
  464. package/esm/internals/Picker/ListCheckItem.js +3 -3
  465. package/esm/internals/Picker/ListItem.js +1 -1
  466. package/esm/internals/Picker/Listbox.js +4 -4
  467. package/esm/internals/Picker/PickerToggle.js +2 -2
  468. package/esm/internals/Picker/SelectedElement.js +1 -1
  469. package/esm/internals/Picker/hooks/useFocusItemValue.js +2 -2
  470. package/esm/internals/Picker/hooks/usePickerRef.js +4 -4
  471. package/esm/internals/Picker/hooks/useSearch.js +1 -1
  472. package/esm/internals/Picker/hooks/useToggleKeyDownEvent.js +9 -9
  473. package/esm/internals/Picker/utils.js +8 -8
  474. package/esm/internals/Ripple/Ripple.js +2 -2
  475. package/esm/internals/ScrollView/hooks/useScrollState.js +1 -1
  476. package/esm/internals/Tree/utils/filterNodesOfTree.js +3 -3
  477. package/esm/internals/Tree/utils/findNodeOfTree.js +3 -3
  478. package/esm/internals/Tree/utils/getParentMap.js +3 -3
  479. package/esm/internals/Windowing/AutoSizer.js +1 -1
  480. package/esm/internals/Windowing/List.js +4 -4
  481. package/esm/internals/hooks/useClickOutside.js +1 -1
  482. package/esm/internals/hooks/useElementResize.js +1 -1
  483. package/esm/internals/hooks/useEventListener.js +1 -1
  484. package/esm/internals/hooks/useFocus.js +2 -2
  485. package/esm/internals/hooks/useMount.js +1 -1
  486. package/esm/internals/hooks/useRootClose.js +4 -4
  487. package/esm/internals/hooks/useTimeout.js +1 -1
  488. package/esm/internals/utils/getDOMNode.js +2 -1
  489. package/esm/internals/utils/stringifyReactNode.js +5 -5
  490. package/esm/toaster/ToastContainer.d.ts +1 -0
  491. package/esm/toaster/ToastContainer.js +19 -14
  492. package/esm/toaster/hooks/useDelayedClosure.js +2 -2
  493. package/esm/toaster/toaster.js +7 -7
  494. package/esm/useToaster/useToaster.js +1 -1
  495. package/package.json +1 -1
  496. package/styles/color-modes/dark.less +6 -0
  497. package/styles/color-modes/high-contrast.less +6 -0
  498. package/styles/color-modes/light.less +6 -0
  499. package/styles/index.less +5 -0
  500. package/toaster/styles/index.css +24 -24
  501. package/toaster/styles/index.less +29 -29
  502. package/useToaster/styles/index.css +24 -24
package/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ # [5.76.0](https://github.com/rsuite/rsuite/compare/v5.75.0...v5.76.0) (2024-12-20)
2
+
3
+
4
+ ### Features
5
+
6
+ * **Image:** add support for Image ([#4068](https://github.com/rsuite/rsuite/issues/4068)) ([46980f9](https://github.com/rsuite/rsuite/commit/46980f985094110925fa5e2ad5c69a46cd84e7eb))
7
+
8
+
9
+
10
+ # [5.75.0](https://github.com/rsuite/rsuite/compare/v5.74.2...v5.75.0) (2024-12-06)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **useToaster:** fix the container parameter of `toaster.push` does not work ([#4057](https://github.com/rsuite/rsuite/issues/4057)) ([c0073c3](https://github.com/rsuite/rsuite/commit/c0073c37e087a15bfd5c7457418da2890b18b573))
16
+
17
+
18
+ ### Features
19
+
20
+ * **Card:** add support for Card ([#4061](https://github.com/rsuite/rsuite/issues/4061)) ([1c25622](https://github.com/rsuite/rsuite/commit/1c2562236d8be0b9a68862168e2bb4abd9e8b222))
21
+ * **List:** add support divider on List ([#4062](https://github.com/rsuite/rsuite/issues/4062)) ([7f170b7](https://github.com/rsuite/rsuite/commit/7f170b782c0c60ce9abafdcfae71feadb25c93c7))
22
+ * **Stat:** add support for Stat ([#4056](https://github.com/rsuite/rsuite/issues/4056)) ([c270e87](https://github.com/rsuite/rsuite/commit/c270e87f52d4881133eb73403102df5c9a5ad5a9))
23
+
24
+
25
+
1
26
  ## [5.74.2](https://github.com/rsuite/rsuite/compare/v5.74.1...v5.74.2) (2024-11-08)
2
27
 
3
28
 
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "rsuite/Card",
3
+ "private": true,
4
+ "main": "../cjs/Card/index.js",
5
+ "module": "../esm/Card/index.js",
6
+ "types": "../esm/Card/index.d.ts"
7
+ }
@@ -0,0 +1,105 @@
1
+ :root,
2
+ .rs-theme-light {
3
+ --rs-gray-0: #fff;
4
+ --rs-gray-100: #f2f2f5;
5
+ --rs-gray-200: #e5e5ea;
6
+ --rs-gray-600: #717273;
7
+ --rs-gray-900: #121212;
8
+ --rs-border-primary: var(--rs-gray-200);
9
+ --rs-card-bg: var(--rs-gray-0);
10
+ --rs-panel-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
11
+ }
12
+ .rs-theme-dark {
13
+ --rs-gray-0: #fff;
14
+ --rs-gray-100: #cbced4;
15
+ --rs-gray-200: #a4a9b3;
16
+ --rs-gray-600: #3c3f43;
17
+ --rs-gray-900: #0f131a;
18
+ --rs-border-primary: var(--rs-gray-600);
19
+ --rs-card-bg: var(--rs-gray-900);
20
+ --rs-panel-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
21
+ }
22
+ .rs-theme-high-contrast {
23
+ --rs-gray-0: #fff;
24
+ --rs-gray-100: #cbced4;
25
+ --rs-gray-200: #a4a9b3;
26
+ --rs-gray-600: #3c3f43;
27
+ --rs-gray-900: #0f131a;
28
+ --rs-border-primary: var(--rs-gray-100);
29
+ --rs-card-bg: var(--rs-gray-900);
30
+ --rs-panel-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
31
+ }
32
+ /* stylelint-disable */
33
+ *[class*='rs-'] {
34
+ -webkit-box-sizing: border-box;
35
+ box-sizing: border-box;
36
+ }
37
+ *[class*='rs-']::before,
38
+ *[class*='rs-']::after {
39
+ -webkit-box-sizing: border-box;
40
+ box-sizing: border-box;
41
+ }
42
+ .rs-card {
43
+ --rs-card-width: 100%;
44
+ --rs-card-padding: 16px;
45
+ display: -webkit-box;
46
+ display: -ms-flexbox;
47
+ display: flex;
48
+ -webkit-box-orient: vertical;
49
+ -webkit-box-direction: normal;
50
+ -ms-flex-direction: column;
51
+ flex-direction: column;
52
+ border-radius: 6px;
53
+ overflow: hidden;
54
+ -webkit-box-sizing: border-box;
55
+ box-sizing: border-box;
56
+ position: relative;
57
+ width: var(--rs-card-width);
58
+ }
59
+ .rs-card-bordered {
60
+ border: 1px solid #e5e5ea;
61
+ border: 1px solid var(--rs-border-primary);
62
+ background-color: #fff;
63
+ background-color: var(--rs-card-bg);
64
+ }
65
+ .rs-card-shaded {
66
+ -webkit-box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
67
+ -webkit-box-shadow: var(--rs-panel-shadow);
68
+ box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
69
+ box-shadow: var(--rs-panel-shadow);
70
+ }
71
+ .rs-card-shaded-hover:hover {
72
+ -webkit-box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
73
+ -webkit-box-shadow: var(--rs-panel-shadow);
74
+ box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
75
+ box-shadow: var(--rs-panel-shadow);
76
+ cursor: pointer;
77
+ }
78
+ .rs-card-sm {
79
+ --rs-card-padding: 8px;
80
+ }
81
+ .rs-card-md {
82
+ --rs-card-padding: 16px;
83
+ }
84
+ .rs-card-lg {
85
+ --rs-card-padding: 24px;
86
+ }
87
+ .rs-card-row {
88
+ -webkit-box-orient: horizontal;
89
+ -webkit-box-direction: normal;
90
+ -ms-flex-direction: row;
91
+ flex-direction: row;
92
+ }
93
+ .rs-card-header {
94
+ padding: var(--rs-card-padding) var(--rs-card-padding) 0 var(--rs-card-padding);
95
+ }
96
+ .rs-card-body {
97
+ padding: var(--rs-card-padding);
98
+ }
99
+ .rs-card-footer {
100
+ display: -webkit-box;
101
+ display: -ms-flexbox;
102
+ display: flex;
103
+ gap: 8px;
104
+ padding: 0 var(--rs-card-padding) var(--rs-card-padding) var(--rs-card-padding);
105
+ }
@@ -0,0 +1,62 @@
1
+ @import '../../styles/common.less';
2
+
3
+ //
4
+ // Card
5
+ // --------------------------------------------------
6
+
7
+ .rs-card {
8
+ --rs-card-width: 100%;
9
+ --rs-card-padding: 16px;
10
+
11
+ display: flex;
12
+ flex-direction: column;
13
+ border-radius: 6px;
14
+ overflow: hidden;
15
+ box-sizing: border-box;
16
+ position: relative;
17
+ width: var(--rs-card-width);
18
+
19
+ &-bordered {
20
+ border: 1px solid var(--rs-border-primary);
21
+ background-color: var(--rs-card-bg);
22
+ }
23
+
24
+ &-shaded {
25
+ box-shadow: var(--rs-panel-shadow);
26
+ }
27
+
28
+ &-shaded-hover:hover {
29
+ box-shadow: var(--rs-panel-shadow);
30
+ cursor: pointer;
31
+ }
32
+
33
+ &-sm {
34
+ --rs-card-padding: 8px;
35
+ }
36
+
37
+ &-md {
38
+ --rs-card-padding: 16px;
39
+ }
40
+
41
+ &-lg {
42
+ --rs-card-padding: 24px;
43
+ }
44
+
45
+ &-row {
46
+ flex-direction: row;
47
+ }
48
+
49
+ &-header {
50
+ padding: var(--rs-card-padding) var(--rs-card-padding) 0 var(--rs-card-padding);
51
+ }
52
+
53
+ &-body {
54
+ padding: var(--rs-card-padding);
55
+ }
56
+
57
+ &-footer {
58
+ display: flex;
59
+ gap: 8px;
60
+ padding: 0 var(--rs-card-padding) var(--rs-card-padding) var(--rs-card-padding);
61
+ }
62
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "rsuite/CardBody",
3
+ "private": true,
4
+ "main": "../cjs/Card/CardBody.js",
5
+ "module": "../esm/Card/CardBody.js",
6
+ "types": "../esm/Card/CardBody.d.ts"
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "rsuite/CardFooter",
3
+ "private": true,
4
+ "main": "../cjs/Card/CardFooter.js",
5
+ "module": "../esm/Card/CardFooter.js",
6
+ "types": "../esm/Card/CardFooter.d.ts"
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "rsuite/CardGroup",
3
+ "private": true,
4
+ "main": "../cjs/CardGroup/index.js",
5
+ "module": "../esm/CardGroup/index.js",
6
+ "types": "../esm/CardGroup/index.d.ts"
7
+ }
@@ -0,0 +1,7 @@
1
+ .rs-card-group {
2
+ --rs-columns: 4;
3
+ --rs-spacing: 20px;
4
+ display: grid;
5
+ grid-template-columns: repeat(var(--rs-columns), 1fr);
6
+ grid-gap: var(--rs-spacing);
7
+ }
@@ -0,0 +1,8 @@
1
+ .rs-card-group {
2
+ --rs-columns: 4;
3
+ --rs-spacing: 20px;
4
+
5
+ display: grid;
6
+ grid-template-columns: repeat(var(--rs-columns), 1fr);
7
+ grid-gap: var(--rs-spacing);
8
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "rsuite/CardHeader",
3
+ "private": true,
4
+ "main": "../cjs/Card/CardHeader.js",
5
+ "module": "../esm/Card/CardHeader.js",
6
+ "types": "../esm/Card/CardHeader.d.ts"
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "rsuite/Image",
3
+ "private": true,
4
+ "main": "../cjs/Image/index.js",
5
+ "module": "../esm/Image/index.js",
6
+ "types": "../esm/Image/index.d.ts"
7
+ }
@@ -0,0 +1,33 @@
1
+ .rs-image {
2
+ --rs-object-fit: cover;
3
+ --rs-object-position: initial;
4
+ -o-object-fit: var(--rs-object-fit);
5
+ object-fit: var(--rs-object-fit);
6
+ -o-object-position: var(--rs-object-position);
7
+ object-position: var(--rs-object-position);
8
+ max-width: 100%;
9
+ }
10
+ .rs-image-rounded {
11
+ border-radius: 6px;
12
+ }
13
+ .rs-image-circle {
14
+ border-radius: 50%;
15
+ }
16
+ .rs-image-bordered {
17
+ border: 1px solid var(--rs-border-primary);
18
+ }
19
+ .rs-image-zoomed {
20
+ -webkit-transition: -webkit-transform 0.3s ease-in-out;
21
+ transition: -webkit-transform 0.3s ease-in-out;
22
+ transition: transform 0.3s ease-in-out;
23
+ transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
24
+ cursor: pointer;
25
+ }
26
+ .rs-image-zoomed:hover {
27
+ -webkit-transform: matrix(1.25, 0, 0, 1.25, 0, 0);
28
+ transform: matrix(1.25, 0, 0, 1.25, 0, 0);
29
+ }
30
+ .rs-image-wrapper {
31
+ position: relative;
32
+ overflow: hidden;
33
+ }
@@ -0,0 +1,34 @@
1
+ .rs-image {
2
+ --rs-object-fit: cover;
3
+ --rs-object-position: initial;
4
+
5
+ object-fit: var(--rs-object-fit);
6
+ object-position: var(--rs-object-position);
7
+ max-width: 100%;
8
+
9
+ &-rounded {
10
+ border-radius: 6px;
11
+ }
12
+
13
+ &-circle {
14
+ border-radius: 50%;
15
+ }
16
+
17
+ &-bordered {
18
+ border: 1px solid var(--rs-border-primary);
19
+ }
20
+
21
+ &-zoomed {
22
+ transition: transform 0.3s ease-in-out;
23
+ cursor: pointer;
24
+
25
+ &:hover {
26
+ transform: matrix(1.25, 0, 0, 1.25, 0, 0);
27
+ }
28
+ }
29
+ }
30
+
31
+ .rs-image-wrapper {
32
+ position: relative;
33
+ overflow: hidden;
34
+ }
@@ -72,19 +72,13 @@
72
72
  }
73
73
  .rs-list {
74
74
  position: relative;
75
- -webkit-box-shadow: 0 1px 0 #e5e5ea, 0 -1px 0 #e5e5ea;
76
- -webkit-box-shadow: 0 1px 0 var(--rs-list-border), 0 -1px 0 var(--rs-list-border);
77
- box-shadow: 0 1px 0 #e5e5ea, 0 -1px 0 #e5e5ea;
78
- box-shadow: 0 1px 0 var(--rs-list-border), 0 -1px 0 var(--rs-list-border);
79
75
  overflow-x: hidden;
80
76
  overflow-y: auto;
81
77
  }
82
78
  .rs-list-bordered {
83
79
  border-radius: 6px;
84
- -webkit-box-shadow: 0 0 0 1px #e5e5ea;
85
- -webkit-box-shadow: 0 0 0 1px var(--rs-list-border);
86
- box-shadow: 0 0 0 1px #e5e5ea;
87
- box-shadow: 0 0 0 1px var(--rs-list-border);
80
+ border: 1px solid #e5e5ea;
81
+ border: 1px solid var(--rs-list-border);
88
82
  }
89
83
  .rs-list-hover .rs-list-item:hover {
90
84
  background-color: #f2faff;
@@ -118,15 +112,15 @@
118
112
  padding-top: 8px;
119
113
  padding-bottom: 8px;
120
114
  }
115
+ .rs-list-item-xs {
116
+ padding-top: 2px;
117
+ padding-bottom: 2px;
118
+ }
121
119
  /* rtl:begin:ignore */
122
120
  /* stylelint-disable-next-line */
123
121
  .rs-list-item {
124
122
  background-color: #fff;
125
123
  background-color: var(--rs-list-bg);
126
- -webkit-box-shadow: 0 -1px 0 #e5e5ea, 0 1px 0 #e5e5ea;
127
- -webkit-box-shadow: 0 -1px 0 var(--rs-list-border), 0 1px 0 var(--rs-list-border);
128
- box-shadow: 0 -1px 0 #e5e5ea, 0 1px 0 #e5e5ea;
129
- box-shadow: 0 -1px 0 var(--rs-list-border), 0 1px 0 var(--rs-list-border);
130
124
  }
131
125
  .rs-list-item-helper {
132
126
  position: absolute;
@@ -164,4 +158,8 @@
164
158
  border: 1px #3498ff dashed;
165
159
  border: 1px var(--rs-list-placeholder-border) dashed;
166
160
  }
161
+ .rs-list-divider .rs-list-item + .rs-list-item {
162
+ border-top: 1px solid #e5e5ea;
163
+ border-top: 1px solid var(--rs-list-border);
164
+ }
167
165
  /* rtl:end:ignore */
@@ -6,14 +6,12 @@
6
6
 
7
7
  .rs-list {
8
8
  position: relative;
9
- // border-top and border-bottom
10
- box-shadow: 0 1px 0 var(--rs-list-border), 0 -1px 0 var(--rs-list-border);
11
9
  overflow-x: hidden;
12
10
  overflow-y: auto;
13
11
 
14
12
  &-bordered {
15
13
  border-radius: @border-radius;
16
- box-shadow: 0 0 0 1px var(--rs-list-border);
14
+ border: @list-border-width solid var(--rs-list-border);
17
15
  }
18
16
 
19
17
  &-hover .rs-list-item:hover {
@@ -54,13 +52,17 @@
54
52
  padding-top: 8px;
55
53
  padding-bottom: 8px;
56
54
  }
55
+
56
+ &-xs {
57
+ padding-top: 2px;
58
+ padding-bottom: 2px;
59
+ }
57
60
  }
58
61
 
59
62
  /* rtl:begin:ignore */
60
63
  /* stylelint-disable-next-line */ // For RTL Scope
61
64
  .rs-list-item {
62
65
  background-color: var(--rs-list-bg);
63
- box-shadow: 0 -1px 0 var(--rs-list-border), 0 1px 0 var(--rs-list-border);
64
66
 
65
67
  &-helper {
66
68
  position: absolute;
@@ -102,4 +104,10 @@
102
104
  }
103
105
  }
104
106
 
107
+ .rs-list-divider {
108
+ .rs-list-item + .rs-list-item {
109
+ border-top: @list-border-width solid var(--rs-list-border);
110
+ }
111
+ }
112
+
105
113
  /* rtl:end:ignore */
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "rsuite/Stat",
3
+ "private": true,
4
+ "main": "../cjs/Stat/index.js",
5
+ "module": "../esm/Stat/index.js",
6
+ "types": "../esm/Stat/index.d.ts"
7
+ }