naive-ui 2.25.2 → 2.25.3

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 (421) hide show
  1. package/es/_internal/clear/src/Clear.d.ts +0 -1
  2. package/es/_internal/clear/src/Clear.js +1 -3
  3. package/es/_internal/icons/replaceable.d.ts +1 -1
  4. package/es/_internal/icons/replaceable.js +5 -4
  5. package/es/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
  6. package/es/_internal/scrollbar/src/ScrollBar.js +35 -16
  7. package/es/_internal/select-menu/src/SelectMenu.d.ts +22 -23
  8. package/es/_internal/select-menu/src/SelectMenu.js +10 -16
  9. package/es/_internal/selection/src/Selection.d.ts +5 -5
  10. package/es/_internal/selection/src/Selection.js +20 -7
  11. package/es/_mixins/index.d.ts +1 -1
  12. package/es/_mixins/index.js +1 -1
  13. package/es/_mixins/use-config.d.ts +6 -3
  14. package/es/_mixins/use-config.js +5 -1
  15. package/es/_mixins/use-css-vars-class.d.ts +1 -4
  16. package/es/_mixins/use-css-vars-class.js +6 -6
  17. package/es/_utils/vue/resolve-slot.d.ts +5 -2
  18. package/es/_utils/vue/resolve-slot.js +4 -3
  19. package/es/alert/src/Alert.d.ts +3 -1
  20. package/es/alert/src/Alert.js +36 -21
  21. package/es/anchor/src/AnchorAdapter.js +9 -3
  22. package/es/auto-complete/src/AutoComplete.d.ts +3 -1
  23. package/es/auto-complete/src/AutoComplete.js +28 -15
  24. package/es/avatar/src/Avatar.d.ts +3 -1
  25. package/es/avatar/src/Avatar.js +70 -35
  26. package/es/back-top/src/BackTop.d.ts +12 -49
  27. package/es/back-top/src/BackTop.js +60 -58
  28. package/es/badge/src/Badge.d.ts +12 -37
  29. package/es/badge/src/Badge.js +41 -31
  30. package/es/breadcrumb/src/Breadcrumb.d.ts +3 -1
  31. package/es/breadcrumb/src/Breadcrumb.js +24 -16
  32. package/es/button/src/Button.d.ts +7 -6
  33. package/es/button/src/Button.js +31 -21
  34. package/es/calendar/src/Calendar.d.ts +3 -1
  35. package/es/calendar/src/Calendar.js +37 -30
  36. package/es/card/src/Card.d.ts +2 -2
  37. package/es/card/src/Card.js +27 -16
  38. package/es/carousel/src/Carousel.d.ts +3 -1
  39. package/es/carousel/src/Carousel.js +29 -20
  40. package/es/cascader/src/Cascader.d.ts +16 -1
  41. package/es/cascader/src/Cascader.js +53 -31
  42. package/es/cascader/src/CascaderMenu.js +7 -6
  43. package/es/cascader/src/CascaderSelectMenu.js +2 -1
  44. package/es/cascader/src/CascaderSubmenu.d.ts +1 -0
  45. package/es/cascader/src/interface.d.ts +1 -0
  46. package/es/checkbox/src/Checkbox.d.ts +6 -4
  47. package/es/checkbox/src/Checkbox.js +41 -32
  48. package/es/checkbox/src/styles/index.cssr.js +7 -7
  49. package/es/code/src/Code.d.ts +3 -1
  50. package/es/code/src/Code.js +33 -27
  51. package/es/collapse/src/Collapse.d.ts +3 -1
  52. package/es/collapse/src/Collapse.js +24 -16
  53. package/es/color-picker/src/ColorPicker.d.ts +3 -1
  54. package/es/color-picker/src/ColorPicker.js +20 -7
  55. package/es/components.d.ts +1 -0
  56. package/es/components.js +1 -0
  57. package/es/config-provider/src/ConfigProvider.d.ts +4 -4
  58. package/es/config-provider/src/ConfigProvider.js +3 -3
  59. package/es/config-provider/src/internal-interface.d.ts +3 -1
  60. package/es/countdown/src/Countdown.d.ts +0 -3
  61. package/es/countdown/src/Countdown.js +0 -1
  62. package/es/data-table/src/DataTable.d.ts +43 -41
  63. package/es/data-table/src/DataTable.js +54 -48
  64. package/es/data-table/src/HeaderButton/FilterButton.js +3 -2
  65. package/es/data-table/src/HeaderButton/SortButton.js +3 -2
  66. package/es/data-table/src/TableParts/Body.d.ts +1 -0
  67. package/es/data-table/src/TableParts/Body.js +4 -2
  68. package/es/data-table/src/interface.d.ts +1 -1
  69. package/es/data-table/src/use-table-data.js +19 -7
  70. package/es/date-picker/src/DatePicker.d.ts +1 -0
  71. package/es/date-picker/src/DatePicker.js +2 -2
  72. package/es/date-picker/src/panel/date.d.ts +2 -0
  73. package/es/date-picker/src/panel/datetime.d.ts +2 -0
  74. package/es/date-picker/src/panel/month.d.ts +2 -0
  75. package/es/date-picker/src/panel/panelHeader.d.ts +4 -0
  76. package/es/date-picker/src/panel/use-calendar.d.ts +2 -0
  77. package/es/descriptions/src/Descriptions.d.ts +14 -1
  78. package/es/descriptions/src/Descriptions.js +45 -28
  79. package/es/descriptions/src/styles/index.cssr.js +2 -1
  80. package/es/descriptions/styles/light.d.ts +1 -0
  81. package/es/descriptions/styles/light.js +2 -2
  82. package/es/dialog/src/Dialog.d.ts +3 -1
  83. package/es/dialog/src/Dialog.js +57 -56
  84. package/es/dialog/src/DialogEnvironment.js +1 -1
  85. package/es/divider/src/Divider.d.ts +3 -1
  86. package/es/divider/src/Divider.js +20 -11
  87. package/es/dynamic-input/src/DynamicInput.js +2 -2
  88. package/es/dynamic-tags/src/DynamicTags.d.ts +3 -1
  89. package/es/dynamic-tags/src/DynamicTags.js +17 -10
  90. package/es/element/src/Element.d.ts +3 -1
  91. package/es/element/src/Element.js +18 -11
  92. package/es/empty/src/Empty.d.ts +3 -1
  93. package/es/empty/src/Empty.js +28 -16
  94. package/es/form/src/FormItem.js +1 -2
  95. package/es/grid/src/Grid.js +2 -2
  96. package/es/icon-wrapper/src/IconWrapper.js +6 -8
  97. package/es/input/src/Input.d.ts +6 -3
  98. package/es/input/src/Input.js +96 -84
  99. package/es/input/src/styles/input.cssr.js +2 -2
  100. package/es/input-number/src/InputNumber.d.ts +6 -17
  101. package/es/input-number/src/InputNumber.js +79 -20
  102. package/es/layout/src/Layout.d.ts +8 -2
  103. package/es/layout/src/Layout.js +17 -10
  104. package/es/layout/src/LayoutContent.d.ts +4 -1
  105. package/es/layout/src/LayoutFooter.d.ts +3 -1
  106. package/es/layout/src/LayoutFooter.js +28 -19
  107. package/es/layout/src/LayoutHeader.d.ts +3 -1
  108. package/es/layout/src/LayoutHeader.js +28 -19
  109. package/es/layout/src/LayoutSider.d.ts +4 -0
  110. package/es/layout/src/LayoutSider.js +37 -29
  111. package/es/locales/common/esAR.js +2 -2
  112. package/es/locales/common/frFR.js +8 -9
  113. package/es/locales/common/skSK.d.ts +3 -0
  114. package/es/locales/common/skSK.js +110 -0
  115. package/es/locales/date/skSK.d.ts +3 -0
  116. package/es/locales/date/skSK.js +6 -0
  117. package/es/locales/index.d.ts +2 -0
  118. package/es/locales/index.js +2 -0
  119. package/es/log/src/Log.d.ts +4 -1
  120. package/es/log/src/Log.js +20 -15
  121. package/es/mention/index.d.ts +1 -1
  122. package/es/mention/src/interface.d.ts +4 -0
  123. package/es/menu/src/Menu.d.ts +3 -1
  124. package/es/menu/src/Menu.js +68 -63
  125. package/es/modal/src/BodyWrapper.d.ts +1 -0
  126. package/es/modal/src/Modal.d.ts +11 -14
  127. package/es/modal/src/Modal.js +41 -32
  128. package/es/notification/src/styles/index.cssr.js +6 -5
  129. package/es/page-header/src/PageHeader.d.ts +3 -1
  130. package/es/page-header/src/PageHeader.js +27 -18
  131. package/es/pagination/src/Pagination.d.ts +13 -1
  132. package/es/pagination/src/Pagination.js +59 -52
  133. package/es/popover/src/PopoverBody.js +10 -4
  134. package/es/progress/src/Progress.d.ts +2 -2
  135. package/es/progress/src/Progress.js +12 -6
  136. package/es/radio/src/Radio.d.ts +3 -1
  137. package/es/radio/src/Radio.js +32 -23
  138. package/es/radio/src/RadioGroup.d.ts +3 -1
  139. package/es/radio/src/RadioGroup.js +31 -22
  140. package/es/rate/src/Rate.d.ts +3 -1
  141. package/es/rate/src/Rate.js +44 -23
  142. package/es/result/src/Result.d.ts +4 -2
  143. package/es/result/src/Result.js +36 -19
  144. package/es/scrollbar/src/ScrollBar.d.ts +12 -1
  145. package/es/scrollbar/src/ScrollBar.js +4 -0
  146. package/es/select/src/Select.d.ts +1 -1
  147. package/es/select/src/Select.js +5 -4
  148. package/es/spin/src/Spin.d.ts +3 -1
  149. package/es/spin/src/Spin.js +31 -21
  150. package/es/statistic/src/Statistic.d.ts +3 -1
  151. package/es/statistic/src/Statistic.js +29 -21
  152. package/es/styles.d.ts +1 -0
  153. package/es/styles.js +1 -0
  154. package/es/switch/src/Switch.d.ts +13 -1
  155. package/es/switch/src/Switch.js +85 -60
  156. package/es/switch/src/styles/index.cssr.js +21 -8
  157. package/es/switch/styles/dark.js +2 -2
  158. package/es/switch/styles/light.d.ts +1 -0
  159. package/es/switch/styles/light.js +2 -2
  160. package/es/table/src/Table.d.ts +3 -1
  161. package/es/table/src/Table.js +40 -29
  162. package/es/table/src/styles/index.cssr.js +1 -1
  163. package/es/tabs/src/Tabs.d.ts +25 -23
  164. package/es/tabs/src/Tabs.js +50 -44
  165. package/es/tabs/src/styles/index.cssr.js +77 -77
  166. package/es/tag/src/Tag.d.ts +2 -2
  167. package/es/tag/src/Tag.js +8 -11
  168. package/es/theme-editor/src/ThemeEditor.js +4 -3
  169. package/es/themes/dark.js +3 -1
  170. package/es/themes/light.js +3 -1
  171. package/es/thing/src/Thing.js +10 -3
  172. package/es/time-picker/src/TimePicker.d.ts +4 -0
  173. package/es/transfer/src/TransferList.d.ts +1 -0
  174. package/es/tree/src/Tree.d.ts +1 -0
  175. package/es/tree/src/Tree.js +8 -4
  176. package/es/tree-select/src/TreeSelect.d.ts +13 -0
  177. package/es/tree-select/src/TreeSelect.js +6 -2
  178. package/es/typography/src/a.d.ts +3 -1
  179. package/es/typography/src/a.js +18 -10
  180. package/es/typography/src/blockquote.d.ts +3 -1
  181. package/es/typography/src/blockquote.js +21 -12
  182. package/es/typography/src/create-header.d.ts +3 -1
  183. package/es/typography/src/create-header.js +25 -16
  184. package/es/typography/src/headers.d.ts +18 -6
  185. package/es/typography/src/hr.d.ts +3 -1
  186. package/es/typography/src/hr.js +18 -10
  187. package/es/typography/src/ol.d.ts +3 -1
  188. package/es/typography/src/ol.js +23 -14
  189. package/es/typography/src/p.d.ts +3 -1
  190. package/es/typography/src/p.js +23 -15
  191. package/es/typography/src/text.d.ts +3 -1
  192. package/es/typography/src/text.js +31 -23
  193. package/es/typography/src/ul.d.ts +3 -1
  194. package/es/typography/src/ul.js +23 -14
  195. package/es/upload/src/interface.d.ts +1 -1
  196. package/es/version.d.ts +1 -1
  197. package/es/version.js +1 -1
  198. package/es/watermark/index.d.ts +2 -0
  199. package/es/watermark/index.js +1 -0
  200. package/es/watermark/src/Watermark.d.ts +285 -0
  201. package/es/watermark/src/Watermark.js +159 -0
  202. package/es/watermark/src/styles/index.cssr.d.ts +2 -0
  203. package/es/watermark/src/styles/index.cssr.js +14 -0
  204. package/es/watermark/styles/dark.d.ts +3 -0
  205. package/es/watermark/styles/dark.js +12 -0
  206. package/es/watermark/styles/index.d.ts +3 -0
  207. package/es/watermark/styles/index.js +2 -0
  208. package/es/watermark/styles/light.d.ts +5 -0
  209. package/es/watermark/styles/light.js +13 -0
  210. package/lib/_internal/clear/src/Clear.d.ts +0 -1
  211. package/lib/_internal/clear/src/Clear.js +0 -2
  212. package/lib/_internal/icons/replaceable.d.ts +1 -1
  213. package/lib/_internal/icons/replaceable.js +4 -3
  214. package/lib/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
  215. package/lib/_internal/scrollbar/src/ScrollBar.js +34 -15
  216. package/lib/_internal/select-menu/src/SelectMenu.d.ts +22 -23
  217. package/lib/_internal/select-menu/src/SelectMenu.js +9 -15
  218. package/lib/_internal/selection/src/Selection.d.ts +5 -5
  219. package/lib/_internal/selection/src/Selection.js +19 -6
  220. package/lib/_mixins/index.d.ts +1 -1
  221. package/lib/_mixins/index.js +1 -2
  222. package/lib/_mixins/use-config.d.ts +6 -3
  223. package/lib/_mixins/use-config.js +5 -1
  224. package/lib/_mixins/use-css-vars-class.d.ts +1 -4
  225. package/lib/_mixins/use-css-vars-class.js +7 -7
  226. package/lib/_utils/vue/resolve-slot.d.ts +5 -2
  227. package/lib/_utils/vue/resolve-slot.js +4 -3
  228. package/lib/alert/src/Alert.d.ts +3 -1
  229. package/lib/alert/src/Alert.js +34 -19
  230. package/lib/anchor/src/AnchorAdapter.js +8 -2
  231. package/lib/auto-complete/src/AutoComplete.d.ts +3 -1
  232. package/lib/auto-complete/src/AutoComplete.js +27 -14
  233. package/lib/avatar/src/Avatar.d.ts +3 -1
  234. package/lib/avatar/src/Avatar.js +68 -33
  235. package/lib/back-top/src/BackTop.d.ts +12 -49
  236. package/lib/back-top/src/BackTop.js +57 -55
  237. package/lib/badge/src/Badge.d.ts +12 -37
  238. package/lib/badge/src/Badge.js +39 -29
  239. package/lib/breadcrumb/src/Breadcrumb.d.ts +3 -1
  240. package/lib/breadcrumb/src/Breadcrumb.js +23 -15
  241. package/lib/button/src/Button.d.ts +7 -6
  242. package/lib/button/src/Button.js +29 -19
  243. package/lib/calendar/src/Calendar.d.ts +3 -1
  244. package/lib/calendar/src/Calendar.js +36 -29
  245. package/lib/card/src/Card.d.ts +2 -2
  246. package/lib/card/src/Card.js +25 -14
  247. package/lib/carousel/src/Carousel.d.ts +3 -1
  248. package/lib/carousel/src/Carousel.js +27 -18
  249. package/lib/cascader/src/Cascader.d.ts +16 -1
  250. package/lib/cascader/src/Cascader.js +52 -30
  251. package/lib/cascader/src/CascaderMenu.js +7 -6
  252. package/lib/cascader/src/CascaderSelectMenu.js +2 -1
  253. package/lib/cascader/src/CascaderSubmenu.d.ts +1 -0
  254. package/lib/cascader/src/interface.d.ts +1 -0
  255. package/lib/checkbox/src/Checkbox.d.ts +6 -4
  256. package/lib/checkbox/src/Checkbox.js +40 -31
  257. package/lib/checkbox/src/styles/index.cssr.js +7 -7
  258. package/lib/code/src/Code.d.ts +3 -1
  259. package/lib/code/src/Code.js +32 -26
  260. package/lib/collapse/src/Collapse.d.ts +3 -1
  261. package/lib/collapse/src/Collapse.js +23 -15
  262. package/lib/color-picker/src/ColorPicker.d.ts +3 -1
  263. package/lib/color-picker/src/ColorPicker.js +19 -6
  264. package/lib/components.d.ts +1 -0
  265. package/lib/components.js +1 -0
  266. package/lib/config-provider/src/ConfigProvider.d.ts +4 -4
  267. package/lib/config-provider/src/ConfigProvider.js +3 -3
  268. package/lib/config-provider/src/internal-interface.d.ts +3 -1
  269. package/lib/countdown/src/Countdown.d.ts +0 -3
  270. package/lib/countdown/src/Countdown.js +0 -1
  271. package/lib/data-table/src/DataTable.d.ts +43 -41
  272. package/lib/data-table/src/DataTable.js +53 -47
  273. package/lib/data-table/src/HeaderButton/FilterButton.js +3 -2
  274. package/lib/data-table/src/HeaderButton/SortButton.js +3 -2
  275. package/lib/data-table/src/TableParts/Body.d.ts +1 -0
  276. package/lib/data-table/src/TableParts/Body.js +3 -1
  277. package/lib/data-table/src/interface.d.ts +1 -1
  278. package/lib/data-table/src/use-table-data.js +19 -7
  279. package/lib/date-picker/src/DatePicker.d.ts +1 -0
  280. package/lib/date-picker/src/DatePicker.js +2 -2
  281. package/lib/date-picker/src/panel/date.d.ts +2 -0
  282. package/lib/date-picker/src/panel/datetime.d.ts +2 -0
  283. package/lib/date-picker/src/panel/month.d.ts +2 -0
  284. package/lib/date-picker/src/panel/panelHeader.d.ts +4 -0
  285. package/lib/date-picker/src/panel/use-calendar.d.ts +2 -0
  286. package/lib/descriptions/src/Descriptions.d.ts +14 -1
  287. package/lib/descriptions/src/Descriptions.js +44 -27
  288. package/lib/descriptions/src/styles/index.cssr.js +2 -1
  289. package/lib/descriptions/styles/light.d.ts +1 -0
  290. package/lib/descriptions/styles/light.js +2 -2
  291. package/lib/dialog/src/Dialog.d.ts +3 -1
  292. package/lib/dialog/src/Dialog.js +55 -54
  293. package/lib/dialog/src/DialogEnvironment.js +1 -1
  294. package/lib/divider/src/Divider.d.ts +3 -1
  295. package/lib/divider/src/Divider.js +19 -10
  296. package/lib/dynamic-input/src/DynamicInput.js +2 -2
  297. package/lib/dynamic-tags/src/DynamicTags.d.ts +3 -1
  298. package/lib/dynamic-tags/src/DynamicTags.js +16 -9
  299. package/lib/element/src/Element.d.ts +3 -1
  300. package/lib/element/src/Element.js +17 -10
  301. package/lib/empty/src/Empty.d.ts +3 -1
  302. package/lib/empty/src/Empty.js +27 -15
  303. package/lib/form/src/FormItem.js +1 -2
  304. package/lib/grid/src/Grid.js +2 -2
  305. package/lib/icon-wrapper/src/IconWrapper.js +5 -7
  306. package/lib/input/src/Input.d.ts +6 -3
  307. package/lib/input/src/Input.js +95 -83
  308. package/lib/input/src/styles/input.cssr.js +2 -2
  309. package/lib/input-number/src/InputNumber.d.ts +6 -17
  310. package/lib/input-number/src/InputNumber.js +76 -17
  311. package/lib/layout/src/Layout.d.ts +8 -2
  312. package/lib/layout/src/Layout.js +16 -9
  313. package/lib/layout/src/LayoutContent.d.ts +4 -1
  314. package/lib/layout/src/LayoutFooter.d.ts +3 -1
  315. package/lib/layout/src/LayoutFooter.js +27 -18
  316. package/lib/layout/src/LayoutHeader.d.ts +3 -1
  317. package/lib/layout/src/LayoutHeader.js +27 -18
  318. package/lib/layout/src/LayoutSider.d.ts +4 -0
  319. package/lib/layout/src/LayoutSider.js +36 -28
  320. package/lib/locales/common/esAR.js +2 -2
  321. package/lib/locales/common/frFR.js +8 -9
  322. package/lib/locales/common/skSK.d.ts +3 -0
  323. package/lib/locales/common/skSK.js +112 -0
  324. package/lib/locales/date/skSK.d.ts +3 -0
  325. package/lib/locales/date/skSK.js +11 -0
  326. package/lib/locales/index.d.ts +2 -0
  327. package/lib/locales/index.js +5 -1
  328. package/lib/log/src/Log.d.ts +4 -1
  329. package/lib/log/src/Log.js +19 -14
  330. package/lib/mention/index.d.ts +1 -1
  331. package/lib/mention/src/interface.d.ts +4 -0
  332. package/lib/menu/src/Menu.d.ts +3 -1
  333. package/lib/menu/src/Menu.js +67 -62
  334. package/lib/modal/src/BodyWrapper.d.ts +1 -0
  335. package/lib/modal/src/Modal.d.ts +11 -14
  336. package/lib/modal/src/Modal.js +40 -31
  337. package/lib/notification/src/styles/index.cssr.js +6 -5
  338. package/lib/page-header/src/PageHeader.d.ts +3 -1
  339. package/lib/page-header/src/PageHeader.js +26 -17
  340. package/lib/pagination/src/Pagination.d.ts +13 -1
  341. package/lib/pagination/src/Pagination.js +58 -51
  342. package/lib/popover/src/PopoverBody.js +9 -3
  343. package/lib/progress/src/Progress.d.ts +2 -2
  344. package/lib/progress/src/Progress.js +11 -5
  345. package/lib/radio/src/Radio.d.ts +3 -1
  346. package/lib/radio/src/Radio.js +31 -22
  347. package/lib/radio/src/RadioGroup.d.ts +3 -1
  348. package/lib/radio/src/RadioGroup.js +30 -21
  349. package/lib/rate/src/Rate.d.ts +3 -1
  350. package/lib/rate/src/Rate.js +42 -21
  351. package/lib/result/src/Result.d.ts +4 -2
  352. package/lib/result/src/Result.js +35 -18
  353. package/lib/scrollbar/src/ScrollBar.d.ts +12 -1
  354. package/lib/scrollbar/src/ScrollBar.js +4 -0
  355. package/lib/select/src/Select.d.ts +1 -1
  356. package/lib/select/src/Select.js +5 -4
  357. package/lib/spin/src/Spin.d.ts +3 -1
  358. package/lib/spin/src/Spin.js +30 -20
  359. package/lib/statistic/src/Statistic.d.ts +3 -1
  360. package/lib/statistic/src/Statistic.js +28 -20
  361. package/lib/styles.d.ts +1 -0
  362. package/lib/styles.js +9 -7
  363. package/lib/switch/src/Switch.d.ts +13 -1
  364. package/lib/switch/src/Switch.js +81 -56
  365. package/lib/switch/src/styles/index.cssr.js +21 -8
  366. package/lib/switch/styles/dark.js +2 -2
  367. package/lib/switch/styles/light.d.ts +1 -0
  368. package/lib/switch/styles/light.js +2 -2
  369. package/lib/table/src/Table.d.ts +3 -1
  370. package/lib/table/src/Table.js +39 -28
  371. package/lib/table/src/styles/index.cssr.js +1 -1
  372. package/lib/tabs/src/Tabs.d.ts +25 -23
  373. package/lib/tabs/src/Tabs.js +48 -42
  374. package/lib/tabs/src/styles/index.cssr.js +77 -77
  375. package/lib/tag/src/Tag.d.ts +2 -2
  376. package/lib/tag/src/Tag.js +7 -10
  377. package/lib/theme-editor/src/ThemeEditor.js +2 -1
  378. package/lib/themes/dark.js +3 -1
  379. package/lib/themes/light.js +3 -1
  380. package/lib/thing/src/Thing.js +9 -2
  381. package/lib/time-picker/src/TimePicker.d.ts +4 -0
  382. package/lib/transfer/src/TransferList.d.ts +1 -0
  383. package/lib/tree/src/Tree.d.ts +1 -0
  384. package/lib/tree/src/Tree.js +8 -4
  385. package/lib/tree-select/src/TreeSelect.d.ts +13 -0
  386. package/lib/tree-select/src/TreeSelect.js +6 -2
  387. package/lib/typography/src/a.d.ts +3 -1
  388. package/lib/typography/src/a.js +17 -9
  389. package/lib/typography/src/blockquote.d.ts +3 -1
  390. package/lib/typography/src/blockquote.js +20 -11
  391. package/lib/typography/src/create-header.d.ts +3 -1
  392. package/lib/typography/src/create-header.js +24 -15
  393. package/lib/typography/src/headers.d.ts +18 -6
  394. package/lib/typography/src/hr.d.ts +3 -1
  395. package/lib/typography/src/hr.js +17 -9
  396. package/lib/typography/src/ol.d.ts +3 -1
  397. package/lib/typography/src/ol.js +22 -13
  398. package/lib/typography/src/p.d.ts +3 -1
  399. package/lib/typography/src/p.js +22 -14
  400. package/lib/typography/src/text.d.ts +3 -1
  401. package/lib/typography/src/text.js +30 -22
  402. package/lib/typography/src/ul.d.ts +3 -1
  403. package/lib/typography/src/ul.js +22 -13
  404. package/lib/upload/src/interface.d.ts +1 -1
  405. package/lib/version.d.ts +1 -1
  406. package/lib/version.js +1 -1
  407. package/lib/watermark/index.d.ts +2 -0
  408. package/lib/watermark/index.js +8 -0
  409. package/lib/watermark/src/Watermark.d.ts +285 -0
  410. package/lib/watermark/src/Watermark.js +164 -0
  411. package/lib/watermark/src/styles/index.cssr.d.ts +2 -0
  412. package/lib/watermark/src/styles/index.cssr.js +21 -0
  413. package/lib/watermark/styles/dark.d.ts +3 -0
  414. package/lib/watermark/styles/dark.js +14 -0
  415. package/lib/watermark/styles/index.d.ts +3 -0
  416. package/lib/watermark/styles/index.js +10 -0
  417. package/lib/watermark/styles/light.d.ts +5 -0
  418. package/lib/watermark/styles/light.js +15 -0
  419. package/package.json +8 -9
  420. package/volar.d.ts +1 -0
  421. package/web-types.json +252 -29
@@ -46,6 +46,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
46
46
  containerScrollTop: number;
47
47
  syncUnifiedContainer: () => void;
48
48
  scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
49
+ scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
49
50
  sync: () => void;
50
51
  handleMouseEnterWrapper: () => void;
51
52
  handleMouseLeaveWrapper: () => void;
@@ -61,6 +62,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
61
62
  containerScrollTop: number;
62
63
  syncUnifiedContainer: () => void;
63
64
  scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
65
+ scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
64
66
  sync: () => void;
65
67
  handleMouseEnterWrapper: () => void;
66
68
  handleMouseLeaveWrapper: () => void;
@@ -31,6 +31,7 @@ declare const descriptionProps: {
31
31
  fontSizeSmall: string;
32
32
  fontSizeMedium: string;
33
33
  fontSizeLarge: string;
34
+ titleTextColor: string;
34
35
  thColor: string;
35
36
  thColorModal: string;
36
37
  thColorPopover: string;
@@ -62,6 +63,7 @@ declare const descriptionProps: {
62
63
  fontSizeSmall: string;
63
64
  fontSizeMedium: string;
64
65
  fontSizeLarge: string;
66
+ titleTextColor: string;
65
67
  thColor: string;
66
68
  thColorModal: string;
67
69
  thColorPopover: string;
@@ -93,6 +95,7 @@ declare const descriptionProps: {
93
95
  fontSizeSmall: string;
94
96
  fontSizeMedium: string;
95
97
  fontSizeLarge: string;
98
+ titleTextColor: string;
96
99
  thColor: string;
97
100
  thColorModal: string;
98
101
  thColorPopover: string;
@@ -152,6 +155,7 @@ declare const _default: import("vue").DefineComponent<{
152
155
  fontSizeSmall: string;
153
156
  fontSizeMedium: string;
154
157
  fontSizeLarge: string;
158
+ titleTextColor: string;
155
159
  thColor: string;
156
160
  thColorModal: string;
157
161
  thColorPopover: string;
@@ -183,6 +187,7 @@ declare const _default: import("vue").DefineComponent<{
183
187
  fontSizeSmall: string;
184
188
  fontSizeMedium: string;
185
189
  fontSizeLarge: string;
190
+ titleTextColor: string;
186
191
  thColor: string;
187
192
  thColorModal: string;
188
193
  thColorPopover: string;
@@ -214,6 +219,7 @@ declare const _default: import("vue").DefineComponent<{
214
219
  fontSizeSmall: string;
215
220
  fontSizeMedium: string;
216
221
  fontSizeLarge: string;
222
+ titleTextColor: string;
217
223
  thColor: string;
218
224
  thColorModal: string;
219
225
  thColorPopover: string;
@@ -243,6 +249,7 @@ declare const _default: import("vue").DefineComponent<{
243
249
  }, {
244
250
  mergedClsPrefix: import("vue").ComputedRef<string>;
245
251
  cssVars: import("vue").ComputedRef<{
252
+ '--n-title-text-color': string;
246
253
  '--n-th-padding': string;
247
254
  '--n-td-padding': string;
248
255
  '--n-font-size': string;
@@ -261,8 +268,11 @@ declare const _default: import("vue").DefineComponent<{
261
268
  '--n-border-color': string;
262
269
  '--n-border-color-modal': string;
263
270
  '--n-border-color-popover': string;
264
- }>;
271
+ }> | undefined;
272
+ themeClass: import("vue").Ref<string> | undefined;
273
+ onRender: (() => void) | undefined;
265
274
  compitableColumn: import("vue").ComputedRef<number>;
275
+ inlineThemeDisabled: boolean | undefined;
266
276
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
267
277
  readonly title: StringConstructor;
268
278
  readonly column: {
@@ -294,6 +304,7 @@ declare const _default: import("vue").DefineComponent<{
294
304
  fontSizeSmall: string;
295
305
  fontSizeMedium: string;
296
306
  fontSizeLarge: string;
307
+ titleTextColor: string;
297
308
  thColor: string;
298
309
  thColorModal: string;
299
310
  thColorPopover: string;
@@ -325,6 +336,7 @@ declare const _default: import("vue").DefineComponent<{
325
336
  fontSizeSmall: string;
326
337
  fontSizeMedium: string;
327
338
  fontSizeLarge: string;
339
+ titleTextColor: string;
328
340
  thColor: string;
329
341
  thColorModal: string;
330
342
  thColorPopover: string;
@@ -356,6 +368,7 @@ declare const _default: import("vue").DefineComponent<{
356
368
  fontSizeSmall: string;
357
369
  fontSizeMedium: string;
358
370
  fontSizeLarge: string;
371
+ titleTextColor: string;
359
372
  thColor: string;
360
373
  thColorModal: string;
361
374
  thColorPopover: string;
@@ -30,42 +30,58 @@ exports.default = (0, vue_1.defineComponent)({
30
30
  name: 'Descriptions',
31
31
  props: descriptionProps,
32
32
  setup(props) {
33
- const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
33
+ const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
34
34
  const themeRef = (0, _mixins_1.useTheme)('Descriptions', '-descriptions', index_cssr_1.default, styles_1.descriptionsLight, props, mergedClsPrefixRef);
35
+ const cssVarsRef = (0, vue_1.computed)(() => {
36
+ const { size, bordered } = props;
37
+ const { common: { cubicBezierEaseInOut }, self: { titleTextColor, thColor, thColorModal, thColorPopover, thTextColor, thFontWeight, tdTextColor, tdColor, tdColorModal, tdColorPopover, borderColor, borderColorModal, borderColorPopover, borderRadius, lineHeight, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)(bordered ? 'thPaddingBordered' : 'thPadding', size)]: thPadding, [(0, _utils_1.createKey)(bordered ? 'tdPaddingBordered' : 'tdPadding', size)]: tdPadding } } = themeRef.value;
38
+ return {
39
+ '--n-title-text-color': titleTextColor,
40
+ '--n-th-padding': thPadding,
41
+ '--n-td-padding': tdPadding,
42
+ '--n-font-size': fontSize,
43
+ '--n-bezier': cubicBezierEaseInOut,
44
+ '--n-th-font-weight': thFontWeight,
45
+ '--n-line-height': lineHeight,
46
+ '--n-th-text-color': thTextColor,
47
+ '--n-td-text-color': tdTextColor,
48
+ '--n-th-color': thColor,
49
+ '--n-th-color-modal': thColorModal,
50
+ '--n-th-color-popover': thColorPopover,
51
+ '--n-td-color': tdColor,
52
+ '--n-td-color-modal': tdColorModal,
53
+ '--n-td-color-popover': tdColorPopover,
54
+ '--n-border-radius': borderRadius,
55
+ '--n-border-color': borderColor,
56
+ '--n-border-color-modal': borderColorModal,
57
+ '--n-border-color-popover': borderColorPopover
58
+ };
59
+ });
60
+ const themeClassHandle = inlineThemeDisabled
61
+ ? (0, _mixins_1.useThemeClass)('descriptions', (0, vue_1.computed)(() => {
62
+ let hash = '';
63
+ const { size, bordered } = props;
64
+ if (bordered)
65
+ hash += 'a';
66
+ hash += size[0];
67
+ return hash;
68
+ }), cssVarsRef, props)
69
+ : undefined;
35
70
  return {
36
71
  mergedClsPrefix: mergedClsPrefixRef,
37
- cssVars: (0, vue_1.computed)(() => {
38
- const { size, bordered } = props;
39
- const { common: { cubicBezierEaseInOut }, self: { thColor, thColorModal, thColorPopover, thTextColor, thFontWeight, tdTextColor, tdColor, tdColorModal, tdColorPopover, borderColor, borderColorModal, borderColorPopover, borderRadius, lineHeight, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)(bordered ? 'thPaddingBordered' : 'thPadding', size)]: thPadding, [(0, _utils_1.createKey)(bordered ? 'tdPaddingBordered' : 'tdPadding', size)]: tdPadding } } = themeRef.value;
40
- return {
41
- '--n-th-padding': thPadding,
42
- '--n-td-padding': tdPadding,
43
- '--n-font-size': fontSize,
44
- '--n-bezier': cubicBezierEaseInOut,
45
- '--n-th-font-weight': thFontWeight,
46
- '--n-line-height': lineHeight,
47
- '--n-th-text-color': thTextColor,
48
- '--n-td-text-color': tdTextColor,
49
- '--n-th-color': thColor,
50
- '--n-th-color-modal': thColorModal,
51
- '--n-th-color-popover': thColorPopover,
52
- '--n-td-color': tdColor,
53
- '--n-td-color-modal': tdColorModal,
54
- '--n-td-color-popover': tdColorPopover,
55
- '--n-border-radius': borderRadius,
56
- '--n-border-color': borderColor,
57
- '--n-border-color-modal': borderColorModal,
58
- '--n-border-color-popover': borderColorPopover
59
- };
60
- }),
61
- compitableColumn: (0, vooks_1.useCompitable)(props, ['columns', 'column'])
72
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
73
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
74
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender,
75
+ compitableColumn: (0, vooks_1.useCompitable)(props, ['columns', 'column']),
76
+ inlineThemeDisabled
62
77
  };
63
78
  },
64
79
  render() {
65
80
  const defaultSlots = this.$slots.default;
66
81
  const children = defaultSlots ? (0, _utils_1.flatten)(defaultSlots()) : [];
67
82
  const memorizedLength = children.length;
68
- const { compitableColumn, labelPlacement, labelAlign, size, bordered, title, cssVars, mergedClsPrefix, separator } = this;
83
+ const { compitableColumn, labelPlacement, labelAlign, size, bordered, title, cssVars, mergedClsPrefix, separator, onRender } = this;
84
+ onRender === null || onRender === void 0 ? void 0 : onRender();
69
85
  const filteredChildren = children.filter((child) => (0, utils_1.isDescriptionsItem)(child));
70
86
  if (process.env.NODE_ENV !== 'production' && memorizedLength !== filteredChildren.length) {
71
87
  (0, _utils_1.warn)('descriptions', '`n-descriptions` only takes `n-descriptions-item` as children.');
@@ -130,6 +146,7 @@ exports.default = (0, vue_1.defineComponent)({
130
146
  const rows = itemState.rows.map((row) => ((0, vue_1.h)("tr", { class: `${mergedClsPrefix}-descriptions-table-row` }, row)));
131
147
  return ((0, vue_1.h)("div", { style: cssVars, class: [
132
148
  `${mergedClsPrefix}-descriptions`,
149
+ this.themeClass,
133
150
  `${mergedClsPrefix}-descriptions--${labelPlacement}-label-placement`,
134
151
  `${mergedClsPrefix}-descriptions--${labelAlign}-label-align`,
135
152
  `${mergedClsPrefix}-descriptions--${size}-size`,
@@ -23,6 +23,7 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
23
23
  // --n-border-color
24
24
  // --n-border-color-modal
25
25
  // --n-border-color-popover
26
+ // --n-title-text-color
26
27
 
27
28
 
28
29
  exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('descriptions', {
@@ -67,7 +68,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('descriptions', {
67
68
  transition: color .3s var(--n-bezier);
68
69
  line-height: var(--n-line-height);
69
70
  margin-bottom: 16px;
70
- color: var(--n-th-text-color);
71
+ color: var(--n-title-text-color);
71
72
  `), (0, cssr_1.cB)('descriptions-table-wrapper', `
72
73
  transition:
73
74
  background-color .3s var(--n-bezier),
@@ -5,6 +5,7 @@ export declare const self: (vars: ThemeCommonVars) => {
5
5
  fontSizeSmall: string;
6
6
  fontSizeMedium: string;
7
7
  fontSizeLarge: string;
8
+ titleTextColor: string;
8
9
  thColor: string;
9
10
  thColorModal: string;
10
11
  thColorPopover: string;
@@ -8,11 +8,11 @@ const seemly_1 = require("seemly");
8
8
  const _common_1 = __importDefault(require("./_common"));
9
9
  const common_1 = require("../../_styles/common");
10
10
  const self = (vars) => {
11
- const { tableHeaderColor, textColor1, textColor2, cardColor, modalColor, popoverColor, dividerColor, borderRadius, fontWeightStrong, lineHeight, fontSizeSmall, fontSizeMedium, fontSizeLarge } = vars;
11
+ const { tableHeaderColor, textColor2, textColor1, cardColor, modalColor, popoverColor, dividerColor, borderRadius, fontWeightStrong, lineHeight, fontSizeSmall, fontSizeMedium, fontSizeLarge } = vars;
12
12
  return Object.assign(Object.assign({}, _common_1.default), { lineHeight,
13
13
  fontSizeSmall,
14
14
  fontSizeMedium,
15
- fontSizeLarge, thColor: (0, seemly_1.composite)(cardColor, tableHeaderColor), thColorModal: (0, seemly_1.composite)(modalColor, tableHeaderColor), thColorPopover: (0, seemly_1.composite)(popoverColor, tableHeaderColor), thTextColor: textColor1, thFontWeight: fontWeightStrong, tdTextColor: textColor2, tdColor: cardColor, tdColorModal: modalColor, tdColorPopover: popoverColor, borderColor: (0, seemly_1.composite)(cardColor, dividerColor), borderColorModal: (0, seemly_1.composite)(modalColor, dividerColor), borderColorPopover: (0, seemly_1.composite)(popoverColor, dividerColor), borderRadius: borderRadius });
15
+ fontSizeLarge, titleTextColor: textColor1, thColor: (0, seemly_1.composite)(cardColor, tableHeaderColor), thColorModal: (0, seemly_1.composite)(modalColor, tableHeaderColor), thColorPopover: (0, seemly_1.composite)(popoverColor, tableHeaderColor), thTextColor: textColor1, thFontWeight: fontWeightStrong, tdTextColor: textColor2, tdColor: cardColor, tdColorModal: modalColor, tdColorPopover: popoverColor, borderColor: (0, seemly_1.composite)(cardColor, dividerColor), borderColorModal: (0, seemly_1.composite)(modalColor, dividerColor), borderColorPopover: (0, seemly_1.composite)(popoverColor, dividerColor), borderRadius: borderRadius });
16
16
  };
17
17
  exports.self = self;
18
18
  const descriptionsLight = {
@@ -1096,7 +1096,9 @@ export declare const NDialog: import("vue").DefineComponent<{
1096
1096
  '--n-title-font-weight': string;
1097
1097
  '--n-title-text-color': string;
1098
1098
  '--n-action-space': string;
1099
- }>;
1099
+ }> | undefined;
1100
+ themeClass: import("vue").Ref<string> | undefined;
1101
+ onRender: (() => void) | undefined;
1100
1102
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1101
1103
  icon: import("vue").PropType<() => import("vue").VNodeChild>;
1102
1104
  type: {
@@ -11,8 +11,8 @@ const _utils_1 = require("../../_utils");
11
11
  const _internal_1 = require("../../_internal");
12
12
  const button_1 = require("../../button");
13
13
  const styles_1 = require("../styles");
14
- const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
15
14
  const dialogProps_1 = require("./dialogProps");
15
+ const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
16
16
  const infoIcon = (0, vue_1.h)(icons_1.InfoIcon, null);
17
17
  const iconMap = {
18
18
  default: infoIcon,
@@ -29,11 +29,13 @@ exports.NDialog = (0, vue_1.defineComponent)({
29
29
  ],
30
30
  props: Object.assign(Object.assign({}, _mixins_1.useTheme.props), dialogProps_1.dialogProps),
31
31
  setup(props) {
32
- const { NConfigProvider, mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
32
+ const { mergedComponentPropsRef, mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
33
33
  const mergedIconPlacementRef = (0, vue_1.computed)(() => {
34
- var _a, _b, _c;
34
+ var _a, _b;
35
35
  const { iconPlacement } = props;
36
- return ((_c = iconPlacement !== null && iconPlacement !== void 0 ? iconPlacement : (_b = (_a = NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Dialog) === null || _b === void 0 ? void 0 : _b.iconPlacement) !== null && _c !== void 0 ? _c : 'left');
36
+ return (iconPlacement ||
37
+ ((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Dialog) === null || _b === void 0 ? void 0 : _b.iconPlacement) ||
38
+ 'left');
37
39
  });
38
40
  function handlePositiveClick(e) {
39
41
  const { onPositiveClick } = props;
@@ -51,6 +53,37 @@ exports.NDialog = (0, vue_1.defineComponent)({
51
53
  onClose();
52
54
  }
53
55
  const themeRef = (0, _mixins_1.useTheme)('Dialog', '-dialog', index_cssr_1.default, styles_1.dialogLight, props, mergedClsPrefixRef);
56
+ const cssVarsRef = (0, vue_1.computed)(() => {
57
+ const { type } = props;
58
+ const iconPlacement = mergedIconPlacementRef.value;
59
+ const { common: { cubicBezierEaseInOut }, self: { fontSize, lineHeight, border, titleTextColor, textColor, color, closeColor, closeColorHover, closeColorPressed, borderRadius, titleFontWeight, titleFontSize, padding, iconSize, actionSpace, contentMargin, closeSize, [iconPlacement === 'top' ? 'iconMarginIconTop' : 'iconMargin']: iconMargin, [iconPlacement === 'top' ? 'closeMarginIconTop' : 'closeMargin']: closeMargin, [(0, _utils_1.createKey)('iconColor', type)]: iconColor } } = themeRef.value;
60
+ return {
61
+ '--n-font-size': fontSize,
62
+ '--n-icon-color': iconColor,
63
+ '--n-bezier': cubicBezierEaseInOut,
64
+ '--n-close-margin': closeMargin,
65
+ '--n-icon-margin': iconMargin,
66
+ '--n-icon-size': iconSize,
67
+ '--n-close-size': closeSize,
68
+ '--n-close-color': closeColor,
69
+ '--n-close-color-hover': closeColorHover,
70
+ '--n-close-color-pressed': closeColorPressed,
71
+ '--n-color': color,
72
+ '--n-text-color': textColor,
73
+ '--n-border-radius': borderRadius,
74
+ '--n-padding': padding,
75
+ '--n-line-height': lineHeight,
76
+ '--n-border': border,
77
+ '--n-content-margin': contentMargin,
78
+ '--n-title-font-size': titleFontSize,
79
+ '--n-title-font-weight': titleFontWeight,
80
+ '--n-title-text-color': titleTextColor,
81
+ '--n-action-space': actionSpace
82
+ };
83
+ });
84
+ const themeClassHandle = inlineThemeDisabled
85
+ ? (0, _mixins_1.useThemeClass)('dialog', (0, vue_1.computed)(() => `${props.type[0]}${mergedIconPlacementRef.value[0]}`), cssVarsRef, props)
86
+ : undefined;
54
87
  return {
55
88
  mergedClsPrefix: mergedClsPrefixRef,
56
89
  mergedIconPlacement: mergedIconPlacementRef,
@@ -58,65 +91,33 @@ exports.NDialog = (0, vue_1.defineComponent)({
58
91
  handlePositiveClick,
59
92
  handleNegativeClick,
60
93
  handleCloseClick,
61
- cssVars: (0, vue_1.computed)(() => {
62
- const { type, iconPlacement } = props;
63
- const { common: { cubicBezierEaseInOut }, self: { fontSize, lineHeight, border, titleTextColor, textColor, color, closeColor, closeColorHover, closeColorPressed, borderRadius, titleFontWeight, titleFontSize, padding, iconSize, actionSpace, contentMargin, closeSize, [iconPlacement === 'top' ? 'iconMarginIconTop' : 'iconMargin']: iconMargin, [iconPlacement === 'top' ? 'closeMarginIconTop' : 'closeMargin']: closeMargin, [(0, _utils_1.createKey)('iconColor', type)]: iconColor } } = themeRef.value;
64
- return {
65
- '--n-font-size': fontSize,
66
- '--n-icon-color': iconColor,
67
- '--n-bezier': cubicBezierEaseInOut,
68
- '--n-close-margin': closeMargin,
69
- '--n-icon-margin': iconMargin,
70
- '--n-icon-size': iconSize,
71
- '--n-close-size': closeSize,
72
- '--n-close-color': closeColor,
73
- '--n-close-color-hover': closeColorHover,
74
- '--n-close-color-pressed': closeColorPressed,
75
- '--n-color': color,
76
- '--n-text-color': textColor,
77
- '--n-border-radius': borderRadius,
78
- '--n-padding': padding,
79
- '--n-line-height': lineHeight,
80
- '--n-border': border,
81
- '--n-content-margin': contentMargin,
82
- '--n-title-font-size': titleFontSize,
83
- '--n-title-font-weight': titleFontWeight,
84
- '--n-title-text-color': titleTextColor,
85
- '--n-action-space': actionSpace
86
- };
87
- })
94
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
95
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
96
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
88
97
  };
89
98
  },
90
99
  render() {
91
- const { $slots, bordered, mergedIconPlacement, cssVars, closable, showIcon, title, content, action, negativeText, positiveText, handlePositiveClick, handleNegativeClick, mergedTheme, loading, type, mergedClsPrefix } = this;
100
+ var _a;
101
+ const { bordered, mergedIconPlacement, cssVars, closable, showIcon, title, content, action, negativeText, positiveText, handlePositiveClick, handleNegativeClick, mergedTheme, loading, type, mergedClsPrefix } = this;
102
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
103
+ const icon = showIcon ? ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-dialog__icon` }, {
104
+ default: () => (0, _utils_1.resolveWrappedSlot)(this.$slots.icon, (children) => children || (this.icon ? (0, _utils_1.render)(this.icon) : iconMap[this.type]))
105
+ })) : null;
92
106
  return ((0, vue_1.h)("div", { class: [
93
107
  `${mergedClsPrefix}-dialog`,
108
+ this.themeClass,
94
109
  `${mergedClsPrefix}-dialog--icon-${mergedIconPlacement}`,
95
110
  bordered && `${mergedClsPrefix}-dialog--bordered`
96
111
  ], style: cssVars, role: "dialog" },
97
112
  closable ? ((0, vue_1.h)(_internal_1.NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-dialog__close`, onClick: this.handleCloseClick })) : null,
98
- showIcon && mergedIconPlacement === 'top' ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog-icon-container` },
99
- (0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-dialog__icon` }, {
100
- default: () => $slots.icon
101
- ? $slots.icon()
102
- : this.icon
103
- ? (0, _utils_1.render)(this.icon)
104
- : iconMap[this.type]
105
- }))) : null,
113
+ showIcon && mergedIconPlacement === 'top' ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog-icon-container` }, icon)) : null,
106
114
  (0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__title` },
107
- showIcon && mergedIconPlacement === 'left' ? ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-dialog__icon` }, {
108
- default: () => $slots.icon
109
- ? $slots.icon()
110
- : this.icon
111
- ? (0, _utils_1.render)(this.icon)
112
- : iconMap[this.type]
113
- })) : null,
114
- $slots.header ? $slots.header() : (0, _utils_1.render)(title)),
115
- (0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__content` }, $slots.default ? $slots.default() : (0, _utils_1.render)(content)),
116
- $slots.action || positiveText || negativeText || action ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__action` }, $slots.action
117
- ? $slots.action()
118
- : action
119
- ? (0, _utils_1.render)(action)
115
+ showIcon && mergedIconPlacement === 'left' ? icon : null,
116
+ (0, _utils_1.resolveSlot)(this.$slots.header, () => [(0, _utils_1.render)(title)])),
117
+ (0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__content` }, (0, _utils_1.resolveSlot)(this.$slots.default, () => [(0, _utils_1.render)(content)])),
118
+ (0, _utils_1.resolveWrappedSlot)(this.$slots.action, (children) => children || positiveText || negativeText || action ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__action` }, children ||
119
+ (action
120
+ ? [(0, _utils_1.render)(action)]
120
121
  : [
121
122
  this.negativeText && ((0, vue_1.h)(button_1.NButton, { theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, ghost: true, size: "small", onClick: handleNegativeClick }, {
122
123
  default: () => (0, _utils_1.render)(this.negativeText)
@@ -124,6 +125,6 @@ exports.NDialog = (0, vue_1.defineComponent)({
124
125
  this.positiveText && ((0, vue_1.h)(button_1.NButton, { theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, disabled: loading, loading: loading, size: "small", type: type === 'default' ? 'primary' : type, onClick: handlePositiveClick }, {
125
126
  default: () => (0, _utils_1.render)(this.positiveText)
126
127
  }))
127
- ])) : null));
128
+ ]))) : null)));
128
129
  }
129
130
  });
@@ -96,7 +96,7 @@ exports.NDialogEnvironment = (0, vue_1.defineComponent)({
96
96
  },
97
97
  render() {
98
98
  const { handlePositiveClick, handleUpdateShow, handleNegativeClick, handleCloseClick, handleAfterLeave, handleMaskClick, to, maskClosable, show } = this;
99
- return ((0, vue_1.h)(Modal_1.default, { show: show, onUpdateShow: handleUpdateShow, onMaskClick: handleMaskClick, appear: true, dialog: true, to: to, maskClosable: maskClosable, onAfterLeave: handleAfterLeave }, {
99
+ return ((0, vue_1.h)(Modal_1.default, { show: show, onUpdateShow: handleUpdateShow, onMaskClick: handleMaskClick, to: to, maskClosable: maskClosable, onAfterLeave: handleAfterLeave, internalAppear: true, internalDialog: true }, {
100
100
  default: () => ((0, vue_1.h)(Dialog_1.NDialog, Object.assign({}, (0, _utils_1.keep)(this.$props, dialogProps_1.dialogPropKeys), { style: this.internalStyle, onClose: handleCloseClick, onNegativeClick: handleNegativeClick, onPositiveClick: handlePositiveClick })))
101
101
  }));
102
102
  }
@@ -53,7 +53,9 @@ declare const _default: import("vue").DefineComponent<{
53
53
  '--n-color': string;
54
54
  '--n-text-color': string;
55
55
  '--n-font-weight': string;
56
- }>;
56
+ }> | undefined;
57
+ themeClass: import("vue").Ref<string> | undefined;
58
+ onRender: (() => void) | undefined;
57
59
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
58
60
  readonly titlePlacement: {
59
61
  readonly type: PropType<"left" | "right" | "center">;
@@ -15,25 +15,34 @@ exports.default = (0, vue_1.defineComponent)({
15
15
  name: 'Divider',
16
16
  props: dividerProps,
17
17
  setup(props) {
18
- const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
18
+ const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
19
19
  const themeRef = (0, _mixins_1.useTheme)('Divider', '-divider', index_cssr_1.default, styles_1.dividerLight, props, mergedClsPrefixRef);
20
+ const cssVarsRef = (0, vue_1.computed)(() => {
21
+ const { common: { cubicBezierEaseInOut }, self: { color, textColor, fontWeight } } = themeRef.value;
22
+ return {
23
+ '--n-bezier': cubicBezierEaseInOut,
24
+ '--n-color': color,
25
+ '--n-text-color': textColor,
26
+ '--n-font-weight': fontWeight
27
+ };
28
+ });
29
+ const themeClassHandle = inlineThemeDisabled
30
+ ? (0, _mixins_1.useThemeClass)('divider', undefined, cssVarsRef, props)
31
+ : undefined;
20
32
  return {
21
33
  mergedClsPrefix: mergedClsPrefixRef,
22
- cssVars: (0, vue_1.computed)(() => {
23
- const { common: { cubicBezierEaseInOut }, self: { color, textColor, fontWeight } } = themeRef.value;
24
- return {
25
- '--n-bezier': cubicBezierEaseInOut,
26
- '--n-color': color,
27
- '--n-text-color': textColor,
28
- '--n-font-weight': fontWeight
29
- };
30
- })
34
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
35
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
36
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
31
37
  };
32
38
  },
33
39
  render() {
40
+ var _a;
34
41
  const { $slots, titlePlacement, vertical, dashed, cssVars, mergedClsPrefix } = this;
42
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
35
43
  return ((0, vue_1.h)("div", { role: "separator", class: [
36
44
  `${mergedClsPrefix}-divider`,
45
+ this.themeClass,
37
46
  {
38
47
  [`${mergedClsPrefix}-divider--vertical`]: vertical,
39
48
  [`${mergedClsPrefix}-divider--no-title`]: !$slots.default,
@@ -59,7 +59,7 @@ exports.default = (0, vue_1.defineComponent)({
59
59
  }
60
60
  });
61
61
  }
62
- const { NConfigProvider, mergedClsPrefixRef } = (0, _mixins_1.useConfig)();
62
+ const { mergedComponentPropsRef, mergedClsPrefixRef } = (0, _mixins_1.useConfig)();
63
63
  const NFormItem = (0, vue_1.inject)(use_form_item_1.formItemInjectionKey, null);
64
64
  const uncontrolledValueRef = (0, vue_1.ref)(props.defaultValue);
65
65
  const controlledValueRef = (0, vue_1.toRef)(props, 'value');
@@ -81,7 +81,7 @@ exports.default = (0, vue_1.defineComponent)({
81
81
  });
82
82
  const buttonSizeRef = (0, vue_1.computed)(() => {
83
83
  var _a, _b;
84
- return (_b = (_a = NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.DynamicInput) === null || _b === void 0 ? void 0 : _b.buttonSize;
84
+ return (_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.DynamicInput) === null || _b === void 0 ? void 0 : _b.buttonSize;
85
85
  });
86
86
  function doUpdateValue(value) {
87
87
  const { onInput, 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
@@ -2567,7 +2567,9 @@ declare const _default: import("vue").DefineComponent<{
2567
2567
  }>;
2568
2568
  cssVars: import("vue").ComputedRef<{
2569
2569
  '--n-input-width': string;
2570
- }>;
2570
+ }> | undefined;
2571
+ themeClass: import("vue").Ref<string> | undefined;
2572
+ onRender: (() => void) | undefined;
2571
2573
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2572
2574
  closable: {
2573
2575
  type: BooleanConstructor;
@@ -36,7 +36,7 @@ exports.default = (0, vue_1.defineComponent)({
36
36
  }
37
37
  });
38
38
  }
39
- const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
39
+ const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
40
40
  const { localeRef } = (0, _mixins_1.useLocale)('DynamicTags');
41
41
  const formItem = (0, _mixins_1.useFormItem)(props);
42
42
  const { mergedDisabledRef } = formItem;
@@ -105,6 +105,15 @@ exports.default = (0, vue_1.defineComponent)({
105
105
  inputForceFocusedRef.value = false;
106
106
  });
107
107
  }
108
+ const cssVarsRef = (0, vue_1.computed)(() => {
109
+ const { self: { inputWidth } } = themeRef.value;
110
+ return {
111
+ '--n-input-width': inputWidth
112
+ };
113
+ });
114
+ const themeClassHandle = inlineThemeDisabled
115
+ ? (0, _mixins_1.useThemeClass)('dynamic-tags', undefined, cssVarsRef, props)
116
+ : undefined;
108
117
  return {
109
118
  mergedClsPrefix: mergedClsPrefixRef,
110
119
  inputInstRef,
@@ -122,17 +131,15 @@ exports.default = (0, vue_1.defineComponent)({
122
131
  handleCloseClick,
123
132
  handleInputConfirm,
124
133
  mergedTheme: themeRef,
125
- cssVars: (0, vue_1.computed)(() => {
126
- const { self: { inputWidth } } = themeRef.value;
127
- return {
128
- '--n-input-width': inputWidth
129
- };
130
- })
134
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
135
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
136
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
131
137
  };
132
138
  },
133
139
  render() {
134
- const { mergedTheme, cssVars, mergedClsPrefix } = this;
135
- return ((0, vue_1.h)(space_1.NSpace, { class: `${mergedClsPrefix}-dynamic-tags`, size: "small", style: cssVars, theme: mergedTheme.peers.Space, themeOverrides: mergedTheme.peerOverrides.Space, itemStyle: "display: flex;" }, {
140
+ const { mergedTheme, cssVars, mergedClsPrefix, onRender } = this;
141
+ onRender === null || onRender === void 0 ? void 0 : onRender();
142
+ return ((0, vue_1.h)(space_1.NSpace, { class: [`${mergedClsPrefix}-dynamic-tags`, this.themeClass], size: "small", style: cssVars, theme: mergedTheme.peers.Space, themeOverrides: mergedTheme.peerOverrides.Space, itemStyle: "display: flex;" }, {
136
143
  default: () => {
137
144
  const { mergedTheme, tagStyle, type, round, size, color, closable, mergedDisabled, showInput, inputValue, inputStyle, inputSize, inputForceFocused, triggerDisabled, handleInputKeyUp, handleInputBlur, handleAddClick, handleCloseClick, handleInputConfirm, $slots } = this;
138
145
  return this.mergedValue
@@ -19,7 +19,9 @@ declare const _default: import("vue").DefineComponent<{
19
19
  readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Element", {}, any>>>;
20
20
  }, {
21
21
  mergedClsPrefix: import("vue").ComputedRef<string>;
22
- cssVars: import("vue").ComputedRef<Record<string, string | number>>;
22
+ cssVars: import("vue").ComputedRef<Record<string, string>> | undefined;
23
+ themeClass: import("vue").Ref<string> | undefined;
24
+ onRender: (() => void) | undefined;
23
25
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
26
  readonly tag: {
25
27
  readonly type: StringConstructor;
@@ -13,25 +13,32 @@ exports.default = (0, vue_1.defineComponent)({
13
13
  alias: ['El'],
14
14
  props: elementProps,
15
15
  setup(props) {
16
- const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
16
+ const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
17
17
  const themeRef = (0, _mixins_1.useTheme)('Element', '-element', undefined, styles_1.elementLight, props, mergedClsPrefixRef);
18
+ const cssVarsRef = (0, vue_1.computed)(() => {
19
+ const { common } = themeRef.value;
20
+ return Object.keys(common).reduce((prevValue, key) => {
21
+ prevValue[`--${(0, lodash_1.kebabCase)(key)}`] = common[key];
22
+ return prevValue;
23
+ }, {});
24
+ });
25
+ const themeClassHandle = inlineThemeDisabled
26
+ ? (0, _mixins_1.useThemeClass)('element', undefined, cssVarsRef, props)
27
+ : undefined;
18
28
  return {
19
29
  mergedClsPrefix: mergedClsPrefixRef,
20
- cssVars: (0, vue_1.computed)(() => {
21
- const { common } = themeRef.value;
22
- return Object.keys(common).reduce((prevValue, key) => {
23
- prevValue[`--${(0, lodash_1.kebabCase)(key)}`] = common[key];
24
- return prevValue;
25
- }, {});
26
- })
30
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
31
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
32
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
27
33
  };
28
34
  },
29
35
  render() {
30
36
  var _a;
31
- const { tag, mergedClsPrefix, cssVars, $slots } = this;
37
+ const { tag, mergedClsPrefix, cssVars, themeClass, onRender, $slots } = this;
38
+ onRender === null || onRender === void 0 ? void 0 : onRender();
32
39
  return (0, vue_1.h)(tag, {
33
40
  role: 'none',
34
- class: `${mergedClsPrefix}-element`,
41
+ class: [`${mergedClsPrefix}-element`, themeClass],
35
42
  style: cssVars
36
43
  }, (_a = $slots.default) === null || _a === void 0 ? void 0 : _a.call($slots));
37
44
  }
@@ -121,7 +121,9 @@ declare const _default: import("vue").DefineComponent<{
121
121
  '--n-text-color': string;
122
122
  '--n-icon-color': string;
123
123
  '--n-extra-text-color': string;
124
- }>;
124
+ }> | undefined;
125
+ themeClass: import("vue").Ref<string> | undefined;
126
+ onRender: (() => void) | undefined;
125
127
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
126
128
  description: StringConstructor;
127
129
  showDescription: {