naive-ui 2.25.2 → 2.25.5

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 (429) 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 +8 -7
  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.d.ts +3 -1
  88. package/es/dynamic-input/src/DynamicInput.js +18 -11
  89. package/es/dynamic-tags/src/DynamicTags.d.ts +3 -1
  90. package/es/dynamic-tags/src/DynamicTags.js +17 -10
  91. package/es/element/src/Element.d.ts +3 -1
  92. package/es/element/src/Element.js +18 -11
  93. package/es/empty/src/Empty.d.ts +3 -1
  94. package/es/empty/src/Empty.js +28 -16
  95. package/es/form/src/FormItem.js +1 -2
  96. package/es/grid/src/Grid.js +2 -2
  97. package/es/icon-wrapper/src/IconWrapper.js +6 -8
  98. package/es/input/src/Input.d.ts +6 -3
  99. package/es/input/src/Input.js +96 -84
  100. package/es/input/src/styles/input.cssr.js +2 -2
  101. package/es/input-number/src/InputNumber.d.ts +6 -17
  102. package/es/input-number/src/InputNumber.js +79 -20
  103. package/es/layout/src/Layout.d.ts +8 -2
  104. package/es/layout/src/Layout.js +17 -10
  105. package/es/layout/src/LayoutContent.d.ts +4 -1
  106. package/es/layout/src/LayoutFooter.d.ts +3 -1
  107. package/es/layout/src/LayoutFooter.js +28 -19
  108. package/es/layout/src/LayoutHeader.d.ts +3 -1
  109. package/es/layout/src/LayoutHeader.js +28 -19
  110. package/es/layout/src/LayoutSider.d.ts +4 -0
  111. package/es/layout/src/LayoutSider.js +37 -29
  112. package/es/legacy-grid/src/styles/index.cssr.js +1 -1
  113. package/es/locales/common/esAR.js +2 -2
  114. package/es/locales/common/frFR.js +8 -9
  115. package/es/locales/common/skSK.d.ts +3 -0
  116. package/es/locales/common/skSK.js +110 -0
  117. package/es/locales/date/skSK.d.ts +3 -0
  118. package/es/locales/date/skSK.js +6 -0
  119. package/es/locales/index.d.ts +2 -0
  120. package/es/locales/index.js +2 -0
  121. package/es/log/src/Log.d.ts +4 -1
  122. package/es/log/src/Log.js +20 -15
  123. package/es/mention/index.d.ts +1 -1
  124. package/es/mention/src/Mention.d.ts +3 -1
  125. package/es/mention/src/Mention.js +20 -10
  126. package/es/mention/src/interface.d.ts +4 -0
  127. package/es/menu/src/Menu.d.ts +3 -1
  128. package/es/menu/src/Menu.js +68 -63
  129. package/es/modal/src/BodyWrapper.d.ts +1 -0
  130. package/es/modal/src/Modal.d.ts +11 -14
  131. package/es/modal/src/Modal.js +41 -32
  132. package/es/notification/src/styles/index.cssr.js +6 -5
  133. package/es/page-header/src/PageHeader.d.ts +3 -1
  134. package/es/page-header/src/PageHeader.js +27 -18
  135. package/es/pagination/src/Pagination.d.ts +13 -1
  136. package/es/pagination/src/Pagination.js +59 -52
  137. package/es/popover/src/PopoverBody.js +10 -4
  138. package/es/progress/src/Progress.d.ts +2 -2
  139. package/es/progress/src/Progress.js +12 -6
  140. package/es/radio/src/Radio.d.ts +3 -1
  141. package/es/radio/src/Radio.js +32 -23
  142. package/es/radio/src/RadioGroup.d.ts +3 -1
  143. package/es/radio/src/RadioGroup.js +31 -22
  144. package/es/rate/src/Rate.d.ts +3 -1
  145. package/es/rate/src/Rate.js +44 -23
  146. package/es/result/src/Result.d.ts +4 -2
  147. package/es/result/src/Result.js +36 -19
  148. package/es/scrollbar/src/ScrollBar.d.ts +12 -1
  149. package/es/scrollbar/src/ScrollBar.js +4 -0
  150. package/es/select/src/Select.d.ts +1 -1
  151. package/es/select/src/Select.js +5 -4
  152. package/es/spin/src/Spin.d.ts +3 -1
  153. package/es/spin/src/Spin.js +31 -21
  154. package/es/statistic/src/Statistic.d.ts +3 -1
  155. package/es/statistic/src/Statistic.js +29 -21
  156. package/es/styles.d.ts +1 -0
  157. package/es/styles.js +1 -0
  158. package/es/switch/src/Switch.d.ts +13 -1
  159. package/es/switch/src/Switch.js +85 -60
  160. package/es/switch/src/styles/index.cssr.js +21 -8
  161. package/es/switch/styles/dark.js +2 -2
  162. package/es/switch/styles/light.d.ts +1 -0
  163. package/es/switch/styles/light.js +2 -2
  164. package/es/table/src/Table.d.ts +3 -1
  165. package/es/table/src/Table.js +40 -29
  166. package/es/table/src/styles/index.cssr.js +1 -1
  167. package/es/tabs/src/Tabs.d.ts +25 -23
  168. package/es/tabs/src/Tabs.js +50 -44
  169. package/es/tabs/src/styles/index.cssr.js +79 -77
  170. package/es/tag/src/Tag.d.ts +2 -2
  171. package/es/tag/src/Tag.js +8 -11
  172. package/es/theme-editor/src/ThemeEditor.js +4 -3
  173. package/es/themes/dark.js +3 -1
  174. package/es/themes/light.js +3 -1
  175. package/es/thing/src/Thing.js +10 -3
  176. package/es/time-picker/src/TimePicker.d.ts +4 -0
  177. package/es/transfer/src/TransferList.d.ts +1 -0
  178. package/es/tree/src/Tree.d.ts +1 -0
  179. package/es/tree/src/Tree.js +8 -4
  180. package/es/tree-select/src/TreeSelect.d.ts +13 -0
  181. package/es/tree-select/src/TreeSelect.js +6 -2
  182. package/es/typography/src/a.d.ts +3 -1
  183. package/es/typography/src/a.js +18 -10
  184. package/es/typography/src/blockquote.d.ts +3 -1
  185. package/es/typography/src/blockquote.js +21 -12
  186. package/es/typography/src/create-header.d.ts +3 -1
  187. package/es/typography/src/create-header.js +25 -16
  188. package/es/typography/src/headers.d.ts +18 -6
  189. package/es/typography/src/hr.d.ts +3 -1
  190. package/es/typography/src/hr.js +18 -10
  191. package/es/typography/src/ol.d.ts +3 -1
  192. package/es/typography/src/ol.js +23 -14
  193. package/es/typography/src/p.d.ts +3 -1
  194. package/es/typography/src/p.js +23 -15
  195. package/es/typography/src/text.d.ts +3 -1
  196. package/es/typography/src/text.js +31 -23
  197. package/es/typography/src/ul.d.ts +3 -1
  198. package/es/typography/src/ul.js +23 -14
  199. package/es/upload/src/interface.d.ts +1 -1
  200. package/es/version.d.ts +1 -1
  201. package/es/version.js +1 -1
  202. package/es/watermark/index.d.ts +2 -0
  203. package/es/watermark/index.js +1 -0
  204. package/es/watermark/src/Watermark.d.ts +285 -0
  205. package/es/watermark/src/Watermark.js +159 -0
  206. package/es/watermark/src/styles/index.cssr.d.ts +2 -0
  207. package/es/watermark/src/styles/index.cssr.js +14 -0
  208. package/es/watermark/styles/dark.d.ts +3 -0
  209. package/es/watermark/styles/dark.js +12 -0
  210. package/es/watermark/styles/index.d.ts +3 -0
  211. package/es/watermark/styles/index.js +2 -0
  212. package/es/watermark/styles/light.d.ts +5 -0
  213. package/es/watermark/styles/light.js +13 -0
  214. package/lib/_internal/clear/src/Clear.d.ts +0 -1
  215. package/lib/_internal/clear/src/Clear.js +0 -2
  216. package/lib/_internal/icons/replaceable.d.ts +1 -1
  217. package/lib/_internal/icons/replaceable.js +4 -3
  218. package/lib/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
  219. package/lib/_internal/scrollbar/src/ScrollBar.js +34 -15
  220. package/lib/_internal/select-menu/src/SelectMenu.d.ts +22 -23
  221. package/lib/_internal/select-menu/src/SelectMenu.js +9 -15
  222. package/lib/_internal/selection/src/Selection.d.ts +5 -5
  223. package/lib/_internal/selection/src/Selection.js +19 -6
  224. package/lib/_mixins/index.d.ts +1 -1
  225. package/lib/_mixins/index.js +1 -2
  226. package/lib/_mixins/use-config.d.ts +6 -3
  227. package/lib/_mixins/use-config.js +5 -1
  228. package/lib/_mixins/use-css-vars-class.d.ts +1 -4
  229. package/lib/_mixins/use-css-vars-class.js +9 -8
  230. package/lib/_utils/vue/resolve-slot.d.ts +5 -2
  231. package/lib/_utils/vue/resolve-slot.js +4 -3
  232. package/lib/alert/src/Alert.d.ts +3 -1
  233. package/lib/alert/src/Alert.js +34 -19
  234. package/lib/anchor/src/AnchorAdapter.js +8 -2
  235. package/lib/auto-complete/src/AutoComplete.d.ts +3 -1
  236. package/lib/auto-complete/src/AutoComplete.js +27 -14
  237. package/lib/avatar/src/Avatar.d.ts +3 -1
  238. package/lib/avatar/src/Avatar.js +68 -33
  239. package/lib/back-top/src/BackTop.d.ts +12 -49
  240. package/lib/back-top/src/BackTop.js +57 -55
  241. package/lib/badge/src/Badge.d.ts +12 -37
  242. package/lib/badge/src/Badge.js +39 -29
  243. package/lib/breadcrumb/src/Breadcrumb.d.ts +3 -1
  244. package/lib/breadcrumb/src/Breadcrumb.js +23 -15
  245. package/lib/button/src/Button.d.ts +7 -6
  246. package/lib/button/src/Button.js +29 -19
  247. package/lib/calendar/src/Calendar.d.ts +3 -1
  248. package/lib/calendar/src/Calendar.js +36 -29
  249. package/lib/card/src/Card.d.ts +2 -2
  250. package/lib/card/src/Card.js +25 -14
  251. package/lib/carousel/src/Carousel.d.ts +3 -1
  252. package/lib/carousel/src/Carousel.js +27 -18
  253. package/lib/cascader/src/Cascader.d.ts +16 -1
  254. package/lib/cascader/src/Cascader.js +52 -30
  255. package/lib/cascader/src/CascaderMenu.js +7 -6
  256. package/lib/cascader/src/CascaderSelectMenu.js +2 -1
  257. package/lib/cascader/src/CascaderSubmenu.d.ts +1 -0
  258. package/lib/cascader/src/interface.d.ts +1 -0
  259. package/lib/checkbox/src/Checkbox.d.ts +6 -4
  260. package/lib/checkbox/src/Checkbox.js +40 -31
  261. package/lib/checkbox/src/styles/index.cssr.js +7 -7
  262. package/lib/code/src/Code.d.ts +3 -1
  263. package/lib/code/src/Code.js +32 -26
  264. package/lib/collapse/src/Collapse.d.ts +3 -1
  265. package/lib/collapse/src/Collapse.js +23 -15
  266. package/lib/color-picker/src/ColorPicker.d.ts +3 -1
  267. package/lib/color-picker/src/ColorPicker.js +19 -6
  268. package/lib/components.d.ts +1 -0
  269. package/lib/components.js +1 -0
  270. package/lib/config-provider/src/ConfigProvider.d.ts +4 -4
  271. package/lib/config-provider/src/ConfigProvider.js +3 -3
  272. package/lib/config-provider/src/internal-interface.d.ts +3 -1
  273. package/lib/countdown/src/Countdown.d.ts +0 -3
  274. package/lib/countdown/src/Countdown.js +0 -1
  275. package/lib/data-table/src/DataTable.d.ts +43 -41
  276. package/lib/data-table/src/DataTable.js +53 -47
  277. package/lib/data-table/src/HeaderButton/FilterButton.js +3 -2
  278. package/lib/data-table/src/HeaderButton/SortButton.js +3 -2
  279. package/lib/data-table/src/TableParts/Body.d.ts +1 -0
  280. package/lib/data-table/src/TableParts/Body.js +3 -1
  281. package/lib/data-table/src/interface.d.ts +1 -1
  282. package/lib/data-table/src/use-table-data.js +19 -7
  283. package/lib/date-picker/src/DatePicker.d.ts +1 -0
  284. package/lib/date-picker/src/DatePicker.js +2 -2
  285. package/lib/date-picker/src/panel/date.d.ts +2 -0
  286. package/lib/date-picker/src/panel/datetime.d.ts +2 -0
  287. package/lib/date-picker/src/panel/month.d.ts +2 -0
  288. package/lib/date-picker/src/panel/panelHeader.d.ts +4 -0
  289. package/lib/date-picker/src/panel/use-calendar.d.ts +2 -0
  290. package/lib/descriptions/src/Descriptions.d.ts +14 -1
  291. package/lib/descriptions/src/Descriptions.js +44 -27
  292. package/lib/descriptions/src/styles/index.cssr.js +2 -1
  293. package/lib/descriptions/styles/light.d.ts +1 -0
  294. package/lib/descriptions/styles/light.js +2 -2
  295. package/lib/dialog/src/Dialog.d.ts +3 -1
  296. package/lib/dialog/src/Dialog.js +55 -54
  297. package/lib/dialog/src/DialogEnvironment.js +1 -1
  298. package/lib/divider/src/Divider.d.ts +3 -1
  299. package/lib/divider/src/Divider.js +19 -10
  300. package/lib/dynamic-input/src/DynamicInput.d.ts +3 -1
  301. package/lib/dynamic-input/src/DynamicInput.js +17 -10
  302. package/lib/dynamic-tags/src/DynamicTags.d.ts +3 -1
  303. package/lib/dynamic-tags/src/DynamicTags.js +16 -9
  304. package/lib/element/src/Element.d.ts +3 -1
  305. package/lib/element/src/Element.js +17 -10
  306. package/lib/empty/src/Empty.d.ts +3 -1
  307. package/lib/empty/src/Empty.js +27 -15
  308. package/lib/form/src/FormItem.js +1 -2
  309. package/lib/grid/src/Grid.js +2 -2
  310. package/lib/icon-wrapper/src/IconWrapper.js +5 -7
  311. package/lib/input/src/Input.d.ts +6 -3
  312. package/lib/input/src/Input.js +95 -83
  313. package/lib/input/src/styles/input.cssr.js +2 -2
  314. package/lib/input-number/src/InputNumber.d.ts +6 -17
  315. package/lib/input-number/src/InputNumber.js +76 -17
  316. package/lib/layout/src/Layout.d.ts +8 -2
  317. package/lib/layout/src/Layout.js +16 -9
  318. package/lib/layout/src/LayoutContent.d.ts +4 -1
  319. package/lib/layout/src/LayoutFooter.d.ts +3 -1
  320. package/lib/layout/src/LayoutFooter.js +27 -18
  321. package/lib/layout/src/LayoutHeader.d.ts +3 -1
  322. package/lib/layout/src/LayoutHeader.js +27 -18
  323. package/lib/layout/src/LayoutSider.d.ts +4 -0
  324. package/lib/layout/src/LayoutSider.js +36 -28
  325. package/lib/legacy-grid/src/styles/index.cssr.js +1 -1
  326. package/lib/locales/common/esAR.js +2 -2
  327. package/lib/locales/common/frFR.js +8 -9
  328. package/lib/locales/common/skSK.d.ts +3 -0
  329. package/lib/locales/common/skSK.js +112 -0
  330. package/lib/locales/date/skSK.d.ts +3 -0
  331. package/lib/locales/date/skSK.js +11 -0
  332. package/lib/locales/index.d.ts +2 -0
  333. package/lib/locales/index.js +5 -1
  334. package/lib/log/src/Log.d.ts +4 -1
  335. package/lib/log/src/Log.js +19 -14
  336. package/lib/mention/index.d.ts +1 -1
  337. package/lib/mention/src/Mention.d.ts +3 -1
  338. package/lib/mention/src/Mention.js +19 -9
  339. package/lib/mention/src/interface.d.ts +4 -0
  340. package/lib/menu/src/Menu.d.ts +3 -1
  341. package/lib/menu/src/Menu.js +67 -62
  342. package/lib/modal/src/BodyWrapper.d.ts +1 -0
  343. package/lib/modal/src/Modal.d.ts +11 -14
  344. package/lib/modal/src/Modal.js +40 -31
  345. package/lib/notification/src/styles/index.cssr.js +6 -5
  346. package/lib/page-header/src/PageHeader.d.ts +3 -1
  347. package/lib/page-header/src/PageHeader.js +26 -17
  348. package/lib/pagination/src/Pagination.d.ts +13 -1
  349. package/lib/pagination/src/Pagination.js +58 -51
  350. package/lib/popover/src/PopoverBody.js +9 -3
  351. package/lib/progress/src/Progress.d.ts +2 -2
  352. package/lib/progress/src/Progress.js +11 -5
  353. package/lib/radio/src/Radio.d.ts +3 -1
  354. package/lib/radio/src/Radio.js +31 -22
  355. package/lib/radio/src/RadioGroup.d.ts +3 -1
  356. package/lib/radio/src/RadioGroup.js +30 -21
  357. package/lib/rate/src/Rate.d.ts +3 -1
  358. package/lib/rate/src/Rate.js +42 -21
  359. package/lib/result/src/Result.d.ts +4 -2
  360. package/lib/result/src/Result.js +35 -18
  361. package/lib/scrollbar/src/ScrollBar.d.ts +12 -1
  362. package/lib/scrollbar/src/ScrollBar.js +4 -0
  363. package/lib/select/src/Select.d.ts +1 -1
  364. package/lib/select/src/Select.js +5 -4
  365. package/lib/spin/src/Spin.d.ts +3 -1
  366. package/lib/spin/src/Spin.js +30 -20
  367. package/lib/statistic/src/Statistic.d.ts +3 -1
  368. package/lib/statistic/src/Statistic.js +28 -20
  369. package/lib/styles.d.ts +1 -0
  370. package/lib/styles.js +9 -7
  371. package/lib/switch/src/Switch.d.ts +13 -1
  372. package/lib/switch/src/Switch.js +81 -56
  373. package/lib/switch/src/styles/index.cssr.js +21 -8
  374. package/lib/switch/styles/dark.js +2 -2
  375. package/lib/switch/styles/light.d.ts +1 -0
  376. package/lib/switch/styles/light.js +2 -2
  377. package/lib/table/src/Table.d.ts +3 -1
  378. package/lib/table/src/Table.js +39 -28
  379. package/lib/table/src/styles/index.cssr.js +1 -1
  380. package/lib/tabs/src/Tabs.d.ts +25 -23
  381. package/lib/tabs/src/Tabs.js +48 -42
  382. package/lib/tabs/src/styles/index.cssr.js +79 -77
  383. package/lib/tag/src/Tag.d.ts +2 -2
  384. package/lib/tag/src/Tag.js +7 -10
  385. package/lib/theme-editor/src/ThemeEditor.js +2 -1
  386. package/lib/themes/dark.js +3 -1
  387. package/lib/themes/light.js +3 -1
  388. package/lib/thing/src/Thing.js +9 -2
  389. package/lib/time-picker/src/TimePicker.d.ts +4 -0
  390. package/lib/transfer/src/TransferList.d.ts +1 -0
  391. package/lib/tree/src/Tree.d.ts +1 -0
  392. package/lib/tree/src/Tree.js +8 -4
  393. package/lib/tree-select/src/TreeSelect.d.ts +13 -0
  394. package/lib/tree-select/src/TreeSelect.js +6 -2
  395. package/lib/typography/src/a.d.ts +3 -1
  396. package/lib/typography/src/a.js +17 -9
  397. package/lib/typography/src/blockquote.d.ts +3 -1
  398. package/lib/typography/src/blockquote.js +20 -11
  399. package/lib/typography/src/create-header.d.ts +3 -1
  400. package/lib/typography/src/create-header.js +24 -15
  401. package/lib/typography/src/headers.d.ts +18 -6
  402. package/lib/typography/src/hr.d.ts +3 -1
  403. package/lib/typography/src/hr.js +17 -9
  404. package/lib/typography/src/ol.d.ts +3 -1
  405. package/lib/typography/src/ol.js +22 -13
  406. package/lib/typography/src/p.d.ts +3 -1
  407. package/lib/typography/src/p.js +22 -14
  408. package/lib/typography/src/text.d.ts +3 -1
  409. package/lib/typography/src/text.js +30 -22
  410. package/lib/typography/src/ul.d.ts +3 -1
  411. package/lib/typography/src/ul.js +22 -13
  412. package/lib/upload/src/interface.d.ts +1 -1
  413. package/lib/version.d.ts +1 -1
  414. package/lib/version.js +1 -1
  415. package/lib/watermark/index.d.ts +2 -0
  416. package/lib/watermark/index.js +8 -0
  417. package/lib/watermark/src/Watermark.d.ts +285 -0
  418. package/lib/watermark/src/Watermark.js +164 -0
  419. package/lib/watermark/src/styles/index.cssr.d.ts +2 -0
  420. package/lib/watermark/src/styles/index.cssr.js +21 -0
  421. package/lib/watermark/styles/dark.d.ts +3 -0
  422. package/lib/watermark/styles/dark.js +14 -0
  423. package/lib/watermark/styles/index.d.ts +3 -0
  424. package/lib/watermark/styles/index.js +10 -0
  425. package/lib/watermark/styles/light.d.ts +5 -0
  426. package/lib/watermark/styles/light.js +15 -0
  427. package/package.json +8 -9
  428. package/volar.d.ts +1 -0
  429. package/web-types.json +252 -29
@@ -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">;
@@ -1,5 +1,5 @@
1
1
  import { h, computed, defineComponent, Fragment } from 'vue';
2
- import { useConfig, useTheme } from '../../_mixins';
2
+ import { useConfig, useTheme, useThemeClass } from '../../_mixins';
3
3
  import { dividerLight } from '../styles';
4
4
  import style from './styles/index.cssr';
5
5
  const dividerProps = Object.assign(Object.assign({}, useTheme.props), { titlePlacement: {
@@ -10,25 +10,34 @@ export default defineComponent({
10
10
  name: 'Divider',
11
11
  props: dividerProps,
12
12
  setup(props) {
13
- const { mergedClsPrefixRef } = useConfig(props);
13
+ const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
14
14
  const themeRef = useTheme('Divider', '-divider', style, dividerLight, props, mergedClsPrefixRef);
15
+ const cssVarsRef = computed(() => {
16
+ const { common: { cubicBezierEaseInOut }, self: { color, textColor, fontWeight } } = themeRef.value;
17
+ return {
18
+ '--n-bezier': cubicBezierEaseInOut,
19
+ '--n-color': color,
20
+ '--n-text-color': textColor,
21
+ '--n-font-weight': fontWeight
22
+ };
23
+ });
24
+ const themeClassHandle = inlineThemeDisabled
25
+ ? useThemeClass('divider', undefined, cssVarsRef, props)
26
+ : undefined;
15
27
  return {
16
28
  mergedClsPrefix: mergedClsPrefixRef,
17
- cssVars: computed(() => {
18
- const { common: { cubicBezierEaseInOut }, self: { color, textColor, fontWeight } } = themeRef.value;
19
- return {
20
- '--n-bezier': cubicBezierEaseInOut,
21
- '--n-color': color,
22
- '--n-text-color': textColor,
23
- '--n-font-weight': fontWeight
24
- };
25
- })
29
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
30
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
31
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
26
32
  };
27
33
  },
28
34
  render() {
35
+ var _a;
29
36
  const { $slots, titlePlacement, vertical, dashed, cssVars, mergedClsPrefix } = this;
37
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
30
38
  return (h("div", { role: "separator", class: [
31
39
  `${mergedClsPrefix}-divider`,
40
+ this.themeClass,
32
41
  {
33
42
  [`${mergedClsPrefix}-divider--vertical`]: vertical,
34
43
  [`${mergedClsPrefix}-divider--no-title`]: !$slots.default,
@@ -2091,7 +2091,9 @@ declare const _default: import("vue").DefineComponent<{
2091
2091
  }>;
2092
2092
  cssVars: import("vue").ComputedRef<{
2093
2093
  '--action-margin': string;
2094
- }>;
2094
+ }> | undefined;
2095
+ themeClass: import("vue").Ref<string> | undefined;
2096
+ onRender: (() => void) | undefined;
2095
2097
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2096
2098
  readonly max: NumberConstructor;
2097
2099
  readonly min: {
@@ -5,7 +5,7 @@ import { RemoveIcon, AddIcon, ArrowDownIcon, ArrowUpIcon } from '../../_internal
5
5
  import { formItemInjectionKey } from '../../_mixins/use-form-item';
6
6
  import { NBaseIcon } from '../../_internal';
7
7
  import { NButton, NButtonGroup } from '../../button';
8
- import { useTheme, useLocale, useConfig } from '../../_mixins';
8
+ import { useTheme, useLocale, useConfig, useThemeClass } from '../../_mixins';
9
9
  import { call, warnOnce, resolveSlotWithProps, resolveSlot } from '../../_utils';
10
10
  import { dynamicInputLight } from '../styles';
11
11
  import NDynamicInputInputPreset from './InputPreset';
@@ -54,7 +54,7 @@ export default defineComponent({
54
54
  }
55
55
  });
56
56
  }
57
- const { NConfigProvider, mergedClsPrefixRef } = useConfig();
57
+ const { mergedComponentPropsRef, mergedClsPrefixRef, inlineThemeDisabled } = useConfig();
58
58
  const NFormItem = inject(formItemInjectionKey, null);
59
59
  const uncontrolledValueRef = ref(props.defaultValue);
60
60
  const controlledValueRef = toRef(props, 'value');
@@ -76,7 +76,7 @@ export default defineComponent({
76
76
  });
77
77
  const buttonSizeRef = computed(() => {
78
78
  var _a, _b;
79
- 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;
79
+ 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;
80
80
  });
81
81
  function doUpdateValue(value) {
82
82
  const { onInput, 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
@@ -196,6 +196,15 @@ export default defineComponent({
196
196
  valuePlaceholderRef: toRef(props, 'valuePlaceholder'),
197
197
  placeholderRef: toRef(props, 'placeholder')
198
198
  });
199
+ const cssVarsRef = computed(() => {
200
+ const { self: { actionMargin } } = themeRef.value;
201
+ return {
202
+ '--action-margin': actionMargin
203
+ };
204
+ });
205
+ const themeClassHandle = inlineThemeDisabled
206
+ ? useThemeClass('dynamic-input', undefined, cssVarsRef, props)
207
+ : undefined;
199
208
  return {
200
209
  locale: useLocale('DynamicInput').localeRef,
201
210
  buttonSize: buttonSizeRef,
@@ -212,17 +221,15 @@ export default defineComponent({
212
221
  move,
213
222
  createItem,
214
223
  mergedTheme: themeRef,
215
- cssVars: computed(() => {
216
- const { self: { actionMargin } } = themeRef.value;
217
- return {
218
- '--action-margin': actionMargin
219
- };
220
- })
224
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
225
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
226
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
221
227
  };
222
228
  },
223
229
  render() {
224
- const { $slots, buttonSize, mergedClsPrefix, mergedValue, locale, mergedTheme, keyField, itemStyle, preset, showSortButton, NFormItem, ensureKey, handleValueChange, remove, createItem, move } = this;
225
- return (h("div", { class: `${mergedClsPrefix}-dynamic-input`, style: this.cssVars }, !Array.isArray(mergedValue) || mergedValue.length === 0 ? (h(NButton, Object.assign({ block: true, ghost: true, dashed: true, size: buttonSize }, this.createButtonProps, { disabled: this.insertionDisabled, theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, onClick: this.handleCreateClick }), {
230
+ const { $slots, buttonSize, mergedClsPrefix, mergedValue, locale, mergedTheme, keyField, itemStyle, preset, showSortButton, NFormItem, ensureKey, handleValueChange, remove, createItem, move, onRender } = this;
231
+ onRender === null || onRender === void 0 ? void 0 : onRender();
232
+ return (h("div", { class: [`${mergedClsPrefix}-dynamic-input`, this.themeClass], style: this.cssVars }, !Array.isArray(mergedValue) || mergedValue.length === 0 ? (h(NButton, Object.assign({ block: true, ghost: true, dashed: true, size: buttonSize }, this.createButtonProps, { disabled: this.insertionDisabled, theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, onClick: this.handleCreateClick }), {
226
233
  default: () => resolveSlot($slots['create-button-default'], () => [
227
234
  locale.create
228
235
  ]),
@@ -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;
@@ -7,7 +7,7 @@ import { NSpace } from '../../space';
7
7
  import { NInput } from '../../input';
8
8
  import { NTag } from '../../tag';
9
9
  import { NBaseIcon } from '../../_internal';
10
- import { useTheme, useFormItem, useLocale, useConfig } from '../../_mixins';
10
+ import { useTheme, useFormItem, useLocale, useConfig, useThemeClass } from '../../_mixins';
11
11
  import { call, smallerSize, warnOnce } from '../../_utils';
12
12
  import { dynamicTagsLight } from '../styles';
13
13
  import style from './styles/index.cssr';
@@ -31,7 +31,7 @@ export default defineComponent({
31
31
  }
32
32
  });
33
33
  }
34
- const { mergedClsPrefixRef } = useConfig(props);
34
+ const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
35
35
  const { localeRef } = useLocale('DynamicTags');
36
36
  const formItem = useFormItem(props);
37
37
  const { mergedDisabledRef } = formItem;
@@ -100,6 +100,15 @@ export default defineComponent({
100
100
  inputForceFocusedRef.value = false;
101
101
  });
102
102
  }
103
+ const cssVarsRef = computed(() => {
104
+ const { self: { inputWidth } } = themeRef.value;
105
+ return {
106
+ '--n-input-width': inputWidth
107
+ };
108
+ });
109
+ const themeClassHandle = inlineThemeDisabled
110
+ ? useThemeClass('dynamic-tags', undefined, cssVarsRef, props)
111
+ : undefined;
103
112
  return {
104
113
  mergedClsPrefix: mergedClsPrefixRef,
105
114
  inputInstRef,
@@ -117,17 +126,15 @@ export default defineComponent({
117
126
  handleCloseClick,
118
127
  handleInputConfirm,
119
128
  mergedTheme: themeRef,
120
- cssVars: computed(() => {
121
- const { self: { inputWidth } } = themeRef.value;
122
- return {
123
- '--n-input-width': inputWidth
124
- };
125
- })
129
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
130
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
131
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
126
132
  };
127
133
  },
128
134
  render() {
129
- const { mergedTheme, cssVars, mergedClsPrefix } = this;
130
- return (h(NSpace, { class: `${mergedClsPrefix}-dynamic-tags`, size: "small", style: cssVars, theme: mergedTheme.peers.Space, themeOverrides: mergedTheme.peerOverrides.Space, itemStyle: "display: flex;" }, {
135
+ const { mergedTheme, cssVars, mergedClsPrefix, onRender } = this;
136
+ onRender === null || onRender === void 0 ? void 0 : onRender();
137
+ return (h(NSpace, { class: [`${mergedClsPrefix}-dynamic-tags`, this.themeClass], size: "small", style: cssVars, theme: mergedTheme.peers.Space, themeOverrides: mergedTheme.peerOverrides.Space, itemStyle: "display: flex;" }, {
131
138
  default: () => {
132
139
  const { mergedTheme, tagStyle, type, round, size, color, closable, mergedDisabled, showInput, inputValue, inputStyle, inputSize, inputForceFocused, triggerDisabled, handleInputKeyUp, handleInputBlur, handleAddClick, handleCloseClick, handleInputConfirm, $slots } = this;
133
140
  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;
@@ -1,6 +1,6 @@
1
1
  import { computed, h, defineComponent } from 'vue';
2
2
  import { kebabCase } from 'lodash-es';
3
- import { useConfig, useTheme } from '../../_mixins';
3
+ import { useConfig, useTheme, useThemeClass } from '../../_mixins';
4
4
  import { elementLight } from '../styles';
5
5
  const elementProps = Object.assign(Object.assign({}, useTheme.props), { tag: {
6
6
  type: String,
@@ -11,25 +11,32 @@ export default defineComponent({
11
11
  alias: ['El'],
12
12
  props: elementProps,
13
13
  setup(props) {
14
- const { mergedClsPrefixRef } = useConfig(props);
14
+ const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
15
15
  const themeRef = useTheme('Element', '-element', undefined, elementLight, props, mergedClsPrefixRef);
16
+ const cssVarsRef = computed(() => {
17
+ const { common } = themeRef.value;
18
+ return Object.keys(common).reduce((prevValue, key) => {
19
+ prevValue[`--${kebabCase(key)}`] = common[key];
20
+ return prevValue;
21
+ }, {});
22
+ });
23
+ const themeClassHandle = inlineThemeDisabled
24
+ ? useThemeClass('element', undefined, cssVarsRef, props)
25
+ : undefined;
16
26
  return {
17
27
  mergedClsPrefix: mergedClsPrefixRef,
18
- cssVars: computed(() => {
19
- const { common } = themeRef.value;
20
- return Object.keys(common).reduce((prevValue, key) => {
21
- prevValue[`--${kebabCase(key)}`] = common[key];
22
- return prevValue;
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
34
  var _a;
29
- const { tag, mergedClsPrefix, cssVars, $slots } = this;
35
+ const { tag, mergedClsPrefix, cssVars, themeClass, onRender, $slots } = this;
36
+ onRender === null || onRender === void 0 ? void 0 : onRender();
30
37
  return h(tag, {
31
38
  role: 'none',
32
- class: `${mergedClsPrefix}-element`,
39
+ class: [`${mergedClsPrefix}-element`, themeClass],
33
40
  style: cssVars
34
41
  }, (_a = $slots.default) === null || _a === void 0 ? void 0 : _a.call($slots));
35
42
  }
@@ -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: {
@@ -1,7 +1,7 @@
1
1
  import { h, defineComponent, computed, inject } from 'vue';
2
2
  import { configProviderInjectionKey } from '../../config-provider/src/context';
3
3
  import { EmptyIcon } from '../../_internal/icons';
4
- import { useConfig, useLocale, useTheme } from '../../_mixins';
4
+ import { useConfig, useLocale, useTheme, useThemeClass } from '../../_mixins';
5
5
  import { createKey } from '../../_utils';
6
6
  import { NBaseIcon } from '../../_internal';
7
7
  import { emptyLight } from '../styles';
@@ -20,7 +20,7 @@ export default defineComponent({
20
20
  name: 'Empty',
21
21
  props: emptyProps,
22
22
  setup(props) {
23
- const { mergedClsPrefixRef } = useConfig(props);
23
+ const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
24
24
  const themeRef = useTheme('Empty', '-empty', style, emptyLight, props, mergedClsPrefixRef);
25
25
  const { localeRef } = useLocale('Empty');
26
26
  const NConfigProvider = inject(configProviderInjectionKey, null);
@@ -33,29 +33,41 @@ export default defineComponent({
33
33
  return ((_b = (_a = NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Empty) === null || _b === void 0 ? void 0 : _b.renderIcon) ||
34
34
  (() => h(EmptyIcon, null));
35
35
  });
36
+ const cssVarsRef = computed(() => {
37
+ const { size } = props;
38
+ const { common: { cubicBezierEaseInOut }, self: { [createKey('iconSize', size)]: iconSize, [createKey('fontSize', size)]: fontSize, textColor, iconColor, extraTextColor } } = themeRef.value;
39
+ return {
40
+ '--n-icon-size': iconSize,
41
+ '--n-font-size': fontSize,
42
+ '--n-bezier': cubicBezierEaseInOut,
43
+ '--n-text-color': textColor,
44
+ '--n-icon-color': iconColor,
45
+ '--n-extra-text-color': extraTextColor
46
+ };
47
+ });
48
+ const themeClassHandle = inlineThemeDisabled
49
+ ? useThemeClass('empty', computed(() => {
50
+ let hash = '';
51
+ const { size } = props;
52
+ hash += size[0];
53
+ return hash;
54
+ }), cssVarsRef, props)
55
+ : undefined;
36
56
  return {
37
57
  mergedClsPrefix: mergedClsPrefixRef,
38
58
  mergedRenderIcon: mergedRenderIconRef,
39
59
  localizedDescription: computed(() => {
40
60
  return mergedDescriptionRef.value || localeRef.value.description;
41
61
  }),
42
- cssVars: computed(() => {
43
- const { size } = props;
44
- const { common: { cubicBezierEaseInOut }, self: { [createKey('iconSize', size)]: iconSize, [createKey('fontSize', size)]: fontSize, textColor, iconColor, extraTextColor } } = themeRef.value;
45
- return {
46
- '--n-icon-size': iconSize,
47
- '--n-font-size': fontSize,
48
- '--n-bezier': cubicBezierEaseInOut,
49
- '--n-text-color': textColor,
50
- '--n-icon-color': iconColor,
51
- '--n-extra-text-color': extraTextColor
52
- };
53
- })
62
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
63
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
64
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
54
65
  };
55
66
  },
56
67
  render() {
57
- const { $slots, mergedClsPrefix } = this;
58
- return (h("div", { class: `${mergedClsPrefix}-empty`, style: this.cssVars },
68
+ const { $slots, mergedClsPrefix, onRender } = this;
69
+ onRender === null || onRender === void 0 ? void 0 : onRender();
70
+ return (h("div", { class: [`${mergedClsPrefix}-empty`, this.themeClass], style: this.cssVars },
59
71
  this.showIcon ? (h("div", { class: `${mergedClsPrefix}-empty__icon` }, $slots.icon ? ($slots.icon()) : (h(NBaseIcon, { clsPrefix: mergedClsPrefix }, { default: this.mergedRenderIcon })))) : null,
60
72
  this.showDescription ? (h("div", { class: `${mergedClsPrefix}-empty__description` }, $slots.default ? $slots.default() : this.localizedDescription)) : null,
61
73
  $slots.extra ? (h("div", { class: `${mergedClsPrefix}-empty__extra` }, $slots.extra())) : null));
@@ -161,8 +161,7 @@ export default defineComponent({
161
161
  options.first = props.first;
162
162
  }
163
163
  const { value: rules } = mergedRulesRef;
164
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
165
- const value = NForm ? get(NForm.props.model, path, null) : undefined;
164
+ const value = NForm ? get(NForm.props.model, path || '') : undefined;
166
165
  const activeRules = (!trigger
167
166
  ? rules
168
167
  : rules.filter((rule) => {
@@ -38,10 +38,10 @@ export default defineComponent({
38
38
  inheritAttrs: false,
39
39
  props: gridProps,
40
40
  setup(props) {
41
- const { mergedClsPrefixRef, NConfigProvider } = useConfig(props);
41
+ const { mergedClsPrefixRef, mergedBreakpointsRef } = useConfig(props);
42
42
  const numRegex = /^\d+$/;
43
43
  const widthRef = ref(undefined);
44
- const breakpointsRef = useBreakpoints((NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedBreakpointsRef.value) || defaultBreakpoints);
44
+ const breakpointsRef = useBreakpoints((mergedBreakpointsRef === null || mergedBreakpointsRef === void 0 ? void 0 : mergedBreakpointsRef.value) || defaultBreakpoints);
45
45
  const isResponsiveRef = useMemo(() => {
46
46
  if (props.itemResponsive)
47
47
  return true;
@@ -1,5 +1,5 @@
1
1
  import { computed, defineComponent, h } from 'vue';
2
- import { emptyThemeClassHandle, useConfig, useTheme, useThemeClass } from '../../_mixins';
2
+ import { useConfig, useTheme, useThemeClass } from '../../_mixins';
3
3
  import { formatLength } from '../../_utils';
4
4
  import { iconWrapperLight } from '../styles';
5
5
  import style from './styles/index.cssr';
@@ -15,8 +15,7 @@ export const NIconWrapper = defineComponent({
15
15
  props: iconWrapperProps,
16
16
  setup(props, { slots }) {
17
17
  const themeRef = useTheme('IconWrapper', '-icon-wrapper', style, iconWrapperLight, props);
18
- const { mergedClsPrefixRef, NConfigProvider } = useConfig(props);
19
- const { disableInlineTheme } = NConfigProvider || {};
18
+ const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
20
19
  const cssVarsRef = computed(() => {
21
20
  const { common: { cubicBezierEaseInOut }, self: { color, iconColor } } = themeRef.value;
22
21
  return {
@@ -25,16 +24,15 @@ export const NIconWrapper = defineComponent({
25
24
  '--n-icon-color': iconColor
26
25
  };
27
26
  });
28
- const themeClassHandle = disableInlineTheme
27
+ const themeClassHandle = inlineThemeDisabled
29
28
  ? useThemeClass('icon-wrapper', undefined, cssVarsRef, props)
30
- : emptyThemeClassHandle;
29
+ : undefined;
31
30
  return () => {
32
- var _a, _b;
33
31
  const size = formatLength(props.size);
34
- (_a = themeClassHandle.onRender) === null || _a === void 0 ? void 0 : _a.call(themeClassHandle);
32
+ themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender();
35
33
  return (h("div", { class: [
36
34
  `${mergedClsPrefixRef.value}-icon-wrapper`,
37
- (_b = themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass) === null || _b === void 0 ? void 0 : _b.value
35
+ themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value
38
36
  ], style: [
39
37
  cssVarsRef === null || cssVarsRef === void 0 ? void 0 : cssVarsRef.value,
40
38
  {
@@ -552,6 +552,7 @@ declare const _default: import("vue").DefineComponent<{
552
552
  containerScrollTop: number;
553
553
  syncUnifiedContainer: () => void;
554
554
  scrollTo: import("../../_internal/scrollbar/src/ScrollBar").ScrollTo;
555
+ scrollBy: import("../../_internal/scrollbar/src/ScrollBar").ScrollBy;
555
556
  sync: () => void;
556
557
  handleMouseEnterWrapper: () => void;
557
558
  handleMouseLeaveWrapper: () => void;
@@ -633,8 +634,8 @@ declare const _default: import("vue").DefineComponent<{
633
634
  iconColorDisabled: string;
634
635
  opacity1: string;
635
636
  opacity2: string;
636
- opacity3: string; /** private */
637
- opacity4: string;
637
+ opacity3: string;
638
+ opacity4: string; /** private */
638
639
  opacity5: string;
639
640
  dividerColor: string;
640
641
  borderColor: string;
@@ -814,7 +815,9 @@ declare const _default: import("vue").DefineComponent<{
814
815
  '--n-icon-color-pressed': string;
815
816
  '--n-icon-color-disabled': string;
816
817
  '--n-suffix-text-color': string;
817
- }>;
818
+ }> | undefined;
819
+ themeClass: import("vue").Ref<string> | undefined;
820
+ onRender: (() => void) | undefined;
818
821
  isCompositing: import("vue").Ref<boolean>;
819
822
  blur: () => void;
820
823
  focus: () => void;