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
@@ -20,6 +20,7 @@ import { c, cB, cE, cM, cNotM, insideFormItem } from '../../../../_utils/cssr';
20
20
  // --text-color
21
21
  // --text-color-disabled
22
22
  // --arrow-color
23
+ // --arrow-size
23
24
  // --loading-color
24
25
  // ...clear vars
25
26
  // ...form item vars
@@ -34,13 +35,10 @@ export default c([cB('base-selection', `
34
35
  vertical-align: bottom;
35
36
  border-radius: var(--border-radius);
36
37
  min-height: var(--height);
37
- line-height: var(--height);
38
+ line-height: 1.5;
38
39
  font-size: var(--font-size);
39
40
  `, [cB('base-loading', `
40
41
  color: var(--loading-color);
41
- `), cB('base-selection-label', `
42
- height: var(--height);
43
- line-height: var(--height);
44
42
  `), cB('base-selection-tags', {
45
43
  minHeight: 'var(--height)'
46
44
  }), cE('border, state-border', `
@@ -65,13 +63,14 @@ export default c([cB('base-selection', `
65
63
  transform: translateY(-50%);
66
64
  right: 10px;
67
65
  `, [cE('arrow', `
66
+ font-size: var(--arrow-size);
68
67
  color: var(--arrow-color);
69
68
  transition: color .3s var(--bezier);
70
- `)]), cB('base-render-dom', `
69
+ `)]), cB('base-selection-overlay', `
70
+ display: flex;
71
+ align-items: center;
71
72
  white-space: nowrap;
72
73
  overflow: hidden;
73
- height: var(--height);
74
- line-height: var(--height);
75
74
  pointer-events: none;
76
75
  position: absolute;
77
76
  top: 0;
@@ -101,7 +100,8 @@ export default c([cB('base-selection', `
101
100
  box-shadow .3s var(--bezier),
102
101
  background-color .3s var(--bezier);
103
102
  `), cB('base-selection-label', `
104
- display: inline-block;
103
+ height: var(--height);
104
+ display: inline-flex;
105
105
  width: 100%;
106
106
  vertical-align: bottom;
107
107
  cursor: pointer;
@@ -115,22 +115,24 @@ export default c([cB('base-selection', `
115
115
  background-color .3s var(--bezier);
116
116
  border-radius: inherit;
117
117
  background-color: var(--color);
118
- `, [cE('input', `
118
+ align-items: center;
119
+ `, [cB('base-selection-input', `
119
120
  line-height: inherit;
120
121
  outline: none;
121
122
  cursor: pointer;
122
123
  box-sizing: border-box;
123
- text-overflow: ellipsis;
124
- overflow: hidden;
125
124
  border:none;
126
125
  width: 100%;
127
- white-space: nowrap;
128
126
  padding: var(--padding-single);
129
127
  background-color: #0000;
130
128
  color: var(--text-color);
131
129
  transition: color .3s var(--bezier);
132
130
  caret-color: var(--caret-color);
133
- `), cE('render-label', `
131
+ `, [cE('content', `
132
+ text-overflow: ellipsis;
133
+ overflow: hidden;
134
+ white-space: nowrap;
135
+ `)]), cE('render-label', `
134
136
  color: var(--text-color);
135
137
  `)]), cNotM('disabled', [c('&:hover', [cE('state-border', `
136
138
  box-shadow: var(--box-shadow-hover);
@@ -152,7 +154,7 @@ export default c([cB('base-selection', `
152
154
  `), cB('base-selection-label', `
153
155
  cursor: not-allowed;
154
156
  background-color: var(--color-disabled);
155
- `, [cE('input', `
157
+ `, [cB('base-selection-input', `
156
158
  cursor: not-allowed;
157
159
  color: var(--text-color-disabled);
158
160
  `), cE('render-label', `
@@ -9,5 +9,6 @@ declare const _default: {
9
9
  fontSizeLarge: string;
10
10
  paddingSingle: string;
11
11
  clearSize: string;
12
+ arrowSize: string;
12
13
  };
13
14
  export default _default;
@@ -8,5 +8,6 @@ export default {
8
8
  fontSizeMedium: '14px',
9
9
  fontSizeLarge: '15px',
10
10
  paddingSingle: '0 26px 0 14px',
11
- clearSize: '16px'
11
+ clearSize: '16px',
12
+ arrowSize: '16px'
12
13
  };
@@ -50,6 +50,7 @@ declare const self: (vars: ThemeCommonVars) => {
50
50
  fontSizeLarge: string;
51
51
  paddingSingle: string;
52
52
  clearSize: string;
53
+ arrowSize: string;
53
54
  };
54
55
  export declare type InternalSelectionThemeVars = ReturnType<typeof self>;
55
56
  declare const internalSelectionLight: import("../../../_mixins").Theme<"InternalSelection", {
@@ -103,6 +104,7 @@ declare const internalSelectionLight: import("../../../_mixins").Theme<"Internal
103
104
  fontSizeLarge: string;
104
105
  paddingSingle: string;
105
106
  clearSize: string;
107
+ arrowSize: string;
106
108
  }, {
107
109
  Popover: import("../../../_mixins").Theme<"Popover", {
108
110
  fontSize: string;
@@ -87,7 +87,7 @@ const derived = Object.assign(Object.assign({ name: 'common' }, commonVariables)
87
87
  // close
88
88
  closeColor: neutral(Number(base.alphaClose)), closeColorHover: neutral(Number(base.alphaClose) * 1.25), closeColorPressed: neutral(Number(base.alphaClose) * 0.8), closeColorDisabled: neutral(base.alpha4),
89
89
  // clear
90
- clearColor: neutral(base.alpha4), clearColorHover: scaleColor(neutral(base.alpha4), { lightness: 0.75 }), clearColorPressed: scaleColor(neutral(base.alpha4), { lightness: 0.9 }), scrollbarColor: overlay(base.alphaScrollbar), scrollbarColorHover: overlay(base.alphaScrollbarHover), scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', progressRailColor: neutral(base.alphaProgressRail), railColor: 'rgb(219, 219, 223)', popoverColor: base.neutralPopover, tableColor: base.neutralCard, cardColor: base.neutralCard, modalColor: base.neutralModal, bodyColor: base.neutralBody, tagColor: 'rgb(250, 250, 252)', avatarColor: neutral(base.alphaAvatar), invertedColor: 'rgb(0, 20, 40)', inputColor: neutral(base.alphaInput), codeColor: 'rgb(244, 244, 248)', tabColor: 'rgb(250, 250, 252)', actionColor: 'rgb(250, 250, 252)', tableHeaderColor: 'rgb(250, 250, 252)', hoverColor: 'rgb(243, 243, 245)',
90
+ clearColor: neutral(base.alpha4), clearColorHover: scaleColor(neutral(base.alpha4), { lightness: 0.75 }), clearColorPressed: scaleColor(neutral(base.alpha4), { lightness: 0.9 }), scrollbarColor: overlay(base.alphaScrollbar), scrollbarColorHover: overlay(base.alphaScrollbarHover), scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', progressRailColor: neutral(base.alphaProgressRail), railColor: 'rgb(219, 219, 223)', popoverColor: base.neutralPopover, tableColor: base.neutralCard, cardColor: base.neutralCard, modalColor: base.neutralModal, bodyColor: base.neutralBody, tagColor: 'rgb(250, 250, 252)', avatarColor: neutral(base.alphaAvatar), invertedColor: 'rgb(0, 20, 40)', inputColor: neutral(base.alphaInput), codeColor: 'rgb(244, 244, 248)', tabColor: 'rgb(247, 247, 250)', actionColor: 'rgb(250, 250, 252)', tableHeaderColor: 'rgb(250, 250, 252)', hoverColor: 'rgb(243, 243, 245)',
91
91
  // use color with alpha since it can be nested with header filter & sorter effect
92
92
  tableColorHover: 'rgba(0, 0, 100, 0.02)', pressedColor: 'rgb(237, 237, 239)', opacityDisabled: base.alphaDisabled, inputColorDisabled: 'rgb(250, 250, 252)', boxShadow1: '0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)', boxShadow2: '0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)', boxShadow3: '0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)' });
93
93
  export default derived;
@@ -1,3 +1,3 @@
1
- export declare type Mutable<T> = {
1
+ export declare type Mutable<T> = T extends Record<string, unknown> ? {
2
2
  -readonly [P in keyof T]: T[P] extends ReadonlyArray<infer U> ? Array<Mutable<U>> : Mutable<T[P]>;
3
- };
3
+ } : T;
@@ -3,6 +3,10 @@ export interface AnchorInst {
3
3
  scrollTo: (href: string) => void;
4
4
  }
5
5
  declare const anchorProps: {
6
+ readonly type: {
7
+ readonly type: import("vue").PropType<"block" | "rail">;
8
+ readonly default: "rail";
9
+ };
6
10
  readonly showRail: {
7
11
  readonly type: BooleanConstructor;
8
12
  readonly default: true;
@@ -41,10 +45,7 @@ declare const anchorProps: {
41
45
  readonly validator: () => boolean;
42
46
  readonly default: undefined;
43
47
  };
44
- readonly affix: {
45
- readonly type: BooleanConstructor;
46
- readonly default: false;
47
- };
48
+ readonly affix: BooleanConstructor;
48
49
  readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Anchor", {
49
50
  borderRadius: string;
50
51
  railColor: string;
@@ -87,6 +88,10 @@ declare const anchorProps: {
87
88
  };
88
89
  export declare type AnchorProps = ExtractPublicPropTypes<typeof anchorProps>;
89
90
  declare const _default: import("vue").DefineComponent<{
91
+ readonly type: {
92
+ readonly type: import("vue").PropType<"block" | "rail">;
93
+ readonly default: "rail";
94
+ };
90
95
  readonly showRail: {
91
96
  readonly type: BooleanConstructor;
92
97
  readonly default: true;
@@ -125,10 +130,7 @@ declare const _default: import("vue").DefineComponent<{
125
130
  readonly validator: () => boolean;
126
131
  readonly default: undefined;
127
132
  };
128
- readonly affix: {
129
- readonly type: BooleanConstructor;
130
- readonly default: false;
131
- };
133
+ readonly affix: BooleanConstructor;
132
134
  readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Anchor", {
133
135
  borderRadius: string;
134
136
  railColor: string;
@@ -172,6 +174,7 @@ declare const _default: import("vue").DefineComponent<{
172
174
  scrollTo(href: string): void;
173
175
  renderAnchor: () => JSX.Element;
174
176
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
177
+ readonly type?: unknown;
175
178
  readonly showRail?: unknown;
176
179
  readonly showBackground?: unknown;
177
180
  readonly bound?: unknown;
@@ -191,6 +194,7 @@ declare const _default: import("vue").DefineComponent<{
191
194
  readonly themeOverrides?: unknown;
192
195
  readonly builtinThemeOverrides?: unknown;
193
196
  } & {
197
+ type: "block" | "rail";
194
198
  bound: number;
195
199
  position: "absolute" | "fix";
196
200
  affix: boolean;
@@ -247,6 +251,7 @@ declare const _default: import("vue").DefineComponent<{
247
251
  offsetBottom?: number | undefined;
248
252
  offsetTarget?: string | import("./utils").OffsetTarget | (() => HTMLElement) | undefined;
249
253
  }>, {
254
+ type: "block" | "rail";
250
255
  bound: number;
251
256
  position: "absolute" | "fix";
252
257
  target: (() => HTMLElement) | undefined;
@@ -6,10 +6,7 @@ import { keep } from '../../_utils';
6
6
  import { anchorLight } from '../styles';
7
7
  import style from './styles/index.cssr';
8
8
  import NBaseAnchor, { baseAnchorProps, baseAnchorPropKeys } from './BaseAnchor';
9
- const anchorProps = Object.assign(Object.assign(Object.assign(Object.assign({}, useTheme.props), { affix: {
10
- type: Boolean,
11
- default: false
12
- } }), affixProps), baseAnchorProps);
9
+ const anchorProps = Object.assign(Object.assign(Object.assign(Object.assign({}, useTheme.props), { affix: Boolean }), affixProps), baseAnchorProps);
13
10
  export default defineComponent({
14
11
  name: 'Anchor',
15
12
  props: anchorProps,
@@ -18,8 +15,9 @@ export default defineComponent({
18
15
  const themeRef = useTheme('Anchor', 'Anchor', style, anchorLight, props, mergedClsPrefixRef);
19
16
  const anchorRef = ref(null);
20
17
  const cssVarsRef = computed(() => {
21
- const { self: { railColor, linkColor, railColorActive, linkTextColor, linkTextColorHover, linkTextColorPressed, linkTextColorActive, linkFontSize, railWidth, linkPadding }, common: { cubicBezierEaseInOut } } = themeRef.value;
18
+ const { self: { railColor, linkColor, railColorActive, linkTextColor, linkTextColorHover, linkTextColorPressed, linkTextColorActive, linkFontSize, railWidth, linkPadding, borderRadius }, common: { cubicBezierEaseInOut } } = themeRef.value;
22
19
  return {
20
+ '--link-border-radius': borderRadius,
23
21
  '--link-color': linkColor,
24
22
  '--link-font-size': linkFontSize,
25
23
  '--link-text-color': linkTextColor,
@@ -4,6 +4,10 @@ export interface BaseAnchorInst {
4
4
  setActiveHref: (href: string) => void;
5
5
  }
6
6
  export declare const baseAnchorProps: {
7
+ readonly type: {
8
+ readonly type: PropType<"block" | "rail">;
9
+ readonly default: "rail";
10
+ };
7
11
  readonly showRail: {
8
12
  readonly type: BooleanConstructor;
9
13
  readonly default: true;
@@ -19,12 +23,16 @@ export declare const baseAnchorProps: {
19
23
  readonly ignoreGap: BooleanConstructor;
20
24
  readonly offsetTarget: PropType<string | OffsetTarget | (() => HTMLElement)>;
21
25
  };
22
- export declare const baseAnchorPropKeys: ("bound" | "showRail" | "showBackground" | "ignoreGap" | "offsetTarget")[];
26
+ export declare const baseAnchorPropKeys: ("type" | "bound" | "showRail" | "showBackground" | "ignoreGap" | "offsetTarget")[];
23
27
  declare const _default: import("vue").DefineComponent<{
24
28
  mergedClsPrefix: {
25
29
  type: StringConstructor;
26
30
  required: true;
27
31
  };
32
+ type: {
33
+ readonly type: PropType<"block" | "rail">;
34
+ readonly default: "rail";
35
+ };
28
36
  showRail: {
29
37
  readonly type: BooleanConstructor;
30
38
  readonly default: true;
@@ -45,14 +53,18 @@ declare const _default: import("vue").DefineComponent<{
45
53
  slotRef: import("vue").Ref<HTMLElement | null>;
46
54
  setActiveHref: (href: string, transition?: boolean) => void;
47
55
  activeHref: import("vue").Ref<string | null>;
56
+ isBlockType: import("vue").ComputedRef<boolean>;
57
+ mergedShowRail: import("vue").ComputedRef<boolean>;
48
58
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
49
59
  mergedClsPrefix?: unknown;
60
+ type?: unknown;
50
61
  showRail?: unknown;
51
62
  showBackground?: unknown;
52
63
  bound?: unknown;
53
64
  ignoreGap?: unknown;
54
65
  offsetTarget?: unknown;
55
66
  } & {
67
+ type: "block" | "rail";
56
68
  bound: number;
57
69
  mergedClsPrefix: string;
58
70
  showRail: boolean;
@@ -61,6 +73,7 @@ declare const _default: import("vue").DefineComponent<{
61
73
  } & {
62
74
  offsetTarget?: string | OffsetTarget | (() => HTMLElement) | undefined;
63
75
  }>, {
76
+ type: "block" | "rail";
64
77
  bound: number;
65
78
  showRail: boolean;
66
79
  showBackground: boolean;
@@ -1,4 +1,4 @@
1
- import { h, nextTick, ref, provide, defineComponent, watch, onBeforeUnmount, onMounted, toRef } from 'vue';
1
+ import { h, nextTick, ref, provide, defineComponent, watch, onBeforeUnmount, onMounted, toRef, computed } from 'vue';
2
2
  import { unwrapElement } from 'seemly';
3
3
  import { onFontsReady } from 'vooks';
4
4
  import { keysOf } from '../../_utils';
@@ -6,6 +6,10 @@ import { anchorInjectionKey } from './Link';
6
6
  import { throttle } from 'lodash-es';
7
7
  import { getOffset } from './utils';
8
8
  export const baseAnchorProps = {
9
+ type: {
10
+ type: String,
11
+ default: 'rail'
12
+ },
9
13
  showRail: {
10
14
  type: Boolean,
11
15
  default: true
@@ -35,6 +39,12 @@ export default defineComponent({
35
39
  const slotRef = ref(null);
36
40
  const barRef = ref(null);
37
41
  const selfRef = ref(null);
42
+ const isBlockTypeRef = computed(() => {
43
+ return props.type === 'block';
44
+ });
45
+ const mergedShowRailRef = computed(() => {
46
+ return !isBlockTypeRef.value && props.showRail;
47
+ });
38
48
  function disableTransitionOneTick() {
39
49
  const { value: barEl } = barRef;
40
50
  const { value: slotEl } = slotRef;
@@ -207,7 +217,7 @@ export default defineComponent({
207
217
  watch(activeHrefRef, (value) => {
208
218
  if (value === null) {
209
219
  const { value: slotEl } = slotRef;
210
- if (slotEl) {
220
+ if (slotEl && !isBlockTypeRef.value) {
211
221
  slotEl.style.maxWidth = '0';
212
222
  }
213
223
  }
@@ -217,18 +227,21 @@ export default defineComponent({
217
227
  barRef,
218
228
  slotRef,
219
229
  setActiveHref,
220
- activeHref: activeHrefRef
230
+ activeHref: activeHrefRef,
231
+ isBlockType: isBlockTypeRef,
232
+ mergedShowRail: mergedShowRailRef
221
233
  };
222
234
  },
223
235
  render() {
224
236
  var _a;
225
- const { mergedClsPrefix, $slots } = this;
237
+ const { mergedClsPrefix, mergedShowRail, isBlockType, $slots } = this;
226
238
  return (h("div", { class: [
227
239
  `${mergedClsPrefix}-anchor`,
228
- this.showRail && `${mergedClsPrefix}-anchor--show-rail`
240
+ isBlockType && `${mergedClsPrefix}-anchor--block`,
241
+ mergedShowRail && `${mergedClsPrefix}-anchor--show-rail`
229
242
  ], ref: "selfRef" },
230
- this.showRail && this.showBackground ? (h("div", { ref: "slotRef", class: `${mergedClsPrefix}-anchor-link-background` })) : null,
231
- this.showRail ? (h("div", { class: `${mergedClsPrefix}-anchor-rail` },
243
+ mergedShowRail && this.showBackground ? (h("div", { ref: "slotRef", class: `${mergedClsPrefix}-anchor-link-background` })) : null,
244
+ mergedShowRail ? (h("div", { class: `${mergedClsPrefix}-anchor-rail` },
232
245
  h("div", { ref: "barRef", class: [
233
246
  `${mergedClsPrefix}-anchor-rail__bar`,
234
247
  this.activeHref !== null &&
@@ -32,11 +32,11 @@ export default defineComponent({
32
32
  }
33
33
  return () => {
34
34
  const { value: mergedClsPrefix } = NAnchor.mergedClsPrefix;
35
- return (h("div", { class: `${mergedClsPrefix}-anchor-link` },
36
- h("a", { ref: titleRef, class: [
37
- `${mergedClsPrefix}-anchor-link__title`,
38
- activeRef.value && `${mergedClsPrefix}-anchor-link__title--active`
39
- ], href: props.href, title: getTitleAttribute(props.title), onClick: handleClick }, props.title),
35
+ return (h("div", { class: [
36
+ `${mergedClsPrefix}-anchor-link`,
37
+ activeRef.value && `${mergedClsPrefix}-anchor-link--active`
38
+ ] },
39
+ h("a", { ref: titleRef, class: [`${mergedClsPrefix}-anchor-link__title`], href: props.href, title: getTitleAttribute(props.title), onClick: handleClick }, props.title),
40
40
  renderSlot(slots, 'default')));
41
41
  };
42
42
  }
@@ -10,17 +10,30 @@ import { c, cE, cB, cM, cNotM } from '../../../_utils/cssr'; // vars:
10
10
  // --rail-color-active
11
11
  // --rail-width
12
12
  // --link-padding
13
+ // --link-border-radius
13
14
 
14
15
  export default cB('anchor', `
15
- padding-left: var(--rail-width);
16
16
  position: relative;
17
- `, [cB('anchor-link-background', `
18
- position: absolute;
19
- left: calc(var(--rail-width) / 2);
20
- width: 100%;
17
+ `, [cNotM('block', `
18
+ padding-left: var(--rail-width);
19
+ `, [cB('anchor-link', [c('+, >', [cB('anchor-link', `
20
+ margin-top: .5em;
21
+ `)])]), cB('anchor-link-background', `
21
22
  max-width: 0;
22
23
  border-top-right-radius: 10.5px;
23
24
  border-bottom-right-radius: 10.5px;
25
+ `), cNotM('show-rail', [c('>', [cB('anchor-link', 'padding-left: 0;')])])]), cM('block', [cB('anchor-link', `
26
+ margin-bottom: 4px;
27
+ padding: 2px 8px;
28
+ transition: background-color .3s var(--bezier);
29
+ background-color: transparent;
30
+ border-radius: var(--link-border-radius);
31
+ `, [cM('active', `
32
+ background-color: var(--link-color);
33
+ `)])]), cB('anchor-link-background', `
34
+ position: absolute;
35
+ left: calc(var(--rail-width) / 2);
36
+ width: 100%;
24
37
  background-color: var(--link-color);
25
38
  transition:
26
39
  top .15s var(--bezier),
@@ -47,8 +60,6 @@ export default cB('anchor', `
47
60
  background-color .3s var(--bezier);
48
61
  `, [cM('active', {
49
62
  backgroundColor: 'var(--rail-color-active)'
50
- })])]), cNotM('show-rail', [c('>', [cB('anchor-link', {
51
- paddingLeft: 0
52
63
  })])]), cB('anchor-link', `
53
64
  padding: var(--link-padding);
54
65
  position: relative;
@@ -57,8 +68,12 @@ export default cB('anchor', `
57
68
  min-height: 1.5em;
58
69
  display: flex;
59
70
  flex-direction: column;
60
- `, [c('+, >', [cB('anchor-link', `
61
- margin-top: .5em;
71
+ `, [cM('active', [cE('title', `
72
+ color: var(--link-text-color-active);
73
+ `)]), c('&:hover, &:focus', [cE('title', `
74
+ color: var(--link-text-color-hover);
75
+ `)]), c('&:active', [cE('title', `
76
+ color: var(--link-text-color-pressed);
62
77
  `)]), cE('title', `
63
78
  outline: none;
64
79
  max-width: 100%;
@@ -71,10 +86,4 @@ export default cB('anchor', `
71
86
  padding-right: 16px;
72
87
  transition: color .3s var(--bezier);
73
88
  color: var(--link-text-color);
74
- `, [c('&:hover, &:focus', {
75
- color: 'var(--link-text-color-hover)'
76
- }), c('&:active', {
77
- color: 'var(--link-text-color-pressed)'
78
- }), cM('active', {
79
- color: 'var(--link-text-color-active)'
80
- })])])]);
89
+ `)])]);
@@ -1,2 +1,3 @@
1
1
  export { default as NAutoComplete } from './src/AutoComplete';
2
2
  export type { AutoCompleteProps } from './src/AutoComplete';
3
+ export type { AutoCompleteOption, AutoCompleteGroupOption } from './src/interface';
@@ -72,6 +72,7 @@ declare const autoCompleteProps: {
72
72
  optionOpacityDisabled: string;
73
73
  optionCheckColor: string;
74
74
  optionColorPending: string;
75
+ optionColorActive: string;
75
76
  actionTextColor: string;
76
77
  loadingColor: string;
77
78
  height: string;
@@ -187,6 +188,7 @@ declare const autoCompleteProps: {
187
188
  optionOpacityDisabled: string;
188
189
  optionCheckColor: string;
189
190
  optionColorPending: string;
191
+ optionColorActive: string;
190
192
  actionTextColor: string;
191
193
  loadingColor: string;
192
194
  height: string;
@@ -302,6 +304,7 @@ declare const autoCompleteProps: {
302
304
  optionOpacityDisabled: string;
303
305
  optionCheckColor: string;
304
306
  optionColorPending: string;
307
+ optionColorActive: string;
305
308
  actionTextColor: string;
306
309
  loadingColor: string;
307
310
  height: string;
@@ -464,6 +467,7 @@ declare const _default: import("vue").DefineComponent<{
464
467
  optionOpacityDisabled: string;
465
468
  optionCheckColor: string;
466
469
  optionColorPending: string;
470
+ optionColorActive: string;
467
471
  actionTextColor: string;
468
472
  loadingColor: string;
469
473
  height: string;
@@ -579,6 +583,7 @@ declare const _default: import("vue").DefineComponent<{
579
583
  optionOpacityDisabled: string;
580
584
  optionCheckColor: string;
581
585
  optionColorPending: string;
586
+ optionColorActive: string;
582
587
  actionTextColor: string;
583
588
  loadingColor: string;
584
589
  height: string;
@@ -694,6 +699,7 @@ declare const _default: import("vue").DefineComponent<{
694
699
  optionOpacityDisabled: string;
695
700
  optionCheckColor: string;
696
701
  optionColorPending: string;
702
+ optionColorActive: string;
697
703
  actionTextColor: string;
698
704
  loadingColor: string;
699
705
  height: string;
@@ -935,6 +941,7 @@ declare const _default: import("vue").DefineComponent<{
935
941
  optionOpacityDisabled: string;
936
942
  optionCheckColor: string;
937
943
  optionColorPending: string;
944
+ optionColorActive: string;
938
945
  actionTextColor: string;
939
946
  loadingColor: string;
940
947
  height: string;
@@ -1125,6 +1132,7 @@ declare const _default: import("vue").DefineComponent<{
1125
1132
  optionOpacityDisabled: string;
1126
1133
  optionCheckColor: string;
1127
1134
  optionColorPending: string;
1135
+ optionColorActive: string;
1128
1136
  actionTextColor: string;
1129
1137
  loadingColor: string;
1130
1138
  height: string;
@@ -1240,6 +1248,7 @@ declare const _default: import("vue").DefineComponent<{
1240
1248
  optionOpacityDisabled: string;
1241
1249
  optionCheckColor: string;
1242
1250
  optionColorPending: string;
1251
+ optionColorActive: string;
1243
1252
  actionTextColor: string;
1244
1253
  loadingColor: string;
1245
1254
  height: string;
@@ -1355,6 +1364,7 @@ declare const _default: import("vue").DefineComponent<{
1355
1364
  optionOpacityDisabled: string;
1356
1365
  optionCheckColor: string;
1357
1366
  optionColorPending: string;
1367
+ optionColorActive: string;
1358
1368
  actionTextColor: string;
1359
1369
  loadingColor: string;
1360
1370
  height: string;
@@ -1,7 +1,7 @@
1
1
  import { SelectGroupOption, SelectBaseOption } from '../../select/src/interface';
2
2
  export declare type AutoCompleteOption = SelectBaseOption<string, string>;
3
3
  export interface AutoCompleteGroupOption extends Omit<SelectGroupOption, 'children'> {
4
- children: string[];
4
+ children: AutoCompleteOptions;
5
5
  }
6
6
  export declare type AutoCompleteOptions = Array<AutoCompleteOption | AutoCompleteGroupOption | string>;
7
7
  export declare type OnUpdateValue = (value: string & (string | null)) => void;
@@ -25,6 +25,7 @@ declare const autoCompleteLight: import("../../_mixins").Theme<"AutoComplete", {
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;
@@ -55,6 +55,7 @@ export default c([c('@keyframes badge-wave-spread', {
55
55
  left: 100%;
56
56
  bottom: calc(100% - 9px);
57
57
  font-variant-numeric: tabular-nums;
58
+ z-index: 1;
58
59
  `, [fadeInScaleUpTransition({
59
60
  transformOrigin: 'left bottom',
60
61
  originalTransform: 'translateX(-50%)'