naive-ui 2.28.3 → 2.29.0

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 (451) hide show
  1. package/es/_internal/clear/src/Clear.js +6 -3
  2. package/es/_internal/clear/src/styles/index.cssr.js +5 -2
  3. package/es/_internal/loading/src/styles/index.cssr.js +1 -1
  4. package/es/_internal/menu-mask/src/styles/index.cssr.js +1 -1
  5. package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -1
  6. package/es/_internal/select-menu/src/SelectMenu.d.ts +2 -0
  7. package/es/_internal/select-menu/src/styles/index.cssr.js +1 -1
  8. package/es/_internal/selection/src/Selection.d.ts +5 -3
  9. package/es/_internal/selection/src/styles/index.cssr.js +2 -0
  10. package/es/_internal/slot-machine/src/styles/index.cssr.js +2 -2
  11. package/es/_internal/suffix/src/Suffix.js +1 -1
  12. package/es/_mixins/use-style.js +11 -7
  13. package/es/_mixins/use-theme.js +9 -7
  14. package/es/_styles/common/_common.d.ts +2 -0
  15. package/es/_styles/common/_common.js +2 -0
  16. package/es/_styles/common/light.d.ts +2 -0
  17. package/es/_styles/transitions/fade-down.cssr.d.ts +1 -1
  18. package/es/_styles/transitions/fade-down.cssr.js +1 -1
  19. package/es/_styles/transitions/fade-in-height-expand.cssr.d.ts +1 -1
  20. package/es/_styles/transitions/fade-in-height-expand.cssr.js +1 -1
  21. package/es/_styles/transitions/fade-in-scale-up.cssr.d.ts +1 -1
  22. package/es/_styles/transitions/fade-in-scale-up.cssr.js +1 -1
  23. package/es/_styles/transitions/fade-in-width-expand.cssr.d.ts +1 -1
  24. package/es/_styles/transitions/fade-in-width-expand.cssr.js +1 -1
  25. package/es/_styles/transitions/fade-in.cssr.d.ts +1 -1
  26. package/es/_styles/transitions/fade-in.cssr.js +1 -1
  27. package/es/_styles/transitions/fade-up-width-expand.cssr.d.ts +1 -1
  28. package/es/_styles/transitions/fade-up-width-expand.cssr.js +1 -1
  29. package/es/_styles/transitions/icon-switch.cssr.d.ts +1 -1
  30. package/es/_styles/transitions/icon-switch.cssr.js +1 -1
  31. package/es/_styles/transitions/slide-in-from-bottom.d.ts +1 -1
  32. package/es/_styles/transitions/slide-in-from-bottom.js +1 -1
  33. package/es/_styles/transitions/slide-in-from-left.d.ts +1 -1
  34. package/es/_styles/transitions/slide-in-from-left.js +1 -1
  35. package/es/_styles/transitions/slide-in-from-right.d.ts +1 -1
  36. package/es/_styles/transitions/slide-in-from-right.js +1 -1
  37. package/es/_styles/transitions/slide-in-from-top.d.ts +1 -1
  38. package/es/_styles/transitions/slide-in-from-top.js +1 -1
  39. package/es/_utils/naive/prop.d.ts +10 -1
  40. package/es/_utils/naive/prop.js +3 -0
  41. package/es/alert/src/Alert.d.ts +2 -0
  42. package/es/alert/src/styles/index.cssr.js +2 -2
  43. package/es/auto-complete/src/AutoComplete.d.ts +2 -0
  44. package/es/auto-complete/src/styles/index.cssr.js +1 -1
  45. package/es/avatar-group/src/AvatarGroup.d.ts +2 -0
  46. package/es/back-top/src/styles/index.cssr.js +1 -1
  47. package/es/badge/src/styles/index.cssr.js +1 -1
  48. package/es/button/src/styles/index.cssr.js +2 -2
  49. package/es/calendar/src/Calendar.d.ts +2 -0
  50. package/es/calendar/src/Calendar.js +3 -3
  51. package/es/card/src/Card.d.ts +2 -0
  52. package/es/cascader/src/Cascader.d.ts +2 -0
  53. package/es/cascader/src/CascaderMenu.d.ts +2 -0
  54. package/es/cascader/src/CascaderOption.d.ts +2 -0
  55. package/es/cascader/src/CascaderSelectMenu.d.ts +2 -0
  56. package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
  57. package/es/cascader/src/styles/index.cssr.js +1 -1
  58. package/es/checkbox/src/Checkbox.d.ts +2 -0
  59. package/es/checkbox/src/styles/index.cssr.js +1 -1
  60. package/es/collapse/src/Collapse.d.ts +2 -0
  61. package/es/collapse/src/styles/index.cssr.js +1 -1
  62. package/es/collapse-transition/src/styles/index.cssr.js +1 -1
  63. package/es/color-picker/src/ColorInputUnit.d.ts +2 -0
  64. package/es/color-picker/src/ColorPicker.d.ts +3 -0
  65. package/es/color-picker/src/ColorPicker.js +7 -1
  66. package/es/color-picker/src/interface.d.ts +2 -0
  67. package/es/color-picker/src/styles/index.cssr.js +1 -1
  68. package/es/config-provider/src/ConfigProvider.d.ts +4 -0
  69. package/es/config-provider/src/ConfigProvider.js +4 -1
  70. package/es/config-provider/src/internal-interface.d.ts +1 -0
  71. package/es/data-table/src/DataTable.d.ts +422 -140
  72. package/es/data-table/src/HeaderButton/FilterButton.d.ts +44 -14
  73. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +44 -14
  74. package/es/data-table/src/TableParts/Body.d.ts +44 -14
  75. package/es/data-table/src/TableParts/Cell.d.ts +88 -28
  76. package/es/data-table/src/TableParts/Header.d.ts +44 -14
  77. package/es/data-table/src/styles/index.cssr.js +2 -2
  78. package/es/data-table/styles/light.d.ts +42 -14
  79. package/es/date-picker/src/DatePicker.d.ts +2 -0
  80. package/es/date-picker/src/DatePicker.js +20 -7
  81. package/es/date-picker/src/panel/date.d.ts +2 -0
  82. package/es/date-picker/src/panel/daterange.d.ts +2 -0
  83. package/es/date-picker/src/panel/datetime.d.ts +2 -0
  84. package/es/date-picker/src/panel/datetimerange.d.ts +2 -0
  85. package/es/date-picker/src/panel/month.d.ts +2 -0
  86. package/es/date-picker/src/panel/monthrange.d.ts +2 -0
  87. package/es/date-picker/src/panel/panelHeader.d.ts +4 -0
  88. package/es/date-picker/src/panel/use-calendar.d.ts +2 -0
  89. package/es/date-picker/src/panel/use-calendar.js +1 -1
  90. package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -0
  91. package/es/date-picker/src/panel/use-dual-calendar.js +1 -1
  92. package/es/date-picker/src/panel/use-panel-common.d.ts +2 -0
  93. package/es/date-picker/src/styles/index.cssr.js +6 -1
  94. package/es/date-picker/src/utils.d.ts +2 -2
  95. package/es/date-picker/src/utils.js +1 -1
  96. package/es/date-picker/src/validation-utils.js +1 -1
  97. package/es/dialog/src/Dialog.d.ts +2 -0
  98. package/es/dialog/src/DialogProvider.d.ts +4 -0
  99. package/es/drawer/src/Drawer.d.ts +2 -0
  100. package/es/drawer/src/DrawerBodyWrapper.d.ts +2 -0
  101. package/es/drawer/src/DrawerContent.d.ts +2 -0
  102. package/es/drawer/src/styles/index.cssr.js +5 -5
  103. package/es/dropdown/src/Dropdown.d.ts +2 -0
  104. package/es/dropdown/src/styles/index.cssr.js +1 -1
  105. package/es/dynamic-input/src/DynamicInput.d.ts +2 -0
  106. package/es/dynamic-input/src/InputPreset.d.ts +2 -0
  107. package/es/dynamic-input/src/PairPreset.d.ts +2 -0
  108. package/es/dynamic-tags/src/DynamicTags.d.ts +45 -13
  109. package/es/dynamic-tags/src/DynamicTags.js +4 -1
  110. package/es/dynamic-tags/styles/light.d.ts +3 -0
  111. package/es/ellipsis/src/Ellipsis.d.ts +2 -0
  112. package/es/form/src/styles/form-item.cssr.js +1 -1
  113. package/es/global-style/src/GlobalStyle.js +3 -1
  114. package/es/image/src/styles/index.cssr.js +3 -3
  115. package/es/input/src/Input.d.ts +2 -0
  116. package/es/input/src/Input.js +18 -11
  117. package/es/input/src/styles/input.cssr.js +1 -5
  118. package/es/input-number/src/InputNumber.d.ts +2 -0
  119. package/es/layout/src/Layout.d.ts +4 -0
  120. package/es/layout/src/LayoutContent.d.ts +2 -0
  121. package/es/layout/src/LayoutSider.d.ts +2 -0
  122. package/es/loading-bar/src/styles/index.cssr.js +1 -1
  123. package/es/locales/common/nlNL.d.ts +3 -0
  124. package/es/locales/common/nlNL.js +111 -0
  125. package/es/locales/date/deDE.js +1 -1
  126. package/es/locales/date/enGB.js +1 -1
  127. package/es/locales/date/enUS.d.ts +2 -2
  128. package/es/locales/date/enUS.js +1 -1
  129. package/es/locales/date/eo.js +1 -1
  130. package/es/locales/date/esAR.js +1 -1
  131. package/es/locales/date/frFR.js +1 -1
  132. package/es/locales/date/idID.js +1 -1
  133. package/es/locales/date/itIT.js +1 -1
  134. package/es/locales/date/jaJP.js +1 -1
  135. package/es/locales/date/koKR.js +1 -1
  136. package/es/locales/date/nbNO.js +1 -1
  137. package/es/locales/date/nlNL.d.ts +3 -0
  138. package/es/locales/date/nlNL.js +6 -0
  139. package/es/locales/date/plPL.js +1 -1
  140. package/es/locales/date/ptBR.js +1 -1
  141. package/es/locales/date/ruRU.js +1 -1
  142. package/es/locales/date/skSK.js +1 -1
  143. package/es/locales/date/thTH.js +1 -1
  144. package/es/locales/date/ukUA.js +1 -1
  145. package/es/locales/date/zhCN.js +1 -1
  146. package/es/locales/date/zhTW.js +1 -1
  147. package/es/locales/index.d.ts +2 -0
  148. package/es/locales/index.js +2 -0
  149. package/es/log/src/Log.d.ts +2 -0
  150. package/es/log/src/styles/index.cssr.js +1 -1
  151. package/es/mention/src/Mention.d.ts +2 -0
  152. package/es/mention/src/styles/index.cssr.js +2 -2
  153. package/es/menu/src/Menu.d.ts +2 -0
  154. package/es/menu/src/MenuOption.d.ts +2 -0
  155. package/es/menu/src/MenuOptionContent.js +1 -1
  156. package/es/menu/src/Submenu.d.ts +2 -0
  157. package/es/menu/src/styles/index.cssr.js +2 -2
  158. package/es/message/src/styles/index.cssr.js +3 -3
  159. package/es/modal/src/BodyWrapper.d.ts +2 -0
  160. package/es/modal/src/styles/index.cssr.js +2 -2
  161. package/es/notification/index.d.ts +2 -1
  162. package/es/notification/src/Notification.js +18 -17
  163. package/es/notification/src/NotificationContainer.d.ts +7 -2
  164. package/es/notification/src/NotificationContainer.js +17 -5
  165. package/es/notification/src/NotificationEnvironment.d.ts +3 -2
  166. package/es/notification/src/NotificationEnvironment.js +9 -1
  167. package/es/notification/src/NotificationProvider.d.ts +3 -3
  168. package/es/notification/src/NotificationProvider.js +5 -2
  169. package/es/notification/src/styles/index.cssr.js +41 -11
  170. package/es/pagination/src/Pagination.d.ts +446 -151
  171. package/es/pagination/src/Pagination.js +22 -13
  172. package/es/pagination/src/interface.d.ts +1 -0
  173. package/es/pagination/src/styles/index.cssr.js +38 -39
  174. package/es/pagination/styles/_common.d.ts +33 -13
  175. package/es/pagination/styles/_common.js +33 -13
  176. package/es/pagination/styles/light.d.ts +84 -28
  177. package/es/pagination/styles/light.js +6 -2
  178. package/es/popconfirm/src/Popconfirm.d.ts +2 -0
  179. package/es/popover/src/PopoverBody.js +6 -6
  180. package/es/popover/src/styles/index.cssr.js +22 -21
  181. package/es/popselect/src/Popselect.d.ts +35 -12
  182. package/es/popselect/src/Popselect.js +1 -0
  183. package/es/popselect/src/PopselectPanel.d.ts +10 -1
  184. package/es/popselect/src/PopselectPanel.js +21 -4
  185. package/es/popselect/src/interface.d.ts +3 -1
  186. package/es/popselect/src/styles/index.cssr.d.ts +2 -0
  187. package/es/popselect/src/styles/index.cssr.js +5 -0
  188. package/es/popselect/styles/light.d.ts +7 -1
  189. package/es/popselect/styles/light.js +8 -1
  190. package/es/select/src/Select.d.ts +3 -1
  191. package/es/select/src/Select.js +1 -1
  192. package/es/select/src/interface.d.ts +1 -1
  193. package/es/select/src/styles/index.cssr.js +1 -1
  194. package/es/slider/src/styles/index.cssr.js +1 -1
  195. package/es/spin/src/styles/index.cssr.js +1 -1
  196. package/es/steps/src/styles/index.cssr.js +1 -1
  197. package/es/switch/src/styles/index.cssr.js +1 -1
  198. package/es/tabs/src/styles/index.cssr.js +5 -4
  199. package/es/tag/src/Tag.d.ts +31 -4
  200. package/es/tag/src/common-props.d.ts +1 -1
  201. package/es/tag/styles/_common.d.ts +1 -0
  202. package/es/tag/styles/_common.js +1 -0
  203. package/es/tag/styles/dark.js +3 -3
  204. package/es/tag/styles/light.d.ts +3 -0
  205. package/es/tag/styles/light.js +3 -3
  206. package/es/theme-editor/src/ThemeEditor.d.ts +2 -0
  207. package/es/theme-editor/src/ThemeEditor.js +113 -125
  208. package/es/time/src/Time.js +2 -2
  209. package/es/time-picker/src/Panel.d.ts +2 -0
  210. package/es/time-picker/src/TimePicker.d.ts +2 -0
  211. package/es/time-picker/src/TimePicker.js +7 -2
  212. package/es/time-picker/src/styles/index.cssr.js +1 -1
  213. package/es/time-picker/src/utils.js +1 -1
  214. package/es/tooltip/src/Tooltip.d.ts +2 -0
  215. package/es/transfer/src/Transfer.d.ts +2 -0
  216. package/es/transfer/src/TransferFilter.d.ts +2 -0
  217. package/es/transfer/src/TransferFilter.js +1 -1
  218. package/es/transfer/src/TransferList.d.ts +2 -0
  219. package/es/transfer/src/TransferListItem.d.ts +2 -0
  220. package/es/transfer/src/styles/index.cssr.js +1 -2
  221. package/es/tree/src/Tree.d.ts +2 -0
  222. package/es/tree/src/TreeNodeCheckbox.d.ts +2 -0
  223. package/es/tree/src/styles/index.cssr.js +2 -2
  224. package/es/tree-select/src/TreeSelect.d.ts +3 -1
  225. package/es/tree-select/src/TreeSelect.js +1 -1
  226. package/es/tree-select/src/styles/index.cssr.js +1 -1
  227. package/es/upload/src/Upload.d.ts +2 -0
  228. package/es/upload/src/Upload.js +16 -3
  229. package/es/upload/src/UploadFile.d.ts +2 -0
  230. package/es/upload/src/UploadProgress.d.ts +2 -0
  231. package/es/upload/src/interface.d.ts +2 -0
  232. package/es/upload/src/styles/index.cssr.js +4 -4
  233. package/es/upload/src/utils.d.ts +6 -0
  234. package/es/upload/src/utils.js +38 -1
  235. package/es/version.d.ts +1 -1
  236. package/es/version.js +1 -1
  237. package/lib/_internal/clear/src/Clear.js +6 -3
  238. package/lib/_internal/clear/src/styles/index.cssr.js +5 -8
  239. package/lib/_internal/loading/src/styles/index.cssr.js +3 -9
  240. package/lib/_internal/menu-mask/src/styles/index.cssr.js +2 -8
  241. package/lib/_internal/scrollbar/src/styles/index.cssr.js +2 -8
  242. package/lib/_internal/select-menu/src/SelectMenu.d.ts +2 -0
  243. package/lib/_internal/select-menu/src/styles/index.cssr.js +2 -8
  244. package/lib/_internal/selection/src/Selection.d.ts +5 -3
  245. package/lib/_internal/selection/src/styles/index.cssr.js +2 -0
  246. package/lib/_internal/slot-machine/src/styles/index.cssr.js +4 -10
  247. package/lib/_internal/suffix/src/Suffix.js +1 -1
  248. package/lib/_mixins/use-style.js +10 -6
  249. package/lib/_mixins/use-theme.js +9 -7
  250. package/lib/_styles/common/_common.d.ts +2 -0
  251. package/lib/_styles/common/_common.js +2 -0
  252. package/lib/_styles/common/light.d.ts +2 -0
  253. package/lib/_styles/transitions/fade-down.cssr.d.ts +1 -1
  254. package/lib/_styles/transitions/fade-down.cssr.js +3 -2
  255. package/lib/_styles/transitions/fade-in-height-expand.cssr.d.ts +1 -1
  256. package/lib/_styles/transitions/fade-in-height-expand.cssr.js +3 -2
  257. package/lib/_styles/transitions/fade-in-scale-up.cssr.d.ts +1 -1
  258. package/lib/_styles/transitions/fade-in-scale-up.cssr.js +3 -2
  259. package/lib/_styles/transitions/fade-in-width-expand.cssr.d.ts +1 -1
  260. package/lib/_styles/transitions/fade-in-width-expand.cssr.js +3 -2
  261. package/lib/_styles/transitions/fade-in.cssr.d.ts +1 -1
  262. package/lib/_styles/transitions/fade-in.cssr.js +3 -2
  263. package/lib/_styles/transitions/fade-up-width-expand.cssr.d.ts +1 -1
  264. package/lib/_styles/transitions/fade-up-width-expand.cssr.js +2 -1
  265. package/lib/_styles/transitions/icon-switch.cssr.d.ts +1 -1
  266. package/lib/_styles/transitions/icon-switch.cssr.js +3 -2
  267. package/lib/_styles/transitions/slide-in-from-bottom.d.ts +1 -1
  268. package/lib/_styles/transitions/slide-in-from-bottom.js +3 -2
  269. package/lib/_styles/transitions/slide-in-from-left.d.ts +1 -1
  270. package/lib/_styles/transitions/slide-in-from-left.js +3 -2
  271. package/lib/_styles/transitions/slide-in-from-right.d.ts +1 -1
  272. package/lib/_styles/transitions/slide-in-from-right.js +3 -2
  273. package/lib/_styles/transitions/slide-in-from-top.d.ts +1 -1
  274. package/lib/_styles/transitions/slide-in-from-top.js +3 -2
  275. package/lib/_utils/naive/prop.d.ts +10 -1
  276. package/lib/_utils/naive/prop.js +3 -0
  277. package/lib/alert/src/Alert.d.ts +2 -0
  278. package/lib/alert/src/styles/index.cssr.js +2 -8
  279. package/lib/auto-complete/src/AutoComplete.d.ts +2 -0
  280. package/lib/auto-complete/src/styles/index.cssr.js +2 -8
  281. package/lib/avatar-group/src/AvatarGroup.d.ts +2 -0
  282. package/lib/back-top/src/styles/index.cssr.js +2 -8
  283. package/lib/badge/src/styles/index.cssr.js +3 -9
  284. package/lib/button/src/styles/index.cssr.js +4 -10
  285. package/lib/calendar/src/Calendar.d.ts +2 -0
  286. package/lib/calendar/src/Calendar.js +2 -2
  287. package/lib/card/src/Card.d.ts +2 -0
  288. package/lib/cascader/src/Cascader.d.ts +2 -0
  289. package/lib/cascader/src/CascaderMenu.d.ts +2 -0
  290. package/lib/cascader/src/CascaderOption.d.ts +2 -0
  291. package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -0
  292. package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
  293. package/lib/cascader/src/styles/index.cssr.js +3 -9
  294. package/lib/checkbox/src/Checkbox.d.ts +2 -0
  295. package/lib/checkbox/src/styles/index.cssr.js +2 -8
  296. package/lib/collapse/src/Collapse.d.ts +2 -0
  297. package/lib/collapse/src/styles/index.cssr.js +2 -8
  298. package/lib/collapse-transition/src/styles/index.cssr.js +2 -8
  299. package/lib/color-picker/src/ColorInputUnit.d.ts +2 -0
  300. package/lib/color-picker/src/ColorPicker.d.ts +3 -0
  301. package/lib/color-picker/src/ColorPicker.js +7 -1
  302. package/lib/color-picker/src/interface.d.ts +2 -0
  303. package/lib/color-picker/src/styles/index.cssr.js +2 -8
  304. package/lib/config-provider/src/ConfigProvider.d.ts +4 -0
  305. package/lib/config-provider/src/ConfigProvider.js +4 -1
  306. package/lib/config-provider/src/internal-interface.d.ts +1 -0
  307. package/lib/data-table/src/DataTable.d.ts +422 -140
  308. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +44 -14
  309. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +44 -14
  310. package/lib/data-table/src/TableParts/Body.d.ts +44 -14
  311. package/lib/data-table/src/TableParts/Cell.d.ts +88 -28
  312. package/lib/data-table/src/TableParts/Header.d.ts +44 -14
  313. package/lib/data-table/src/styles/index.cssr.js +5 -11
  314. package/lib/data-table/styles/light.d.ts +42 -14
  315. package/lib/date-picker/src/DatePicker.d.ts +2 -0
  316. package/lib/date-picker/src/DatePicker.js +18 -5
  317. package/lib/date-picker/src/panel/date.d.ts +2 -0
  318. package/lib/date-picker/src/panel/daterange.d.ts +2 -0
  319. package/lib/date-picker/src/panel/datetime.d.ts +2 -0
  320. package/lib/date-picker/src/panel/datetimerange.d.ts +2 -0
  321. package/lib/date-picker/src/panel/month.d.ts +2 -0
  322. package/lib/date-picker/src/panel/monthrange.d.ts +2 -0
  323. package/lib/date-picker/src/panel/panelHeader.d.ts +4 -0
  324. package/lib/date-picker/src/panel/use-calendar.d.ts +2 -0
  325. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -0
  326. package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -0
  327. package/lib/date-picker/src/styles/index.cssr.js +7 -8
  328. package/lib/date-picker/src/utils.d.ts +2 -2
  329. package/lib/dialog/src/Dialog.d.ts +2 -0
  330. package/lib/dialog/src/DialogProvider.d.ts +4 -0
  331. package/lib/drawer/src/Drawer.d.ts +2 -0
  332. package/lib/drawer/src/DrawerBodyWrapper.d.ts +2 -0
  333. package/lib/drawer/src/DrawerContent.d.ts +2 -0
  334. package/lib/drawer/src/styles/index.cssr.js +7 -13
  335. package/lib/dropdown/src/Dropdown.d.ts +2 -0
  336. package/lib/dropdown/src/styles/index.cssr.js +2 -8
  337. package/lib/dynamic-input/src/DynamicInput.d.ts +2 -0
  338. package/lib/dynamic-input/src/InputPreset.d.ts +2 -0
  339. package/lib/dynamic-input/src/PairPreset.d.ts +2 -0
  340. package/lib/dynamic-tags/src/DynamicTags.d.ts +45 -13
  341. package/lib/dynamic-tags/src/DynamicTags.js +4 -1
  342. package/lib/dynamic-tags/styles/light.d.ts +3 -0
  343. package/lib/ellipsis/src/Ellipsis.d.ts +2 -0
  344. package/lib/form/src/styles/form-item.cssr.js +2 -8
  345. package/lib/global-style/src/GlobalStyle.js +3 -1
  346. package/lib/image/src/styles/index.cssr.js +5 -11
  347. package/lib/input/src/Input.d.ts +2 -0
  348. package/lib/input/src/Input.js +18 -11
  349. package/lib/input/src/styles/input.cssr.js +1 -5
  350. package/lib/input-number/src/InputNumber.d.ts +2 -0
  351. package/lib/layout/src/Layout.d.ts +4 -0
  352. package/lib/layout/src/LayoutContent.d.ts +2 -0
  353. package/lib/layout/src/LayoutSider.d.ts +2 -0
  354. package/lib/loading-bar/src/styles/index.cssr.js +2 -8
  355. package/lib/locales/common/nlNL.d.ts +3 -0
  356. package/lib/locales/common/nlNL.js +113 -0
  357. package/lib/locales/date/enUS.d.ts +2 -2
  358. package/lib/locales/date/nlNL.d.ts +3 -0
  359. package/lib/locales/date/nlNL.js +11 -0
  360. package/lib/locales/index.d.ts +2 -0
  361. package/lib/locales/index.js +5 -1
  362. package/lib/log/src/Log.d.ts +2 -0
  363. package/lib/log/src/styles/index.cssr.js +2 -8
  364. package/lib/mention/src/Mention.d.ts +2 -0
  365. package/lib/mention/src/styles/index.cssr.js +2 -8
  366. package/lib/menu/src/Menu.d.ts +2 -0
  367. package/lib/menu/src/MenuOption.d.ts +2 -0
  368. package/lib/menu/src/MenuOptionContent.js +1 -1
  369. package/lib/menu/src/Submenu.d.ts +2 -0
  370. package/lib/menu/src/styles/index.cssr.js +3 -9
  371. package/lib/message/src/styles/index.cssr.js +4 -10
  372. package/lib/modal/src/BodyWrapper.d.ts +2 -0
  373. package/lib/modal/src/styles/index.cssr.js +4 -10
  374. package/lib/notification/index.d.ts +2 -1
  375. package/lib/notification/src/Notification.js +18 -17
  376. package/lib/notification/src/NotificationContainer.d.ts +7 -2
  377. package/lib/notification/src/NotificationContainer.js +16 -4
  378. package/lib/notification/src/NotificationEnvironment.d.ts +3 -2
  379. package/lib/notification/src/NotificationEnvironment.js +8 -0
  380. package/lib/notification/src/NotificationProvider.d.ts +3 -3
  381. package/lib/notification/src/NotificationProvider.js +5 -2
  382. package/lib/notification/src/styles/index.cssr.js +41 -11
  383. package/lib/pagination/src/Pagination.d.ts +446 -151
  384. package/lib/pagination/src/Pagination.js +19 -10
  385. package/lib/pagination/src/interface.d.ts +1 -0
  386. package/lib/pagination/src/styles/index.cssr.js +38 -39
  387. package/lib/pagination/styles/_common.d.ts +33 -13
  388. package/lib/pagination/styles/_common.js +33 -13
  389. package/lib/pagination/styles/light.d.ts +84 -28
  390. package/lib/pagination/styles/light.js +6 -2
  391. package/lib/popconfirm/src/Popconfirm.d.ts +2 -0
  392. package/lib/popover/src/PopoverBody.js +6 -6
  393. package/lib/popover/src/styles/index.cssr.js +22 -21
  394. package/lib/popselect/src/Popselect.d.ts +35 -12
  395. package/lib/popselect/src/Popselect.js +1 -0
  396. package/lib/popselect/src/PopselectPanel.d.ts +10 -1
  397. package/lib/popselect/src/PopselectPanel.js +23 -3
  398. package/lib/popselect/src/interface.d.ts +3 -1
  399. package/lib/popselect/src/styles/index.cssr.d.ts +2 -0
  400. package/lib/popselect/src/styles/index.cssr.js +12 -0
  401. package/lib/popselect/styles/light.d.ts +7 -1
  402. package/lib/popselect/styles/light.js +10 -1
  403. package/lib/select/src/Select.d.ts +3 -1
  404. package/lib/select/src/Select.js +1 -1
  405. package/lib/select/src/interface.d.ts +1 -1
  406. package/lib/select/src/styles/index.cssr.js +2 -8
  407. package/lib/slider/src/styles/index.cssr.js +3 -9
  408. package/lib/spin/src/styles/index.cssr.js +2 -8
  409. package/lib/steps/src/styles/index.cssr.js +4 -10
  410. package/lib/switch/src/styles/index.cssr.js +3 -9
  411. package/lib/tabs/src/styles/index.cssr.js +5 -4
  412. package/lib/tag/src/Tag.d.ts +31 -4
  413. package/lib/tag/src/common-props.d.ts +1 -1
  414. package/lib/tag/styles/_common.d.ts +1 -0
  415. package/lib/tag/styles/_common.js +1 -0
  416. package/lib/tag/styles/dark.js +3 -3
  417. package/lib/tag/styles/light.d.ts +3 -0
  418. package/lib/tag/styles/light.js +3 -3
  419. package/lib/theme-editor/src/ThemeEditor.d.ts +2 -0
  420. package/lib/theme-editor/src/ThemeEditor.js +113 -125
  421. package/lib/time/src/Time.js +6 -3
  422. package/lib/time-picker/src/Panel.d.ts +2 -0
  423. package/lib/time-picker/src/TimePicker.d.ts +2 -0
  424. package/lib/time-picker/src/TimePicker.js +6 -1
  425. package/lib/time-picker/src/styles/index.cssr.js +2 -8
  426. package/lib/tooltip/src/Tooltip.d.ts +2 -0
  427. package/lib/transfer/src/Transfer.d.ts +2 -0
  428. package/lib/transfer/src/TransferFilter.d.ts +2 -0
  429. package/lib/transfer/src/TransferFilter.js +1 -1
  430. package/lib/transfer/src/TransferList.d.ts +2 -0
  431. package/lib/transfer/src/TransferListItem.d.ts +2 -0
  432. package/lib/transfer/src/styles/index.cssr.js +2 -9
  433. package/lib/tree/src/Tree.d.ts +2 -0
  434. package/lib/tree/src/TreeNodeCheckbox.d.ts +2 -0
  435. package/lib/tree/src/styles/index.cssr.js +6 -12
  436. package/lib/tree-select/src/TreeSelect.d.ts +3 -1
  437. package/lib/tree-select/src/TreeSelect.js +1 -1
  438. package/lib/tree-select/src/styles/index.cssr.js +2 -8
  439. package/lib/upload/src/Upload.d.ts +2 -0
  440. package/lib/upload/src/Upload.js +15 -2
  441. package/lib/upload/src/UploadFile.d.ts +2 -0
  442. package/lib/upload/src/UploadProgress.d.ts +2 -0
  443. package/lib/upload/src/interface.d.ts +2 -0
  444. package/lib/upload/src/styles/index.cssr.js +4 -10
  445. package/lib/upload/src/utils.d.ts +6 -0
  446. package/lib/upload/src/utils.js +40 -2
  447. package/lib/version.d.ts +1 -1
  448. package/lib/version.js +1 -1
  449. package/package.json +13 -13
  450. package/volar.d.ts +24 -24
  451. package/web-types.json +23 -1
@@ -0,0 +1,111 @@
1
+ const nlNL = {
2
+ name: 'nl-NL',
3
+ global: {
4
+ undo: 'Ongedaan Maken',
5
+ redo: 'Opnieuw Doen',
6
+ confirm: 'Bevestig'
7
+ },
8
+ Popconfirm: {
9
+ positiveText: 'Bevestig',
10
+ negativeText: 'Annuleer'
11
+ },
12
+ Cascader: {
13
+ placeholder: 'Selecteer a.u.b.',
14
+ loading: 'Laden',
15
+ loadingRequiredMessage: (label) => `Laad alle afstammelingen van ${label} alvorens het te selecteren.`
16
+ },
17
+ Time: {
18
+ dateFormat: 'dd/MM/yyyy',
19
+ dateTimeFormat: 'dd/MM/yyyy HH:mm:ss'
20
+ },
21
+ DatePicker: {
22
+ yearFormat: 'yyyy',
23
+ monthFormat: 'MMM',
24
+ dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'MM/yyyy',
27
+ dateFormat: 'dd/MM/yyyy',
28
+ dateTimeFormat: 'dd/MM/yyyy HH:mm:ss',
29
+ quarterFormat: 'qqq yyyy',
30
+ clear: 'Wis',
31
+ now: 'Nu',
32
+ confirm: 'Bevestig',
33
+ selectTime: 'Selecteer Uur',
34
+ selectDate: 'Selecteer Datum',
35
+ datePlaceholder: 'Selecteer Datum',
36
+ datetimePlaceholder: 'Selecteer Dag en Uur',
37
+ monthPlaceholder: 'Selecteer Maand',
38
+ yearPlaceholder: 'Selecteer Jaar',
39
+ quarterPlaceholder: 'Selecteer Kwartaal',
40
+ startDatePlaceholder: 'Begindatum',
41
+ endDatePlaceholder: 'Einddatum',
42
+ startDatetimePlaceholder: 'Begindatum en Uur',
43
+ endDatetimePlaceholder: 'Einddatum en Uur',
44
+ startMonthPlaceholder: 'Begin Maand',
45
+ endMonthPlaceholder: 'Eind Maand',
46
+ monthBeforeYear: true,
47
+ firstDayOfWeek: 0,
48
+ today: 'Vandaag'
49
+ },
50
+ DataTable: {
51
+ checkTableAll: 'Selecteer alles in de tabel',
52
+ uncheckTableAll: 'Alles in de tabel deselecteren',
53
+ confirm: 'Bevestig',
54
+ clear: 'Wis'
55
+ },
56
+ Transfer: {
57
+ sourceTitle: 'Bron',
58
+ targetTitle: 'Doel'
59
+ },
60
+ Empty: {
61
+ description: 'Geen Data'
62
+ },
63
+ Select: {
64
+ placeholder: 'Selecteer a.u.b.'
65
+ },
66
+ TimePicker: {
67
+ placeholder: 'Selecteer Uur',
68
+ positiveText: 'OK',
69
+ negativeText: 'Annuleer',
70
+ now: 'Nu'
71
+ },
72
+ Pagination: {
73
+ goto: 'Ga naar',
74
+ selectionSuffix: 'pagina'
75
+ },
76
+ DynamicTags: {
77
+ add: 'Toevoegen'
78
+ },
79
+ Log: {
80
+ loading: 'Laden'
81
+ },
82
+ Input: {
83
+ placeholder: 'Invoeren a.u.b.'
84
+ },
85
+ InputNumber: {
86
+ placeholder: 'Invoeren a.u.b.'
87
+ },
88
+ DynamicInput: {
89
+ create: 'Creëer'
90
+ },
91
+ ThemeEditor: {
92
+ title: 'Thema Bewerker',
93
+ clearAllVars: 'Wis Alle Variabelen',
94
+ clearSearch: 'Wis Zoekopdracht',
95
+ filterCompName: 'Filter Componentsnaam',
96
+ filterVarName: 'Filter Variablenaam',
97
+ import: 'Importen',
98
+ export: 'Exporteren',
99
+ restore: 'Reset naar Standaard'
100
+ },
101
+ Image: {
102
+ tipPrevious: 'Vorige afbeelding (←)',
103
+ tipNext: 'Volgende afbeelding (→)',
104
+ tipCounterclockwise: 'Tegen de klok in',
105
+ tipClockwise: 'Met de klok mee',
106
+ tipZoomOut: 'Uitzoomen',
107
+ tipZoomIn: 'Inzoomen',
108
+ tipClose: 'Sluiten (Esc)'
109
+ }
110
+ };
111
+ export default nlNL;
@@ -1,4 +1,4 @@
1
- import de from 'date-fns/locale/de';
1
+ import de from 'date-fns/esm/locale/de';
2
2
  const dateDeDE = {
3
3
  name: 'de-DE',
4
4
  locale: de
@@ -1,4 +1,4 @@
1
- import enGB from 'date-fns/locale/en-GB';
1
+ import enGB from 'date-fns/esm/locale/en-GB';
2
2
  const dateEnGB = {
3
3
  name: 'en-GB',
4
4
  locale: enGB
@@ -1,7 +1,7 @@
1
- import type { Locale } from 'date-fns';
1
+ import enUS from 'date-fns/esm/locale/en-US';
2
2
  interface NDateLocale {
3
3
  name: string;
4
- locale: Locale;
4
+ locale: typeof enUS;
5
5
  }
6
6
  declare const dateEnUs: NDateLocale;
7
7
  export { NDateLocale };
@@ -1,4 +1,4 @@
1
- import enUS from 'date-fns/locale/en-US';
1
+ import enUS from 'date-fns/esm/locale/en-US';
2
2
  const dateEnUs = {
3
3
  name: 'en-US',
4
4
  locale: enUS
@@ -1,4 +1,4 @@
1
- import eo from 'date-fns/locale/eo';
1
+ import eo from 'date-fns/esm/locale/eo';
2
2
  const dateEo = {
3
3
  name: 'eo',
4
4
  locale: eo
@@ -1,4 +1,4 @@
1
- import esAR from 'date-fns/locale/es';
1
+ import esAR from 'date-fns/esm/locale/es';
2
2
  const dateEsAR = {
3
3
  name: 'es-AR',
4
4
  locale: esAR
@@ -1,4 +1,4 @@
1
- import frFR from 'date-fns/locale/fr';
1
+ import frFR from 'date-fns/esm/locale/fr';
2
2
  const dateFrFR = {
3
3
  name: 'fr-FR',
4
4
  locale: frFR
@@ -1,4 +1,4 @@
1
- import idID from 'date-fns/locale/id';
1
+ import idID from 'date-fns/esm/locale/id';
2
2
  const dateIdID = {
3
3
  name: 'id-ID',
4
4
  locale: idID
@@ -1,4 +1,4 @@
1
- import itIT from 'date-fns/locale/it';
1
+ import itIT from 'date-fns/esm/locale/it';
2
2
  const dateItIT = {
3
3
  name: 'it-IT',
4
4
  locale: itIT
@@ -1,4 +1,4 @@
1
- import ja from 'date-fns/locale/ja';
1
+ import ja from 'date-fns/esm/locale/ja';
2
2
  const dateJaJP = {
3
3
  name: 'ja-JP',
4
4
  locale: ja
@@ -1,4 +1,4 @@
1
- import ko from 'date-fns/locale/ko';
1
+ import ko from 'date-fns/esm/locale/ko';
2
2
  const dateKoKR = {
3
3
  name: 'ko-KR',
4
4
  locale: ko
@@ -1,4 +1,4 @@
1
- import nb from 'date-fns/locale/nb';
1
+ import nb from 'date-fns/esm/locale/nb';
2
2
  const dateNbNO = {
3
3
  name: 'nb-NO',
4
4
  locale: nb
@@ -0,0 +1,3 @@
1
+ import { NDateLocale } from './enUS';
2
+ declare const dateNlNL: NDateLocale;
3
+ export default dateNlNL;
@@ -0,0 +1,6 @@
1
+ import nl from 'date-fns/esm/locale/nl';
2
+ const dateNlNL = {
3
+ name: 'nl-NL',
4
+ locale: nl
5
+ };
6
+ export default dateNlNL;
@@ -1,4 +1,4 @@
1
- import plPL from 'date-fns/locale/pl';
1
+ import plPL from 'date-fns/esm/locale/pl';
2
2
  const datePlPL = {
3
3
  name: 'pl-PL',
4
4
  locale: plPL
@@ -1,4 +1,4 @@
1
- import ptBR from 'date-fns/locale/pt-BR';
1
+ import ptBR from 'date-fns/esm/locale/pt-BR';
2
2
  const datePtBr = {
3
3
  name: 'pt-BR',
4
4
  locale: ptBR
@@ -1,4 +1,4 @@
1
- import ru from 'date-fns/locale/ru';
1
+ import ru from 'date-fns/esm/locale/ru';
2
2
  const dateRuRU = {
3
3
  name: 'ru-RU',
4
4
  locale: ru
@@ -1,4 +1,4 @@
1
- import sk from 'date-fns/locale/sk';
1
+ import sk from 'date-fns/esm/locale/sk';
2
2
  const dateSkSK = {
3
3
  name: 'sk-SK',
4
4
  locale: sk
@@ -1,4 +1,4 @@
1
- import thTH from 'date-fns/locale/th';
1
+ import thTH from 'date-fns/esm/locale/th';
2
2
  const dateThTH = {
3
3
  name: 'thTH',
4
4
  locale: thTH
@@ -1,4 +1,4 @@
1
- import uk from 'date-fns/locale/uk';
1
+ import uk from 'date-fns/esm/locale/uk';
2
2
  const dateUkUA = {
3
3
  name: 'uk-UA',
4
4
  locale: uk
@@ -1,4 +1,4 @@
1
- import zhCN from 'date-fns/locale/zh-CN';
1
+ import zhCN from 'date-fns/esm/locale/zh-CN';
2
2
  const dateZhCN = {
3
3
  name: 'zh-CN',
4
4
  locale: zhCN
@@ -1,4 +1,4 @@
1
- import zhTW from 'date-fns/locale/zh-TW';
1
+ import zhTW from 'date-fns/esm/locale/zh-TW';
2
2
  const datezhTW = {
3
3
  name: 'zh-TW',
4
4
  locale: zhTW
@@ -8,6 +8,7 @@ export { default as koKR } from './common/koKR';
8
8
  export { default as idID } from './common/idID';
9
9
  export { default as deDE } from './common/deDE';
10
10
  export { default as nbNO } from './common/nbNO';
11
+ export { default as nlNL } from './common/nlNL';
11
12
  export { default as frFR } from './common/frFR';
12
13
  export { default as esAR } from './common/esAR';
13
14
  export { default as itIT } from './common/itIT';
@@ -27,6 +28,7 @@ export { default as dateKoKR } from './date/koKR';
27
28
  export { default as dateIdID } from './date/idID';
28
29
  export { default as dateDeDE } from './date/deDE';
29
30
  export { default as dateNbNO } from './date/nbNO';
31
+ export { default as dateNlNL } from './date/nlNL';
30
32
  export { default as dateFrFR } from './date/frFR';
31
33
  export { default as dateEsAR } from './date/esAR';
32
34
  export { default as dateItIT } from './date/itIT';
@@ -8,6 +8,7 @@ export { default as koKR } from './common/koKR';
8
8
  export { default as idID } from './common/idID';
9
9
  export { default as deDE } from './common/deDE';
10
10
  export { default as nbNO } from './common/nbNO';
11
+ export { default as nlNL } from './common/nlNL';
11
12
  export { default as frFR } from './common/frFR';
12
13
  export { default as esAR } from './common/esAR';
13
14
  export { default as itIT } from './common/itIT';
@@ -27,6 +28,7 @@ export { default as dateKoKR } from './date/koKR';
27
28
  export { default as dateIdID } from './date/idID';
28
29
  export { default as dateDeDE } from './date/deDE';
29
30
  export { default as dateNbNO } from './date/nbNO';
31
+ export { default as dateNlNL } from './date/nlNL';
30
32
  export { default as dateFrFR } from './date/frFR';
31
33
  export { default as dateEsAR } from './date/esAR';
32
34
  export { default as dateItIT } from './date/itIT';
@@ -345,12 +345,14 @@ declare const _default: import("vue").DefineComponent<{
345
345
  borderRadius: string;
346
346
  borderRadiusSmall: string;
347
347
  fontSize: string;
348
+ fontSizeMini: string;
348
349
  fontSizeTiny: string;
349
350
  fontSizeSmall: string;
350
351
  fontSizeMedium: string;
351
352
  fontSizeLarge: string;
352
353
  fontSizeHuge: string;
353
354
  lineHeight: string;
355
+ heightMini: string;
354
356
  heightTiny: string;
355
357
  heightSmall: string;
356
358
  heightMedium: string;
@@ -1,5 +1,5 @@
1
1
  import { c, cB, cE } from '../../../_utils/cssr';
2
- import fadeInScaleUpTransition from '../../../_styles/transitions/fade-in-scale-up.cssr'; // vars:
2
+ import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr'; // vars:
3
3
  // --n-bezier
4
4
  // --n-loading-color
5
5
  // --n-loader-border
@@ -911,12 +911,14 @@ declare const _default: import("vue").DefineComponent<{
911
911
  borderRadius: string;
912
912
  borderRadiusSmall: string;
913
913
  fontSize: string;
914
+ fontSizeMini: string;
914
915
  fontSizeTiny: string;
915
916
  fontSizeSmall: string;
916
917
  fontSizeMedium: string;
917
918
  fontSizeLarge: string;
918
919
  fontSizeHuge: string;
919
920
  lineHeight: string;
921
+ heightMini: string;
920
922
  heightTiny: string;
921
923
  heightSmall: string;
922
924
  heightMedium: string;
@@ -1,6 +1,6 @@
1
- import fadeInScaleUp from '../../../_styles/transitions/fade-in-scale-up.cssr';
1
+ import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr';
2
2
  import { c, cB } from '../../../_utils/cssr'; // --n-menu-box-shadow
3
3
 
4
4
  export default c([cB('mention', 'width: 100%; z-index: auto; position: relative;'), cB('mention-menu', `
5
5
  box-shadow: var(--n-menu-box-shadow);
6
- `, [fadeInScaleUp()])]);
6
+ `, [fadeInScaleUpTransition()])]);
@@ -1244,12 +1244,14 @@ declare const _default: import("vue").DefineComponent<{
1244
1244
  borderRadius: string;
1245
1245
  borderRadiusSmall: string;
1246
1246
  fontSize: string;
1247
+ fontSizeMini: string;
1247
1248
  fontSizeTiny: string;
1248
1249
  fontSizeSmall: string;
1249
1250
  fontSizeMedium: string;
1250
1251
  fontSizeLarge: string;
1251
1252
  fontSizeHuge: string;
1252
1253
  lineHeight: string;
1254
+ heightMini: string;
1253
1255
  heightTiny: string;
1254
1256
  heightSmall: string;
1255
1257
  heightMedium: string;
@@ -138,12 +138,14 @@ export declare const NMenuOption: import("vue").DefineComponent<{
138
138
  borderRadius: string;
139
139
  borderRadiusSmall: string;
140
140
  fontSize: string;
141
+ fontSizeMini: string;
141
142
  fontSizeTiny: string;
142
143
  fontSizeSmall: string;
143
144
  fontSizeMedium: string;
144
145
  fontSizeLarge: string;
145
146
  fontSizeHuge: string;
146
147
  lineHeight: string;
148
+ heightMini: string;
147
149
  heightTiny: string;
148
150
  heightSmall: string;
149
151
  heightMedium: string;
@@ -77,7 +77,7 @@ export default defineComponent({
77
77
  },
78
78
  attrs === null || attrs === void 0 ? void 0 : attrs.class
79
79
  ], style: [this.style, (attrs === null || attrs === void 0 ? void 0 : attrs.style) || ''] }),
80
- icon && (h("div", { class: `${clsPrefix}-menu-item-content__icon`, style: this.iconStyle, role: "none" }, icon)),
80
+ icon && (h("div", { class: `${clsPrefix}-menu-item-content__icon`, style: this.iconStyle, role: "none" }, [icon])),
81
81
  h("div", { class: `${clsPrefix}-menu-item-content-header`, role: "none" },
82
82
  renderLabel ? renderLabel(tmNode.rawNode) : render(this.title),
83
83
  this.extra || renderExtra ? (h("span", { class: `${clsPrefix}-menu-item-content-header__extra` },
@@ -155,12 +155,14 @@ export declare const NSubmenu: import("vue").DefineComponent<{
155
155
  borderRadius: string;
156
156
  borderRadiusSmall: string;
157
157
  fontSize: string;
158
+ fontSizeMini: string;
158
159
  fontSizeTiny: string;
159
160
  fontSizeSmall: string;
160
161
  fontSizeMedium: string;
161
162
  fontSizeLarge: string;
162
163
  fontSizeHuge: string;
163
164
  lineHeight: string;
165
+ heightMini: string;
164
166
  heightTiny: string;
165
167
  heightSmall: string;
166
168
  heightMedium: string;
@@ -1,5 +1,5 @@
1
- import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr';
2
- import fadeInHeightExpandTransition from '../../../_styles/transitions/fade-in-height-expand.cssr'; // vars:
1
+ import { fadeInHeightExpandTransition } from '../../../_styles/transitions/fade-in-height-expand.cssr';
2
+ import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr'; // vars:
3
3
  // --n-color
4
4
  // --n-group-text-color
5
5
  // --n-bezier
@@ -1,6 +1,6 @@
1
1
  import { c, cB, cE, cM } from '../../../_utils/cssr';
2
- import iconSwitchTransition from '../../../_styles/transitions/icon-switch.cssr';
3
- import fadeInHeightExpand from '../../../_styles/transitions/fade-in-height-expand.cssr'; // vars:
2
+ import { iconSwitchTransition } from '../../../_styles/transitions/icon-switch.cssr';
3
+ import { fadeInHeightExpandTransition } from '../../../_styles/transitions/fade-in-height-expand.cssr'; // vars:
4
4
  // --n-margin
5
5
  // --n-bezier
6
6
  // --n-padding
@@ -29,7 +29,7 @@ export default c([cB('message-wrapper', `
29
29
  z-index: 0;
30
30
  transform-origin: top center;
31
31
  display: flex;
32
- `, [fadeInHeightExpand({
32
+ `, [fadeInHeightExpandTransition({
33
33
  overflow: 'visible',
34
34
  originalTransition: 'transform .3s var(--n-bezier)',
35
35
  enterToProps: {
@@ -173,12 +173,14 @@ declare const _default: import("vue").DefineComponent<{
173
173
  borderRadius: string;
174
174
  borderRadiusSmall: string;
175
175
  fontSize: string;
176
+ fontSizeMini: string;
176
177
  fontSizeTiny: string;
177
178
  fontSizeSmall: string;
178
179
  fontSizeMedium: string;
179
180
  fontSizeLarge: string;
180
181
  fontSizeHuge: string;
181
182
  lineHeight: string;
183
+ heightMini: string;
182
184
  heightTiny: string;
183
185
  heightSmall: string;
184
186
  heightMedium: string;
@@ -1,6 +1,6 @@
1
1
  import { cB, c } from '../../../_utils/cssr';
2
- import fadeInTransition from '../../../_styles/transitions/fade-in.cssr';
3
- import fadeInScaleUpTransition from '../../../_styles/transitions/fade-in-scale-up.cssr'; // vars:
2
+ import { fadeInTransition } from '../../../_styles/transitions/fade-in.cssr';
3
+ import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr'; // vars:
4
4
  // --n-bezier-ease-out
5
5
  // --n-box-shadow
6
6
  // --n-color
@@ -1,3 +1,4 @@
1
1
  export { default as NNotificationProvider } from './src/NotificationProvider';
2
- export type { NotificationProviderProps, NotificationProviderInst, NotificationApiInjection as NotificationApi, NotificationOptions, NotificationReactive, NotificationPlacement, NotificationType } from './src/NotificationProvider';
2
+ export type { NotificationProviderProps, NotificationProviderInst, NotificationApiInjection as NotificationApi, NotificationReactive, NotificationPlacement, NotificationType } from './src/NotificationProvider';
3
+ export type { NotificationOptions } from './src/NotificationEnvironment';
3
4
  export { useNotification } from './src/use-notification';
@@ -92,22 +92,23 @@ export const Notification = defineComponent({
92
92
  var _a;
93
93
  const { mergedClsPrefix } = this;
94
94
  (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
95
- return (h("div", { class: [
96
- `${mergedClsPrefix}-notification`,
97
- this.themeClass,
98
- {
99
- [`${mergedClsPrefix}-notification--closable`]: this.closable,
100
- [`${mergedClsPrefix}-notification--show-avatar`]: this.showAvatar
101
- }
102
- ], style: this.cssVars },
103
- this.showAvatar ? (h("div", { class: `${mergedClsPrefix}-notification__avatar` }, this.avatar ? (render(this.avatar)) : this.type !== 'default' ? (h(NBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => iconRenderMap[this.type]() })) : null)) : null,
104
- this.closable ? (h(NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-notification__close`, onClick: this.handleCloseClick })) : null,
105
- h("div", { ref: "bodyRef", class: `${mergedClsPrefix}-notification-main` },
106
- this.title ? (h("div", { class: `${mergedClsPrefix}-notification-main__header` }, render(this.title))) : null,
107
- this.description ? (h("div", { class: `${mergedClsPrefix}-notification-main__description` }, render(this.description))) : null,
108
- this.content ? (h("pre", { class: `${mergedClsPrefix}-notification-main__content` }, render(this.content))) : null,
109
- this.meta || this.action ? (h("div", { class: `${mergedClsPrefix}-notification-main-footer` },
110
- this.meta ? (h("div", { class: `${mergedClsPrefix}-notification-main-footer__meta` }, render(this.meta))) : null,
111
- this.action ? (h("div", { class: `${mergedClsPrefix}-notification-main-footer__action` }, render(this.action))) : null)) : null)));
95
+ return (h("div", { class: [`${mergedClsPrefix}-notification-wrapper`, this.themeClass], style: this.cssVars },
96
+ h("div", { class: [
97
+ `${mergedClsPrefix}-notification`,
98
+ this.themeClass,
99
+ {
100
+ [`${mergedClsPrefix}-notification--closable`]: this.closable,
101
+ [`${mergedClsPrefix}-notification--show-avatar`]: this.showAvatar
102
+ }
103
+ ], style: this.cssVars },
104
+ this.showAvatar ? (h("div", { class: `${mergedClsPrefix}-notification__avatar` }, this.avatar ? (render(this.avatar)) : this.type !== 'default' ? (h(NBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => iconRenderMap[this.type]() })) : null)) : null,
105
+ this.closable ? (h(NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-notification__close`, onClick: this.handleCloseClick })) : null,
106
+ h("div", { ref: "bodyRef", class: `${mergedClsPrefix}-notification-main` },
107
+ this.title ? (h("div", { class: `${mergedClsPrefix}-notification-main__header` }, render(this.title))) : null,
108
+ this.description ? (h("div", { class: `${mergedClsPrefix}-notification-main__description` }, render(this.description))) : null,
109
+ this.content ? (h("pre", { class: `${mergedClsPrefix}-notification-main__content` }, render(this.content))) : null,
110
+ this.meta || this.action ? (h("div", { class: `${mergedClsPrefix}-notification-main-footer` },
111
+ this.meta ? (h("div", { class: `${mergedClsPrefix}-notification-main-footer__meta` }, render(this.meta))) : null,
112
+ this.action ? (h("div", { class: `${mergedClsPrefix}-notification-main-footer__action` }, render(this.action))) : null)) : null))));
112
113
  }
113
114
  });
@@ -1,14 +1,16 @@
1
1
  import { PropType } from 'vue';
2
+ import type { NotificationPlacement } from './NotificationProvider';
2
3
  export declare const NotificationContainer: import("vue").DefineComponent<{
3
4
  scrollable: {
4
5
  type: BooleanConstructor;
5
6
  required: true;
6
7
  };
7
8
  placement: {
8
- type: PropType<"top-left" | "top-right" | "bottom-left" | "bottom-right">;
9
+ type: PropType<NotificationPlacement>;
9
10
  required: true;
10
11
  };
11
12
  }, {
13
+ selfRef: import("vue").Ref<HTMLElement | null>;
12
14
  mergedTheme: import("vue").Ref<{
13
15
  common: {
14
16
  baseColor: string;
@@ -99,12 +101,14 @@ export declare const NotificationContainer: import("vue").DefineComponent<{
99
101
  borderRadius: string;
100
102
  borderRadiusSmall: string;
101
103
  fontSize: string;
104
+ fontSizeMini: string;
102
105
  fontSizeTiny: string;
103
106
  fontSizeSmall: string;
104
107
  fontSizeMedium: string;
105
108
  fontSizeLarge: string;
106
109
  fontSizeHuge: string;
107
110
  lineHeight: string;
111
+ heightMini: string;
108
112
  heightTiny: string;
109
113
  heightSmall: string;
110
114
  heightMedium: string;
@@ -151,13 +155,14 @@ export declare const NotificationContainer: import("vue").DefineComponent<{
151
155
  };
152
156
  }>;
153
157
  mergedClsPrefix: import("vue").Ref<string>;
158
+ transitioning: import("vue").Ref<number>;
154
159
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
155
160
  scrollable: {
156
161
  type: BooleanConstructor;
157
162
  required: true;
158
163
  };
159
164
  placement: {
160
- type: PropType<"top-left" | "top-right" | "bottom-left" | "bottom-right">;
165
+ type: PropType<NotificationPlacement>;
161
166
  required: true;
162
167
  };
163
168
  }>>, {}>;
@@ -1,4 +1,5 @@
1
- import { h, defineComponent, inject } from 'vue';
1
+ /* eslint-disable @typescript-eslint/no-non-null-assertion */
2
+ import { h, defineComponent, inject, ref, watchEffect } from 'vue';
2
3
  import { NScrollbar } from '../../_internal';
3
4
  import { notificationProviderInjectionKey } from './context';
4
5
  export const NotificationContainer = defineComponent({
@@ -14,16 +15,27 @@ export const NotificationContainer = defineComponent({
14
15
  }
15
16
  },
16
17
  setup() {
17
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
18
- const { mergedThemeRef, mergedClsPrefixRef } = inject(notificationProviderInjectionKey);
18
+ const { mergedThemeRef, mergedClsPrefixRef, wipTransitionCountRef } = inject(notificationProviderInjectionKey);
19
+ const selfRef = ref(null);
20
+ watchEffect(() => {
21
+ var _a, _b;
22
+ if (wipTransitionCountRef.value > 0) {
23
+ (_a = selfRef === null || selfRef === void 0 ? void 0 : selfRef.value) === null || _a === void 0 ? void 0 : _a.classList.add('transitioning');
24
+ }
25
+ else {
26
+ (_b = selfRef === null || selfRef === void 0 ? void 0 : selfRef.value) === null || _b === void 0 ? void 0 : _b.classList.remove('transitioning');
27
+ }
28
+ });
19
29
  return {
30
+ selfRef,
20
31
  mergedTheme: mergedThemeRef,
21
- mergedClsPrefix: mergedClsPrefixRef
32
+ mergedClsPrefix: mergedClsPrefixRef,
33
+ transitioning: wipTransitionCountRef
22
34
  };
23
35
  },
24
36
  render() {
25
37
  const { $slots, scrollable, mergedClsPrefix, mergedTheme, placement } = this;
26
- return (h("div", { class: [
38
+ return (h("div", { ref: "selfRef", class: [
27
39
  `${mergedClsPrefix}-notification-container`,
28
40
  scrollable && `${mergedClsPrefix}-notification-container--scrollable`,
29
41
  `${mergedClsPrefix}-notification-container--${placement}`
@@ -1,4 +1,4 @@
1
- import { PropType } from 'vue';
1
+ import { PropType, ExtractPropTypes } from 'vue';
2
2
  export declare const notificationEnvOptions: {
3
3
  readonly duration: NumberConstructor;
4
4
  readonly onClose: PropType<() => Promise<boolean> | boolean | any>;
@@ -26,6 +26,7 @@ export declare const notificationEnvOptions: {
26
26
  readonly meta: PropType<string | (() => import("vue").VNodeChild)>;
27
27
  readonly action: PropType<string | (() => import("vue").VNodeChild)>;
28
28
  };
29
+ export declare type NotificationOptions = Partial<ExtractPropTypes<typeof notificationEnvOptions>>;
29
30
  export declare const NotificationEnvironment: import("vue").DefineComponent<{
30
31
  internalKey: {
31
32
  type: StringConstructor;
@@ -66,7 +67,7 @@ export declare const NotificationEnvironment: import("vue").DefineComponent<{
66
67
  handleBeforeLeave: (el: HTMLElement) => void;
67
68
  handleAfterEnter: (el: HTMLElement) => void;
68
69
  handleBeforeEnter: (el: HTMLElement) => void;
69
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
70
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
70
71
  internalKey: {
71
72
  type: StringConstructor;
72
73
  required: true;