naive-ui 2.32.0 → 2.32.2

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 (432) hide show
  1. package/README.zh-CN.md +1 -1
  2. package/dist/index.js +46388 -42920
  3. package/dist/index.prod.js +2 -2
  4. package/es/_internal/scrollbar/src/Scrollbar.js +2 -1
  5. package/es/_internal/select-menu/styles/light.js +1 -1
  6. package/es/_internal/selection/src/Selection.js +1 -1
  7. package/es/_utils/cssr/index.js +4 -4
  8. package/es/alert/src/Alert.d.ts +14 -0
  9. package/es/alert/src/Alert.js +11 -2
  10. package/es/alert/src/styles/index.cssr.js +11 -2
  11. package/es/alert/styles/dark.js +5 -1
  12. package/es/anchor/styles/light.js +2 -1
  13. package/es/auto-complete/src/AutoComplete.d.ts +14 -1
  14. package/es/auto-complete/src/AutoComplete.js +22 -16
  15. package/es/auto-complete/styles/light.d.ts +1 -0
  16. package/es/breadcrumb/styles/light.js +1 -1
  17. package/es/button/styles/light.js +5 -1
  18. package/es/card/styles/light.js +1 -1
  19. package/es/carousel/src/Carousel.js +7 -5
  20. package/es/cascader/src/Cascader.d.ts +13 -0
  21. package/es/cascader/src/Cascader.js +12 -4
  22. package/es/checkbox/src/CheckboxGroup.js +2 -2
  23. package/es/checkbox/styles/light.js +1 -1
  24. package/es/collapse/src/Collapse.d.ts +22 -0
  25. package/es/collapse/src/Collapse.js +4 -2
  26. package/es/collapse/src/CollapseItem.d.ts +6 -1
  27. package/es/collapse/src/CollapseItem.js +4 -2
  28. package/es/collapse/src/styles/index.cssr.js +10 -21
  29. package/es/collapse/styles/light.d.ts +2 -0
  30. package/es/collapse/styles/light.js +5 -3
  31. package/es/color-picker/src/ColorInputUnit.d.ts +1 -0
  32. package/es/color-picker/src/ColorPicker.d.ts +9 -0
  33. package/es/color-picker/src/ColorPicker.js +3 -2
  34. package/es/color-picker/styles/light.d.ts +1 -0
  35. package/es/countdown/src/Countdown.js +1 -1
  36. package/es/data-table/src/DataTable.d.ts +18 -0
  37. package/es/data-table/src/DataTable.js +6 -3
  38. package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
  39. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +4 -2
  40. package/es/data-table/src/TableParts/Body.d.ts +6 -0
  41. package/es/data-table/src/TableParts/Body.js +22 -14
  42. package/es/data-table/src/TableParts/Cell.d.ts +4 -0
  43. package/es/data-table/src/TableParts/ExpandTrigger.d.ts +7 -1
  44. package/es/data-table/src/TableParts/ExpandTrigger.js +15 -9
  45. package/es/data-table/src/TableParts/Header.d.ts +3 -1
  46. package/es/data-table/src/interface.d.ts +6 -3
  47. package/es/data-table/src/styles/index.cssr.js +25 -7
  48. package/es/data-table/src/use-expand.d.ts +3 -1
  49. package/es/data-table/src/use-expand.js +15 -8
  50. package/es/data-table/src/use-group-header.js +1 -1
  51. package/es/data-table/src/use-sorter.js +1 -1
  52. package/es/data-table/src/use-table-data.js +1 -1
  53. package/es/data-table/styles/light.d.ts +1 -0
  54. package/es/date-picker/src/DatePicker.d.ts +23 -2
  55. package/es/date-picker/src/DatePicker.js +4 -4
  56. package/es/date-picker/src/panel/date.d.ts +6 -3
  57. package/es/date-picker/src/panel/daterange.d.ts +3 -0
  58. package/es/date-picker/src/panel/datetime.d.ts +3 -0
  59. package/es/date-picker/src/panel/datetimerange.d.ts +3 -0
  60. package/es/date-picker/src/panel/month.d.ts +3 -0
  61. package/es/date-picker/src/panel/monthrange.d.ts +3 -0
  62. package/es/date-picker/src/panel/panelHeader.d.ts +6 -0
  63. package/es/date-picker/src/panel/panelHeader.js +3 -1
  64. package/es/date-picker/src/panel/use-calendar.d.ts +3 -0
  65. package/es/date-picker/src/panel/use-dual-calendar.d.ts +3 -0
  66. package/es/date-picker/src/panel/use-panel-common.d.ts +3 -0
  67. package/es/date-picker/src/styles/index.cssr.js +6 -6
  68. package/es/date-picker/styles/light.d.ts +2 -0
  69. package/es/descriptions/styles/light.js +1 -1
  70. package/es/drawer/src/Drawer.d.ts +8 -8
  71. package/es/drawer/src/Drawer.js +3 -3
  72. package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -0
  73. package/es/drawer/src/DrawerBodyWrapper.js +6 -0
  74. package/es/drawer/src/styles/rtl.cssr.d.ts +2 -0
  75. package/es/drawer/src/styles/rtl.cssr.js +8 -0
  76. package/es/drawer/styles/index.d.ts +1 -0
  77. package/es/drawer/styles/index.js +1 -0
  78. package/es/drawer/styles/rtl.d.ts +3 -0
  79. package/es/drawer/styles/rtl.js +8 -0
  80. package/es/dropdown/src/Dropdown.js +6 -6
  81. package/es/dropdown/src/styles/index.cssr.js +35 -33
  82. package/es/dynamic-input/src/DynamicInput.d.ts +10 -0
  83. package/es/dynamic-input/src/InputPreset.d.ts +1 -0
  84. package/es/dynamic-input/src/PairPreset.d.ts +1 -0
  85. package/es/dynamic-input/styles/light.d.ts +1 -0
  86. package/es/dynamic-tags/src/DynamicTags.d.ts +10 -0
  87. package/es/dynamic-tags/styles/light.d.ts +1 -0
  88. package/es/empty/styles/light.js +1 -1
  89. package/es/grid/src/Grid.d.ts +5 -0
  90. package/es/grid/src/Grid.js +18 -0
  91. package/es/grid/src/GridItem.d.ts +2 -0
  92. package/es/grid/src/GridItem.js +15 -2
  93. package/es/input/src/Input.d.ts +21 -1
  94. package/es/input/src/Input.js +23 -6
  95. package/es/input/src/InputGroupLabel.d.ts +9 -0
  96. package/es/input/src/styles/input.cssr.d.ts +1 -0
  97. package/es/input/src/styles/input.cssr.js +12 -4
  98. package/es/input/styles/dark.js +1 -1
  99. package/es/input/styles/light.d.ts +1 -0
  100. package/es/input/styles/light.js +1 -1
  101. package/es/input-number/src/InputNumber.d.ts +15 -5
  102. package/es/input-number/src/InputNumber.js +6 -8
  103. package/es/input-number/src/interface.d.ts +1 -0
  104. package/es/input-number/styles/light.d.ts +1 -0
  105. package/es/layout/src/Layout.js +3 -1
  106. package/es/legacy-grid/src/Row.js +2 -2
  107. package/es/legacy-transfer/src/Transfer.d.ts +10 -0
  108. package/es/legacy-transfer/src/TransferFilter.d.ts +1 -0
  109. package/es/legacy-transfer/src/TransferList.d.ts +1 -0
  110. package/es/legacy-transfer/src/TransferListItem.d.ts +1 -0
  111. package/es/legacy-transfer/styles/light.d.ts +1 -0
  112. package/es/list/src/List.d.ts +47 -3
  113. package/es/list/src/List.js +17 -7
  114. package/es/list/src/ListItem.d.ts +1 -0
  115. package/es/list/src/ListItem.js +3 -1
  116. package/es/list/src/styles/index.cssr.js +35 -12
  117. package/es/list/src/styles/rtl.cssr.d.ts +2 -0
  118. package/es/list/src/styles/rtl.cssr.js +11 -0
  119. package/es/list/styles/index.d.ts +1 -0
  120. package/es/list/styles/index.js +1 -0
  121. package/es/list/styles/light.d.ts +3 -0
  122. package/es/list/styles/light.js +4 -1
  123. package/es/list/styles/rtl.d.ts +2 -0
  124. package/es/list/styles/rtl.js +5 -0
  125. package/es/locales/common/viVN.js +7 -9
  126. package/es/mention/src/Mention.d.ts +10 -0
  127. package/es/mention/styles/light.d.ts +1 -0
  128. package/es/menu/src/Menu.d.ts +13 -0
  129. package/es/menu/src/Menu.js +4 -1
  130. package/es/menu/src/Submenu.js +1 -1
  131. package/es/menu/src/utils.d.ts +1 -1
  132. package/es/menu/src/utils.js +5 -1
  133. package/es/message/src/Message.d.ts +1 -0
  134. package/es/message/src/Message.js +8 -3
  135. package/es/message/src/styles/rtl.cssr.d.ts +2 -0
  136. package/es/message/src/styles/rtl.cssr.js +8 -0
  137. package/es/message/styles/index.d.ts +1 -0
  138. package/es/message/styles/index.js +1 -0
  139. package/es/message/styles/light.js +4 -1
  140. package/es/message/styles/rtl.d.ts +2 -0
  141. package/es/message/styles/rtl.js +5 -0
  142. package/es/modal/src/Modal.js +2 -1
  143. package/es/notification/styles/light.js +3 -1
  144. package/es/number-animation/src/NumberAnimation.js +1 -1
  145. package/es/pagination/src/Pagination.d.ts +31 -26
  146. package/es/pagination/src/Pagination.js +207 -164
  147. package/es/pagination/src/styles/index.cssr.js +7 -1
  148. package/es/pagination/styles/light.d.ts +1 -0
  149. package/es/popover/src/Popover.js +2 -2
  150. package/es/popover/src/PopoverBody.js +3 -2
  151. package/es/popselect/src/Popselect.d.ts +3 -3
  152. package/es/radio/styles/dark.js +1 -1
  153. package/es/radio/styles/light.js +1 -1
  154. package/es/select/index.d.ts +1 -1
  155. package/es/select/src/Select.d.ts +4 -1
  156. package/es/select/src/Select.js +4 -4
  157. package/es/skeleton/src/Skeleton.js +1 -1
  158. package/es/slider/styles/dark.js +2 -1
  159. package/es/slider/styles/light.js +2 -1
  160. package/es/statistic/src/Statistic.d.ts +10 -0
  161. package/es/statistic/src/Statistic.js +2 -1
  162. package/es/statistic/src/styles/index.cssr.js +4 -3
  163. package/es/statistic/styles/light.d.ts +1 -0
  164. package/es/statistic/styles/light.js +1 -0
  165. package/es/steps/src/Steps.d.ts +1 -0
  166. package/es/steps/src/Steps.js +6 -3
  167. package/es/steps/src/styles/rtl.cssr.d.ts +2 -0
  168. package/es/steps/src/styles/rtl.cssr.js +14 -0
  169. package/es/steps/styles/index.d.ts +1 -0
  170. package/es/steps/styles/index.js +1 -0
  171. package/es/steps/styles/rtl.d.ts +2 -0
  172. package/es/steps/styles/rtl.js +5 -0
  173. package/es/styles.d.ts +4 -3
  174. package/es/styles.js +4 -3
  175. package/es/switch/src/Switch.js +32 -5
  176. package/es/switch/src/styles/index.cssr.js +2 -2
  177. package/es/tag/src/Tag.d.ts +4 -4
  178. package/es/tag/src/Tag.js +3 -3
  179. package/es/tag/src/styles/index.cssr.js +0 -1
  180. package/es/tag/styles/light.js +4 -1
  181. package/es/thing/src/Thing.d.ts +19 -21
  182. package/es/thing/src/Thing.js +4 -7
  183. package/es/time-picker/src/Panel.d.ts +1 -0
  184. package/es/time-picker/src/TimePicker.d.ts +12 -2
  185. package/es/time-picker/src/TimePicker.js +4 -4
  186. package/es/time-picker/src/styles/index.cssr.js +12 -12
  187. package/es/time-picker/styles/light.d.ts +1 -0
  188. package/es/timeline/src/TimelineItem.js +1 -1
  189. package/es/tooltip/styles/dark.js +1 -1
  190. package/es/tooltip/styles/light.js +1 -1
  191. package/es/transfer/src/Transfer.d.ts +37 -6
  192. package/es/transfer/src/Transfer.js +32 -23
  193. package/es/transfer/src/TransferFilter.d.ts +1 -0
  194. package/es/transfer/src/TransferList.d.ts +1 -0
  195. package/es/transfer/src/TransferList.js +1 -1
  196. package/es/transfer/src/TransferListItem.d.ts +1 -0
  197. package/es/transfer/src/interface.d.ts +1 -1
  198. package/es/transfer/src/use-transfer-data.d.ts +11 -4
  199. package/es/transfer/src/use-transfer-data.js +59 -16
  200. package/es/transfer/styles/light.d.ts +1 -0
  201. package/es/tree/index.d.ts +1 -1
  202. package/es/tree/src/Tree.d.ts +34 -1
  203. package/es/tree/src/Tree.js +25 -11
  204. package/es/tree/src/interface.d.ts +5 -0
  205. package/es/tree/src/keyboard.d.ts +4 -1
  206. package/es/tree/src/keyboard.js +3 -1
  207. package/es/tree-select/src/TreeSelect.d.ts +13 -0
  208. package/es/tree-select/src/TreeSelect.js +4 -4
  209. package/es/typography/styles/light.js +1 -1
  210. package/es/upload/src/Upload.d.ts +10 -0
  211. package/es/upload/src/Upload.js +1 -1
  212. package/es/upload/src/UploadFile.js +4 -2
  213. package/es/upload/src/utils.d.ts +1 -0
  214. package/es/upload/src/utils.js +12 -0
  215. package/es/version.d.ts +1 -1
  216. package/es/version.js +1 -1
  217. package/lib/_internal/scrollbar/src/Scrollbar.js +2 -1
  218. package/lib/_internal/select-menu/styles/light.js +1 -1
  219. package/lib/_internal/selection/src/Selection.js +1 -1
  220. package/lib/_utils/cssr/index.js +2 -2
  221. package/lib/alert/src/Alert.d.ts +14 -0
  222. package/lib/alert/src/Alert.js +11 -2
  223. package/lib/alert/src/styles/index.cssr.js +11 -2
  224. package/lib/alert/styles/dark.js +5 -1
  225. package/lib/anchor/styles/light.js +2 -1
  226. package/lib/auto-complete/src/AutoComplete.d.ts +14 -1
  227. package/lib/auto-complete/src/AutoComplete.js +22 -16
  228. package/lib/auto-complete/styles/light.d.ts +1 -0
  229. package/lib/breadcrumb/styles/light.js +1 -1
  230. package/lib/button/styles/light.js +5 -1
  231. package/lib/card/styles/light.js +1 -1
  232. package/lib/carousel/src/Carousel.js +7 -5
  233. package/lib/cascader/src/Cascader.d.ts +13 -0
  234. package/lib/cascader/src/Cascader.js +11 -3
  235. package/lib/checkbox/src/CheckboxGroup.js +2 -2
  236. package/lib/checkbox/styles/light.js +1 -1
  237. package/lib/collapse/src/Collapse.d.ts +22 -0
  238. package/lib/collapse/src/Collapse.js +4 -2
  239. package/lib/collapse/src/CollapseItem.d.ts +6 -1
  240. package/lib/collapse/src/CollapseItem.js +4 -2
  241. package/lib/collapse/src/styles/index.cssr.js +10 -21
  242. package/lib/collapse/styles/light.d.ts +2 -0
  243. package/lib/collapse/styles/light.js +5 -3
  244. package/lib/color-picker/src/ColorInputUnit.d.ts +1 -0
  245. package/lib/color-picker/src/ColorPicker.d.ts +9 -0
  246. package/lib/color-picker/src/ColorPicker.js +2 -1
  247. package/lib/color-picker/styles/light.d.ts +1 -0
  248. package/lib/countdown/src/Countdown.js +1 -1
  249. package/lib/data-table/src/DataTable.d.ts +18 -0
  250. package/lib/data-table/src/DataTable.js +6 -3
  251. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
  252. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +4 -2
  253. package/lib/data-table/src/TableParts/Body.d.ts +6 -0
  254. package/lib/data-table/src/TableParts/Body.js +22 -14
  255. package/lib/data-table/src/TableParts/Cell.d.ts +4 -0
  256. package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +7 -1
  257. package/lib/data-table/src/TableParts/ExpandTrigger.js +15 -9
  258. package/lib/data-table/src/TableParts/Header.d.ts +3 -1
  259. package/lib/data-table/src/interface.d.ts +6 -3
  260. package/lib/data-table/src/styles/index.cssr.js +25 -7
  261. package/lib/data-table/src/use-expand.d.ts +3 -1
  262. package/lib/data-table/src/use-expand.js +15 -8
  263. package/lib/data-table/src/use-group-header.js +1 -1
  264. package/lib/data-table/src/use-sorter.js +1 -1
  265. package/lib/data-table/src/use-table-data.js +1 -1
  266. package/lib/data-table/styles/light.d.ts +1 -0
  267. package/lib/date-picker/src/DatePicker.d.ts +23 -2
  268. package/lib/date-picker/src/DatePicker.js +3 -3
  269. package/lib/date-picker/src/panel/date.d.ts +6 -3
  270. package/lib/date-picker/src/panel/daterange.d.ts +3 -0
  271. package/lib/date-picker/src/panel/datetime.d.ts +3 -0
  272. package/lib/date-picker/src/panel/datetimerange.d.ts +3 -0
  273. package/lib/date-picker/src/panel/month.d.ts +3 -0
  274. package/lib/date-picker/src/panel/monthrange.d.ts +3 -0
  275. package/lib/date-picker/src/panel/panelHeader.d.ts +6 -0
  276. package/lib/date-picker/src/panel/panelHeader.js +3 -1
  277. package/lib/date-picker/src/panel/use-calendar.d.ts +3 -0
  278. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +3 -0
  279. package/lib/date-picker/src/panel/use-panel-common.d.ts +3 -0
  280. package/lib/date-picker/src/styles/index.cssr.js +6 -6
  281. package/lib/date-picker/styles/light.d.ts +2 -0
  282. package/lib/descriptions/styles/light.js +1 -1
  283. package/lib/drawer/src/Drawer.d.ts +8 -8
  284. package/lib/drawer/src/Drawer.js +3 -3
  285. package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -0
  286. package/lib/drawer/src/DrawerBodyWrapper.js +6 -0
  287. package/lib/drawer/src/styles/rtl.cssr.d.ts +2 -0
  288. package/lib/drawer/src/styles/rtl.cssr.js +15 -0
  289. package/lib/drawer/styles/index.d.ts +1 -0
  290. package/lib/drawer/styles/index.js +3 -1
  291. package/lib/drawer/styles/rtl.d.ts +3 -0
  292. package/lib/drawer/styles/rtl.js +14 -0
  293. package/lib/dropdown/src/Dropdown.js +6 -6
  294. package/lib/dropdown/src/styles/index.cssr.js +35 -33
  295. package/lib/dynamic-input/src/DynamicInput.d.ts +10 -0
  296. package/lib/dynamic-input/src/InputPreset.d.ts +1 -0
  297. package/lib/dynamic-input/src/PairPreset.d.ts +1 -0
  298. package/lib/dynamic-input/styles/light.d.ts +1 -0
  299. package/lib/dynamic-tags/src/DynamicTags.d.ts +10 -0
  300. package/lib/dynamic-tags/styles/light.d.ts +1 -0
  301. package/lib/empty/styles/light.js +1 -1
  302. package/lib/grid/src/Grid.d.ts +5 -0
  303. package/lib/grid/src/Grid.js +18 -0
  304. package/lib/grid/src/GridItem.d.ts +2 -0
  305. package/lib/grid/src/GridItem.js +14 -1
  306. package/lib/input/src/Input.d.ts +21 -1
  307. package/lib/input/src/Input.js +45 -5
  308. package/lib/input/src/InputGroupLabel.d.ts +9 -0
  309. package/lib/input/src/styles/input.cssr.d.ts +1 -0
  310. package/lib/input/src/styles/input.cssr.js +13 -4
  311. package/lib/input/styles/dark.js +1 -1
  312. package/lib/input/styles/light.d.ts +1 -0
  313. package/lib/input/styles/light.js +1 -1
  314. package/lib/input-number/src/InputNumber.d.ts +15 -5
  315. package/lib/input-number/src/InputNumber.js +6 -8
  316. package/lib/input-number/src/interface.d.ts +1 -0
  317. package/lib/input-number/styles/light.d.ts +1 -0
  318. package/lib/layout/src/Layout.js +3 -1
  319. package/lib/legacy-grid/src/Row.js +2 -2
  320. package/lib/legacy-transfer/src/Transfer.d.ts +10 -0
  321. package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -0
  322. package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
  323. package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -0
  324. package/lib/legacy-transfer/styles/light.d.ts +1 -0
  325. package/lib/list/src/List.d.ts +47 -3
  326. package/lib/list/src/List.js +15 -5
  327. package/lib/list/src/ListItem.d.ts +1 -0
  328. package/lib/list/src/ListItem.js +3 -1
  329. package/lib/list/src/styles/index.cssr.js +35 -12
  330. package/lib/list/src/styles/rtl.cssr.d.ts +2 -0
  331. package/lib/list/src/styles/rtl.cssr.js +18 -0
  332. package/lib/list/styles/index.d.ts +1 -0
  333. package/lib/list/styles/index.js +3 -1
  334. package/lib/list/styles/light.d.ts +3 -0
  335. package/lib/list/styles/light.js +4 -1
  336. package/lib/list/styles/rtl.d.ts +2 -0
  337. package/lib/list/styles/rtl.js +11 -0
  338. package/lib/locales/common/viVN.js +7 -9
  339. package/lib/mention/src/Mention.d.ts +10 -0
  340. package/lib/mention/styles/light.d.ts +1 -0
  341. package/lib/menu/src/Menu.d.ts +13 -0
  342. package/lib/menu/src/Menu.js +4 -1
  343. package/lib/menu/src/Submenu.js +1 -1
  344. package/lib/menu/src/utils.d.ts +1 -1
  345. package/lib/menu/src/utils.js +5 -1
  346. package/lib/message/src/Message.d.ts +1 -0
  347. package/lib/message/src/Message.js +7 -2
  348. package/lib/message/src/styles/rtl.cssr.d.ts +2 -0
  349. package/lib/message/src/styles/rtl.cssr.js +15 -0
  350. package/lib/message/styles/index.d.ts +1 -0
  351. package/lib/message/styles/index.js +3 -1
  352. package/lib/message/styles/light.js +4 -1
  353. package/lib/message/styles/rtl.d.ts +2 -0
  354. package/lib/message/styles/rtl.js +11 -0
  355. package/lib/modal/src/Modal.js +2 -1
  356. package/lib/notification/styles/light.js +3 -1
  357. package/lib/number-animation/src/NumberAnimation.js +1 -1
  358. package/lib/pagination/src/Pagination.d.ts +31 -26
  359. package/lib/pagination/src/Pagination.js +206 -163
  360. package/lib/pagination/src/styles/index.cssr.js +7 -1
  361. package/lib/pagination/styles/light.d.ts +1 -0
  362. package/lib/popover/src/Popover.js +2 -2
  363. package/lib/popover/src/PopoverBody.js +3 -2
  364. package/lib/popselect/src/Popselect.d.ts +3 -3
  365. package/lib/radio/styles/dark.js +1 -1
  366. package/lib/radio/styles/light.js +1 -1
  367. package/lib/select/index.d.ts +1 -1
  368. package/lib/select/src/Select.d.ts +4 -1
  369. package/lib/select/src/Select.js +3 -3
  370. package/lib/skeleton/src/Skeleton.js +1 -1
  371. package/lib/slider/styles/dark.js +2 -1
  372. package/lib/slider/styles/light.js +2 -1
  373. package/lib/statistic/src/Statistic.d.ts +10 -0
  374. package/lib/statistic/src/Statistic.js +2 -1
  375. package/lib/statistic/src/styles/index.cssr.js +4 -3
  376. package/lib/statistic/styles/light.d.ts +1 -0
  377. package/lib/statistic/styles/light.js +1 -0
  378. package/lib/steps/src/Steps.d.ts +1 -0
  379. package/lib/steps/src/Steps.js +5 -2
  380. package/lib/steps/src/styles/rtl.cssr.d.ts +2 -0
  381. package/lib/steps/src/styles/rtl.cssr.js +21 -0
  382. package/lib/steps/styles/index.d.ts +1 -0
  383. package/lib/steps/styles/index.js +3 -1
  384. package/lib/steps/styles/rtl.d.ts +2 -0
  385. package/lib/steps/styles/rtl.js +11 -0
  386. package/lib/styles.d.ts +4 -3
  387. package/lib/styles.js +154 -149
  388. package/lib/switch/src/Switch.js +32 -5
  389. package/lib/switch/src/styles/index.cssr.js +2 -2
  390. package/lib/tag/src/Tag.d.ts +4 -4
  391. package/lib/tag/src/Tag.js +3 -3
  392. package/lib/tag/src/styles/index.cssr.js +0 -1
  393. package/lib/tag/styles/light.js +4 -1
  394. package/lib/thing/src/Thing.d.ts +19 -21
  395. package/lib/thing/src/Thing.js +4 -7
  396. package/lib/time-picker/src/Panel.d.ts +1 -0
  397. package/lib/time-picker/src/TimePicker.d.ts +12 -2
  398. package/lib/time-picker/src/TimePicker.js +3 -3
  399. package/lib/time-picker/src/styles/index.cssr.js +12 -12
  400. package/lib/time-picker/styles/light.d.ts +1 -0
  401. package/lib/timeline/src/TimelineItem.js +1 -1
  402. package/lib/tooltip/styles/dark.js +1 -1
  403. package/lib/tooltip/styles/light.js +1 -1
  404. package/lib/transfer/src/Transfer.d.ts +37 -6
  405. package/lib/transfer/src/Transfer.js +32 -23
  406. package/lib/transfer/src/TransferFilter.d.ts +1 -0
  407. package/lib/transfer/src/TransferList.d.ts +1 -0
  408. package/lib/transfer/src/TransferList.js +1 -1
  409. package/lib/transfer/src/TransferListItem.d.ts +1 -0
  410. package/lib/transfer/src/interface.d.ts +1 -1
  411. package/lib/transfer/src/use-transfer-data.d.ts +11 -4
  412. package/lib/transfer/src/use-transfer-data.js +59 -16
  413. package/lib/transfer/styles/light.d.ts +1 -0
  414. package/lib/tree/index.d.ts +1 -1
  415. package/lib/tree/src/Tree.d.ts +34 -1
  416. package/lib/tree/src/Tree.js +25 -11
  417. package/lib/tree/src/interface.d.ts +5 -0
  418. package/lib/tree/src/keyboard.d.ts +4 -1
  419. package/lib/tree/src/keyboard.js +3 -1
  420. package/lib/tree-select/src/TreeSelect.d.ts +13 -0
  421. package/lib/tree-select/src/TreeSelect.js +3 -3
  422. package/lib/typography/styles/light.js +1 -1
  423. package/lib/upload/src/Upload.d.ts +10 -0
  424. package/lib/upload/src/Upload.js +1 -1
  425. package/lib/upload/src/UploadFile.js +3 -1
  426. package/lib/upload/src/utils.d.ts +1 -0
  427. package/lib/upload/src/utils.js +14 -1
  428. package/lib/version.d.ts +1 -1
  429. package/lib/version.js +1 -1
  430. package/package.json +25 -19
  431. package/volar.d.ts +1 -1
  432. package/web-types.json +210 -3
@@ -369,7 +369,7 @@ exports.default = (0, vue_1.defineComponent)({
369
369
  function handleClickOutside(e) {
370
370
  var _a;
371
371
  if (mergedShowRef.value &&
372
- !((_a = triggerElRef.value) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
372
+ !((_a = triggerElRef.value) === null || _a === void 0 ? void 0 : _a.contains((0, seemly_1.getPreciseEventTarget)(e)))) {
373
373
  closeCalendar({
374
374
  returnFocus: false
375
375
  });
@@ -561,8 +561,8 @@ exports.default = (0, vue_1.defineComponent)({
561
561
  const { common: { cubicBezierEaseInOut }, self: { iconColor, iconColorDisabled } } = themeRef.value;
562
562
  return {
563
563
  '--n-bezier': cubicBezierEaseInOut,
564
- '--n-icon-color': iconColor,
565
- '--n-icon-color-disabled': iconColorDisabled
564
+ '--n-icon-color-override': iconColor,
565
+ '--n-icon-color-disabled-override': iconColorDisabled
566
566
  };
567
567
  });
568
568
  const triggerThemeClassHandle = inlineThemeDisabled
@@ -229,6 +229,7 @@ declare const _default: import("vue").DefineComponent<{
229
229
  };
230
230
  peers: {
231
231
  Input: import("../../../_mixins").Theme<"Input", {
232
+ countTextColorDisabled: string;
232
233
  countTextColor: string;
233
234
  heightTiny: string;
234
235
  heightSmall: string;
@@ -415,7 +416,7 @@ declare const _default: import("vue").DefineComponent<{
415
416
  textColorGhostDisabledSuccess: string;
416
417
  borderSuccess: string;
417
418
  borderHoverSuccess: string;
418
- borderPressedSuccess: string;
419
+ borderPressedSuccess: string; /** we don't need a confirm button for date picking */
419
420
  borderFocusSuccess: string;
420
421
  borderDisabledSuccess: string;
421
422
  rippleColorSuccess: string;
@@ -645,7 +646,7 @@ declare const _default: import("vue").DefineComponent<{
645
646
  textColorGhostDisabledSuccess: string;
646
647
  borderSuccess: string;
647
648
  borderHoverSuccess: string;
648
- borderPressedSuccess: string;
649
+ borderPressedSuccess: string; /** we don't need a confirm button for date picking */
649
650
  borderFocusSuccess: string;
650
651
  borderDisabledSuccess: string;
651
652
  rippleColorSuccess: string;
@@ -728,6 +729,7 @@ declare const _default: import("vue").DefineComponent<{
728
729
  rippleDuration: string;
729
730
  }, any>;
730
731
  Input: import("../../../_mixins").Theme<"Input", {
732
+ countTextColorDisabled: string;
731
733
  countTextColor: string;
732
734
  heightTiny: string;
733
735
  heightSmall: string;
@@ -937,7 +939,7 @@ declare const _default: import("vue").DefineComponent<{
937
939
  textColorGhostDisabledSuccess: string;
938
940
  borderSuccess: string;
939
941
  borderHoverSuccess: string;
940
- borderPressedSuccess: string;
942
+ borderPressedSuccess: string; /** we don't need a confirm button for date picking */
941
943
  borderFocusSuccess: string;
942
944
  borderDisabledSuccess: string;
943
945
  rippleColorSuccess: string;
@@ -1020,6 +1022,7 @@ declare const _default: import("vue").DefineComponent<{
1020
1022
  rippleDuration: string;
1021
1023
  }, any>> | undefined;
1022
1024
  Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
1025
+ countTextColorDisabled: string;
1023
1026
  countTextColor: string;
1024
1027
  heightTiny: string;
1025
1028
  heightSmall: string;
@@ -249,6 +249,7 @@ declare const _default: import("vue").DefineComponent<{
249
249
  };
250
250
  peers: {
251
251
  Input: import("../../../_mixins").Theme<"Input", {
252
+ countTextColorDisabled: string;
252
253
  countTextColor: string;
253
254
  heightTiny: string;
254
255
  heightSmall: string;
@@ -738,6 +739,7 @@ declare const _default: import("vue").DefineComponent<{
738
739
  rippleDuration: string;
739
740
  }, any>;
740
741
  Input: import("../../../_mixins").Theme<"Input", {
742
+ countTextColorDisabled: string;
741
743
  countTextColor: string;
742
744
  heightTiny: string;
743
745
  heightSmall: string;
@@ -1025,6 +1027,7 @@ declare const _default: import("vue").DefineComponent<{
1025
1027
  rippleDuration: string;
1026
1028
  }, any>> | undefined;
1027
1029
  Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
1030
+ countTextColorDisabled: string;
1028
1031
  countTextColor: string;
1029
1032
  heightTiny: string;
1030
1033
  heightSmall: string;
@@ -218,6 +218,7 @@ declare const _default: import("vue").DefineComponent<{
218
218
  };
219
219
  peers: {
220
220
  Input: import("../../../_mixins").Theme<"Input", {
221
+ countTextColorDisabled: string;
221
222
  countTextColor: string;
222
223
  heightTiny: string;
223
224
  heightSmall: string;
@@ -707,6 +708,7 @@ declare const _default: import("vue").DefineComponent<{
707
708
  rippleDuration: string;
708
709
  }, any>;
709
710
  Input: import("../../../_mixins").Theme<"Input", {
711
+ countTextColorDisabled: string;
710
712
  countTextColor: string;
711
713
  heightTiny: string;
712
714
  heightSmall: string;
@@ -994,6 +996,7 @@ declare const _default: import("vue").DefineComponent<{
994
996
  rippleDuration: string;
995
997
  }, any>> | undefined;
996
998
  Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
999
+ countTextColorDisabled: string;
997
1000
  countTextColor: string;
998
1001
  heightTiny: string;
999
1002
  heightSmall: string;
@@ -249,6 +249,7 @@ declare const _default: import("vue").DefineComponent<{
249
249
  };
250
250
  peers: {
251
251
  Input: import("../../../_mixins").Theme<"Input", {
252
+ countTextColorDisabled: string;
252
253
  countTextColor: string;
253
254
  heightTiny: string;
254
255
  heightSmall: string;
@@ -738,6 +739,7 @@ declare const _default: import("vue").DefineComponent<{
738
739
  rippleDuration: string;
739
740
  }, any>;
740
741
  Input: import("../../../_mixins").Theme<"Input", {
742
+ countTextColorDisabled: string;
741
743
  countTextColor: string;
742
744
  heightTiny: string;
743
745
  heightSmall: string;
@@ -1025,6 +1027,7 @@ declare const _default: import("vue").DefineComponent<{
1025
1027
  rippleDuration: string;
1026
1028
  }, any>> | undefined;
1027
1029
  Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
1030
+ countTextColorDisabled: string;
1028
1031
  countTextColor: string;
1029
1032
  heightTiny: string;
1030
1033
  heightSmall: string;
@@ -226,6 +226,7 @@ declare const _default: import("vue").DefineComponent<{
226
226
  };
227
227
  peers: {
228
228
  Input: import("../../../_mixins").Theme<"Input", {
229
+ countTextColorDisabled: string;
229
230
  countTextColor: string;
230
231
  heightTiny: string;
231
232
  heightSmall: string;
@@ -715,6 +716,7 @@ declare const _default: import("vue").DefineComponent<{
715
716
  rippleDuration: string;
716
717
  }, any>;
717
718
  Input: import("../../../_mixins").Theme<"Input", {
719
+ countTextColorDisabled: string;
718
720
  countTextColor: string;
719
721
  heightTiny: string;
720
722
  heightSmall: string;
@@ -1002,6 +1004,7 @@ declare const _default: import("vue").DefineComponent<{
1002
1004
  rippleDuration: string;
1003
1005
  }, any>> | undefined;
1004
1006
  Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
1007
+ countTextColorDisabled: string;
1005
1008
  countTextColor: string;
1006
1009
  heightTiny: string;
1007
1010
  heightSmall: string;
@@ -256,6 +256,7 @@ declare const _default: import("vue").DefineComponent<{
256
256
  };
257
257
  peers: {
258
258
  Input: import("../../../_mixins").Theme<"Input", {
259
+ countTextColorDisabled: string;
259
260
  countTextColor: string;
260
261
  heightTiny: string;
261
262
  heightSmall: string;
@@ -745,6 +746,7 @@ declare const _default: import("vue").DefineComponent<{
745
746
  rippleDuration: string;
746
747
  }, any>;
747
748
  Input: import("../../../_mixins").Theme<"Input", {
749
+ countTextColorDisabled: string;
748
750
  countTextColor: string;
749
751
  heightTiny: string;
750
752
  heightSmall: string;
@@ -1032,6 +1034,7 @@ declare const _default: import("vue").DefineComponent<{
1032
1034
  rippleDuration: string;
1033
1035
  }, any>> | undefined;
1034
1036
  Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
1037
+ countTextColorDisabled: string;
1035
1038
  countTextColor: string;
1036
1039
  heightTiny: string;
1037
1040
  heightSmall: string;
@@ -308,6 +308,7 @@ declare const _default: import("vue").DefineComponent<{
308
308
  };
309
309
  peers: {
310
310
  Input: import("../../../_mixins").Theme<"Input", {
311
+ countTextColorDisabled: string;
311
312
  countTextColor: string;
312
313
  heightTiny: string;
313
314
  heightSmall: string;
@@ -797,6 +798,7 @@ declare const _default: import("vue").DefineComponent<{
797
798
  rippleDuration: string;
798
799
  }, any>;
799
800
  Input: import("../../../_mixins").Theme<"Input", {
801
+ countTextColorDisabled: string;
800
802
  countTextColor: string;
801
803
  heightTiny: string;
802
804
  heightSmall: string;
@@ -1084,6 +1086,7 @@ declare const _default: import("vue").DefineComponent<{
1084
1086
  rippleDuration: string;
1085
1087
  }, any>> | undefined;
1086
1088
  Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
1089
+ countTextColorDisabled: string;
1087
1090
  countTextColor: string;
1088
1091
  heightTiny: string;
1089
1092
  heightSmall: string;
@@ -1481,6 +1484,7 @@ declare const _default: import("vue").DefineComponent<{
1481
1484
  };
1482
1485
  peers: {
1483
1486
  Input: import("../../../_mixins").Theme<"Input", {
1487
+ countTextColorDisabled: string;
1484
1488
  countTextColor: string;
1485
1489
  heightTiny: string;
1486
1490
  heightSmall: string;
@@ -1970,6 +1974,7 @@ declare const _default: import("vue").DefineComponent<{
1970
1974
  rippleDuration: string;
1971
1975
  }, any>;
1972
1976
  Input: import("../../../_mixins").Theme<"Input", {
1977
+ countTextColorDisabled: string;
1973
1978
  countTextColor: string;
1974
1979
  heightTiny: string;
1975
1980
  heightSmall: string;
@@ -2257,6 +2262,7 @@ declare const _default: import("vue").DefineComponent<{
2257
2262
  rippleDuration: string;
2258
2263
  }, any>> | undefined;
2259
2264
  Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
2265
+ countTextColorDisabled: string;
2260
2266
  countTextColor: string;
2261
2267
  heightTiny: string;
2262
2268
  heightSmall: string;
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const vue_1 = require("vue");
7
7
  const vueuc_1 = require("vueuc");
8
8
  const vdirs_1 = require("vdirs");
9
+ const seemly_1 = require("seemly");
9
10
  const month_1 = __importDefault(require("./month"));
10
11
  exports.default = (0, vue_1.defineComponent)({
11
12
  props: {
@@ -37,7 +38,8 @@ exports.default = (0, vue_1.defineComponent)({
37
38
  const showRef = (0, vue_1.ref)(false);
38
39
  function handleClickOutside(e) {
39
40
  var _a;
40
- if (showRef.value && !((_a = triggerRef.value) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
41
+ if (showRef.value &&
42
+ !((_a = triggerRef.value) === null || _a === void 0 ? void 0 : _a.contains((0, seemly_1.getPreciseEventTarget)(e)))) {
41
43
  showRef.value = false;
42
44
  }
43
45
  }
@@ -224,6 +224,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
224
224
  };
225
225
  peers: {
226
226
  Input: import("../../../_mixins").Theme<"Input", {
227
+ countTextColorDisabled: string;
227
228
  countTextColor: string;
228
229
  heightTiny: string;
229
230
  heightSmall: string;
@@ -713,6 +714,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
713
714
  rippleDuration: string;
714
715
  }, any>;
715
716
  Input: import("../../../_mixins").Theme<"Input", {
717
+ countTextColorDisabled: string;
716
718
  countTextColor: string;
717
719
  heightTiny: string;
718
720
  heightSmall: string;
@@ -1000,6 +1002,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
1000
1002
  rippleDuration: string;
1001
1003
  }, any>> | undefined;
1002
1004
  Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
1005
+ countTextColorDisabled: string;
1003
1006
  countTextColor: string;
1004
1007
  heightTiny: string;
1005
1008
  heightSmall: string;
@@ -255,6 +255,7 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
255
255
  };
256
256
  peers: {
257
257
  Input: import("../../../_mixins").Theme<"Input", {
258
+ countTextColorDisabled: string;
258
259
  countTextColor: string;
259
260
  heightTiny: string;
260
261
  heightSmall: string;
@@ -744,6 +745,7 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
744
745
  rippleDuration: string;
745
746
  }, any>;
746
747
  Input: import("../../../_mixins").Theme<"Input", {
748
+ countTextColorDisabled: string;
747
749
  countTextColor: string;
748
750
  heightTiny: string;
749
751
  heightSmall: string;
@@ -1031,6 +1033,7 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
1031
1033
  rippleDuration: string;
1032
1034
  }, any>> | undefined;
1033
1035
  Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
1036
+ countTextColorDisabled: string;
1034
1037
  countTextColor: string;
1035
1038
  heightTiny: string;
1036
1039
  heightSmall: string;
@@ -198,6 +198,7 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
198
198
  };
199
199
  peers: {
200
200
  Input: import("../../../_mixins").Theme<"Input", {
201
+ countTextColorDisabled: string;
201
202
  countTextColor: string;
202
203
  heightTiny: string;
203
204
  heightSmall: string;
@@ -687,6 +688,7 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
687
688
  rippleDuration: string;
688
689
  }, any>;
689
690
  Input: import("../../../_mixins").Theme<"Input", {
691
+ countTextColorDisabled: string;
690
692
  countTextColor: string;
691
693
  heightTiny: string;
692
694
  heightSmall: string;
@@ -974,6 +976,7 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
974
976
  rippleDuration: string;
975
977
  }, any>> | undefined;
976
978
  Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
979
+ countTextColorDisabled: string;
977
980
  countTextColor: string;
978
981
  heightTiny: string;
979
982
  heightSmall: string;
@@ -8,8 +8,8 @@ const cssr_1 = require("../../../_utils/cssr");
8
8
 
9
9
  const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr"); // vars:
10
10
  // --n-bezier
11
- // --n-icon-color
12
- // --n-icon-color-disabled
11
+ // --n-icon-color-override
12
+ // --n-icon-color-disabled-override
13
13
  // --n-panel-border-radius
14
14
  // --n-panel-color
15
15
  // --n-panel-box-shadow
@@ -61,15 +61,15 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('date-picker', `
61
61
  position: relative;
62
62
  z-index: auto;
63
63
  `, [(0, cssr_1.cB)('date-picker-icon', `
64
- color: var(--n-icon-color);
64
+ color: var(--n-icon-color-override);
65
65
  transition: color .3s var(--n-bezier);
66
66
  `), (0, cssr_1.cB)('icon', `
67
- color: var(--n-icon-color);
67
+ color: var(--n-icon-color-override);
68
68
  transition: color .3s var(--n-bezier);
69
69
  `), (0, cssr_1.cM)('disabled', [(0, cssr_1.cB)('date-picker-icon', `
70
- color: var(--n-icon-color-disabled);
70
+ color: var(--n-icon-color-disabled-override);
71
71
  `), (0, cssr_1.cB)('icon', `
72
- color: var(--n-icon-color-disabled);
72
+ color: var(--n-icon-color-disabled-override);
73
73
  `)])]), (0, cssr_1.cB)('date-panel', `
74
74
  width: fit-content;
75
75
  outline: none;
@@ -127,6 +127,7 @@ declare const datePickerLight: import("../../_mixins").Theme<"DatePicker", {
127
127
  calendarRightPaddingYearrange: string;
128
128
  }, {
129
129
  Input: import("../../_mixins").Theme<"Input", {
130
+ countTextColorDisabled: string;
130
131
  countTextColor: string;
131
132
  heightTiny: string;
132
133
  heightSmall: string;
@@ -616,6 +617,7 @@ declare const datePickerLight: import("../../_mixins").Theme<"DatePicker", {
616
617
  rippleDuration: string;
617
618
  }, any>;
618
619
  Input: import("../../_mixins").Theme<"Input", {
620
+ countTextColorDisabled: string;
619
621
  countTextColor: string;
620
622
  heightTiny: string;
621
623
  heightSmall: string;
@@ -12,7 +12,7 @@ const self = (vars) => {
12
12
  return Object.assign(Object.assign({}, _common_1.default), { lineHeight,
13
13
  fontSizeSmall,
14
14
  fontSizeMedium,
15
- fontSizeLarge, titleTextColor: textColor1, thColor: (0, seemly_1.composite)(cardColor, tableHeaderColor), thColorModal: (0, seemly_1.composite)(modalColor, tableHeaderColor), thColorPopover: (0, seemly_1.composite)(popoverColor, tableHeaderColor), thTextColor: textColor1, thFontWeight: fontWeightStrong, tdTextColor: textColor2, tdColor: cardColor, tdColorModal: modalColor, tdColorPopover: popoverColor, borderColor: (0, seemly_1.composite)(cardColor, dividerColor), borderColorModal: (0, seemly_1.composite)(modalColor, dividerColor), borderColorPopover: (0, seemly_1.composite)(popoverColor, dividerColor), borderRadius: borderRadius });
15
+ fontSizeLarge, titleTextColor: textColor1, thColor: (0, seemly_1.composite)(cardColor, tableHeaderColor), thColorModal: (0, seemly_1.composite)(modalColor, tableHeaderColor), thColorPopover: (0, seemly_1.composite)(popoverColor, tableHeaderColor), thTextColor: textColor1, thFontWeight: fontWeightStrong, tdTextColor: textColor2, tdColor: cardColor, tdColorModal: modalColor, tdColorPopover: popoverColor, borderColor: (0, seemly_1.composite)(cardColor, dividerColor), borderColorModal: (0, seemly_1.composite)(modalColor, dividerColor), borderColorPopover: (0, seemly_1.composite)(popoverColor, dividerColor), borderRadius });
16
16
  };
17
17
  exports.self = self;
18
18
  const descriptionsLight = {
@@ -50,11 +50,11 @@ export declare const drawerProps: {
50
50
  };
51
51
  readonly resizable: BooleanConstructor;
52
52
  readonly defaultWidth: {
53
- readonly type: NumberConstructor;
53
+ readonly type: PropType<string | number>;
54
54
  readonly default: 251;
55
55
  };
56
56
  readonly defaultHeight: {
57
- readonly type: NumberConstructor;
57
+ readonly type: PropType<string | number>;
58
58
  readonly default: 251;
59
59
  };
60
60
  readonly onUpdateWidth: PropType<MaybeArray<(value: number) => void>>;
@@ -205,11 +205,11 @@ declare const _default: import("vue").DefineComponent<{
205
205
  };
206
206
  readonly resizable: BooleanConstructor;
207
207
  readonly defaultWidth: {
208
- readonly type: NumberConstructor;
208
+ readonly type: PropType<string | number>;
209
209
  readonly default: 251;
210
210
  };
211
211
  readonly defaultHeight: {
212
- readonly type: NumberConstructor;
212
+ readonly type: PropType<string | number>;
213
213
  readonly default: 251;
214
214
  };
215
215
  readonly onUpdateWidth: PropType<MaybeArray<(value: number) => void>>;
@@ -536,11 +536,11 @@ declare const _default: import("vue").DefineComponent<{
536
536
  };
537
537
  readonly resizable: BooleanConstructor;
538
538
  readonly defaultWidth: {
539
- readonly type: NumberConstructor;
539
+ readonly type: PropType<string | number>;
540
540
  readonly default: 251;
541
541
  };
542
542
  readonly defaultHeight: {
543
- readonly type: NumberConstructor;
543
+ readonly type: PropType<string | number>;
544
544
  readonly default: 251;
545
545
  };
546
546
  readonly onUpdateWidth: PropType<MaybeArray<(value: number) => void>>;
@@ -653,7 +653,7 @@ declare const _default: import("vue").DefineComponent<{
653
653
  readonly closeOnEsc: boolean;
654
654
  readonly nativeScrollbar: boolean;
655
655
  readonly showMask: boolean | "transparent";
656
- readonly defaultWidth: number;
657
- readonly defaultHeight: number;
656
+ readonly defaultWidth: string | number;
657
+ readonly defaultHeight: string | number;
658
658
  }>;
659
659
  export default _default;
@@ -42,10 +42,10 @@ exports.drawerProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
42
42
  type: Boolean,
43
43
  default: true
44
44
  }, resizable: Boolean, defaultWidth: {
45
- type: Number,
45
+ type: [Number, String],
46
46
  default: 251
47
47
  }, defaultHeight: {
48
- type: Number,
48
+ type: [Number, String],
49
49
  default: 251
50
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,
51
51
  /** @deprecated */
@@ -145,7 +145,7 @@ exports.default = (0, vue_1.defineComponent)({
145
145
  (0, _utils_1.call)(onHide, show);
146
146
  }
147
147
  (0, vue_1.provide)(interface_1.drawerInjectionKey, {
148
- isMountedRef: isMountedRef,
148
+ isMountedRef,
149
149
  mergedThemeRef: themeRef,
150
150
  mergedClsPrefixRef,
151
151
  doUpdateShow,
@@ -40,6 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  onEsc: PropType<(e: KeyboardEvent) => void>;
41
41
  }, {
42
42
  bodyRef: import("vue").Ref<HTMLElement | null>;
43
+ rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
43
44
  mergedClsPrefix: import("vue").Ref<string>;
44
45
  isMounted: import("vue").Ref<boolean>;
45
46
  mergedTheme: import("vue").Ref<{
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const vue_1 = require("vue");
4
4
  const vueuc_1 = require("vueuc");
5
5
  const vdirs_1 = require("vdirs");
6
+ const _mixins_1 = require("../../_mixins");
6
7
  const interface_1 = require("../../popover/src/interface");
7
8
  const interface_2 = require("../../modal/src/interface");
8
9
  const _internal_1 = require("../../_internal");
@@ -62,6 +63,8 @@ exports.default = (0, vue_1.defineComponent)({
62
63
  const isVertical = (0, vue_1.computed)(() => {
63
64
  return props.placement === 'top' || props.placement === 'bottom';
64
65
  });
66
+ const { mergedClsPrefixRef, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
67
+ const rtlEnabledRef = (0, _mixins_1.useRtl)('Drawer', mergedRtlRef, mergedClsPrefixRef);
65
68
  const handleMousedownResizeTrigger = (e) => {
66
69
  isDraggingRef.value = true;
67
70
  startPosition = isVertical.value ? e.clientY : e.clientX;
@@ -159,6 +162,7 @@ exports.default = (0, vue_1.defineComponent)({
159
162
  (0, vue_1.provide)(interface_2.modalBodyInjectionKey, null);
160
163
  return {
161
164
  bodyRef,
165
+ rtlEnabled: rtlEnabledRef,
162
166
  mergedClsPrefix: NDrawer.mergedClsPrefixRef,
163
167
  isMounted: NDrawer.isMountedRef,
164
168
  mergedTheme: NDrawer.mergedThemeRef,
@@ -195,6 +199,8 @@ exports.default = (0, vue_1.defineComponent)({
195
199
  'aria-modal': 'true',
196
200
  class: [
197
201
  `${mergedClsPrefix}-drawer`,
202
+ this.rtlEnabled &&
203
+ `${mergedClsPrefix}-drawer--rtl`,
198
204
  `${mergedClsPrefix}-drawer--${this.placement}-placement`,
199
205
  /**
200
206
  * When the mouse is pressed to resize the drawer,
@@ -0,0 +1,2 @@
1
+ declare const _default: import("css-render").CNode;
2
+ export default _default;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ const cssr_1 = require("../../../_utils/cssr");
8
+
9
+ exports.default = (0, cssr_1.cB)('drawer', [(0, cssr_1.cM)('rtl', `
10
+ direction: rtl;
11
+ text-align: right;
12
+ `, [(0, cssr_1.cB)('drawer-content', [(0, cssr_1.cB)('drawer-header', [(0, cssr_1.cE)('close', `
13
+ margin-left: 0;
14
+ margin-right: 6px;
15
+ `)])])])]);
@@ -1,3 +1,4 @@
1
1
  export { default as drawerDark } from './dark';
2
2
  export { default as drawerLight } from './light';
3
+ export { default as drawerRtl } from './rtl';
3
4
  export type { DrawerTheme, DrawerThemeVars } from './light';
@@ -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.drawerLight = exports.drawerDark = void 0;
6
+ exports.drawerRtl = exports.drawerLight = exports.drawerDark = void 0;
7
7
  var dark_1 = require("./dark");
8
8
  Object.defineProperty(exports, "drawerDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
9
9
  var light_1 = require("./light");
10
10
  Object.defineProperty(exports, "drawerLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
11
+ var rtl_1 = require("./rtl");
12
+ Object.defineProperty(exports, "drawerRtl", { enumerable: true, get: function () { return __importDefault(rtl_1).default; } });
@@ -0,0 +1,3 @@
1
+ import type { RtlItem } from '../../config-provider/src/internal-interface';
2
+ export declare const drawerRtl: RtlItem;
3
+ export default drawerRtl;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.drawerRtl = void 0;
7
+ const rtl_cssr_1 = __importDefault(require("../src/styles/rtl.cssr"));
8
+ const rtl_1 = require("../../_internal/scrollbar/styles/rtl");
9
+ exports.drawerRtl = {
10
+ name: 'Drawer',
11
+ style: rtl_cssr_1.default,
12
+ peers: [rtl_1.scrollbarRtl]
13
+ };
14
+ exports.default = exports.drawerRtl;
@@ -131,13 +131,13 @@ exports.default = (0, vue_1.defineComponent)({
131
131
  childrenFieldRef: (0, vue_1.toRef)(props, 'childrenField'),
132
132
  renderLabelRef: (0, vue_1.toRef)(props, 'renderLabel'),
133
133
  renderIconRef: (0, vue_1.toRef)(props, 'renderIcon'),
134
- hoverKeyRef: hoverKeyRef,
135
- keyboardKeyRef: keyboardKeyRef,
136
- lastToggledSubmenuKeyRef: lastToggledSubmenuKeyRef,
137
- pendingKeyPathRef: pendingKeyPathRef,
138
- activeKeyPathRef: activeKeyPathRef,
134
+ hoverKeyRef,
135
+ keyboardKeyRef,
136
+ lastToggledSubmenuKeyRef,
137
+ pendingKeyPathRef,
138
+ activeKeyPathRef,
139
139
  animatedRef: (0, vue_1.toRef)(props, 'animated'),
140
- mergedShowRef: mergedShowRef,
140
+ mergedShowRef,
141
141
  nodePropsRef: (0, vue_1.toRef)(props, 'nodeProps'),
142
142
  renderOptionRef: (0, vue_1.toRef)(props, 'renderOption'),
143
143
  menuPropsRef: (0, vue_1.toRef)(props, 'menuProps'),