naive-ui 2.30.8 → 2.31.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 (904) hide show
  1. package/dist/index.js +1362 -535
  2. package/dist/index.prod.js +2 -2
  3. package/es/_internal/scrollbar/src/Scrollbar.js +8 -2
  4. package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -0
  5. package/es/_internal/selection/src/styles/index.cssr.js +1 -0
  6. package/es/_mixins/use-rtl.d.ts +1 -1
  7. package/es/_mixins/use-rtl.js +1 -1
  8. package/es/_utils/env/browser.d.ts +3 -0
  9. package/es/_utils/env/browser.js +4 -0
  10. package/es/_utils/env/is-native-lazy-load.d.ts +1 -0
  11. package/es/_utils/env/is-native-lazy-load.js +3 -0
  12. package/es/affix/index.d.ts +1 -1
  13. package/es/affix/index.js +1 -1
  14. package/es/alert/index.d.ts +1 -1
  15. package/es/alert/index.js +1 -1
  16. package/es/alert/src/Alert.d.ts +1 -1
  17. package/es/alert/src/Alert.js +2 -2
  18. package/es/anchor/index.d.ts +2 -2
  19. package/es/anchor/index.js +2 -2
  20. package/es/anchor/src/AnchorAdapter.d.ts +1 -1
  21. package/es/anchor/src/AnchorAdapter.js +1 -1
  22. package/es/anchor/src/Link.d.ts +1 -1
  23. package/es/anchor/src/Link.js +1 -1
  24. package/es/auto-complete/index.d.ts +1 -1
  25. package/es/auto-complete/index.js +1 -1
  26. package/es/auto-complete/src/AutoComplete.d.ts +1 -1
  27. package/es/auto-complete/src/AutoComplete.js +1 -1
  28. package/es/avatar/index.d.ts +1 -1
  29. package/es/avatar/index.js +1 -1
  30. package/es/avatar/src/Avatar.d.ts +13 -1
  31. package/es/avatar/src/Avatar.js +61 -8
  32. package/es/avatar-group/index.d.ts +1 -1
  33. package/es/avatar-group/index.js +1 -1
  34. package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
  35. package/es/avatar-group/src/AvatarGroup.js +2 -2
  36. package/es/back-top/index.d.ts +1 -1
  37. package/es/back-top/index.js +1 -1
  38. package/es/back-top/src/BackTop.d.ts +1 -1
  39. package/es/back-top/src/BackTop.js +1 -1
  40. package/es/badge/index.d.ts +1 -1
  41. package/es/badge/index.js +1 -1
  42. package/es/badge/src/Badge.d.ts +1 -1
  43. package/es/badge/src/Badge.js +2 -2
  44. package/es/breadcrumb/index.d.ts +2 -2
  45. package/es/breadcrumb/index.js +2 -2
  46. package/es/breadcrumb/src/Breadcrumb.d.ts +1 -1
  47. package/es/breadcrumb/src/Breadcrumb.js +1 -1
  48. package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
  49. package/es/breadcrumb/src/BreadcrumbItem.js +1 -1
  50. package/es/breadcrumb/src/styles/index.cssr.js +1 -0
  51. package/es/button/index.d.ts +1 -1
  52. package/es/button/index.js +1 -1
  53. package/es/button/src/Button.d.ts +13 -4
  54. package/es/button/src/Button.js +8 -4
  55. package/es/button/src/styles/index.cssr.js +1 -0
  56. package/es/button-group/index.d.ts +1 -1
  57. package/es/button-group/index.js +1 -1
  58. package/es/button-group/src/ButtonGroup.d.ts +1 -1
  59. package/es/button-group/src/ButtonGroup.js +2 -2
  60. package/es/calendar/index.d.ts +1 -1
  61. package/es/calendar/index.js +1 -1
  62. package/es/calendar/src/Calendar.d.ts +1 -1
  63. package/es/calendar/src/Calendar.js +1 -1
  64. package/es/card/index.d.ts +1 -1
  65. package/es/card/index.js +1 -1
  66. package/es/card/src/Card.d.ts +2 -2
  67. package/es/card/src/Card.js +2 -2
  68. package/es/carousel/index.d.ts +1 -1
  69. package/es/carousel/index.js +1 -1
  70. package/es/carousel/src/Carousel.d.ts +1 -1
  71. package/es/carousel/src/Carousel.js +1 -1
  72. package/es/carousel/src/styles/index.cssr.js +1 -0
  73. package/es/cascader/index.d.ts +1 -1
  74. package/es/cascader/index.js +1 -1
  75. package/es/cascader/src/Cascader.d.ts +1 -1
  76. package/es/cascader/src/Cascader.js +1 -1
  77. package/es/cascader/src/utils.d.ts +1 -4
  78. package/es/cascader/src/utils.js +18 -28
  79. package/es/checkbox/index.d.ts +2 -2
  80. package/es/checkbox/index.js +2 -2
  81. package/es/checkbox/src/Checkbox.d.ts +1 -1
  82. package/es/checkbox/src/Checkbox.js +2 -2
  83. package/es/checkbox/src/CheckboxGroup.d.ts +1 -1
  84. package/es/checkbox/src/CheckboxGroup.js +1 -1
  85. package/es/checkbox/src/styles/index.cssr.js +2 -0
  86. package/es/code/index.d.ts +1 -1
  87. package/es/code/index.js +1 -1
  88. package/es/code/src/Code.d.ts +1 -1
  89. package/es/code/src/Code.js +1 -1
  90. package/es/collapse/index.d.ts +2 -2
  91. package/es/collapse/index.js +2 -2
  92. package/es/collapse/src/Collapse.d.ts +1 -1
  93. package/es/collapse/src/Collapse.js +2 -2
  94. package/es/collapse/src/CollapseItem.d.ts +1 -1
  95. package/es/collapse/src/CollapseItem.js +2 -2
  96. package/es/collapse-transition/index.d.ts +1 -1
  97. package/es/collapse-transition/index.js +1 -1
  98. package/es/collapse-transition/src/CollapseTransition.d.ts +2 -2
  99. package/es/collapse-transition/src/CollapseTransition.js +3 -3
  100. package/es/color-picker/index.d.ts +1 -1
  101. package/es/color-picker/index.js +1 -1
  102. package/es/color-picker/src/ColorPicker.d.ts +2 -2
  103. package/es/color-picker/src/ColorPicker.js +2 -2
  104. package/es/countdown/index.d.ts +2 -2
  105. package/es/countdown/index.js +1 -1
  106. package/es/countdown/src/Countdown.d.ts +9 -2
  107. package/es/countdown/src/Countdown.js +42 -26
  108. package/es/data-table/index.d.ts +1 -1
  109. package/es/data-table/index.js +1 -1
  110. package/es/data-table/src/TableParts/Body.d.ts +4 -0
  111. package/es/data-table/src/TableParts/Body.js +50 -34
  112. package/es/data-table/src/TableParts/BodyRadio.d.ts +30 -0
  113. package/es/data-table/src/TableParts/BodyRadio.js +30 -0
  114. package/es/data-table/src/TableParts/Header.js +2 -2
  115. package/es/data-table/src/interface.d.ts +2 -1
  116. package/es/data-table/src/use-check.d.ts +1 -1
  117. package/es/data-table/src/use-check.js +15 -3
  118. package/es/date-picker/index.d.ts +1 -1
  119. package/es/date-picker/index.js +1 -1
  120. package/es/date-picker/src/DatePicker.d.ts +1 -1
  121. package/es/date-picker/src/DatePicker.js +19 -10
  122. package/es/date-picker/src/panel/daterange.js +1 -1
  123. package/es/date-picker/src/panel/datetimerange.js +1 -1
  124. package/es/date-picker/src/panel/month.js +1 -1
  125. package/es/date-picker/src/panel/monthrange.js +1 -1
  126. package/es/date-picker/src/styles/index.cssr.js +4 -0
  127. package/es/descriptions/index.d.ts +2 -2
  128. package/es/descriptions/index.js +2 -2
  129. package/es/descriptions/src/Descriptions.d.ts +2 -2
  130. package/es/descriptions/src/Descriptions.js +2 -2
  131. package/es/descriptions/src/DescriptionsItem.d.ts +2 -2
  132. package/es/descriptions/src/DescriptionsItem.js +2 -2
  133. package/es/dialog/index.d.ts +2 -1
  134. package/es/dialog/index.js +2 -1
  135. package/es/dialog/src/DialogProvider.d.ts +1 -1
  136. package/es/dialog/src/DialogProvider.js +1 -1
  137. package/es/divider/index.d.ts +1 -1
  138. package/es/divider/index.js +1 -1
  139. package/es/divider/src/Divider.d.ts +1 -1
  140. package/es/divider/src/Divider.js +1 -1
  141. package/es/drawer/index.d.ts +2 -2
  142. package/es/drawer/index.js +2 -2
  143. package/es/drawer/src/Drawer.d.ts +60 -27
  144. package/es/drawer/src/Drawer.js +39 -18
  145. package/es/drawer/src/DrawerBodyWrapper.d.ts +9 -0
  146. package/es/drawer/src/DrawerBodyWrapper.js +97 -2
  147. package/es/drawer/src/DrawerContent.d.ts +2 -1
  148. package/es/drawer/src/DrawerContent.js +1 -1
  149. package/es/drawer/src/interface.d.ts +2 -0
  150. package/es/drawer/src/styles/index.cssr.js +42 -5
  151. package/es/drawer/styles/light.d.ts +2 -0
  152. package/es/drawer/styles/light.js +3 -2
  153. package/es/dropdown/index.d.ts +2 -2
  154. package/es/dropdown/index.js +1 -1
  155. package/es/dropdown/src/Dropdown.d.ts +10 -2
  156. package/es/dropdown/src/Dropdown.js +15 -4
  157. package/es/dropdown/src/DropdownMenu.d.ts +3 -0
  158. package/es/dropdown/src/DropdownMenu.js +23 -15
  159. package/es/dropdown/src/DropdownOption.d.ts +5 -0
  160. package/es/dropdown/src/DropdownOption.js +32 -10
  161. package/es/dropdown/src/interface.d.ts +2 -1
  162. package/es/dropdown/src/styles/index.cssr.js +17 -11
  163. package/es/dynamic-input/index.d.ts +1 -1
  164. package/es/dynamic-input/index.js +1 -1
  165. package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
  166. package/es/dynamic-input/src/DynamicInput.js +2 -2
  167. package/es/dynamic-tags/index.d.ts +1 -1
  168. package/es/dynamic-tags/index.js +1 -1
  169. package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
  170. package/es/dynamic-tags/src/DynamicTags.js +1 -1
  171. package/es/element/index.d.ts +1 -1
  172. package/es/element/index.js +1 -1
  173. package/es/element/src/Element.d.ts +1 -1
  174. package/es/element/src/Element.js +1 -1
  175. package/es/ellipsis/index.d.ts +1 -1
  176. package/es/ellipsis/index.js +1 -1
  177. package/es/ellipsis/src/Ellipsis.d.ts +1 -1
  178. package/es/ellipsis/src/Ellipsis.js +1 -1
  179. package/es/empty/index.d.ts +1 -1
  180. package/es/empty/index.js +1 -1
  181. package/es/empty/src/Empty.d.ts +1 -1
  182. package/es/empty/src/Empty.js +1 -1
  183. package/es/form/index.d.ts +3 -3
  184. package/es/form/index.js +3 -3
  185. package/es/form/src/Form.d.ts +1 -1
  186. package/es/form/src/Form.js +1 -1
  187. package/es/form/src/FormItemRow.d.ts +1 -1
  188. package/es/form/src/FormItemRow.js +1 -1
  189. package/es/form/src/styles/form-item.cssr.js +2 -0
  190. package/es/gradient-text/index.d.ts +1 -1
  191. package/es/gradient-text/index.js +1 -1
  192. package/es/gradient-text/src/GradientText.d.ts +1 -1
  193. package/es/gradient-text/src/GradientText.js +1 -1
  194. package/es/grid/index.d.ts +3 -3
  195. package/es/grid/index.js +3 -3
  196. package/es/grid/src/Grid.d.ts +1 -1
  197. package/es/grid/src/Grid.js +1 -1
  198. package/es/icon/index.d.ts +1 -1
  199. package/es/icon/index.js +1 -1
  200. package/es/icon/src/Icon.d.ts +1 -2
  201. package/es/icon/src/Icon.js +1 -1
  202. package/es/icon-wrapper/index.d.ts +1 -1
  203. package/es/icon-wrapper/index.js +1 -1
  204. package/es/icon-wrapper/src/IconWrapper.d.ts +1 -2
  205. package/es/icon-wrapper/src/IconWrapper.js +1 -1
  206. package/es/image/index.d.ts +2 -2
  207. package/es/image/index.js +2 -2
  208. package/es/image/src/Image.d.ts +1 -1
  209. package/es/image/src/Image.js +17 -10
  210. package/es/image/src/ImageGroup.d.ts +1 -1
  211. package/es/image/src/ImageGroup.js +1 -1
  212. package/es/image/src/styles/index.cssr.js +1 -0
  213. package/es/input/index.d.ts +3 -3
  214. package/es/input/index.js +3 -3
  215. package/es/input/src/Input.d.ts +1 -1
  216. package/es/input/src/Input.js +2 -2
  217. package/es/input/src/InputGroup.d.ts +1 -1
  218. package/es/input/src/InputGroup.js +1 -1
  219. package/es/input/src/InputGroupLabel.d.ts +1 -1
  220. package/es/input/src/InputGroupLabel.js +1 -1
  221. package/es/input/src/styles/input-group-label.cssr.js +1 -0
  222. package/es/input/src/styles/input.cssr.js +3 -0
  223. package/es/input-number/index.d.ts +1 -1
  224. package/es/input-number/index.js +1 -1
  225. package/es/input-number/src/InputNumber.d.ts +1 -1
  226. package/es/input-number/src/InputNumber.js +2 -2
  227. package/es/layout/index.d.ts +4 -4
  228. package/es/layout/index.js +4 -4
  229. package/es/layout/src/Layout.d.ts +1 -1
  230. package/es/layout/src/Layout.js +1 -1
  231. package/es/layout/src/LayoutFooter.d.ts +1 -1
  232. package/es/layout/src/LayoutFooter.js +1 -1
  233. package/es/layout/src/LayoutHeader.d.ts +1 -1
  234. package/es/layout/src/LayoutHeader.js +1 -1
  235. package/es/layout/src/LayoutSider.d.ts +1 -1
  236. package/es/layout/src/LayoutSider.js +1 -1
  237. package/es/legacy-grid/index.d.ts +2 -2
  238. package/es/legacy-grid/index.js +2 -2
  239. package/es/list/index.d.ts +1 -1
  240. package/es/list/index.js +1 -1
  241. package/es/list/src/List.d.ts +1 -1
  242. package/es/list/src/List.js +1 -1
  243. package/es/loading-bar/index.d.ts +1 -1
  244. package/es/loading-bar/index.js +1 -1
  245. package/es/loading-bar/src/LoadingBarProvider.d.ts +3 -3
  246. package/es/loading-bar/src/LoadingBarProvider.js +2 -2
  247. package/es/locales/common/ukUA.js +14 -18
  248. package/es/log/index.d.ts +1 -1
  249. package/es/log/index.js +1 -1
  250. package/es/log/src/Log.d.ts +1 -1
  251. package/es/log/src/Log.js +1 -1
  252. package/es/mention/index.d.ts +1 -1
  253. package/es/mention/index.js +1 -1
  254. package/es/mention/src/Mention.d.ts +1 -1
  255. package/es/mention/src/Mention.js +1 -1
  256. package/es/menu/index.d.ts +1 -1
  257. package/es/menu/index.js +1 -1
  258. package/es/menu/src/Menu.d.ts +1 -1
  259. package/es/menu/src/Menu.js +1 -1
  260. package/es/message/index.d.ts +1 -1
  261. package/es/message/index.js +1 -1
  262. package/es/message/src/MessageProvider.d.ts +1 -1
  263. package/es/message/src/MessageProvider.js +1 -1
  264. package/es/modal/index.d.ts +1 -1
  265. package/es/modal/index.js +1 -1
  266. package/es/modal/src/Modal.d.ts +1 -1
  267. package/es/modal/src/Modal.js +1 -1
  268. package/es/modal/src/presetProps.d.ts +1 -1
  269. package/es/notification/index.d.ts +1 -1
  270. package/es/notification/index.js +1 -1
  271. package/es/notification/src/Notification.d.ts +1 -0
  272. package/es/notification/src/Notification.js +6 -2
  273. package/es/notification/src/NotificationContainer.js +1 -1
  274. package/es/notification/src/NotificationProvider.d.ts +1 -1
  275. package/es/notification/src/NotificationProvider.js +1 -1
  276. package/es/notification/src/styles/index.cssr.js +1 -3
  277. package/es/notification/src/styles/rtl.cssr.d.ts +2 -0
  278. package/es/notification/src/styles/rtl.cssr.js +22 -0
  279. package/es/notification/styles/index.d.ts +1 -0
  280. package/es/notification/styles/index.js +1 -0
  281. package/es/notification/styles/rtl.d.ts +2 -0
  282. package/es/notification/styles/rtl.js +5 -0
  283. package/es/number-animation/index.d.ts +1 -1
  284. package/es/number-animation/index.js +1 -1
  285. package/es/number-animation/src/NumberAnimation.d.ts +5 -1
  286. package/es/number-animation/src/NumberAnimation.js +5 -2
  287. package/es/page-header/index.d.ts +1 -1
  288. package/es/page-header/index.js +1 -1
  289. package/es/page-header/src/PageHeader.d.ts +1 -1
  290. package/es/page-header/src/PageHeader.js +2 -2
  291. package/es/pagination/index.d.ts +1 -1
  292. package/es/pagination/index.js +1 -1
  293. package/es/pagination/src/Pagination.d.ts +1 -1
  294. package/es/pagination/src/Pagination.js +2 -2
  295. package/es/pagination/src/styles/index.cssr.js +1 -0
  296. package/es/popconfirm/index.d.ts +1 -1
  297. package/es/popconfirm/index.js +1 -1
  298. package/es/popconfirm/src/Popconfirm.d.ts +4 -1
  299. package/es/popconfirm/src/Popconfirm.js +1 -1
  300. package/es/popover/index.d.ts +1 -1
  301. package/es/popover/index.js +1 -1
  302. package/es/popover/src/Popover.d.ts +8 -1
  303. package/es/popover/src/Popover.js +4 -2
  304. package/es/popover/src/PopoverBody.d.ts +6 -0
  305. package/es/popover/src/PopoverBody.js +23 -14
  306. package/es/popover/src/styles/index.cssr.js +19 -15
  307. package/es/popselect/index.d.ts +1 -1
  308. package/es/popselect/index.js +1 -1
  309. package/es/popselect/src/Popselect.d.ts +4 -1
  310. package/es/popselect/src/Popselect.js +1 -1
  311. package/es/progress/index.d.ts +1 -1
  312. package/es/progress/index.js +1 -1
  313. package/es/progress/src/Progress.d.ts +1 -1
  314. package/es/progress/src/Progress.js +1 -1
  315. package/es/radio/index.d.ts +3 -3
  316. package/es/radio/index.js +3 -3
  317. package/es/radio/src/Radio.d.ts +25 -0
  318. package/es/radio/src/Radio.js +2 -1
  319. package/es/radio/src/RadioButton.d.ts +25 -0
  320. package/es/radio/src/RadioButton.js +1 -0
  321. package/es/radio/src/RadioGroup.d.ts +1 -1
  322. package/es/radio/src/RadioGroup.js +2 -2
  323. package/es/radio/src/styles/radio-group.cssr.js +2 -0
  324. package/es/radio/src/styles/radio.cssr.js +1 -0
  325. package/es/rate/index.d.ts +1 -1
  326. package/es/rate/index.js +1 -1
  327. package/es/rate/src/Rate.d.ts +1 -1
  328. package/es/rate/src/Rate.js +1 -1
  329. package/es/result/index.d.ts +1 -1
  330. package/es/result/index.js +1 -1
  331. package/es/result/src/Result.d.ts +1 -1
  332. package/es/result/src/Result.js +1 -1
  333. package/es/scrollbar/index.d.ts +1 -1
  334. package/es/scrollbar/index.js +1 -1
  335. package/es/scrollbar/src/Scrollbar.d.ts +1 -1
  336. package/es/scrollbar/src/Scrollbar.js +1 -1
  337. package/es/select/index.d.ts +1 -1
  338. package/es/select/index.js +1 -1
  339. package/es/select/src/Select.d.ts +1 -1
  340. package/es/select/src/Select.js +1 -1
  341. package/es/skeleton/index.d.ts +1 -1
  342. package/es/skeleton/index.js +1 -1
  343. package/es/skeleton/src/Skeleton.d.ts +1 -1
  344. package/es/skeleton/src/Skeleton.js +1 -1
  345. package/es/slider/index.d.ts +1 -1
  346. package/es/slider/index.js +1 -1
  347. package/es/slider/src/Slider.d.ts +1 -1
  348. package/es/slider/src/Slider.js +1 -1
  349. package/es/slider/src/styles/index.cssr.js +1 -0
  350. package/es/space/index.d.ts +1 -1
  351. package/es/space/index.js +1 -1
  352. package/es/space/src/Space.d.ts +1 -1
  353. package/es/space/src/Space.js +2 -2
  354. package/es/spin/index.d.ts +1 -1
  355. package/es/spin/index.js +1 -1
  356. package/es/spin/src/Spin.d.ts +1 -1
  357. package/es/spin/src/Spin.js +1 -1
  358. package/es/spin/src/styles/index.cssr.js +1 -0
  359. package/es/statistic/index.d.ts +1 -1
  360. package/es/statistic/index.js +1 -1
  361. package/es/statistic/src/Statistic.d.ts +1 -1
  362. package/es/statistic/src/Statistic.js +1 -1
  363. package/es/steps/index.d.ts +2 -2
  364. package/es/steps/index.js +2 -2
  365. package/es/steps/src/Step.d.ts +1 -1
  366. package/es/steps/src/Step.js +1 -1
  367. package/es/steps/src/Steps.d.ts +1 -1
  368. package/es/steps/src/Steps.js +1 -1
  369. package/es/switch/index.d.ts +1 -1
  370. package/es/switch/index.js +1 -1
  371. package/es/switch/src/Switch.d.ts +1 -1
  372. package/es/switch/src/Switch.js +1 -1
  373. package/es/switch/src/styles/index.cssr.js +1 -0
  374. package/es/table/index.d.ts +1 -1
  375. package/es/table/index.js +1 -1
  376. package/es/table/src/Table.d.ts +1 -1
  377. package/es/table/src/Table.js +2 -2
  378. package/es/tabs/index.d.ts +3 -3
  379. package/es/tabs/index.js +3 -3
  380. package/es/tabs/src/Tab.d.ts +2 -2
  381. package/es/tabs/src/Tab.js +2 -2
  382. package/es/tabs/src/Tabs.d.ts +1 -1
  383. package/es/tabs/src/Tabs.js +1 -1
  384. package/es/tag/index.d.ts +1 -1
  385. package/es/tag/index.js +1 -1
  386. package/es/tag/src/Tag.d.ts +1 -1
  387. package/es/tag/src/Tag.js +2 -2
  388. package/es/thing/index.d.ts +1 -1
  389. package/es/thing/index.js +1 -1
  390. package/es/thing/src/Thing.d.ts +1 -1
  391. package/es/thing/src/Thing.js +1 -1
  392. package/es/time/index.d.ts +1 -1
  393. package/es/time/index.js +1 -1
  394. package/es/time/src/Time.d.ts +1 -1
  395. package/es/time/src/Time.js +1 -1
  396. package/es/time-picker/index.d.ts +1 -1
  397. package/es/time-picker/index.js +1 -1
  398. package/es/time-picker/src/TimePicker.d.ts +1 -1
  399. package/es/time-picker/src/TimePicker.js +1 -1
  400. package/es/timeline/index.d.ts +2 -2
  401. package/es/timeline/index.js +2 -2
  402. package/es/timeline/src/Timeline.d.ts +1 -1
  403. package/es/timeline/src/Timeline.js +1 -1
  404. package/es/timeline/src/TimelineItem.d.ts +1 -1
  405. package/es/timeline/src/TimelineItem.js +1 -1
  406. package/es/tooltip/index.d.ts +1 -1
  407. package/es/tooltip/index.js +1 -1
  408. package/es/tooltip/src/Tooltip.d.ts +4 -1
  409. package/es/tooltip/src/Tooltip.js +1 -1
  410. package/es/transfer/index.d.ts +1 -1
  411. package/es/transfer/index.js +1 -1
  412. package/es/transfer/src/Transfer.d.ts +1 -1
  413. package/es/transfer/src/Transfer.js +1 -1
  414. package/es/tree/index.d.ts +1 -1
  415. package/es/tree/index.js +1 -1
  416. package/es/tree/src/Tree.d.ts +19 -2
  417. package/es/tree/src/Tree.js +45 -19
  418. package/es/tree/src/TreeNode.js +21 -6
  419. package/es/tree/src/interface.d.ts +2 -0
  420. package/es/tree-select/index.d.ts +1 -1
  421. package/es/tree-select/index.js +1 -1
  422. package/es/tree-select/src/TreeSelect.d.ts +2 -2
  423. package/es/tree-select/src/TreeSelect.js +2 -2
  424. package/es/typography/index.d.ts +7 -6
  425. package/es/typography/index.js +7 -6
  426. package/es/typography/src/a.d.ts +1 -1
  427. package/es/typography/src/a.js +1 -1
  428. package/es/typography/src/blockquote.d.ts +1 -1
  429. package/es/typography/src/blockquote.js +1 -1
  430. package/es/typography/src/create-header.d.ts +1 -1
  431. package/es/typography/src/create-header.js +1 -1
  432. package/es/typography/src/ol.d.ts +1 -1
  433. package/es/typography/src/ol.js +1 -1
  434. package/es/typography/src/p.d.ts +1 -1
  435. package/es/typography/src/p.js +1 -1
  436. package/es/typography/src/text.d.ts +1 -1
  437. package/es/typography/src/text.js +1 -1
  438. package/es/typography/src/ul.d.ts +1 -1
  439. package/es/typography/src/ul.js +1 -1
  440. package/es/upload/index.d.ts +1 -1
  441. package/es/upload/index.js +1 -1
  442. package/es/upload/src/Upload.d.ts +1 -1
  443. package/es/upload/src/Upload.js +1 -1
  444. package/es/upload/src/UploadFile.d.ts +2 -2
  445. package/es/upload/src/UploadFile.js +8 -4
  446. package/es/version.d.ts +1 -1
  447. package/es/version.js +1 -1
  448. package/es/watermark/index.d.ts +1 -1
  449. package/es/watermark/index.js +1 -1
  450. package/es/watermark/src/Watermark.d.ts +1 -1
  451. package/es/watermark/src/Watermark.js +1 -1
  452. package/es/watermark/src/styles/index.cssr.js +4 -1
  453. package/lib/_internal/scrollbar/src/Scrollbar.js +8 -2
  454. package/lib/_internal/scrollbar/src/styles/index.cssr.js +1 -0
  455. package/lib/_internal/selection/src/styles/index.cssr.js +1 -0
  456. package/lib/_mixins/use-rtl.d.ts +1 -1
  457. package/lib/_mixins/use-rtl.js +2 -1
  458. package/lib/_utils/env/browser.d.ts +3 -0
  459. package/lib/_utils/env/browser.js +7 -0
  460. package/lib/_utils/env/is-native-lazy-load.d.ts +1 -0
  461. package/lib/_utils/env/is-native-lazy-load.js +6 -0
  462. package/lib/affix/index.d.ts +1 -1
  463. package/lib/affix/index.js +2 -1
  464. package/lib/alert/index.d.ts +1 -1
  465. package/lib/alert/index.js +2 -1
  466. package/lib/alert/src/Alert.d.ts +1 -1
  467. package/lib/alert/src/Alert.js +5 -4
  468. package/lib/anchor/index.d.ts +2 -2
  469. package/lib/anchor/index.js +3 -1
  470. package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
  471. package/lib/anchor/src/AnchorAdapter.js +3 -2
  472. package/lib/anchor/src/Link.d.ts +1 -1
  473. package/lib/anchor/src/Link.js +3 -3
  474. package/lib/auto-complete/index.d.ts +1 -1
  475. package/lib/auto-complete/index.js +2 -1
  476. package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
  477. package/lib/auto-complete/src/AutoComplete.js +3 -2
  478. package/lib/avatar/index.d.ts +1 -1
  479. package/lib/avatar/index.js +2 -1
  480. package/lib/avatar/src/Avatar.d.ts +13 -1
  481. package/lib/avatar/src/Avatar.js +60 -7
  482. package/lib/avatar-group/index.d.ts +1 -1
  483. package/lib/avatar-group/index.js +2 -1
  484. package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
  485. package/lib/avatar-group/src/AvatarGroup.js +5 -4
  486. package/lib/back-top/index.d.ts +1 -1
  487. package/lib/back-top/index.js +2 -1
  488. package/lib/back-top/src/BackTop.d.ts +1 -1
  489. package/lib/back-top/src/BackTop.js +3 -2
  490. package/lib/badge/index.d.ts +1 -1
  491. package/lib/badge/index.js +2 -1
  492. package/lib/badge/src/Badge.d.ts +1 -1
  493. package/lib/badge/src/Badge.js +5 -4
  494. package/lib/breadcrumb/index.d.ts +2 -2
  495. package/lib/breadcrumb/index.js +3 -1
  496. package/lib/breadcrumb/src/Breadcrumb.d.ts +1 -1
  497. package/lib/breadcrumb/src/Breadcrumb.js +3 -3
  498. package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
  499. package/lib/breadcrumb/src/BreadcrumbItem.js +3 -2
  500. package/lib/breadcrumb/src/styles/index.cssr.js +1 -0
  501. package/lib/button/index.d.ts +1 -1
  502. package/lib/button/index.js +2 -1
  503. package/lib/button/src/Button.d.ts +13 -4
  504. package/lib/button/src/Button.js +11 -7
  505. package/lib/button/src/styles/index.cssr.js +1 -0
  506. package/lib/button-group/index.d.ts +1 -1
  507. package/lib/button-group/index.js +2 -1
  508. package/lib/button-group/src/ButtonGroup.d.ts +1 -1
  509. package/lib/button-group/src/ButtonGroup.js +5 -4
  510. package/lib/calendar/index.d.ts +1 -1
  511. package/lib/calendar/index.js +2 -1
  512. package/lib/calendar/src/Calendar.d.ts +1 -1
  513. package/lib/calendar/src/Calendar.js +3 -2
  514. package/lib/card/index.d.ts +1 -1
  515. package/lib/card/index.js +2 -1
  516. package/lib/card/src/Card.d.ts +2 -2
  517. package/lib/card/src/Card.js +5 -5
  518. package/lib/carousel/index.d.ts +1 -1
  519. package/lib/carousel/index.js +2 -1
  520. package/lib/carousel/src/Carousel.d.ts +1 -1
  521. package/lib/carousel/src/Carousel.js +3 -2
  522. package/lib/carousel/src/styles/index.cssr.js +1 -0
  523. package/lib/cascader/index.d.ts +1 -1
  524. package/lib/cascader/index.js +2 -1
  525. package/lib/cascader/src/Cascader.d.ts +1 -1
  526. package/lib/cascader/src/Cascader.js +3 -2
  527. package/lib/cascader/src/utils.d.ts +1 -4
  528. package/lib/cascader/src/utils.js +18 -29
  529. package/lib/checkbox/index.d.ts +2 -2
  530. package/lib/checkbox/index.js +3 -1
  531. package/lib/checkbox/src/Checkbox.d.ts +1 -1
  532. package/lib/checkbox/src/Checkbox.js +5 -4
  533. package/lib/checkbox/src/CheckboxGroup.d.ts +1 -1
  534. package/lib/checkbox/src/CheckboxGroup.js +3 -3
  535. package/lib/checkbox/src/styles/index.cssr.js +2 -0
  536. package/lib/code/index.d.ts +1 -1
  537. package/lib/code/index.js +2 -1
  538. package/lib/code/src/Code.d.ts +1 -1
  539. package/lib/code/src/Code.js +3 -2
  540. package/lib/collapse/index.d.ts +2 -2
  541. package/lib/collapse/index.js +3 -1
  542. package/lib/collapse/src/Collapse.d.ts +1 -1
  543. package/lib/collapse/src/Collapse.js +5 -5
  544. package/lib/collapse/src/CollapseItem.d.ts +1 -1
  545. package/lib/collapse/src/CollapseItem.js +5 -4
  546. package/lib/collapse-transition/index.d.ts +1 -1
  547. package/lib/collapse-transition/index.js +2 -1
  548. package/lib/collapse-transition/src/CollapseTransition.d.ts +2 -2
  549. package/lib/collapse-transition/src/CollapseTransition.js +5 -4
  550. package/lib/color-picker/index.d.ts +1 -1
  551. package/lib/color-picker/index.js +2 -1
  552. package/lib/color-picker/src/ColorPicker.d.ts +2 -2
  553. package/lib/color-picker/src/ColorPicker.js +3 -3
  554. package/lib/countdown/index.d.ts +2 -2
  555. package/lib/countdown/index.js +2 -1
  556. package/lib/countdown/src/Countdown.d.ts +9 -2
  557. package/lib/countdown/src/Countdown.js +44 -27
  558. package/lib/data-table/index.d.ts +1 -1
  559. package/lib/data-table/index.js +2 -1
  560. package/lib/data-table/src/TableParts/Body.d.ts +4 -0
  561. package/lib/data-table/src/TableParts/Body.js +50 -34
  562. package/lib/data-table/src/TableParts/BodyRadio.d.ts +30 -0
  563. package/lib/data-table/src/TableParts/BodyRadio.js +32 -0
  564. package/lib/data-table/src/TableParts/Header.js +2 -2
  565. package/lib/data-table/src/interface.d.ts +2 -1
  566. package/lib/data-table/src/use-check.d.ts +1 -1
  567. package/lib/data-table/src/use-check.js +15 -3
  568. package/lib/date-picker/index.d.ts +1 -1
  569. package/lib/date-picker/index.js +2 -1
  570. package/lib/date-picker/src/DatePicker.d.ts +1 -1
  571. package/lib/date-picker/src/DatePicker.js +21 -11
  572. package/lib/date-picker/src/panel/daterange.js +1 -1
  573. package/lib/date-picker/src/panel/datetimerange.js +1 -1
  574. package/lib/date-picker/src/panel/month.js +1 -1
  575. package/lib/date-picker/src/panel/monthrange.js +1 -1
  576. package/lib/date-picker/src/styles/index.cssr.js +4 -0
  577. package/lib/descriptions/index.d.ts +2 -2
  578. package/lib/descriptions/index.js +3 -1
  579. package/lib/descriptions/src/Descriptions.d.ts +2 -2
  580. package/lib/descriptions/src/Descriptions.js +3 -2
  581. package/lib/descriptions/src/DescriptionsItem.d.ts +2 -2
  582. package/lib/descriptions/src/DescriptionsItem.js +3 -2
  583. package/lib/dialog/index.d.ts +2 -1
  584. package/lib/dialog/index.js +4 -1
  585. package/lib/dialog/src/DialogProvider.d.ts +1 -1
  586. package/lib/dialog/src/DialogProvider.js +3 -3
  587. package/lib/divider/index.d.ts +1 -1
  588. package/lib/divider/index.js +2 -1
  589. package/lib/divider/src/Divider.d.ts +1 -1
  590. package/lib/divider/src/Divider.js +3 -2
  591. package/lib/drawer/index.d.ts +2 -2
  592. package/lib/drawer/index.js +3 -1
  593. package/lib/drawer/src/Drawer.d.ts +60 -27
  594. package/lib/drawer/src/Drawer.js +39 -17
  595. package/lib/drawer/src/DrawerBodyWrapper.d.ts +9 -0
  596. package/lib/drawer/src/DrawerBodyWrapper.js +96 -1
  597. package/lib/drawer/src/DrawerContent.d.ts +2 -1
  598. package/lib/drawer/src/DrawerContent.js +3 -2
  599. package/lib/drawer/src/interface.d.ts +2 -0
  600. package/lib/drawer/src/styles/index.cssr.js +42 -5
  601. package/lib/drawer/styles/light.d.ts +2 -0
  602. package/lib/drawer/styles/light.js +3 -2
  603. package/lib/dropdown/index.d.ts +2 -2
  604. package/lib/dropdown/index.js +2 -1
  605. package/lib/dropdown/src/Dropdown.d.ts +10 -2
  606. package/lib/dropdown/src/Dropdown.js +17 -5
  607. package/lib/dropdown/src/DropdownMenu.d.ts +3 -0
  608. package/lib/dropdown/src/DropdownMenu.js +23 -15
  609. package/lib/dropdown/src/DropdownOption.d.ts +5 -0
  610. package/lib/dropdown/src/DropdownOption.js +32 -10
  611. package/lib/dropdown/src/interface.d.ts +2 -1
  612. package/lib/dropdown/src/styles/index.cssr.js +16 -10
  613. package/lib/dynamic-input/index.d.ts +1 -1
  614. package/lib/dynamic-input/index.js +2 -1
  615. package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
  616. package/lib/dynamic-input/src/DynamicInput.js +5 -4
  617. package/lib/dynamic-tags/index.d.ts +1 -1
  618. package/lib/dynamic-tags/index.js +2 -1
  619. package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
  620. package/lib/dynamic-tags/src/DynamicTags.js +3 -2
  621. package/lib/element/index.d.ts +1 -1
  622. package/lib/element/index.js +2 -1
  623. package/lib/element/src/Element.d.ts +1 -1
  624. package/lib/element/src/Element.js +3 -2
  625. package/lib/ellipsis/index.d.ts +1 -1
  626. package/lib/ellipsis/index.js +2 -1
  627. package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
  628. package/lib/ellipsis/src/Ellipsis.js +3 -2
  629. package/lib/empty/index.d.ts +1 -1
  630. package/lib/empty/index.js +2 -1
  631. package/lib/empty/src/Empty.d.ts +1 -1
  632. package/lib/empty/src/Empty.js +3 -2
  633. package/lib/form/index.d.ts +3 -3
  634. package/lib/form/index.js +5 -1
  635. package/lib/form/src/Form.d.ts +1 -1
  636. package/lib/form/src/Form.js +3 -2
  637. package/lib/form/src/FormItemRow.d.ts +1 -1
  638. package/lib/form/src/FormItemRow.js +3 -2
  639. package/lib/form/src/styles/form-item.cssr.js +2 -0
  640. package/lib/gradient-text/index.d.ts +1 -1
  641. package/lib/gradient-text/index.js +2 -1
  642. package/lib/gradient-text/src/GradientText.d.ts +1 -1
  643. package/lib/gradient-text/src/GradientText.js +3 -2
  644. package/lib/grid/index.d.ts +3 -3
  645. package/lib/grid/index.js +4 -1
  646. package/lib/grid/src/Grid.d.ts +1 -1
  647. package/lib/grid/src/Grid.js +3 -2
  648. package/lib/icon/index.d.ts +1 -1
  649. package/lib/icon/index.js +2 -1
  650. package/lib/icon/src/Icon.d.ts +1 -2
  651. package/lib/icon/src/Icon.js +3 -3
  652. package/lib/icon-wrapper/index.d.ts +1 -1
  653. package/lib/icon-wrapper/index.js +2 -1
  654. package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -2
  655. package/lib/icon-wrapper/src/IconWrapper.js +3 -3
  656. package/lib/image/index.d.ts +2 -2
  657. package/lib/image/index.js +3 -1
  658. package/lib/image/src/Image.d.ts +1 -1
  659. package/lib/image/src/Image.js +19 -11
  660. package/lib/image/src/ImageGroup.d.ts +1 -1
  661. package/lib/image/src/ImageGroup.js +3 -3
  662. package/lib/image/src/styles/index.cssr.js +1 -0
  663. package/lib/input/index.d.ts +3 -3
  664. package/lib/input/index.js +4 -1
  665. package/lib/input/src/Input.d.ts +1 -1
  666. package/lib/input/src/Input.js +5 -4
  667. package/lib/input/src/InputGroup.d.ts +1 -1
  668. package/lib/input/src/InputGroup.js +3 -2
  669. package/lib/input/src/InputGroupLabel.d.ts +1 -1
  670. package/lib/input/src/InputGroupLabel.js +3 -2
  671. package/lib/input/src/styles/input-group-label.cssr.js +1 -0
  672. package/lib/input/src/styles/input.cssr.js +3 -0
  673. package/lib/input-number/index.d.ts +1 -1
  674. package/lib/input-number/index.js +2 -1
  675. package/lib/input-number/src/InputNumber.d.ts +1 -1
  676. package/lib/input-number/src/InputNumber.js +5 -4
  677. package/lib/layout/index.d.ts +4 -4
  678. package/lib/layout/index.js +6 -1
  679. package/lib/layout/src/Layout.d.ts +1 -1
  680. package/lib/layout/src/Layout.js +3 -3
  681. package/lib/layout/src/LayoutFooter.d.ts +1 -1
  682. package/lib/layout/src/LayoutFooter.js +3 -2
  683. package/lib/layout/src/LayoutHeader.d.ts +1 -1
  684. package/lib/layout/src/LayoutHeader.js +3 -2
  685. package/lib/layout/src/LayoutSider.d.ts +1 -1
  686. package/lib/layout/src/LayoutSider.js +3 -2
  687. package/lib/legacy-grid/index.d.ts +2 -2
  688. package/lib/legacy-grid/index.js +3 -1
  689. package/lib/list/index.d.ts +1 -1
  690. package/lib/list/index.js +2 -1
  691. package/lib/list/src/List.d.ts +1 -1
  692. package/lib/list/src/List.js +3 -3
  693. package/lib/loading-bar/index.d.ts +1 -1
  694. package/lib/loading-bar/index.js +2 -1
  695. package/lib/loading-bar/src/LoadingBarProvider.d.ts +3 -3
  696. package/lib/loading-bar/src/LoadingBarProvider.js +3 -2
  697. package/lib/locales/common/ukUA.js +14 -18
  698. package/lib/log/index.d.ts +1 -1
  699. package/lib/log/index.js +2 -1
  700. package/lib/log/src/Log.d.ts +1 -1
  701. package/lib/log/src/Log.js +3 -2
  702. package/lib/mention/index.d.ts +1 -1
  703. package/lib/mention/index.js +2 -1
  704. package/lib/mention/src/Mention.d.ts +1 -1
  705. package/lib/mention/src/Mention.js +3 -2
  706. package/lib/menu/index.d.ts +1 -1
  707. package/lib/menu/index.js +2 -1
  708. package/lib/menu/src/Menu.d.ts +1 -1
  709. package/lib/menu/src/Menu.js +3 -2
  710. package/lib/message/index.d.ts +1 -1
  711. package/lib/message/index.js +2 -1
  712. package/lib/message/src/MessageProvider.d.ts +1 -1
  713. package/lib/message/src/MessageProvider.js +3 -2
  714. package/lib/modal/index.d.ts +1 -1
  715. package/lib/modal/index.js +2 -1
  716. package/lib/modal/src/Modal.d.ts +1 -1
  717. package/lib/modal/src/Modal.js +3 -2
  718. package/lib/modal/src/presetProps.d.ts +1 -1
  719. package/lib/notification/index.d.ts +1 -1
  720. package/lib/notification/index.js +2 -1
  721. package/lib/notification/src/Notification.d.ts +1 -0
  722. package/lib/notification/src/Notification.js +6 -2
  723. package/lib/notification/src/NotificationContainer.js +1 -1
  724. package/lib/notification/src/NotificationProvider.d.ts +1 -1
  725. package/lib/notification/src/NotificationProvider.js +3 -3
  726. package/lib/notification/src/styles/index.cssr.js +1 -3
  727. package/lib/notification/src/styles/rtl.cssr.d.ts +2 -0
  728. package/lib/notification/src/styles/rtl.cssr.js +29 -0
  729. package/lib/notification/styles/index.d.ts +1 -0
  730. package/lib/notification/styles/index.js +3 -1
  731. package/lib/notification/styles/rtl.d.ts +2 -0
  732. package/lib/notification/styles/rtl.js +11 -0
  733. package/lib/number-animation/index.d.ts +1 -1
  734. package/lib/number-animation/index.js +2 -1
  735. package/lib/number-animation/src/NumberAnimation.d.ts +5 -1
  736. package/lib/number-animation/src/NumberAnimation.js +7 -3
  737. package/lib/page-header/index.d.ts +1 -1
  738. package/lib/page-header/index.js +2 -1
  739. package/lib/page-header/src/PageHeader.d.ts +1 -1
  740. package/lib/page-header/src/PageHeader.js +5 -4
  741. package/lib/pagination/index.d.ts +1 -1
  742. package/lib/pagination/index.js +2 -1
  743. package/lib/pagination/src/Pagination.d.ts +1 -1
  744. package/lib/pagination/src/Pagination.js +5 -4
  745. package/lib/pagination/src/styles/index.cssr.js +1 -0
  746. package/lib/popconfirm/index.d.ts +1 -1
  747. package/lib/popconfirm/index.js +2 -1
  748. package/lib/popconfirm/src/Popconfirm.d.ts +4 -1
  749. package/lib/popconfirm/src/Popconfirm.js +3 -2
  750. package/lib/popover/index.d.ts +1 -1
  751. package/lib/popover/index.js +2 -1
  752. package/lib/popover/src/Popover.d.ts +8 -1
  753. package/lib/popover/src/Popover.js +6 -4
  754. package/lib/popover/src/PopoverBody.d.ts +6 -0
  755. package/lib/popover/src/PopoverBody.js +23 -14
  756. package/lib/popover/src/styles/index.cssr.js +19 -15
  757. package/lib/popselect/index.d.ts +1 -1
  758. package/lib/popselect/index.js +2 -1
  759. package/lib/popselect/src/Popselect.d.ts +4 -1
  760. package/lib/popselect/src/Popselect.js +3 -2
  761. package/lib/progress/index.d.ts +1 -1
  762. package/lib/progress/index.js +2 -1
  763. package/lib/progress/src/Progress.d.ts +1 -1
  764. package/lib/progress/src/Progress.js +3 -2
  765. package/lib/radio/index.d.ts +3 -3
  766. package/lib/radio/index.js +4 -1
  767. package/lib/radio/src/Radio.d.ts +25 -0
  768. package/lib/radio/src/Radio.js +4 -2
  769. package/lib/radio/src/RadioButton.d.ts +25 -0
  770. package/lib/radio/src/RadioButton.js +2 -0
  771. package/lib/radio/src/RadioGroup.d.ts +1 -1
  772. package/lib/radio/src/RadioGroup.js +5 -4
  773. package/lib/radio/src/styles/radio-group.cssr.js +2 -0
  774. package/lib/radio/src/styles/radio.cssr.js +1 -0
  775. package/lib/rate/index.d.ts +1 -1
  776. package/lib/rate/index.js +2 -1
  777. package/lib/rate/src/Rate.d.ts +1 -1
  778. package/lib/rate/src/Rate.js +3 -2
  779. package/lib/result/index.d.ts +1 -1
  780. package/lib/result/index.js +2 -1
  781. package/lib/result/src/Result.d.ts +1 -1
  782. package/lib/result/src/Result.js +3 -2
  783. package/lib/scrollbar/index.d.ts +1 -1
  784. package/lib/scrollbar/index.js +2 -1
  785. package/lib/scrollbar/src/Scrollbar.d.ts +1 -1
  786. package/lib/scrollbar/src/Scrollbar.js +3 -2
  787. package/lib/select/index.d.ts +1 -1
  788. package/lib/select/index.js +2 -1
  789. package/lib/select/src/Select.d.ts +1 -1
  790. package/lib/select/src/Select.js +3 -2
  791. package/lib/skeleton/index.d.ts +1 -1
  792. package/lib/skeleton/index.js +2 -1
  793. package/lib/skeleton/src/Skeleton.d.ts +1 -1
  794. package/lib/skeleton/src/Skeleton.js +3 -2
  795. package/lib/slider/index.d.ts +1 -1
  796. package/lib/slider/index.js +2 -1
  797. package/lib/slider/src/Slider.d.ts +1 -1
  798. package/lib/slider/src/Slider.js +3 -2
  799. package/lib/slider/src/styles/index.cssr.js +1 -0
  800. package/lib/space/index.d.ts +1 -1
  801. package/lib/space/index.js +2 -1
  802. package/lib/space/src/Space.d.ts +1 -1
  803. package/lib/space/src/Space.js +5 -7
  804. package/lib/spin/index.d.ts +1 -1
  805. package/lib/spin/index.js +2 -1
  806. package/lib/spin/src/Spin.d.ts +1 -1
  807. package/lib/spin/src/Spin.js +3 -2
  808. package/lib/spin/src/styles/index.cssr.js +1 -0
  809. package/lib/statistic/index.d.ts +1 -1
  810. package/lib/statistic/index.js +2 -1
  811. package/lib/statistic/src/Statistic.d.ts +1 -1
  812. package/lib/statistic/src/Statistic.js +3 -2
  813. package/lib/steps/index.d.ts +2 -2
  814. package/lib/steps/index.js +3 -1
  815. package/lib/steps/src/Step.d.ts +1 -1
  816. package/lib/steps/src/Step.js +3 -2
  817. package/lib/steps/src/Steps.d.ts +1 -1
  818. package/lib/steps/src/Steps.js +3 -3
  819. package/lib/switch/index.d.ts +1 -1
  820. package/lib/switch/index.js +2 -1
  821. package/lib/switch/src/Switch.d.ts +1 -1
  822. package/lib/switch/src/Switch.js +3 -2
  823. package/lib/switch/src/styles/index.cssr.js +1 -0
  824. package/lib/table/index.d.ts +1 -1
  825. package/lib/table/index.js +2 -1
  826. package/lib/table/src/Table.d.ts +1 -1
  827. package/lib/table/src/Table.js +5 -4
  828. package/lib/tabs/index.d.ts +3 -3
  829. package/lib/tabs/index.js +4 -1
  830. package/lib/tabs/src/Tab.d.ts +2 -2
  831. package/lib/tabs/src/Tab.js +3 -2
  832. package/lib/tabs/src/Tabs.d.ts +1 -1
  833. package/lib/tabs/src/Tabs.js +3 -2
  834. package/lib/tag/index.d.ts +1 -1
  835. package/lib/tag/index.js +2 -1
  836. package/lib/tag/src/Tag.d.ts +1 -1
  837. package/lib/tag/src/Tag.js +5 -5
  838. package/lib/thing/index.d.ts +1 -1
  839. package/lib/thing/index.js +2 -1
  840. package/lib/thing/src/Thing.d.ts +1 -1
  841. package/lib/thing/src/Thing.js +3 -2
  842. package/lib/time/index.d.ts +1 -1
  843. package/lib/time/index.js +2 -1
  844. package/lib/time/src/Time.d.ts +1 -1
  845. package/lib/time/src/Time.js +3 -2
  846. package/lib/time-picker/index.d.ts +1 -1
  847. package/lib/time-picker/index.js +2 -1
  848. package/lib/time-picker/src/TimePicker.d.ts +1 -1
  849. package/lib/time-picker/src/TimePicker.js +3 -2
  850. package/lib/timeline/index.d.ts +2 -2
  851. package/lib/timeline/index.js +3 -1
  852. package/lib/timeline/src/Timeline.d.ts +1 -1
  853. package/lib/timeline/src/Timeline.js +3 -3
  854. package/lib/timeline/src/TimelineItem.d.ts +1 -1
  855. package/lib/timeline/src/TimelineItem.js +3 -2
  856. package/lib/tooltip/index.d.ts +1 -1
  857. package/lib/tooltip/index.js +2 -1
  858. package/lib/tooltip/src/Tooltip.d.ts +4 -1
  859. package/lib/tooltip/src/Tooltip.js +3 -2
  860. package/lib/transfer/index.d.ts +1 -1
  861. package/lib/transfer/index.js +2 -1
  862. package/lib/transfer/src/Transfer.d.ts +1 -1
  863. package/lib/transfer/src/Transfer.js +3 -2
  864. package/lib/tree/index.d.ts +1 -1
  865. package/lib/tree/index.js +2 -1
  866. package/lib/tree/src/Tree.d.ts +19 -2
  867. package/lib/tree/src/Tree.js +47 -21
  868. package/lib/tree/src/TreeNode.js +21 -6
  869. package/lib/tree/src/interface.d.ts +2 -0
  870. package/lib/tree-select/index.d.ts +1 -1
  871. package/lib/tree-select/index.js +2 -1
  872. package/lib/tree-select/src/TreeSelect.d.ts +2 -2
  873. package/lib/tree-select/src/TreeSelect.js +3 -2
  874. package/lib/typography/index.d.ts +7 -6
  875. package/lib/typography/index.js +14 -1
  876. package/lib/typography/src/a.d.ts +1 -1
  877. package/lib/typography/src/a.js +3 -2
  878. package/lib/typography/src/blockquote.d.ts +1 -1
  879. package/lib/typography/src/blockquote.js +3 -2
  880. package/lib/typography/src/create-header.d.ts +1 -1
  881. package/lib/typography/src/create-header.js +3 -2
  882. package/lib/typography/src/ol.d.ts +1 -1
  883. package/lib/typography/src/ol.js +3 -2
  884. package/lib/typography/src/p.d.ts +1 -1
  885. package/lib/typography/src/p.js +3 -2
  886. package/lib/typography/src/text.d.ts +1 -1
  887. package/lib/typography/src/text.js +3 -2
  888. package/lib/typography/src/ul.d.ts +1 -1
  889. package/lib/typography/src/ul.js +3 -2
  890. package/lib/upload/index.d.ts +1 -1
  891. package/lib/upload/index.js +2 -1
  892. package/lib/upload/src/Upload.d.ts +1 -1
  893. package/lib/upload/src/Upload.js +3 -2
  894. package/lib/upload/src/UploadFile.d.ts +2 -2
  895. package/lib/upload/src/UploadFile.js +8 -4
  896. package/lib/version.d.ts +1 -1
  897. package/lib/version.js +1 -1
  898. package/lib/watermark/index.d.ts +1 -1
  899. package/lib/watermark/index.js +2 -1
  900. package/lib/watermark/src/Watermark.d.ts +1 -1
  901. package/lib/watermark/src/Watermark.js +3 -2
  902. package/lib/watermark/src/styles/index.cssr.js +4 -1
  903. package/package.json +2 -2
  904. package/web-types.json +140 -2
@@ -12,6 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.uploadProps = void 0;
15
16
  const vue_1 = require("vue");
16
17
  const seemly_1 = require("seemly");
17
18
  const vooks_1 = require("vooks");
@@ -179,7 +180,7 @@ function submitImpl(inst, fieldName, file, { method, action, withCredentials, he
179
180
  inst.doChange(fileAfterChange);
180
181
  }
181
182
  }
182
- const uploadProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { name: {
183
+ exports.uploadProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { name: {
183
184
  type: String,
184
185
  default: 'file'
185
186
  }, accept: String, action: String, customRequest: Function, directory: Boolean, directoryDnd: { type: Boolean, default: undefined }, method: {
@@ -220,7 +221,7 @@ const uploadProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), {
220
221
  }, imageGroupProps: Object, inputProps: Object, triggerStyle: [String, Object] });
221
222
  exports.default = (0, vue_1.defineComponent)({
222
223
  name: 'Upload',
223
- props: uploadProps,
224
+ props: exports.uploadProps,
224
225
  setup(props) {
225
226
  if (props.abstract && props.listType === 'image-card') {
226
227
  (0, _utils_1.throwError)('upload', 'when the list-type is image-card, abstract is not supported.');
@@ -387,8 +387,8 @@ declare const _default: import("vue").DefineComponent<{
387
387
  showRemoveButton: import("vue").ComputedRef<boolean>;
388
388
  showDownloadButton: import("vue").ComputedRef<boolean>;
389
389
  showRetryButton: import("vue").ComputedRef<boolean>;
390
- showPreviewButton: import("vue").ComputedRef<boolean | "">;
391
- thumbnailUrl: import("vue").Ref<string>;
390
+ showPreviewButton: import("vue").ComputedRef<boolean | "" | null>;
391
+ mergedThumbnailUrl: import("vue").ComputedRef<string | null>;
392
392
  imageRef: import("vue").Ref<{
393
393
  click: () => void;
394
394
  } | null>;
@@ -13,6 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const vue_1 = require("vue");
16
+ const vooks_1 = require("vooks");
16
17
  const icons_1 = require("../../_internal/icons");
17
18
  const image_1 = require("../../image");
18
19
  const button_1 = require("../../button");
@@ -90,12 +91,15 @@ exports.default = (0, vue_1.defineComponent)({
90
91
  const { file } = props;
91
92
  return ['error'].includes(file.status);
92
93
  });
94
+ const mergedThumbnailUrlRef = (0, vooks_1.useMemo)(() => {
95
+ return thumbnailUrlRef.value || props.file.thumbnailUrl || props.file.url;
96
+ });
93
97
  const showPreviewButtonRef = (0, vue_1.computed)(() => {
94
98
  if (!NUpload.showPreviewButtonRef.value)
95
99
  return false;
96
- const { file: { status, url }, listType } = props;
100
+ const { file: { status }, listType } = props;
97
101
  return (['finished'].includes(status) &&
98
- (url || thumbnailUrlRef.value) &&
102
+ mergedThumbnailUrlRef.value &&
99
103
  listType === 'image-card');
100
104
  });
101
105
  function handleRetryClick() {
@@ -185,7 +189,7 @@ exports.default = (0, vue_1.defineComponent)({
185
189
  showDownloadButton: showDownloadButtonRef,
186
190
  showRetryButton: showRetryButtonRef,
187
191
  showPreviewButton: showPreviewButtonRef,
188
- thumbnailUrl: thumbnailUrlRef,
192
+ mergedThumbnailUrl: mergedThumbnailUrlRef,
189
193
  imageRef,
190
194
  handleRemoveOrCancelClick,
191
195
  handleDownloadClick,
@@ -201,7 +205,7 @@ exports.default = (0, vue_1.defineComponent)({
201
205
  const isImageCardType = listType === 'image-card';
202
206
  if (isImageType || isImageCardType) {
203
207
  icon = !(0, utils_1.isImageFile)(file) ? ((0, vue_1.h)("span", { class: `${clsPrefix}-upload-file-info__thumbnail` },
204
- (0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: clsPrefix }, { default: () => icons_2.documentIcon }))) : (file.url || this.thumbnailUrl) && file.status !== 'error' ? ((0, vue_1.h)("a", { rel: "noopener noreferer", target: "_blank", href: file.url || undefined, class: `${clsPrefix}-upload-file-info__thumbnail`, onClick: this.handlePreviewClick }, listType === 'image-card' ? ((0, vue_1.h)(image_1.NImage, { src: this.thumbnailUrl || file.thumbnailUrl || file.url || undefined, previewSrc: file.url || undefined, alt: file.name, ref: "imageRef" })) : ((0, vue_1.h)("img", { src: this.thumbnailUrl || file.thumbnailUrl || file.url || undefined, alt: file.name })))) : ((0, vue_1.h)("span", { class: `${clsPrefix}-upload-file-info__thumbnail` },
208
+ (0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: clsPrefix }, { default: () => icons_2.documentIcon }))) : this.mergedThumbnailUrl && file.status !== 'error' ? ((0, vue_1.h)("a", { rel: "noopener noreferer", target: "_blank", href: file.url || undefined, class: `${clsPrefix}-upload-file-info__thumbnail`, onClick: this.handlePreviewClick }, listType === 'image-card' ? ((0, vue_1.h)(image_1.NImage, { src: this.mergedThumbnailUrl || undefined, previewSrc: file.url || undefined, alt: file.name, ref: "imageRef" })) : ((0, vue_1.h)("img", { src: this.mergedThumbnailUrl || undefined, alt: file.name })))) : ((0, vue_1.h)("span", { class: `${clsPrefix}-upload-file-info__thumbnail` },
205
209
  (0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: clsPrefix }, { default: () => icons_2.imageIcon })));
206
210
  }
207
211
  else {
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.30.8";
1
+ declare const _default: "2.31.0";
2
2
  export default _default;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '2.30.8';
3
+ exports.default = '2.31.0';
@@ -1,2 +1,2 @@
1
- export { default as NWatermark } from './src/Watermark';
1
+ export { default as NWatermark, watermarkProps } from './src/Watermark';
2
2
  export type { WatermarkProps } from './src/Watermark';
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.NWatermark = void 0;
6
+ exports.watermarkProps = exports.NWatermark = void 0;
7
7
  var Watermark_1 = require("./src/Watermark");
8
8
  Object.defineProperty(exports, "NWatermark", { enumerable: true, get: function () { return __importDefault(Watermark_1).default; } });
9
+ Object.defineProperty(exports, "watermarkProps", { enumerable: true, get: function () { return Watermark_1.watermarkProps; } });
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { ExtractPublicPropTypes } from '../../_utils';
3
- declare const watermarkProps: {
3
+ export declare const watermarkProps: {
4
4
  readonly debug: BooleanConstructor;
5
5
  readonly cross: BooleanConstructor;
6
6
  readonly fullscreen: BooleanConstructor;
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.watermarkProps = void 0;
6
7
  const vue_1 = require("vue");
7
8
  const vooks_1 = require("vooks");
8
9
  const _mixins_1 = require("../../_mixins");
@@ -22,7 +23,7 @@ function getRatio(context) {
22
23
  1;
23
24
  return (window.devicePixelRatio || 1) / backingStore;
24
25
  }
25
- const watermarkProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { debug: Boolean, cross: Boolean, fullscreen: Boolean, width: {
26
+ exports.watermarkProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { debug: Boolean, cross: Boolean, fullscreen: Boolean, width: {
26
27
  type: Number,
27
28
  default: 32
28
29
  }, height: {
@@ -73,7 +74,7 @@ const watermarkProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props)
73
74
  } });
74
75
  exports.default = (0, vue_1.defineComponent)({
75
76
  name: 'Watermark',
76
- props: watermarkProps,
77
+ props: exports.watermarkProps,
77
78
  setup(props, { slots }) {
78
79
  const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
79
80
  const themeRef = (0, _mixins_1.useTheme)('Watermark', '-watermark', index_cssr_1.default, styles_1.watermarkLight, props, mergedClsPrefixRef);
@@ -8,7 +8,10 @@ const cssr_1 = require("../../../_utils/cssr");
8
8
 
9
9
  exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('watermark-container', `
10
10
  position: relative;
11
- `, [(0, cssr_1.cNotM)('selectable', 'user-select: none;')]), (0, cssr_1.cB)('watermark', `
11
+ `, [(0, cssr_1.cNotM)('selectable', `
12
+ user-select: none;
13
+ -webkit-user-select: none;
14
+ `)]), (0, cssr_1.cB)('watermark', `
12
15
  position: absolute;
13
16
  top: 0;
14
17
  left: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "naive-ui",
3
- "version": "2.30.8",
3
+ "version": "2.31.0",
4
4
  "description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -128,7 +128,7 @@
128
128
  "treemate": "^0.3.11",
129
129
  "vdirs": "^0.1.8",
130
130
  "vooks": "^0.2.12",
131
- "vueuc": "^0.4.45"
131
+ "vueuc": "^0.4.47"
132
132
  },
133
133
  "sideEffects": false,
134
134
  "homepage": "https://www.naiveui.com",
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "naive-ui",
5
- "version": "2.30.8",
5
+ "version": "2.31.0",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
@@ -596,6 +596,24 @@
596
596
  "kind": "expression"
597
597
  }
598
598
  },
599
+ {
600
+ "name": "intersection-observer-options",
601
+ "default": "-",
602
+ "description": "-",
603
+ "value": {
604
+ "type": "object",
605
+ "kind": "expression"
606
+ }
607
+ },
608
+ {
609
+ "name": "lazy",
610
+ "default": "-",
611
+ "description": "-",
612
+ "value": {
613
+ "type": "boolean",
614
+ "kind": "expression"
615
+ }
616
+ },
599
617
  {
600
618
  "name": "color",
601
619
  "default": "-",
@@ -2666,7 +2684,12 @@
2666
2684
  }
2667
2685
  }
2668
2686
  ],
2669
- "js/events": []
2687
+ "js/events": [
2688
+ {
2689
+ "name": "finish",
2690
+ "description": "-"
2691
+ }
2692
+ ]
2670
2693
  },
2671
2694
  {
2672
2695
  "name": "n-data-table",
@@ -3918,6 +3941,33 @@
3918
3941
  "kind": "expression"
3919
3942
  }
3920
3943
  },
3944
+ {
3945
+ "name": "resizable",
3946
+ "default": "-",
3947
+ "description": "-",
3948
+ "value": {
3949
+ "type": "boolean",
3950
+ "kind": "expression"
3951
+ }
3952
+ },
3953
+ {
3954
+ "name": "default-width",
3955
+ "default": "-",
3956
+ "description": "-",
3957
+ "value": {
3958
+ "type": "number",
3959
+ "kind": "expression"
3960
+ }
3961
+ },
3962
+ {
3963
+ "name": "default-height",
3964
+ "default": "-",
3965
+ "description": "-",
3966
+ "value": {
3967
+ "type": "number",
3968
+ "kind": "expression"
3969
+ }
3970
+ },
3921
3971
  {
3922
3972
  "name": "drawer-style",
3923
3973
  "default": "-",
@@ -3952,6 +4002,22 @@
3952
4002
  "name": "esc",
3953
4003
  "description": "-"
3954
4004
  },
4005
+ {
4006
+ "name": "update-width",
4007
+ "description": "-"
4008
+ },
4009
+ {
4010
+ "name": "update-height",
4011
+ "description": "-"
4012
+ },
4013
+ {
4014
+ "name": "update-width",
4015
+ "description": "-"
4016
+ },
4017
+ {
4018
+ "name": "update-height",
4019
+ "description": "-"
4020
+ },
3955
4021
  {
3956
4022
  "name": "update-show",
3957
4023
  "description": "-"
@@ -4286,6 +4352,15 @@
4286
4352
  "kind": "expression"
4287
4353
  }
4288
4354
  },
4355
+ {
4356
+ "name": "footer-style",
4357
+ "default": "-",
4358
+ "description": "-",
4359
+ "value": {
4360
+ "type": "object | string",
4361
+ "kind": "expression"
4362
+ }
4363
+ },
4289
4364
  {
4290
4365
  "name": "arrow",
4291
4366
  "default": "-",
@@ -4349,6 +4424,15 @@
4349
4424
  "kind": "expression"
4350
4425
  }
4351
4426
  },
4427
+ {
4428
+ "name": "menu-props",
4429
+ "default": "-",
4430
+ "description": "-",
4431
+ "value": {
4432
+ "type": "Function",
4433
+ "kind": "expression"
4434
+ }
4435
+ },
4352
4436
  {
4353
4437
  "name": "render-label",
4354
4438
  "default": "-",
@@ -9311,6 +9395,15 @@
9311
9395
  "kind": "expression"
9312
9396
  }
9313
9397
  },
9398
+ {
9399
+ "name": "footer-style",
9400
+ "default": "-",
9401
+ "description": "-",
9402
+ "value": {
9403
+ "type": "object | string",
9404
+ "kind": "expression"
9405
+ }
9406
+ },
9314
9407
  {
9315
9408
  "name": "arrow",
9316
9409
  "default": "-",
@@ -9644,6 +9737,15 @@
9644
9737
  "kind": "expression"
9645
9738
  }
9646
9739
  },
9740
+ {
9741
+ "name": "footer-style",
9742
+ "default": "-",
9743
+ "description": "-",
9744
+ "value": {
9745
+ "type": "object | string",
9746
+ "kind": "expression"
9747
+ }
9748
+ },
9647
9749
  {
9648
9750
  "name": "arrow",
9649
9751
  "default": "-",
@@ -9915,6 +10017,15 @@
9915
10017
  "kind": "expression"
9916
10018
  }
9917
10019
  },
10020
+ {
10021
+ "name": "footer-style",
10022
+ "default": "-",
10023
+ "description": "-",
10024
+ "value": {
10025
+ "type": "object | string",
10026
+ "kind": "expression"
10027
+ }
10028
+ },
9918
10029
  {
9919
10030
  "name": "min-width",
9920
10031
  "default": "-",
@@ -12907,6 +13018,15 @@
12907
13018
  "kind": "expression"
12908
13019
  }
12909
13020
  },
13021
+ {
13022
+ "name": "footer-style",
13023
+ "default": "-",
13024
+ "description": "-",
13025
+ "value": {
13026
+ "type": "object | string",
13027
+ "kind": "expression"
13028
+ }
13029
+ },
12910
13030
  {
12911
13031
  "name": "arrow",
12912
13032
  "default": "-",
@@ -13090,6 +13210,15 @@
13090
13210
  "name": "n-tree",
13091
13211
  "slots": [],
13092
13212
  "attributes": [
13213
+ {
13214
+ "name": "accordion",
13215
+ "default": "-",
13216
+ "description": "-",
13217
+ "value": {
13218
+ "type": "boolean",
13219
+ "kind": "expression"
13220
+ }
13221
+ },
13093
13222
  {
13094
13223
  "name": "show-irrelevant-nodes",
13095
13224
  "default": "-",
@@ -13126,6 +13255,15 @@
13126
13255
  "kind": "expression"
13127
13256
  }
13128
13257
  },
13258
+ {
13259
+ "name": "check-on-click",
13260
+ "default": "-",
13261
+ "description": "-",
13262
+ "value": {
13263
+ "type": "boolean | Function",
13264
+ "kind": "expression"
13265
+ }
13266
+ },
13129
13267
  {
13130
13268
  "name": "cancelable",
13131
13269
  "default": "-",