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
@@ -12,26 +12,35 @@ exports.default = (0, vue_1.defineComponent)({
12
12
  name: 'Blockquote',
13
13
  props: blockquoteProps,
14
14
  setup(props) {
15
- const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
15
+ const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
16
16
  const themeRef = (0, _mixins_1.useTheme)('Typography', '-blockquote', blockquote_cssr_1.default, styles_1.typographyLight, props, mergedClsPrefixRef);
17
+ const cssVarsRef = (0, vue_1.computed)(() => {
18
+ const { common: { cubicBezierEaseInOut }, self: { blockquoteTextColor, blockquotePrefixColor, blockquoteLineHeight, blockquoteFontSize } } = themeRef.value;
19
+ return {
20
+ '--n-bezier': cubicBezierEaseInOut,
21
+ '--n-font-size': blockquoteFontSize,
22
+ '--n-line-height': blockquoteLineHeight,
23
+ '--n-prefix-color': blockquotePrefixColor,
24
+ '--n-text-color': blockquoteTextColor
25
+ };
26
+ });
27
+ const themeClassHandle = inlineThemeDisabled
28
+ ? (0, _mixins_1.useThemeClass)('blockquote', undefined, cssVarsRef, props)
29
+ : undefined;
17
30
  return {
18
31
  mergedClsPrefix: mergedClsPrefixRef,
19
- cssVars: (0, vue_1.computed)(() => {
20
- const { common: { cubicBezierEaseInOut }, self: { blockquoteTextColor, blockquotePrefixColor, blockquoteLineHeight, blockquoteFontSize } } = themeRef.value;
21
- return {
22
- '--n-bezier': cubicBezierEaseInOut,
23
- '--n-font-size': blockquoteFontSize,
24
- '--n-line-height': blockquoteLineHeight,
25
- '--n-prefix-color': blockquotePrefixColor,
26
- '--n-text-color': blockquoteTextColor
27
- };
28
- })
32
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
33
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
34
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
29
35
  };
30
36
  },
31
37
  render() {
38
+ var _a;
32
39
  const { mergedClsPrefix } = this;
40
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
33
41
  return ((0, vue_1.h)("blockquote", { class: [
34
42
  `${mergedClsPrefix}-blockquote`,
43
+ this.themeClass,
35
44
  this.alignText && `${mergedClsPrefix}-blockquote--align-text`
36
45
  ], style: this.cssVars }, this.$slots));
37
46
  }
@@ -423,7 +423,9 @@ declare const _default: (level: '1' | '2' | '3' | '4' | '5' | '6') => import("vu
423
423
  '--n-font-weight': string;
424
424
  '--n-text-color': string;
425
425
  '--n-prefix-width': string;
426
- }>;
426
+ }> | undefined;
427
+ themeClass: import("vue").Ref<string> | undefined;
428
+ onRender: (() => void) | undefined;
427
429
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
428
430
  readonly type: {
429
431
  readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
@@ -17,32 +17,41 @@ exports.default = (level) => (0, vue_1.defineComponent)({
17
17
  name: `H${level}`,
18
18
  props: headerProps,
19
19
  setup(props) {
20
- const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
20
+ const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
21
21
  const themeRef = (0, _mixins_1.useTheme)('Typography', '-h', header_cssr_1.default, styles_1.typographyLight, props, mergedClsPrefixRef);
22
+ const cssVarsRef = (0, vue_1.computed)(() => {
23
+ const { type } = props;
24
+ const { common: { cubicBezierEaseInOut }, self: { headerFontWeight, headerTextColor, [(0, _utils_1.createKey)('headerPrefixWidth', level)]: prefixWidth, [(0, _utils_1.createKey)('headerFontSize', level)]: fontSize, [(0, _utils_1.createKey)('headerMargin', level)]: margin, [(0, _utils_1.createKey)('headerBarWidth', level)]: barWidth, [(0, _utils_1.createKey)('headerBarColor', type)]: barColor } } = themeRef.value;
25
+ return {
26
+ '--n-bezier': cubicBezierEaseInOut,
27
+ '--n-font-size': fontSize,
28
+ '--n-margin': margin,
29
+ '--n-bar-color': barColor,
30
+ '--n-bar-width': barWidth,
31
+ '--n-font-weight': headerFontWeight,
32
+ '--n-text-color': headerTextColor,
33
+ '--n-prefix-width': prefixWidth
34
+ };
35
+ });
36
+ const themeClassHandle = inlineThemeDisabled
37
+ ? (0, _mixins_1.useThemeClass)(`h${level}`, (0, vue_1.computed)(() => props.type[0]), cssVarsRef, props)
38
+ : undefined;
22
39
  return {
23
40
  mergedClsPrefix: mergedClsPrefixRef,
24
- cssVars: (0, vue_1.computed)(() => {
25
- const { type } = props;
26
- const { common: { cubicBezierEaseInOut }, self: { headerFontWeight, headerTextColor, [(0, _utils_1.createKey)('headerPrefixWidth', level)]: prefixWidth, [(0, _utils_1.createKey)('headerFontSize', level)]: fontSize, [(0, _utils_1.createKey)('headerMargin', level)]: margin, [(0, _utils_1.createKey)('headerBarWidth', level)]: barWidth, [(0, _utils_1.createKey)('headerBarColor', type)]: barColor } } = themeRef.value;
27
- return {
28
- '--n-bezier': cubicBezierEaseInOut,
29
- '--n-font-size': fontSize,
30
- '--n-margin': margin,
31
- '--n-bar-color': barColor,
32
- '--n-bar-width': barWidth,
33
- '--n-font-weight': headerFontWeight,
34
- '--n-text-color': headerTextColor,
35
- '--n-prefix-width': prefixWidth
36
- };
37
- })
41
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
42
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
43
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
38
44
  };
39
45
  },
40
46
  render() {
47
+ var _a;
41
48
  const { prefix, alignText, mergedClsPrefix, cssVars, $slots } = this;
49
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
42
50
  return (0, vue_1.h)(`h${level}`, {
43
51
  class: [
44
52
  `${mergedClsPrefix}-h`,
45
53
  `${mergedClsPrefix}-h${level}`,
54
+ this.themeClass,
46
55
  {
47
56
  [`${mergedClsPrefix}-h--prefix-bar`]: prefix,
48
57
  [`${mergedClsPrefix}-h--align-text`]: alignText
@@ -214,7 +214,9 @@ export declare const NH1: import("vue").DefineComponent<{
214
214
  '--n-font-weight': string;
215
215
  '--n-text-color': string;
216
216
  '--n-prefix-width': string;
217
- }>;
217
+ }> | undefined;
218
+ themeClass: import("vue").Ref<string> | undefined;
219
+ onRender: (() => void) | undefined;
218
220
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
219
221
  readonly type: {
220
222
  readonly type: import("vue").PropType<"default" | "error" | "info" | "success" | "warning">;
@@ -640,7 +642,9 @@ export declare const NH2: import("vue").DefineComponent<{
640
642
  '--n-font-weight': string;
641
643
  '--n-text-color': string;
642
644
  '--n-prefix-width': string;
643
- }>;
645
+ }> | undefined;
646
+ themeClass: import("vue").Ref<string> | undefined;
647
+ onRender: (() => void) | undefined;
644
648
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
645
649
  readonly type: {
646
650
  readonly type: import("vue").PropType<"default" | "error" | "info" | "success" | "warning">;
@@ -1066,7 +1070,9 @@ export declare const NH3: import("vue").DefineComponent<{
1066
1070
  '--n-font-weight': string;
1067
1071
  '--n-text-color': string;
1068
1072
  '--n-prefix-width': string;
1069
- }>;
1073
+ }> | undefined;
1074
+ themeClass: import("vue").Ref<string> | undefined;
1075
+ onRender: (() => void) | undefined;
1070
1076
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1071
1077
  readonly type: {
1072
1078
  readonly type: import("vue").PropType<"default" | "error" | "info" | "success" | "warning">;
@@ -1492,7 +1498,9 @@ export declare const NH4: import("vue").DefineComponent<{
1492
1498
  '--n-font-weight': string;
1493
1499
  '--n-text-color': string;
1494
1500
  '--n-prefix-width': string;
1495
- }>;
1501
+ }> | undefined;
1502
+ themeClass: import("vue").Ref<string> | undefined;
1503
+ onRender: (() => void) | undefined;
1496
1504
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1497
1505
  readonly type: {
1498
1506
  readonly type: import("vue").PropType<"default" | "error" | "info" | "success" | "warning">;
@@ -1918,7 +1926,9 @@ export declare const NH5: import("vue").DefineComponent<{
1918
1926
  '--n-font-weight': string;
1919
1927
  '--n-text-color': string;
1920
1928
  '--n-prefix-width': string;
1921
- }>;
1929
+ }> | undefined;
1930
+ themeClass: import("vue").Ref<string> | undefined;
1931
+ onRender: (() => void) | undefined;
1922
1932
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1923
1933
  readonly type: {
1924
1934
  readonly type: import("vue").PropType<"default" | "error" | "info" | "success" | "warning">;
@@ -2344,7 +2354,9 @@ export declare const NH6: import("vue").DefineComponent<{
2344
2354
  '--n-font-weight': string;
2345
2355
  '--n-text-color': string;
2346
2356
  '--n-prefix-width': string;
2347
- }>;
2357
+ }> | undefined;
2358
+ themeClass: import("vue").Ref<string> | undefined;
2359
+ onRender: (() => void) | undefined;
2348
2360
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2349
2361
  readonly type: {
2350
2362
  readonly type: import("vue").PropType<"default" | "error" | "info" | "success" | "warning">;
@@ -202,7 +202,9 @@ declare const _default: import("vue").DefineComponent<{
202
202
  cssVars: import("vue").ComputedRef<{
203
203
  '--n-bezier': string;
204
204
  '--n-color': string;
205
- }>;
205
+ }> | undefined;
206
+ themeClass: import("vue").Ref<string> | undefined;
207
+ onRender: (() => void) | undefined;
206
208
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
207
209
  theme: import("vue").PropType<import("../../_mixins").Theme<"Typography", {
208
210
  aTextColor: string;
@@ -11,20 +11,28 @@ exports.default = (0, vue_1.defineComponent)({
11
11
  name: 'Hr',
12
12
  props: Object.assign({}, _mixins_1.useTheme.props),
13
13
  setup(props) {
14
- const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
14
+ const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
15
15
  const themeRef = (0, _mixins_1.useTheme)('Typography', '-hr', hr_cssr_1.default, styles_1.typographyLight, props, mergedClsPrefixRef);
16
+ const cssVarsRef = (0, vue_1.computed)(() => {
17
+ const { common: { cubicBezierEaseInOut }, self: { hrColor } } = themeRef.value;
18
+ return {
19
+ '--n-bezier': cubicBezierEaseInOut,
20
+ '--n-color': hrColor
21
+ };
22
+ });
23
+ const themeClassHandle = inlineThemeDisabled
24
+ ? (0, _mixins_1.useThemeClass)('hr', undefined, cssVarsRef, props)
25
+ : undefined;
16
26
  return {
17
27
  mergedClsPrefix: mergedClsPrefixRef,
18
- cssVars: (0, vue_1.computed)(() => {
19
- const { common: { cubicBezierEaseInOut }, self: { hrColor } } = themeRef.value;
20
- return {
21
- '--n-bezier': cubicBezierEaseInOut,
22
- '--n-color': hrColor
23
- };
24
- })
28
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
29
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
30
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
25
31
  };
26
32
  },
27
33
  render() {
28
- return ((0, vue_1.h)("hr", { class: `${this.mergedClsPrefix}-hr`, style: this.cssVars }));
34
+ var _a;
35
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
36
+ return ((0, vue_1.h)("hr", { class: [`${this.mergedClsPrefix}-hr`, this.themeClass], style: this.cssVars }));
29
37
  }
30
38
  });
@@ -411,7 +411,9 @@ declare const _default: import("vue").DefineComponent<{
411
411
  '--n-li-margin': string;
412
412
  '--n-ol-padding': string;
413
413
  '--n-ul-padding': string;
414
- }>;
414
+ }> | undefined;
415
+ themeClass: import("vue").Ref<string> | undefined;
416
+ onRender: (() => void) | undefined;
415
417
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
416
418
  alignText: BooleanConstructor;
417
419
  theme: import("vue").PropType<import("../../_mixins").Theme<"Typography", {
@@ -12,28 +12,37 @@ exports.default = (0, vue_1.defineComponent)({
12
12
  name: 'Ol',
13
13
  props: olProps,
14
14
  setup(props) {
15
- const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
15
+ const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
16
16
  const themeRef = (0, _mixins_1.useTheme)('Typography', '-xl', list_cssr_1.default, styles_1.typographyLight, props, mergedClsPrefixRef);
17
+ const cssVarsRef = (0, vue_1.computed)(() => {
18
+ const { common: { cubicBezierEaseInOut }, self: { olPadding, ulPadding, liMargin, liTextColor, liLineHeight, liFontSize } } = themeRef.value;
19
+ return {
20
+ '--n-bezier': cubicBezierEaseInOut,
21
+ '--n-font-size': liFontSize,
22
+ '--n-line-height': liLineHeight,
23
+ '--n-text-color': liTextColor,
24
+ '--n-li-margin': liMargin,
25
+ '--n-ol-padding': olPadding,
26
+ '--n-ul-padding': ulPadding
27
+ };
28
+ });
29
+ const themeClassHandle = inlineThemeDisabled
30
+ ? (0, _mixins_1.useThemeClass)('ol', undefined, cssVarsRef, props)
31
+ : undefined;
17
32
  return {
18
33
  mergedClsPrefix: mergedClsPrefixRef,
19
- cssVars: (0, vue_1.computed)(() => {
20
- const { common: { cubicBezierEaseInOut }, self: { olPadding, ulPadding, liMargin, liTextColor, liLineHeight, liFontSize } } = themeRef.value;
21
- return {
22
- '--n-bezier': cubicBezierEaseInOut,
23
- '--n-font-size': liFontSize,
24
- '--n-line-height': liLineHeight,
25
- '--n-text-color': liTextColor,
26
- '--n-li-margin': liMargin,
27
- '--n-ol-padding': olPadding,
28
- '--n-ul-padding': ulPadding
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 { mergedClsPrefix } = this;
42
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
35
43
  return ((0, vue_1.h)("ol", { class: [
36
44
  `${mergedClsPrefix}-ol`,
45
+ this.themeClass,
37
46
  this.alignText && `${mergedClsPrefix}-ol--align-text`
38
47
  ], style: this.cssVars }, this.$slots));
39
48
  }
@@ -410,7 +410,9 @@ declare const _default: import("vue").DefineComponent<{
410
410
  '--n-line-height': string;
411
411
  '--n-margin': string;
412
412
  '--n-text-color': string;
413
- }>;
413
+ }> | undefined;
414
+ themeClass: import("vue").Ref<string> | undefined;
415
+ onRender: (() => void) | undefined;
414
416
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
415
417
  depth: PropType<2 | 1 | 3 | "1" | "2" | "3">;
416
418
  theme: PropType<import("../../_mixins").Theme<"Typography", {
@@ -12,25 +12,33 @@ exports.default = (0, vue_1.defineComponent)({
12
12
  name: 'P',
13
13
  props: pProps,
14
14
  setup(props) {
15
- const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
15
+ const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
16
16
  const themeRef = (0, _mixins_1.useTheme)('Typography', '-p', p_cssr_1.default, styles_1.typographyLight, props, mergedClsPrefixRef);
17
+ const cssVarsRef = (0, vue_1.computed)(() => {
18
+ const { depth } = props;
19
+ const typeSafeDepth = depth || '1';
20
+ const { common: { cubicBezierEaseInOut }, self: { pFontSize, pLineHeight, pMargin, pTextColor, [`pTextColor${typeSafeDepth}Depth`]: depthTextColor } } = themeRef.value;
21
+ return {
22
+ '--n-bezier': cubicBezierEaseInOut,
23
+ '--n-font-size': pFontSize,
24
+ '--n-line-height': pLineHeight,
25
+ '--n-margin': pMargin,
26
+ '--n-text-color': depth === undefined ? pTextColor : depthTextColor
27
+ };
28
+ });
29
+ const themeClassHandle = inlineThemeDisabled
30
+ ? (0, _mixins_1.useThemeClass)('p', (0, vue_1.computed)(() => `${props.depth || ''}`), cssVarsRef, props)
31
+ : undefined;
17
32
  return {
18
33
  mergedClsPrefix: mergedClsPrefixRef,
19
- cssVars: (0, vue_1.computed)(() => {
20
- const { depth } = props;
21
- const typeSafeDepth = depth || '1';
22
- const { common: { cubicBezierEaseInOut }, self: { pFontSize, pLineHeight, pMargin, pTextColor, [`pTextColor${typeSafeDepth}Depth`]: depthTextColor } } = themeRef.value;
23
- return {
24
- '--n-bezier': cubicBezierEaseInOut,
25
- '--n-font-size': pFontSize,
26
- '--n-line-height': pLineHeight,
27
- '--n-margin': pMargin,
28
- '--n-text-color': depth === undefined ? pTextColor : depthTextColor
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() {
34
- return ((0, vue_1.h)("p", { class: `${this.mergedClsPrefix}-p`, style: this.cssVars }, this.$slots));
40
+ var _a;
41
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
42
+ return ((0, vue_1.h)("p", { class: [`${this.mergedClsPrefix}-p`, this.themeClass], style: this.cssVars }, this.$slots));
35
43
  }
36
44
  });
@@ -444,7 +444,9 @@ declare const _default: import("vue").DefineComponent<{
444
444
  '--n-code-text-color': string;
445
445
  '--n-code-color': string;
446
446
  '--n-code-border': string;
447
- }>;
447
+ }> | undefined;
448
+ themeClass: import("vue").Ref<string> | undefined;
449
+ onRender: (() => void) | undefined;
448
450
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
449
451
  readonly code: BooleanConstructor;
450
452
  readonly type: {
@@ -28,37 +28,45 @@ exports.default = (0, vue_1.defineComponent)({
28
28
  name: 'Text',
29
29
  props: textProps,
30
30
  setup(props) {
31
- const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
31
+ const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
32
32
  const themeRef = (0, _mixins_1.useTheme)('Typography', '-text', text_cssr_1.default, styles_1.typographyLight, props, mergedClsPrefixRef);
33
+ const cssVarsRef = (0, vue_1.computed)(() => {
34
+ const { depth, type } = props;
35
+ const textColorKey = type === 'default'
36
+ ? depth === undefined
37
+ ? 'textColor'
38
+ : `textColor${depth}Depth`
39
+ : (0, _utils_1.createKey)('textColor', type);
40
+ const { common: { fontWeightStrong, fontFamilyMono, cubicBezierEaseInOut }, self: { codeTextColor, codeBorderRadius, codeColor, codeBorder, [textColorKey]: textColor } } = themeRef.value;
41
+ return {
42
+ '--n-bezier': cubicBezierEaseInOut,
43
+ '--n-text-color': textColor,
44
+ '--n-font-weight-strong': fontWeightStrong,
45
+ '--n-font-famliy-mono': fontFamilyMono,
46
+ '--n-code-border-radius': codeBorderRadius,
47
+ '--n-code-text-color': codeTextColor,
48
+ '--n-code-color': codeColor,
49
+ '--n-code-border': codeBorder
50
+ };
51
+ });
52
+ const themeClassHandle = inlineThemeDisabled
53
+ ? (0, _mixins_1.useThemeClass)('text', (0, vue_1.computed)(() => `${props.type[0]}${props.depth || ''}`), cssVarsRef, props)
54
+ : undefined;
33
55
  return {
34
56
  mergedClsPrefix: mergedClsPrefixRef,
35
57
  compitableTag: (0, vooks_1.useCompitable)(props, ['as', 'tag']),
36
- cssVars: (0, vue_1.computed)(() => {
37
- const { depth, type } = props;
38
- const textColorKey = type === 'default'
39
- ? depth === undefined
40
- ? 'textColor'
41
- : `textColor${depth}Depth`
42
- : (0, _utils_1.createKey)('textColor', type);
43
- const { common: { fontWeightStrong, fontFamilyMono, cubicBezierEaseInOut }, self: { codeTextColor, codeBorderRadius, codeColor, codeBorder, [textColorKey]: textColor } } = themeRef.value;
44
- return {
45
- '--n-bezier': cubicBezierEaseInOut,
46
- '--n-text-color': textColor,
47
- '--n-font-weight-strong': fontWeightStrong,
48
- '--n-font-famliy-mono': fontFamilyMono,
49
- '--n-code-border-radius': codeBorderRadius,
50
- '--n-code-text-color': codeTextColor,
51
- '--n-code-color': codeColor,
52
- '--n-code-border': codeBorder
53
- };
54
- })
58
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
59
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
60
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
55
61
  };
56
62
  },
57
63
  render() {
58
- var _a, _b;
64
+ var _a, _b, _c;
59
65
  const { mergedClsPrefix } = this;
66
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
60
67
  const textClass = [
61
68
  `${mergedClsPrefix}-text`,
69
+ this.themeClass,
62
70
  {
63
71
  [`${mergedClsPrefix}-text--code`]: this.code,
64
72
  [`${mergedClsPrefix}-text--delete`]: this.delete,
@@ -67,7 +75,7 @@ exports.default = (0, vue_1.defineComponent)({
67
75
  [`${mergedClsPrefix}-text--underline`]: this.underline
68
76
  }
69
77
  ];
70
- const children = (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a);
78
+ const children = (_c = (_b = this.$slots).default) === null || _c === void 0 ? void 0 : _c.call(_b);
71
79
  return this.code ? ((0, vue_1.h)("code", { class: textClass, style: this.cssVars }, this.delete ? (0, vue_1.h)("del", null, children) : children)) : this.delete ? ((0, vue_1.h)("del", { class: textClass, style: this.cssVars }, children)) : ((0, vue_1.h)(this.compitableTag || 'span', { class: textClass, style: this.cssVars }, children));
72
80
  }
73
81
  });
@@ -411,7 +411,9 @@ declare const _default: import("vue").DefineComponent<{
411
411
  '--n-li-margin': string;
412
412
  '--n-ol-padding': string;
413
413
  '--n-ul-padding': string;
414
- }>;
414
+ }> | undefined;
415
+ themeClass: import("vue").Ref<string> | undefined;
416
+ onRender: (() => void) | undefined;
415
417
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
416
418
  readonly alignText: BooleanConstructor;
417
419
  readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Typography", {
@@ -12,28 +12,37 @@ exports.default = (0, vue_1.defineComponent)({
12
12
  name: 'Ul',
13
13
  props: ulProps,
14
14
  setup(props) {
15
- const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
15
+ const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
16
16
  const themeRef = (0, _mixins_1.useTheme)('Typography', '-xl', list_cssr_1.default, styles_1.typographyLight, props, mergedClsPrefixRef);
17
+ const cssVarsRef = (0, vue_1.computed)(() => {
18
+ const { common: { cubicBezierEaseInOut }, self: { olPadding, ulPadding, liMargin, liTextColor, liLineHeight, liFontSize } } = themeRef.value;
19
+ return {
20
+ '--n-bezier': cubicBezierEaseInOut,
21
+ '--n-font-size': liFontSize,
22
+ '--n-line-height': liLineHeight,
23
+ '--n-text-color': liTextColor,
24
+ '--n-li-margin': liMargin,
25
+ '--n-ol-padding': olPadding,
26
+ '--n-ul-padding': ulPadding
27
+ };
28
+ });
29
+ const themeClassHandle = inlineThemeDisabled
30
+ ? (0, _mixins_1.useThemeClass)('ul', undefined, cssVarsRef, props)
31
+ : undefined;
17
32
  return {
18
33
  mergedClsPrefix: mergedClsPrefixRef,
19
- cssVars: (0, vue_1.computed)(() => {
20
- const { common: { cubicBezierEaseInOut }, self: { olPadding, ulPadding, liMargin, liTextColor, liLineHeight, liFontSize } } = themeRef.value;
21
- return {
22
- '--n-bezier': cubicBezierEaseInOut,
23
- '--n-font-size': liFontSize,
24
- '--n-line-height': liLineHeight,
25
- '--n-text-color': liTextColor,
26
- '--n-li-margin': liMargin,
27
- '--n-ol-padding': olPadding,
28
- '--n-ul-padding': ulPadding
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 { mergedClsPrefix } = this;
42
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
35
43
  return ((0, vue_1.h)("ul", { class: [
36
44
  `${mergedClsPrefix}-ul`,
45
+ this.themeClass,
37
46
  this.alignText && `${mergedClsPrefix}-ul--align-text`
38
47
  ], style: this.cssVars }, this.$slots));
39
48
  }
@@ -5,7 +5,7 @@ import type { UploadTheme } from '../styles';
5
5
  export interface FileInfo {
6
6
  id: string;
7
7
  name: string;
8
- percentage: number;
8
+ percentage?: number;
9
9
  status: 'pending' | 'uploading' | 'finished' | 'removed' | 'error';
10
10
  url?: string | null;
11
11
  file?: File | null;
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.25.2";
1
+ declare const _default: "2.25.3";
2
2
  export default _default;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '2.25.2';
3
+ exports.default = '2.25.3';
@@ -0,0 +1,2 @@
1
+ export { default as NWatermark } from './src/Watermark';
2
+ export type { WatermarkProps } from './src/Watermark';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.NWatermark = void 0;
7
+ var Watermark_1 = require("./src/Watermark");
8
+ Object.defineProperty(exports, "NWatermark", { enumerable: true, get: function () { return __importDefault(Watermark_1).default; } });