naive-ui 2.25.0 → 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 (567) 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 -18
  8. package/es/_internal/select-menu/src/SelectMenu.js +13 -10
  9. package/es/_internal/selection/src/Selection.d.ts +31 -26
  10. package/es/_internal/selection/src/Selection.js +79 -68
  11. package/es/_internal/selection/styles/dark.js +3 -3
  12. package/es/_internal/selection/styles/light.d.ts +6 -6
  13. package/es/_internal/selection/styles/light.js +3 -3
  14. package/es/_mixins/index.d.ts +1 -1
  15. package/es/_mixins/index.js +1 -1
  16. package/es/_mixins/use-config.d.ts +6 -3
  17. package/es/_mixins/use-config.js +5 -1
  18. package/es/_mixins/use-css-vars-class.d.ts +6 -2
  19. package/es/_mixins/use-css-vars-class.js +31 -15
  20. package/es/_mixins/use-form-item.d.ts +1 -1
  21. package/es/_utils/css/color-to-class.d.ts +1 -0
  22. package/es/_utils/css/color-to-class.js +3 -0
  23. package/es/_utils/css/format-length.d.ts +2 -2
  24. package/es/_utils/css/format-length.js +1 -2
  25. package/es/_utils/css/index.d.ts +2 -1
  26. package/es/_utils/css/index.js +2 -1
  27. package/es/_utils/index.d.ts +1 -1
  28. package/es/_utils/index.js +1 -1
  29. package/es/_utils/vue/resolve-slot.d.ts +5 -2
  30. package/es/_utils/vue/resolve-slot.js +4 -4
  31. package/es/alert/src/Alert.d.ts +7 -5
  32. package/es/alert/src/Alert.js +36 -21
  33. package/es/anchor/src/AnchorAdapter.js +9 -3
  34. package/es/auto-complete/src/AutoComplete.d.ts +4 -2
  35. package/es/auto-complete/src/AutoComplete.js +28 -15
  36. package/es/avatar/src/Avatar.d.ts +3 -1
  37. package/es/avatar/src/Avatar.js +70 -35
  38. package/es/back-top/src/BackTop.d.ts +12 -49
  39. package/es/back-top/src/BackTop.js +60 -58
  40. package/es/badge/src/Badge.d.ts +16 -41
  41. package/es/badge/src/Badge.js +41 -31
  42. package/es/breadcrumb/src/Breadcrumb.d.ts +3 -1
  43. package/es/breadcrumb/src/Breadcrumb.js +24 -16
  44. package/es/button/src/Button.d.ts +8 -6
  45. package/es/button/src/Button.js +20 -21
  46. package/es/button/styles/index.d.ts +1 -1
  47. package/es/button/styles/index.js +1 -1
  48. package/es/button/styles/rtl.d.ts +2 -5
  49. package/es/button/styles/rtl.js +1 -1
  50. package/es/calendar/src/Calendar.d.ts +3 -1
  51. package/es/calendar/src/Calendar.js +37 -30
  52. package/es/card/src/Card.d.ts +3 -1
  53. package/es/card/src/Card.js +57 -43
  54. package/es/card/styles/index.d.ts +1 -1
  55. package/es/card/styles/index.js +1 -1
  56. package/es/card/styles/rtl.d.ts +2 -5
  57. package/es/card/styles/rtl.js +1 -1
  58. package/es/carousel/src/Carousel.d.ts +3 -1
  59. package/es/carousel/src/Carousel.js +29 -20
  60. package/es/cascader/src/Cascader.d.ts +46 -31
  61. package/es/cascader/src/Cascader.js +53 -31
  62. package/es/cascader/src/CascaderMenu.d.ts +3 -3
  63. package/es/cascader/src/CascaderMenu.js +7 -6
  64. package/es/cascader/src/CascaderOption.d.ts +3 -3
  65. package/es/cascader/src/CascaderSelectMenu.d.ts +3 -3
  66. package/es/cascader/src/CascaderSelectMenu.js +2 -1
  67. package/es/cascader/src/CascaderSubmenu.d.ts +4 -3
  68. package/es/cascader/src/interface.d.ts +1 -0
  69. package/es/cascader/styles/light.d.ts +3 -3
  70. package/es/checkbox/src/Checkbox.d.ts +6 -4
  71. package/es/checkbox/src/Checkbox.js +41 -32
  72. package/es/checkbox/src/styles/index.cssr.js +17 -17
  73. package/es/code/src/Code.d.ts +3 -1
  74. package/es/code/src/Code.js +33 -27
  75. package/es/collapse/src/Collapse.d.ts +3 -1
  76. package/es/collapse/src/Collapse.js +24 -16
  77. package/es/color-picker/src/ColorPicker.d.ts +3 -1
  78. package/es/color-picker/src/ColorPicker.js +20 -7
  79. package/es/components.d.ts +1 -0
  80. package/es/components.js +1 -0
  81. package/es/config-provider/src/ConfigProvider.d.ts +4 -4
  82. package/es/config-provider/src/ConfigProvider.js +3 -3
  83. package/es/config-provider/src/internal-interface.d.ts +3 -1
  84. package/es/countdown/src/Countdown.d.ts +0 -3
  85. package/es/countdown/src/Countdown.js +0 -1
  86. package/es/data-table/src/DataTable.d.ts +77 -75
  87. package/es/data-table/src/DataTable.js +54 -48
  88. package/es/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
  89. package/es/data-table/src/HeaderButton/FilterButton.js +3 -2
  90. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
  91. package/es/data-table/src/HeaderButton/SortButton.js +3 -2
  92. package/es/data-table/src/TableParts/Body.d.ts +7 -6
  93. package/es/data-table/src/TableParts/Body.js +4 -2
  94. package/es/data-table/src/TableParts/Cell.d.ts +12 -12
  95. package/es/data-table/src/TableParts/Header.d.ts +6 -6
  96. package/es/data-table/src/interface.d.ts +1 -1
  97. package/es/data-table/src/use-table-data.js +19 -7
  98. package/es/data-table/styles/light.d.ts +3 -3
  99. package/es/date-picker/src/DatePicker.d.ts +1 -0
  100. package/es/date-picker/src/DatePicker.js +2 -2
  101. package/es/date-picker/src/panel/date.d.ts +2 -0
  102. package/es/date-picker/src/panel/datetime.d.ts +2 -0
  103. package/es/date-picker/src/panel/month.d.ts +2 -0
  104. package/es/date-picker/src/panel/panelHeader.d.ts +4 -0
  105. package/es/date-picker/src/panel/use-calendar.d.ts +2 -0
  106. package/es/descriptions/src/Descriptions.d.ts +15 -2
  107. package/es/descriptions/src/Descriptions.js +45 -28
  108. package/es/descriptions/src/styles/index.cssr.js +2 -1
  109. package/es/descriptions/styles/light.d.ts +1 -0
  110. package/es/descriptions/styles/light.js +2 -2
  111. package/es/dialog/src/Dialog.d.ts +7 -5
  112. package/es/dialog/src/Dialog.js +57 -56
  113. package/es/dialog/src/DialogEnvironment.d.ts +5 -5
  114. package/es/dialog/src/DialogEnvironment.js +1 -1
  115. package/es/dialog/src/DialogProvider.d.ts +2 -2
  116. package/es/dialog/src/dialogProps.d.ts +2 -2
  117. package/es/divider/src/Divider.d.ts +3 -1
  118. package/es/divider/src/Divider.js +20 -11
  119. package/es/dynamic-input/src/DynamicInput.js +2 -2
  120. package/es/dynamic-tags/src/DynamicTags.d.ts +7 -5
  121. package/es/dynamic-tags/src/DynamicTags.js +17 -10
  122. package/es/element/src/Element.d.ts +3 -1
  123. package/es/element/src/Element.js +18 -11
  124. package/es/empty/src/Empty.d.ts +3 -1
  125. package/es/empty/src/Empty.js +28 -16
  126. package/es/form/src/FormItem.d.ts +4 -4
  127. package/es/form/src/FormItem.js +1 -2
  128. package/es/form/src/FormItemCol.d.ts +3 -3
  129. package/es/form/src/FormItemGridItem.d.ts +5 -5
  130. package/es/form/src/FormItemRow.d.ts +3 -3
  131. package/es/form/src/utils.d.ts +1 -1
  132. package/es/gradient-text/src/GradientText.d.ts +5 -5
  133. package/es/grid/src/Grid.js +2 -2
  134. package/es/icon-wrapper/src/IconWrapper.js +6 -6
  135. package/es/image/src/Image.d.ts +1 -1
  136. package/es/input/src/Input.d.ts +7 -4
  137. package/es/input/src/Input.js +96 -84
  138. package/es/input/src/styles/input.cssr.js +2 -2
  139. package/es/input-number/src/InputNumber.d.ts +7 -18
  140. package/es/input-number/src/InputNumber.js +79 -20
  141. package/es/layout/src/Layout.d.ts +8 -2
  142. package/es/layout/src/Layout.js +17 -10
  143. package/es/layout/src/LayoutContent.d.ts +4 -1
  144. package/es/layout/src/LayoutFooter.d.ts +3 -1
  145. package/es/layout/src/LayoutFooter.js +28 -19
  146. package/es/layout/src/LayoutHeader.d.ts +3 -1
  147. package/es/layout/src/LayoutHeader.js +28 -19
  148. package/es/layout/src/LayoutSider.d.ts +4 -0
  149. package/es/layout/src/LayoutSider.js +37 -29
  150. package/es/locales/common/deDE.js +13 -15
  151. package/es/locales/common/enGB.d.ts +109 -0
  152. package/es/locales/common/enGB.js +109 -0
  153. package/es/locales/common/eo.d.ts +109 -0
  154. package/es/locales/common/eo.js +109 -0
  155. package/es/locales/common/esAR.js +2 -2
  156. package/es/locales/common/frFR.js +8 -9
  157. package/es/locales/common/plPL.d.ts +3 -0
  158. package/es/locales/common/plPL.js +109 -0
  159. package/es/locales/common/skSK.d.ts +3 -0
  160. package/es/locales/common/skSK.js +110 -0
  161. package/es/locales/date/enGB.d.ts +3 -0
  162. package/es/locales/date/enGB.js +6 -0
  163. package/es/locales/date/eo.d.ts +3 -0
  164. package/es/locales/date/eo.js +6 -0
  165. package/es/locales/date/plPL.d.ts +3 -0
  166. package/es/locales/date/plPL.js +6 -0
  167. package/es/locales/date/skSK.d.ts +3 -0
  168. package/es/locales/date/skSK.js +6 -0
  169. package/es/locales/index.d.ts +8 -0
  170. package/es/locales/index.js +8 -0
  171. package/es/log/src/Log.d.ts +4 -1
  172. package/es/log/src/Log.js +20 -15
  173. package/es/mention/index.d.ts +1 -1
  174. package/es/mention/src/Mention.d.ts +1 -1
  175. package/es/mention/src/interface.d.ts +4 -0
  176. package/es/menu/src/Menu.d.ts +4 -2
  177. package/es/menu/src/Menu.js +68 -63
  178. package/es/modal/src/BodyWrapper.d.ts +7 -6
  179. package/es/modal/src/Modal.d.ts +19 -22
  180. package/es/modal/src/Modal.js +41 -32
  181. package/es/modal/src/presetProps.d.ts +2 -2
  182. package/es/notification/src/Notification.d.ts +4 -4
  183. package/es/notification/src/NotificationEnvironment.d.ts +4 -4
  184. package/es/notification/src/NotificationProvider.d.ts +1 -1
  185. package/es/notification/src/styles/index.cssr.js +6 -5
  186. package/es/page-header/src/PageHeader.d.ts +3 -1
  187. package/es/page-header/src/PageHeader.js +27 -18
  188. package/es/pagination/src/Pagination.d.ts +46 -34
  189. package/es/pagination/src/Pagination.js +59 -52
  190. package/es/pagination/styles/light.d.ts +3 -3
  191. package/es/popover/src/PopoverBody.js +10 -4
  192. package/es/progress/src/Circle.d.ts +19 -3
  193. package/es/progress/src/Circle.js +41 -22
  194. package/es/progress/src/Progress.d.ts +14 -5
  195. package/es/progress/src/Progress.js +45 -25
  196. package/es/progress/src/styles/index.cssr.js +1 -1
  197. package/es/radio/src/Radio.d.ts +3 -1
  198. package/es/radio/src/Radio.js +32 -23
  199. package/es/radio/src/RadioGroup.d.ts +3 -1
  200. package/es/radio/src/RadioGroup.js +31 -22
  201. package/es/rate/src/Rate.d.ts +3 -1
  202. package/es/rate/src/Rate.js +44 -23
  203. package/es/result/src/Result.d.ts +8 -6
  204. package/es/result/src/Result.js +36 -19
  205. package/es/scrollbar/src/ScrollBar.d.ts +12 -1
  206. package/es/scrollbar/src/ScrollBar.js +4 -0
  207. package/es/select/src/Select.d.ts +45 -31
  208. package/es/select/src/Select.js +14 -8
  209. package/es/select/styles/light.d.ts +3 -3
  210. package/es/spin/src/Spin.d.ts +3 -1
  211. package/es/spin/src/Spin.js +31 -21
  212. package/es/statistic/src/Statistic.d.ts +3 -1
  213. package/es/statistic/src/Statistic.js +29 -21
  214. package/es/styles.d.ts +1 -0
  215. package/es/styles.js +1 -0
  216. package/es/switch/src/Switch.d.ts +13 -1
  217. package/es/switch/src/Switch.js +85 -60
  218. package/es/switch/src/styles/index.cssr.js +21 -8
  219. package/es/switch/styles/dark.js +2 -2
  220. package/es/switch/styles/light.d.ts +1 -0
  221. package/es/switch/styles/light.js +2 -2
  222. package/es/table/src/Table.d.ts +3 -1
  223. package/es/table/src/Table.js +40 -29
  224. package/es/table/src/styles/index.cssr.js +1 -1
  225. package/es/tabs/src/Tabs.d.ts +25 -23
  226. package/es/tabs/src/Tabs.js +50 -44
  227. package/es/tabs/src/styles/index.cssr.js +77 -77
  228. package/es/tag/src/Tag.d.ts +7 -5
  229. package/es/tag/src/Tag.js +59 -42
  230. package/es/tag/src/common-props.d.ts +1 -1
  231. package/es/tag/src/styles/index.cssr.js +1 -1
  232. package/es/tag/styles/index.d.ts +1 -1
  233. package/es/tag/styles/index.js +1 -1
  234. package/es/tag/styles/rtl.d.ts +2 -5
  235. package/es/tag/styles/rtl.js +1 -1
  236. package/es/theme-editor/src/ThemeEditor.js +4 -3
  237. package/es/themes/dark.js +3 -1
  238. package/es/themes/light.js +3 -1
  239. package/es/thing/src/Thing.js +10 -3
  240. package/es/time-picker/src/TimePicker.d.ts +4 -0
  241. package/es/timeline/src/TimelineItem.d.ts +4 -4
  242. package/es/transfer/src/TransferList.d.ts +1 -0
  243. package/es/tree/src/Tree.d.ts +1 -0
  244. package/es/tree/src/Tree.js +8 -4
  245. package/es/tree/src/utils.js +1 -1
  246. package/es/tree-select/src/TreeSelect.d.ts +43 -30
  247. package/es/tree-select/src/TreeSelect.js +6 -2
  248. package/es/tree-select/styles/light.d.ts +3 -3
  249. package/es/typography/src/a.d.ts +3 -1
  250. package/es/typography/src/a.js +18 -10
  251. package/es/typography/src/blockquote.d.ts +3 -1
  252. package/es/typography/src/blockquote.js +21 -12
  253. package/es/typography/src/create-header.d.ts +7 -5
  254. package/es/typography/src/create-header.js +25 -16
  255. package/es/typography/src/headers.d.ts +36 -24
  256. package/es/typography/src/hr.d.ts +3 -1
  257. package/es/typography/src/hr.js +18 -10
  258. package/es/typography/src/ol.d.ts +3 -1
  259. package/es/typography/src/ol.js +23 -14
  260. package/es/typography/src/p.d.ts +3 -1
  261. package/es/typography/src/p.js +23 -15
  262. package/es/typography/src/text.d.ts +3 -1
  263. package/es/typography/src/text.js +31 -23
  264. package/es/typography/src/ul.d.ts +3 -1
  265. package/es/typography/src/ul.js +23 -14
  266. package/es/upload/src/UploadFile.d.ts +1 -1
  267. package/es/upload/src/UploadProgress.d.ts +2 -2
  268. package/es/upload/src/interface.d.ts +1 -1
  269. package/es/version.d.ts +1 -1
  270. package/es/version.js +1 -1
  271. package/es/watermark/index.d.ts +2 -0
  272. package/es/watermark/index.js +1 -0
  273. package/es/watermark/src/Watermark.d.ts +285 -0
  274. package/es/watermark/src/Watermark.js +159 -0
  275. package/es/watermark/src/styles/index.cssr.d.ts +2 -0
  276. package/es/watermark/src/styles/index.cssr.js +14 -0
  277. package/es/watermark/styles/dark.d.ts +3 -0
  278. package/es/watermark/styles/dark.js +12 -0
  279. package/es/watermark/styles/index.d.ts +3 -0
  280. package/es/watermark/styles/index.js +2 -0
  281. package/es/watermark/styles/light.d.ts +5 -0
  282. package/es/watermark/styles/light.js +13 -0
  283. package/lib/_internal/clear/src/Clear.d.ts +0 -1
  284. package/lib/_internal/clear/src/Clear.js +0 -2
  285. package/lib/_internal/icons/replaceable.d.ts +1 -1
  286. package/lib/_internal/icons/replaceable.js +4 -3
  287. package/lib/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
  288. package/lib/_internal/scrollbar/src/ScrollBar.js +34 -15
  289. package/lib/_internal/select-menu/src/SelectMenu.d.ts +22 -18
  290. package/lib/_internal/select-menu/src/SelectMenu.js +12 -9
  291. package/lib/_internal/selection/src/Selection.d.ts +31 -26
  292. package/lib/_internal/selection/src/Selection.js +78 -67
  293. package/lib/_internal/selection/styles/dark.js +3 -3
  294. package/lib/_internal/selection/styles/light.d.ts +6 -6
  295. package/lib/_internal/selection/styles/light.js +3 -3
  296. package/lib/_mixins/index.d.ts +1 -1
  297. package/lib/_mixins/index.js +2 -2
  298. package/lib/_mixins/use-config.d.ts +6 -3
  299. package/lib/_mixins/use-config.js +5 -1
  300. package/lib/_mixins/use-css-vars-class.d.ts +6 -2
  301. package/lib/_mixins/use-css-vars-class.js +33 -17
  302. package/lib/_mixins/use-form-item.d.ts +1 -1
  303. package/lib/_utils/css/color-to-class.d.ts +1 -0
  304. package/lib/_utils/css/color-to-class.js +7 -0
  305. package/lib/_utils/css/format-length.d.ts +2 -2
  306. package/lib/_utils/css/format-length.js +2 -1
  307. package/lib/_utils/css/index.d.ts +2 -1
  308. package/lib/_utils/css/index.js +4 -5
  309. package/lib/_utils/index.d.ts +1 -1
  310. package/lib/_utils/index.js +2 -1
  311. package/lib/_utils/vue/resolve-slot.d.ts +5 -2
  312. package/lib/_utils/vue/resolve-slot.js +4 -4
  313. package/lib/alert/src/Alert.d.ts +7 -5
  314. package/lib/alert/src/Alert.js +34 -19
  315. package/lib/anchor/src/AnchorAdapter.js +8 -2
  316. package/lib/auto-complete/src/AutoComplete.d.ts +4 -2
  317. package/lib/auto-complete/src/AutoComplete.js +27 -14
  318. package/lib/avatar/src/Avatar.d.ts +3 -1
  319. package/lib/avatar/src/Avatar.js +68 -33
  320. package/lib/back-top/src/BackTop.d.ts +12 -49
  321. package/lib/back-top/src/BackTop.js +57 -55
  322. package/lib/badge/src/Badge.d.ts +16 -41
  323. package/lib/badge/src/Badge.js +39 -29
  324. package/lib/breadcrumb/src/Breadcrumb.d.ts +3 -1
  325. package/lib/breadcrumb/src/Breadcrumb.js +23 -15
  326. package/lib/button/src/Button.d.ts +8 -6
  327. package/lib/button/src/Button.js +18 -19
  328. package/lib/button/styles/index.d.ts +1 -1
  329. package/lib/button/styles/index.js +1 -1
  330. package/lib/button/styles/rtl.d.ts +2 -5
  331. package/lib/button/styles/rtl.js +2 -1
  332. package/lib/calendar/src/Calendar.d.ts +3 -1
  333. package/lib/calendar/src/Calendar.js +36 -29
  334. package/lib/card/src/Card.d.ts +3 -1
  335. package/lib/card/src/Card.js +55 -41
  336. package/lib/card/styles/index.d.ts +1 -1
  337. package/lib/card/styles/index.js +1 -1
  338. package/lib/card/styles/rtl.d.ts +2 -5
  339. package/lib/card/styles/rtl.js +2 -1
  340. package/lib/carousel/src/Carousel.d.ts +3 -1
  341. package/lib/carousel/src/Carousel.js +27 -18
  342. package/lib/cascader/src/Cascader.d.ts +46 -31
  343. package/lib/cascader/src/Cascader.js +52 -30
  344. package/lib/cascader/src/CascaderMenu.d.ts +3 -3
  345. package/lib/cascader/src/CascaderMenu.js +7 -6
  346. package/lib/cascader/src/CascaderOption.d.ts +3 -3
  347. package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -3
  348. package/lib/cascader/src/CascaderSelectMenu.js +2 -1
  349. package/lib/cascader/src/CascaderSubmenu.d.ts +4 -3
  350. package/lib/cascader/src/interface.d.ts +1 -0
  351. package/lib/cascader/styles/light.d.ts +3 -3
  352. package/lib/checkbox/src/Checkbox.d.ts +6 -4
  353. package/lib/checkbox/src/Checkbox.js +40 -31
  354. package/lib/checkbox/src/styles/index.cssr.js +17 -17
  355. package/lib/code/src/Code.d.ts +3 -1
  356. package/lib/code/src/Code.js +32 -26
  357. package/lib/collapse/src/Collapse.d.ts +3 -1
  358. package/lib/collapse/src/Collapse.js +23 -15
  359. package/lib/color-picker/src/ColorPicker.d.ts +3 -1
  360. package/lib/color-picker/src/ColorPicker.js +19 -6
  361. package/lib/components.d.ts +1 -0
  362. package/lib/components.js +1 -0
  363. package/lib/config-provider/src/ConfigProvider.d.ts +4 -4
  364. package/lib/config-provider/src/ConfigProvider.js +3 -3
  365. package/lib/config-provider/src/internal-interface.d.ts +3 -1
  366. package/lib/countdown/src/Countdown.d.ts +0 -3
  367. package/lib/countdown/src/Countdown.js +0 -1
  368. package/lib/data-table/src/DataTable.d.ts +77 -75
  369. package/lib/data-table/src/DataTable.js +53 -47
  370. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
  371. package/lib/data-table/src/HeaderButton/FilterButton.js +3 -2
  372. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
  373. package/lib/data-table/src/HeaderButton/SortButton.js +3 -2
  374. package/lib/data-table/src/TableParts/Body.d.ts +7 -6
  375. package/lib/data-table/src/TableParts/Body.js +3 -1
  376. package/lib/data-table/src/TableParts/Cell.d.ts +12 -12
  377. package/lib/data-table/src/TableParts/Header.d.ts +6 -6
  378. package/lib/data-table/src/interface.d.ts +1 -1
  379. package/lib/data-table/src/use-table-data.js +19 -7
  380. package/lib/data-table/styles/light.d.ts +3 -3
  381. package/lib/date-picker/src/DatePicker.d.ts +1 -0
  382. package/lib/date-picker/src/DatePicker.js +2 -2
  383. package/lib/date-picker/src/panel/date.d.ts +2 -0
  384. package/lib/date-picker/src/panel/datetime.d.ts +2 -0
  385. package/lib/date-picker/src/panel/month.d.ts +2 -0
  386. package/lib/date-picker/src/panel/panelHeader.d.ts +4 -0
  387. package/lib/date-picker/src/panel/use-calendar.d.ts +2 -0
  388. package/lib/descriptions/src/Descriptions.d.ts +15 -2
  389. package/lib/descriptions/src/Descriptions.js +44 -27
  390. package/lib/descriptions/src/styles/index.cssr.js +2 -1
  391. package/lib/descriptions/styles/light.d.ts +1 -0
  392. package/lib/descriptions/styles/light.js +2 -2
  393. package/lib/dialog/src/Dialog.d.ts +7 -5
  394. package/lib/dialog/src/Dialog.js +55 -54
  395. package/lib/dialog/src/DialogEnvironment.d.ts +5 -5
  396. package/lib/dialog/src/DialogEnvironment.js +1 -1
  397. package/lib/dialog/src/DialogProvider.d.ts +2 -2
  398. package/lib/dialog/src/dialogProps.d.ts +2 -2
  399. package/lib/divider/src/Divider.d.ts +3 -1
  400. package/lib/divider/src/Divider.js +19 -10
  401. package/lib/dynamic-input/src/DynamicInput.js +2 -2
  402. package/lib/dynamic-tags/src/DynamicTags.d.ts +7 -5
  403. package/lib/dynamic-tags/src/DynamicTags.js +16 -9
  404. package/lib/element/src/Element.d.ts +3 -1
  405. package/lib/element/src/Element.js +17 -10
  406. package/lib/empty/src/Empty.d.ts +3 -1
  407. package/lib/empty/src/Empty.js +27 -15
  408. package/lib/form/src/FormItem.d.ts +4 -4
  409. package/lib/form/src/FormItem.js +1 -2
  410. package/lib/form/src/FormItemCol.d.ts +3 -3
  411. package/lib/form/src/FormItemGridItem.d.ts +5 -5
  412. package/lib/form/src/FormItemRow.d.ts +3 -3
  413. package/lib/form/src/utils.d.ts +1 -1
  414. package/lib/gradient-text/src/GradientText.d.ts +5 -5
  415. package/lib/grid/src/Grid.js +2 -2
  416. package/lib/icon-wrapper/src/IconWrapper.js +5 -5
  417. package/lib/image/src/Image.d.ts +1 -1
  418. package/lib/input/src/Input.d.ts +7 -4
  419. package/lib/input/src/Input.js +95 -83
  420. package/lib/input/src/styles/input.cssr.js +2 -2
  421. package/lib/input-number/src/InputNumber.d.ts +7 -18
  422. package/lib/input-number/src/InputNumber.js +76 -17
  423. package/lib/layout/src/Layout.d.ts +8 -2
  424. package/lib/layout/src/Layout.js +16 -9
  425. package/lib/layout/src/LayoutContent.d.ts +4 -1
  426. package/lib/layout/src/LayoutFooter.d.ts +3 -1
  427. package/lib/layout/src/LayoutFooter.js +27 -18
  428. package/lib/layout/src/LayoutHeader.d.ts +3 -1
  429. package/lib/layout/src/LayoutHeader.js +27 -18
  430. package/lib/layout/src/LayoutSider.d.ts +4 -0
  431. package/lib/layout/src/LayoutSider.js +36 -28
  432. package/lib/locales/common/deDE.js +13 -15
  433. package/lib/locales/common/enGB.d.ts +109 -0
  434. package/lib/locales/common/enGB.js +111 -0
  435. package/lib/locales/common/eo.d.ts +109 -0
  436. package/lib/locales/common/eo.js +111 -0
  437. package/lib/locales/common/esAR.js +2 -2
  438. package/lib/locales/common/frFR.js +8 -9
  439. package/lib/locales/common/plPL.d.ts +3 -0
  440. package/lib/locales/common/plPL.js +111 -0
  441. package/lib/locales/common/skSK.d.ts +3 -0
  442. package/lib/locales/common/skSK.js +112 -0
  443. package/lib/locales/date/enGB.d.ts +3 -0
  444. package/lib/locales/date/enGB.js +11 -0
  445. package/lib/locales/date/eo.d.ts +3 -0
  446. package/lib/locales/date/eo.js +11 -0
  447. package/lib/locales/date/plPL.d.ts +3 -0
  448. package/lib/locales/date/plPL.js +11 -0
  449. package/lib/locales/date/skSK.d.ts +3 -0
  450. package/lib/locales/date/skSK.js +11 -0
  451. package/lib/locales/index.d.ts +8 -0
  452. package/lib/locales/index.js +17 -1
  453. package/lib/log/src/Log.d.ts +4 -1
  454. package/lib/log/src/Log.js +19 -14
  455. package/lib/mention/index.d.ts +1 -1
  456. package/lib/mention/src/Mention.d.ts +1 -1
  457. package/lib/mention/src/interface.d.ts +4 -0
  458. package/lib/menu/src/Menu.d.ts +4 -2
  459. package/lib/menu/src/Menu.js +67 -62
  460. package/lib/modal/src/BodyWrapper.d.ts +7 -6
  461. package/lib/modal/src/Modal.d.ts +19 -22
  462. package/lib/modal/src/Modal.js +40 -31
  463. package/lib/modal/src/presetProps.d.ts +2 -2
  464. package/lib/notification/src/Notification.d.ts +4 -4
  465. package/lib/notification/src/NotificationEnvironment.d.ts +4 -4
  466. package/lib/notification/src/NotificationProvider.d.ts +1 -1
  467. package/lib/notification/src/styles/index.cssr.js +6 -5
  468. package/lib/page-header/src/PageHeader.d.ts +3 -1
  469. package/lib/page-header/src/PageHeader.js +26 -17
  470. package/lib/pagination/src/Pagination.d.ts +46 -34
  471. package/lib/pagination/src/Pagination.js +58 -51
  472. package/lib/pagination/styles/light.d.ts +3 -3
  473. package/lib/popover/src/PopoverBody.js +9 -3
  474. package/lib/progress/src/Circle.d.ts +19 -3
  475. package/lib/progress/src/Circle.js +40 -21
  476. package/lib/progress/src/Progress.d.ts +14 -5
  477. package/lib/progress/src/Progress.js +44 -24
  478. package/lib/progress/src/styles/index.cssr.js +1 -1
  479. package/lib/radio/src/Radio.d.ts +3 -1
  480. package/lib/radio/src/Radio.js +31 -22
  481. package/lib/radio/src/RadioGroup.d.ts +3 -1
  482. package/lib/radio/src/RadioGroup.js +30 -21
  483. package/lib/rate/src/Rate.d.ts +3 -1
  484. package/lib/rate/src/Rate.js +42 -21
  485. package/lib/result/src/Result.d.ts +8 -6
  486. package/lib/result/src/Result.js +35 -18
  487. package/lib/scrollbar/src/ScrollBar.d.ts +12 -1
  488. package/lib/scrollbar/src/ScrollBar.js +4 -0
  489. package/lib/select/src/Select.d.ts +45 -31
  490. package/lib/select/src/Select.js +14 -8
  491. package/lib/select/styles/light.d.ts +3 -3
  492. package/lib/spin/src/Spin.d.ts +3 -1
  493. package/lib/spin/src/Spin.js +30 -20
  494. package/lib/statistic/src/Statistic.d.ts +3 -1
  495. package/lib/statistic/src/Statistic.js +28 -20
  496. package/lib/styles.d.ts +1 -0
  497. package/lib/styles.js +9 -7
  498. package/lib/switch/src/Switch.d.ts +13 -1
  499. package/lib/switch/src/Switch.js +81 -56
  500. package/lib/switch/src/styles/index.cssr.js +21 -8
  501. package/lib/switch/styles/dark.js +2 -2
  502. package/lib/switch/styles/light.d.ts +1 -0
  503. package/lib/switch/styles/light.js +2 -2
  504. package/lib/table/src/Table.d.ts +3 -1
  505. package/lib/table/src/Table.js +39 -28
  506. package/lib/table/src/styles/index.cssr.js +1 -1
  507. package/lib/tabs/src/Tabs.d.ts +25 -23
  508. package/lib/tabs/src/Tabs.js +48 -42
  509. package/lib/tabs/src/styles/index.cssr.js +77 -77
  510. package/lib/tag/src/Tag.d.ts +7 -5
  511. package/lib/tag/src/Tag.js +57 -40
  512. package/lib/tag/src/common-props.d.ts +1 -1
  513. package/lib/tag/src/styles/index.cssr.js +1 -1
  514. package/lib/tag/styles/index.d.ts +1 -1
  515. package/lib/tag/styles/index.js +1 -1
  516. package/lib/tag/styles/rtl.d.ts +2 -5
  517. package/lib/tag/styles/rtl.js +2 -1
  518. package/lib/theme-editor/src/ThemeEditor.js +2 -1
  519. package/lib/themes/dark.js +3 -1
  520. package/lib/themes/light.js +3 -1
  521. package/lib/thing/src/Thing.js +9 -2
  522. package/lib/time-picker/src/TimePicker.d.ts +4 -0
  523. package/lib/timeline/src/TimelineItem.d.ts +4 -4
  524. package/lib/transfer/src/TransferList.d.ts +1 -0
  525. package/lib/tree/src/Tree.d.ts +1 -0
  526. package/lib/tree/src/Tree.js +8 -4
  527. package/lib/tree/src/utils.js +1 -1
  528. package/lib/tree-select/src/TreeSelect.d.ts +43 -30
  529. package/lib/tree-select/src/TreeSelect.js +6 -2
  530. package/lib/tree-select/styles/light.d.ts +3 -3
  531. package/lib/typography/src/a.d.ts +3 -1
  532. package/lib/typography/src/a.js +17 -9
  533. package/lib/typography/src/blockquote.d.ts +3 -1
  534. package/lib/typography/src/blockquote.js +20 -11
  535. package/lib/typography/src/create-header.d.ts +7 -5
  536. package/lib/typography/src/create-header.js +24 -15
  537. package/lib/typography/src/headers.d.ts +36 -24
  538. package/lib/typography/src/hr.d.ts +3 -1
  539. package/lib/typography/src/hr.js +17 -9
  540. package/lib/typography/src/ol.d.ts +3 -1
  541. package/lib/typography/src/ol.js +22 -13
  542. package/lib/typography/src/p.d.ts +3 -1
  543. package/lib/typography/src/p.js +22 -14
  544. package/lib/typography/src/text.d.ts +3 -1
  545. package/lib/typography/src/text.js +30 -22
  546. package/lib/typography/src/ul.d.ts +3 -1
  547. package/lib/typography/src/ul.js +22 -13
  548. package/lib/upload/src/UploadFile.d.ts +1 -1
  549. package/lib/upload/src/UploadProgress.d.ts +2 -2
  550. package/lib/upload/src/interface.d.ts +1 -1
  551. package/lib/version.d.ts +1 -1
  552. package/lib/version.js +1 -1
  553. package/lib/watermark/index.d.ts +2 -0
  554. package/lib/watermark/index.js +8 -0
  555. package/lib/watermark/src/Watermark.d.ts +285 -0
  556. package/lib/watermark/src/Watermark.js +164 -0
  557. package/lib/watermark/src/styles/index.cssr.d.ts +2 -0
  558. package/lib/watermark/src/styles/index.cssr.js +21 -0
  559. package/lib/watermark/styles/dark.d.ts +3 -0
  560. package/lib/watermark/styles/dark.js +14 -0
  561. package/lib/watermark/styles/index.d.ts +3 -0
  562. package/lib/watermark/styles/index.js +10 -0
  563. package/lib/watermark/styles/light.d.ts +5 -0
  564. package/lib/watermark/styles/light.js +15 -0
  565. package/package.json +9 -10
  566. package/volar.d.ts +1 -0
  567. package/web-types.json +279 -29
@@ -66,7 +66,7 @@ exports.default = (0, vue_1.defineComponent)({
66
66
  }
67
67
  });
68
68
  }
69
- const { mergedClsPrefixRef, mergedBorderedRef } = (0, _mixins_1.useConfig)(props);
69
+ const { mergedClsPrefixRef, mergedBorderedRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
70
70
  const themeRef = (0, _mixins_1.useTheme)('Input', '-input', input_cssr_1.default, styles_1.inputLight, props, mergedClsPrefixRef);
71
71
  // dom refs
72
72
  const wrapperElRef = (0, vue_1.ref)(null);
@@ -633,6 +633,69 @@ exports.default = (0, vue_1.defineComponent)({
633
633
  deactivate,
634
634
  activate
635
635
  };
636
+ const cssVarsRef = (0, vue_1.computed)(() => {
637
+ const { value: size } = mergedSizeRef;
638
+ const { common: { cubicBezierEaseInOut }, self: { color, borderRadius, textColor, caretColor, caretColorError, caretColorWarning, textDecorationColor, border, borderDisabled, borderHover, borderFocus, placeholderColor, placeholderColorDisabled, lineHeightTextarea, colorDisabled, colorFocus, textColorDisabled, boxShadowFocus, iconSize, colorFocusWarning, boxShadowFocusWarning, borderWarning, borderFocusWarning, borderHoverWarning, colorFocusError, boxShadowFocusError, borderError, borderFocusError, borderHoverError, clearSize, clearColor, clearColorHover, clearColorPressed, iconColor, iconColorDisabled, suffixTextColor, countTextColor, iconColorHover, iconColorPressed, loadingColor, loadingColorError, loadingColorWarning, [(0, _utils_1.createKey)('padding', size)]: padding, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('height', size)]: height } } = themeRef.value;
639
+ const { left: paddingLeft, right: paddingRight } = (0, seemly_1.getPadding)(padding);
640
+ return {
641
+ '--n-bezier': cubicBezierEaseInOut,
642
+ '--n-count-text-color': countTextColor,
643
+ '--n-color': color,
644
+ '--n-font-size': fontSize,
645
+ '--n-border-radius': borderRadius,
646
+ '--n-height': height,
647
+ '--n-padding-left': paddingLeft,
648
+ '--n-padding-right': paddingRight,
649
+ '--n-text-color': textColor,
650
+ '--n-caret-color': caretColor,
651
+ '--n-text-decoration-color': textDecorationColor,
652
+ '--n-border': border,
653
+ '--n-border-disabled': borderDisabled,
654
+ '--n-border-hover': borderHover,
655
+ '--n-border-focus': borderFocus,
656
+ '--n-placeholder-color': placeholderColor,
657
+ '--n-placeholder-color-disabled': placeholderColorDisabled,
658
+ '--n-icon-size': iconSize,
659
+ '--n-line-height-textarea': lineHeightTextarea,
660
+ '--n-color-disabled': colorDisabled,
661
+ '--n-color-focus': colorFocus,
662
+ '--n-text-color-disabled': textColorDisabled,
663
+ '--n-box-shadow-focus': boxShadowFocus,
664
+ '--n-loading-color': loadingColor,
665
+ // form warning
666
+ '--n-caret-color-warning': caretColorWarning,
667
+ '--n-color-focus-warning': colorFocusWarning,
668
+ '--n-box-shadow-focus-warning': boxShadowFocusWarning,
669
+ '--n-border-warning': borderWarning,
670
+ '--n-border-focus-warning': borderFocusWarning,
671
+ '--n-border-hover-warning': borderHoverWarning,
672
+ '--n-loading-color-warning': loadingColorWarning,
673
+ // form error
674
+ '--n-caret-color-error': caretColorError,
675
+ '--n-color-focus-error': colorFocusError,
676
+ '--n-box-shadow-focus-error': boxShadowFocusError,
677
+ '--n-border-error': borderError,
678
+ '--n-border-focus-error': borderFocusError,
679
+ '--n-border-hover-error': borderHoverError,
680
+ '--n-loading-color-error': loadingColorError,
681
+ // clear-button
682
+ '--n-clear-color': clearColor,
683
+ '--n-clear-size': clearSize,
684
+ '--n-clear-color-hover': clearColorHover,
685
+ '--n-clear-color-pressed': clearColorPressed,
686
+ '--n-icon-color': iconColor,
687
+ '--n-icon-color-hover': iconColorHover,
688
+ '--n-icon-color-pressed': iconColorPressed,
689
+ '--n-icon-color-disabled': iconColorDisabled,
690
+ '--n-suffix-text-color': suffixTextColor
691
+ };
692
+ });
693
+ const themeClassHandle = inlineThemeDisabled
694
+ ? (0, _mixins_1.useThemeClass)('input', (0, vue_1.computed)(() => {
695
+ const { value: size } = mergedSizeRef;
696
+ return size[0];
697
+ }), cssVarsRef, props)
698
+ : undefined;
636
699
  return Object.assign(Object.assign({}, exposedProps), {
637
700
  // DOM ref
638
701
  wrapperElRef,
@@ -664,69 +727,14 @@ exports.default = (0, vue_1.defineComponent)({
664
727
  handleWrapperKeyDown,
665
728
  handleTextAreaMirrorResize, getTextareaScrollContainer: () => {
666
729
  return textareaElRef.value;
667
- }, mergedTheme: themeRef, cssVars: (0, vue_1.computed)(() => {
668
- const { value: size } = mergedSizeRef;
669
- const { common: { cubicBezierEaseInOut }, self: { color, borderRadius, textColor, caretColor, caretColorError, caretColorWarning, textDecorationColor, border, borderDisabled, borderHover, borderFocus, placeholderColor, placeholderColorDisabled, lineHeightTextarea, colorDisabled, colorFocus, textColorDisabled, boxShadowFocus, iconSize, colorFocusWarning, boxShadowFocusWarning, borderWarning, borderFocusWarning, borderHoverWarning, colorFocusError, boxShadowFocusError, borderError, borderFocusError, borderHoverError, clearSize, clearColor, clearColorHover, clearColorPressed, iconColor, iconColorDisabled, suffixTextColor, countTextColor, iconColorHover, iconColorPressed, loadingColor, loadingColorError, loadingColorWarning, [(0, _utils_1.createKey)('padding', size)]: padding, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('height', size)]: height } } = themeRef.value;
670
- const { left: paddingLeft, right: paddingRight } = (0, seemly_1.getPadding)(padding);
671
- return {
672
- '--n-bezier': cubicBezierEaseInOut,
673
- '--n-count-text-color': countTextColor,
674
- '--n-color': color,
675
- '--n-font-size': fontSize,
676
- '--n-border-radius': borderRadius,
677
- '--n-height': height,
678
- '--n-padding-left': paddingLeft,
679
- '--n-padding-right': paddingRight,
680
- '--n-text-color': textColor,
681
- '--n-caret-color': caretColor,
682
- '--n-text-decoration-color': textDecorationColor,
683
- '--n-border': border,
684
- '--n-border-disabled': borderDisabled,
685
- '--n-border-hover': borderHover,
686
- '--n-border-focus': borderFocus,
687
- '--n-placeholder-color': placeholderColor,
688
- '--n-placeholder-color-disabled': placeholderColorDisabled,
689
- '--n-icon-size': iconSize,
690
- '--n-line-height-textarea': lineHeightTextarea,
691
- '--n-color-disabled': colorDisabled,
692
- '--n-color-focus': colorFocus,
693
- '--n-text-color-disabled': textColorDisabled,
694
- '--n-box-shadow-focus': boxShadowFocus,
695
- '--n-loading-color': loadingColor,
696
- // form warning
697
- '--n-caret-color-warning': caretColorWarning,
698
- '--n-color-focus-warning': colorFocusWarning,
699
- '--n-box-shadow-focus-warning': boxShadowFocusWarning,
700
- '--n-border-warning': borderWarning,
701
- '--n-border-focus-warning': borderFocusWarning,
702
- '--n-border-hover-warning': borderHoverWarning,
703
- '--n-loading-color-warning': loadingColorWarning,
704
- // form error
705
- '--n-caret-color-error': caretColorError,
706
- '--n-color-focus-error': colorFocusError,
707
- '--n-box-shadow-focus-error': boxShadowFocusError,
708
- '--n-border-error': borderError,
709
- '--n-border-focus-error': borderFocusError,
710
- '--n-border-hover-error': borderHoverError,
711
- '--n-loading-color-error': loadingColorError,
712
- // clear-button
713
- '--n-clear-color': clearColor,
714
- '--n-clear-size': clearSize,
715
- '--n-clear-color-hover': clearColorHover,
716
- '--n-clear-color-pressed': clearColorPressed,
717
- '--n-icon-color': iconColor,
718
- '--n-icon-color-hover': iconColorHover,
719
- '--n-icon-color-pressed': iconColorPressed,
720
- '--n-icon-color-disabled': iconColorDisabled,
721
- '--n-suffix-text-color': suffixTextColor
722
- };
723
- }) });
730
+ }, mergedTheme: themeRef, cssVars: inlineThemeDisabled ? undefined : cssVarsRef, themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass, onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender });
724
731
  },
725
732
  render() {
726
- var _a, _b, _c;
727
- const { mergedClsPrefix, mergedStatus, $slots } = this;
733
+ const { mergedClsPrefix, mergedStatus, themeClass, onRender, $slots } = this;
734
+ onRender === null || onRender === void 0 ? void 0 : onRender();
728
735
  return ((0, vue_1.h)("div", { ref: "wrapperElRef", class: [
729
736
  `${mergedClsPrefix}-input`,
737
+ themeClass,
730
738
  mergedStatus && `${mergedClsPrefix}-input--${mergedStatus}-status`,
731
739
  {
732
740
  [`${mergedClsPrefix}-input--disabled`]: this.mergedDisabled,
@@ -742,9 +750,7 @@ exports.default = (0, vue_1.defineComponent)({
742
750
  ? 0
743
751
  : undefined, onFocus: this.handleWrapperFocus, onBlur: this.handleWrapperBlur, onClick: this.handleClick, onMousedown: this.handleMouseDown, onMouseenter: this.handleMouseEnter, onMouseleave: this.handleMouseLeave, onCompositionstart: this.handleCompositionStart, onCompositionend: this.handleCompositionEnd, onKeyup: this.onKeyup, onKeydown: this.handleWrapperKeyDown },
744
752
  (0, vue_1.h)("div", { class: `${mergedClsPrefix}-input-wrapper` },
745
- (0, _utils_1.resolveWrappedSlot)($slots.prefix, (children) => [
746
- (0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__prefix` }, children)
747
- ]),
753
+ (0, _utils_1.resolveWrappedSlot)($slots.prefix, (children) => children && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__prefix` }, children))),
748
754
  this.type === 'textarea' ? ((0, vue_1.h)(_internal_1.NScrollbar, { ref: "textareaScrollbarInstRef", class: `${mergedClsPrefix}-input__textarea`, container: this.getTextareaScrollContainer, triggerDisplayManually: true, useUnifiedContainer: true }, {
749
755
  default: () => {
750
756
  return ((0, vue_1.h)(vue_1.Fragment, null,
@@ -768,22 +774,26 @@ exports.default = (0, vue_1.defineComponent)({
768
774
  (0, vue_1.h)("span", null, this.mergedPlaceholder[0]))) : null,
769
775
  this.autosize ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__input-mirror`, key: "mirror", ref: "inputMirrorElRef" }, "\u00A0")) : null)),
770
776
  !this.pair &&
771
- ($slots.suffix ||
772
- this.clearable ||
773
- this.showCount ||
774
- this.mergedShowPasswordOn ||
775
- this.loading !== undefined) ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__suffix` }, [
776
- this.clearable || $slots.clear ? ((0, vue_1.h)(_internal_1.NBaseClear, { clsPrefix: mergedClsPrefix, show: this.showClearButton, onClear: this.handleClear }, { default: () => { var _a; return (_a = $slots.clear) === null || _a === void 0 ? void 0 : _a.call($slots); } })) : null,
777
- !this.internalLoadingBeforeSuffix ? (_a = $slots.suffix) === null || _a === void 0 ? void 0 : _a.call($slots) : null,
778
- this.loading !== undefined ? ((0, vue_1.h)(_internal_1.NBaseSuffix, { clsPrefix: mergedClsPrefix, loading: this.loading, showArrow: false, showClear: false, style: this.cssVars })) : null,
779
- this.internalLoadingBeforeSuffix ? (_b = $slots.suffix) === null || _b === void 0 ? void 0 : _b.call($slots) : null,
780
- this.showCount && this.type !== 'textarea' ? ((0, vue_1.h)(WordCount_1.default, null, {
781
- default: (props) => { var _a; return (_a = $slots.count) === null || _a === void 0 ? void 0 : _a.call($slots, props); }
782
- })) : null,
783
- this.mergedShowPasswordOn && this.type === 'password' ? ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-input__eye`, onMousedown: this.handlePasswordToggleMousedown, onClick: this.handlePasswordToggleClick }, {
784
- default: () => this.passwordVisible ? (0, vue_1.h)(icons_1.EyeIcon, null) : (0, vue_1.h)(icons_1.EyeOffIcon, null)
785
- })) : null
786
- ])) : null),
777
+ (0, _utils_1.resolveWrappedSlot)($slots.suffix, (children) => {
778
+ return children ||
779
+ this.clearable ||
780
+ this.showCount ||
781
+ this.mergedShowPasswordOn ||
782
+ this.loading !== undefined ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__suffix` }, [
783
+ (0, _utils_1.resolveWrappedSlot)($slots.clear, (children) => {
784
+ return ((this.clearable || children) && ((0, vue_1.h)(_internal_1.NBaseClear, { clsPrefix: mergedClsPrefix, show: this.showClearButton, onClear: this.handleClear }, { default: () => children })));
785
+ }),
786
+ !this.internalLoadingBeforeSuffix ? children : null,
787
+ this.loading !== undefined ? ((0, vue_1.h)(_internal_1.NBaseSuffix, { clsPrefix: mergedClsPrefix, loading: this.loading, showArrow: false, showClear: false, style: this.cssVars })) : null,
788
+ this.internalLoadingBeforeSuffix ? children : null,
789
+ this.showCount && this.type !== 'textarea' ? ((0, vue_1.h)(WordCount_1.default, null, {
790
+ default: (props) => { var _a; return (_a = $slots.count) === null || _a === void 0 ? void 0 : _a.call($slots, props); }
791
+ })) : null,
792
+ this.mergedShowPasswordOn && this.type === 'password' ? ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-input__eye`, onMousedown: this.handlePasswordToggleMousedown, onClick: this.handlePasswordToggleClick }, {
793
+ default: () => this.passwordVisible ? (0, vue_1.h)(icons_1.EyeIcon, null) : (0, vue_1.h)(icons_1.EyeOffIcon, null)
794
+ })) : null
795
+ ])) : null;
796
+ })),
787
797
  this.pair ? ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-input__separator` }, (0, _utils_1.resolveSlot)($slots.separator, () => [this.separator]))) : null,
788
798
  this.pair ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input-wrapper` },
789
799
  (0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__input` },
@@ -792,10 +802,12 @@ exports.default = (0, vue_1.defineComponent)({
792
802
  : undefined, readonly: this.readonly, style: this.textDecorationStyle[1], onBlur: this.handleInputBlur, onFocus: this.handleInputFocus, onInput: (e) => this.handleInput(e, 1), onChange: (e) => this.handleChange(e, 1) }),
793
803
  this.showPlaceholder2 ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__placeholder` },
794
804
  (0, vue_1.h)("span", null, this.mergedPlaceholder[1]))) : null),
795
- (0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__suffix` }, [
796
- this.clearable && ((0, vue_1.h)(_internal_1.NBaseClear, { clsPrefix: mergedClsPrefix, show: this.showClearButton, onClear: this.handleClear }, { default: () => { var _a; return (_a = $slots.clear) === null || _a === void 0 ? void 0 : _a.call($slots); } })),
797
- (_c = $slots.suffix) === null || _c === void 0 ? void 0 : _c.call($slots)
798
- ]))) : null,
805
+ (0, _utils_1.resolveWrappedSlot)($slots.suffix, (children) => {
806
+ return ((this.clearable || children) && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__suffix` }, [
807
+ this.clearable && ((0, vue_1.h)(_internal_1.NBaseClear, { clsPrefix: mergedClsPrefix, show: this.showClearButton, onClear: this.handleClear }, { default: () => { var _a; return (_a = $slots.clear) === null || _a === void 0 ? void 0 : _a.call($slots); } })),
808
+ children
809
+ ])));
810
+ }))) : null,
799
811
  this.mergedBordered ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__border` })) : null,
800
812
  this.mergedBordered ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__state-border` })) : null,
801
813
  this.showCount && this.type === 'textarea' ? ((0, vue_1.h)(WordCount_1.default, null, { default: (props) => { var _a; return (_a = $slots.count) === null || _a === void 0 ? void 0 : _a.call($slots, props); } })) : null));
@@ -193,10 +193,10 @@ exports.default = (0, cssr_1.cB)('input', `
193
193
  color: var(--n-icon-color-hover);
194
194
  `), (0, cssr_1.c)('&:active', `
195
195
  color: var(--n-icon-color-pressed);
196
- `)]), (0, cssr_1.cM)('focus', 'background-color: var(--n-color-focus);', [(0, cssr_1.cE)('state-border', `
196
+ `)]), (0, cssr_1.c)('&:hover', [(0, cssr_1.cE)('state-border', 'border: var(--n-border-hover);')]), (0, cssr_1.cM)('focus', 'background-color: var(--n-color-focus);', [(0, cssr_1.cE)('state-border', `
197
197
  border: var(--n-border-focus);
198
198
  box-shadow: var(--n-box-shadow-focus);
199
- `)]), (0, cssr_1.c)('&:hover', [(0, cssr_1.cE)('state-border', 'border: var(--n-border-hover);')])]), (0, cssr_1.cE)('border, state-border', `
199
+ `)])]), (0, cssr_1.cE)('border, state-border', `
200
200
  box-sizing: border-box;
201
201
  position: absolute;
202
202
  left: 0;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import type { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
2
+ import { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
3
3
  import type { OnUpdateValue } from './interface';
4
4
  declare const inputNumberProps: {
5
5
  loading: {
@@ -50,11 +50,7 @@ declare const inputNumberProps: {
50
50
  onFocus: PropType<MaybeArray<(e: FocusEvent) => void>>;
51
51
  onBlur: PropType<MaybeArray<(e: FocusEvent) => void>>;
52
52
  onClear: PropType<MaybeArray<(e: MouseEvent) => void>>;
53
- onChange: {
54
- type: PropType<MaybeArray<OnUpdateValue> | undefined>;
55
- validator: () => boolean;
56
- default: undefined;
57
- };
53
+ onChange: PropType<MaybeArray<OnUpdateValue>>;
58
54
  theme: PropType<import("../../_mixins").Theme<"InputNumber", {
59
55
  iconColorDisabled: string;
60
56
  }, {
@@ -910,11 +906,7 @@ declare const _default: import("vue").DefineComponent<{
910
906
  onFocus: PropType<MaybeArray<(e: FocusEvent) => void>>;
911
907
  onBlur: PropType<MaybeArray<(e: FocusEvent) => void>>;
912
908
  onClear: PropType<MaybeArray<(e: MouseEvent) => void>>;
913
- onChange: {
914
- type: PropType<MaybeArray<OnUpdateValue> | undefined>;
915
- validator: () => boolean;
916
- default: undefined;
917
- };
909
+ onChange: PropType<MaybeArray<OnUpdateValue>>;
918
910
  theme: PropType<import("../../_mixins").Theme<"InputNumber", {
919
911
  iconColorDisabled: string;
920
912
  }, {
@@ -1755,6 +1747,8 @@ declare const _default: import("vue").DefineComponent<{
1755
1747
  handleMouseDown: (e: MouseEvent) => void;
1756
1748
  handleAddClick: () => void;
1757
1749
  handleMinusClick: () => void;
1750
+ handleAddMousedown: () => void;
1751
+ handleMinusMousedown: () => void;
1758
1752
  handleKeyDown: (e: KeyboardEvent) => void;
1759
1753
  handleUpdateDisplayedValue: (value: string) => void;
1760
1754
  mergedTheme: import("vue").ComputedRef<{
@@ -2203,11 +2197,7 @@ declare const _default: import("vue").DefineComponent<{
2203
2197
  onFocus: PropType<MaybeArray<(e: FocusEvent) => void>>;
2204
2198
  onBlur: PropType<MaybeArray<(e: FocusEvent) => void>>;
2205
2199
  onClear: PropType<MaybeArray<(e: MouseEvent) => void>>;
2206
- onChange: {
2207
- type: PropType<MaybeArray<OnUpdateValue> | undefined>;
2208
- validator: () => boolean;
2209
- default: undefined;
2210
- };
2200
+ onChange: PropType<MaybeArray<OnUpdateValue>>;
2211
2201
  theme: PropType<import("../../_mixins").Theme<"InputNumber", {
2212
2202
  iconColorDisabled: string;
2213
2203
  }, {
@@ -3016,9 +3006,8 @@ declare const _default: import("vue").DefineComponent<{
3016
3006
  readonly: boolean;
3017
3007
  disabled: boolean | undefined;
3018
3008
  step: string | number;
3019
- onChange: MaybeArray<OnUpdateValue> | undefined;
3020
- bordered: boolean | undefined;
3021
3009
  loading: boolean;
3010
+ bordered: boolean | undefined;
3022
3011
  clearable: boolean;
3023
3012
  defaultValue: number | null;
3024
3013
  keyboard: {
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const vue_1 = require("vue");
7
7
  const seemly_1 = require("seemly");
8
8
  const vooks_1 = require("vooks");
9
+ const evtd_1 = require("evtd");
9
10
  const icons_1 = require("../../_internal/icons");
10
11
  const input_1 = require("../../input");
11
12
  const _internal_1 = require("../../_internal");
@@ -15,6 +16,8 @@ const _utils_1 = require("../../_utils");
15
16
  const styles_1 = require("../styles");
16
17
  const utils_1 = require("./utils");
17
18
  const input_number_cssr_1 = __importDefault(require("./styles/input-number.cssr"));
19
+ const HOLDING_CHANGE_THRESHOLD = 800;
20
+ const HOLDING_CHANGE_INTERVAL = 100;
18
21
  const inputNumberProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { loading: {
19
22
  type: Boolean,
20
23
  default: undefined
@@ -41,20 +44,18 @@ const inputNumberProps = Object.assign(Object.assign({}, _mixins_1.useTheme.prop
41
44
  default: true
42
45
  }, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], onFocus: [Function, Array], onBlur: [Function, Array], onClear: [Function, Array],
43
46
  // deprecated
44
- onChange: {
45
- type: [Function, Array],
46
- validator: () => {
47
- if (process.env.NODE_ENV !== 'production') {
48
- (0, _utils_1.warn)('input-number', '`on-change` is deprecated, please use `on-update:value` instead.');
49
- }
50
- return true;
51
- },
52
- default: undefined
53
- } });
47
+ onChange: [Function, Array] });
54
48
  exports.default = (0, vue_1.defineComponent)({
55
49
  name: 'InputNumber',
56
50
  props: inputNumberProps,
57
51
  setup(props) {
52
+ if (process.env.NODE_ENV !== 'production') {
53
+ (0, vue_1.watchEffect)(() => {
54
+ if (props.onChange !== undefined) {
55
+ (0, _utils_1.warnOnce)('input-number', '`on-change` is deprecated, please use `on-update:value` instead');
56
+ }
57
+ });
58
+ }
58
59
  const { mergedBorderedRef, mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
59
60
  const themeRef = (0, _mixins_1.useTheme)('InputNumber', '-input-number', input_number_cssr_1.default, styles_1.inputNumberLight, props, mergedClsPrefixRef);
60
61
  const { localeRef } = (0, _mixins_1.useLocale)('InputNumber');
@@ -240,8 +241,10 @@ exports.default = (0, vue_1.defineComponent)({
240
241
  }
241
242
  function doAdd() {
242
243
  const { value: addable } = addableRef;
243
- if (!addable)
244
+ if (!addable) {
245
+ clearAddHoldTimeout();
244
246
  return;
247
+ }
245
248
  const { value: mergedValue } = mergedValueRef;
246
249
  if (mergedValue === null) {
247
250
  if (!props.validator) {
@@ -255,8 +258,10 @@ exports.default = (0, vue_1.defineComponent)({
255
258
  }
256
259
  function doMinus() {
257
260
  const { value: minusable } = minusableRef;
258
- if (!minusable)
261
+ if (!minusable) {
262
+ clearMinusHoldTimeout();
259
263
  return;
264
+ }
260
265
  const { value: mergedValue } = mergedValueRef;
261
266
  if (mergedValue === null) {
262
267
  if (!props.validator) {
@@ -299,8 +304,60 @@ exports.default = (0, vue_1.defineComponent)({
299
304
  }
300
305
  (_c = inputInstRef.value) === null || _c === void 0 ? void 0 : _c.activate();
301
306
  }
302
- const handleAddClick = doAdd;
303
- const handleMinusClick = doMinus;
307
+ let minusHoldStateIntervalId = null;
308
+ let addHoldStateIntervalId = null;
309
+ let firstMinusMousedownId = null;
310
+ function clearMinusHoldTimeout() {
311
+ if (firstMinusMousedownId) {
312
+ window.clearTimeout(firstMinusMousedownId);
313
+ firstMinusMousedownId = null;
314
+ }
315
+ if (minusHoldStateIntervalId) {
316
+ window.clearInterval(minusHoldStateIntervalId);
317
+ minusHoldStateIntervalId = null;
318
+ }
319
+ }
320
+ function clearAddHoldTimeout() {
321
+ if (firstAddMousedownId) {
322
+ window.clearTimeout(firstAddMousedownId);
323
+ firstAddMousedownId = null;
324
+ }
325
+ if (addHoldStateIntervalId) {
326
+ window.clearInterval(addHoldStateIntervalId);
327
+ addHoldStateIntervalId = null;
328
+ }
329
+ }
330
+ function handleMinusMousedown() {
331
+ firstMinusMousedownId = window.setTimeout(() => {
332
+ minusHoldStateIntervalId = window.setInterval(() => {
333
+ doMinus();
334
+ }, HOLDING_CHANGE_INTERVAL);
335
+ }, HOLDING_CHANGE_THRESHOLD);
336
+ (0, evtd_1.on)('mouseup', document, () => {
337
+ window.setTimeout(clearMinusHoldTimeout, 0);
338
+ });
339
+ }
340
+ let firstAddMousedownId = null;
341
+ function handleAddMousedown() {
342
+ firstAddMousedownId = window.setTimeout(() => {
343
+ addHoldStateIntervalId = window.setInterval(() => {
344
+ doAdd();
345
+ }, HOLDING_CHANGE_INTERVAL);
346
+ }, HOLDING_CHANGE_THRESHOLD);
347
+ (0, evtd_1.on)('mouseup', document, () => {
348
+ window.setTimeout(clearAddHoldTimeout, 0);
349
+ });
350
+ }
351
+ const handleAddClick = () => {
352
+ if (addHoldStateIntervalId)
353
+ return;
354
+ doAdd();
355
+ };
356
+ const handleMinusClick = () => {
357
+ if (minusHoldStateIntervalId)
358
+ return;
359
+ doMinus();
360
+ };
304
361
  function handleKeyDown(e) {
305
362
  var _a, _b;
306
363
  if (e.code === 'Enter' || e.code === 'NumpadEnter') {
@@ -354,6 +411,8 @@ exports.default = (0, vue_1.defineComponent)({
354
411
  handleMouseDown,
355
412
  handleAddClick,
356
413
  handleMinusClick,
414
+ handleAddMousedown,
415
+ handleMinusMousedown,
357
416
  handleKeyDown,
358
417
  handleUpdateDisplayedValue,
359
418
  // theme
@@ -380,12 +439,12 @@ exports.default = (0, vue_1.defineComponent)({
380
439
  return this.showButton
381
440
  ? [
382
441
  this.$slots.suffix && ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-input-number-suffix` }, { default: this.$slots.suffix })),
383
- (0, vue_1.h)(button_1.NButton, { text: true, disabled: !this.minusable || this.mergedDisabled || this.readonly, focusable: false, builtinThemeOverrides: this.buttonThemeOverrides, onClick: this.handleMinusClick, ref: "minusButtonInstRef" }, {
384
- default: () => ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix }, {
442
+ (0, vue_1.h)(button_1.NxButton, { text: true, disabled: !this.minusable || this.mergedDisabled || this.readonly, focusable: false, builtinThemeOverrides: this.buttonThemeOverrides, onClick: this.handleMinusClick, onMousedown: this.handleMinusMousedown, ref: "minusButtonInstRef" }, {
443
+ default: () => ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, "aria-disabled": true }, {
385
444
  default: () => (0, vue_1.h)(icons_1.RemoveIcon, null)
386
445
  }))
387
446
  }),
388
- (0, vue_1.h)(button_1.NButton, { text: true, disabled: !this.addable || this.mergedDisabled || this.readonly, focusable: false, builtinThemeOverrides: this.buttonThemeOverrides, onClick: this.handleAddClick, ref: "addButtonInstRef" }, {
447
+ (0, vue_1.h)(button_1.NxButton, { text: true, disabled: !this.addable || this.mergedDisabled || this.readonly, focusable: false, builtinThemeOverrides: this.buttonThemeOverrides, onClick: this.handleAddClick, onMousedown: this.handleAddMousedown, ref: "addButtonInstRef" }, {
389
448
  default: () => ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix }, {
390
449
  default: () => (0, vue_1.h)(icons_1.AddIcon, null)
391
450
  }))
@@ -167,6 +167,7 @@ export declare function createLayoutComponent(isContent: boolean): import("vue")
167
167
  containerScrollTop: number;
168
168
  syncUnifiedContainer: () => void;
169
169
  scrollTo: import("../../_internal/scrollbar/src/ScrollBar").ScrollTo;
170
+ scrollBy: import("../../_internal/scrollbar/src/ScrollBar").ScrollBy;
170
171
  sync: () => void;
171
172
  handleMouseEnterWrapper: () => void;
172
173
  handleMouseLeaveWrapper: () => void;
@@ -319,7 +320,9 @@ export declare function createLayoutComponent(isContent: boolean): import("vue")
319
320
  '--n-bezier': string;
320
321
  '--n-color': string;
321
322
  '--n-text-color': string;
322
- }>;
323
+ }> | undefined;
324
+ themeClass: import("vue").Ref<string> | undefined;
325
+ onRender: (() => void) | undefined;
323
326
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
324
327
  embedded: BooleanConstructor;
325
328
  position: {
@@ -560,6 +563,7 @@ declare const _default: import("vue").DefineComponent<{
560
563
  containerScrollTop: number;
561
564
  syncUnifiedContainer: () => void;
562
565
  scrollTo: import("../../_internal/scrollbar/src/ScrollBar").ScrollTo;
566
+ scrollBy: import("../../_internal/scrollbar/src/ScrollBar").ScrollBy;
563
567
  sync: () => void;
564
568
  handleMouseEnterWrapper: () => void;
565
569
  handleMouseLeaveWrapper: () => void;
@@ -712,7 +716,9 @@ declare const _default: import("vue").DefineComponent<{
712
716
  '--n-bezier': string;
713
717
  '--n-color': string;
714
718
  '--n-text-color': string;
715
- }>;
719
+ }> | undefined;
720
+ themeClass: import("vue").Ref<string> | undefined;
721
+ onRender: (() => void) | undefined;
716
722
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
717
723
  embedded: BooleanConstructor;
718
724
  position: {
@@ -39,7 +39,7 @@ function createLayoutComponent(isContent) {
39
39
  setup(props) {
40
40
  const scrollableElRef = (0, vue_1.ref)(null);
41
41
  const scrollbarInstRef = (0, vue_1.ref)(null);
42
- const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
42
+ const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
43
43
  const themeRef = (0, _mixins_1.useTheme)('Layout', '-layout', layout_cssr_1.default, styles_1.layoutLight, props, mergedClsPrefixRef);
44
44
  function scrollTo(options, y) {
45
45
  if (props.nativeScrollbar) {
@@ -70,21 +70,28 @@ function createLayoutComponent(isContent) {
70
70
  const exposedMethods = {
71
71
  scrollTo
72
72
  };
73
+ const cssVarsRef = (0, vue_1.computed)(() => {
74
+ const { common: { cubicBezierEaseInOut }, self } = themeRef.value;
75
+ return {
76
+ '--n-bezier': cubicBezierEaseInOut,
77
+ '--n-color': props.embedded ? self.colorEmbedded : self.color,
78
+ '--n-text-color': self.textColor
79
+ };
80
+ });
81
+ const themeClassHandle = inlineThemeDisabled
82
+ ? (0, _mixins_1.useThemeClass)('layout', undefined, cssVarsRef, props)
83
+ : undefined;
73
84
  return Object.assign({ mergedClsPrefix: mergedClsPrefixRef, scrollableElRef,
74
85
  scrollbarInstRef,
75
- hasSiderStyle, mergedTheme: themeRef, cssVars: (0, vue_1.computed)(() => {
76
- const { common: { cubicBezierEaseInOut }, self } = themeRef.value;
77
- return {
78
- '--n-bezier': cubicBezierEaseInOut,
79
- '--n-color': props.embedded ? self.colorEmbedded : self.color,
80
- '--n-text-color': self.textColor
81
- };
82
- }) }, exposedMethods);
86
+ hasSiderStyle, mergedTheme: themeRef, cssVars: inlineThemeDisabled ? undefined : cssVarsRef, themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass, onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender }, exposedMethods);
83
87
  },
84
88
  render() {
89
+ var _a;
85
90
  const { mergedClsPrefix, hasSider } = this;
91
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
86
92
  const hasSiderStyle = hasSider ? this.hasSiderStyle : undefined;
87
93
  const layoutClass = [
94
+ this.themeClass,
88
95
  isContent && `${mergedClsPrefix}-layout-content`,
89
96
  `${mergedClsPrefix}-layout`,
90
97
  `${mergedClsPrefix}-layout--${this.position}-positioned`
@@ -119,6 +119,7 @@ declare const _default: import("vue").DefineComponent<{
119
119
  containerScrollTop: number;
120
120
  syncUnifiedContainer: () => void;
121
121
  scrollTo: import("../../_internal/scrollbar/src/ScrollBar").ScrollTo;
122
+ scrollBy: import("../../_internal/scrollbar/src/ScrollBar").ScrollBy;
122
123
  sync: () => void;
123
124
  handleMouseEnterWrapper: () => void;
124
125
  handleMouseLeaveWrapper: () => void;
@@ -271,7 +272,9 @@ declare const _default: import("vue").DefineComponent<{
271
272
  '--n-bezier': string;
272
273
  '--n-color': string;
273
274
  '--n-text-color': string;
274
- }>;
275
+ }> | undefined;
276
+ themeClass: import("vue").Ref<string> | undefined;
277
+ onRender: (() => void) | undefined;
275
278
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
276
279
  embedded: BooleanConstructor;
277
280
  position: {
@@ -197,7 +197,9 @@ declare const _default: import("vue").DefineComponent<{
197
197
  }>>>;
198
198
  }, {
199
199
  mergedClsPrefix: import("vue").ComputedRef<string>;
200
- cssVars: import("vue").ComputedRef<any>;
200
+ cssVars: import("vue").ComputedRef<any> | undefined;
201
+ themeClass: import("vue").Ref<string> | undefined;
202
+ onRender: (() => void) | undefined;
201
203
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
202
204
  inverted: BooleanConstructor;
203
205
  position: {