naive-ui 2.30.6 → 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 (971) hide show
  1. package/README.zh-CN.md +2 -2
  2. package/dist/index.js +4233 -2556
  3. package/dist/index.prod.js +2 -2
  4. package/es/_internal/close/src/Close.js +1 -1
  5. package/es/_internal/scrollbar/src/Scrollbar.js +8 -2
  6. package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -0
  7. package/es/_internal/select-menu/src/styles/index.cssr.js +1 -1
  8. package/es/_internal/selection/src/styles/index.cssr.js +1 -0
  9. package/es/_mixins/use-rtl.d.ts +1 -1
  10. package/es/_mixins/use-rtl.js +1 -1
  11. package/es/_utils/env/browser.d.ts +3 -0
  12. package/es/_utils/env/browser.js +4 -0
  13. package/es/_utils/env/is-native-lazy-load.d.ts +1 -0
  14. package/es/_utils/env/is-native-lazy-load.js +3 -0
  15. package/es/affix/index.d.ts +1 -1
  16. package/es/affix/index.js +1 -1
  17. package/es/alert/index.d.ts +1 -1
  18. package/es/alert/index.js +1 -1
  19. package/es/alert/src/Alert.d.ts +1 -1
  20. package/es/alert/src/Alert.js +2 -2
  21. package/es/anchor/index.d.ts +2 -2
  22. package/es/anchor/index.js +2 -2
  23. package/es/anchor/src/AnchorAdapter.d.ts +1 -1
  24. package/es/anchor/src/AnchorAdapter.js +1 -1
  25. package/es/anchor/src/Link.d.ts +1 -1
  26. package/es/anchor/src/Link.js +1 -1
  27. package/es/auto-complete/index.d.ts +1 -1
  28. package/es/auto-complete/index.js +1 -1
  29. package/es/auto-complete/src/AutoComplete.d.ts +1 -1
  30. package/es/auto-complete/src/AutoComplete.js +1 -1
  31. package/es/avatar/index.d.ts +1 -1
  32. package/es/avatar/index.js +1 -1
  33. package/es/avatar/src/Avatar.d.ts +13 -1
  34. package/es/avatar/src/Avatar.js +61 -8
  35. package/es/avatar-group/index.d.ts +1 -1
  36. package/es/avatar-group/index.js +1 -1
  37. package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
  38. package/es/avatar-group/src/AvatarGroup.js +2 -2
  39. package/es/back-top/index.d.ts +1 -1
  40. package/es/back-top/index.js +1 -1
  41. package/es/back-top/src/BackTop.d.ts +1 -1
  42. package/es/back-top/src/BackTop.js +1 -1
  43. package/es/badge/index.d.ts +1 -1
  44. package/es/badge/index.js +1 -1
  45. package/es/badge/src/Badge.d.ts +1 -1
  46. package/es/badge/src/Badge.js +2 -2
  47. package/es/breadcrumb/index.d.ts +2 -2
  48. package/es/breadcrumb/index.js +2 -2
  49. package/es/breadcrumb/src/Breadcrumb.d.ts +1 -1
  50. package/es/breadcrumb/src/Breadcrumb.js +1 -1
  51. package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
  52. package/es/breadcrumb/src/BreadcrumbItem.js +1 -1
  53. package/es/breadcrumb/src/styles/index.cssr.js +1 -0
  54. package/es/button/index.d.ts +1 -1
  55. package/es/button/index.js +1 -1
  56. package/es/button/src/Button.d.ts +13 -4
  57. package/es/button/src/Button.js +8 -4
  58. package/es/button/src/styles/index.cssr.js +4 -0
  59. package/es/button-group/index.d.ts +1 -1
  60. package/es/button-group/index.js +1 -1
  61. package/es/button-group/src/ButtonGroup.d.ts +1 -1
  62. package/es/button-group/src/ButtonGroup.js +2 -2
  63. package/es/calendar/index.d.ts +1 -1
  64. package/es/calendar/index.js +1 -1
  65. package/es/calendar/src/Calendar.d.ts +1 -1
  66. package/es/calendar/src/Calendar.js +1 -1
  67. package/es/card/index.d.ts +1 -1
  68. package/es/card/index.js +1 -1
  69. package/es/card/src/Card.d.ts +2 -2
  70. package/es/card/src/Card.js +2 -2
  71. package/es/carousel/index.d.ts +1 -1
  72. package/es/carousel/index.js +1 -1
  73. package/es/carousel/src/Carousel.d.ts +1 -1
  74. package/es/carousel/src/Carousel.js +1 -1
  75. package/es/carousel/src/styles/index.cssr.js +1 -0
  76. package/es/cascader/index.d.ts +1 -1
  77. package/es/cascader/index.js +1 -1
  78. package/es/cascader/src/Cascader.d.ts +1 -1
  79. package/es/cascader/src/Cascader.js +1 -1
  80. package/es/cascader/src/utils.d.ts +1 -4
  81. package/es/cascader/src/utils.js +18 -28
  82. package/es/checkbox/index.d.ts +2 -2
  83. package/es/checkbox/index.js +2 -2
  84. package/es/checkbox/src/Checkbox.d.ts +1 -1
  85. package/es/checkbox/src/Checkbox.js +2 -2
  86. package/es/checkbox/src/CheckboxGroup.d.ts +1 -1
  87. package/es/checkbox/src/CheckboxGroup.js +1 -1
  88. package/es/checkbox/src/styles/index.cssr.js +2 -0
  89. package/es/code/index.d.ts +1 -1
  90. package/es/code/index.js +1 -1
  91. package/es/code/src/Code.d.ts +1 -1
  92. package/es/code/src/Code.js +1 -1
  93. package/es/collapse/index.d.ts +2 -2
  94. package/es/collapse/index.js +2 -2
  95. package/es/collapse/src/Collapse.d.ts +1 -1
  96. package/es/collapse/src/Collapse.js +2 -2
  97. package/es/collapse/src/CollapseItem.d.ts +1 -1
  98. package/es/collapse/src/CollapseItem.js +2 -2
  99. package/es/collapse-transition/index.d.ts +1 -1
  100. package/es/collapse-transition/index.js +1 -1
  101. package/es/collapse-transition/src/CollapseTransition.d.ts +2 -2
  102. package/es/collapse-transition/src/CollapseTransition.js +3 -3
  103. package/es/color-picker/index.d.ts +1 -1
  104. package/es/color-picker/index.js +1 -1
  105. package/es/color-picker/src/ColorPicker.d.ts +2 -2
  106. package/es/color-picker/src/ColorPicker.js +2 -2
  107. package/es/countdown/index.d.ts +2 -2
  108. package/es/countdown/index.js +1 -1
  109. package/es/countdown/src/Countdown.d.ts +9 -2
  110. package/es/countdown/src/Countdown.js +42 -26
  111. package/es/data-table/index.d.ts +1 -1
  112. package/es/data-table/index.js +1 -1
  113. package/es/data-table/src/TableParts/Body.d.ts +4 -0
  114. package/es/data-table/src/TableParts/Body.js +50 -34
  115. package/es/data-table/src/TableParts/BodyRadio.d.ts +30 -0
  116. package/es/data-table/src/TableParts/BodyRadio.js +30 -0
  117. package/es/data-table/src/TableParts/Header.js +2 -2
  118. package/es/data-table/src/interface.d.ts +2 -1
  119. package/es/data-table/src/use-check.d.ts +1 -1
  120. package/es/data-table/src/use-check.js +15 -3
  121. package/es/date-picker/index.d.ts +1 -1
  122. package/es/date-picker/index.js +1 -1
  123. package/es/date-picker/src/DatePicker.d.ts +41 -1
  124. package/es/date-picker/src/DatePicker.js +34 -13
  125. package/es/date-picker/src/config.d.ts +1 -1
  126. package/es/date-picker/src/panel/date.d.ts +4 -0
  127. package/es/date-picker/src/panel/daterange.d.ts +7 -1
  128. package/es/date-picker/src/panel/daterange.js +1 -1
  129. package/es/date-picker/src/panel/datetime.d.ts +4 -0
  130. package/es/date-picker/src/panel/datetimerange.d.ts +7 -1
  131. package/es/date-picker/src/panel/datetimerange.js +1 -1
  132. package/es/date-picker/src/panel/month.d.ts +4 -0
  133. package/es/date-picker/src/panel/month.js +1 -1
  134. package/es/date-picker/src/panel/monthrange.d.ts +11 -5
  135. package/es/date-picker/src/panel/monthrange.js +13 -7
  136. package/es/date-picker/src/panel/panelHeader.d.ts +8 -0
  137. package/es/date-picker/src/panel/use-calendar.d.ts +4 -0
  138. package/es/date-picker/src/panel/use-dual-calendar.d.ts +9 -3
  139. package/es/date-picker/src/panel/use-dual-calendar.js +26 -6
  140. package/es/date-picker/src/panel/use-panel-common.d.ts +4 -0
  141. package/es/date-picker/src/styles/index.cssr.js +4 -0
  142. package/es/date-picker/src/utils.d.ts +1 -1
  143. package/es/date-picker/src/utils.js +2 -2
  144. package/es/date-picker/styles/_common.d.ts +4 -0
  145. package/es/date-picker/styles/_common.js +5 -1
  146. package/es/date-picker/styles/light.d.ts +8 -0
  147. package/es/descriptions/index.d.ts +2 -2
  148. package/es/descriptions/index.js +2 -2
  149. package/es/descriptions/src/Descriptions.d.ts +2 -2
  150. package/es/descriptions/src/Descriptions.js +2 -2
  151. package/es/descriptions/src/DescriptionsItem.d.ts +2 -2
  152. package/es/descriptions/src/DescriptionsItem.js +2 -2
  153. package/es/dialog/index.d.ts +2 -1
  154. package/es/dialog/index.js +2 -1
  155. package/es/dialog/src/DialogProvider.d.ts +1 -1
  156. package/es/dialog/src/DialogProvider.js +1 -1
  157. package/es/divider/index.d.ts +1 -1
  158. package/es/divider/index.js +1 -1
  159. package/es/divider/src/Divider.d.ts +1 -1
  160. package/es/divider/src/Divider.js +1 -1
  161. package/es/drawer/index.d.ts +2 -2
  162. package/es/drawer/index.js +2 -2
  163. package/es/drawer/src/Drawer.d.ts +60 -27
  164. package/es/drawer/src/Drawer.js +39 -18
  165. package/es/drawer/src/DrawerBodyWrapper.d.ts +9 -0
  166. package/es/drawer/src/DrawerBodyWrapper.js +98 -3
  167. package/es/drawer/src/DrawerContent.d.ts +2 -1
  168. package/es/drawer/src/DrawerContent.js +1 -1
  169. package/es/drawer/src/interface.d.ts +2 -0
  170. package/es/drawer/src/styles/index.cssr.js +42 -5
  171. package/es/drawer/styles/light.d.ts +2 -0
  172. package/es/drawer/styles/light.js +3 -2
  173. package/es/dropdown/index.d.ts +2 -2
  174. package/es/dropdown/index.js +1 -1
  175. package/es/dropdown/src/Dropdown.d.ts +10 -2
  176. package/es/dropdown/src/Dropdown.js +15 -4
  177. package/es/dropdown/src/DropdownMenu.d.ts +3 -0
  178. package/es/dropdown/src/DropdownMenu.js +23 -15
  179. package/es/dropdown/src/DropdownOption.d.ts +5 -0
  180. package/es/dropdown/src/DropdownOption.js +32 -10
  181. package/es/dropdown/src/interface.d.ts +2 -1
  182. package/es/dropdown/src/styles/index.cssr.js +17 -11
  183. package/es/dynamic-input/index.d.ts +1 -1
  184. package/es/dynamic-input/index.js +1 -1
  185. package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
  186. package/es/dynamic-input/src/DynamicInput.js +2 -2
  187. package/es/dynamic-tags/index.d.ts +1 -1
  188. package/es/dynamic-tags/index.js +1 -1
  189. package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
  190. package/es/dynamic-tags/src/DynamicTags.js +1 -1
  191. package/es/element/index.d.ts +1 -1
  192. package/es/element/index.js +1 -1
  193. package/es/element/src/Element.d.ts +1 -1
  194. package/es/element/src/Element.js +1 -1
  195. package/es/ellipsis/index.d.ts +1 -1
  196. package/es/ellipsis/index.js +1 -1
  197. package/es/ellipsis/src/Ellipsis.d.ts +1 -1
  198. package/es/ellipsis/src/Ellipsis.js +1 -1
  199. package/es/empty/index.d.ts +1 -1
  200. package/es/empty/index.js +1 -1
  201. package/es/empty/src/Empty.d.ts +1 -1
  202. package/es/empty/src/Empty.js +1 -1
  203. package/es/form/index.d.ts +3 -3
  204. package/es/form/index.js +3 -3
  205. package/es/form/src/Form.d.ts +1 -1
  206. package/es/form/src/Form.js +1 -1
  207. package/es/form/src/FormItemRow.d.ts +1 -1
  208. package/es/form/src/FormItemRow.js +1 -1
  209. package/es/form/src/styles/form-item.cssr.js +2 -0
  210. package/es/gradient-text/index.d.ts +1 -1
  211. package/es/gradient-text/index.js +1 -1
  212. package/es/gradient-text/src/GradientText.d.ts +1 -1
  213. package/es/gradient-text/src/GradientText.js +1 -1
  214. package/es/grid/index.d.ts +3 -3
  215. package/es/grid/index.js +3 -3
  216. package/es/grid/src/Grid.d.ts +1 -1
  217. package/es/grid/src/Grid.js +2 -2
  218. package/es/icon/index.d.ts +1 -1
  219. package/es/icon/index.js +1 -1
  220. package/es/icon/src/Icon.d.ts +1 -2
  221. package/es/icon/src/Icon.js +1 -1
  222. package/es/icon-wrapper/index.d.ts +1 -1
  223. package/es/icon-wrapper/index.js +1 -1
  224. package/es/icon-wrapper/src/IconWrapper.d.ts +1 -2
  225. package/es/icon-wrapper/src/IconWrapper.js +1 -1
  226. package/es/image/index.d.ts +2 -2
  227. package/es/image/index.js +2 -2
  228. package/es/image/src/Image.d.ts +1 -1
  229. package/es/image/src/Image.js +17 -10
  230. package/es/image/src/ImageGroup.d.ts +1 -1
  231. package/es/image/src/ImageGroup.js +1 -1
  232. package/es/image/src/styles/index.cssr.js +1 -0
  233. package/es/input/index.d.ts +3 -3
  234. package/es/input/index.js +3 -3
  235. package/es/input/src/Input.d.ts +1 -1
  236. package/es/input/src/Input.js +2 -2
  237. package/es/input/src/InputGroup.d.ts +1 -1
  238. package/es/input/src/InputGroup.js +1 -1
  239. package/es/input/src/InputGroupLabel.d.ts +1 -1
  240. package/es/input/src/InputGroupLabel.js +1 -1
  241. package/es/input/src/styles/input-group-label.cssr.js +1 -0
  242. package/es/input/src/styles/input.cssr.js +3 -0
  243. package/es/input-number/index.d.ts +1 -1
  244. package/es/input-number/index.js +1 -1
  245. package/es/input-number/src/InputNumber.d.ts +1 -1
  246. package/es/input-number/src/InputNumber.js +2 -2
  247. package/es/layout/index.d.ts +4 -4
  248. package/es/layout/index.js +4 -4
  249. package/es/layout/src/Layout.d.ts +1 -1
  250. package/es/layout/src/Layout.js +1 -1
  251. package/es/layout/src/LayoutFooter.d.ts +1 -1
  252. package/es/layout/src/LayoutFooter.js +1 -1
  253. package/es/layout/src/LayoutHeader.d.ts +1 -1
  254. package/es/layout/src/LayoutHeader.js +1 -1
  255. package/es/layout/src/LayoutSider.d.ts +1 -1
  256. package/es/layout/src/LayoutSider.js +1 -1
  257. package/es/legacy-grid/index.d.ts +2 -2
  258. package/es/legacy-grid/index.js +2 -2
  259. package/es/list/index.d.ts +1 -1
  260. package/es/list/index.js +1 -1
  261. package/es/list/src/List.d.ts +1 -1
  262. package/es/list/src/List.js +1 -1
  263. package/es/loading-bar/index.d.ts +1 -1
  264. package/es/loading-bar/index.js +1 -1
  265. package/es/loading-bar/src/LoadingBarProvider.d.ts +3 -3
  266. package/es/loading-bar/src/LoadingBarProvider.js +2 -2
  267. package/es/locales/common/ukUA.js +14 -18
  268. package/es/locales/common/viVN.d.ts +3 -0
  269. package/es/locales/common/viVN.js +113 -0
  270. package/es/locales/date/viVN.d.ts +3 -0
  271. package/es/locales/date/viVN.js +6 -0
  272. package/es/locales/index.d.ts +2 -0
  273. package/es/locales/index.js +2 -0
  274. package/es/log/index.d.ts +1 -1
  275. package/es/log/index.js +1 -1
  276. package/es/log/src/Log.d.ts +1 -1
  277. package/es/log/src/Log.js +1 -1
  278. package/es/mention/index.d.ts +1 -1
  279. package/es/mention/index.js +1 -1
  280. package/es/mention/src/Mention.d.ts +1 -1
  281. package/es/mention/src/Mention.js +1 -1
  282. package/es/menu/index.d.ts +1 -1
  283. package/es/menu/index.js +1 -1
  284. package/es/menu/src/Menu.d.ts +1 -1
  285. package/es/menu/src/Menu.js +1 -1
  286. package/es/message/index.d.ts +1 -1
  287. package/es/message/index.js +1 -1
  288. package/es/message/src/MessageProvider.d.ts +1 -1
  289. package/es/message/src/MessageProvider.js +1 -1
  290. package/es/modal/index.d.ts +1 -1
  291. package/es/modal/index.js +1 -1
  292. package/es/modal/src/Modal.d.ts +1 -1
  293. package/es/modal/src/Modal.js +1 -1
  294. package/es/modal/src/presetProps.d.ts +1 -1
  295. package/es/modal/src/styles/index.cssr.js +1 -0
  296. package/es/notification/index.d.ts +1 -1
  297. package/es/notification/index.js +1 -1
  298. package/es/notification/src/Notification.d.ts +4 -0
  299. package/es/notification/src/Notification.js +11 -4
  300. package/es/notification/src/NotificationContainer.d.ts +3 -0
  301. package/es/notification/src/NotificationContainer.js +1 -1
  302. package/es/notification/src/NotificationProvider.d.ts +28 -1
  303. package/es/notification/src/NotificationProvider.js +1 -1
  304. package/es/notification/src/styles/index.cssr.js +7 -6
  305. package/es/notification/src/styles/rtl.cssr.d.ts +2 -0
  306. package/es/notification/src/styles/rtl.cssr.js +22 -0
  307. package/es/notification/styles/_common.d.ts +3 -0
  308. package/es/notification/styles/_common.js +4 -1
  309. package/es/notification/styles/index.d.ts +1 -0
  310. package/es/notification/styles/index.js +1 -0
  311. package/es/notification/styles/light.d.ts +6 -0
  312. package/es/notification/styles/rtl.d.ts +2 -0
  313. package/es/notification/styles/rtl.js +5 -0
  314. package/es/number-animation/index.d.ts +1 -1
  315. package/es/number-animation/index.js +1 -1
  316. package/es/number-animation/src/NumberAnimation.d.ts +5 -1
  317. package/es/number-animation/src/NumberAnimation.js +5 -2
  318. package/es/page-header/index.d.ts +1 -1
  319. package/es/page-header/index.js +1 -1
  320. package/es/page-header/src/PageHeader.d.ts +1 -1
  321. package/es/page-header/src/PageHeader.js +2 -2
  322. package/es/pagination/index.d.ts +1 -1
  323. package/es/pagination/index.js +1 -1
  324. package/es/pagination/src/Pagination.d.ts +1 -1
  325. package/es/pagination/src/Pagination.js +2 -2
  326. package/es/pagination/src/styles/index.cssr.js +1 -0
  327. package/es/popconfirm/index.d.ts +1 -1
  328. package/es/popconfirm/index.js +1 -1
  329. package/es/popconfirm/src/Popconfirm.d.ts +4 -1
  330. package/es/popconfirm/src/Popconfirm.js +1 -1
  331. package/es/popover/index.d.ts +1 -1
  332. package/es/popover/index.js +1 -1
  333. package/es/popover/src/Popover.d.ts +8 -1
  334. package/es/popover/src/Popover.js +4 -2
  335. package/es/popover/src/PopoverBody.d.ts +6 -0
  336. package/es/popover/src/PopoverBody.js +23 -14
  337. package/es/popover/src/styles/index.cssr.js +19 -15
  338. package/es/popselect/index.d.ts +1 -1
  339. package/es/popselect/index.js +1 -1
  340. package/es/popselect/src/Popselect.d.ts +4 -1
  341. package/es/popselect/src/Popselect.js +1 -1
  342. package/es/progress/index.d.ts +1 -1
  343. package/es/progress/index.js +1 -1
  344. package/es/progress/src/Progress.d.ts +1 -1
  345. package/es/progress/src/Progress.js +1 -1
  346. package/es/radio/index.d.ts +3 -3
  347. package/es/radio/index.js +3 -3
  348. package/es/radio/src/Radio.d.ts +25 -0
  349. package/es/radio/src/Radio.js +2 -1
  350. package/es/radio/src/RadioButton.d.ts +25 -0
  351. package/es/radio/src/RadioButton.js +1 -0
  352. package/es/radio/src/RadioGroup.d.ts +1 -1
  353. package/es/radio/src/RadioGroup.js +2 -2
  354. package/es/radio/src/styles/radio-group.cssr.js +2 -0
  355. package/es/radio/src/styles/radio.cssr.js +1 -0
  356. package/es/rate/index.d.ts +1 -1
  357. package/es/rate/index.js +1 -1
  358. package/es/rate/src/Rate.d.ts +1 -1
  359. package/es/rate/src/Rate.js +1 -1
  360. package/es/result/index.d.ts +1 -1
  361. package/es/result/index.js +1 -1
  362. package/es/result/src/Result.d.ts +1 -1
  363. package/es/result/src/Result.js +1 -1
  364. package/es/scrollbar/index.d.ts +1 -1
  365. package/es/scrollbar/index.js +1 -1
  366. package/es/scrollbar/src/Scrollbar.d.ts +1 -1
  367. package/es/scrollbar/src/Scrollbar.js +1 -1
  368. package/es/select/index.d.ts +2 -2
  369. package/es/select/index.js +1 -1
  370. package/es/select/src/Select.d.ts +5 -5
  371. package/es/select/src/Select.js +11 -2
  372. package/es/select/src/interface.d.ts +1 -0
  373. package/es/skeleton/index.d.ts +1 -1
  374. package/es/skeleton/index.js +1 -1
  375. package/es/skeleton/src/Skeleton.d.ts +1 -1
  376. package/es/skeleton/src/Skeleton.js +1 -1
  377. package/es/slider/index.d.ts +1 -1
  378. package/es/slider/index.js +1 -1
  379. package/es/slider/src/Slider.d.ts +1 -1
  380. package/es/slider/src/Slider.js +1 -1
  381. package/es/slider/src/styles/index.cssr.js +1 -0
  382. package/es/space/index.d.ts +1 -1
  383. package/es/space/index.js +1 -1
  384. package/es/space/src/Space.d.ts +1 -1
  385. package/es/space/src/Space.js +2 -2
  386. package/es/spin/index.d.ts +1 -1
  387. package/es/spin/index.js +1 -1
  388. package/es/spin/src/Spin.d.ts +1 -1
  389. package/es/spin/src/Spin.js +1 -1
  390. package/es/spin/src/styles/index.cssr.js +1 -0
  391. package/es/statistic/index.d.ts +1 -1
  392. package/es/statistic/index.js +1 -1
  393. package/es/statistic/src/Statistic.d.ts +1 -1
  394. package/es/statistic/src/Statistic.js +1 -1
  395. package/es/steps/index.d.ts +2 -2
  396. package/es/steps/index.js +2 -2
  397. package/es/steps/src/Step.d.ts +1 -1
  398. package/es/steps/src/Step.js +1 -1
  399. package/es/steps/src/Steps.d.ts +1 -1
  400. package/es/steps/src/Steps.js +1 -1
  401. package/es/switch/index.d.ts +1 -1
  402. package/es/switch/index.js +1 -1
  403. package/es/switch/src/Switch.d.ts +1 -1
  404. package/es/switch/src/Switch.js +1 -1
  405. package/es/switch/src/styles/index.cssr.js +1 -0
  406. package/es/table/index.d.ts +1 -1
  407. package/es/table/index.js +1 -1
  408. package/es/table/src/Table.d.ts +1 -1
  409. package/es/table/src/Table.js +2 -2
  410. package/es/tabs/index.d.ts +3 -3
  411. package/es/tabs/index.js +3 -3
  412. package/es/tabs/src/Tab.d.ts +2 -2
  413. package/es/tabs/src/Tab.js +2 -2
  414. package/es/tabs/src/Tabs.d.ts +1 -1
  415. package/es/tabs/src/Tabs.js +2 -2
  416. package/es/tag/index.d.ts +1 -1
  417. package/es/tag/index.js +1 -1
  418. package/es/tag/src/Tag.d.ts +1 -1
  419. package/es/tag/src/Tag.js +2 -2
  420. package/es/thing/index.d.ts +1 -1
  421. package/es/thing/index.js +1 -1
  422. package/es/thing/src/Thing.d.ts +1 -1
  423. package/es/thing/src/Thing.js +1 -1
  424. package/es/time/index.d.ts +1 -1
  425. package/es/time/index.js +1 -1
  426. package/es/time/src/Time.d.ts +1 -1
  427. package/es/time/src/Time.js +1 -1
  428. package/es/time-picker/index.d.ts +1 -1
  429. package/es/time-picker/index.js +1 -1
  430. package/es/time-picker/src/TimePicker.d.ts +1 -1
  431. package/es/time-picker/src/TimePicker.js +1 -1
  432. package/es/timeline/index.d.ts +2 -2
  433. package/es/timeline/index.js +2 -2
  434. package/es/timeline/src/Timeline.d.ts +1 -1
  435. package/es/timeline/src/Timeline.js +1 -1
  436. package/es/timeline/src/TimelineItem.d.ts +1 -1
  437. package/es/timeline/src/TimelineItem.js +1 -1
  438. package/es/tooltip/index.d.ts +1 -1
  439. package/es/tooltip/index.js +1 -1
  440. package/es/tooltip/src/Tooltip.d.ts +4 -1
  441. package/es/tooltip/src/Tooltip.js +1 -1
  442. package/es/transfer/index.d.ts +1 -1
  443. package/es/transfer/index.js +1 -1
  444. package/es/transfer/src/Transfer.d.ts +1 -1
  445. package/es/transfer/src/Transfer.js +1 -1
  446. package/es/tree/index.d.ts +1 -1
  447. package/es/tree/index.js +1 -1
  448. package/es/tree/src/Tree.d.ts +23 -5
  449. package/es/tree/src/Tree.js +47 -20
  450. package/es/tree/src/TreeNode.d.ts +1 -1
  451. package/es/tree/src/TreeNode.js +21 -6
  452. package/es/tree/src/interface.d.ts +3 -1
  453. package/es/tree-select/index.d.ts +2 -2
  454. package/es/tree-select/index.js +1 -1
  455. package/es/tree-select/src/TreeSelect.d.ts +29 -7
  456. package/es/tree-select/src/TreeSelect.js +21 -5
  457. package/es/tree-select/src/interface.d.ts +17 -1
  458. package/es/typography/index.d.ts +7 -6
  459. package/es/typography/index.js +7 -6
  460. package/es/typography/src/a.d.ts +1 -1
  461. package/es/typography/src/a.js +1 -1
  462. package/es/typography/src/blockquote.d.ts +1 -1
  463. package/es/typography/src/blockquote.js +1 -1
  464. package/es/typography/src/create-header.d.ts +1 -1
  465. package/es/typography/src/create-header.js +1 -1
  466. package/es/typography/src/ol.d.ts +1 -1
  467. package/es/typography/src/ol.js +1 -1
  468. package/es/typography/src/p.d.ts +1 -1
  469. package/es/typography/src/p.js +1 -1
  470. package/es/typography/src/text.d.ts +1 -1
  471. package/es/typography/src/text.js +1 -1
  472. package/es/typography/src/ul.d.ts +1 -1
  473. package/es/typography/src/ul.js +1 -1
  474. package/es/upload/index.d.ts +1 -1
  475. package/es/upload/index.js +1 -1
  476. package/es/upload/src/Upload.d.ts +1 -1
  477. package/es/upload/src/Upload.js +1 -1
  478. package/es/upload/src/UploadFile.d.ts +2 -2
  479. package/es/upload/src/UploadFile.js +8 -4
  480. package/es/version.d.ts +1 -1
  481. package/es/version.js +1 -1
  482. package/es/watermark/index.d.ts +1 -1
  483. package/es/watermark/index.js +1 -1
  484. package/es/watermark/src/Watermark.d.ts +1 -1
  485. package/es/watermark/src/Watermark.js +1 -1
  486. package/es/watermark/src/styles/index.cssr.js +4 -1
  487. package/lib/_internal/close/src/Close.js +1 -1
  488. package/lib/_internal/scrollbar/src/Scrollbar.js +8 -2
  489. package/lib/_internal/scrollbar/src/styles/index.cssr.js +1 -0
  490. package/lib/_internal/select-menu/src/styles/index.cssr.js +1 -1
  491. package/lib/_internal/selection/src/styles/index.cssr.js +1 -0
  492. package/lib/_mixins/use-rtl.d.ts +1 -1
  493. package/lib/_mixins/use-rtl.js +2 -1
  494. package/lib/_utils/env/browser.d.ts +3 -0
  495. package/lib/_utils/env/browser.js +7 -0
  496. package/lib/_utils/env/is-native-lazy-load.d.ts +1 -0
  497. package/lib/_utils/env/is-native-lazy-load.js +6 -0
  498. package/lib/affix/index.d.ts +1 -1
  499. package/lib/affix/index.js +2 -1
  500. package/lib/alert/index.d.ts +1 -1
  501. package/lib/alert/index.js +2 -1
  502. package/lib/alert/src/Alert.d.ts +1 -1
  503. package/lib/alert/src/Alert.js +5 -4
  504. package/lib/anchor/index.d.ts +2 -2
  505. package/lib/anchor/index.js +3 -1
  506. package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
  507. package/lib/anchor/src/AnchorAdapter.js +3 -2
  508. package/lib/anchor/src/Link.d.ts +1 -1
  509. package/lib/anchor/src/Link.js +3 -3
  510. package/lib/auto-complete/index.d.ts +1 -1
  511. package/lib/auto-complete/index.js +2 -1
  512. package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
  513. package/lib/auto-complete/src/AutoComplete.js +3 -2
  514. package/lib/avatar/index.d.ts +1 -1
  515. package/lib/avatar/index.js +2 -1
  516. package/lib/avatar/src/Avatar.d.ts +13 -1
  517. package/lib/avatar/src/Avatar.js +60 -7
  518. package/lib/avatar-group/index.d.ts +1 -1
  519. package/lib/avatar-group/index.js +2 -1
  520. package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
  521. package/lib/avatar-group/src/AvatarGroup.js +5 -4
  522. package/lib/back-top/index.d.ts +1 -1
  523. package/lib/back-top/index.js +2 -1
  524. package/lib/back-top/src/BackTop.d.ts +1 -1
  525. package/lib/back-top/src/BackTop.js +3 -2
  526. package/lib/badge/index.d.ts +1 -1
  527. package/lib/badge/index.js +2 -1
  528. package/lib/badge/src/Badge.d.ts +1 -1
  529. package/lib/badge/src/Badge.js +5 -4
  530. package/lib/breadcrumb/index.d.ts +2 -2
  531. package/lib/breadcrumb/index.js +3 -1
  532. package/lib/breadcrumb/src/Breadcrumb.d.ts +1 -1
  533. package/lib/breadcrumb/src/Breadcrumb.js +3 -3
  534. package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
  535. package/lib/breadcrumb/src/BreadcrumbItem.js +3 -2
  536. package/lib/breadcrumb/src/styles/index.cssr.js +1 -0
  537. package/lib/button/index.d.ts +1 -1
  538. package/lib/button/index.js +2 -1
  539. package/lib/button/src/Button.d.ts +13 -4
  540. package/lib/button/src/Button.js +11 -7
  541. package/lib/button/src/styles/index.cssr.js +4 -0
  542. package/lib/button-group/index.d.ts +1 -1
  543. package/lib/button-group/index.js +2 -1
  544. package/lib/button-group/src/ButtonGroup.d.ts +1 -1
  545. package/lib/button-group/src/ButtonGroup.js +5 -4
  546. package/lib/calendar/index.d.ts +1 -1
  547. package/lib/calendar/index.js +2 -1
  548. package/lib/calendar/src/Calendar.d.ts +1 -1
  549. package/lib/calendar/src/Calendar.js +3 -2
  550. package/lib/card/index.d.ts +1 -1
  551. package/lib/card/index.js +2 -1
  552. package/lib/card/src/Card.d.ts +2 -2
  553. package/lib/card/src/Card.js +5 -5
  554. package/lib/carousel/index.d.ts +1 -1
  555. package/lib/carousel/index.js +2 -1
  556. package/lib/carousel/src/Carousel.d.ts +1 -1
  557. package/lib/carousel/src/Carousel.js +3 -2
  558. package/lib/carousel/src/styles/index.cssr.js +1 -0
  559. package/lib/cascader/index.d.ts +1 -1
  560. package/lib/cascader/index.js +2 -1
  561. package/lib/cascader/src/Cascader.d.ts +1 -1
  562. package/lib/cascader/src/Cascader.js +3 -2
  563. package/lib/cascader/src/utils.d.ts +1 -4
  564. package/lib/cascader/src/utils.js +18 -29
  565. package/lib/checkbox/index.d.ts +2 -2
  566. package/lib/checkbox/index.js +3 -1
  567. package/lib/checkbox/src/Checkbox.d.ts +1 -1
  568. package/lib/checkbox/src/Checkbox.js +5 -4
  569. package/lib/checkbox/src/CheckboxGroup.d.ts +1 -1
  570. package/lib/checkbox/src/CheckboxGroup.js +3 -3
  571. package/lib/checkbox/src/styles/index.cssr.js +2 -0
  572. package/lib/code/index.d.ts +1 -1
  573. package/lib/code/index.js +2 -1
  574. package/lib/code/src/Code.d.ts +1 -1
  575. package/lib/code/src/Code.js +3 -2
  576. package/lib/collapse/index.d.ts +2 -2
  577. package/lib/collapse/index.js +3 -1
  578. package/lib/collapse/src/Collapse.d.ts +1 -1
  579. package/lib/collapse/src/Collapse.js +5 -5
  580. package/lib/collapse/src/CollapseItem.d.ts +1 -1
  581. package/lib/collapse/src/CollapseItem.js +5 -4
  582. package/lib/collapse-transition/index.d.ts +1 -1
  583. package/lib/collapse-transition/index.js +2 -1
  584. package/lib/collapse-transition/src/CollapseTransition.d.ts +2 -2
  585. package/lib/collapse-transition/src/CollapseTransition.js +5 -4
  586. package/lib/color-picker/index.d.ts +1 -1
  587. package/lib/color-picker/index.js +2 -1
  588. package/lib/color-picker/src/ColorPicker.d.ts +2 -2
  589. package/lib/color-picker/src/ColorPicker.js +3 -3
  590. package/lib/countdown/index.d.ts +2 -2
  591. package/lib/countdown/index.js +2 -1
  592. package/lib/countdown/src/Countdown.d.ts +9 -2
  593. package/lib/countdown/src/Countdown.js +44 -27
  594. package/lib/data-table/index.d.ts +1 -1
  595. package/lib/data-table/index.js +2 -1
  596. package/lib/data-table/src/TableParts/Body.d.ts +4 -0
  597. package/lib/data-table/src/TableParts/Body.js +50 -34
  598. package/lib/data-table/src/TableParts/BodyRadio.d.ts +30 -0
  599. package/lib/data-table/src/TableParts/BodyRadio.js +32 -0
  600. package/lib/data-table/src/TableParts/Header.js +2 -2
  601. package/lib/data-table/src/interface.d.ts +2 -1
  602. package/lib/data-table/src/use-check.d.ts +1 -1
  603. package/lib/data-table/src/use-check.js +15 -3
  604. package/lib/date-picker/index.d.ts +1 -1
  605. package/lib/date-picker/index.js +2 -1
  606. package/lib/date-picker/src/DatePicker.d.ts +41 -1
  607. package/lib/date-picker/src/DatePicker.js +36 -14
  608. package/lib/date-picker/src/config.d.ts +1 -1
  609. package/lib/date-picker/src/panel/date.d.ts +4 -0
  610. package/lib/date-picker/src/panel/daterange.d.ts +7 -1
  611. package/lib/date-picker/src/panel/daterange.js +1 -1
  612. package/lib/date-picker/src/panel/datetime.d.ts +4 -0
  613. package/lib/date-picker/src/panel/datetimerange.d.ts +7 -1
  614. package/lib/date-picker/src/panel/datetimerange.js +1 -1
  615. package/lib/date-picker/src/panel/month.d.ts +4 -0
  616. package/lib/date-picker/src/panel/month.js +1 -1
  617. package/lib/date-picker/src/panel/monthrange.d.ts +11 -5
  618. package/lib/date-picker/src/panel/monthrange.js +13 -7
  619. package/lib/date-picker/src/panel/panelHeader.d.ts +8 -0
  620. package/lib/date-picker/src/panel/use-calendar.d.ts +4 -0
  621. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +9 -3
  622. package/lib/date-picker/src/panel/use-dual-calendar.js +24 -4
  623. package/lib/date-picker/src/panel/use-panel-common.d.ts +4 -0
  624. package/lib/date-picker/src/styles/index.cssr.js +4 -0
  625. package/lib/date-picker/src/utils.d.ts +1 -1
  626. package/lib/date-picker/src/utils.js +2 -2
  627. package/lib/date-picker/styles/_common.d.ts +4 -0
  628. package/lib/date-picker/styles/_common.js +5 -1
  629. package/lib/date-picker/styles/light.d.ts +8 -0
  630. package/lib/descriptions/index.d.ts +2 -2
  631. package/lib/descriptions/index.js +3 -1
  632. package/lib/descriptions/src/Descriptions.d.ts +2 -2
  633. package/lib/descriptions/src/Descriptions.js +3 -2
  634. package/lib/descriptions/src/DescriptionsItem.d.ts +2 -2
  635. package/lib/descriptions/src/DescriptionsItem.js +3 -2
  636. package/lib/dialog/index.d.ts +2 -1
  637. package/lib/dialog/index.js +4 -1
  638. package/lib/dialog/src/DialogProvider.d.ts +1 -1
  639. package/lib/dialog/src/DialogProvider.js +3 -3
  640. package/lib/divider/index.d.ts +1 -1
  641. package/lib/divider/index.js +2 -1
  642. package/lib/divider/src/Divider.d.ts +1 -1
  643. package/lib/divider/src/Divider.js +3 -2
  644. package/lib/drawer/index.d.ts +2 -2
  645. package/lib/drawer/index.js +3 -1
  646. package/lib/drawer/src/Drawer.d.ts +60 -27
  647. package/lib/drawer/src/Drawer.js +39 -17
  648. package/lib/drawer/src/DrawerBodyWrapper.d.ts +9 -0
  649. package/lib/drawer/src/DrawerBodyWrapper.js +97 -2
  650. package/lib/drawer/src/DrawerContent.d.ts +2 -1
  651. package/lib/drawer/src/DrawerContent.js +3 -2
  652. package/lib/drawer/src/interface.d.ts +2 -0
  653. package/lib/drawer/src/styles/index.cssr.js +42 -5
  654. package/lib/drawer/styles/light.d.ts +2 -0
  655. package/lib/drawer/styles/light.js +3 -2
  656. package/lib/dropdown/index.d.ts +2 -2
  657. package/lib/dropdown/index.js +2 -1
  658. package/lib/dropdown/src/Dropdown.d.ts +10 -2
  659. package/lib/dropdown/src/Dropdown.js +17 -5
  660. package/lib/dropdown/src/DropdownMenu.d.ts +3 -0
  661. package/lib/dropdown/src/DropdownMenu.js +23 -15
  662. package/lib/dropdown/src/DropdownOption.d.ts +5 -0
  663. package/lib/dropdown/src/DropdownOption.js +32 -10
  664. package/lib/dropdown/src/interface.d.ts +2 -1
  665. package/lib/dropdown/src/styles/index.cssr.js +16 -10
  666. package/lib/dynamic-input/index.d.ts +1 -1
  667. package/lib/dynamic-input/index.js +2 -1
  668. package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
  669. package/lib/dynamic-input/src/DynamicInput.js +5 -4
  670. package/lib/dynamic-tags/index.d.ts +1 -1
  671. package/lib/dynamic-tags/index.js +2 -1
  672. package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
  673. package/lib/dynamic-tags/src/DynamicTags.js +3 -2
  674. package/lib/element/index.d.ts +1 -1
  675. package/lib/element/index.js +2 -1
  676. package/lib/element/src/Element.d.ts +1 -1
  677. package/lib/element/src/Element.js +3 -2
  678. package/lib/ellipsis/index.d.ts +1 -1
  679. package/lib/ellipsis/index.js +2 -1
  680. package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
  681. package/lib/ellipsis/src/Ellipsis.js +3 -2
  682. package/lib/empty/index.d.ts +1 -1
  683. package/lib/empty/index.js +2 -1
  684. package/lib/empty/src/Empty.d.ts +1 -1
  685. package/lib/empty/src/Empty.js +3 -2
  686. package/lib/form/index.d.ts +3 -3
  687. package/lib/form/index.js +5 -1
  688. package/lib/form/src/Form.d.ts +1 -1
  689. package/lib/form/src/Form.js +3 -2
  690. package/lib/form/src/FormItemRow.d.ts +1 -1
  691. package/lib/form/src/FormItemRow.js +3 -2
  692. package/lib/form/src/styles/form-item.cssr.js +2 -0
  693. package/lib/gradient-text/index.d.ts +1 -1
  694. package/lib/gradient-text/index.js +2 -1
  695. package/lib/gradient-text/src/GradientText.d.ts +1 -1
  696. package/lib/gradient-text/src/GradientText.js +3 -2
  697. package/lib/grid/index.d.ts +3 -3
  698. package/lib/grid/index.js +4 -1
  699. package/lib/grid/src/Grid.d.ts +1 -1
  700. package/lib/grid/src/Grid.js +4 -3
  701. package/lib/icon/index.d.ts +1 -1
  702. package/lib/icon/index.js +2 -1
  703. package/lib/icon/src/Icon.d.ts +1 -2
  704. package/lib/icon/src/Icon.js +3 -3
  705. package/lib/icon-wrapper/index.d.ts +1 -1
  706. package/lib/icon-wrapper/index.js +2 -1
  707. package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -2
  708. package/lib/icon-wrapper/src/IconWrapper.js +3 -3
  709. package/lib/image/index.d.ts +2 -2
  710. package/lib/image/index.js +3 -1
  711. package/lib/image/src/Image.d.ts +1 -1
  712. package/lib/image/src/Image.js +19 -11
  713. package/lib/image/src/ImageGroup.d.ts +1 -1
  714. package/lib/image/src/ImageGroup.js +3 -3
  715. package/lib/image/src/styles/index.cssr.js +1 -0
  716. package/lib/input/index.d.ts +3 -3
  717. package/lib/input/index.js +4 -1
  718. package/lib/input/src/Input.d.ts +1 -1
  719. package/lib/input/src/Input.js +5 -4
  720. package/lib/input/src/InputGroup.d.ts +1 -1
  721. package/lib/input/src/InputGroup.js +3 -2
  722. package/lib/input/src/InputGroupLabel.d.ts +1 -1
  723. package/lib/input/src/InputGroupLabel.js +3 -2
  724. package/lib/input/src/styles/input-group-label.cssr.js +1 -0
  725. package/lib/input/src/styles/input.cssr.js +3 -0
  726. package/lib/input-number/index.d.ts +1 -1
  727. package/lib/input-number/index.js +2 -1
  728. package/lib/input-number/src/InputNumber.d.ts +1 -1
  729. package/lib/input-number/src/InputNumber.js +5 -4
  730. package/lib/layout/index.d.ts +4 -4
  731. package/lib/layout/index.js +6 -1
  732. package/lib/layout/src/Layout.d.ts +1 -1
  733. package/lib/layout/src/Layout.js +3 -3
  734. package/lib/layout/src/LayoutFooter.d.ts +1 -1
  735. package/lib/layout/src/LayoutFooter.js +3 -2
  736. package/lib/layout/src/LayoutHeader.d.ts +1 -1
  737. package/lib/layout/src/LayoutHeader.js +3 -2
  738. package/lib/layout/src/LayoutSider.d.ts +1 -1
  739. package/lib/layout/src/LayoutSider.js +3 -2
  740. package/lib/legacy-grid/index.d.ts +2 -2
  741. package/lib/legacy-grid/index.js +3 -1
  742. package/lib/list/index.d.ts +1 -1
  743. package/lib/list/index.js +2 -1
  744. package/lib/list/src/List.d.ts +1 -1
  745. package/lib/list/src/List.js +3 -3
  746. package/lib/loading-bar/index.d.ts +1 -1
  747. package/lib/loading-bar/index.js +2 -1
  748. package/lib/loading-bar/src/LoadingBarProvider.d.ts +3 -3
  749. package/lib/loading-bar/src/LoadingBarProvider.js +3 -2
  750. package/lib/locales/common/ukUA.js +14 -18
  751. package/lib/locales/common/viVN.d.ts +3 -0
  752. package/lib/locales/common/viVN.js +115 -0
  753. package/lib/locales/date/viVN.d.ts +3 -0
  754. package/lib/locales/date/viVN.js +11 -0
  755. package/lib/locales/index.d.ts +2 -0
  756. package/lib/locales/index.js +5 -1
  757. package/lib/log/index.d.ts +1 -1
  758. package/lib/log/index.js +2 -1
  759. package/lib/log/src/Log.d.ts +1 -1
  760. package/lib/log/src/Log.js +3 -2
  761. package/lib/mention/index.d.ts +1 -1
  762. package/lib/mention/index.js +2 -1
  763. package/lib/mention/src/Mention.d.ts +1 -1
  764. package/lib/mention/src/Mention.js +3 -2
  765. package/lib/menu/index.d.ts +1 -1
  766. package/lib/menu/index.js +2 -1
  767. package/lib/menu/src/Menu.d.ts +1 -1
  768. package/lib/menu/src/Menu.js +3 -2
  769. package/lib/message/index.d.ts +1 -1
  770. package/lib/message/index.js +2 -1
  771. package/lib/message/src/MessageProvider.d.ts +1 -1
  772. package/lib/message/src/MessageProvider.js +3 -2
  773. package/lib/modal/index.d.ts +1 -1
  774. package/lib/modal/index.js +2 -1
  775. package/lib/modal/src/Modal.d.ts +1 -1
  776. package/lib/modal/src/Modal.js +3 -2
  777. package/lib/modal/src/presetProps.d.ts +1 -1
  778. package/lib/modal/src/styles/index.cssr.js +1 -0
  779. package/lib/notification/index.d.ts +1 -1
  780. package/lib/notification/index.js +2 -1
  781. package/lib/notification/src/Notification.d.ts +4 -0
  782. package/lib/notification/src/Notification.js +11 -4
  783. package/lib/notification/src/NotificationContainer.d.ts +3 -0
  784. package/lib/notification/src/NotificationContainer.js +1 -1
  785. package/lib/notification/src/NotificationProvider.d.ts +28 -1
  786. package/lib/notification/src/NotificationProvider.js +3 -3
  787. package/lib/notification/src/styles/index.cssr.js +7 -6
  788. package/lib/notification/src/styles/rtl.cssr.d.ts +2 -0
  789. package/lib/notification/src/styles/rtl.cssr.js +29 -0
  790. package/lib/notification/styles/_common.d.ts +3 -0
  791. package/lib/notification/styles/_common.js +4 -1
  792. package/lib/notification/styles/index.d.ts +1 -0
  793. package/lib/notification/styles/index.js +3 -1
  794. package/lib/notification/styles/light.d.ts +6 -0
  795. package/lib/notification/styles/rtl.d.ts +2 -0
  796. package/lib/notification/styles/rtl.js +11 -0
  797. package/lib/number-animation/index.d.ts +1 -1
  798. package/lib/number-animation/index.js +2 -1
  799. package/lib/number-animation/src/NumberAnimation.d.ts +5 -1
  800. package/lib/number-animation/src/NumberAnimation.js +7 -3
  801. package/lib/page-header/index.d.ts +1 -1
  802. package/lib/page-header/index.js +2 -1
  803. package/lib/page-header/src/PageHeader.d.ts +1 -1
  804. package/lib/page-header/src/PageHeader.js +5 -4
  805. package/lib/pagination/index.d.ts +1 -1
  806. package/lib/pagination/index.js +2 -1
  807. package/lib/pagination/src/Pagination.d.ts +1 -1
  808. package/lib/pagination/src/Pagination.js +5 -4
  809. package/lib/pagination/src/styles/index.cssr.js +1 -0
  810. package/lib/popconfirm/index.d.ts +1 -1
  811. package/lib/popconfirm/index.js +2 -1
  812. package/lib/popconfirm/src/Popconfirm.d.ts +4 -1
  813. package/lib/popconfirm/src/Popconfirm.js +3 -2
  814. package/lib/popover/index.d.ts +1 -1
  815. package/lib/popover/index.js +2 -1
  816. package/lib/popover/src/Popover.d.ts +8 -1
  817. package/lib/popover/src/Popover.js +6 -4
  818. package/lib/popover/src/PopoverBody.d.ts +6 -0
  819. package/lib/popover/src/PopoverBody.js +23 -14
  820. package/lib/popover/src/styles/index.cssr.js +19 -15
  821. package/lib/popselect/index.d.ts +1 -1
  822. package/lib/popselect/index.js +2 -1
  823. package/lib/popselect/src/Popselect.d.ts +4 -1
  824. package/lib/popselect/src/Popselect.js +3 -2
  825. package/lib/progress/index.d.ts +1 -1
  826. package/lib/progress/index.js +2 -1
  827. package/lib/progress/src/Progress.d.ts +1 -1
  828. package/lib/progress/src/Progress.js +3 -2
  829. package/lib/radio/index.d.ts +3 -3
  830. package/lib/radio/index.js +4 -1
  831. package/lib/radio/src/Radio.d.ts +25 -0
  832. package/lib/radio/src/Radio.js +4 -2
  833. package/lib/radio/src/RadioButton.d.ts +25 -0
  834. package/lib/radio/src/RadioButton.js +2 -0
  835. package/lib/radio/src/RadioGroup.d.ts +1 -1
  836. package/lib/radio/src/RadioGroup.js +5 -4
  837. package/lib/radio/src/styles/radio-group.cssr.js +2 -0
  838. package/lib/radio/src/styles/radio.cssr.js +1 -0
  839. package/lib/rate/index.d.ts +1 -1
  840. package/lib/rate/index.js +2 -1
  841. package/lib/rate/src/Rate.d.ts +1 -1
  842. package/lib/rate/src/Rate.js +3 -2
  843. package/lib/result/index.d.ts +1 -1
  844. package/lib/result/index.js +2 -1
  845. package/lib/result/src/Result.d.ts +1 -1
  846. package/lib/result/src/Result.js +3 -2
  847. package/lib/scrollbar/index.d.ts +1 -1
  848. package/lib/scrollbar/index.js +2 -1
  849. package/lib/scrollbar/src/Scrollbar.d.ts +1 -1
  850. package/lib/scrollbar/src/Scrollbar.js +3 -2
  851. package/lib/select/index.d.ts +2 -2
  852. package/lib/select/index.js +2 -1
  853. package/lib/select/src/Select.d.ts +5 -5
  854. package/lib/select/src/Select.js +13 -3
  855. package/lib/select/src/interface.d.ts +1 -0
  856. package/lib/skeleton/index.d.ts +1 -1
  857. package/lib/skeleton/index.js +2 -1
  858. package/lib/skeleton/src/Skeleton.d.ts +1 -1
  859. package/lib/skeleton/src/Skeleton.js +3 -2
  860. package/lib/slider/index.d.ts +1 -1
  861. package/lib/slider/index.js +2 -1
  862. package/lib/slider/src/Slider.d.ts +1 -1
  863. package/lib/slider/src/Slider.js +3 -2
  864. package/lib/slider/src/styles/index.cssr.js +1 -0
  865. package/lib/space/index.d.ts +1 -1
  866. package/lib/space/index.js +2 -1
  867. package/lib/space/src/Space.d.ts +1 -1
  868. package/lib/space/src/Space.js +5 -7
  869. package/lib/spin/index.d.ts +1 -1
  870. package/lib/spin/index.js +2 -1
  871. package/lib/spin/src/Spin.d.ts +1 -1
  872. package/lib/spin/src/Spin.js +3 -2
  873. package/lib/spin/src/styles/index.cssr.js +1 -0
  874. package/lib/statistic/index.d.ts +1 -1
  875. package/lib/statistic/index.js +2 -1
  876. package/lib/statistic/src/Statistic.d.ts +1 -1
  877. package/lib/statistic/src/Statistic.js +3 -2
  878. package/lib/steps/index.d.ts +2 -2
  879. package/lib/steps/index.js +3 -1
  880. package/lib/steps/src/Step.d.ts +1 -1
  881. package/lib/steps/src/Step.js +3 -2
  882. package/lib/steps/src/Steps.d.ts +1 -1
  883. package/lib/steps/src/Steps.js +3 -3
  884. package/lib/switch/index.d.ts +1 -1
  885. package/lib/switch/index.js +2 -1
  886. package/lib/switch/src/Switch.d.ts +1 -1
  887. package/lib/switch/src/Switch.js +3 -2
  888. package/lib/switch/src/styles/index.cssr.js +1 -0
  889. package/lib/table/index.d.ts +1 -1
  890. package/lib/table/index.js +2 -1
  891. package/lib/table/src/Table.d.ts +1 -1
  892. package/lib/table/src/Table.js +5 -4
  893. package/lib/tabs/index.d.ts +3 -3
  894. package/lib/tabs/index.js +4 -1
  895. package/lib/tabs/src/Tab.d.ts +2 -2
  896. package/lib/tabs/src/Tab.js +3 -2
  897. package/lib/tabs/src/Tabs.d.ts +1 -1
  898. package/lib/tabs/src/Tabs.js +4 -3
  899. package/lib/tag/index.d.ts +1 -1
  900. package/lib/tag/index.js +2 -1
  901. package/lib/tag/src/Tag.d.ts +1 -1
  902. package/lib/tag/src/Tag.js +5 -5
  903. package/lib/thing/index.d.ts +1 -1
  904. package/lib/thing/index.js +2 -1
  905. package/lib/thing/src/Thing.d.ts +1 -1
  906. package/lib/thing/src/Thing.js +3 -2
  907. package/lib/time/index.d.ts +1 -1
  908. package/lib/time/index.js +2 -1
  909. package/lib/time/src/Time.d.ts +1 -1
  910. package/lib/time/src/Time.js +3 -2
  911. package/lib/time-picker/index.d.ts +1 -1
  912. package/lib/time-picker/index.js +2 -1
  913. package/lib/time-picker/src/TimePicker.d.ts +1 -1
  914. package/lib/time-picker/src/TimePicker.js +3 -2
  915. package/lib/timeline/index.d.ts +2 -2
  916. package/lib/timeline/index.js +3 -1
  917. package/lib/timeline/src/Timeline.d.ts +1 -1
  918. package/lib/timeline/src/Timeline.js +3 -3
  919. package/lib/timeline/src/TimelineItem.d.ts +1 -1
  920. package/lib/timeline/src/TimelineItem.js +3 -2
  921. package/lib/tooltip/index.d.ts +1 -1
  922. package/lib/tooltip/index.js +2 -1
  923. package/lib/tooltip/src/Tooltip.d.ts +4 -1
  924. package/lib/tooltip/src/Tooltip.js +3 -2
  925. package/lib/transfer/index.d.ts +1 -1
  926. package/lib/transfer/index.js +2 -1
  927. package/lib/transfer/src/Transfer.d.ts +1 -1
  928. package/lib/transfer/src/Transfer.js +3 -2
  929. package/lib/tree/index.d.ts +1 -1
  930. package/lib/tree/index.js +2 -1
  931. package/lib/tree/src/Tree.d.ts +23 -5
  932. package/lib/tree/src/Tree.js +49 -22
  933. package/lib/tree/src/TreeNode.d.ts +1 -1
  934. package/lib/tree/src/TreeNode.js +21 -6
  935. package/lib/tree/src/interface.d.ts +3 -1
  936. package/lib/tree-select/index.d.ts +2 -2
  937. package/lib/tree-select/index.js +2 -1
  938. package/lib/tree-select/src/TreeSelect.d.ts +29 -7
  939. package/lib/tree-select/src/TreeSelect.js +22 -5
  940. package/lib/tree-select/src/interface.d.ts +17 -1
  941. package/lib/typography/index.d.ts +7 -6
  942. package/lib/typography/index.js +14 -1
  943. package/lib/typography/src/a.d.ts +1 -1
  944. package/lib/typography/src/a.js +3 -2
  945. package/lib/typography/src/blockquote.d.ts +1 -1
  946. package/lib/typography/src/blockquote.js +3 -2
  947. package/lib/typography/src/create-header.d.ts +1 -1
  948. package/lib/typography/src/create-header.js +3 -2
  949. package/lib/typography/src/ol.d.ts +1 -1
  950. package/lib/typography/src/ol.js +3 -2
  951. package/lib/typography/src/p.d.ts +1 -1
  952. package/lib/typography/src/p.js +3 -2
  953. package/lib/typography/src/text.d.ts +1 -1
  954. package/lib/typography/src/text.js +3 -2
  955. package/lib/typography/src/ul.d.ts +1 -1
  956. package/lib/typography/src/ul.js +3 -2
  957. package/lib/upload/index.d.ts +1 -1
  958. package/lib/upload/index.js +2 -1
  959. package/lib/upload/src/Upload.d.ts +1 -1
  960. package/lib/upload/src/Upload.js +3 -2
  961. package/lib/upload/src/UploadFile.d.ts +2 -2
  962. package/lib/upload/src/UploadFile.js +8 -4
  963. package/lib/version.d.ts +1 -1
  964. package/lib/version.js +1 -1
  965. package/lib/watermark/index.d.ts +1 -1
  966. package/lib/watermark/index.js +2 -1
  967. package/lib/watermark/src/Watermark.d.ts +1 -1
  968. package/lib/watermark/src/Watermark.js +3 -2
  969. package/lib/watermark/src/styles/index.cssr.js +4 -1
  970. package/package.json +2 -2
  971. package/web-types.json +203 -11
@@ -3,17 +3,18 @@ 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.dividerProps = void 0;
6
7
  const vue_1 = require("vue");
7
8
  const _mixins_1 = require("../../_mixins");
8
9
  const styles_1 = require("../styles");
9
10
  const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
10
- const dividerProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { titlePlacement: {
11
+ exports.dividerProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { titlePlacement: {
11
12
  type: String,
12
13
  default: 'center'
13
14
  }, dashed: Boolean, vertical: Boolean });
14
15
  exports.default = (0, vue_1.defineComponent)({
15
16
  name: 'Divider',
16
- props: dividerProps,
17
+ props: exports.dividerProps,
17
18
  setup(props) {
18
19
  const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
19
20
  const themeRef = (0, _mixins_1.useTheme)('Divider', '-divider', index_cssr_1.default, styles_1.dividerLight, props, mergedClsPrefixRef);
@@ -1,5 +1,5 @@
1
- export { default as NDrawer } from './src/Drawer';
1
+ export { default as NDrawer, drawerProps } from './src/Drawer';
2
2
  export type { DrawerProps } from './src/Drawer';
3
- export { default as NDrawerContent } from './src/DrawerContent';
3
+ export { default as NDrawerContent, drawerContentProps } from './src/DrawerContent';
4
4
  export type { DrawerContentProps } from './src/DrawerContent';
5
5
  export type { Placement as DrawerPlacement } from './src/DrawerBodyWrapper';
@@ -3,8 +3,10 @@ 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.NDrawerContent = exports.NDrawer = void 0;
6
+ exports.drawerContentProps = exports.NDrawerContent = exports.drawerProps = exports.NDrawer = void 0;
7
7
  var Drawer_1 = require("./src/Drawer");
8
8
  Object.defineProperty(exports, "NDrawer", { enumerable: true, get: function () { return __importDefault(Drawer_1).default; } });
9
+ Object.defineProperty(exports, "drawerProps", { enumerable: true, get: function () { return Drawer_1.drawerProps; } });
9
10
  var DrawerContent_1 = require("./src/DrawerContent");
10
11
  Object.defineProperty(exports, "NDrawerContent", { enumerable: true, get: function () { return __importDefault(DrawerContent_1).default; } });
12
+ Object.defineProperty(exports, "drawerContentProps", { enumerable: true, get: function () { return DrawerContent_1.drawerContentProps; } });
@@ -2,16 +2,10 @@ import { PropType, CSSProperties } from 'vue';
2
2
  import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
3
3
  import { ScrollbarProps } from '../../_internal';
4
4
  import type { Placement } from './DrawerBodyWrapper';
5
- declare const drawerProps: {
5
+ export declare const drawerProps: {
6
6
  readonly show: BooleanConstructor;
7
- readonly width: {
8
- readonly type: PropType<string | number>;
9
- readonly default: 251;
10
- };
11
- readonly height: {
12
- readonly type: PropType<string | number>;
13
- readonly default: 251;
14
- };
7
+ readonly width: PropType<string | number>;
8
+ readonly height: PropType<string | number>;
15
9
  readonly placement: {
16
10
  readonly type: PropType<Placement>;
17
11
  readonly default: "right";
@@ -54,6 +48,19 @@ declare const drawerProps: {
54
48
  readonly type: BooleanConstructor;
55
49
  readonly default: true;
56
50
  };
51
+ readonly resizable: BooleanConstructor;
52
+ readonly defaultWidth: {
53
+ readonly type: NumberConstructor;
54
+ readonly default: 251;
55
+ };
56
+ readonly defaultHeight: {
57
+ readonly type: NumberConstructor;
58
+ readonly default: 251;
59
+ };
60
+ readonly onUpdateWidth: PropType<MaybeArray<(value: number) => void>>;
61
+ readonly onUpdateHeight: PropType<MaybeArray<(value: number) => void>>;
62
+ readonly 'onUpdate:width': PropType<MaybeArray<(value: number) => void>>;
63
+ readonly 'onUpdate:height': PropType<MaybeArray<(value: number) => void>>;
57
64
  readonly 'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
58
65
  readonly onUpdateShow: PropType<MaybeArray<(value: boolean) => void>>;
59
66
  readonly onAfterEnter: PropType<() => void>;
@@ -85,6 +92,7 @@ declare const drawerProps: {
85
92
  closeColorHover: string;
86
93
  closeColorPressed: string;
87
94
  closeBorderRadius: string;
95
+ resizableTriggerColorHover: string;
88
96
  }, {
89
97
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
90
98
  color: string;
@@ -112,6 +120,7 @@ declare const drawerProps: {
112
120
  closeColorHover: string;
113
121
  closeColorPressed: string;
114
122
  closeBorderRadius: string;
123
+ resizableTriggerColorHover: string;
115
124
  }, {
116
125
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
117
126
  color: string;
@@ -139,6 +148,7 @@ declare const drawerProps: {
139
148
  closeColorHover: string;
140
149
  closeColorPressed: string;
141
150
  closeBorderRadius: string;
151
+ resizableTriggerColorHover: string;
142
152
  }, {
143
153
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
144
154
  color: string;
@@ -149,14 +159,8 @@ declare const drawerProps: {
149
159
  export declare type DrawerProps = ExtractPublicPropTypes<typeof drawerProps>;
150
160
  declare const _default: import("vue").DefineComponent<{
151
161
  readonly show: BooleanConstructor;
152
- readonly width: {
153
- readonly type: PropType<string | number>;
154
- readonly default: 251;
155
- };
156
- readonly height: {
157
- readonly type: PropType<string | number>;
158
- readonly default: 251;
159
- };
162
+ readonly width: PropType<string | number>;
163
+ readonly height: PropType<string | number>;
160
164
  readonly placement: {
161
165
  readonly type: PropType<Placement>;
162
166
  readonly default: "right";
@@ -199,6 +203,19 @@ declare const _default: import("vue").DefineComponent<{
199
203
  readonly type: BooleanConstructor;
200
204
  readonly default: true;
201
205
  };
206
+ readonly resizable: BooleanConstructor;
207
+ readonly defaultWidth: {
208
+ readonly type: NumberConstructor;
209
+ readonly default: 251;
210
+ };
211
+ readonly defaultHeight: {
212
+ readonly type: NumberConstructor;
213
+ readonly default: 251;
214
+ };
215
+ readonly onUpdateWidth: PropType<MaybeArray<(value: number) => void>>;
216
+ readonly onUpdateHeight: PropType<MaybeArray<(value: number) => void>>;
217
+ readonly 'onUpdate:width': PropType<MaybeArray<(value: number) => void>>;
218
+ readonly 'onUpdate:height': PropType<MaybeArray<(value: number) => void>>;
202
219
  readonly 'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
203
220
  readonly onUpdateShow: PropType<MaybeArray<(value: boolean) => void>>;
204
221
  readonly onAfterEnter: PropType<() => void>;
@@ -230,6 +247,7 @@ declare const _default: import("vue").DefineComponent<{
230
247
  closeColorHover: string;
231
248
  closeColorPressed: string;
232
249
  closeBorderRadius: string;
250
+ resizableTriggerColorHover: string;
233
251
  }, {
234
252
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
235
253
  color: string;
@@ -257,6 +275,7 @@ declare const _default: import("vue").DefineComponent<{
257
275
  closeColorHover: string;
258
276
  closeColorPressed: string;
259
277
  closeBorderRadius: string;
278
+ resizableTriggerColorHover: string;
260
279
  }, {
261
280
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
262
281
  color: string;
@@ -284,6 +303,7 @@ declare const _default: import("vue").DefineComponent<{
284
303
  closeColorHover: string;
285
304
  closeColorPressed: string;
286
305
  closeBorderRadius: string;
306
+ resizableTriggerColorHover: string;
287
307
  }, {
288
308
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
289
309
  color: string;
@@ -423,6 +443,7 @@ declare const _default: import("vue").DefineComponent<{
423
443
  closeColorHover: string;
424
444
  closeColorPressed: string;
425
445
  closeBorderRadius: string;
446
+ resizableTriggerColorHover: string;
426
447
  };
427
448
  peers: {
428
449
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
@@ -462,20 +483,15 @@ declare const _default: import("vue").DefineComponent<{
462
483
  '--n-close-color-pressed': string;
463
484
  '--n-close-icon-size': string;
464
485
  '--n-close-border-radius': string;
486
+ '--n-resize-trigger-color-hover': string;
465
487
  }> | undefined;
466
488
  themeClass: import("vue").Ref<string> | undefined;
467
489
  onRender: (() => void) | undefined;
468
490
  isMounted: Readonly<import("vue").Ref<boolean>>;
469
491
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
470
492
  readonly show: BooleanConstructor;
471
- readonly width: {
472
- readonly type: PropType<string | number>;
473
- readonly default: 251;
474
- };
475
- readonly height: {
476
- readonly type: PropType<string | number>;
477
- readonly default: 251;
478
- };
493
+ readonly width: PropType<string | number>;
494
+ readonly height: PropType<string | number>;
479
495
  readonly placement: {
480
496
  readonly type: PropType<Placement>;
481
497
  readonly default: "right";
@@ -518,6 +534,19 @@ declare const _default: import("vue").DefineComponent<{
518
534
  readonly type: BooleanConstructor;
519
535
  readonly default: true;
520
536
  };
537
+ readonly resizable: BooleanConstructor;
538
+ readonly defaultWidth: {
539
+ readonly type: NumberConstructor;
540
+ readonly default: 251;
541
+ };
542
+ readonly defaultHeight: {
543
+ readonly type: NumberConstructor;
544
+ readonly default: 251;
545
+ };
546
+ readonly onUpdateWidth: PropType<MaybeArray<(value: number) => void>>;
547
+ readonly onUpdateHeight: PropType<MaybeArray<(value: number) => void>>;
548
+ readonly 'onUpdate:width': PropType<MaybeArray<(value: number) => void>>;
549
+ readonly 'onUpdate:height': PropType<MaybeArray<(value: number) => void>>;
521
550
  readonly 'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
522
551
  readonly onUpdateShow: PropType<MaybeArray<(value: boolean) => void>>;
523
552
  readonly onAfterEnter: PropType<() => void>;
@@ -549,6 +578,7 @@ declare const _default: import("vue").DefineComponent<{
549
578
  closeColorHover: string;
550
579
  closeColorPressed: string;
551
580
  closeBorderRadius: string;
581
+ resizableTriggerColorHover: string;
552
582
  }, {
553
583
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
554
584
  color: string;
@@ -576,6 +606,7 @@ declare const _default: import("vue").DefineComponent<{
576
606
  closeColorHover: string;
577
607
  closeColorPressed: string;
578
608
  closeBorderRadius: string;
609
+ resizableTriggerColorHover: string;
579
610
  }, {
580
611
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
581
612
  color: string;
@@ -603,6 +634,7 @@ declare const _default: import("vue").DefineComponent<{
603
634
  closeColorHover: string;
604
635
  closeColorPressed: string;
605
636
  closeBorderRadius: string;
637
+ resizableTriggerColorHover: string;
606
638
  }, {
607
639
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
608
640
  color: string;
@@ -611,16 +643,17 @@ declare const _default: import("vue").DefineComponent<{
611
643
  }>>>;
612
644
  }>>, {
613
645
  readonly show: boolean;
614
- readonly height: string | number;
615
- readonly width: string | number;
616
646
  readonly autoFocus: boolean;
617
647
  readonly placement: Placement;
618
648
  readonly displayDirective: "show" | "if";
649
+ readonly resizable: boolean;
619
650
  readonly trapFocus: boolean;
620
651
  readonly blockScroll: boolean;
621
652
  readonly maskClosable: boolean;
622
653
  readonly closeOnEsc: boolean;
623
654
  readonly nativeScrollbar: boolean;
624
655
  readonly showMask: boolean | "transparent";
656
+ readonly defaultWidth: number;
657
+ readonly defaultHeight: number;
625
658
  }>;
626
659
  export default _default;
@@ -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.drawerProps = void 0;
6
7
  const vue_1 = require("vue");
7
8
  const vueuc_1 = require("vueuc");
8
9
  const vdirs_1 = require("vdirs");
@@ -13,13 +14,7 @@ const styles_1 = require("../styles");
13
14
  const DrawerBodyWrapper_1 = __importDefault(require("./DrawerBodyWrapper"));
14
15
  const interface_1 = require("./interface");
15
16
  const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
16
- const drawerProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { show: Boolean, width: {
17
- type: [Number, String],
18
- default: 251
19
- }, height: {
20
- type: [Number, String],
21
- default: 251
22
- }, placement: {
17
+ exports.drawerProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { show: Boolean, width: [Number, String], height: [Number, String], placement: {
23
18
  type: String,
24
19
  default: 'right'
25
20
  }, maskClosable: {
@@ -46,13 +41,19 @@ const drawerProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), {
46
41
  }, blockScroll: {
47
42
  type: Boolean,
48
43
  default: true
49
- }, 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], onAfterEnter: Function, onAfterLeave: Function,
44
+ }, resizable: Boolean, defaultWidth: {
45
+ type: Number,
46
+ default: 251
47
+ }, defaultHeight: {
48
+ type: Number,
49
+ default: 251
50
+ }, onUpdateWidth: [Function, Array], onUpdateHeight: [Function, Array], 'onUpdate:width': [Function, Array], 'onUpdate:height': [Function, Array], 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], onAfterEnter: Function, onAfterLeave: Function,
50
51
  /** @deprecated */
51
52
  drawerStyle: [String, Object], drawerClass: String, target: null, onShow: Function, onHide: Function });
52
53
  exports.default = (0, vue_1.defineComponent)({
53
54
  name: 'Drawer',
54
55
  inheritAttrs: false,
55
- props: drawerProps,
56
+ props: exports.drawerProps,
56
57
  setup(props) {
57
58
  if (process.env.NODE_ENV !== 'production') {
58
59
  (0, vue_1.watchEffect)(() => {
@@ -76,20 +77,38 @@ exports.default = (0, vue_1.defineComponent)({
76
77
  const { mergedClsPrefixRef, namespaceRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
77
78
  const isMountedRef = (0, vooks_1.useIsMounted)();
78
79
  const themeRef = (0, _mixins_1.useTheme)('Drawer', '-drawer', index_cssr_1.default, styles_1.drawerLight, props, mergedClsPrefixRef);
80
+ const uncontrolledWidthRef = (0, vue_1.ref)(props.defaultWidth);
81
+ const uncontrolledHeightRef = (0, vue_1.ref)(props.defaultHeight);
82
+ const mergedWidthRef = (0, vooks_1.useMergedState)((0, vue_1.toRef)(props, 'width'), uncontrolledWidthRef);
83
+ const mergedHeightRef = (0, vooks_1.useMergedState)((0, vue_1.toRef)(props, 'height'), uncontrolledHeightRef);
79
84
  const styleWidthRef = (0, vue_1.computed)(() => {
80
85
  const { placement } = props;
81
86
  if (placement === 'top' || placement === 'bottom')
82
87
  return '';
83
- const { width } = props;
84
- return (0, _utils_1.formatLength)(width);
88
+ return (0, _utils_1.formatLength)(mergedWidthRef.value);
85
89
  });
86
90
  const styleHeightRef = (0, vue_1.computed)(() => {
87
91
  const { placement } = props;
88
92
  if (placement === 'left' || placement === 'right')
89
93
  return '';
90
- const { height } = props;
91
- return (0, _utils_1.formatLength)(height);
94
+ return (0, _utils_1.formatLength)(mergedHeightRef.value);
92
95
  });
96
+ const doUpdateWidth = (value) => {
97
+ const { onUpdateWidth, 'onUpdate:width': _onUpdateWidth } = props;
98
+ if (onUpdateWidth)
99
+ (0, _utils_1.call)(onUpdateWidth, value);
100
+ if (_onUpdateWidth)
101
+ (0, _utils_1.call)(_onUpdateWidth, value);
102
+ uncontrolledWidthRef.value = value;
103
+ };
104
+ const doUpdateHeight = (value) => {
105
+ const { onUpdateHeight, 'onUpdate:width': _onUpdateHeight } = props;
106
+ if (onUpdateHeight)
107
+ (0, _utils_1.call)(onUpdateHeight, value);
108
+ if (_onUpdateHeight)
109
+ (0, _utils_1.call)(_onUpdateHeight, value);
110
+ uncontrolledHeightRef.value = value;
111
+ };
93
112
  const mergedBodyStyleRef = (0, vue_1.computed)(() => {
94
113
  return [
95
114
  {
@@ -129,10 +148,12 @@ exports.default = (0, vue_1.defineComponent)({
129
148
  isMountedRef: isMountedRef,
130
149
  mergedThemeRef: themeRef,
131
150
  mergedClsPrefixRef,
132
- doUpdateShow
151
+ doUpdateShow,
152
+ doUpdateHeight,
153
+ doUpdateWidth
133
154
  });
134
155
  const cssVarsRef = (0, vue_1.computed)(() => {
135
- const { common: { cubicBezierEaseInOut, cubicBezierEaseIn, cubicBezierEaseOut }, self: { color, textColor, boxShadow, lineHeight, headerPadding, footerPadding, bodyPadding, titleFontSize, titleTextColor, titleFontWeight, headerBorderBottom, footerBorderTop, closeIconColor, closeIconColorHover, closeIconColorPressed, closeColorHover, closeColorPressed, closeIconSize, closeSize, closeBorderRadius } } = themeRef.value;
156
+ const { common: { cubicBezierEaseInOut, cubicBezierEaseIn, cubicBezierEaseOut }, self: { color, textColor, boxShadow, lineHeight, headerPadding, footerPadding, bodyPadding, titleFontSize, titleTextColor, titleFontWeight, headerBorderBottom, footerBorderTop, closeIconColor, closeIconColorHover, closeIconColorPressed, closeColorHover, closeColorPressed, closeIconSize, closeSize, closeBorderRadius, resizableTriggerColorHover } } = themeRef.value;
136
157
  return {
137
158
  '--n-line-height': lineHeight,
138
159
  '--n-color': color,
@@ -156,7 +177,8 @@ exports.default = (0, vue_1.defineComponent)({
156
177
  '--n-close-color-hover': closeColorHover,
157
178
  '--n-close-color-pressed': closeColorPressed,
158
179
  '--n-close-icon-size': closeIconSize,
159
- '--n-close-border-radius': closeBorderRadius
180
+ '--n-close-border-radius': closeBorderRadius,
181
+ '--n-resize-trigger-color-hover': resizableTriggerColorHover
160
182
  };
161
183
  });
162
184
  const themeClassHandle = inlineThemeDisabled
@@ -193,7 +215,7 @@ exports.default = (0, vue_1.defineComponent)({
193
215
  `${mergedClsPrefix}-drawer-mask--invisible`
194
216
  ], onClick: this.handleMaskClick })) : null
195
217
  })) : null,
196
- (0, vue_1.h)(DrawerBodyWrapper_1.default, Object.assign({}, this.$attrs, { class: [this.drawerClass, this.$attrs.class], style: [this.mergedBodyStyle, this.$attrs.style], blockScroll: this.blockScroll, contentStyle: this.contentStyle, placement: this.placement, scrollbarProps: this.scrollbarProps, show: this.show, displayDirective: this.displayDirective, nativeScrollbar: this.nativeScrollbar, onAfterEnter: this.onAfterEnter, onAfterLeave: this.onAfterLeave, trapFocus: this.trapFocus, autoFocus: this.autoFocus, showMask: this.showMask, onEsc: this.handleEsc, onClickoutside: this.handleMaskClick }), this.$slots)), [[vdirs_1.zindexable, { zIndex: this.zIndex, enabled: this.show }]]);
218
+ (0, vue_1.h)(DrawerBodyWrapper_1.default, Object.assign({}, this.$attrs, { class: [this.drawerClass, this.$attrs.class], style: [this.mergedBodyStyle, this.$attrs.style], blockScroll: this.blockScroll, contentStyle: this.contentStyle, placement: this.placement, scrollbarProps: this.scrollbarProps, show: this.show, displayDirective: this.displayDirective, nativeScrollbar: this.nativeScrollbar, onAfterEnter: this.onAfterEnter, onAfterLeave: this.onAfterLeave, trapFocus: this.trapFocus, autoFocus: this.autoFocus, resizable: this.resizable, showMask: this.showMask, onEsc: this.handleEsc, onClickoutside: this.handleMaskClick }), this.$slots)), [[vdirs_1.zindexable, { zIndex: this.zIndex, enabled: this.show }]]);
197
219
  }
198
220
  }));
199
221
  }
@@ -33,6 +33,7 @@ declare const _default: import("vue").DefineComponent<{
33
33
  type: PropType<boolean | "transparent">;
34
34
  required: true;
35
35
  };
36
+ resizable: BooleanConstructor;
36
37
  onClickoutside: PropType<(e: MouseEvent) => void>;
37
38
  onAfterLeave: PropType<() => void>;
38
39
  onAfterEnter: PropType<() => void>;
@@ -168,6 +169,7 @@ declare const _default: import("vue").DefineComponent<{
168
169
  closeColorHover: string;
169
170
  closeColorPressed: string;
170
171
  closeBorderRadius: string;
172
+ resizableTriggerColorHover: string;
171
173
  };
172
174
  peers: {
173
175
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
@@ -187,6 +189,11 @@ declare const _default: import("vue").DefineComponent<{
187
189
  transitionName: import("vue").ComputedRef<string>;
188
190
  handleAfterLeave: () => void;
189
191
  bodyDirectives: import("vue").ComputedRef<DirectiveArguments>;
192
+ handleMousedownResizeTrigger: (e: MouseEvent) => void;
193
+ handleMouseenterResizeTrigger: () => void;
194
+ handleMouseleaveResizeTrigger: () => void;
195
+ isDragging: import("vue").Ref<boolean>;
196
+ isHoverOnResizeTrigger: import("vue").Ref<boolean>;
190
197
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
191
198
  blockScroll: BooleanConstructor;
192
199
  show: {
@@ -219,6 +226,7 @@ declare const _default: import("vue").DefineComponent<{
219
226
  type: PropType<boolean | "transparent">;
220
227
  required: true;
221
228
  };
229
+ resizable: BooleanConstructor;
222
230
  onClickoutside: PropType<(e: MouseEvent) => void>;
223
231
  onAfterLeave: PropType<() => void>;
224
232
  onAfterEnter: PropType<() => void>;
@@ -226,6 +234,7 @@ declare const _default: import("vue").DefineComponent<{
226
234
  }>>, {
227
235
  show: boolean | undefined;
228
236
  autoFocus: boolean;
237
+ resizable: boolean;
229
238
  trapFocus: boolean;
230
239
  blockScroll: boolean;
231
240
  }>;
@@ -40,9 +40,10 @@ exports.default = (0, vue_1.defineComponent)({
40
40
  default: true
41
41
  },
42
42
  showMask: {
43
- type: Boolean,
43
+ type: [Boolean, String],
44
44
  required: true
45
45
  },
46
+ resizable: Boolean,
46
47
  onClickoutside: Function,
47
48
  onAfterLeave: Function,
48
49
  onAfterEnter: Function,
@@ -53,10 +54,87 @@ exports.default = (0, vue_1.defineComponent)({
53
54
  const bodyRef = (0, vue_1.ref)(null); // used for detached content
54
55
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
55
56
  const NDrawer = (0, vue_1.inject)(interface_3.drawerInjectionKey);
57
+ let startPosition = 0;
58
+ let memoizedBodyStyleCursor = '';
59
+ let hoverTimerId = null;
60
+ const isHoverOnResizeTriggerRef = (0, vue_1.ref)(false);
61
+ const isDraggingRef = (0, vue_1.ref)(false);
62
+ const isVertical = (0, vue_1.computed)(() => {
63
+ return props.placement === 'top' || props.placement === 'bottom';
64
+ });
65
+ const handleMousedownResizeTrigger = (e) => {
66
+ isDraggingRef.value = true;
67
+ startPosition = isVertical.value ? e.clientY : e.clientX;
68
+ memoizedBodyStyleCursor = document.body.style.cursor;
69
+ document.body.style.cursor = isVertical.value ? 'ns-resize' : 'ew-resize';
70
+ document.body.addEventListener('mousemove', handleBodyMousemove);
71
+ document.body.addEventListener('mouseleave', handleBodyMouseleave);
72
+ document.body.addEventListener('mouseup', handleBodyMouseup);
73
+ };
74
+ const handleMouseenterResizeTrigger = () => {
75
+ if (hoverTimerId !== null) {
76
+ window.clearTimeout(hoverTimerId);
77
+ hoverTimerId = null;
78
+ }
79
+ if (isDraggingRef.value) {
80
+ isHoverOnResizeTriggerRef.value = true;
81
+ }
82
+ else {
83
+ hoverTimerId = window.setTimeout(() => {
84
+ isHoverOnResizeTriggerRef.value = true;
85
+ }, 300);
86
+ }
87
+ };
88
+ const handleMouseleaveResizeTrigger = () => {
89
+ if (hoverTimerId !== null) {
90
+ window.clearTimeout(hoverTimerId);
91
+ hoverTimerId = null;
92
+ }
93
+ isHoverOnResizeTriggerRef.value = false;
94
+ };
95
+ const { doUpdateHeight, doUpdateWidth } = NDrawer;
96
+ const handleBodyMousemove = (e) => {
97
+ var _a, _b;
98
+ if (isDraggingRef.value) {
99
+ if (isVertical.value) {
100
+ let height = ((_a = bodyRef.value) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
101
+ const increment = startPosition - e.clientY;
102
+ height += props.placement === 'bottom' ? increment : -increment;
103
+ doUpdateHeight(height);
104
+ startPosition = e.clientY;
105
+ }
106
+ else {
107
+ let width = ((_b = bodyRef.value) === null || _b === void 0 ? void 0 : _b.offsetWidth) || 0;
108
+ const increment = startPosition - e.clientX;
109
+ width += props.placement === 'right' ? increment : -increment;
110
+ doUpdateWidth(width);
111
+ startPosition = e.clientX;
112
+ }
113
+ }
114
+ };
115
+ const handleBodyMouseup = () => {
116
+ if (isDraggingRef.value) {
117
+ startPosition = 0;
118
+ isDraggingRef.value = false;
119
+ document.body.style.cursor = memoizedBodyStyleCursor;
120
+ document.body.removeEventListener('mousemove', handleBodyMousemove);
121
+ document.body.removeEventListener('mouseup', handleBodyMouseup);
122
+ document.body.removeEventListener('mouseleave', handleBodyMouseleave);
123
+ }
124
+ };
125
+ const handleBodyMouseleave = handleBodyMouseup;
56
126
  (0, vue_1.watchEffect)(() => {
57
127
  if (props.show)
58
128
  displayedRef.value = true;
59
129
  });
130
+ (0, vue_1.watch)(() => props.show, (value) => {
131
+ if (!value) {
132
+ handleBodyMouseup();
133
+ }
134
+ });
135
+ (0, vue_1.onBeforeUnmount)(() => {
136
+ handleBodyMouseup();
137
+ });
60
138
  const bodyDirectivesRef = (0, vue_1.computed)(() => {
61
139
  const { show } = props;
62
140
  const directives = [[vue_1.vShow, show]];
@@ -94,7 +172,12 @@ exports.default = (0, vue_1.defineComponent)({
94
172
  }[props.placement];
95
173
  }),
96
174
  handleAfterLeave,
97
- bodyDirectives: bodyDirectivesRef
175
+ bodyDirectives: bodyDirectivesRef,
176
+ handleMousedownResizeTrigger,
177
+ handleMouseenterResizeTrigger,
178
+ handleMouseleaveResizeTrigger,
179
+ isDragging: isDraggingRef,
180
+ isHoverOnResizeTrigger: isHoverOnResizeTriggerRef
98
181
  };
99
182
  },
100
183
  render() {
@@ -113,10 +196,22 @@ exports.default = (0, vue_1.defineComponent)({
113
196
  class: [
114
197
  `${mergedClsPrefix}-drawer`,
115
198
  `${mergedClsPrefix}-drawer--${this.placement}-placement`,
199
+ /**
200
+ * When the mouse is pressed to resize the drawer,
201
+ * disable text selection
202
+ */
203
+ this.isDragging &&
204
+ `${mergedClsPrefix}-drawer--unselectable`,
116
205
  this.nativeScrollbar &&
117
206
  `${mergedClsPrefix}-drawer--native-scrollbar`
118
207
  ]
119
208
  }), [
209
+ this.resizable ? ((0, vue_1.h)("div", { class: [
210
+ `${mergedClsPrefix}-drawer__resize-trigger`,
211
+ (this.isDragging ||
212
+ this.isHoverOnResizeTrigger) &&
213
+ `${mergedClsPrefix}-drawer__resize-trigger--hover`
214
+ ], onMouseenter: this.handleMouseenterResizeTrigger, onMouseleave: this.handleMouseleaveResizeTrigger, onMousedown: this.handleMousedownResizeTrigger })) : null,
120
215
  this.nativeScrollbar ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-drawer-content-wrapper`, style: this.contentStyle, role: "none" }, $slots)) : ((0, vue_1.h)(_internal_1.NScrollbar, Object.assign({}, this.scrollbarProps, { contentStyle: this.contentStyle, contentClass: `${mergedClsPrefix}-drawer-content-wrapper`, theme: this.mergedTheme.peers.Scrollbar, themeOverrides: this.mergedTheme.peerOverrides.Scrollbar }), $slots))
121
216
  ]), this.bodyDirectives)
122
217
  }))
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties, PropType } from 'vue';
2
2
  import type { ScrollbarProps } from '../../_internal';
3
3
  import type { ExtractPublicPropTypes } from '../../_utils';
4
- declare const drawerContentProps: {
4
+ export declare const drawerContentProps: {
5
5
  title: {
6
6
  type: StringConstructor;
7
7
  };
@@ -160,6 +160,7 @@ declare const _default: import("vue").DefineComponent<{
160
160
  closeColorHover: string;
161
161
  closeColorPressed: string;
162
162
  closeBorderRadius: string;
163
+ resizableTriggerColorHover: string;
163
164
  };
164
165
  peers: {
165
166
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.drawerContentProps = void 0;
3
4
  const vue_1 = require("vue");
4
5
  const _internal_1 = require("../../_internal");
5
6
  const _utils_1 = require("../../_utils");
6
7
  const interface_1 = require("./interface");
7
- const drawerContentProps = {
8
+ exports.drawerContentProps = {
8
9
  title: {
9
10
  type: String
10
11
  },
@@ -18,7 +19,7 @@ const drawerContentProps = {
18
19
  };
19
20
  exports.default = (0, vue_1.defineComponent)({
20
21
  name: 'DrawerContent',
21
- props: drawerContentProps,
22
+ props: exports.drawerContentProps,
22
23
  setup() {
23
24
  const NDrawer = (0, vue_1.inject)(interface_1.drawerInjectionKey, null);
24
25
  if (!NDrawer) {
@@ -8,5 +8,7 @@ export interface DrawerInjection {
8
8
  mergedThemeRef: Ref<MergedTheme<DrawerTheme>>;
9
9
  mergedClsPrefixRef: Ref<string>;
10
10
  doUpdateShow: (show: boolean) => void;
11
+ doUpdateWidth: (value: number) => void;
12
+ doUpdateHeight: (value: number) => void;
11
13
  }
12
14
  export declare const drawerInjectionKey: import("vue").InjectionKey<DrawerInjection>;