naive-ui 2.18.1 → 2.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/es/_internal/clear/src/Clear.d.ts +1 -4
  2. package/es/_internal/clear/src/Clear.js +1 -4
  3. package/es/_internal/icons/Checkmark.js +3 -2
  4. package/es/_internal/select-menu/src/SelectMenu.d.ts +173 -0
  5. package/es/_internal/select-menu/src/SelectMenu.js +9 -6
  6. package/es/_internal/select-menu/src/SelectOption.js +2 -1
  7. package/es/_internal/select-menu/src/styles/index.cssr.js +32 -28
  8. package/es/_internal/select-menu/styles/light.d.ts +2 -0
  9. package/es/_internal/select-menu/styles/light.js +1 -1
  10. package/es/_internal/selection/src/Selection.d.ts +64 -56
  11. package/es/_internal/selection/src/Selection.js +34 -14
  12. package/es/_internal/selection/src/styles/index.cssr.js +16 -14
  13. package/es/_internal/selection/styles/_common.d.ts +1 -8
  14. package/es/_internal/selection/styles/_common.js +2 -9
  15. package/es/_internal/selection/styles/dark.js +10 -2
  16. package/es/_internal/selection/styles/light.d.ts +18 -16
  17. package/es/_internal/selection/styles/light.js +10 -2
  18. package/es/_mixins/use-rtl.js +1 -1
  19. package/es/_styles/common/light.js +1 -1
  20. package/es/_utils/naive/mutable.d.ts +2 -2
  21. package/es/alert/src/Alert.js +15 -16
  22. package/es/anchor/src/AnchorAdapter.d.ts +13 -8
  23. package/es/anchor/src/AnchorAdapter.js +3 -5
  24. package/es/anchor/src/BaseAnchor.d.ts +14 -1
  25. package/es/anchor/src/BaseAnchor.js +20 -7
  26. package/es/anchor/src/Link.js +5 -5
  27. package/es/anchor/src/styles/index.cssr.js +25 -16
  28. package/es/auto-complete/index.d.ts +1 -0
  29. package/es/auto-complete/src/AutoComplete.d.ts +10 -0
  30. package/es/auto-complete/src/interface.d.ts +1 -1
  31. package/es/auto-complete/styles/light.d.ts +1 -0
  32. package/es/badge/src/styles/index.cssr.js +1 -0
  33. package/es/card/src/Card.d.ts +17 -1
  34. package/es/card/src/Card.js +3 -2
  35. package/es/card/styles/dark.js +6 -1
  36. package/es/card/styles/light.d.ts +1 -0
  37. package/es/card/styles/light.js +2 -2
  38. package/es/cascader/src/Cascader.d.ts +100 -80
  39. package/es/cascader/src/Cascader.js +28 -19
  40. package/es/cascader/src/CascaderMenu.js +17 -15
  41. package/es/cascader/src/CascaderOption.d.ts +10 -8
  42. package/es/cascader/src/CascaderSelectMenu.d.ts +10 -8
  43. package/es/cascader/src/CascaderSubmenu.d.ts +10 -8
  44. package/es/cascader/src/interface.d.ts +2 -2
  45. package/es/cascader/src/styles/index.cssr.js +6 -1
  46. package/es/cascader/styles/light.d.ts +10 -8
  47. package/es/checkbox/src/Checkbox.d.ts +1 -0
  48. package/es/checkbox/src/Checkbox.js +5 -3
  49. package/es/checkbox/src/CheckboxGroup.js +1 -1
  50. package/es/composables/use-theme-vars.js +5 -5
  51. package/es/config-provider/src/internal-interface.d.ts +2 -0
  52. package/es/data-table/src/DataTable.d.ts +110 -88
  53. package/es/data-table/src/HeaderButton/FilterButton.d.ts +20 -16
  54. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +20 -16
  55. package/es/data-table/src/TableParts/Body.d.ts +20 -16
  56. package/es/data-table/src/TableParts/Cell.d.ts +40 -32
  57. package/es/data-table/src/TableParts/Header.d.ts +20 -16
  58. package/es/data-table/styles/light.d.ts +10 -8
  59. package/es/date-picker/src/DatePicker.d.ts +8 -3
  60. package/es/date-picker/src/DatePicker.js +2 -2
  61. package/es/date-picker/src/panel/date.d.ts +3 -3
  62. package/es/date-picker/src/panel/date.js +10 -1
  63. package/es/date-picker/src/panel/daterange.js +10 -1
  64. package/es/date-picker/src/panel/datetimerange.js +10 -1
  65. package/es/descriptions/src/Descriptions.d.ts +4 -17
  66. package/es/descriptions/src/Descriptions.js +2 -8
  67. package/es/dialog/src/DialogProvider.d.ts +20 -20
  68. package/es/drawer/src/styles/index.cssr.js +2 -0
  69. package/es/dropdown/src/Dropdown.d.ts +9 -23
  70. package/es/dynamic-tags/src/DynamicTags.js +2 -1
  71. package/es/empty/src/Empty.d.ts +6 -1
  72. package/es/empty/src/Empty.js +16 -4
  73. package/es/form/src/FormItemGridItem.d.ts +1 -1
  74. package/es/form/src/FormItemGridItem.js +2 -2
  75. package/es/global-style/src/GlobalStyle.js +13 -3
  76. package/es/grid/src/GridItem.d.ts +2 -2
  77. package/es/grid/src/GridItem.js +1 -1
  78. package/es/input-number/src/InputNumber.d.ts +8 -3
  79. package/es/input-number/src/InputNumber.js +4 -4
  80. package/es/jest-setup.js +3 -1
  81. package/es/layout/src/Layout.d.ts +18 -4
  82. package/es/layout/src/LayoutContent.d.ts +9 -2
  83. package/es/layout/src/LayoutFooter.d.ts +9 -0
  84. package/es/layout/src/LayoutHeader.d.ts +6 -0
  85. package/es/layout/src/LayoutSider.d.ts +11 -0
  86. package/es/layout/src/LayoutSider.js +4 -2
  87. package/es/layout/src/ToggleButton.js +7 -3
  88. package/es/layout/src/styles/layout-sider.cssr.js +31 -15
  89. package/es/layout/styles/dark.js +3 -2
  90. package/es/layout/styles/light.d.ts +2 -0
  91. package/es/layout/styles/light.js +3 -2
  92. package/es/locales/common/enUS.js +1 -1
  93. package/es/locales/common/ruRU.js +1 -1
  94. package/es/locales/common/ukUA.d.ts +3 -0
  95. package/es/locales/common/ukUA.js +92 -0
  96. package/es/locales/common/zhCN.js +1 -1
  97. package/es/locales/date/ukUA.d.ts +3 -0
  98. package/es/locales/date/ukUA.js +6 -0
  99. package/es/locales/index.d.ts +2 -0
  100. package/es/locales/index.js +2 -0
  101. package/es/mention/src/Mention.d.ts +10 -0
  102. package/es/mention/styles/light.d.ts +1 -0
  103. package/es/menu/src/Menu.d.ts +6 -1
  104. package/es/menu/src/Menu.js +10 -1
  105. package/es/menu/src/MenuOption.d.ts +3 -1
  106. package/es/menu/src/MenuOptionContent.d.ts +3 -1
  107. package/es/menu/src/Submenu.d.ts +3 -1
  108. package/es/modal/src/BodyWrapper.d.ts +5 -0
  109. package/es/modal/src/Modal.d.ts +36 -55
  110. package/es/modal/src/Modal.js +18 -39
  111. package/es/modal/src/presetProps.d.ts +2 -1
  112. package/es/modal/styles/light.d.ts +1 -0
  113. package/es/notification/src/Notification.d.ts +1 -1
  114. package/es/notification/src/NotificationEnvironment.d.ts +1 -1
  115. package/es/notification/src/NotificationProvider.d.ts +16 -16
  116. package/es/page-header/src/PageHeader.d.ts +1 -0
  117. package/es/page-header/src/PageHeader.js +8 -2
  118. package/es/page-header/src/styles/rtl.cssr.d.ts +2 -0
  119. package/es/page-header/src/styles/rtl.cssr.js +19 -0
  120. package/es/page-header/styles/index.d.ts +1 -0
  121. package/es/page-header/styles/index.js +1 -0
  122. package/es/page-header/styles/rtl.d.ts +5 -0
  123. package/es/page-header/styles/rtl.js +5 -0
  124. package/es/pagination/src/Pagination.d.ts +111 -100
  125. package/es/pagination/styles/light.d.ts +10 -8
  126. package/es/popconfirm/src/Popconfirm.d.ts +8 -22
  127. package/es/popover/src/Popover.d.ts +12 -32
  128. package/es/popover/src/Popover.js +25 -18
  129. package/es/popover/src/PopoverBody.d.ts +2 -2
  130. package/es/popover/src/PopoverBody.js +4 -2
  131. package/es/popselect/src/Popselect.d.ts +18 -22
  132. package/es/popselect/src/PopselectPanel.d.ts +1 -0
  133. package/es/popselect/src/PopselectPanel.js +38 -19
  134. package/es/popselect/styles/light.d.ts +1 -0
  135. package/es/select/src/Select.d.ts +111 -83
  136. package/es/select/src/Select.js +55 -56
  137. package/es/select/src/interface.d.ts +2 -2
  138. package/es/select/styles/light.d.ts +10 -8
  139. package/es/spin/src/Spin.d.ts +34 -25
  140. package/es/spin/src/Spin.js +27 -20
  141. package/es/spin/src/styles/index.cssr.js +23 -9
  142. package/es/spin/styles/light.d.ts +2 -0
  143. package/es/spin/styles/light.js +3 -1
  144. package/es/styles.d.ts +1 -0
  145. package/es/styles.js +1 -0
  146. package/es/tabs/src/Tab.d.ts +1 -1
  147. package/es/tabs/src/Tab.js +4 -6
  148. package/es/tabs/src/Tabs.d.ts +133 -42
  149. package/es/tabs/src/Tabs.js +37 -38
  150. package/es/tabs/src/interface.d.ts +2 -1
  151. package/es/tabs/src/styles/index.cssr.js +34 -10
  152. package/es/tabs/styles/_common.d.ts +6 -0
  153. package/es/tabs/styles/_common.js +6 -0
  154. package/es/tabs/styles/dark.js +7 -1
  155. package/es/tabs/styles/light.d.ts +13 -0
  156. package/es/tabs/styles/light.js +3 -3
  157. package/es/tag/src/styles/index.cssr.js +1 -1
  158. package/es/time/src/Time.d.ts +14 -22
  159. package/es/time/src/Time.js +32 -18
  160. package/es/time-picker/src/TimePicker.d.ts +5 -0
  161. package/es/time-picker/src/TimePicker.js +2 -2
  162. package/es/tooltip/src/Tooltip.d.ts +8 -22
  163. package/es/transfer/src/TransferList.d.ts +1 -1
  164. package/es/tree/src/Tree.d.ts +25 -10
  165. package/es/tree/src/Tree.js +34 -11
  166. package/es/tree/src/TreeNode.js +5 -2
  167. package/es/tree/src/interface.d.ts +2 -2
  168. package/es/tree-select/src/TreeSelect.d.ts +103 -81
  169. package/es/tree-select/src/TreeSelect.js +36 -40
  170. package/es/tree-select/src/interface.d.ts +2 -2
  171. package/es/tree-select/styles/light.d.ts +9 -8
  172. package/es/typography/src/blockquote.d.ts +2 -8
  173. package/es/typography/src/blockquote.js +1 -4
  174. package/es/typography/src/ol.d.ts +2 -8
  175. package/es/typography/src/ol.js +1 -4
  176. package/es/typography/src/p.d.ts +2 -2
  177. package/es/typography/src/p.js +1 -1
  178. package/es/typography/src/text.d.ts +14 -58
  179. package/es/typography/src/text.js +2 -23
  180. package/es/typography/src/ul.d.ts +2 -8
  181. package/es/typography/src/ul.js +1 -4
  182. package/es/upload/index.d.ts +2 -0
  183. package/es/upload/index.js +2 -0
  184. package/es/upload/src/Upload.d.ts +16 -68
  185. package/es/upload/src/Upload.js +71 -98
  186. package/es/upload/src/UploadDragger.js +7 -1
  187. package/es/upload/src/UploadFileList.d.ts +2 -0
  188. package/es/upload/src/UploadFileList.js +34 -0
  189. package/es/upload/src/UploadProgress.d.ts +0 -7
  190. package/es/upload/src/UploadProgress.js +1 -5
  191. package/es/upload/src/UploadTrigger.d.ts +12 -0
  192. package/es/upload/src/UploadTrigger.js +63 -0
  193. package/es/upload/src/interface.d.ts +13 -2
  194. package/es/upload/src/styles/index.cssr.js +40 -32
  195. package/es/version.d.ts +1 -1
  196. package/es/version.js +1 -1
  197. package/lib/_internal/clear/src/Clear.d.ts +1 -4
  198. package/lib/_internal/clear/src/Clear.js +1 -4
  199. package/lib/_internal/icons/Checkmark.js +3 -2
  200. package/lib/_internal/select-menu/src/SelectMenu.d.ts +173 -0
  201. package/lib/_internal/select-menu/src/SelectMenu.js +9 -6
  202. package/lib/_internal/select-menu/src/SelectOption.js +2 -1
  203. package/lib/_internal/select-menu/src/styles/index.cssr.js +32 -28
  204. package/lib/_internal/select-menu/styles/light.d.ts +2 -0
  205. package/lib/_internal/select-menu/styles/light.js +1 -1
  206. package/lib/_internal/selection/src/Selection.d.ts +64 -56
  207. package/lib/_internal/selection/src/Selection.js +34 -14
  208. package/lib/_internal/selection/src/styles/index.cssr.js +16 -14
  209. package/lib/_internal/selection/styles/_common.d.ts +1 -8
  210. package/lib/_internal/selection/styles/_common.js +2 -9
  211. package/lib/_internal/selection/styles/dark.js +10 -2
  212. package/lib/_internal/selection/styles/light.d.ts +18 -16
  213. package/lib/_internal/selection/styles/light.js +10 -2
  214. package/lib/_mixins/use-rtl.js +1 -1
  215. package/lib/_styles/common/light.js +1 -1
  216. package/lib/_utils/naive/mutable.d.ts +2 -2
  217. package/lib/alert/src/Alert.js +15 -16
  218. package/lib/anchor/src/AnchorAdapter.d.ts +13 -8
  219. package/lib/anchor/src/AnchorAdapter.js +3 -5
  220. package/lib/anchor/src/BaseAnchor.d.ts +14 -1
  221. package/lib/anchor/src/BaseAnchor.js +19 -6
  222. package/lib/anchor/src/Link.js +5 -5
  223. package/lib/anchor/src/styles/index.cssr.js +25 -16
  224. package/lib/auto-complete/index.d.ts +1 -0
  225. package/lib/auto-complete/src/AutoComplete.d.ts +10 -0
  226. package/lib/auto-complete/src/interface.d.ts +1 -1
  227. package/lib/auto-complete/styles/light.d.ts +1 -0
  228. package/lib/badge/src/styles/index.cssr.js +1 -0
  229. package/lib/card/src/Card.d.ts +17 -1
  230. package/lib/card/src/Card.js +3 -2
  231. package/lib/card/styles/dark.js +6 -1
  232. package/lib/card/styles/light.d.ts +1 -0
  233. package/lib/card/styles/light.js +2 -2
  234. package/lib/cascader/src/Cascader.d.ts +100 -80
  235. package/lib/cascader/src/Cascader.js +28 -19
  236. package/lib/cascader/src/CascaderMenu.js +16 -14
  237. package/lib/cascader/src/CascaderOption.d.ts +10 -8
  238. package/lib/cascader/src/CascaderSelectMenu.d.ts +10 -8
  239. package/lib/cascader/src/CascaderSubmenu.d.ts +10 -8
  240. package/lib/cascader/src/interface.d.ts +2 -2
  241. package/lib/cascader/src/styles/index.cssr.js +6 -1
  242. package/lib/cascader/styles/light.d.ts +10 -8
  243. package/lib/checkbox/src/Checkbox.d.ts +1 -0
  244. package/lib/checkbox/src/Checkbox.js +5 -3
  245. package/lib/checkbox/src/CheckboxGroup.js +1 -1
  246. package/lib/composables/use-theme-vars.js +5 -5
  247. package/lib/config-provider/src/internal-interface.d.ts +2 -0
  248. package/lib/data-table/src/DataTable.d.ts +110 -88
  249. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +20 -16
  250. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +20 -16
  251. package/lib/data-table/src/TableParts/Body.d.ts +20 -16
  252. package/lib/data-table/src/TableParts/Cell.d.ts +40 -32
  253. package/lib/data-table/src/TableParts/Header.d.ts +20 -16
  254. package/lib/data-table/styles/light.d.ts +10 -8
  255. package/lib/date-picker/src/DatePicker.d.ts +8 -3
  256. package/lib/date-picker/src/DatePicker.js +2 -2
  257. package/lib/date-picker/src/panel/date.d.ts +3 -3
  258. package/lib/date-picker/src/panel/date.js +9 -0
  259. package/lib/date-picker/src/panel/daterange.js +9 -0
  260. package/lib/date-picker/src/panel/datetimerange.js +9 -0
  261. package/lib/descriptions/src/Descriptions.d.ts +4 -17
  262. package/lib/descriptions/src/Descriptions.js +2 -8
  263. package/lib/dialog/src/DialogProvider.d.ts +20 -20
  264. package/lib/drawer/src/styles/index.cssr.js +2 -0
  265. package/lib/dropdown/src/Dropdown.d.ts +9 -23
  266. package/lib/dynamic-tags/src/DynamicTags.js +2 -1
  267. package/lib/empty/src/Empty.d.ts +6 -1
  268. package/lib/empty/src/Empty.js +15 -3
  269. package/lib/form/src/FormItemGridItem.d.ts +1 -1
  270. package/lib/form/src/FormItemGridItem.js +2 -2
  271. package/lib/global-style/src/GlobalStyle.js +13 -3
  272. package/lib/grid/src/GridItem.d.ts +2 -2
  273. package/lib/grid/src/GridItem.js +1 -1
  274. package/lib/input-number/src/InputNumber.d.ts +8 -3
  275. package/lib/input-number/src/InputNumber.js +4 -4
  276. package/lib/jest-setup.js +3 -1
  277. package/lib/layout/src/Layout.d.ts +18 -4
  278. package/lib/layout/src/LayoutContent.d.ts +9 -2
  279. package/lib/layout/src/LayoutFooter.d.ts +9 -0
  280. package/lib/layout/src/LayoutHeader.d.ts +6 -0
  281. package/lib/layout/src/LayoutSider.d.ts +11 -0
  282. package/lib/layout/src/LayoutSider.js +4 -2
  283. package/lib/layout/src/ToggleButton.js +7 -3
  284. package/lib/layout/src/styles/layout-sider.cssr.js +31 -15
  285. package/lib/layout/styles/dark.js +3 -2
  286. package/lib/layout/styles/light.d.ts +2 -0
  287. package/lib/layout/styles/light.js +3 -2
  288. package/lib/locales/common/enUS.js +1 -1
  289. package/lib/locales/common/ruRU.js +1 -1
  290. package/lib/locales/common/ukUA.d.ts +3 -0
  291. package/lib/locales/common/ukUA.js +94 -0
  292. package/lib/locales/common/zhCN.js +1 -1
  293. package/lib/locales/date/ukUA.d.ts +3 -0
  294. package/lib/locales/date/ukUA.js +8 -0
  295. package/lib/locales/index.d.ts +2 -0
  296. package/lib/locales/index.js +5 -1
  297. package/lib/mention/src/Mention.d.ts +10 -0
  298. package/lib/mention/styles/light.d.ts +1 -0
  299. package/lib/menu/src/Menu.d.ts +6 -1
  300. package/lib/menu/src/Menu.js +10 -1
  301. package/lib/menu/src/MenuOption.d.ts +3 -1
  302. package/lib/menu/src/MenuOptionContent.d.ts +3 -1
  303. package/lib/menu/src/Submenu.d.ts +3 -1
  304. package/lib/modal/src/BodyWrapper.d.ts +5 -0
  305. package/lib/modal/src/Modal.d.ts +36 -55
  306. package/lib/modal/src/Modal.js +17 -38
  307. package/lib/modal/src/presetProps.d.ts +2 -1
  308. package/lib/modal/styles/light.d.ts +1 -0
  309. package/lib/notification/src/Notification.d.ts +1 -1
  310. package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
  311. package/lib/notification/src/NotificationProvider.d.ts +16 -16
  312. package/lib/page-header/src/PageHeader.d.ts +1 -0
  313. package/lib/page-header/src/PageHeader.js +8 -2
  314. package/lib/page-header/src/styles/rtl.cssr.d.ts +2 -0
  315. package/lib/page-header/src/styles/rtl.cssr.js +26 -0
  316. package/lib/page-header/styles/index.d.ts +1 -0
  317. package/lib/page-header/styles/index.js +3 -1
  318. package/lib/page-header/styles/rtl.d.ts +5 -0
  319. package/lib/page-header/styles/rtl.js +7 -0
  320. package/lib/pagination/src/Pagination.d.ts +111 -100
  321. package/lib/pagination/styles/light.d.ts +10 -8
  322. package/lib/popconfirm/src/Popconfirm.d.ts +8 -22
  323. package/lib/popover/src/Popover.d.ts +12 -32
  324. package/lib/popover/src/Popover.js +23 -16
  325. package/lib/popover/src/PopoverBody.d.ts +2 -2
  326. package/lib/popover/src/PopoverBody.js +4 -2
  327. package/lib/popselect/src/Popselect.d.ts +18 -22
  328. package/lib/popselect/src/PopselectPanel.d.ts +1 -0
  329. package/lib/popselect/src/PopselectPanel.js +38 -19
  330. package/lib/popselect/styles/light.d.ts +1 -0
  331. package/lib/select/src/Select.d.ts +111 -83
  332. package/lib/select/src/Select.js +55 -56
  333. package/lib/select/src/interface.d.ts +2 -2
  334. package/lib/select/styles/light.d.ts +10 -8
  335. package/lib/spin/src/Spin.d.ts +34 -25
  336. package/lib/spin/src/Spin.js +25 -18
  337. package/lib/spin/src/styles/index.cssr.js +23 -9
  338. package/lib/spin/styles/light.d.ts +2 -0
  339. package/lib/spin/styles/light.js +3 -1
  340. package/lib/styles.d.ts +1 -0
  341. package/lib/styles.js +63 -61
  342. package/lib/tabs/src/Tab.d.ts +1 -1
  343. package/lib/tabs/src/Tab.js +4 -6
  344. package/lib/tabs/src/Tabs.d.ts +133 -42
  345. package/lib/tabs/src/Tabs.js +36 -37
  346. package/lib/tabs/src/interface.d.ts +2 -1
  347. package/lib/tabs/src/styles/index.cssr.js +34 -10
  348. package/lib/tabs/styles/_common.d.ts +6 -0
  349. package/lib/tabs/styles/_common.js +6 -0
  350. package/lib/tabs/styles/dark.js +7 -1
  351. package/lib/tabs/styles/light.d.ts +13 -0
  352. package/lib/tabs/styles/light.js +3 -3
  353. package/lib/tag/src/styles/index.cssr.js +1 -1
  354. package/lib/time/src/Time.d.ts +14 -22
  355. package/lib/time/src/Time.js +31 -17
  356. package/lib/time-picker/src/TimePicker.d.ts +5 -0
  357. package/lib/time-picker/src/TimePicker.js +2 -2
  358. package/lib/tooltip/src/Tooltip.d.ts +8 -22
  359. package/lib/transfer/src/TransferList.d.ts +1 -1
  360. package/lib/tree/src/Tree.d.ts +25 -10
  361. package/lib/tree/src/Tree.js +34 -11
  362. package/lib/tree/src/TreeNode.js +5 -2
  363. package/lib/tree/src/interface.d.ts +2 -2
  364. package/lib/tree-select/src/TreeSelect.d.ts +103 -81
  365. package/lib/tree-select/src/TreeSelect.js +36 -40
  366. package/lib/tree-select/src/interface.d.ts +2 -2
  367. package/lib/tree-select/styles/light.d.ts +9 -8
  368. package/lib/typography/src/blockquote.d.ts +2 -8
  369. package/lib/typography/src/blockquote.js +1 -4
  370. package/lib/typography/src/ol.d.ts +2 -8
  371. package/lib/typography/src/ol.js +1 -4
  372. package/lib/typography/src/p.d.ts +2 -2
  373. package/lib/typography/src/p.js +1 -1
  374. package/lib/typography/src/text.d.ts +14 -58
  375. package/lib/typography/src/text.js +2 -23
  376. package/lib/typography/src/ul.d.ts +2 -8
  377. package/lib/typography/src/ul.js +1 -4
  378. package/lib/upload/index.d.ts +2 -0
  379. package/lib/upload/index.js +5 -1
  380. package/lib/upload/src/Upload.d.ts +16 -68
  381. package/lib/upload/src/Upload.js +68 -95
  382. package/lib/upload/src/UploadDragger.js +7 -1
  383. package/lib/upload/src/UploadFileList.d.ts +2 -0
  384. package/lib/upload/src/UploadFileList.js +36 -0
  385. package/lib/upload/src/UploadProgress.d.ts +0 -7
  386. package/lib/upload/src/UploadProgress.js +1 -5
  387. package/lib/upload/src/UploadTrigger.d.ts +12 -0
  388. package/lib/upload/src/UploadTrigger.js +65 -0
  389. package/lib/upload/src/interface.d.ts +13 -2
  390. package/lib/upload/src/styles/index.cssr.js +40 -32
  391. package/lib/version.d.ts +1 -1
  392. package/lib/version.js +1 -1
  393. package/package.json +9 -7
  394. package/web-types.json +239 -13
@@ -57,6 +57,14 @@ declare const _default: import("vue").DefineComponent<{
57
57
  onPatternInput: PropType<(e: InputEvent) => void>;
58
58
  renderLabel: PropType<RenderLabel>;
59
59
  theme: PropType<import("../../../_mixins").Theme<"InternalSelection", {
60
+ fontSizeTiny: string;
61
+ fontSizeSmall: string;
62
+ fontSizeMedium: string;
63
+ fontSizeLarge: string;
64
+ heightTiny: string;
65
+ heightSmall: string;
66
+ heightMedium: string;
67
+ heightLarge: string;
60
68
  borderRadius: string;
61
69
  textColor: string;
62
70
  textColorDisabled: string;
@@ -97,16 +105,9 @@ declare const _default: import("vue").DefineComponent<{
97
105
  clearColor: string;
98
106
  clearColorHover: string;
99
107
  clearColorPressed: string;
100
- heightTiny: string;
101
- heightSmall: string;
102
- heightMedium: string;
103
- heightLarge: string;
104
- fontSizeTiny: string;
105
- fontSizeSmall: string;
106
- fontSizeMedium: string;
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;
@@ -124,6 +125,14 @@ declare const _default: import("vue").DefineComponent<{
124
125
  }, any>;
125
126
  }>>;
126
127
  themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
128
+ fontSizeTiny: string;
129
+ fontSizeSmall: string;
130
+ fontSizeMedium: string;
131
+ fontSizeLarge: string;
132
+ heightTiny: string;
133
+ heightSmall: string;
134
+ heightMedium: string;
135
+ heightLarge: string;
127
136
  borderRadius: string;
128
137
  textColor: string;
129
138
  textColorDisabled: string;
@@ -164,16 +173,9 @@ declare const _default: import("vue").DefineComponent<{
164
173
  clearColor: string;
165
174
  clearColorHover: string;
166
175
  clearColorPressed: string;
167
- heightTiny: string;
168
- heightSmall: string;
169
- heightMedium: string;
170
- heightLarge: string;
171
- fontSizeTiny: string;
172
- fontSizeSmall: string;
173
- fontSizeMedium: string;
174
- 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;
@@ -191,6 +193,14 @@ declare const _default: import("vue").DefineComponent<{
191
193
  }, any>;
192
194
  }>>>;
193
195
  builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
196
+ fontSizeTiny: string;
197
+ fontSizeSmall: string;
198
+ fontSizeMedium: string;
199
+ fontSizeLarge: string;
200
+ heightTiny: string;
201
+ heightSmall: string;
202
+ heightMedium: string;
203
+ heightLarge: string;
194
204
  borderRadius: string;
195
205
  textColor: string;
196
206
  textColorDisabled: string;
@@ -231,16 +241,9 @@ declare const _default: import("vue").DefineComponent<{
231
241
  clearColor: string;
232
242
  clearColorHover: string;
233
243
  clearColorPressed: string;
234
- heightTiny: string;
235
- heightSmall: string;
236
- heightMedium: string;
237
- heightLarge: string;
238
- fontSizeTiny: string;
239
- fontSizeSmall: string;
240
- fontSizeMedium: string;
241
- 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;
@@ -359,6 +362,14 @@ declare const _default: import("vue").DefineComponent<{
359
362
  name: "common";
360
363
  };
361
364
  self: {
365
+ fontSizeTiny: string;
366
+ fontSizeSmall: string;
367
+ fontSizeMedium: string;
368
+ fontSizeLarge: string;
369
+ heightTiny: string;
370
+ heightSmall: string;
371
+ heightMedium: string;
372
+ heightLarge: string;
362
373
  borderRadius: string;
363
374
  textColor: string;
364
375
  textColorDisabled: string;
@@ -399,16 +410,9 @@ declare const _default: import("vue").DefineComponent<{
399
410
  clearColor: string;
400
411
  clearColorHover: string;
401
412
  clearColorPressed: string;
402
- heightTiny: string;
403
- heightSmall: string;
404
- heightMedium: string;
405
- heightLarge: string;
406
- fontSizeTiny: string;
407
- fontSizeSmall: string;
408
- fontSizeMedium: string;
409
- 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;
@@ -578,6 +583,14 @@ declare const _default: import("vue").DefineComponent<{
578
583
  onClick?: ((e: MouseEvent) => void) | undefined;
579
584
  placeholder?: string | undefined;
580
585
  theme?: import("../../../_mixins").Theme<"InternalSelection", {
586
+ fontSizeTiny: string;
587
+ fontSizeSmall: string;
588
+ fontSizeMedium: string;
589
+ fontSizeLarge: string;
590
+ heightTiny: string;
591
+ heightSmall: string;
592
+ heightMedium: string;
593
+ heightLarge: string;
581
594
  borderRadius: string;
582
595
  textColor: string;
583
596
  textColorDisabled: string;
@@ -618,16 +631,9 @@ declare const _default: import("vue").DefineComponent<{
618
631
  clearColor: string;
619
632
  clearColorHover: string;
620
633
  clearColorPressed: string;
621
- heightTiny: string;
622
- heightSmall: string;
623
- heightMedium: string;
624
- heightLarge: string;
625
- fontSizeTiny: string;
626
- fontSizeSmall: string;
627
- fontSizeMedium: string;
628
- 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;
@@ -645,6 +651,14 @@ declare const _default: import("vue").DefineComponent<{
645
651
  }, any>;
646
652
  }> | undefined;
647
653
  themeOverrides?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
654
+ fontSizeTiny: string;
655
+ fontSizeSmall: string;
656
+ fontSizeMedium: string;
657
+ fontSizeLarge: string;
658
+ heightTiny: string;
659
+ heightSmall: string;
660
+ heightMedium: string;
661
+ heightLarge: string;
648
662
  borderRadius: string;
649
663
  textColor: string;
650
664
  textColorDisabled: string;
@@ -685,16 +699,9 @@ declare const _default: import("vue").DefineComponent<{
685
699
  clearColor: string;
686
700
  clearColorHover: string;
687
701
  clearColorPressed: string;
688
- heightTiny: string;
689
- heightSmall: string;
690
- heightMedium: string;
691
- heightLarge: string;
692
- fontSizeTiny: string;
693
- fontSizeSmall: string;
694
- fontSizeMedium: string;
695
- 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;
@@ -712,6 +719,14 @@ declare const _default: import("vue").DefineComponent<{
712
719
  }, any>;
713
720
  }>> | undefined;
714
721
  builtinThemeOverrides?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
722
+ fontSizeTiny: string;
723
+ fontSizeSmall: string;
724
+ fontSizeMedium: string;
725
+ fontSizeLarge: string;
726
+ heightTiny: string;
727
+ heightSmall: string;
728
+ heightMedium: string;
729
+ heightLarge: string;
715
730
  borderRadius: string;
716
731
  textColor: string;
717
732
  textColorDisabled: string;
@@ -752,16 +767,9 @@ declare const _default: import("vue").DefineComponent<{
752
767
  clearColor: string;
753
768
  clearColorHover: string;
754
769
  clearColorPressed: string;
755
- heightTiny: string;
756
- heightSmall: string;
757
- heightMedium: string;
758
- heightLarge: string;
759
- fontSizeTiny: string;
760
- fontSizeSmall: string;
761
- fontSizeMedium: string;
762
- 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
  }
@@ -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', `
@@ -1,13 +1,6 @@
1
1
  declare const _default: {
2
- heightTiny: string;
3
- heightSmall: string;
4
- heightMedium: string;
5
- heightLarge: string;
6
- fontSizeTiny: string;
7
- fontSizeSmall: string;
8
- fontSizeMedium: string;
9
- fontSizeLarge: string;
10
2
  paddingSingle: string;
11
3
  clearSize: string;
4
+ arrowSize: string;
12
5
  };
13
6
  export default _default;
@@ -1,12 +1,5 @@
1
1
  export default {
2
- heightTiny: '22px',
3
- heightSmall: '28px',
4
- heightMedium: '34px',
5
- heightLarge: '40px',
6
- fontSizeTiny: '12px',
7
- fontSizeSmall: '14px',
8
- fontSizeMedium: '14px',
9
- fontSizeLarge: '15px',
10
2
  paddingSingle: '0 26px 0 14px',
11
- clearSize: '16px'
3
+ clearSize: '16px',
4
+ arrowSize: '16px'
12
5
  };
@@ -9,8 +9,16 @@ const internalSelectionDark = {
9
9
  Popover: popoverDark
10
10
  },
11
11
  self(vars) {
12
- const { borderRadius, textColor2, textColorDisabled, inputColor, inputColorDisabled, primaryColor, primaryColorHover, warningColor, warningColorHover, errorColor, errorColorHover, iconColor, iconColorDisabled, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled } = vars;
13
- return Object.assign(Object.assign({}, commonVars), { borderRadius: borderRadius,
12
+ const { borderRadius, textColor2, textColorDisabled, inputColor, inputColorDisabled, primaryColor, primaryColorHover, warningColor, warningColorHover, errorColor, errorColorHover, iconColor, iconColorDisabled, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled, fontSizeTiny, fontSizeSmall, fontSizeMedium, fontSizeLarge, heightTiny, heightSmall, heightMedium, heightLarge } = vars;
13
+ return Object.assign(Object.assign({}, commonVars), { fontSizeTiny,
14
+ fontSizeSmall,
15
+ fontSizeMedium,
16
+ fontSizeLarge,
17
+ heightTiny,
18
+ heightSmall,
19
+ heightMedium,
20
+ heightLarge,
21
+ borderRadius,
14
22
  // default
15
23
  textColor: textColor2, textColorDisabled,
16
24
  placeholderColor,
@@ -1,5 +1,13 @@
1
1
  import type { ThemeCommonVars } from '../../../_styles/common';
2
2
  declare const self: (vars: ThemeCommonVars) => {
3
+ fontSizeTiny: string;
4
+ fontSizeSmall: string;
5
+ fontSizeMedium: string;
6
+ fontSizeLarge: string;
7
+ heightTiny: string;
8
+ heightSmall: string;
9
+ heightMedium: string;
10
+ heightLarge: string;
3
11
  borderRadius: string;
4
12
  textColor: string;
5
13
  textColorDisabled: string;
@@ -40,19 +48,20 @@ declare const self: (vars: ThemeCommonVars) => {
40
48
  clearColor: string;
41
49
  clearColorHover: string;
42
50
  clearColorPressed: string;
43
- heightTiny: string;
44
- heightSmall: string;
45
- heightMedium: string;
46
- heightLarge: string;
47
- fontSizeTiny: string;
48
- fontSizeSmall: string;
49
- fontSizeMedium: string;
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", {
57
+ fontSizeTiny: string;
58
+ fontSizeSmall: string;
59
+ fontSizeMedium: string;
60
+ fontSizeLarge: string;
61
+ heightTiny: string;
62
+ heightSmall: string;
63
+ heightMedium: string;
64
+ heightLarge: string;
56
65
  borderRadius: string;
57
66
  textColor: string;
58
67
  textColorDisabled: string;
@@ -93,16 +102,9 @@ declare const internalSelectionLight: import("../../../_mixins").Theme<"Internal
93
102
  clearColor: string;
94
103
  clearColorHover: string;
95
104
  clearColorPressed: string;
96
- heightTiny: string;
97
- heightSmall: string;
98
- heightMedium: string;
99
- heightLarge: string;
100
- fontSizeTiny: string;
101
- fontSizeSmall: string;
102
- fontSizeMedium: string;
103
- 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;
@@ -4,8 +4,16 @@ import { popoverLight } from '../../../popover/styles';
4
4
  import commonVariables from './_common';
5
5
  import { createTheme } from '../../../_mixins';
6
6
  const self = (vars) => {
7
- const { borderRadius, textColor2, textColorDisabled, inputColor, inputColorDisabled, primaryColor, primaryColorHover, warningColor, warningColorHover, errorColor, errorColorHover, borderColor, iconColor, iconColorDisabled, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled } = vars;
8
- return Object.assign(Object.assign({}, commonVariables), { borderRadius: borderRadius,
7
+ const { borderRadius, textColor2, textColorDisabled, inputColor, inputColorDisabled, primaryColor, primaryColorHover, warningColor, warningColorHover, errorColor, errorColorHover, borderColor, iconColor, iconColorDisabled, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled, fontSizeTiny, fontSizeSmall, fontSizeMedium, fontSizeLarge, heightTiny, heightSmall, heightMedium, heightLarge } = vars;
8
+ return Object.assign(Object.assign({}, commonVariables), { fontSizeTiny,
9
+ fontSizeSmall,
10
+ fontSizeMedium,
11
+ fontSizeLarge,
12
+ heightTiny,
13
+ heightSmall,
14
+ heightMedium,
15
+ heightLarge,
16
+ borderRadius,
9
17
  // default
10
18
  textColor: textColor2, textColorDisabled,
11
19
  placeholderColor,
@@ -23,7 +23,7 @@ export default function useRtl(mountId, rtlStateRef, clsPrefixRef) {
23
23
  // if it already exists, we only need to watch clsPrefix, although in most
24
24
  // of time it's unnecessary... However we can at least listen less
25
25
  // handlers, which is great.
26
- if (exists(id))
26
+ if (exists(id, ssrAdapter))
27
27
  return;
28
28
  const { value: componentRtlState } = componentRtlStateRef;
29
29
  if (!componentRtlState)
@@ -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;
@@ -96,20 +96,20 @@ export default defineComponent({
96
96
  };
97
97
  },
98
98
  render() {
99
- const { mergedClsPrefix } = this;
100
99
  return (h(NFadeInExpandTransition, { onAfterLeave: this.handleAfterLeave }, {
101
- default: () => this.visible
102
- ? h('div', mergeProps(this.$attrs, {
100
+ default: () => {
101
+ const { mergedClsPrefix, $slots } = this;
102
+ const attrs = {
103
103
  class: [
104
104
  `${mergedClsPrefix}-alert`,
105
- {
106
- [`${mergedClsPrefix}-alert--show-icon`]: this.showIcon
107
- }
105
+ this.showIcon && `${mergedClsPrefix}-alert--show-icon`
108
106
  ],
109
- style: this.cssVars
110
- }), [
111
- this.closable ? (h(NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-alert__close`, onClick: this.handleCloseClick })) : null,
112
- this.showIcon ? (h("div", { class: `${mergedClsPrefix}-alert__icon` }, this.$slots.icon ? (renderSlot(this.$slots, 'icon')) : (h(NBaseIcon, { clsPrefix: mergedClsPrefix }, {
107
+ style: this.cssVars,
108
+ role: 'alert'
109
+ };
110
+ return this.visible ? (h("div", Object.assign({}, mergeProps(this.$attrs, attrs)),
111
+ this.closable && (h(NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-alert__close`, onClick: this.handleCloseClick })),
112
+ this.showIcon && (h("div", { class: `${mergedClsPrefix}-alert__icon`, "aria-hidden": "true" }, $slots.icon ? ($slots.icon()) : (h(NBaseIcon, { clsPrefix: mergedClsPrefix }, {
113
113
  default: () => {
114
114
  switch (this.type) {
115
115
  case 'success':
@@ -124,14 +124,13 @@ export default defineComponent({
124
124
  return null;
125
125
  }
126
126
  }
127
- })))) : null,
127
+ })))),
128
128
  h("div", { class: `${mergedClsPrefix}-alert-body` },
129
- this.title !== undefined ? (h("div", { class: `${mergedClsPrefix}-alert-body__title` }, renderSlot(this.$slots, 'header', undefined, () => [
129
+ this.title !== undefined && (h("div", { class: `${mergedClsPrefix}-alert-body__title` }, renderSlot($slots, 'header', undefined, () => [
130
130
  this.title
131
- ]))) : null,
132
- this.$slots.default ? (h("div", { class: `${mergedClsPrefix}-alert-body__content` }, this.$slots)) : null)
133
- ])
134
- : null
131
+ ]))),
132
+ $slots.default && (h("div", { class: `${mergedClsPrefix}-alert-body__content` }, $slots))))) : null;
133
+ }
135
134
  }));
136
135
  }
137
136
  });