naive-ui 2.18.1 → 2.19.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 (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 +64 -56
  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 -8
  14. package/es/_internal/selection/styles/_common.js +2 -9
  15. package/es/_internal/selection/styles/dark.js +10 -2
  16. package/es/_internal/selection/styles/light.d.ts +18 -16
  17. package/es/_internal/selection/styles/light.js +10 -2
  18. package/es/_mixins/use-rtl.js +1 -1
  19. package/es/_styles/common/light.js +1 -1
  20. package/es/_utils/naive/mutable.d.ts +2 -2
  21. package/es/alert/src/Alert.js +15 -16
  22. package/es/anchor/src/AnchorAdapter.d.ts +13 -8
  23. package/es/anchor/src/AnchorAdapter.js +3 -5
  24. package/es/anchor/src/BaseAnchor.d.ts +14 -1
  25. package/es/anchor/src/BaseAnchor.js +20 -7
  26. package/es/anchor/src/Link.js +5 -5
  27. package/es/anchor/src/styles/index.cssr.js +25 -16
  28. package/es/auto-complete/index.d.ts +1 -0
  29. package/es/auto-complete/src/AutoComplete.d.ts +10 -0
  30. package/es/auto-complete/src/interface.d.ts +1 -1
  31. package/es/auto-complete/styles/light.d.ts +1 -0
  32. package/es/badge/src/styles/index.cssr.js +1 -0
  33. package/es/card/src/Card.d.ts +17 -1
  34. package/es/card/src/Card.js +3 -2
  35. package/es/card/styles/dark.js +6 -1
  36. package/es/card/styles/light.d.ts +1 -0
  37. package/es/card/styles/light.js +2 -2
  38. package/es/cascader/src/Cascader.d.ts +100 -80
  39. package/es/cascader/src/Cascader.js +28 -19
  40. package/es/cascader/src/CascaderMenu.js +17 -15
  41. package/es/cascader/src/CascaderOption.d.ts +10 -8
  42. package/es/cascader/src/CascaderSelectMenu.d.ts +10 -8
  43. package/es/cascader/src/CascaderSubmenu.d.ts +10 -8
  44. package/es/cascader/src/interface.d.ts +2 -2
  45. package/es/cascader/src/styles/index.cssr.js +6 -1
  46. package/es/cascader/styles/light.d.ts +10 -8
  47. package/es/checkbox/src/Checkbox.d.ts +1 -0
  48. package/es/checkbox/src/Checkbox.js +5 -3
  49. package/es/checkbox/src/CheckboxGroup.js +1 -1
  50. package/es/composables/use-theme-vars.js +5 -5
  51. package/es/config-provider/src/internal-interface.d.ts +2 -0
  52. package/es/data-table/src/DataTable.d.ts +110 -88
  53. package/es/data-table/src/HeaderButton/FilterButton.d.ts +20 -16
  54. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +20 -16
  55. package/es/data-table/src/TableParts/Body.d.ts +20 -16
  56. package/es/data-table/src/TableParts/Cell.d.ts +40 -32
  57. package/es/data-table/src/TableParts/Header.d.ts +20 -16
  58. package/es/data-table/styles/light.d.ts +10 -8
  59. package/es/date-picker/src/DatePicker.d.ts +8 -3
  60. package/es/date-picker/src/DatePicker.js +2 -2
  61. package/es/date-picker/src/panel/date.d.ts +3 -3
  62. package/es/date-picker/src/panel/date.js +10 -1
  63. package/es/date-picker/src/panel/daterange.js +10 -1
  64. package/es/date-picker/src/panel/datetimerange.js +10 -1
  65. package/es/descriptions/src/Descriptions.d.ts +4 -17
  66. package/es/descriptions/src/Descriptions.js +2 -8
  67. package/es/dialog/src/DialogProvider.d.ts +20 -20
  68. package/es/drawer/src/styles/index.cssr.js +2 -0
  69. package/es/dropdown/src/Dropdown.d.ts +9 -23
  70. package/es/dynamic-tags/src/DynamicTags.js +2 -1
  71. package/es/empty/src/Empty.d.ts +6 -1
  72. package/es/empty/src/Empty.js +16 -4
  73. package/es/form/src/FormItemGridItem.d.ts +1 -1
  74. package/es/form/src/FormItemGridItem.js +2 -2
  75. package/es/global-style/src/GlobalStyle.js +13 -3
  76. package/es/grid/src/GridItem.d.ts +2 -2
  77. package/es/grid/src/GridItem.js +1 -1
  78. package/es/input-number/src/InputNumber.d.ts +8 -3
  79. package/es/input-number/src/InputNumber.js +4 -4
  80. package/es/jest-setup.js +3 -1
  81. package/es/layout/src/Layout.d.ts +18 -4
  82. package/es/layout/src/LayoutContent.d.ts +9 -2
  83. package/es/layout/src/LayoutFooter.d.ts +9 -0
  84. package/es/layout/src/LayoutHeader.d.ts +6 -0
  85. package/es/layout/src/LayoutSider.d.ts +11 -0
  86. package/es/layout/src/LayoutSider.js +4 -2
  87. package/es/layout/src/ToggleButton.js +7 -3
  88. package/es/layout/src/styles/layout-sider.cssr.js +31 -15
  89. package/es/layout/styles/dark.js +3 -2
  90. package/es/layout/styles/light.d.ts +2 -0
  91. package/es/layout/styles/light.js +3 -2
  92. package/es/locales/common/enUS.js +1 -1
  93. package/es/locales/common/ruRU.js +1 -1
  94. package/es/locales/common/ukUA.d.ts +3 -0
  95. package/es/locales/common/ukUA.js +92 -0
  96. package/es/locales/common/zhCN.js +1 -1
  97. package/es/locales/date/ukUA.d.ts +3 -0
  98. package/es/locales/date/ukUA.js +6 -0
  99. package/es/locales/index.d.ts +2 -0
  100. package/es/locales/index.js +2 -0
  101. package/es/mention/src/Mention.d.ts +10 -0
  102. package/es/mention/styles/light.d.ts +1 -0
  103. package/es/menu/src/Menu.d.ts +6 -1
  104. package/es/menu/src/Menu.js +10 -1
  105. package/es/menu/src/MenuOption.d.ts +3 -1
  106. package/es/menu/src/MenuOptionContent.d.ts +3 -1
  107. package/es/menu/src/Submenu.d.ts +3 -1
  108. package/es/modal/src/BodyWrapper.d.ts +5 -0
  109. package/es/modal/src/Modal.d.ts +36 -55
  110. package/es/modal/src/Modal.js +18 -39
  111. package/es/modal/src/presetProps.d.ts +2 -1
  112. package/es/modal/styles/light.d.ts +1 -0
  113. package/es/notification/src/Notification.d.ts +1 -1
  114. package/es/notification/src/NotificationEnvironment.d.ts +1 -1
  115. package/es/notification/src/NotificationProvider.d.ts +16 -16
  116. package/es/page-header/src/PageHeader.d.ts +1 -0
  117. package/es/page-header/src/PageHeader.js +8 -2
  118. package/es/page-header/src/styles/rtl.cssr.d.ts +2 -0
  119. package/es/page-header/src/styles/rtl.cssr.js +19 -0
  120. package/es/page-header/styles/index.d.ts +1 -0
  121. package/es/page-header/styles/index.js +1 -0
  122. package/es/page-header/styles/rtl.d.ts +5 -0
  123. package/es/page-header/styles/rtl.js +5 -0
  124. package/es/pagination/src/Pagination.d.ts +111 -100
  125. package/es/pagination/styles/light.d.ts +10 -8
  126. package/es/popconfirm/src/Popconfirm.d.ts +8 -22
  127. package/es/popover/src/Popover.d.ts +12 -32
  128. package/es/popover/src/Popover.js +25 -18
  129. package/es/popover/src/PopoverBody.d.ts +2 -2
  130. package/es/popover/src/PopoverBody.js +4 -2
  131. package/es/popselect/src/Popselect.d.ts +18 -22
  132. package/es/popselect/src/PopselectPanel.d.ts +1 -0
  133. package/es/popselect/src/PopselectPanel.js +38 -19
  134. package/es/popselect/styles/light.d.ts +1 -0
  135. package/es/select/src/Select.d.ts +111 -83
  136. package/es/select/src/Select.js +55 -56
  137. package/es/select/src/interface.d.ts +2 -2
  138. package/es/select/styles/light.d.ts +10 -8
  139. package/es/spin/src/Spin.d.ts +34 -25
  140. package/es/spin/src/Spin.js +27 -20
  141. package/es/spin/src/styles/index.cssr.js +23 -9
  142. package/es/spin/styles/light.d.ts +2 -0
  143. package/es/spin/styles/light.js +3 -1
  144. package/es/styles.d.ts +1 -0
  145. package/es/styles.js +1 -0
  146. package/es/tabs/src/Tab.d.ts +1 -1
  147. package/es/tabs/src/Tab.js +4 -6
  148. package/es/tabs/src/Tabs.d.ts +133 -42
  149. package/es/tabs/src/Tabs.js +37 -38
  150. package/es/tabs/src/interface.d.ts +2 -1
  151. package/es/tabs/src/styles/index.cssr.js +34 -10
  152. package/es/tabs/styles/_common.d.ts +6 -0
  153. package/es/tabs/styles/_common.js +6 -0
  154. package/es/tabs/styles/dark.js +7 -1
  155. package/es/tabs/styles/light.d.ts +13 -0
  156. package/es/tabs/styles/light.js +3 -3
  157. package/es/tag/src/styles/index.cssr.js +1 -1
  158. package/es/time/src/Time.d.ts +14 -22
  159. package/es/time/src/Time.js +32 -18
  160. package/es/time-picker/src/TimePicker.d.ts +5 -0
  161. package/es/time-picker/src/TimePicker.js +2 -2
  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 +103 -81
  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 +9 -8
  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 +64 -56
  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 -8
  210. package/lib/_internal/selection/styles/_common.js +2 -9
  211. package/lib/_internal/selection/styles/dark.js +10 -2
  212. package/lib/_internal/selection/styles/light.d.ts +18 -16
  213. package/lib/_internal/selection/styles/light.js +10 -2
  214. package/lib/_mixins/use-rtl.js +1 -1
  215. package/lib/_styles/common/light.js +1 -1
  216. package/lib/_utils/naive/mutable.d.ts +2 -2
  217. package/lib/alert/src/Alert.js +15 -16
  218. package/lib/anchor/src/AnchorAdapter.d.ts +13 -8
  219. package/lib/anchor/src/AnchorAdapter.js +3 -5
  220. package/lib/anchor/src/BaseAnchor.d.ts +14 -1
  221. package/lib/anchor/src/BaseAnchor.js +19 -6
  222. package/lib/anchor/src/Link.js +5 -5
  223. package/lib/anchor/src/styles/index.cssr.js +25 -16
  224. package/lib/auto-complete/index.d.ts +1 -0
  225. package/lib/auto-complete/src/AutoComplete.d.ts +10 -0
  226. package/lib/auto-complete/src/interface.d.ts +1 -1
  227. package/lib/auto-complete/styles/light.d.ts +1 -0
  228. package/lib/badge/src/styles/index.cssr.js +1 -0
  229. package/lib/card/src/Card.d.ts +17 -1
  230. package/lib/card/src/Card.js +3 -2
  231. package/lib/card/styles/dark.js +6 -1
  232. package/lib/card/styles/light.d.ts +1 -0
  233. package/lib/card/styles/light.js +2 -2
  234. package/lib/cascader/src/Cascader.d.ts +100 -80
  235. package/lib/cascader/src/Cascader.js +28 -19
  236. package/lib/cascader/src/CascaderMenu.js +16 -14
  237. package/lib/cascader/src/CascaderOption.d.ts +10 -8
  238. package/lib/cascader/src/CascaderSelectMenu.d.ts +10 -8
  239. package/lib/cascader/src/CascaderSubmenu.d.ts +10 -8
  240. package/lib/cascader/src/interface.d.ts +2 -2
  241. package/lib/cascader/src/styles/index.cssr.js +6 -1
  242. package/lib/cascader/styles/light.d.ts +10 -8
  243. package/lib/checkbox/src/Checkbox.d.ts +1 -0
  244. package/lib/checkbox/src/Checkbox.js +5 -3
  245. package/lib/checkbox/src/CheckboxGroup.js +1 -1
  246. package/lib/composables/use-theme-vars.js +5 -5
  247. package/lib/config-provider/src/internal-interface.d.ts +2 -0
  248. package/lib/data-table/src/DataTable.d.ts +110 -88
  249. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +20 -16
  250. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +20 -16
  251. package/lib/data-table/src/TableParts/Body.d.ts +20 -16
  252. package/lib/data-table/src/TableParts/Cell.d.ts +40 -32
  253. package/lib/data-table/src/TableParts/Header.d.ts +20 -16
  254. package/lib/data-table/styles/light.d.ts +10 -8
  255. package/lib/date-picker/src/DatePicker.d.ts +8 -3
  256. package/lib/date-picker/src/DatePicker.js +2 -2
  257. package/lib/date-picker/src/panel/date.d.ts +3 -3
  258. package/lib/date-picker/src/panel/date.js +9 -0
  259. package/lib/date-picker/src/panel/daterange.js +9 -0
  260. package/lib/date-picker/src/panel/datetimerange.js +9 -0
  261. package/lib/descriptions/src/Descriptions.d.ts +4 -17
  262. package/lib/descriptions/src/Descriptions.js +2 -8
  263. package/lib/dialog/src/DialogProvider.d.ts +20 -20
  264. package/lib/drawer/src/styles/index.cssr.js +2 -0
  265. package/lib/dropdown/src/Dropdown.d.ts +9 -23
  266. package/lib/dynamic-tags/src/DynamicTags.js +2 -1
  267. package/lib/empty/src/Empty.d.ts +6 -1
  268. package/lib/empty/src/Empty.js +15 -3
  269. package/lib/form/src/FormItemGridItem.d.ts +1 -1
  270. package/lib/form/src/FormItemGridItem.js +2 -2
  271. package/lib/global-style/src/GlobalStyle.js +13 -3
  272. package/lib/grid/src/GridItem.d.ts +2 -2
  273. package/lib/grid/src/GridItem.js +1 -1
  274. package/lib/input-number/src/InputNumber.d.ts +8 -3
  275. package/lib/input-number/src/InputNumber.js +4 -4
  276. package/lib/jest-setup.js +3 -1
  277. package/lib/layout/src/Layout.d.ts +18 -4
  278. package/lib/layout/src/LayoutContent.d.ts +9 -2
  279. package/lib/layout/src/LayoutFooter.d.ts +9 -0
  280. package/lib/layout/src/LayoutHeader.d.ts +6 -0
  281. package/lib/layout/src/LayoutSider.d.ts +11 -0
  282. package/lib/layout/src/LayoutSider.js +4 -2
  283. package/lib/layout/src/ToggleButton.js +7 -3
  284. package/lib/layout/src/styles/layout-sider.cssr.js +31 -15
  285. package/lib/layout/styles/dark.js +3 -2
  286. package/lib/layout/styles/light.d.ts +2 -0
  287. package/lib/layout/styles/light.js +3 -2
  288. package/lib/locales/common/enUS.js +1 -1
  289. package/lib/locales/common/ruRU.js +1 -1
  290. package/lib/locales/common/ukUA.d.ts +3 -0
  291. package/lib/locales/common/ukUA.js +94 -0
  292. package/lib/locales/common/zhCN.js +1 -1
  293. package/lib/locales/date/ukUA.d.ts +3 -0
  294. package/lib/locales/date/ukUA.js +8 -0
  295. package/lib/locales/index.d.ts +2 -0
  296. package/lib/locales/index.js +5 -1
  297. package/lib/mention/src/Mention.d.ts +10 -0
  298. package/lib/mention/styles/light.d.ts +1 -0
  299. package/lib/menu/src/Menu.d.ts +6 -1
  300. package/lib/menu/src/Menu.js +10 -1
  301. package/lib/menu/src/MenuOption.d.ts +3 -1
  302. package/lib/menu/src/MenuOptionContent.d.ts +3 -1
  303. package/lib/menu/src/Submenu.d.ts +3 -1
  304. package/lib/modal/src/BodyWrapper.d.ts +5 -0
  305. package/lib/modal/src/Modal.d.ts +36 -55
  306. package/lib/modal/src/Modal.js +17 -38
  307. package/lib/modal/src/presetProps.d.ts +2 -1
  308. package/lib/modal/styles/light.d.ts +1 -0
  309. package/lib/notification/src/Notification.d.ts +1 -1
  310. package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
  311. package/lib/notification/src/NotificationProvider.d.ts +16 -16
  312. package/lib/page-header/src/PageHeader.d.ts +1 -0
  313. package/lib/page-header/src/PageHeader.js +8 -2
  314. package/lib/page-header/src/styles/rtl.cssr.d.ts +2 -0
  315. package/lib/page-header/src/styles/rtl.cssr.js +26 -0
  316. package/lib/page-header/styles/index.d.ts +1 -0
  317. package/lib/page-header/styles/index.js +3 -1
  318. package/lib/page-header/styles/rtl.d.ts +5 -0
  319. package/lib/page-header/styles/rtl.js +7 -0
  320. package/lib/pagination/src/Pagination.d.ts +111 -100
  321. package/lib/pagination/styles/light.d.ts +10 -8
  322. package/lib/popconfirm/src/Popconfirm.d.ts +8 -22
  323. package/lib/popover/src/Popover.d.ts +12 -32
  324. package/lib/popover/src/Popover.js +23 -16
  325. package/lib/popover/src/PopoverBody.d.ts +2 -2
  326. package/lib/popover/src/PopoverBody.js +4 -2
  327. package/lib/popselect/src/Popselect.d.ts +18 -22
  328. package/lib/popselect/src/PopselectPanel.d.ts +1 -0
  329. package/lib/popselect/src/PopselectPanel.js +38 -19
  330. package/lib/popselect/styles/light.d.ts +1 -0
  331. package/lib/select/src/Select.d.ts +111 -83
  332. package/lib/select/src/Select.js +55 -56
  333. package/lib/select/src/interface.d.ts +2 -2
  334. package/lib/select/styles/light.d.ts +10 -8
  335. package/lib/spin/src/Spin.d.ts +34 -25
  336. package/lib/spin/src/Spin.js +25 -18
  337. package/lib/spin/src/styles/index.cssr.js +23 -9
  338. package/lib/spin/styles/light.d.ts +2 -0
  339. package/lib/spin/styles/light.js +3 -1
  340. package/lib/styles.d.ts +1 -0
  341. package/lib/styles.js +63 -61
  342. package/lib/tabs/src/Tab.d.ts +1 -1
  343. package/lib/tabs/src/Tab.js +4 -6
  344. package/lib/tabs/src/Tabs.d.ts +133 -42
  345. package/lib/tabs/src/Tabs.js +36 -37
  346. package/lib/tabs/src/interface.d.ts +2 -1
  347. package/lib/tabs/src/styles/index.cssr.js +34 -10
  348. package/lib/tabs/styles/_common.d.ts +6 -0
  349. package/lib/tabs/styles/_common.js +6 -0
  350. package/lib/tabs/styles/dark.js +7 -1
  351. package/lib/tabs/styles/light.d.ts +13 -0
  352. package/lib/tabs/styles/light.js +3 -3
  353. package/lib/tag/src/styles/index.cssr.js +1 -1
  354. package/lib/time/src/Time.d.ts +14 -22
  355. package/lib/time/src/Time.js +31 -17
  356. package/lib/time-picker/src/TimePicker.d.ts +5 -0
  357. package/lib/time-picker/src/TimePicker.js +2 -2
  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 +103 -81
  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 +9 -8
  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 +9 -7
  394. package/web-types.json +239 -13
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const ukUA = {
4
+ name: 'uk-UA',
5
+ global: {
6
+ undo: 'Відмінити',
7
+ redo: 'Повторити',
8
+ confirm: 'Підтвердити'
9
+ },
10
+ Popconfirm: {
11
+ positiveText: 'Підтвердити',
12
+ negativeText: 'Скасувати'
13
+ },
14
+ Cascader: {
15
+ placeholder: 'Обрати',
16
+ loading: 'Завантаження',
17
+ loadingRequiredMessage: (label) => `Завантажте всі дочірні вузли ${label} перед перевіркою`
18
+ },
19
+ Time: {
20
+ dateFormat: 'yyyy-MM-dd',
21
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss'
22
+ },
23
+ DatePicker: {
24
+ yearFormat: 'yyyy',
25
+ monthFormat: 'MMM',
26
+ dayFormat: 'eeeeee',
27
+ clear: 'Стерти',
28
+ now: 'Зараз',
29
+ confirm: 'Підтвердити',
30
+ selectTime: 'Обрати час',
31
+ selectDate: 'Обрати дату',
32
+ datePlaceholder: 'Обрати дату',
33
+ datetimePlaceholder: 'Обрати дату і час',
34
+ startDatePlaceholder: 'Дата початку',
35
+ endDatePlaceholder: 'Дата завершення',
36
+ startDatetimePlaceholder: 'Дата і час початку',
37
+ endDatetimePlaceholder: 'Дата і час завершення',
38
+ monthBeforeYear: true,
39
+ firstDayOfWeek: 0,
40
+ today: 'Сьогодні'
41
+ },
42
+ DataTable: {
43
+ checkTableAll: 'Обрати все в таблиці',
44
+ uncheckTableAll: 'Скасувати вибріу усього в таблиці',
45
+ confirm: 'Підтвердити',
46
+ clear: 'Стерти'
47
+ },
48
+ Transfer: {
49
+ sourceTitle: 'Джерело',
50
+ targetTitle: 'Ціль'
51
+ },
52
+ Empty: {
53
+ description: 'Немає даних'
54
+ },
55
+ Select: {
56
+ placeholder: 'Обрати'
57
+ },
58
+ TimePicker: {
59
+ placeholder: 'Обрати час',
60
+ positiveText: 'OK',
61
+ negativeText: 'Скасувати',
62
+ now: 'Зараз'
63
+ },
64
+ Pagination: {
65
+ goto: 'Перейти',
66
+ selectionSuffix: 'сторінка'
67
+ },
68
+ DynamicTags: {
69
+ add: 'Додати'
70
+ },
71
+ Log: {
72
+ loading: 'Завантаження'
73
+ },
74
+ Input: {
75
+ placeholder: 'Ввести'
76
+ },
77
+ InputNumber: {
78
+ placeholder: 'Ввести'
79
+ },
80
+ DynamicInput: {
81
+ create: 'Створити'
82
+ },
83
+ ThemeEditor: {
84
+ title: 'Редактор теми',
85
+ clearAllVars: 'Стерти все',
86
+ clearSearch: 'Очистити пошук',
87
+ filterCompName: 'Фільтрувати за іменем компонента',
88
+ filterVarName: 'Фільтрувати імена змінних',
89
+ import: 'Імпорт',
90
+ export: 'Експорт',
91
+ restore: 'Скинути'
92
+ }
93
+ };
94
+ exports.default = ukUA;
@@ -18,7 +18,7 @@ const zhCN = {
18
18
  },
19
19
  Time: {
20
20
  dateFormat: 'yyyy-MM-dd',
21
- dateTimeFormat: 'yyyy-MM-dd hh:mm:ss'
21
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss'
22
22
  },
23
23
  DatePicker: {
24
24
  yearFormat: 'yyyy年',
@@ -0,0 +1,3 @@
1
+ import { NDateLocale } from './enUS';
2
+ declare const dateUkUA: NDateLocale;
3
+ export default dateUkUA;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const uk_1 = require("date-fns/locale/uk");
4
+ const dateUkUA = {
5
+ name: 'uk-UA',
6
+ locale: uk_1.default
7
+ };
8
+ exports.default = dateUkUA;
@@ -1,8 +1,10 @@
1
1
  export { default as zhCN } from './common/zhCN';
2
2
  export { default as enUS } from './common/enUS';
3
3
  export { default as ruRU } from './common/ruRU';
4
+ export { default as ukUA } from './common/ukUA';
4
5
  export { default as dateZhCN } from './date/zhCN';
5
6
  export { default as dateEnUS } from './date/enUS';
6
7
  export { default as dateRuRU } from './date/ruRU';
8
+ export { default as dateUkUA } from './date/ukUA';
7
9
  export type { NLocale } from './common/enUS';
8
10
  export type { NDateLocale } from './date/enUS';
@@ -1,15 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dateRuRU = exports.dateEnUS = exports.dateZhCN = exports.ruRU = exports.enUS = exports.zhCN = void 0;
3
+ exports.dateUkUA = exports.dateRuRU = exports.dateEnUS = exports.dateZhCN = exports.ukUA = exports.ruRU = exports.enUS = exports.zhCN = void 0;
4
4
  var zhCN_1 = require("./common/zhCN");
5
5
  Object.defineProperty(exports, "zhCN", { enumerable: true, get: function () { return zhCN_1.default; } });
6
6
  var enUS_1 = require("./common/enUS");
7
7
  Object.defineProperty(exports, "enUS", { enumerable: true, get: function () { return enUS_1.default; } });
8
8
  var ruRU_1 = require("./common/ruRU");
9
9
  Object.defineProperty(exports, "ruRU", { enumerable: true, get: function () { return ruRU_1.default; } });
10
+ var ukUA_1 = require("./common/ukUA");
11
+ Object.defineProperty(exports, "ukUA", { enumerable: true, get: function () { return ukUA_1.default; } });
10
12
  var zhCN_2 = require("./date/zhCN");
11
13
  Object.defineProperty(exports, "dateZhCN", { enumerable: true, get: function () { return zhCN_2.default; } });
12
14
  var enUS_2 = require("./date/enUS");
13
15
  Object.defineProperty(exports, "dateEnUS", { enumerable: true, get: function () { return enUS_2.default; } });
14
16
  var ruRU_2 = require("./date/ruRU");
15
17
  Object.defineProperty(exports, "dateRuRU", { enumerable: true, get: function () { return ruRU_2.default; } });
18
+ var ukUA_2 = require("./date/ukUA");
19
+ Object.defineProperty(exports, "dateUkUA", { enumerable: true, get: function () { return ukUA_2.default; } });
@@ -78,6 +78,7 @@ declare const mentionProps: {
78
78
  optionOpacityDisabled: string;
79
79
  optionCheckColor: string;
80
80
  optionColorPending: string;
81
+ optionColorActive: string;
81
82
  actionTextColor: string;
82
83
  loadingColor: string;
83
84
  height: string;
@@ -193,6 +194,7 @@ declare const mentionProps: {
193
194
  optionOpacityDisabled: string;
194
195
  optionCheckColor: string;
195
196
  optionColorPending: string;
197
+ optionColorActive: string;
196
198
  actionTextColor: string;
197
199
  loadingColor: string;
198
200
  height: string;
@@ -308,6 +310,7 @@ declare const mentionProps: {
308
310
  optionOpacityDisabled: string;
309
311
  optionCheckColor: string;
310
312
  optionColorPending: string;
313
+ optionColorActive: string;
311
314
  actionTextColor: string;
312
315
  loadingColor: string;
313
316
  height: string;
@@ -475,6 +478,7 @@ declare const _default: import("vue").DefineComponent<{
475
478
  optionOpacityDisabled: string;
476
479
  optionCheckColor: string;
477
480
  optionColorPending: string;
481
+ optionColorActive: string;
478
482
  actionTextColor: string;
479
483
  loadingColor: string;
480
484
  height: string;
@@ -590,6 +594,7 @@ declare const _default: import("vue").DefineComponent<{
590
594
  optionOpacityDisabled: string;
591
595
  optionCheckColor: string;
592
596
  optionColorPending: string;
597
+ optionColorActive: string;
593
598
  actionTextColor: string;
594
599
  loadingColor: string;
595
600
  height: string;
@@ -705,6 +710,7 @@ declare const _default: import("vue").DefineComponent<{
705
710
  optionOpacityDisabled: string;
706
711
  optionCheckColor: string;
707
712
  optionColorPending: string;
713
+ optionColorActive: string;
708
714
  actionTextColor: string;
709
715
  loadingColor: string;
710
716
  height: string;
@@ -926,6 +932,7 @@ declare const _default: import("vue").DefineComponent<{
926
932
  optionOpacityDisabled: string;
927
933
  optionCheckColor: string;
928
934
  optionColorPending: string;
935
+ optionColorActive: string;
929
936
  actionTextColor: string;
930
937
  loadingColor: string;
931
938
  height: string;
@@ -1152,6 +1159,7 @@ declare const _default: import("vue").DefineComponent<{
1152
1159
  optionOpacityDisabled: string;
1153
1160
  optionCheckColor: string;
1154
1161
  optionColorPending: string;
1162
+ optionColorActive: string;
1155
1163
  actionTextColor: string;
1156
1164
  loadingColor: string;
1157
1165
  height: string;
@@ -1267,6 +1275,7 @@ declare const _default: import("vue").DefineComponent<{
1267
1275
  optionOpacityDisabled: string;
1268
1276
  optionCheckColor: string;
1269
1277
  optionColorPending: string;
1278
+ optionColorActive: string;
1270
1279
  actionTextColor: string;
1271
1280
  loadingColor: string;
1272
1281
  height: string;
@@ -1382,6 +1391,7 @@ declare const _default: import("vue").DefineComponent<{
1382
1391
  optionOpacityDisabled: string;
1383
1392
  optionCheckColor: string;
1384
1393
  optionColorPending: string;
1394
+ optionColorActive: string;
1385
1395
  actionTextColor: string;
1386
1396
  loadingColor: string;
1387
1397
  height: string;
@@ -25,6 +25,7 @@ declare const mentionLight: import("../../_mixins").Theme<"Mention", {
25
25
  optionOpacityDisabled: string;
26
26
  optionCheckColor: string;
27
27
  optionColorPending: string;
28
+ optionColorActive: string;
28
29
  actionTextColor: string;
29
30
  loadingColor: string;
30
31
  height: string;
@@ -89,6 +89,7 @@ declare const menuProps: {
89
89
  readonly type: PropType<FollowerPlacement>;
90
90
  readonly default: "bottom";
91
91
  };
92
+ readonly accordion: BooleanConstructor;
92
93
  readonly theme: PropType<import("../../_mixins").Theme<"Menu", {
93
94
  itemTextColorInverted: string;
94
95
  itemTextColorHoverInverted: string;
@@ -364,6 +365,7 @@ declare const _default: import("vue").DefineComponent<{
364
365
  readonly type: PropType<FollowerPlacement>;
365
366
  readonly default: "bottom";
366
367
  };
368
+ readonly accordion: BooleanConstructor;
367
369
  readonly theme: PropType<import("../../_mixins").Theme<"Menu", {
368
370
  itemTextColorInverted: string;
369
371
  itemTextColorHoverInverted: string;
@@ -776,6 +778,7 @@ declare const _default: import("vue").DefineComponent<{
776
778
  readonly renderLabel?: unknown;
777
779
  readonly renderExtra?: unknown;
778
780
  readonly dropdownPlacement?: unknown;
781
+ readonly accordion?: unknown;
779
782
  readonly theme?: unknown;
780
783
  readonly themeOverrides?: unknown;
781
784
  readonly builtinThemeOverrides?: unknown;
@@ -787,6 +790,7 @@ declare const _default: import("vue").DefineComponent<{
787
790
  defaultValue: Key | null;
788
791
  indent: number;
789
792
  inverted: boolean;
793
+ accordion: boolean;
790
794
  collapsedWidth: number;
791
795
  collapsedIconSize: number;
792
796
  defaultExpandAll: boolean;
@@ -981,10 +985,10 @@ declare const _default: import("vue").DefineComponent<{
981
985
  }>;
982
986
  }>> | undefined;
983
987
  items?: (MenuOption | MenuGroupOption)[] | undefined;
988
+ renderIcon?: ((option: MenuOption) => VNodeChild) | undefined;
984
989
  renderLabel?: ((option: MenuOption | MenuGroupOption) => VNodeChild) | undefined;
985
990
  "onUpdate:value"?: MaybeArray<OnUpdateValue> | undefined;
986
991
  onUpdateValue?: MaybeArray<OnUpdateValue> | undefined;
987
- renderIcon?: ((option: MenuOption) => VNodeChild) | undefined;
988
992
  defaultExpandedNames?: Key[] | undefined;
989
993
  expandedNames?: Key[] | undefined;
990
994
  onExpandedNamesChange?: MaybeArray<OnUpdateKeys> | undefined;
@@ -1009,6 +1013,7 @@ declare const _default: import("vue").DefineComponent<{
1009
1013
  inverted: boolean;
1010
1014
  defaultExpandedNames: Key[];
1011
1015
  expandedNames: Key[];
1016
+ accordion: boolean;
1012
1017
  onExpandedNamesChange: MaybeArray<OnUpdateKeys>;
1013
1018
  collapsed: boolean | undefined;
1014
1019
  collapsedWidth: number;
@@ -86,7 +86,7 @@ const menuProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { o
86
86
  }, renderIcon: Function, renderLabel: Function, renderExtra: Function, dropdownPlacement: {
87
87
  type: String,
88
88
  default: 'bottom'
89
- } });
89
+ }, accordion: Boolean });
90
90
  exports.menuInjectionKey = Symbol('menu');
91
91
  exports.default = (0, vue_1.defineComponent)({
92
92
  name: 'Menu',
@@ -114,6 +114,7 @@ exports.default = (0, vue_1.defineComponent)({
114
114
  return (_a = node.key) !== null && _a !== void 0 ? _a : node.name;
115
115
  }
116
116
  }));
117
+ const treeKeysLevelOneRef = (0, vue_1.computed)(() => new Set(treeMateRef.value.treeNodes.map(e => e.key)));
117
118
  const uncontrolledValueRef = (0, vue_1.ref)(props.defaultValue);
118
119
  const controlledValueRef = (0, vue_1.toRef)(props, 'value');
119
120
  const mergedValueRef = (0, vooks_1.useMergedState)(controlledValueRef, uncontrolledValueRef);
@@ -183,6 +184,14 @@ exports.default = (0, vue_1.defineComponent)({
183
184
  currentExpandedKeys.splice(index, 1);
184
185
  }
185
186
  else {
187
+ if (props.accordion) {
188
+ if (treeKeysLevelOneRef.value.has(key)) {
189
+ const closeKeyIndex = currentExpandedKeys.findIndex(e => treeKeysLevelOneRef.value.has(e));
190
+ if (closeKeyIndex > -1) {
191
+ currentExpandedKeys.splice(closeKeyIndex, 1);
192
+ }
193
+ }
194
+ }
186
195
  currentExpandedKeys.push(key);
187
196
  }
188
197
  doUpdateExpandedKeys(currentExpandedKeys);
@@ -269,6 +269,7 @@ declare const _default: import("vue").DefineComponent<{
269
269
  readonly renderLabel?: unknown;
270
270
  readonly renderExtra?: unknown;
271
271
  readonly dropdownPlacement?: unknown;
272
+ readonly accordion?: unknown;
272
273
  readonly theme?: unknown;
273
274
  readonly themeOverrides?: unknown;
274
275
  readonly builtinThemeOverrides?: unknown;
@@ -280,6 +281,7 @@ declare const _default: import("vue").DefineComponent<{
280
281
  defaultValue: import("treemate").Key | null;
281
282
  indent: number;
282
283
  inverted: boolean;
284
+ accordion: boolean;
283
285
  collapsedWidth: number;
284
286
  collapsedIconSize: number;
285
287
  defaultExpandAll: boolean;
@@ -474,10 +476,10 @@ declare const _default: import("vue").DefineComponent<{
474
476
  }>;
475
477
  }>> | undefined;
476
478
  items?: (import("./interface").MenuOption | import("./interface").MenuGroupOption)[] | undefined;
479
+ renderIcon?: ((option: import("./interface").MenuOption) => import("vue").VNodeChild) | undefined;
477
480
  renderLabel?: ((option: import("./interface").MenuOption | import("./interface").MenuGroupOption) => import("vue").VNodeChild) | undefined;
478
481
  "onUpdate:value"?: import("../../_utils").MaybeArray<import("./interface").OnUpdateValue> | undefined;
479
482
  onUpdateValue?: import("../../_utils").MaybeArray<import("./interface").OnUpdateValue> | undefined;
480
- renderIcon?: ((option: import("./interface").MenuOption) => import("vue").VNodeChild) | undefined;
481
483
  defaultExpandedNames?: import("treemate").Key[] | undefined;
482
484
  expandedNames?: import("treemate").Key[] | undefined;
483
485
  onExpandedNamesChange?: import("../../_utils").MaybeArray<import("./interface").OnUpdateKeys> | undefined;
@@ -63,6 +63,7 @@ declare const _default: import("vue").DefineComponent<{
63
63
  readonly renderLabel?: unknown;
64
64
  readonly renderExtra?: unknown;
65
65
  readonly dropdownPlacement?: unknown;
66
+ readonly accordion?: unknown;
66
67
  readonly theme?: unknown;
67
68
  readonly themeOverrides?: unknown;
68
69
  readonly builtinThemeOverrides?: unknown;
@@ -74,6 +75,7 @@ declare const _default: import("vue").DefineComponent<{
74
75
  defaultValue: import("treemate").Key | null;
75
76
  indent: number;
76
77
  inverted: boolean;
78
+ accordion: boolean;
77
79
  collapsedWidth: number;
78
80
  collapsedIconSize: number;
79
81
  defaultExpandAll: boolean;
@@ -268,10 +270,10 @@ declare const _default: import("vue").DefineComponent<{
268
270
  }>;
269
271
  }>> | undefined;
270
272
  items?: (import("./interface").MenuOption | import("./interface").MenuGroupOption)[] | undefined;
273
+ renderIcon?: ((option: import("./interface").MenuOption) => import("vue").VNodeChild) | undefined;
271
274
  renderLabel?: ((option: import("./interface").MenuOption | import("./interface").MenuGroupOption) => import("vue").VNodeChild) | undefined;
272
275
  "onUpdate:value"?: import("../../_utils").MaybeArray<import("./interface").OnUpdateValue> | undefined;
273
276
  onUpdateValue?: import("../../_utils").MaybeArray<import("./interface").OnUpdateValue> | undefined;
274
- renderIcon?: ((option: import("./interface").MenuOption) => import("vue").VNodeChild) | undefined;
275
277
  defaultExpandedNames?: import("treemate").Key[] | undefined;
276
278
  expandedNames?: import("treemate").Key[] | undefined;
277
279
  onExpandedNamesChange?: import("../../_utils").MaybeArray<import("./interface").OnUpdateKeys> | undefined;
@@ -98,6 +98,7 @@ declare const _default: import("vue").DefineComponent<{
98
98
  readonly renderLabel?: unknown;
99
99
  readonly renderExtra?: unknown;
100
100
  readonly dropdownPlacement?: unknown;
101
+ readonly accordion?: unknown;
101
102
  readonly theme?: unknown;
102
103
  readonly themeOverrides?: unknown;
103
104
  readonly builtinThemeOverrides?: unknown;
@@ -109,6 +110,7 @@ declare const _default: import("vue").DefineComponent<{
109
110
  defaultValue: import("treemate").Key | null;
110
111
  indent: number;
111
112
  inverted: boolean;
113
+ accordion: boolean;
112
114
  collapsedWidth: number;
113
115
  collapsedIconSize: number;
114
116
  defaultExpandAll: boolean;
@@ -303,10 +305,10 @@ declare const _default: import("vue").DefineComponent<{
303
305
  }>;
304
306
  }>> | undefined;
305
307
  items?: (MenuOption | MenuGroupOption)[] | undefined;
308
+ renderIcon?: ((option: MenuOption) => VNodeChild) | undefined;
306
309
  renderLabel?: ((option: MenuOption | MenuGroupOption) => VNodeChild) | undefined;
307
310
  "onUpdate:value"?: import("../../_utils").MaybeArray<import("./interface").OnUpdateValue> | undefined;
308
311
  onUpdateValue?: import("../../_utils").MaybeArray<import("./interface").OnUpdateValue> | undefined;
309
- renderIcon?: ((option: MenuOption) => VNodeChild) | undefined;
310
312
  defaultExpandedNames?: import("treemate").Key[] | undefined;
311
313
  expandedNames?: import("treemate").Key[] | undefined;
312
314
  onExpandedNamesChange?: import("../../_utils").MaybeArray<import("./interface").OnUpdateKeys> | undefined;
@@ -48,6 +48,7 @@ declare const _default: import("vue").DefineComponent<{
48
48
  contentStyle: PropType<string | import("vue").CSSProperties>;
49
49
  headerStyle: PropType<string | import("vue").CSSProperties>;
50
50
  footerStyle: PropType<string | import("vue").CSSProperties>;
51
+ embedded: BooleanConstructor;
51
52
  segmented: {
52
53
  readonly type: PropType<boolean | import("../../card/src/Card").Segmented>;
53
54
  readonly default: false;
@@ -407,6 +408,7 @@ declare const _default: import("vue").DefineComponent<{
407
408
  colorModal: string;
408
409
  colorPopover: string;
409
410
  colorTarget: string;
411
+ colorEmbedded: string;
410
412
  textColor: string;
411
413
  titleTextColor: string;
412
414
  borderColor: string;
@@ -685,6 +687,7 @@ declare const _default: import("vue").DefineComponent<{
685
687
  contentStyle?: unknown;
686
688
  headerStyle?: unknown;
687
689
  footerStyle?: unknown;
690
+ embedded?: unknown;
688
691
  segmented?: unknown;
689
692
  size?: unknown;
690
693
  hoverable?: unknown;
@@ -705,6 +708,7 @@ declare const _default: import("vue").DefineComponent<{
705
708
  onClickoutside: Function;
706
709
  showIcon: boolean;
707
710
  hoverable: boolean;
711
+ embedded: boolean;
708
712
  segmented: boolean | import("../../card/src/Card").Segmented;
709
713
  onPositiveClick: Function;
710
714
  onNegativeClick: Function;
@@ -728,6 +732,7 @@ declare const _default: import("vue").DefineComponent<{
728
732
  closable: boolean;
729
733
  showIcon: boolean;
730
734
  hoverable: boolean;
735
+ embedded: boolean;
731
736
  segmented: boolean | import("../../card/src/Card").Segmented;
732
737
  }>;
733
738
  export default _default;