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
@@ -4,10 +4,7 @@ declare const _default: import("vue").DefineComponent<{
4
4
  type: StringConstructor;
5
5
  required: true;
6
6
  };
7
- show: {
8
- type: BooleanConstructor;
9
- default: boolean;
10
- };
7
+ show: BooleanConstructor;
11
8
  onClear: PropType<(e: MouseEvent) => void>;
12
9
  }, {
13
10
  NConfigProvider: import("../../../config-provider/src/internal-interface").ConfigProviderInjection | null;
@@ -11,10 +11,7 @@ export default defineComponent({
11
11
  type: String,
12
12
  required: true
13
13
  },
14
- show: {
15
- type: Boolean,
16
- default: false
17
- },
14
+ show: Boolean,
18
15
  onClear: Function
19
16
  },
20
17
  setup(props) {
@@ -2,7 +2,8 @@ import { h, defineComponent } from 'vue';
2
2
  export default defineComponent({
3
3
  name: 'Checkmark',
4
4
  render() {
5
- return (h("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
6
- h("path", { d: "M13.8639 3.65609C14.0533 3.85704 14.0439 4.17348 13.8429 4.36288L5.91309 11.8368C5.67573 12.0605 5.30311 12.0536 5.07417 11.8213L2.39384 9.10093C2.20003 8.90422 2.20237 8.58765 2.39907 8.39384C2.59578 8.20003 2.91235 8.20237 3.10616 8.39908L5.51192 10.8407L13.1571 3.63517C13.358 3.44577 13.6745 3.45513 13.8639 3.65609Z", fill: "currentColor" })));
5
+ return (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16" },
6
+ h("g", { fill: "none" },
7
+ h("path", { d: "M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z", fill: "currentColor" }))));
7
8
  }
8
9
  });
@@ -68,6 +68,7 @@ declare const _default: import("vue").DefineComponent<{
68
68
  optionOpacityDisabled: string;
69
69
  optionCheckColor: string;
70
70
  optionColorPending: string;
71
+ optionColorActive: string;
71
72
  actionTextColor: string;
72
73
  loadingColor: string;
73
74
  height: string;
@@ -119,6 +120,7 @@ declare const _default: import("vue").DefineComponent<{
119
120
  optionOpacityDisabled: string;
120
121
  optionCheckColor: string;
121
122
  optionColorPending: string;
123
+ optionColorActive: string;
122
124
  actionTextColor: string;
123
125
  loadingColor: string;
124
126
  height: string;
@@ -170,6 +172,7 @@ declare const _default: import("vue").DefineComponent<{
170
172
  optionOpacityDisabled: string;
171
173
  optionCheckColor: string;
172
174
  optionColorPending: string;
175
+ optionColorActive: string;
173
176
  actionTextColor: string;
174
177
  loadingColor: string;
175
178
  height: string;
@@ -206,6 +209,172 @@ declare const _default: import("vue").DefineComponent<{
206
209
  getPendingTmNode: () => TreeNode<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>, SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>, SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>> | null;
207
210
  prev: () => void;
208
211
  next: () => void;
212
+ mergedTheme: import("vue").ComputedRef<{
213
+ common: {
214
+ baseColor: string;
215
+ primaryColor: string;
216
+ primaryColorHover: string;
217
+ primaryColorPressed: string;
218
+ primaryColorSuppl: string;
219
+ infoColor: string;
220
+ infoColorHover: string;
221
+ infoColorPressed: string;
222
+ infoColorSuppl: string;
223
+ successColor: string;
224
+ successColorHover: string;
225
+ successColorPressed: string;
226
+ successColorSuppl: string;
227
+ warningColor: string;
228
+ warningColorHover: string;
229
+ warningColorPressed: string;
230
+ warningColorSuppl: string;
231
+ errorColor: string;
232
+ errorColorHover: string;
233
+ errorColorPressed: string;
234
+ errorColorSuppl: string;
235
+ textColorBase: string;
236
+ textColor1: string;
237
+ textColor2: string;
238
+ textColor3: string;
239
+ textColorDisabled: string;
240
+ placeholderColor: string;
241
+ placeholderColorDisabled: string;
242
+ iconColor: string;
243
+ iconColorHover: string;
244
+ iconColorPressed: string;
245
+ iconColorDisabled: string;
246
+ opacity1: string;
247
+ opacity2: string;
248
+ opacity3: string;
249
+ opacity4: string;
250
+ opacity5: string;
251
+ dividerColor: string;
252
+ borderColor: string;
253
+ closeColor: string;
254
+ closeColorHover: string;
255
+ closeColorPressed: string;
256
+ closeColorDisabled: string;
257
+ clearColor: string;
258
+ clearColorHover: string;
259
+ clearColorPressed: string;
260
+ scrollbarColor: string;
261
+ scrollbarColorHover: string;
262
+ scrollbarWidth: string;
263
+ scrollbarHeight: string;
264
+ scrollbarBorderRadius: string;
265
+ progressRailColor: string;
266
+ railColor: string;
267
+ popoverColor: string;
268
+ tableColor: string;
269
+ cardColor: string;
270
+ modalColor: string;
271
+ bodyColor: string;
272
+ tagColor: string;
273
+ avatarColor: string;
274
+ invertedColor: string;
275
+ inputColor: string;
276
+ codeColor: string;
277
+ tabColor: string;
278
+ actionColor: string;
279
+ tableHeaderColor: string;
280
+ hoverColor: string;
281
+ tableColorHover: string;
282
+ pressedColor: string;
283
+ opacityDisabled: string;
284
+ inputColorDisabled: string;
285
+ boxShadow1: string;
286
+ boxShadow2: string;
287
+ boxShadow3: string;
288
+ fontFamily: string;
289
+ fontFamilyMono: string;
290
+ fontWeight: string;
291
+ fontWeightStrong: string;
292
+ cubicBezierEaseInOut: string;
293
+ cubicBezierEaseOut: string;
294
+ cubicBezierEaseIn: string;
295
+ borderRadius: string;
296
+ borderRadiusSmall: string;
297
+ fontSize: string;
298
+ fontSizeTiny: string;
299
+ fontSizeSmall: string;
300
+ fontSizeMedium: string;
301
+ fontSizeLarge: string;
302
+ fontSizeHuge: string;
303
+ lineHeight: string;
304
+ heightTiny: string;
305
+ heightSmall: string;
306
+ heightMedium: string;
307
+ heightLarge: string;
308
+ heightHuge: string;
309
+ transformDebounceScale: string;
310
+ name: "common";
311
+ };
312
+ self: {
313
+ optionFontSizeSmall: string;
314
+ optionFontSizeMedium: string;
315
+ optionFontSizeLarge: string;
316
+ optionFontSizeHuge: string;
317
+ optionHeightSmall: string;
318
+ optionHeightMedium: string;
319
+ optionHeightLarge: string;
320
+ optionHeightHuge: string;
321
+ borderRadius: string;
322
+ color: string;
323
+ groupHeaderTextColor: string;
324
+ actionDividerColor: string;
325
+ optionTextColor: string;
326
+ optionTextColorPressed: string;
327
+ optionTextColorDisabled: string;
328
+ optionTextColorActive: string;
329
+ optionOpacityDisabled: string;
330
+ optionCheckColor: string;
331
+ optionColorPending: string;
332
+ optionColorActive: string;
333
+ actionTextColor: string;
334
+ loadingColor: string;
335
+ height: string;
336
+ paddingSmall: string;
337
+ paddingMedium: string;
338
+ paddingLarge: string;
339
+ paddingHuge: string;
340
+ optionPaddingSmall: string;
341
+ optionPaddingMedium: string;
342
+ optionPaddingLarge: string;
343
+ optionPaddingHuge: string;
344
+ loadingSize: string;
345
+ };
346
+ peers: {
347
+ Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
348
+ color: string;
349
+ colorHover: string;
350
+ }, any>;
351
+ Empty: import("../../../_mixins").Theme<"Empty", {
352
+ fontSizeSmall: string;
353
+ fontSizeMedium: string;
354
+ fontSizeLarge: string;
355
+ fontSizeHuge: string;
356
+ textColor: string;
357
+ iconColor: string;
358
+ extraTextColor: string;
359
+ iconSizeSmall: string;
360
+ iconSizeMedium: string;
361
+ iconSizeLarge: string;
362
+ iconSizeHuge: string;
363
+ }, any>;
364
+ };
365
+ peerOverrides: {
366
+ Scrollbar?: {
367
+ peers?: {
368
+ [x: string]: any;
369
+ } | undefined;
370
+ } | undefined;
371
+ Empty?: {
372
+ peers?: {
373
+ [x: string]: any;
374
+ } | undefined;
375
+ } | undefined;
376
+ };
377
+ }>;
209
378
  virtualListRef: import("vue").Ref<{
210
379
  listElRef: HTMLElement;
211
380
  itemsElRef: HTMLElement | null;
@@ -229,6 +398,7 @@ declare const _default: import("vue").DefineComponent<{
229
398
  '--group-header-text-color': string;
230
399
  '--option-check-color': string;
231
400
  '--option-color-pending': string;
401
+ '--option-color-active': string;
232
402
  '--option-height': string;
233
403
  '--option-opacity-disabled': string;
234
404
  '--option-text-color': string;
@@ -326,6 +496,7 @@ declare const _default: import("vue").DefineComponent<{
326
496
  optionOpacityDisabled: string;
327
497
  optionCheckColor: string;
328
498
  optionColorPending: string;
499
+ optionColorActive: string;
329
500
  actionTextColor: string;
330
501
  loadingColor: string;
331
502
  height: string;
@@ -377,6 +548,7 @@ declare const _default: import("vue").DefineComponent<{
377
548
  optionOpacityDisabled: string;
378
549
  optionCheckColor: string;
379
550
  optionColorPending: string;
551
+ optionColorActive: string;
380
552
  actionTextColor: string;
381
553
  loadingColor: string;
382
554
  height: string;
@@ -428,6 +600,7 @@ declare const _default: import("vue").DefineComponent<{
428
600
  optionOpacityDisabled: string;
429
601
  optionCheckColor: string;
430
602
  optionColorPending: string;
603
+ optionColorActive: string;
431
604
  actionTextColor: string;
432
605
  loadingColor: string;
433
606
  height: string;
@@ -220,7 +220,7 @@ export default defineComponent({
220
220
  });
221
221
  const cssVarsRef = computed(() => {
222
222
  const { size } = props;
223
- const { common: { cubicBezierEaseInOut }, self: { height, borderRadius, color, groupHeaderTextColor, actionDividerColor, optionTextColorPressed, optionTextColor, optionTextColorDisabled, optionTextColorActive, optionOpacityDisabled, optionCheckColor, actionTextColor, optionColorPending, loadingColor, loadingSize, [createKey('optionFontSize', size)]: fontSize, [createKey('optionHeight', size)]: optionHeight, [createKey('optionPadding', size)]: optionPadding } } = themeRef.value;
223
+ const { common: { cubicBezierEaseInOut }, self: { height, borderRadius, color, groupHeaderTextColor, actionDividerColor, optionTextColorPressed, optionTextColor, optionTextColorDisabled, optionTextColorActive, optionOpacityDisabled, optionCheckColor, actionTextColor, optionColorPending, optionColorActive, loadingColor, loadingSize, [createKey('optionFontSize', size)]: fontSize, [createKey('optionHeight', size)]: optionHeight, [createKey('optionPadding', size)]: optionPadding } } = themeRef.value;
224
224
  return {
225
225
  '--height': height,
226
226
  '--action-divider-color': actionDividerColor,
@@ -232,6 +232,7 @@ export default defineComponent({
232
232
  '--group-header-text-color': groupHeaderTextColor,
233
233
  '--option-check-color': optionCheckColor,
234
234
  '--option-color-pending': optionColorPending,
235
+ '--option-color-active': optionColorActive,
235
236
  '--option-height': optionHeight,
236
237
  '--option-opacity-disabled': optionOpacityDisabled,
237
238
  '--option-text-color': optionTextColor,
@@ -250,7 +251,7 @@ export default defineComponent({
250
251
  prev,
251
252
  getPendingTmNode
252
253
  };
253
- return Object.assign({ virtualListRef,
254
+ return Object.assign({ mergedTheme: themeRef, virtualListRef,
254
255
  scrollbarRef, style: styleRef, itemSize: itemSizeRef, padding: paddingRef, flattenedNodes: flattenedNodesRef, empty: emptyRef, virtualListContainer() {
255
256
  const { value } = virtualListRef;
256
257
  return value === null || value === void 0 ? void 0 : value.listElRef;
@@ -269,15 +270,15 @@ export default defineComponent({
269
270
  handleVirtualListScroll }, exposedProps);
270
271
  },
271
272
  render() {
272
- const { $slots, virtualScroll, clsPrefix } = this;
273
+ const { $slots, virtualScroll, clsPrefix, mergedTheme } = this;
273
274
  return (h("div", { ref: "selfRef", tabindex: this.focusable ? 0 : -1, class: [
274
275
  `${clsPrefix}-base-select-menu`,
275
276
  this.multiple && `${clsPrefix}-base-select-menu--multiple`
276
277
  ], style: this.style, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout, onKeyup: this.handleKeyUp, onKeydown: this.handleKeyDown, onMousedown: this.handleMouseDown, onMouseenter: this.onMouseenter, onMouseleave: this.onMouseleave },
277
278
  this.loading ? (h("div", { class: `${clsPrefix}-base-select-menu__loading` },
278
- h(NInternalLoading, { clsPrefix: clsPrefix, strokeWidth: 20 }))) : !this.empty ? (h(NScrollbar, { ref: "scrollbarRef", scrollable: this.scrollable, container: virtualScroll ? this.virtualListContainer : undefined, content: virtualScroll ? this.virtualListContent : undefined, onScroll: virtualScroll ? undefined : this.doScroll }, {
279
+ h(NInternalLoading, { clsPrefix: clsPrefix, strokeWidth: 20 }))) : !this.empty ? (h(NScrollbar, { ref: "scrollbarRef", theme: mergedTheme.peers.Scrollbar, themeOverrides: mergedTheme.peerOverrides.Scrollbar, scrollable: this.scrollable, container: virtualScroll ? this.virtualListContainer : undefined, content: virtualScroll ? this.virtualListContent : undefined, onScroll: virtualScroll ? undefined : this.doScroll }, {
279
280
  default: () => {
280
- return virtualScroll ? (h(VirtualList, { ref: "virtualListRef", class: `${clsPrefix}-virtual-list`, items: this.flattenedNodes, itemSize: this.itemSize, showScrollbar: false, paddingTop: this.padding.top, paddingBottom: this.padding.bottom, onResize: this.handleVirtualListResize, onScroll: this.handleVirtualListScroll }, {
281
+ return virtualScroll ? (h(VirtualList, { ref: "virtualListRef", class: `${clsPrefix}-virtual-list`, items: this.flattenedNodes, itemSize: this.itemSize, showScrollbar: false, paddingTop: this.padding.top, paddingBottom: this.padding.bottom, onResize: this.handleVirtualListResize, onScroll: this.handleVirtualListScroll, itemResizable: true }, {
281
282
  default: ({ item: tmNode }) => {
282
283
  return tmNode.isGroup ? (h(NSelectGroupHeader, { key: tmNode.key, clsPrefix: clsPrefix, tmNode: tmNode })) : tmNode.ignored ? null : (h(NSelectOption, { clsPrefix: clsPrefix, key: tmNode.key, tmNode: tmNode }));
283
284
  }
@@ -286,7 +287,9 @@ export default defineComponent({
286
287
  paddingBottom: this.padding.bottom
287
288
  } }, this.flattenedNodes.map((tmNode) => tmNode.isGroup ? (h(NSelectGroupHeader, { key: tmNode.key, clsPrefix: clsPrefix, tmNode: tmNode })) : (h(NSelectOption, { clsPrefix: clsPrefix, key: tmNode.key, tmNode: tmNode })))));
288
289
  }
289
- })) : (h("div", { class: `${clsPrefix}-base-select-menu__empty` }, renderSlot($slots, 'empty', undefined, () => [h(NEmpty, null)]))),
290
+ })) : (h("div", { class: `${clsPrefix}-base-select-menu__empty` }, renderSlot($slots, 'empty', undefined, () => [
291
+ h(NEmpty, { theme: mergedTheme.peers.Empty, themeOverrides: mergedTheme.peerOverrides.Empty })
292
+ ]))),
290
293
  $slots.action && (h("div", { class: `${clsPrefix}-base-select-menu__action`, "data-action": true }, renderSlot($slots, 'action'))),
291
294
  $slots.action && h(NFocusDetector, { onFocus: this.onTabOut })));
292
295
  }
@@ -98,7 +98,8 @@ export default defineComponent({
98
98
  [`${clsPrefix}-base-select-option--grouped`]: isGrouped,
99
99
  [`${clsPrefix}-base-select-option--pending`]: isPending
100
100
  }
101
- ], style: rawNode.style, onClick: handleClick, onMouseenter: handleMouseEnter, onMousemove: handleMouseMove }, children));
101
+ ], style: rawNode.style, onClick: handleClick, onMouseenter: handleMouseEnter, onMousemove: handleMouseMove },
102
+ h("div", { class: `${clsPrefix}-base-select-option__content` }, children)));
102
103
  return rawNode.render
103
104
  ? rawNode.render({ node, option: rawNode, selected: isSelected })
104
105
  : renderOption
@@ -3,6 +3,7 @@ import fadeInScaleUpTransition from '../../../../_styles/transitions/fade-in-sca
3
3
  // --loading-size
4
4
 
5
5
  export default cB('base-select-menu', `
6
+ line-height: 1.5;
6
7
  outline: none;
7
8
  z-index: 0;
8
9
  position: relative;
@@ -16,13 +17,19 @@ export default cB('base-select-menu', `
16
17
  `), cB('virtual-list', `
17
18
  max-height: var(--height);
18
19
  `), cB('base-select-option', `
19
- height: var(--option-height);
20
- line-height: var(--option-height);
20
+ min-height: var(--option-height);
21
21
  font-size: var(--option-font-size);
22
- `), cB('base-select-group-header', `
23
- height: var(--option-height);
24
- line-height: var(--option-height);
22
+ display: flex;
23
+ align-items: center;
24
+ `, [cE('content', `
25
+ white-space: nowrap;
26
+ text-overflow: ellipsis;
27
+ overflow: hidden;
28
+ `)]), cB('base-select-group-header', `
29
+ min-height: var(--option-height);
25
30
  font-size: .93em;
31
+ display: flex;
32
+ align-items: center;
26
33
  `), cB('base-select-menu-option-wrapper', `
27
34
  position: relative;
28
35
  width: 100%;
@@ -51,40 +58,37 @@ export default cB('base-select-menu', `
51
58
  cursor: pointer;
52
59
  position: relative;
53
60
  padding: var(--option-padding);
54
- white-space: nowrap;
55
61
  transition:
56
62
  background-color .3s var(--bezier),
57
63
  color .3s var(--bezier),
58
64
  opacity .3s var(--bezier);
59
- text-overflow: ellipsis;
60
- overflow: hidden;
61
65
  box-sizing: border-box;
62
66
  color: var(--option-text-color);
63
67
  opacity: 1;
64
- `, [c('&:active', {
65
- color: 'var(--option-text-color-pressed)'
66
- }), cM('grouped', {
67
- paddingLeft: 'calc(var(--option-padding-left) * 1.5)'
68
- }), cM('selected', {
69
- color: 'var(--option-text-color-active)'
70
- }), cM('disabled', {
71
- cursor: 'not-allowed'
72
- }, [cNotM('selected', {
73
- color: 'var(--option-text-color-disabled)'
74
- }), cM('selected', {
75
- opacity: 'var(--option-opacity-disabled)'
76
- })]), cM('pending', {
77
- backgroundColor: 'var(--option-color-pending)'
78
- }), cE('check', `
79
- font-size: 14px;
68
+ `, [c('&:active', `
69
+ color: var(--option-text-color-pressed);
70
+ `), cM('grouped', `
71
+ padding-left: calc(var(--option-padding-left) * 1.5);
72
+ `), cM('pending', `
73
+ background-color: var(--option-color-pending);
74
+ `), cM('selected', `
75
+ color: var(--option-text-color-active);
76
+ background-color: var(--option-color-active);
77
+ `), cM('disabled', `
78
+ cursor: not-allowed;
79
+ `, [cNotM('selected', `
80
+ color: var(--option-text-color-disabled);
81
+ `), cM('selected', `
82
+ opacity: var(--option-opacity-disabled);
83
+ `)]), cE('check', `
84
+ font-size: 16px;
80
85
  position: absolute;
81
86
  right: 8px;
82
- top: calc(var(--option-height) / 2 - 7px);
87
+ top: calc(50% - 7px);
83
88
  color: var(--option-check-color);
84
89
  transition: color .3s var(--bezier);
85
90
  `, [fadeInScaleUpTransition({
86
91
  enterScale: '0.5'
87
- })])]), cM('multiple', [cB('base-select-option', `
88
- position: relative;
92
+ })]), cM('multiple', [cB('base-select-option', `
89
93
  padding-right: 28px;
90
- `)])]);
94
+ `)])])]);
@@ -19,6 +19,7 @@ export declare const self: (vars: ThemeCommonVars) => {
19
19
  optionOpacityDisabled: string;
20
20
  optionCheckColor: string;
21
21
  optionColorPending: string;
22
+ optionColorActive: string;
22
23
  actionTextColor: string;
23
24
  loadingColor: string;
24
25
  height: string;
@@ -53,6 +54,7 @@ declare const internalSelectMenuLight: import("../../../_mixins").Theme<"Interna
53
54
  optionOpacityDisabled: string;
54
55
  optionCheckColor: string;
55
56
  optionColorPending: string;
57
+ optionColorActive: string;
56
58
  actionTextColor: string;
57
59
  loadingColor: string;
58
60
  height: string;
@@ -5,7 +5,7 @@ import commonVariables from './_common';
5
5
  import { createTheme } from '../../../_mixins';
6
6
  export const self = (vars) => {
7
7
  const { borderRadius, popoverColor, textColor3, dividerColor, textColor2, primaryColorPressed, textColorDisabled, primaryColor, opacityDisabled, hoverColor, fontSizeSmall, fontSizeMedium, fontSizeLarge, fontSizeHuge, heightSmall, heightMedium, heightLarge, heightHuge } = vars;
8
- return Object.assign(Object.assign({}, commonVariables), { optionFontSizeSmall: fontSizeSmall, optionFontSizeMedium: fontSizeMedium, optionFontSizeLarge: fontSizeLarge, optionFontSizeHuge: fontSizeHuge, optionHeightSmall: heightSmall, optionHeightMedium: heightMedium, optionHeightLarge: heightLarge, optionHeightHuge: heightHuge, borderRadius: borderRadius, color: popoverColor, groupHeaderTextColor: textColor3, actionDividerColor: dividerColor, optionTextColor: textColor2, optionTextColorPressed: primaryColorPressed, optionTextColorDisabled: textColorDisabled, optionTextColorActive: primaryColor, optionOpacityDisabled: opacityDisabled, optionCheckColor: primaryColor, optionColorPending: hoverColor, actionTextColor: textColor2, loadingColor: primaryColor });
8
+ return Object.assign(Object.assign({}, commonVariables), { optionFontSizeSmall: fontSizeSmall, optionFontSizeMedium: fontSizeMedium, optionFontSizeLarge: fontSizeLarge, optionFontSizeHuge: fontSizeHuge, optionHeightSmall: heightSmall, optionHeightMedium: heightMedium, optionHeightLarge: heightLarge, optionHeightHuge: heightHuge, borderRadius: borderRadius, color: popoverColor, groupHeaderTextColor: textColor3, actionDividerColor: dividerColor, optionTextColor: textColor2, optionTextColorPressed: primaryColorPressed, optionTextColorDisabled: textColorDisabled, optionTextColorActive: primaryColor, optionOpacityDisabled: opacityDisabled, optionCheckColor: primaryColor, optionColorPending: hoverColor, optionColorActive: hoverColor, actionTextColor: textColor2, loadingColor: primaryColor });
9
9
  };
10
10
  const internalSelectMenuLight = createTheme({
11
11
  name: 'InternalSelectMenu',
@@ -107,6 +107,7 @@ declare const _default: import("vue").DefineComponent<{
107
107
  fontSizeLarge: string;
108
108
  paddingSingle: string;
109
109
  clearSize: string;
110
+ arrowSize: string;
110
111
  }, {
111
112
  Popover: import("../../../_mixins").Theme<"Popover", {
112
113
  fontSize: string;
@@ -174,6 +175,7 @@ declare const _default: import("vue").DefineComponent<{
174
175
  fontSizeLarge: string;
175
176
  paddingSingle: string;
176
177
  clearSize: string;
178
+ arrowSize: string;
177
179
  }, {
178
180
  Popover: import("../../../_mixins").Theme<"Popover", {
179
181
  fontSize: string;
@@ -241,6 +243,7 @@ declare const _default: import("vue").DefineComponent<{
241
243
  fontSizeLarge: string;
242
244
  paddingSingle: string;
243
245
  clearSize: string;
246
+ arrowSize: string;
244
247
  }, {
245
248
  Popover: import("../../../_mixins").Theme<"Popover", {
246
249
  fontSize: string;
@@ -409,6 +412,7 @@ declare const _default: import("vue").DefineComponent<{
409
412
  fontSizeLarge: string;
410
413
  paddingSingle: string;
411
414
  clearSize: string;
415
+ arrowSize: string;
412
416
  };
413
417
  peers: {
414
418
  Popover: import("../../../_mixins").Theme<"Popover", {
@@ -523,6 +527,7 @@ declare const _default: import("vue").DefineComponent<{
523
527
  '--clear-color': string;
524
528
  '--clear-color-hover': string;
525
529
  '--clear-color-pressed': string;
530
+ '--arrow-size': string;
526
531
  }>;
527
532
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
528
533
  clsPrefix?: unknown;
@@ -628,6 +633,7 @@ declare const _default: import("vue").DefineComponent<{
628
633
  fontSizeLarge: string;
629
634
  paddingSingle: string;
630
635
  clearSize: string;
636
+ arrowSize: string;
631
637
  }, {
632
638
  Popover: import("../../../_mixins").Theme<"Popover", {
633
639
  fontSize: string;
@@ -695,6 +701,7 @@ declare const _default: import("vue").DefineComponent<{
695
701
  fontSizeLarge: string;
696
702
  paddingSingle: string;
697
703
  clearSize: string;
704
+ arrowSize: string;
698
705
  }, {
699
706
  Popover: import("../../../_mixins").Theme<"Popover", {
700
707
  fontSize: string;
@@ -762,6 +769,7 @@ declare const _default: import("vue").DefineComponent<{
762
769
  fontSizeLarge: string;
763
770
  paddingSingle: string;
764
771
  clearSize: string;
772
+ arrowSize: string;
765
773
  }, {
766
774
  Popover: import("../../../_mixins").Theme<"Popover", {
767
775
  fontSize: string;
@@ -52,9 +52,14 @@ export default defineComponent({
52
52
  });
53
53
  const filterablePlaceholderRef = computed(() => {
54
54
  return props.selectedOption
55
- ? props.renderLabel
56
- ? props.renderLabel(props.selectedOption, true)
57
- : render(props.selectedOption.label, props.selectedOption, true)
55
+ ? props.renderTag
56
+ ? props.renderTag({
57
+ option: props.selectedOption,
58
+ handleClose: () => { }
59
+ })
60
+ : props.renderLabel
61
+ ? props.renderLabel(props.selectedOption, true)
62
+ : render(props.selectedOption.label, props.selectedOption, true)
58
63
  : props.placeholder;
59
64
  });
60
65
  const labelRef = computed(() => {
@@ -327,7 +332,9 @@ export default defineComponent({
327
332
  // form error
328
333
  colorActiveError, boxShadowFocusError, boxShadowActiveError, boxShadowHoverError, borderError, borderFocusError, borderHoverError, borderActiveError,
329
334
  // clear
330
- clearColor, clearColorHover, clearColorPressed, clearSize, [createKey('height', size)]: height, [createKey('fontSize', size)]: fontSize } } = themeRef.value;
335
+ clearColor, clearColorHover, clearColorPressed, clearSize,
336
+ // arrow
337
+ arrowSize, [createKey('height', size)]: height, [createKey('fontSize', size)]: fontSize } } = themeRef.value;
331
338
  return {
332
339
  '--bezier': cubicBezierEaseInOut,
333
340
  '--border': border,
@@ -374,7 +381,9 @@ export default defineComponent({
374
381
  '--clear-size': clearSize,
375
382
  '--clear-color': clearColor,
376
383
  '--clear-color-hover': clearColorHover,
377
- '--clear-color-pressed': clearColorPressed
384
+ '--clear-color-pressed': clearColorPressed,
385
+ // arrow-size
386
+ '--arrow-size': arrowSize
378
387
  };
379
388
  })
380
389
  };
@@ -449,7 +458,7 @@ export default defineComponent({
449
458
  themeOverrides: this.mergedTheme.peerOverrides.Popover
450
459
  }
451
460
  : null;
452
- const placeholder = !this.selected && !this.pattern && !this.isCompositing ? (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-render-dom` }, this.placeholder)) : null;
461
+ const placeholder = !this.selected && !this.pattern && !this.isCompositing ? (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay` }, this.placeholder)) : null;
453
462
  if (filterable) {
454
463
  const popoverTrigger = (h("div", { ref: "patternInputWrapperRef", class: `${clsPrefix}-base-selection-tags` },
455
464
  tags,
@@ -480,19 +489,30 @@ export default defineComponent({
480
489
  (this.active || !this.selected) &&
481
490
  !this.isCompositing;
482
491
  body = (h("div", { ref: "patternInputWrapperRef", class: `${clsPrefix}-base-selection-label` },
483
- h("input", { ref: "patternInputRef", class: `${clsPrefix}-base-selection-label__input`, value: this.patternInputFocused && this.active ? this.pattern : '', placeholder: "", readonly: disabled, disabled: disabled, tabindex: -1, autofocus: this.autofocus, onFocus: this.handlePatternInputFocus, onBlur: this.handlePatternInputBlur, onInput: this.handlePatternInputInput, onCompositionstart: this.handleCompositionStart, onCompositionend: this.handleCompositionEnd }),
492
+ h("input", { ref: "patternInputRef", class: `${clsPrefix}-base-selection-input`, value: this.patternInputFocused && this.active ? this.pattern : '', placeholder: "", readonly: disabled, disabled: disabled, tabindex: -1, autofocus: this.autofocus, onFocus: this.handlePatternInputFocus, onBlur: this.handlePatternInputBlur, onInput: this.handlePatternInputInput, onCompositionstart: this.handleCompositionStart, onCompositionend: this.handleCompositionEnd }),
484
493
  showPlaceholder ? null : this.patternInputFocused &&
485
- this.active ? null : (h("div", { class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-render-dom`, key: "input" }, renderLabel
486
- ? renderLabel(this.selectedOption, true)
487
- : render(this.label, this.selectedOption, true))),
488
- showPlaceholder ? (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-render-dom`, key: "placeholder" }, this.filterablePlaceholder)) : null,
494
+ this.active ? null : (h("div", { class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-selection-overlay`, key: "input" }, renderTag
495
+ ? renderTag({
496
+ option: this.selectedOption,
497
+ handleClose: () => { }
498
+ })
499
+ : renderLabel
500
+ ? renderLabel(this.selectedOption, true)
501
+ : render(this.label, this.selectedOption, true))),
502
+ showPlaceholder ? (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" }, this.filterablePlaceholder)) : null,
489
503
  suffix));
490
504
  }
491
505
  else {
492
506
  body = (h("div", { ref: "singleElRef", class: `${clsPrefix}-base-selection-label`, tabindex: this.disabled ? undefined : 0 },
493
- this.label !== undefined ? (h("div", { class: `${clsPrefix}-base-selection-label__input`, title: getTitleAttribute(this.label), key: "input" }, renderLabel
494
- ? renderLabel(this.selectedOption, true)
495
- : render(this.label, this.selectedOption, true))) : (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-render-dom`, key: "placeholder" }, this.placeholder)),
507
+ this.label !== undefined ? (h("div", { class: `${clsPrefix}-base-selection-input`, title: getTitleAttribute(this.label), key: "input" },
508
+ h("div", { class: `${clsPrefix}-base-selection-input__content` }, renderTag
509
+ ? renderTag({
510
+ option: this.selectedOption,
511
+ handleClose: () => { }
512
+ })
513
+ : renderLabel
514
+ ? renderLabel(this.selectedOption, true)
515
+ : render(this.label, this.selectedOption, true)))) : (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" }, this.placeholder)),
496
516
  suffix));
497
517
  }
498
518
  }