naive-ui 2.18.0 → 2.19.1

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 (394) hide show
  1. package/es/_internal/clear/src/Clear.d.ts +1 -4
  2. package/es/_internal/clear/src/Clear.js +1 -4
  3. package/es/_internal/icons/Checkmark.js +3 -2
  4. package/es/_internal/select-menu/src/SelectMenu.d.ts +173 -0
  5. package/es/_internal/select-menu/src/SelectMenu.js +9 -6
  6. package/es/_internal/select-menu/src/SelectOption.js +2 -1
  7. package/es/_internal/select-menu/src/styles/index.cssr.js +32 -28
  8. package/es/_internal/select-menu/styles/light.d.ts +2 -0
  9. package/es/_internal/select-menu/styles/light.js +1 -1
  10. package/es/_internal/selection/src/Selection.d.ts +8 -0
  11. package/es/_internal/selection/src/Selection.js +34 -14
  12. package/es/_internal/selection/src/styles/index.cssr.js +16 -14
  13. package/es/_internal/selection/styles/_common.d.ts +1 -0
  14. package/es/_internal/selection/styles/_common.js +2 -1
  15. package/es/_internal/selection/styles/light.d.ts +2 -0
  16. package/es/_styles/common/light.js +1 -1
  17. package/es/_utils/naive/mutable.d.ts +2 -2
  18. package/es/anchor/src/AnchorAdapter.d.ts +13 -8
  19. package/es/anchor/src/AnchorAdapter.js +3 -5
  20. package/es/anchor/src/BaseAnchor.d.ts +14 -1
  21. package/es/anchor/src/BaseAnchor.js +20 -7
  22. package/es/anchor/src/Link.js +5 -5
  23. package/es/anchor/src/styles/index.cssr.js +25 -16
  24. package/es/auto-complete/index.d.ts +1 -0
  25. package/es/auto-complete/src/AutoComplete.d.ts +10 -0
  26. package/es/auto-complete/src/interface.d.ts +1 -1
  27. package/es/auto-complete/styles/light.d.ts +1 -0
  28. package/es/badge/src/styles/index.cssr.js +1 -0
  29. package/es/card/src/Card.d.ts +17 -1
  30. package/es/card/src/Card.js +3 -2
  31. package/es/card/styles/dark.js +6 -1
  32. package/es/card/styles/light.d.ts +1 -0
  33. package/es/card/styles/light.js +2 -2
  34. package/es/cascader/src/Cascader.d.ts +20 -0
  35. package/es/cascader/src/Cascader.js +28 -19
  36. package/es/cascader/src/CascaderMenu.js +17 -15
  37. package/es/cascader/src/CascaderOption.d.ts +2 -0
  38. package/es/cascader/src/CascaderSelectMenu.d.ts +2 -0
  39. package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
  40. package/es/cascader/src/interface.d.ts +2 -2
  41. package/es/cascader/src/styles/index.cssr.js +6 -1
  42. package/es/cascader/styles/light.d.ts +2 -0
  43. package/es/composables/use-theme-vars.js +5 -5
  44. package/es/config-provider/src/internal-interface.d.ts +2 -0
  45. package/es/data-table/src/DataTable.d.ts +22 -0
  46. package/es/data-table/src/HeaderButton/FilterButton.d.ts +4 -0
  47. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +4 -0
  48. package/es/data-table/src/TableParts/Body.d.ts +4 -0
  49. package/es/data-table/src/TableParts/Cell.d.ts +8 -0
  50. package/es/data-table/src/TableParts/Header.d.ts +4 -0
  51. package/es/data-table/styles/light.d.ts +2 -0
  52. package/es/date-picker/src/DatePicker.d.ts +8 -3
  53. package/es/date-picker/src/DatePicker.js +2 -2
  54. package/es/date-picker/src/panel/date.d.ts +3 -3
  55. package/es/date-picker/src/panel/date.js +10 -1
  56. package/es/date-picker/src/panel/daterange.js +10 -1
  57. package/es/date-picker/src/panel/datetimerange.js +10 -1
  58. package/es/descriptions/src/Descriptions.d.ts +4 -17
  59. package/es/descriptions/src/Descriptions.js +2 -8
  60. package/es/dialog/src/Dialog.d.ts +4 -16
  61. package/es/dialog/src/Dialog.js +2 -8
  62. package/es/dialog/src/DialogEnvironment.d.ts +28 -36
  63. package/es/dialog/src/DialogEnvironment.js +2 -2
  64. package/es/dialog/src/DialogProvider.d.ts +18 -15
  65. package/es/dialog/src/DialogProvider.js +2 -1
  66. package/es/dropdown/src/Dropdown.d.ts +9 -23
  67. package/es/dynamic-tags/src/DynamicTags.js +2 -1
  68. package/es/empty/src/Empty.d.ts +6 -1
  69. package/es/empty/src/Empty.js +16 -4
  70. package/es/form/src/FormItemGridItem.d.ts +1 -1
  71. package/es/form/src/FormItemGridItem.js +2 -2
  72. package/es/grid/src/GridItem.d.ts +2 -2
  73. package/es/grid/src/GridItem.js +1 -1
  74. package/es/input-number/src/InputNumber.d.ts +5 -0
  75. package/es/input-number/src/InputNumber.js +9 -8
  76. package/es/layout/src/Layout.d.ts +18 -4
  77. package/es/layout/src/LayoutContent.d.ts +9 -2
  78. package/es/layout/src/LayoutFooter.d.ts +9 -0
  79. package/es/layout/src/LayoutHeader.d.ts +6 -0
  80. package/es/layout/src/LayoutSider.d.ts +11 -0
  81. package/es/layout/src/LayoutSider.js +4 -2
  82. package/es/layout/src/ToggleButton.js +7 -3
  83. package/es/layout/src/styles/layout-sider.cssr.js +31 -15
  84. package/es/layout/styles/dark.js +3 -2
  85. package/es/layout/styles/light.d.ts +2 -0
  86. package/es/layout/styles/light.js +3 -2
  87. package/es/locales/common/enUS.js +1 -1
  88. package/es/locales/common/ruRU.js +1 -1
  89. package/es/locales/common/zhCN.js +1 -1
  90. package/es/mention/src/Mention.d.ts +10 -0
  91. package/es/mention/styles/light.d.ts +1 -0
  92. package/es/menu/src/Menu.d.ts +6 -1
  93. package/es/menu/src/Menu.js +10 -1
  94. package/es/menu/src/MenuOption.d.ts +3 -1
  95. package/es/menu/src/MenuOptionContent.d.ts +3 -1
  96. package/es/menu/src/Submenu.d.ts +3 -1
  97. package/es/modal/src/BodyWrapper.d.ts +7 -8
  98. package/es/modal/src/Modal.d.ts +40 -71
  99. package/es/modal/src/Modal.js +18 -39
  100. package/es/modal/src/presetProps.d.ts +4 -9
  101. package/es/modal/styles/light.d.ts +1 -0
  102. package/es/notification/src/Notification.d.ts +1 -1
  103. package/es/notification/src/NotificationEnvironment.d.ts +1 -1
  104. package/es/notification/src/NotificationProvider.d.ts +16 -16
  105. package/es/page-header/src/PageHeader.d.ts +1 -0
  106. package/es/page-header/src/PageHeader.js +8 -2
  107. package/es/page-header/src/styles/rtl.cssr.d.ts +2 -0
  108. package/es/page-header/src/styles/rtl.cssr.js +19 -0
  109. package/es/page-header/styles/index.d.ts +1 -0
  110. package/es/page-header/styles/index.js +1 -0
  111. package/es/page-header/styles/rtl.d.ts +5 -0
  112. package/es/page-header/styles/rtl.js +5 -0
  113. package/es/pagination/src/Pagination.d.ts +23 -1
  114. package/es/pagination/styles/light.d.ts +2 -0
  115. package/es/popconfirm/src/Popconfirm.d.ts +8 -22
  116. package/es/popover/src/Popover.d.ts +12 -32
  117. package/es/popover/src/Popover.js +25 -18
  118. package/es/popover/src/PopoverBody.d.ts +2 -2
  119. package/es/popover/src/PopoverBody.js +4 -2
  120. package/es/popselect/src/Popselect.d.ts +18 -22
  121. package/es/popselect/src/PopselectPanel.d.ts +1 -0
  122. package/es/popselect/src/PopselectPanel.js +38 -19
  123. package/es/popselect/styles/light.d.ts +1 -0
  124. package/es/select/src/Select.d.ts +31 -3
  125. package/es/select/src/Select.js +55 -56
  126. package/es/select/src/interface.d.ts +2 -2
  127. package/es/select/styles/light.d.ts +2 -0
  128. package/es/spin/src/Spin.d.ts +34 -25
  129. package/es/spin/src/Spin.js +27 -20
  130. package/es/spin/src/styles/index.cssr.js +23 -9
  131. package/es/spin/styles/light.d.ts +2 -0
  132. package/es/spin/styles/light.js +3 -1
  133. package/es/steps/src/Steps.js +2 -2
  134. package/es/styles.d.ts +1 -0
  135. package/es/styles.js +1 -0
  136. package/es/tabs/src/Tab.d.ts +1 -1
  137. package/es/tabs/src/Tab.js +4 -6
  138. package/es/tabs/src/Tabs.d.ts +133 -42
  139. package/es/tabs/src/Tabs.js +37 -38
  140. package/es/tabs/src/interface.d.ts +2 -1
  141. package/es/tabs/src/styles/index.cssr.js +34 -10
  142. package/es/tabs/styles/_common.d.ts +6 -0
  143. package/es/tabs/styles/_common.js +6 -0
  144. package/es/tabs/styles/dark.js +7 -1
  145. package/es/tabs/styles/light.d.ts +13 -0
  146. package/es/tabs/styles/light.js +3 -3
  147. package/es/tag/src/styles/index.cssr.js +1 -1
  148. package/es/time/src/Time.d.ts +14 -22
  149. package/es/time/src/Time.js +32 -18
  150. package/es/time-picker/src/TimePicker.d.ts +5 -0
  151. package/es/time-picker/src/TimePicker.js +2 -2
  152. package/es/timeline/src/Timeline.d.ts +67 -0
  153. package/es/timeline/src/Timeline.js +1 -1
  154. package/es/timeline/src/TimelineItem.d.ts +2 -0
  155. package/es/timeline/src/TimelineItem.js +11 -11
  156. package/es/timeline/src/styles/index.cssr.js +26 -17
  157. package/es/timeline/styles/_common.d.ts +2 -0
  158. package/es/timeline/styles/_common.js +3 -1
  159. package/es/timeline/styles/dark.js +1 -1
  160. package/es/timeline/styles/light.d.ts +7 -0
  161. package/es/timeline/styles/light.js +1 -1
  162. package/es/tooltip/src/Tooltip.d.ts +8 -22
  163. package/es/transfer/src/TransferList.d.ts +1 -1
  164. package/es/tree/src/Tree.d.ts +25 -10
  165. package/es/tree/src/Tree.js +34 -11
  166. package/es/tree/src/TreeNode.js +5 -2
  167. package/es/tree/src/interface.d.ts +2 -2
  168. package/es/tree-select/src/TreeSelect.d.ts +23 -1
  169. package/es/tree-select/src/TreeSelect.js +36 -40
  170. package/es/tree-select/src/interface.d.ts +2 -2
  171. package/es/tree-select/styles/light.d.ts +1 -0
  172. package/es/typography/src/blockquote.d.ts +2 -8
  173. package/es/typography/src/blockquote.js +1 -4
  174. package/es/typography/src/ol.d.ts +2 -8
  175. package/es/typography/src/ol.js +1 -4
  176. package/es/typography/src/p.d.ts +2 -2
  177. package/es/typography/src/p.js +1 -1
  178. package/es/typography/src/text.d.ts +14 -58
  179. package/es/typography/src/text.js +2 -23
  180. package/es/typography/src/ul.d.ts +2 -8
  181. package/es/typography/src/ul.js +1 -4
  182. package/es/upload/index.d.ts +2 -0
  183. package/es/upload/index.js +2 -0
  184. package/es/upload/src/Upload.d.ts +16 -68
  185. package/es/upload/src/Upload.js +71 -98
  186. package/es/upload/src/UploadDragger.js +7 -1
  187. package/es/upload/src/UploadFileList.d.ts +2 -0
  188. package/es/upload/src/UploadFileList.js +34 -0
  189. package/es/upload/src/UploadProgress.d.ts +0 -7
  190. package/es/upload/src/UploadProgress.js +1 -5
  191. package/es/upload/src/UploadTrigger.d.ts +12 -0
  192. package/es/upload/src/UploadTrigger.js +63 -0
  193. package/es/upload/src/interface.d.ts +13 -2
  194. package/es/upload/src/styles/index.cssr.js +40 -32
  195. package/es/version.d.ts +1 -1
  196. package/es/version.js +1 -1
  197. package/lib/_internal/clear/src/Clear.d.ts +1 -4
  198. package/lib/_internal/clear/src/Clear.js +1 -4
  199. package/lib/_internal/icons/Checkmark.js +3 -2
  200. package/lib/_internal/select-menu/src/SelectMenu.d.ts +173 -0
  201. package/lib/_internal/select-menu/src/SelectMenu.js +9 -6
  202. package/lib/_internal/select-menu/src/SelectOption.js +2 -1
  203. package/lib/_internal/select-menu/src/styles/index.cssr.js +32 -28
  204. package/lib/_internal/select-menu/styles/light.d.ts +2 -0
  205. package/lib/_internal/select-menu/styles/light.js +1 -1
  206. package/lib/_internal/selection/src/Selection.d.ts +8 -0
  207. package/lib/_internal/selection/src/Selection.js +34 -14
  208. package/lib/_internal/selection/src/styles/index.cssr.js +16 -14
  209. package/lib/_internal/selection/styles/_common.d.ts +1 -0
  210. package/lib/_internal/selection/styles/_common.js +2 -1
  211. package/lib/_internal/selection/styles/light.d.ts +2 -0
  212. package/lib/_styles/common/light.js +1 -1
  213. package/lib/_utils/naive/mutable.d.ts +2 -2
  214. package/lib/anchor/src/AnchorAdapter.d.ts +13 -8
  215. package/lib/anchor/src/AnchorAdapter.js +3 -5
  216. package/lib/anchor/src/BaseAnchor.d.ts +14 -1
  217. package/lib/anchor/src/BaseAnchor.js +19 -6
  218. package/lib/anchor/src/Link.js +5 -5
  219. package/lib/anchor/src/styles/index.cssr.js +25 -16
  220. package/lib/auto-complete/index.d.ts +1 -0
  221. package/lib/auto-complete/src/AutoComplete.d.ts +10 -0
  222. package/lib/auto-complete/src/interface.d.ts +1 -1
  223. package/lib/auto-complete/styles/light.d.ts +1 -0
  224. package/lib/badge/src/styles/index.cssr.js +1 -0
  225. package/lib/card/src/Card.d.ts +17 -1
  226. package/lib/card/src/Card.js +3 -2
  227. package/lib/card/styles/dark.js +6 -1
  228. package/lib/card/styles/light.d.ts +1 -0
  229. package/lib/card/styles/light.js +2 -2
  230. package/lib/cascader/src/Cascader.d.ts +20 -0
  231. package/lib/cascader/src/Cascader.js +28 -19
  232. package/lib/cascader/src/CascaderMenu.js +16 -14
  233. package/lib/cascader/src/CascaderOption.d.ts +2 -0
  234. package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -0
  235. package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
  236. package/lib/cascader/src/interface.d.ts +2 -2
  237. package/lib/cascader/src/styles/index.cssr.js +6 -1
  238. package/lib/cascader/styles/light.d.ts +2 -0
  239. package/lib/composables/use-theme-vars.js +5 -5
  240. package/lib/config-provider/src/internal-interface.d.ts +2 -0
  241. package/lib/data-table/src/DataTable.d.ts +22 -0
  242. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +4 -0
  243. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +4 -0
  244. package/lib/data-table/src/TableParts/Body.d.ts +4 -0
  245. package/lib/data-table/src/TableParts/Cell.d.ts +8 -0
  246. package/lib/data-table/src/TableParts/Header.d.ts +4 -0
  247. package/lib/data-table/styles/light.d.ts +2 -0
  248. package/lib/date-picker/src/DatePicker.d.ts +8 -3
  249. package/lib/date-picker/src/DatePicker.js +2 -2
  250. package/lib/date-picker/src/panel/date.d.ts +3 -3
  251. package/lib/date-picker/src/panel/date.js +9 -0
  252. package/lib/date-picker/src/panel/daterange.js +9 -0
  253. package/lib/date-picker/src/panel/datetimerange.js +9 -0
  254. package/lib/descriptions/src/Descriptions.d.ts +4 -17
  255. package/lib/descriptions/src/Descriptions.js +2 -8
  256. package/lib/dialog/src/Dialog.d.ts +4 -16
  257. package/lib/dialog/src/Dialog.js +2 -8
  258. package/lib/dialog/src/DialogEnvironment.d.ts +28 -36
  259. package/lib/dialog/src/DialogEnvironment.js +2 -2
  260. package/lib/dialog/src/DialogProvider.d.ts +18 -15
  261. package/lib/dialog/src/DialogProvider.js +2 -1
  262. package/lib/dropdown/src/Dropdown.d.ts +9 -23
  263. package/lib/dynamic-tags/src/DynamicTags.js +2 -1
  264. package/lib/empty/src/Empty.d.ts +6 -1
  265. package/lib/empty/src/Empty.js +15 -3
  266. package/lib/form/src/FormItemGridItem.d.ts +1 -1
  267. package/lib/form/src/FormItemGridItem.js +2 -2
  268. package/lib/grid/src/GridItem.d.ts +2 -2
  269. package/lib/grid/src/GridItem.js +1 -1
  270. package/lib/input-number/src/InputNumber.d.ts +5 -0
  271. package/lib/input-number/src/InputNumber.js +9 -8
  272. package/lib/layout/src/Layout.d.ts +18 -4
  273. package/lib/layout/src/LayoutContent.d.ts +9 -2
  274. package/lib/layout/src/LayoutFooter.d.ts +9 -0
  275. package/lib/layout/src/LayoutHeader.d.ts +6 -0
  276. package/lib/layout/src/LayoutSider.d.ts +11 -0
  277. package/lib/layout/src/LayoutSider.js +4 -2
  278. package/lib/layout/src/ToggleButton.js +7 -3
  279. package/lib/layout/src/styles/layout-sider.cssr.js +31 -15
  280. package/lib/layout/styles/dark.js +3 -2
  281. package/lib/layout/styles/light.d.ts +2 -0
  282. package/lib/layout/styles/light.js +3 -2
  283. package/lib/locales/common/enUS.js +1 -1
  284. package/lib/locales/common/ruRU.js +1 -1
  285. package/lib/locales/common/zhCN.js +1 -1
  286. package/lib/mention/src/Mention.d.ts +10 -0
  287. package/lib/mention/styles/light.d.ts +1 -0
  288. package/lib/menu/src/Menu.d.ts +6 -1
  289. package/lib/menu/src/Menu.js +10 -1
  290. package/lib/menu/src/MenuOption.d.ts +3 -1
  291. package/lib/menu/src/MenuOptionContent.d.ts +3 -1
  292. package/lib/menu/src/Submenu.d.ts +3 -1
  293. package/lib/modal/src/BodyWrapper.d.ts +7 -8
  294. package/lib/modal/src/Modal.d.ts +40 -71
  295. package/lib/modal/src/Modal.js +17 -38
  296. package/lib/modal/src/presetProps.d.ts +4 -9
  297. package/lib/modal/styles/light.d.ts +1 -0
  298. package/lib/notification/src/Notification.d.ts +1 -1
  299. package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
  300. package/lib/notification/src/NotificationProvider.d.ts +16 -16
  301. package/lib/page-header/src/PageHeader.d.ts +1 -0
  302. package/lib/page-header/src/PageHeader.js +8 -2
  303. package/lib/page-header/src/styles/rtl.cssr.d.ts +2 -0
  304. package/lib/page-header/src/styles/rtl.cssr.js +26 -0
  305. package/lib/page-header/styles/index.d.ts +1 -0
  306. package/lib/page-header/styles/index.js +3 -1
  307. package/lib/page-header/styles/rtl.d.ts +5 -0
  308. package/lib/page-header/styles/rtl.js +7 -0
  309. package/lib/pagination/src/Pagination.d.ts +23 -1
  310. package/lib/pagination/styles/light.d.ts +2 -0
  311. package/lib/popconfirm/src/Popconfirm.d.ts +8 -22
  312. package/lib/popover/src/Popover.d.ts +12 -32
  313. package/lib/popover/src/Popover.js +23 -16
  314. package/lib/popover/src/PopoverBody.d.ts +2 -2
  315. package/lib/popover/src/PopoverBody.js +4 -2
  316. package/lib/popselect/src/Popselect.d.ts +18 -22
  317. package/lib/popselect/src/PopselectPanel.d.ts +1 -0
  318. package/lib/popselect/src/PopselectPanel.js +38 -19
  319. package/lib/popselect/styles/light.d.ts +1 -0
  320. package/lib/select/src/Select.d.ts +31 -3
  321. package/lib/select/src/Select.js +55 -56
  322. package/lib/select/src/interface.d.ts +2 -2
  323. package/lib/select/styles/light.d.ts +2 -0
  324. package/lib/spin/src/Spin.d.ts +34 -25
  325. package/lib/spin/src/Spin.js +25 -18
  326. package/lib/spin/src/styles/index.cssr.js +23 -9
  327. package/lib/spin/styles/light.d.ts +2 -0
  328. package/lib/spin/styles/light.js +3 -1
  329. package/lib/steps/src/Steps.js +1 -1
  330. package/lib/styles.d.ts +1 -0
  331. package/lib/styles.js +63 -61
  332. package/lib/tabs/src/Tab.d.ts +1 -1
  333. package/lib/tabs/src/Tab.js +4 -6
  334. package/lib/tabs/src/Tabs.d.ts +133 -42
  335. package/lib/tabs/src/Tabs.js +36 -37
  336. package/lib/tabs/src/interface.d.ts +2 -1
  337. package/lib/tabs/src/styles/index.cssr.js +34 -10
  338. package/lib/tabs/styles/_common.d.ts +6 -0
  339. package/lib/tabs/styles/_common.js +6 -0
  340. package/lib/tabs/styles/dark.js +7 -1
  341. package/lib/tabs/styles/light.d.ts +13 -0
  342. package/lib/tabs/styles/light.js +3 -3
  343. package/lib/tag/src/styles/index.cssr.js +1 -1
  344. package/lib/time/src/Time.d.ts +14 -22
  345. package/lib/time/src/Time.js +31 -17
  346. package/lib/time-picker/src/TimePicker.d.ts +5 -0
  347. package/lib/time-picker/src/TimePicker.js +2 -2
  348. package/lib/timeline/src/Timeline.d.ts +67 -0
  349. package/lib/timeline/src/Timeline.js +1 -1
  350. package/lib/timeline/src/TimelineItem.d.ts +2 -0
  351. package/lib/timeline/src/TimelineItem.js +10 -10
  352. package/lib/timeline/src/styles/index.cssr.js +27 -18
  353. package/lib/timeline/styles/_common.d.ts +2 -0
  354. package/lib/timeline/styles/_common.js +3 -1
  355. package/lib/timeline/styles/dark.js +1 -1
  356. package/lib/timeline/styles/light.d.ts +7 -0
  357. package/lib/timeline/styles/light.js +1 -1
  358. package/lib/tooltip/src/Tooltip.d.ts +8 -22
  359. package/lib/transfer/src/TransferList.d.ts +1 -1
  360. package/lib/tree/src/Tree.d.ts +25 -10
  361. package/lib/tree/src/Tree.js +34 -11
  362. package/lib/tree/src/TreeNode.js +5 -2
  363. package/lib/tree/src/interface.d.ts +2 -2
  364. package/lib/tree-select/src/TreeSelect.d.ts +23 -1
  365. package/lib/tree-select/src/TreeSelect.js +36 -40
  366. package/lib/tree-select/src/interface.d.ts +2 -2
  367. package/lib/tree-select/styles/light.d.ts +1 -0
  368. package/lib/typography/src/blockquote.d.ts +2 -8
  369. package/lib/typography/src/blockquote.js +1 -4
  370. package/lib/typography/src/ol.d.ts +2 -8
  371. package/lib/typography/src/ol.js +1 -4
  372. package/lib/typography/src/p.d.ts +2 -2
  373. package/lib/typography/src/p.js +1 -1
  374. package/lib/typography/src/text.d.ts +14 -58
  375. package/lib/typography/src/text.js +2 -23
  376. package/lib/typography/src/ul.d.ts +2 -8
  377. package/lib/typography/src/ul.js +1 -4
  378. package/lib/upload/index.d.ts +2 -0
  379. package/lib/upload/index.js +5 -1
  380. package/lib/upload/src/Upload.d.ts +16 -68
  381. package/lib/upload/src/Upload.js +68 -95
  382. package/lib/upload/src/UploadDragger.js +7 -1
  383. package/lib/upload/src/UploadFileList.d.ts +2 -0
  384. package/lib/upload/src/UploadFileList.js +36 -0
  385. package/lib/upload/src/UploadProgress.d.ts +0 -7
  386. package/lib/upload/src/UploadProgress.js +1 -5
  387. package/lib/upload/src/UploadTrigger.d.ts +12 -0
  388. package/lib/upload/src/UploadTrigger.js +65 -0
  389. package/lib/upload/src/interface.d.ts +13 -2
  390. package/lib/upload/src/styles/index.cssr.js +40 -32
  391. package/lib/version.d.ts +1 -1
  392. package/lib/version.js +1 -1
  393. package/package.json +8 -6
  394. package/web-types.json +248 -13
@@ -57,7 +57,7 @@ const selectProps = Object.assign(Object.assign({}, useTheme.props), { to: useAd
57
57
  default: true
58
58
  }, renderLabel: Function, renderOption: Function, renderTag: Function, 'onUpdate:value': [Function, Array],
59
59
  // for jsx
60
- onUpdateValue: [Function, Array], onBlur: [Function, Array], onClear: [Function, Array], onFocus: [Function, Array], onScroll: [Function, Array], onSearch: [Function, Array],
60
+ onUpdateValue: [Function, Array], onBlur: [Function, Array], onClear: [Function, Array], onFocus: [Function, Array], onScroll: [Function, Array], onSearch: [Function, Array], onUpdateShow: [Function, Array], 'onUpdate:show': [Function, Array],
61
61
  /** deprecated */
62
62
  onChange: {
63
63
  type: [Function, Array],
@@ -137,68 +137,60 @@ export default defineComponent({
137
137
  }
138
138
  }
139
139
  });
140
+ function getMergedOptions(values) {
141
+ const remote = props.remote;
142
+ const { value: memoValOptMap } = memoValOptMapRef;
143
+ const { value: valOptMap } = valOptMapRef;
144
+ const { value: wrappedFallbackOption } = wrappedFallbackOptionRef;
145
+ const options = [];
146
+ values.forEach((value) => {
147
+ if (valOptMap.has(value)) {
148
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
149
+ options.push(valOptMap.get(value));
150
+ }
151
+ else if (remote && memoValOptMap.has(value)) {
152
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
153
+ options.push(memoValOptMap.get(value));
154
+ }
155
+ else if (wrappedFallbackOption) {
156
+ const option = wrappedFallbackOption(value);
157
+ if (option) {
158
+ options.push(option);
159
+ }
160
+ }
161
+ });
162
+ return options;
163
+ }
140
164
  const selectedOptionsRef = computed(() => {
141
165
  if (props.multiple) {
142
166
  const { value: values } = mergedValueRef;
143
167
  if (!Array.isArray(values))
144
168
  return [];
145
- const remote = props.remote;
146
- const { value: memoValOptMap } = memoValOptMapRef;
147
- const { value: valOptMap } = valOptMapRef;
148
- const { value: wrappedFallbackOption } = wrappedFallbackOptionRef;
149
- const options = [];
150
- values.forEach((value) => {
151
- if (valOptMap.has(value)) {
152
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
153
- options.push(valOptMap.get(value));
154
- }
155
- else if (remote && memoValOptMap.has(value)) {
156
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
157
- options.push(memoValOptMap.get(value));
158
- }
159
- else if (wrappedFallbackOption) {
160
- const option = wrappedFallbackOption(value);
161
- if (option) {
162
- options.push(option);
163
- }
164
- }
165
- });
166
- return options;
169
+ return getMergedOptions(values);
167
170
  }
168
171
  return null;
169
172
  });
170
173
  const selectedOptionRef = computed(() => {
171
174
  const { value: mergedValue } = mergedValueRef;
172
175
  if (!props.multiple && !Array.isArray(mergedValue)) {
173
- const { value: valOptMap } = valOptMapRef;
174
- const { value: wrappedFallbackOption } = wrappedFallbackOptionRef;
175
176
  if (mergedValue === null)
176
177
  return null;
177
- let selectedOption = null;
178
- if (valOptMap.has(mergedValue)) {
179
- selectedOption = valOptMap.get(mergedValue);
180
- }
181
- else if (props.remote) {
182
- selectedOption = memoValOptMapRef.value.get(mergedValue);
183
- }
184
- return (selectedOption ||
185
- // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
186
- (wrappedFallbackOption && wrappedFallbackOption(mergedValue)) ||
187
- null);
178
+ return getMergedOptions([mergedValue])[0] || null;
188
179
  }
189
180
  return null;
190
181
  });
191
182
  const formItem = useFormItem(props);
192
183
  const { mergedSizeRef, mergedDisabledRef } = formItem;
193
- function doUpdateValue(value) {
184
+ function doUpdateValue(value, option) {
194
185
  const { onChange, 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
195
186
  const { nTriggerFormChange, nTriggerFormInput } = formItem;
196
187
  if (onChange)
197
- call(onChange, value);
188
+ call(onChange, value, option);
198
189
  if (onUpdateValue)
199
- call(onUpdateValue, value);
200
- if (_onUpdateValue)
201
- call(_onUpdateValue, value);
190
+ call(onUpdateValue, value, option);
191
+ if (_onUpdateValue) {
192
+ call(_onUpdateValue, value, option);
193
+ }
202
194
  uncontrolledValueRef.value = value;
203
195
  nTriggerFormChange();
204
196
  nTriggerFormInput();
@@ -252,9 +244,18 @@ export default defineComponent({
252
244
  }
253
245
  }
254
246
  // menu related methods
247
+ function doUpdateShow(value) {
248
+ const { onUpdateShow, 'onUpdate:show': _onUpdateShow } = props;
249
+ if (onUpdateShow)
250
+ call(onUpdateShow, value);
251
+ if (_onUpdateShow)
252
+ call(_onUpdateShow, value);
253
+ uncontrolledShowRef.value = value;
254
+ }
255
255
  function openMenu() {
256
256
  if (!mergedDisabledRef.value) {
257
257
  patternRef.value = '';
258
+ doUpdateShow(true);
258
259
  uncontrolledShowRef.value = true;
259
260
  if (props.filterable) {
260
261
  focusSelectionInput();
@@ -262,7 +263,7 @@ export default defineComponent({
262
263
  }
263
264
  }
264
265
  function closeMenu() {
265
- uncontrolledShowRef.value = false;
266
+ doUpdateShow(false);
266
267
  }
267
268
  function handleMenuLeave() {
268
269
  patternRef.value = '';
@@ -375,8 +376,7 @@ export default defineComponent({
375
376
  changedValue.push(option.value);
376
377
  patternRef.value = '';
377
378
  }
378
- focusSelectionInput();
379
- doUpdateValue(changedValue);
379
+ doUpdateValue(changedValue, getMergedOptions(changedValue));
380
380
  }
381
381
  else {
382
382
  if (tag && !remote) {
@@ -392,7 +392,7 @@ export default defineComponent({
392
392
  }
393
393
  focusSelection();
394
394
  closeMenu();
395
- doUpdateValue(option.value);
395
+ doUpdateValue(option.value, option);
396
396
  }
397
397
  }
398
398
  function getCreatedOptionIndex(optionValue) {
@@ -430,10 +430,10 @@ export default defineComponent({
430
430
  }
431
431
  doClear();
432
432
  if (multiple) {
433
- doUpdateValue([]);
433
+ doUpdateValue([], []);
434
434
  }
435
435
  else {
436
- doUpdateValue(null);
436
+ doUpdateValue(null, null);
437
437
  }
438
438
  }
439
439
  function handleMenuMousedown(e) {
@@ -447,7 +447,7 @@ export default defineComponent({
447
447
  // keyboard events
448
448
  // also for menu keyup
449
449
  function handleKeyUp(e) {
450
- var _a, _b, _c;
450
+ var _a, _b, _c, _d;
451
451
  switch (e.code) {
452
452
  case 'Space':
453
453
  if (props.filterable)
@@ -456,12 +456,11 @@ export default defineComponent({
456
456
  case 'Enter':
457
457
  case 'NumpadEnter':
458
458
  if (mergedShowRef.value) {
459
- const menu = menuRef.value;
460
- const pendingOptionData = menu === null || menu === void 0 ? void 0 : menu.getPendingTmNode();
461
- if (pendingOptionData) {
462
- handleToggleByTmNode(pendingOptionData);
459
+ const pendingTmNode = (_a = menuRef.value) === null || _a === void 0 ? void 0 : _a.getPendingTmNode();
460
+ if (pendingTmNode) {
461
+ handleToggleByTmNode(pendingTmNode);
463
462
  }
464
- else {
463
+ else if (!props.filterable) {
465
464
  closeMenu();
466
465
  focusSelection();
467
466
  }
@@ -475,14 +474,14 @@ export default defineComponent({
475
474
  if (props.loading)
476
475
  return;
477
476
  if (mergedShowRef.value) {
478
- (_a = menuRef.value) === null || _a === void 0 ? void 0 : _a.prev();
477
+ (_b = menuRef.value) === null || _b === void 0 ? void 0 : _b.prev();
479
478
  }
480
479
  break;
481
480
  case 'ArrowDown':
482
481
  if (props.loading)
483
482
  return;
484
483
  if (mergedShowRef.value) {
485
- (_b = menuRef.value) === null || _b === void 0 ? void 0 : _b.next();
484
+ (_c = menuRef.value) === null || _c === void 0 ? void 0 : _c.next();
486
485
  }
487
486
  else {
488
487
  openMenu();
@@ -490,7 +489,7 @@ export default defineComponent({
490
489
  break;
491
490
  case 'Escape':
492
491
  closeMenu();
493
- (_c = triggerRef.value) === null || _c === void 0 ? void 0 : _c.focus();
492
+ (_d = triggerRef.value) === null || _d === void 0 ? void 0 : _d.focus();
494
493
  break;
495
494
  }
496
495
  }
@@ -31,8 +31,8 @@ export interface SelectIgnoredOption {
31
31
  }
32
32
  export declare type ValueAtom = string | number;
33
33
  export declare type Value = ValueAtom | string[] | number[] | ValueAtom[];
34
- export declare type OnUpdateValue = (value: string & number & ValueAtom & string[] & number[] & ValueAtom[] & (ValueAtom | null) & (string[] | null) & (number[] | null) & (ValueAtom[] | null)) => void;
35
- export declare type OnUpdateValueImpl = (value: ValueAtom | string[] | number[] | ValueAtom[] | (ValueAtom | null) | (string[] | null) | (number[] | null) | (ValueAtom[] | null)) => void;
34
+ export declare type OnUpdateValue = (value: string & number & ValueAtom & string[] & number[] & ValueAtom[] & (ValueAtom | null) & (string[] | null) & (number[] | null) & (ValueAtom[] | null), option: SelectBaseOption & null & SelectBaseOption[]) => void;
35
+ export declare type OnUpdateValueImpl = (value: ValueAtom | string[] | number[] | ValueAtom[] | (ValueAtom | null) | (string[] | null) | (number[] | null) | (ValueAtom[] | null), option: SelectBaseOption | null | SelectBaseOption[]) => void;
36
36
  export declare type SelectTreeMate = TreeMate<SelectBaseOption, SelectGroupOption, SelectIgnoredOption>;
37
37
  export declare type Size = 'small' | 'medium' | 'large';
38
38
  export declare type SelectOption = SelectBaseOption<string | number>;
@@ -56,6 +56,7 @@ declare const selectLight: import("../../_mixins").Theme<"Select", {
56
56
  fontSizeLarge: string;
57
57
  paddingSingle: string;
58
58
  clearSize: string;
59
+ arrowSize: string;
59
60
  }, {
60
61
  Popover: import("../../_mixins").Theme<"Popover", {
61
62
  fontSize: string;
@@ -92,6 +93,7 @@ declare const selectLight: import("../../_mixins").Theme<"Select", {
92
93
  optionOpacityDisabled: string;
93
94
  optionCheckColor: string;
94
95
  optionColorPending: string;
96
+ optionColorActive: string;
95
97
  actionTextColor: string;
96
98
  loadingColor: string;
97
99
  height: string;
@@ -1,10 +1,8 @@
1
1
  import { PropType } from 'vue';
2
2
  import { ExtractPublicPropTypes } from '../../_utils';
3
3
  declare const spinProps: {
4
- stroke: {
5
- type: StringConstructor;
6
- default: undefined;
7
- };
4
+ description: StringConstructor;
5
+ stroke: StringConstructor;
8
6
  size: {
9
7
  type: PropType<number | "small" | "medium" | "large">;
10
8
  default: string;
@@ -13,20 +11,19 @@ declare const spinProps: {
13
11
  type: BooleanConstructor;
14
12
  default: boolean;
15
13
  };
16
- strokeWidth: {
17
- type: NumberConstructor;
18
- default: undefined;
14
+ strokeWidth: NumberConstructor;
15
+ rotate: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
19
18
  };
20
19
  spinning: {
21
20
  type: BooleanConstructor;
22
21
  validator: () => boolean;
23
22
  default: undefined;
24
23
  };
25
- rotate: {
26
- type: BooleanConstructor;
27
- default: boolean;
28
- };
29
24
  theme: PropType<import("../../_mixins").Theme<"Spin", {
25
+ fontSize: string;
26
+ textColor: string;
30
27
  sizeTiny: string;
31
28
  sizeSmall: string;
32
29
  sizeMedium: string;
@@ -36,6 +33,8 @@ declare const spinProps: {
36
33
  opacitySpinning: string;
37
34
  }, any>>;
38
35
  themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Spin", {
36
+ fontSize: string;
37
+ textColor: string;
39
38
  sizeTiny: string;
40
39
  sizeSmall: string;
41
40
  sizeMedium: string;
@@ -45,6 +44,8 @@ declare const spinProps: {
45
44
  opacitySpinning: string;
46
45
  }, any>>>;
47
46
  builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Spin", {
47
+ fontSize: string;
48
+ textColor: string;
48
49
  sizeTiny: string;
49
50
  sizeSmall: string;
50
51
  sizeMedium: string;
@@ -56,10 +57,8 @@ declare const spinProps: {
56
57
  };
57
58
  export declare type SpinProps = ExtractPublicPropTypes<typeof spinProps>;
58
59
  declare const _default: import("vue").DefineComponent<{
59
- stroke: {
60
- type: StringConstructor;
61
- default: undefined;
62
- };
60
+ description: StringConstructor;
61
+ stroke: StringConstructor;
63
62
  size: {
64
63
  type: PropType<number | "small" | "medium" | "large">;
65
64
  default: string;
@@ -68,20 +67,19 @@ declare const _default: import("vue").DefineComponent<{
68
67
  type: BooleanConstructor;
69
68
  default: boolean;
70
69
  };
71
- strokeWidth: {
72
- type: NumberConstructor;
73
- default: undefined;
70
+ strokeWidth: NumberConstructor;
71
+ rotate: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
74
  };
75
75
  spinning: {
76
76
  type: BooleanConstructor;
77
77
  validator: () => boolean;
78
78
  default: undefined;
79
79
  };
80
- rotate: {
81
- type: BooleanConstructor;
82
- default: boolean;
83
- };
84
80
  theme: PropType<import("../../_mixins").Theme<"Spin", {
81
+ fontSize: string;
82
+ textColor: string;
85
83
  sizeTiny: string;
86
84
  sizeSmall: string;
87
85
  sizeMedium: string;
@@ -91,6 +89,8 @@ declare const _default: import("vue").DefineComponent<{
91
89
  opacitySpinning: string;
92
90
  }, any>>;
93
91
  themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Spin", {
92
+ fontSize: string;
93
+ textColor: string;
94
94
  sizeTiny: string;
95
95
  sizeSmall: string;
96
96
  sizeMedium: string;
@@ -100,6 +100,8 @@ declare const _default: import("vue").DefineComponent<{
100
100
  opacitySpinning: string;
101
101
  }, any>>>;
102
102
  builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Spin", {
103
+ fontSize: string;
104
+ textColor: string;
103
105
  sizeTiny: string;
104
106
  sizeSmall: string;
105
107
  sizeMedium: string;
@@ -117,14 +119,16 @@ declare const _default: import("vue").DefineComponent<{
117
119
  '--opacity-spinning': string;
118
120
  '--size': string;
119
121
  '--color': string;
122
+ '--text-color': string;
120
123
  }>;
121
124
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
125
+ description?: unknown;
122
126
  stroke?: unknown;
123
127
  size?: unknown;
124
128
  show?: unknown;
125
129
  strokeWidth?: unknown;
126
- spinning?: unknown;
127
130
  rotate?: unknown;
131
+ spinning?: unknown;
128
132
  theme?: unknown;
129
133
  themeOverrides?: unknown;
130
134
  builtinThemeOverrides?: unknown;
@@ -133,9 +137,12 @@ declare const _default: import("vue").DefineComponent<{
133
137
  show: boolean;
134
138
  rotate: boolean;
135
139
  } & {
140
+ description?: string | undefined;
136
141
  stroke?: string | undefined;
137
142
  strokeWidth?: number | undefined;
138
143
  theme?: import("../../_mixins").Theme<"Spin", {
144
+ fontSize: string;
145
+ textColor: string;
139
146
  sizeTiny: string;
140
147
  sizeSmall: string;
141
148
  sizeMedium: string;
@@ -145,6 +152,8 @@ declare const _default: import("vue").DefineComponent<{
145
152
  opacitySpinning: string;
146
153
  }, any> | undefined;
147
154
  themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Spin", {
155
+ fontSize: string;
156
+ textColor: string;
148
157
  sizeTiny: string;
149
158
  sizeSmall: string;
150
159
  sizeMedium: string;
@@ -154,6 +163,8 @@ declare const _default: import("vue").DefineComponent<{
154
163
  opacitySpinning: string;
155
164
  }, any>> | undefined;
156
165
  builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Spin", {
166
+ fontSize: string;
167
+ textColor: string;
157
168
  sizeTiny: string;
158
169
  sizeSmall: string;
159
170
  sizeMedium: string;
@@ -166,9 +177,7 @@ declare const _default: import("vue").DefineComponent<{
166
177
  }>, {
167
178
  size: number | "small" | "medium" | "large";
168
179
  show: boolean;
169
- stroke: string;
170
180
  rotate: boolean;
171
- strokeWidth: number;
172
181
  spinning: boolean;
173
182
  }>;
174
183
  export default _default;
@@ -1,9 +1,9 @@
1
- import { computed, defineComponent, h, Transition } from 'vue';
1
+ import { computed, defineComponent, h, Transition, watchEffect } from 'vue';
2
2
  import { useCompitable } from 'vooks';
3
3
  import { pxfy } from 'seemly';
4
4
  import { NBaseLoading } from '../../_internal';
5
5
  import { useConfig, useTheme } from '../../_mixins';
6
- import { createKey, warn } from '../../_utils';
6
+ import { createKey, warnOnce } from '../../_utils';
7
7
  import { spinLight } from '../styles';
8
8
  import style from './styles/index.cssr';
9
9
  const STROKE_WIDTH = {
@@ -11,33 +11,33 @@ const STROKE_WIDTH = {
11
11
  medium: 18,
12
12
  large: 16
13
13
  };
14
- const spinProps = Object.assign(Object.assign({}, useTheme.props), { stroke: {
15
- type: String,
16
- default: undefined
17
- }, size: {
14
+ const spinProps = Object.assign(Object.assign({}, useTheme.props), { description: String, stroke: String, size: {
18
15
  type: [String, Number],
19
16
  default: 'medium'
20
17
  }, show: {
21
18
  type: Boolean,
22
19
  default: true
23
- }, strokeWidth: {
24
- type: Number,
25
- default: undefined
20
+ }, strokeWidth: Number, rotate: {
21
+ type: Boolean,
22
+ default: true
26
23
  }, spinning: {
27
24
  type: Boolean,
28
25
  validator: () => {
29
- warn('spin', '`spinning` is deprecated, please use `show` instead.');
30
26
  return true;
31
27
  },
32
28
  default: undefined
33
- }, rotate: {
34
- type: Boolean,
35
- default: true
36
29
  } });
37
30
  export default defineComponent({
38
31
  name: 'Spin',
39
32
  props: spinProps,
40
33
  setup(props) {
34
+ if (process.env.NODE_ENV !== 'production') {
35
+ watchEffect(() => {
36
+ if (props.spinning !== undefined) {
37
+ warnOnce('spin', '`spinning` is deprecated, please use `show` instead.');
38
+ }
39
+ });
40
+ }
41
41
  const { mergedClsPrefixRef } = useConfig(props);
42
42
  const themeRef = useTheme('Spin', 'Spin', style, spinLight, props, mergedClsPrefixRef);
43
43
  return {
@@ -53,7 +53,7 @@ export default defineComponent({
53
53
  cssVars: computed(() => {
54
54
  const { size: spinSize } = props;
55
55
  const { common: { cubicBezierEaseInOut }, self } = themeRef.value;
56
- const { opacitySpinning, color } = self;
56
+ const { opacitySpinning, color, textColor } = self;
57
57
  const size = typeof spinSize === 'number'
58
58
  ? pxfy(spinSize)
59
59
  : self[createKey('size', spinSize)];
@@ -61,18 +61,25 @@ export default defineComponent({
61
61
  '--bezier': cubicBezierEaseInOut,
62
62
  '--opacity-spinning': opacitySpinning,
63
63
  '--size': size,
64
- '--color': color
64
+ '--color': color,
65
+ '--text-color': textColor
65
66
  };
66
67
  })
67
68
  };
68
69
  },
69
70
  render() {
70
- const { $slots, mergedClsPrefix } = this;
71
+ var _a;
72
+ const { $slots, mergedClsPrefix, description } = this;
71
73
  const rotate = $slots.icon && this.rotate;
72
- const icon = $slots.icon ? (h("div", { class: [
73
- `${mergedClsPrefix}-spin`,
74
- rotate && `${mergedClsPrefix}-spin--rotate`
75
- ], style: $slots.default ? '' : this.cssVars }, $slots.icon())) : (h(NBaseLoading, { clsPrefix: mergedClsPrefix, style: $slots.default ? '' : this.cssVars, stroke: this.stroke, "stroke-width": this.mergedStrokeWidth, class: `${mergedClsPrefix}-spin` }));
74
+ const descriptionNode = (description || $slots.description) && (h("div", { class: `${mergedClsPrefix}-spin-description` }, description || ((_a = $slots.description) === null || _a === void 0 ? void 0 : _a.call($slots))));
75
+ const icon = $slots.icon ? (h("div", { class: `${mergedClsPrefix}-spin-body` },
76
+ h("div", { class: [
77
+ `${mergedClsPrefix}-spin`,
78
+ rotate && `${mergedClsPrefix}-spin--rotate`
79
+ ], style: $slots.default ? '' : this.cssVars }, $slots.icon()),
80
+ descriptionNode)) : (h("div", { class: `${mergedClsPrefix}-spin-body` },
81
+ h(NBaseLoading, { clsPrefix: mergedClsPrefix, style: $slots.default ? '' : this.cssVars, stroke: this.stroke, "stroke-width": this.mergedStrokeWidth, class: `${mergedClsPrefix}-spin` }),
82
+ descriptionNode));
76
83
  return $slots.default ? (h("div", { class: `${mergedClsPrefix}-spin-container`, style: this.cssVars },
77
84
  h("div", { class: [
78
85
  `${mergedClsPrefix}-spin-content`,
@@ -4,6 +4,8 @@ import fadeInTransition from '../../../_styles/transitions/fade-in.cssr'; // var
4
4
  // --opacity-spinning
5
5
  // --size
6
6
  // --color
7
+ // --text-color
8
+ // --font-size
7
9
 
8
10
  export default c([c('@keyframes spin-rotate', `
9
11
  from {
@@ -14,19 +16,17 @@ export default c([c('@keyframes spin-rotate', `
14
16
  }
15
17
  `), cB('spin-container', {
16
18
  position: 'relative'
17
- }, [cB('spin', `
19
+ }, [cB('spin-body', `
18
20
  position: absolute;
19
21
  top: 50%;
20
22
  left: 50%;
21
23
  transform: translateX(-50%) translateY(-50%);
22
- `, [fadeInTransition()]), cB('spin-content', `
23
- opacity: 1;
24
- transition: opacity .3s var(--bezier);
25
- pointer-events: all;
26
- `, [cM('spinning', {
27
- pointerEvents: 'none',
28
- opacity: 'var(--opacity-spinning)'
29
- })])]), cB('spin', `
24
+ `, [fadeInTransition()])]), cB('spin-body', `
25
+ display: inline-flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ flex-direction: column;
29
+ `), cB('spin', `
30
30
  display: inline-flex;
31
31
  height: var(--size);
32
32
  width: var(--size);
@@ -34,4 +34,18 @@ export default c([c('@keyframes spin-rotate', `
34
34
  color: var(--color);
35
35
  `, [cM('rotate', `
36
36
  animation: spin-rotate 2s linear infinite;
37
+ `)]), cB('spin-description', `
38
+ display: inline-block;
39
+ font-size: var(--font-size);
40
+ color: var(--text-color);
41
+ transition: color .3s var(--bezier);
42
+ margin-top: 8px;
43
+ `), cB('spin-content', `
44
+ opacity: 1;
45
+ transition: opacity .3s var(--bezier);
46
+ pointer-events: all;
47
+ `, [cM('spinning', `
48
+ user-select: none;
49
+ pointer-events: none;
50
+ opacity: var(--opacity-spinning);
37
51
  `)])]);
@@ -1,6 +1,8 @@
1
1
  import { Theme } from '../../_mixins';
2
2
  import type { ThemeCommonVars } from '../../_styles/common';
3
3
  export declare const self: (vars: ThemeCommonVars) => {
4
+ fontSize: string;
5
+ textColor: string;
4
6
  sizeTiny: string;
5
7
  sizeSmall: string;
6
8
  sizeMedium: string;
@@ -1,7 +1,9 @@
1
1
  import { commonLight } from '../../_styles/common';
2
2
  export const self = (vars) => {
3
- const { opacityDisabled, heightTiny, heightSmall, heightMedium, heightLarge, heightHuge, primaryColor } = vars;
3
+ const { opacityDisabled, heightTiny, heightSmall, heightMedium, heightLarge, heightHuge, primaryColor, fontSize } = vars;
4
4
  return {
5
+ fontSize,
6
+ textColor: primaryColor,
5
7
  sizeTiny: heightTiny,
6
8
  sizeSmall: heightSmall,
7
9
  sizeMedium: heightMedium,
@@ -2,7 +2,7 @@ import { h, defineComponent, provide } from 'vue';
2
2
  import { useConfig, useTheme } from '../../_mixins';
3
3
  import { stepsLight } from '../styles';
4
4
  import style from './styles/index.cssr';
5
- import { getSlot } from '../../_utils';
5
+ import { flatten, getSlot } from '../../_utils';
6
6
  function stepWithIndex(step, i) {
7
7
  if (typeof step !== 'object' || step === null || Array.isArray(step)) {
8
8
  return null;
@@ -44,6 +44,6 @@ export default defineComponent({
44
44
  return (h("div", { class: [
45
45
  `${mergedClsPrefix}-steps`,
46
46
  this.vertical && `${mergedClsPrefix}-steps--vertical`
47
- ] }, stepsWithIndex(getSlot(this))));
47
+ ] }, stepsWithIndex(flatten(getSlot(this)))));
48
48
  }
49
49
  });
package/es/styles.d.ts CHANGED
@@ -38,6 +38,7 @@ export { messageDark } from './message/styles';
38
38
  export { modalDark } from './modal/styles';
39
39
  export { notificationDark } from './notification/styles';
40
40
  export { paginationDark } from './pagination/styles';
41
+ export { pageHeaderRtl as unstablePageHeaderRtl } from './page-header/styles';
41
42
  export { popconfirmDark } from './popconfirm/styles';
42
43
  export { popoverDark } from './popover/styles';
43
44
  export { popselectDark } from './popselect/styles';
package/es/styles.js CHANGED
@@ -38,6 +38,7 @@ export { messageDark } from './message/styles';
38
38
  export { modalDark } from './modal/styles';
39
39
  export { notificationDark } from './notification/styles';
40
40
  export { paginationDark } from './pagination/styles';
41
+ export { pageHeaderRtl as unstablePageHeaderRtl } from './page-header/styles';
41
42
  export { popconfirmDark } from './popconfirm/styles';
42
43
  export { popoverDark } from './popover/styles';
43
44
  export { popselectDark } from './popselect/styles';
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
30
30
  style: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
31
31
  clsPrefix: import("vue").Ref<string>;
32
32
  value: import("vue").Ref<string | number | null>;
33
- type: import("vue").Ref<"bar" | "line" | "card">;
33
+ type: import("vue").Ref<import("./interface").TabsType>;
34
34
  handleClose(e: MouseEvent): void;
35
35
  handleClick(): void;
36
36
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
@@ -51,12 +51,10 @@ export default defineComponent({
51
51
  this.leftPadded ? (h("div", { class: `${clsPrefix}-tabs-tab-pad` })) : null,
52
52
  h("div", { key: name, "data-name": name, "data-disabled": disabled ? true : undefined, class: [
53
53
  `${clsPrefix}-tabs-tab`,
54
- {
55
- [`${clsPrefix}-tabs-tab--active`]: value === name,
56
- [`${clsPrefix}-tabs-tab--disabled`]: disabled,
57
- [`${clsPrefix}-tabs-tab--closable`]: mergedClosable,
58
- [`${clsPrefix}-tabs-tab--addable`]: addable
59
- }
54
+ value === name && `${clsPrefix}-tabs-tab--active`,
55
+ disabled && `${clsPrefix}-tabs-tab--disabled`,
56
+ mergedClosable && `${clsPrefix}-tabs-tab--closable`,
57
+ addable && `${clsPrefix}-tabs-tab--addable`
60
58
  ], onClick: this.handleClick, style: addable ? undefined : style },
61
59
  h("span", { class: `${clsPrefix}-tabs-tab__label` }, addable ? (h(NBaseIcon, { clsPrefix: clsPrefix }, {
62
60
  default: () => h(AddIcon, null)