naive-ui 2.24.7 → 2.25.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 (641) hide show
  1. package/es/_internal/clear/src/Clear.js +3 -2
  2. package/es/_internal/close/src/Close.js +1 -1
  3. package/es/_internal/icon/src/Icon.js +1 -1
  4. package/es/_internal/icons/ArrowUp.d.ts +2 -0
  5. package/es/_internal/icons/ArrowUp.js +9 -0
  6. package/es/_internal/icons/index.d.ts +1 -0
  7. package/es/_internal/icons/index.js +1 -0
  8. package/es/_internal/loading/src/Loading.js +1 -1
  9. package/es/_internal/menu-mask/src/MenuMask.js +1 -1
  10. package/es/_internal/scrollbar/src/ScrollBar.js +1 -1
  11. package/es/_internal/select-menu/src/SelectMenu.d.ts +5 -5
  12. package/es/_internal/select-menu/src/SelectMenu.js +32 -16
  13. package/es/_internal/selection/src/Selection.d.ts +13 -5
  14. package/es/_internal/selection/src/Selection.js +24 -15
  15. package/es/_internal/selection/src/interface.d.ts +2 -2
  16. package/es/_internal/selection/src/styles/index.cssr.js +16 -31
  17. package/es/_internal/slot-machine/src/SlotMachine.js +1 -1
  18. package/es/_internal/wave/src/Wave.js +1 -1
  19. package/es/_mixins/use-config.js +1 -1
  20. package/es/_mixins/use-css-vars-class.d.ts +4 -2
  21. package/es/_mixins/use-css-vars-class.js +26 -11
  22. package/es/_mixins/use-form-item.d.ts +4 -0
  23. package/es/_mixins/use-form-item.js +7 -0
  24. package/es/_mixins/use-hljs.js +1 -1
  25. package/es/_mixins/use-locale.js +1 -1
  26. package/es/_mixins/use-style.js +1 -1
  27. package/es/_mixins/use-theme.d.ts +1 -1
  28. package/es/_mixins/use-theme.js +2 -2
  29. package/es/_utils/cssr/index.d.ts +1 -2
  30. package/es/_utils/cssr/index.js +1 -14
  31. package/es/_utils/index.d.ts +1 -1
  32. package/es/_utils/index.js +1 -1
  33. package/es/_utils/vue/index.d.ts +1 -1
  34. package/es/_utils/vue/index.js +1 -1
  35. package/es/_utils/vue/resolve-slot.d.ts +8 -2
  36. package/es/_utils/vue/resolve-slot.js +18 -1
  37. package/es/affix/src/Affix.js +1 -1
  38. package/es/alert/src/Alert.d.ts +4 -4
  39. package/es/alert/src/Alert.js +1 -1
  40. package/es/anchor/src/AnchorAdapter.js +1 -1
  41. package/es/auto-complete/src/AutoComplete.d.ts +17 -2
  42. package/es/auto-complete/src/AutoComplete.js +9 -5
  43. package/es/avatar/src/Avatar.js +2 -2
  44. package/es/avatar/src/AvatarGroup.d.ts +0 -1
  45. package/es/avatar/src/AvatarGroup.js +2 -3
  46. package/es/avatar/src/context.d.ts +2 -0
  47. package/es/avatar/src/context.js +2 -0
  48. package/es/back-top/src/BackTop.js +1 -1
  49. package/es/badge/src/Badge.d.ts +4 -4
  50. package/es/badge/src/Badge.js +1 -1
  51. package/es/breadcrumb/src/Breadcrumb.js +1 -1
  52. package/es/button/src/Button.d.ts +4 -3
  53. package/es/button/src/Button.js +265 -229
  54. package/es/button/src/ButtonGroup.js +1 -1
  55. package/es/button/src/styles/button.cssr.js +1 -0
  56. package/es/calendar/src/Calendar.js +1 -1
  57. package/es/card/src/Card.d.ts +5 -1
  58. package/es/card/src/Card.js +3 -2
  59. package/es/carousel/src/Carousel.js +4 -1
  60. package/es/carousel/src/CarouselArrow.js +6 -9
  61. package/es/carousel/src/styles/index.cssr.js +59 -48
  62. package/es/carousel/styles/light.js +2 -2
  63. package/es/cascader/src/Cascader.d.ts +6 -4
  64. package/es/cascader/src/Cascader.js +6 -6
  65. package/es/checkbox/src/Checkbox.js +1 -1
  66. package/es/code/src/Code.js +1 -1
  67. package/es/collapse/src/Collapse.js +1 -1
  68. package/es/collapse-transition/src/CollapseTransition.js +1 -1
  69. package/es/color-picker/src/ColorInputUnit.js +1 -1
  70. package/es/color-picker/src/ColorPicker.d.ts +24 -17
  71. package/es/color-picker/src/ColorPicker.js +7 -4
  72. package/es/color-picker/src/ColorPickerTrigger.js +1 -1
  73. package/es/color-picker/src/context.d.ts +9 -0
  74. package/es/color-picker/src/context.js +2 -0
  75. package/es/color-picker/src/styles/index.cssr.js +1 -0
  76. package/es/components.d.ts +2 -1
  77. package/es/components.js +2 -1
  78. package/es/composables/use-theme-vars.js +1 -1
  79. package/es/config-provider/src/ConfigProvider.d.ts +15 -3
  80. package/es/config-provider/src/ConfigProvider.js +29 -3
  81. package/es/config-provider/src/context.d.ts +2 -0
  82. package/es/config-provider/src/context.js +2 -0
  83. package/es/config-provider/src/interface.d.ts +2 -1
  84. package/es/config-provider/src/internal-interface.d.ts +4 -0
  85. package/es/data-table/src/DataTable.d.ts +1 -1
  86. package/es/data-table/src/DataTable.js +1 -1
  87. package/es/data-table/src/interface.d.ts +2 -2
  88. package/es/data-table/src/use-check.d.ts +2 -2
  89. package/es/data-table/src/use-group-header.d.ts +1 -1
  90. package/es/data-table/src/use-scroll.d.ts +1 -1
  91. package/es/data-table/src/use-scroll.js +3 -3
  92. package/es/data-table/src/use-sorter.d.ts +1 -1
  93. package/es/data-table/src/use-table-data.d.ts +1 -1
  94. package/es/data-table/src/utils.d.ts +2 -1
  95. package/es/data-table/src/utils.js +13 -3
  96. package/es/date-picker/src/DatePicker.d.ts +2 -1
  97. package/es/date-picker/src/DatePicker.js +6 -6
  98. package/es/descriptions/src/Descriptions.d.ts +2 -2
  99. package/es/descriptions/src/Descriptions.js +1 -1
  100. package/es/dialog/index.d.ts +3 -3
  101. package/es/dialog/index.js +2 -2
  102. package/es/dialog/src/Dialog.d.ts +28 -61
  103. package/es/dialog/src/Dialog.js +4 -31
  104. package/es/dialog/src/DialogEnvironment.d.ts +12 -13
  105. package/es/dialog/src/DialogEnvironment.js +3 -2
  106. package/es/dialog/src/DialogProvider.d.ts +4 -6
  107. package/es/dialog/src/DialogProvider.js +5 -6
  108. package/es/dialog/src/context.d.ts +3 -0
  109. package/es/dialog/src/context.js +3 -0
  110. package/es/dialog/src/dialogProps.d.ts +32 -0
  111. package/es/dialog/src/dialogProps.js +29 -0
  112. package/es/dialog/src/use-dialog.js +1 -1
  113. package/es/divider/src/Divider.js +1 -1
  114. package/es/drawer/index.d.ts +1 -0
  115. package/es/drawer/src/Drawer.js +1 -1
  116. package/es/dropdown/src/Dropdown.d.ts +17 -5
  117. package/es/dropdown/src/Dropdown.js +6 -5
  118. package/es/dropdown/src/DropdownGroup.js +1 -0
  119. package/es/dropdown/src/DropdownGroupHeader.js +1 -2
  120. package/es/dropdown/src/DropdownMenu.d.ts +0 -1
  121. package/es/dropdown/src/DropdownMenu.js +4 -4
  122. package/es/dropdown/src/DropdownOption.d.ts +3 -0
  123. package/es/dropdown/src/DropdownOption.js +4 -4
  124. package/es/dropdown/src/context.d.ts +6 -0
  125. package/es/dropdown/src/context.js +4 -0
  126. package/es/dropdown/src/interface.d.ts +1 -1
  127. package/es/dynamic-input/src/DynamicInput.d.ts +10 -1
  128. package/es/dynamic-input/src/DynamicInput.js +61 -18
  129. package/es/dynamic-tags/src/DynamicTags.d.ts +11 -20
  130. package/es/dynamic-tags/src/DynamicTags.js +14 -16
  131. package/es/element/src/Element.js +1 -1
  132. package/es/ellipsis/src/Ellipsis.js +1 -1
  133. package/es/empty/src/Empty.js +2 -2
  134. package/es/form/src/Form.d.ts +1 -1
  135. package/es/form/src/Form.js +2 -2
  136. package/es/form/src/FormItem.d.ts +5 -5
  137. package/es/form/src/FormItem.js +3 -2
  138. package/es/form/src/FormItemCol.d.ts +4 -4
  139. package/es/form/src/FormItemGridItem.d.ts +5 -5
  140. package/es/form/src/FormItemRow.d.ts +3 -3
  141. package/es/form/src/context.d.ts +3 -0
  142. package/es/form/src/context.js +3 -0
  143. package/es/form/src/interface.d.ts +4 -3
  144. package/es/form/src/interface.js +1 -3
  145. package/es/form/src/styles/form-item.cssr.js +6 -5
  146. package/es/form/src/utils.d.ts +1 -1
  147. package/es/form/src/utils.js +1 -1
  148. package/es/global-style/src/GlobalStyle.js +1 -1
  149. package/es/gradient-text/src/GradientText.d.ts +5 -5
  150. package/es/gradient-text/src/GradientText.js +1 -1
  151. package/es/grid/src/Grid.d.ts +0 -1
  152. package/es/grid/src/Grid.js +2 -3
  153. package/es/grid/src/GridItem.js +1 -1
  154. package/es/grid/src/config.d.ts +3 -0
  155. package/es/grid/src/config.js +3 -0
  156. package/es/icon/index.d.ts +1 -1
  157. package/es/icon/index.js +1 -1
  158. package/es/icon/src/Icon.d.ts +1 -2
  159. package/es/icon/src/Icon.js +2 -2
  160. package/es/icon-wrapper/index.d.ts +1 -0
  161. package/es/icon-wrapper/index.js +1 -0
  162. package/es/icon-wrapper/src/IconWrapper.d.ts +50 -0
  163. package/es/icon-wrapper/src/IconWrapper.js +48 -0
  164. package/es/icon-wrapper/src/styles/index.cssr.d.ts +2 -0
  165. package/es/icon-wrapper/src/styles/index.cssr.js +16 -0
  166. package/es/icon-wrapper/styles/dark.d.ts +3 -0
  167. package/es/icon-wrapper/styles/dark.js +8 -0
  168. package/es/icon-wrapper/styles/index.d.ts +3 -0
  169. package/es/icon-wrapper/styles/index.js +2 -0
  170. package/es/icon-wrapper/styles/light.d.ts +10 -0
  171. package/es/icon-wrapper/styles/light.js +14 -0
  172. package/es/image/src/ImagePreview.js +1 -1
  173. package/es/input/src/Input.d.ts +7 -2
  174. package/es/input/src/Input.js +21 -17
  175. package/es/input/src/InputGroup.js +1 -1
  176. package/es/input/src/InputGroupLabel.js +1 -1
  177. package/es/input/src/WordCount.js +9 -8
  178. package/es/input/src/styles/input.cssr.js +5 -5
  179. package/es/input-number/src/InputNumber.d.ts +3 -2
  180. package/es/input-number/src/InputNumber.js +23 -21
  181. package/es/layout/src/Layout.js +1 -1
  182. package/es/layout/src/LayoutFooter.js +1 -1
  183. package/es/layout/src/LayoutHeader.js +1 -1
  184. package/es/layout/src/LayoutSider.js +1 -1
  185. package/es/legacy-grid/src/Col.js +0 -3
  186. package/es/legacy-grid/src/Row.js +1 -1
  187. package/es/list/src/List.js +1 -1
  188. package/es/loading-bar/src/LoadingBar.js +2 -2
  189. package/es/loading-bar/src/LoadingBarProvider.d.ts +3 -8
  190. package/es/loading-bar/src/LoadingBarProvider.js +1 -3
  191. package/es/loading-bar/src/context.d.ts +7 -0
  192. package/es/loading-bar/src/context.js +3 -0
  193. package/es/loading-bar/src/use-loading-bar.js +1 -1
  194. package/es/log/index.d.ts +1 -1
  195. package/es/log/src/Log.d.ts +17 -12
  196. package/es/log/src/Log.js +10 -17
  197. package/es/log/src/LogLine.js +1 -1
  198. package/es/log/src/context.d.ts +2 -0
  199. package/es/log/src/context.js +2 -0
  200. package/es/log/src/styles/index.cssr.js +2 -3
  201. package/es/mention/src/Mention.d.ts +17 -2
  202. package/es/mention/src/Mention.js +7 -3
  203. package/es/menu/src/Menu.d.ts +2 -4
  204. package/es/menu/src/Menu.js +3 -3
  205. package/es/menu/src/MenuDivider.js +1 -1
  206. package/es/menu/src/MenuOption.d.ts +1 -2
  207. package/es/menu/src/MenuOption.js +1 -1
  208. package/es/menu/src/MenuOptionContent.js +1 -1
  209. package/es/menu/src/MenuOptionGroup.d.ts +1 -4
  210. package/es/menu/src/MenuOptionGroup.js +4 -5
  211. package/es/menu/src/Submenu.d.ts +1 -4
  212. package/es/menu/src/Submenu.js +3 -4
  213. package/es/menu/src/context.d.ts +4 -0
  214. package/es/menu/src/context.js +4 -0
  215. package/es/menu/src/use-menu-child.js +1 -3
  216. package/es/menu/src/useCheckDeprecated.d.ts +1 -1
  217. package/es/menu/src/utils.d.ts +1 -1
  218. package/es/menu/src/utils.js +5 -3
  219. package/es/message/src/Message.d.ts +2 -158
  220. package/es/message/src/Message.js +2 -2
  221. package/es/message/src/MessageProvider.d.ts +4 -9
  222. package/es/message/src/MessageProvider.js +2 -3
  223. package/es/message/src/context.d.ts +7 -0
  224. package/es/message/src/context.js +3 -0
  225. package/es/message/src/types.d.ts +1 -1
  226. package/es/message/src/use-message.js +1 -1
  227. package/es/modal/src/BodyWrapper.d.ts +6 -4
  228. package/es/modal/src/BodyWrapper.js +2 -2
  229. package/es/modal/src/Modal.d.ts +8 -5
  230. package/es/modal/src/Modal.js +2 -2
  231. package/es/modal/src/presetProps.d.ts +3 -2
  232. package/es/modal/src/presetProps.js +1 -1
  233. package/es/notification/index.d.ts +1 -1
  234. package/es/notification/src/Notification.d.ts +5 -6
  235. package/es/notification/src/Notification.js +3 -5
  236. package/es/notification/src/NotificationContainer.d.ts +1 -2
  237. package/es/notification/src/NotificationContainer.js +2 -2
  238. package/es/notification/src/NotificationEnvironment.d.ts +7 -8
  239. package/es/notification/src/NotificationEnvironment.js +3 -3
  240. package/es/notification/src/NotificationProvider.d.ts +11 -7
  241. package/es/notification/src/NotificationProvider.js +6 -6
  242. package/es/notification/src/context.d.ts +2 -0
  243. package/es/notification/src/context.js +2 -0
  244. package/es/page-header/src/PageHeader.js +1 -1
  245. package/es/pagination/src/Pagination.js +1 -1
  246. package/es/popconfirm/src/Popconfirm.d.ts +21 -8
  247. package/es/popconfirm/src/Popconfirm.js +1 -1
  248. package/es/popover/index.d.ts +1 -0
  249. package/es/popover/src/Popover.d.ts +21 -4
  250. package/es/popover/src/Popover.js +9 -2
  251. package/es/popover/src/PopoverBody.d.ts +4 -0
  252. package/es/popover/src/PopoverBody.js +13 -11
  253. package/es/popover/src/styles/index.cssr.js +2 -2
  254. package/es/popselect/src/Popselect.d.ts +18 -5
  255. package/es/popselect/src/Popselect.js +5 -2
  256. package/es/popselect/src/PopselectPanel.d.ts +2 -2
  257. package/es/popselect/src/PopselectPanel.js +4 -1
  258. package/es/progress/src/Progress.d.ts +1 -1
  259. package/es/progress/src/Progress.js +1 -1
  260. package/es/radio/src/Radio.js +1 -1
  261. package/es/radio/src/RadioGroup.js +1 -1
  262. package/es/rate/src/Rate.js +1 -1
  263. package/es/result/src/Result.d.ts +4 -4
  264. package/es/result/src/Result.js +1 -1
  265. package/es/select/index.d.ts +2 -0
  266. package/es/select/src/Select.d.ts +27 -24
  267. package/es/select/src/Select.js +71 -41
  268. package/es/select/src/interface.d.ts +2 -0
  269. package/es/skeleton/src/Skeleton.js +1 -1
  270. package/es/slider/src/Slider.js +1 -1
  271. package/es/space/src/Space.js +1 -1
  272. package/es/spin/src/Spin.js +1 -1
  273. package/es/statistic/src/Statistic.js +1 -1
  274. package/es/steps/src/Steps.js +1 -1
  275. package/es/switch/src/Switch.js +1 -1
  276. package/es/table/src/Table.js +1 -1
  277. package/es/tabs/src/Tabs.d.ts +7 -4
  278. package/es/tabs/src/Tabs.js +12 -4
  279. package/es/tag/src/Tag.d.ts +4 -4
  280. package/es/tag/src/Tag.js +1 -1
  281. package/es/tag/src/common-props.d.ts +1 -1
  282. package/es/tag/src/styles/index.cssr.js +5 -17
  283. package/es/themes/dark.js +3 -0
  284. package/es/themes/light.js +3 -0
  285. package/es/themes/utils.d.ts +2 -1
  286. package/es/themes/utils.js +16 -4
  287. package/es/thing/src/Thing.js +1 -1
  288. package/es/time-picker/src/TimePicker.d.ts +7 -5
  289. package/es/time-picker/src/TimePicker.js +5 -5
  290. package/es/timeline/src/Timeline.js +1 -1
  291. package/es/timeline/src/TimelineItem.d.ts +4 -4
  292. package/es/tooltip/src/Tooltip.d.ts +20 -7
  293. package/es/tooltip/src/Tooltip.js +1 -1
  294. package/es/transfer/src/Transfer.d.ts +1 -1
  295. package/es/transfer/src/Transfer.js +1 -1
  296. package/es/tree/src/Tree.d.ts +6 -2
  297. package/es/tree/src/Tree.js +15 -8
  298. package/es/tree/src/TreeNode.d.ts +2 -0
  299. package/es/tree/src/TreeNode.js +37 -10
  300. package/es/tree/src/TreeNodeContent.d.ts +3 -1
  301. package/es/tree/src/TreeNodeContent.js +4 -3
  302. package/es/tree/src/interface.d.ts +5 -1
  303. package/es/tree-select/src/TreeSelect.d.ts +16 -14
  304. package/es/tree-select/src/TreeSelect.js +8 -5
  305. package/es/typography/src/a.js +1 -1
  306. package/es/typography/src/blockquote.js +1 -1
  307. package/es/typography/src/create-header.d.ts +4 -4
  308. package/es/typography/src/create-header.js +1 -1
  309. package/es/typography/src/headers.d.ts +18 -18
  310. package/es/typography/src/hr.js +1 -1
  311. package/es/typography/src/ol.js +1 -1
  312. package/es/typography/src/p.js +1 -1
  313. package/es/typography/src/text.js +1 -1
  314. package/es/typography/src/ul.js +1 -1
  315. package/es/upload/src/Upload.js +1 -1
  316. package/es/upload/src/UploadFile.d.ts +1 -1
  317. package/es/upload/src/UploadProgress.d.ts +2 -2
  318. package/es/version.d.ts +1 -1
  319. package/es/version.js +1 -1
  320. package/lib/_internal/clear/src/Clear.js +3 -2
  321. package/lib/_internal/close/src/Close.js +1 -1
  322. package/lib/_internal/icon/src/Icon.js +1 -1
  323. package/lib/_internal/icons/ArrowUp.d.ts +2 -0
  324. package/lib/_internal/icons/ArrowUp.js +11 -0
  325. package/lib/_internal/icons/index.d.ts +1 -0
  326. package/lib/_internal/icons/index.js +3 -1
  327. package/lib/_internal/loading/src/Loading.js +1 -1
  328. package/lib/_internal/menu-mask/src/MenuMask.js +1 -1
  329. package/lib/_internal/scrollbar/src/ScrollBar.js +1 -1
  330. package/lib/_internal/select-menu/src/SelectMenu.d.ts +5 -5
  331. package/lib/_internal/select-menu/src/SelectMenu.js +31 -15
  332. package/lib/_internal/selection/src/Selection.d.ts +13 -5
  333. package/lib/_internal/selection/src/Selection.js +24 -15
  334. package/lib/_internal/selection/src/interface.d.ts +2 -2
  335. package/lib/_internal/selection/src/styles/index.cssr.js +15 -30
  336. package/lib/_internal/slot-machine/src/SlotMachine.js +1 -1
  337. package/lib/_internal/wave/src/Wave.js +1 -1
  338. package/lib/_mixins/use-config.js +2 -2
  339. package/lib/_mixins/use-css-vars-class.d.ts +4 -2
  340. package/lib/_mixins/use-css-vars-class.js +25 -13
  341. package/lib/_mixins/use-form-item.d.ts +4 -0
  342. package/lib/_mixins/use-form-item.js +7 -0
  343. package/lib/_mixins/use-hljs.js +2 -2
  344. package/lib/_mixins/use-locale.js +2 -2
  345. package/lib/_mixins/use-style.js +1 -1
  346. package/lib/_mixins/use-theme.d.ts +1 -1
  347. package/lib/_mixins/use-theme.js +3 -3
  348. package/lib/_utils/cssr/index.d.ts +1 -2
  349. package/lib/_utils/cssr/index.js +1 -15
  350. package/lib/_utils/index.d.ts +1 -1
  351. package/lib/_utils/index.js +5 -1
  352. package/lib/_utils/vue/index.d.ts +1 -1
  353. package/lib/_utils/vue/index.js +4 -1
  354. package/lib/_utils/vue/resolve-slot.d.ts +8 -2
  355. package/lib/_utils/vue/resolve-slot.js +22 -2
  356. package/lib/affix/src/Affix.js +1 -1
  357. package/lib/alert/src/Alert.d.ts +4 -4
  358. package/lib/alert/src/Alert.js +1 -1
  359. package/lib/anchor/src/AnchorAdapter.js +1 -1
  360. package/lib/auto-complete/src/AutoComplete.d.ts +17 -2
  361. package/lib/auto-complete/src/AutoComplete.js +9 -5
  362. package/lib/avatar/src/Avatar.js +3 -3
  363. package/lib/avatar/src/AvatarGroup.d.ts +0 -1
  364. package/lib/avatar/src/AvatarGroup.js +3 -5
  365. package/lib/avatar/src/context.d.ts +2 -0
  366. package/lib/avatar/src/context.js +5 -0
  367. package/lib/back-top/src/BackTop.js +1 -1
  368. package/lib/badge/src/Badge.d.ts +4 -4
  369. package/lib/badge/src/Badge.js +1 -1
  370. package/lib/breadcrumb/src/Breadcrumb.js +1 -1
  371. package/lib/button/src/Button.d.ts +4 -3
  372. package/lib/button/src/Button.js +264 -228
  373. package/lib/button/src/ButtonGroup.js +1 -1
  374. package/lib/button/src/styles/button.cssr.js +1 -0
  375. package/lib/calendar/src/Calendar.js +1 -1
  376. package/lib/card/src/Card.d.ts +5 -1
  377. package/lib/card/src/Card.js +3 -2
  378. package/lib/carousel/src/Carousel.js +4 -1
  379. package/lib/carousel/src/CarouselArrow.js +5 -8
  380. package/lib/carousel/src/styles/index.cssr.js +59 -48
  381. package/lib/carousel/styles/light.js +2 -2
  382. package/lib/cascader/src/Cascader.d.ts +6 -4
  383. package/lib/cascader/src/Cascader.js +6 -6
  384. package/lib/checkbox/src/Checkbox.js +1 -1
  385. package/lib/code/src/Code.js +1 -1
  386. package/lib/collapse/src/Collapse.js +1 -1
  387. package/lib/collapse-transition/src/CollapseTransition.js +1 -1
  388. package/lib/color-picker/src/ColorInputUnit.js +2 -2
  389. package/lib/color-picker/src/ColorPicker.d.ts +24 -17
  390. package/lib/color-picker/src/ColorPicker.js +8 -5
  391. package/lib/color-picker/src/ColorPickerTrigger.js +2 -2
  392. package/lib/color-picker/src/context.d.ts +9 -0
  393. package/lib/color-picker/src/context.js +5 -0
  394. package/lib/color-picker/src/styles/index.cssr.js +1 -0
  395. package/lib/components.d.ts +2 -1
  396. package/lib/components.js +2 -1
  397. package/lib/composables/use-theme-vars.js +2 -2
  398. package/lib/config-provider/src/ConfigProvider.d.ts +15 -3
  399. package/lib/config-provider/src/ConfigProvider.js +31 -5
  400. package/lib/config-provider/src/context.d.ts +2 -0
  401. package/lib/config-provider/src/context.js +5 -0
  402. package/lib/config-provider/src/interface.d.ts +2 -1
  403. package/lib/config-provider/src/internal-interface.d.ts +4 -0
  404. package/lib/data-table/src/DataTable.d.ts +1 -1
  405. package/lib/data-table/src/DataTable.js +1 -1
  406. package/lib/data-table/src/interface.d.ts +2 -2
  407. package/lib/data-table/src/use-check.d.ts +2 -2
  408. package/lib/data-table/src/use-group-header.d.ts +1 -1
  409. package/lib/data-table/src/use-scroll.d.ts +1 -1
  410. package/lib/data-table/src/use-scroll.js +2 -2
  411. package/lib/data-table/src/use-sorter.d.ts +1 -1
  412. package/lib/data-table/src/use-table-data.d.ts +1 -1
  413. package/lib/data-table/src/utils.d.ts +2 -1
  414. package/lib/data-table/src/utils.js +15 -4
  415. package/lib/date-picker/src/DatePicker.d.ts +2 -1
  416. package/lib/date-picker/src/DatePicker.js +6 -6
  417. package/lib/descriptions/src/Descriptions.d.ts +2 -2
  418. package/lib/descriptions/src/Descriptions.js +1 -1
  419. package/lib/dialog/index.d.ts +3 -3
  420. package/lib/dialog/index.js +2 -5
  421. package/lib/dialog/src/Dialog.d.ts +28 -61
  422. package/lib/dialog/src/Dialog.js +5 -32
  423. package/lib/dialog/src/DialogEnvironment.d.ts +12 -13
  424. package/lib/dialog/src/DialogEnvironment.js +6 -24
  425. package/lib/dialog/src/DialogProvider.d.ts +4 -6
  426. package/lib/dialog/src/DialogProvider.js +8 -12
  427. package/lib/dialog/src/context.d.ts +3 -0
  428. package/lib/dialog/src/context.js +6 -0
  429. package/lib/dialog/src/dialogProps.d.ts +32 -0
  430. package/lib/dialog/src/dialogProps.js +32 -0
  431. package/lib/dialog/src/use-dialog.js +2 -2
  432. package/lib/divider/src/Divider.js +1 -1
  433. package/lib/drawer/index.d.ts +1 -0
  434. package/lib/drawer/src/Drawer.js +1 -1
  435. package/lib/dropdown/src/Dropdown.d.ts +17 -5
  436. package/lib/dropdown/src/Dropdown.js +6 -6
  437. package/lib/dropdown/src/DropdownGroup.js +1 -0
  438. package/lib/dropdown/src/DropdownGroupHeader.js +3 -4
  439. package/lib/dropdown/src/DropdownMenu.d.ts +0 -1
  440. package/lib/dropdown/src/DropdownMenu.js +6 -7
  441. package/lib/dropdown/src/DropdownOption.d.ts +3 -0
  442. package/lib/dropdown/src/DropdownOption.js +9 -25
  443. package/lib/dropdown/src/context.d.ts +6 -0
  444. package/lib/dropdown/src/context.js +7 -0
  445. package/lib/dropdown/src/interface.d.ts +1 -1
  446. package/lib/dynamic-input/src/DynamicInput.d.ts +10 -1
  447. package/lib/dynamic-input/src/DynamicInput.js +59 -16
  448. package/lib/dynamic-tags/src/DynamicTags.d.ts +11 -20
  449. package/lib/dynamic-tags/src/DynamicTags.js +12 -14
  450. package/lib/element/src/Element.js +1 -1
  451. package/lib/ellipsis/src/Ellipsis.js +1 -1
  452. package/lib/empty/src/Empty.js +3 -3
  453. package/lib/form/src/Form.d.ts +1 -1
  454. package/lib/form/src/Form.js +4 -4
  455. package/lib/form/src/FormItem.d.ts +5 -5
  456. package/lib/form/src/FormItem.js +5 -4
  457. package/lib/form/src/FormItemCol.d.ts +4 -4
  458. package/lib/form/src/FormItemGridItem.d.ts +5 -5
  459. package/lib/form/src/FormItemRow.d.ts +3 -3
  460. package/lib/form/src/context.d.ts +3 -0
  461. package/lib/form/src/context.js +6 -0
  462. package/lib/form/src/interface.d.ts +4 -3
  463. package/lib/form/src/interface.js +0 -4
  464. package/lib/form/src/styles/form-item.cssr.js +3 -2
  465. package/lib/form/src/utils.d.ts +1 -1
  466. package/lib/form/src/utils.js +4 -4
  467. package/lib/global-style/src/GlobalStyle.js +2 -2
  468. package/lib/gradient-text/src/GradientText.d.ts +5 -5
  469. package/lib/gradient-text/src/GradientText.js +1 -1
  470. package/lib/grid/src/Grid.d.ts +0 -1
  471. package/lib/grid/src/Grid.js +4 -6
  472. package/lib/grid/src/GridItem.js +2 -2
  473. package/lib/grid/src/config.d.ts +3 -0
  474. package/lib/grid/src/config.js +6 -0
  475. package/lib/icon/index.d.ts +1 -1
  476. package/lib/icon/index.js +1 -4
  477. package/lib/icon/src/Icon.d.ts +1 -2
  478. package/lib/icon/src/Icon.js +3 -2
  479. package/lib/icon-wrapper/index.d.ts +1 -0
  480. package/lib/icon-wrapper/index.js +5 -0
  481. package/lib/icon-wrapper/src/IconWrapper.d.ts +50 -0
  482. package/lib/icon-wrapper/src/IconWrapper.js +54 -0
  483. package/lib/icon-wrapper/src/styles/index.cssr.d.ts +2 -0
  484. package/lib/icon-wrapper/src/styles/index.cssr.js +23 -0
  485. package/lib/icon-wrapper/styles/dark.d.ts +3 -0
  486. package/lib/icon-wrapper/styles/dark.js +10 -0
  487. package/lib/icon-wrapper/styles/index.d.ts +3 -0
  488. package/lib/icon-wrapper/styles/index.js +10 -0
  489. package/lib/icon-wrapper/styles/light.d.ts +10 -0
  490. package/lib/icon-wrapper/styles/light.js +18 -0
  491. package/lib/image/src/ImagePreview.js +1 -1
  492. package/lib/input/src/Input.d.ts +7 -2
  493. package/lib/input/src/Input.js +20 -16
  494. package/lib/input/src/InputGroup.js +1 -1
  495. package/lib/input/src/InputGroupLabel.js +1 -1
  496. package/lib/input/src/WordCount.js +9 -8
  497. package/lib/input/src/styles/input.cssr.js +4 -4
  498. package/lib/input-number/src/InputNumber.d.ts +3 -2
  499. package/lib/input-number/src/InputNumber.js +23 -21
  500. package/lib/layout/src/Layout.js +1 -1
  501. package/lib/layout/src/LayoutFooter.js +1 -1
  502. package/lib/layout/src/LayoutHeader.js +1 -1
  503. package/lib/layout/src/LayoutSider.js +1 -1
  504. package/lib/legacy-grid/src/Col.js +0 -6
  505. package/lib/legacy-grid/src/Row.js +1 -1
  506. package/lib/list/src/List.js +1 -1
  507. package/lib/loading-bar/src/LoadingBar.js +3 -3
  508. package/lib/loading-bar/src/LoadingBarProvider.d.ts +3 -8
  509. package/lib/loading-bar/src/LoadingBarProvider.js +3 -6
  510. package/lib/loading-bar/src/context.d.ts +7 -0
  511. package/lib/loading-bar/src/context.js +6 -0
  512. package/lib/loading-bar/src/use-loading-bar.js +2 -2
  513. package/lib/log/index.d.ts +1 -1
  514. package/lib/log/src/Log.d.ts +17 -12
  515. package/lib/log/src/Log.js +10 -18
  516. package/lib/log/src/LogLine.js +2 -2
  517. package/lib/log/src/context.d.ts +2 -0
  518. package/lib/log/src/context.js +5 -0
  519. package/lib/log/src/styles/index.cssr.js +2 -3
  520. package/lib/mention/src/Mention.d.ts +17 -2
  521. package/lib/mention/src/Mention.js +7 -3
  522. package/lib/menu/src/Menu.d.ts +2 -4
  523. package/lib/menu/src/Menu.js +3 -4
  524. package/lib/menu/src/MenuDivider.js +2 -2
  525. package/lib/menu/src/MenuOption.d.ts +1 -2
  526. package/lib/menu/src/MenuOption.js +2 -2
  527. package/lib/menu/src/MenuOptionContent.js +2 -2
  528. package/lib/menu/src/MenuOptionGroup.d.ts +1 -4
  529. package/lib/menu/src/MenuOptionGroup.js +7 -8
  530. package/lib/menu/src/Submenu.d.ts +1 -4
  531. package/lib/menu/src/Submenu.js +6 -7
  532. package/lib/menu/src/context.d.ts +4 -0
  533. package/lib/menu/src/context.js +7 -0
  534. package/lib/menu/src/use-menu-child.js +4 -6
  535. package/lib/menu/src/useCheckDeprecated.d.ts +1 -1
  536. package/lib/menu/src/utils.d.ts +1 -1
  537. package/lib/menu/src/utils.js +8 -25
  538. package/lib/message/src/Message.d.ts +2 -158
  539. package/lib/message/src/Message.js +3 -3
  540. package/lib/message/src/MessageProvider.d.ts +4 -9
  541. package/lib/message/src/MessageProvider.js +3 -5
  542. package/lib/message/src/context.d.ts +7 -0
  543. package/lib/message/src/context.js +6 -0
  544. package/lib/message/src/types.d.ts +1 -1
  545. package/lib/message/src/use-message.js +2 -2
  546. package/lib/modal/src/BodyWrapper.d.ts +6 -4
  547. package/lib/modal/src/BodyWrapper.js +3 -3
  548. package/lib/modal/src/Modal.d.ts +8 -5
  549. package/lib/modal/src/Modal.js +3 -3
  550. package/lib/modal/src/presetProps.d.ts +3 -2
  551. package/lib/modal/src/presetProps.js +2 -2
  552. package/lib/notification/index.d.ts +1 -1
  553. package/lib/notification/src/Notification.d.ts +5 -6
  554. package/lib/notification/src/Notification.js +5 -7
  555. package/lib/notification/src/NotificationContainer.d.ts +1 -2
  556. package/lib/notification/src/NotificationContainer.js +4 -3
  557. package/lib/notification/src/NotificationEnvironment.d.ts +7 -8
  558. package/lib/notification/src/NotificationEnvironment.js +4 -23
  559. package/lib/notification/src/NotificationProvider.d.ts +11 -7
  560. package/lib/notification/src/NotificationProvider.js +9 -9
  561. package/lib/notification/src/context.d.ts +2 -0
  562. package/lib/notification/src/context.js +5 -0
  563. package/lib/page-header/src/PageHeader.js +1 -1
  564. package/lib/pagination/src/Pagination.js +1 -1
  565. package/lib/popconfirm/src/Popconfirm.d.ts +21 -8
  566. package/lib/popconfirm/src/Popconfirm.js +1 -1
  567. package/lib/popover/index.d.ts +1 -0
  568. package/lib/popover/src/Popover.d.ts +21 -4
  569. package/lib/popover/src/Popover.js +9 -2
  570. package/lib/popover/src/PopoverBody.d.ts +4 -0
  571. package/lib/popover/src/PopoverBody.js +11 -9
  572. package/lib/popover/src/styles/index.cssr.js +2 -2
  573. package/lib/popselect/src/Popselect.d.ts +18 -5
  574. package/lib/popselect/src/Popselect.js +5 -2
  575. package/lib/popselect/src/PopselectPanel.d.ts +2 -2
  576. package/lib/popselect/src/PopselectPanel.js +4 -1
  577. package/lib/progress/src/Progress.d.ts +1 -1
  578. package/lib/progress/src/Progress.js +1 -1
  579. package/lib/radio/src/Radio.js +1 -1
  580. package/lib/radio/src/RadioGroup.js +1 -1
  581. package/lib/rate/src/Rate.js +1 -1
  582. package/lib/result/src/Result.d.ts +4 -4
  583. package/lib/result/src/Result.js +1 -1
  584. package/lib/select/index.d.ts +2 -0
  585. package/lib/select/src/Select.d.ts +27 -24
  586. package/lib/select/src/Select.js +71 -41
  587. package/lib/select/src/interface.d.ts +2 -0
  588. package/lib/skeleton/src/Skeleton.js +1 -1
  589. package/lib/slider/src/Slider.js +1 -1
  590. package/lib/space/src/Space.js +1 -1
  591. package/lib/spin/src/Spin.js +1 -1
  592. package/lib/statistic/src/Statistic.js +1 -1
  593. package/lib/steps/src/Steps.js +1 -1
  594. package/lib/switch/src/Switch.js +1 -1
  595. package/lib/table/src/Table.js +1 -1
  596. package/lib/tabs/src/Tabs.d.ts +7 -4
  597. package/lib/tabs/src/Tabs.js +12 -4
  598. package/lib/tag/src/Tag.d.ts +4 -4
  599. package/lib/tag/src/Tag.js +1 -1
  600. package/lib/tag/src/common-props.d.ts +1 -1
  601. package/lib/tag/src/styles/index.cssr.js +5 -17
  602. package/lib/themes/dark.js +87 -84
  603. package/lib/themes/light.js +87 -84
  604. package/lib/themes/utils.d.ts +2 -1
  605. package/lib/themes/utils.js +16 -4
  606. package/lib/thing/src/Thing.js +1 -1
  607. package/lib/time-picker/src/TimePicker.d.ts +7 -5
  608. package/lib/time-picker/src/TimePicker.js +5 -5
  609. package/lib/timeline/src/Timeline.js +1 -1
  610. package/lib/timeline/src/TimelineItem.d.ts +4 -4
  611. package/lib/tooltip/src/Tooltip.d.ts +20 -7
  612. package/lib/tooltip/src/Tooltip.js +1 -1
  613. package/lib/transfer/src/Transfer.d.ts +1 -1
  614. package/lib/transfer/src/Transfer.js +1 -1
  615. package/lib/tree/src/Tree.d.ts +6 -2
  616. package/lib/tree/src/Tree.js +15 -8
  617. package/lib/tree/src/TreeNode.d.ts +2 -0
  618. package/lib/tree/src/TreeNode.js +37 -10
  619. package/lib/tree/src/TreeNodeContent.d.ts +3 -1
  620. package/lib/tree/src/TreeNodeContent.js +4 -3
  621. package/lib/tree/src/interface.d.ts +5 -1
  622. package/lib/tree-select/src/TreeSelect.d.ts +16 -14
  623. package/lib/tree-select/src/TreeSelect.js +8 -5
  624. package/lib/typography/src/a.js +1 -1
  625. package/lib/typography/src/blockquote.js +1 -1
  626. package/lib/typography/src/create-header.d.ts +4 -4
  627. package/lib/typography/src/create-header.js +1 -1
  628. package/lib/typography/src/headers.d.ts +18 -18
  629. package/lib/typography/src/hr.js +1 -1
  630. package/lib/typography/src/ol.js +1 -1
  631. package/lib/typography/src/p.js +1 -1
  632. package/lib/typography/src/text.js +1 -1
  633. package/lib/typography/src/ul.js +1 -1
  634. package/lib/upload/src/Upload.js +1 -1
  635. package/lib/upload/src/UploadFile.d.ts +1 -1
  636. package/lib/upload/src/UploadProgress.d.ts +2 -2
  637. package/lib/version.d.ts +1 -1
  638. package/lib/version.js +1 -1
  639. package/package.json +7 -8
  640. package/volar.d.ts +1 -0
  641. package/web-types.json +425 -220
@@ -2,7 +2,7 @@ import { computed, defineComponent, h, inject } from 'vue';
2
2
  import { ChevronDownFilledIcon } from '../../_internal/icons';
3
3
  import { render } from '../../_utils';
4
4
  import { NBaseIcon } from '../../_internal';
5
- import { menuInjectionKey } from './Menu';
5
+ import { menuInjectionKey } from './context';
6
6
  export default defineComponent({
7
7
  name: 'MenuOptionContent',
8
8
  props: {
@@ -1,5 +1,4 @@
1
1
  import { PropType } from 'vue';
2
- import type { MenuOptionGroupInjection } from './use-menu-child';
3
2
  import { TmNode } from './interface';
4
3
  export declare const menuItemGroupProps: {
5
4
  readonly tmNodes: {
@@ -19,8 +18,7 @@ export declare const menuItemGroupProps: {
19
18
  readonly title: PropType<string | (() => import("vue").VNodeChild)>;
20
19
  readonly extra: PropType<string | (() => import("vue").VNodeChild)>;
21
20
  };
22
- export declare const menuItemGroupInjectionKey: import("vue").InjectionKey<MenuOptionGroupInjection>;
23
- declare const _default: import("vue").DefineComponent<{
21
+ export declare const NMenuOptionGroup: import("vue").DefineComponent<{
24
22
  readonly tmNodes: {
25
23
  readonly type: PropType<TmNode[]>;
26
24
  readonly required: true;
@@ -58,4 +56,3 @@ declare const _default: import("vue").DefineComponent<{
58
56
  root: boolean;
59
57
  isGroup: boolean;
60
58
  }>;
61
- export default _default;
@@ -1,16 +1,15 @@
1
1
  import { h, defineComponent, provide, Fragment, inject } from 'vue';
2
- import { createInjectionKey, render } from '../../_utils';
2
+ import { render } from '../../_utils';
3
3
  import { useMenuChild } from './use-menu-child';
4
4
  import { useMenuChildProps } from './use-menu-child-props';
5
+ // eslint-disable-next-line import/no-cycle
5
6
  import { itemRenderer } from './utils';
6
- import { submenuInjectionKey } from './Submenu';
7
- import { menuInjectionKey } from './Menu';
7
+ import { submenuInjectionKey, menuInjectionKey, menuItemGroupInjectionKey } from './context';
8
8
  export const menuItemGroupProps = Object.assign(Object.assign({}, useMenuChildProps), { tmNodes: {
9
9
  type: Array,
10
10
  required: true
11
11
  } });
12
- export const menuItemGroupInjectionKey = createInjectionKey('n-menu-item-group');
13
- export default defineComponent({
12
+ export const NMenuOptionGroup = defineComponent({
14
13
  name: 'MenuOptionGroup',
15
14
  props: menuItemGroupProps,
16
15
  setup(props) {
@@ -1,5 +1,4 @@
1
1
  import { PropType, VNodeChild } from 'vue';
2
- import type { SubmenuInjection } from './use-menu-child';
3
2
  import { MenuMixedOption, TmNode } from './interface';
4
3
  export declare const submenuProps: {
5
4
  readonly rawNodes: {
@@ -33,8 +32,7 @@ export declare const submenuProps: {
33
32
  readonly title: PropType<string | (() => VNodeChild)>;
34
33
  readonly extra: PropType<string | (() => VNodeChild)>;
35
34
  };
36
- export declare const submenuInjectionKey: import("vue").InjectionKey<SubmenuInjection>;
37
- declare const _default: import("vue").DefineComponent<{
35
+ export declare const NSubmenu: import("vue").DefineComponent<{
38
36
  readonly rawNodes: {
39
37
  readonly type: PropType<MenuMixedOption[]>;
40
38
  readonly default: () => never[];
@@ -122,4 +120,3 @@ declare const _default: import("vue").DefineComponent<{
122
120
  tmNodes: TmNode[];
123
121
  rawNodes: MenuMixedOption[];
124
122
  }>;
125
- export default _default;
@@ -3,11 +3,11 @@ import { useMemo } from 'vooks';
3
3
  import { NFadeInExpandTransition } from '../../_internal';
4
4
  import { NDropdown } from '../../dropdown';
5
5
  import NMenuOptionContent from './MenuOptionContent';
6
+ // eslint-disable-next-line import/no-cycle
6
7
  import { itemRenderer } from './utils';
7
8
  import { useMenuChild } from './use-menu-child';
8
9
  import { useMenuChildProps } from './use-menu-child-props';
9
- import { menuItemGroupInjectionKey } from './MenuOptionGroup';
10
- import { createInjectionKey } from '../../_utils';
10
+ import { menuItemGroupInjectionKey, submenuInjectionKey } from './context';
11
11
  export const submenuProps = Object.assign(Object.assign({}, useMenuChildProps), { rawNodes: {
12
12
  type: Array,
13
13
  default: () => []
@@ -21,8 +21,7 @@ export const submenuProps = Object.assign(Object.assign({}, useMenuChildProps),
21
21
  type: Boolean,
22
22
  default: false
23
23
  }, icon: Function, onClick: Function });
24
- export const submenuInjectionKey = createInjectionKey('n-submenu');
25
- export default defineComponent({
24
+ export const NSubmenu = defineComponent({
26
25
  name: 'Submenu',
27
26
  props: submenuProps,
28
27
  setup(props) {
@@ -0,0 +1,4 @@
1
+ import type { MenuInjection, MenuOptionGroupInjection, SubmenuInjection } from './use-menu-child';
2
+ export declare const menuInjectionKey: import("vue").InjectionKey<MenuInjection>;
3
+ export declare const submenuInjectionKey: import("vue").InjectionKey<SubmenuInjection>;
4
+ export declare const menuItemGroupInjectionKey: import("vue").InjectionKey<MenuOptionGroupInjection>;
@@ -0,0 +1,4 @@
1
+ import { createInjectionKey } from '../../_utils';
2
+ export const menuInjectionKey = createInjectionKey('n-menu');
3
+ export const submenuInjectionKey = createInjectionKey('n-submenu');
4
+ export const menuItemGroupInjectionKey = createInjectionKey('n-menu-item-group');
@@ -1,7 +1,5 @@
1
1
  import { inject, computed } from 'vue';
2
- import { menuInjectionKey } from './Menu';
3
- import { menuItemGroupInjectionKey } from './MenuOptionGroup';
4
- import { submenuInjectionKey } from './Submenu';
2
+ import { menuInjectionKey, submenuInjectionKey, menuItemGroupInjectionKey } from './context';
5
3
  const ICON_MARGIN_RIGHT = 8;
6
4
  export function useMenuChild(props) {
7
5
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -1,2 +1,2 @@
1
- import { MenuSetupProps } from './Menu';
1
+ import type { MenuSetupProps } from './Menu';
2
2
  export declare function useCheckDeprecated(props: MenuSetupProps): void;
@@ -1,7 +1,7 @@
1
1
  import { VNode } from 'vue';
2
2
  import type { TreeNode } from 'treemate';
3
3
  import { MenuOption, MenuGroupOption, MenuIgnoredOption, MenuMixedOption } from './interface';
4
- import { MenuSetupProps } from './Menu';
4
+ import type { MenuSetupProps } from './Menu';
5
5
  export declare function isIgnoredNode(rawNode: MenuMixedOption): rawNode is MenuIgnoredOption;
6
6
  export declare function isDividerNode(rawNode: MenuMixedOption): rawNode is MenuIgnoredOption;
7
7
  export declare function itemRenderer(tmNode: TreeNode<MenuOption, MenuGroupOption, MenuIgnoredOption>, menuProps: MenuSetupProps): VNode | undefined;
@@ -1,8 +1,10 @@
1
1
  import { h } from 'vue';
2
2
  import { keep, keysOf } from '../../_utils';
3
- import NMenuOptionGroup, { menuItemGroupProps } from './MenuOptionGroup';
4
- import NSubmenu, { submenuProps } from './Submenu';
5
- import NMenuOption, { menuItemProps } from './MenuOption';
3
+ // eslint-disable-next-line import/no-cycle
4
+ import { NMenuOptionGroup, menuItemGroupProps } from './MenuOptionGroup';
5
+ // eslint-disable-next-line import/no-cycle
6
+ import { NSubmenu, submenuProps } from './Submenu';
7
+ import { NMenuOption, menuItemProps } from './MenuOption';
6
8
  import NMenuDivider from './MenuDivider';
7
9
  const groupPropKeys = keysOf(menuItemGroupProps);
8
10
  const itemPropKeys = keysOf(menuItemProps);
@@ -1,4 +1,4 @@
1
- import { VNodeChild, CSSProperties, PropType } from 'vue';
1
+ import { VNodeChild, PropType } from 'vue';
2
2
  import type { MessageType, MessageRenderMessage } from './types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  render: PropType<MessageRenderMessage>;
@@ -15,163 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  onMouseleave: PropType<(e: MouseEvent) => void>;
16
16
  }, {
17
17
  mergedClsPrefix: import("vue").Ref<string>;
18
- messageProviderProps: {
19
- duration: number;
20
- placement: "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
21
- closable: boolean;
22
- keepAliveOnHover: boolean;
23
- } & {
24
- max?: number | undefined;
25
- to?: string | HTMLElement | undefined;
26
- theme?: import("../../_mixins").Theme<"Message", {
27
- textColorInfo: string;
28
- textColorSuccess: string;
29
- textColorError: string;
30
- textColorWarning: string;
31
- textColorLoading: string;
32
- colorInfo: string;
33
- colorSuccess: string;
34
- colorError: string;
35
- colorWarning: string;
36
- colorLoading: string;
37
- boxShadowInfo: string;
38
- boxShadowSuccess: string;
39
- boxShadowError: string;
40
- boxShadowWarning: string;
41
- boxShadowLoading: string;
42
- iconColorInfo: string;
43
- iconColorSuccess: string;
44
- iconColorWarning: string;
45
- iconColorError: string;
46
- iconColorLoading: string;
47
- closeColorInfo: string;
48
- closeColorHoverInfo: string;
49
- closeColorPressedInfo: string;
50
- closeColorSuccess: string;
51
- closeColorHoverSuccess: string;
52
- closeColorPressedSuccess: string;
53
- closeColorError: string;
54
- closeColorHoverError: string;
55
- closeColorPressedError: string;
56
- closeColorWarning: string;
57
- closeColorHoverWarning: string;
58
- closeColorPressedWarning: string;
59
- closeColorLoading: string;
60
- closeColorHoverLoading: string;
61
- closeColorPressedLoading: string;
62
- loadingColor: string;
63
- lineHeight: string;
64
- borderRadius: string;
65
- margin: string;
66
- padding: string;
67
- maxWidth: string;
68
- minWidth: string;
69
- iconMargin: string;
70
- closeMargin: string;
71
- closeSize: string;
72
- iconSize: string;
73
- fontSize: string;
74
- }, any> | undefined;
75
- themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Message", {
76
- textColorInfo: string;
77
- textColorSuccess: string;
78
- textColorError: string;
79
- textColorWarning: string;
80
- textColorLoading: string;
81
- colorInfo: string;
82
- colorSuccess: string;
83
- colorError: string;
84
- colorWarning: string;
85
- colorLoading: string;
86
- boxShadowInfo: string;
87
- boxShadowSuccess: string;
88
- boxShadowError: string;
89
- boxShadowWarning: string;
90
- boxShadowLoading: string;
91
- iconColorInfo: string;
92
- iconColorSuccess: string;
93
- iconColorWarning: string;
94
- iconColorError: string;
95
- iconColorLoading: string;
96
- closeColorInfo: string;
97
- closeColorHoverInfo: string;
98
- closeColorPressedInfo: string;
99
- closeColorSuccess: string;
100
- closeColorHoverSuccess: string;
101
- closeColorPressedSuccess: string;
102
- closeColorError: string;
103
- closeColorHoverError: string;
104
- closeColorPressedError: string;
105
- closeColorWarning: string;
106
- closeColorHoverWarning: string;
107
- closeColorPressedWarning: string;
108
- closeColorLoading: string;
109
- closeColorHoverLoading: string;
110
- closeColorPressedLoading: string;
111
- loadingColor: string;
112
- lineHeight: string;
113
- borderRadius: string;
114
- margin: string;
115
- padding: string;
116
- maxWidth: string;
117
- minWidth: string;
118
- iconMargin: string;
119
- closeMargin: string;
120
- closeSize: string;
121
- iconSize: string;
122
- fontSize: string;
123
- }, any>> | undefined;
124
- builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Message", {
125
- textColorInfo: string;
126
- textColorSuccess: string;
127
- textColorError: string;
128
- textColorWarning: string;
129
- textColorLoading: string;
130
- colorInfo: string;
131
- colorSuccess: string;
132
- colorError: string;
133
- colorWarning: string;
134
- colorLoading: string;
135
- boxShadowInfo: string;
136
- boxShadowSuccess: string;
137
- boxShadowError: string;
138
- boxShadowWarning: string;
139
- boxShadowLoading: string;
140
- iconColorInfo: string;
141
- iconColorSuccess: string;
142
- iconColorWarning: string;
143
- iconColorError: string;
144
- iconColorLoading: string;
145
- closeColorInfo: string;
146
- closeColorHoverInfo: string;
147
- closeColorPressedInfo: string;
148
- closeColorSuccess: string;
149
- closeColorHoverSuccess: string;
150
- closeColorPressedSuccess: string;
151
- closeColorError: string;
152
- closeColorHoverError: string;
153
- closeColorPressedError: string;
154
- closeColorWarning: string;
155
- closeColorHoverWarning: string;
156
- closeColorPressedWarning: string;
157
- closeColorLoading: string;
158
- closeColorHoverLoading: string;
159
- closeColorPressedLoading: string;
160
- loadingColor: string;
161
- lineHeight: string;
162
- borderRadius: string;
163
- margin: string;
164
- padding: string;
165
- maxWidth: string;
166
- minWidth: string;
167
- iconMargin: string;
168
- closeMargin: string;
169
- closeSize: string;
170
- iconSize: string;
171
- fontSize: string;
172
- }, any>> | undefined;
173
- containerStyle?: string | CSSProperties | undefined;
174
- };
18
+ messageProviderProps: import("./MessageProvider").MessageProviderSetupProps;
175
19
  handleClose(): void;
176
20
  cssVars: import("vue").ComputedRef<{
177
21
  '--n-bezier': string;
@@ -5,7 +5,7 @@ import { render, createKey } from '../../_utils';
5
5
  import { useTheme } from '../../_mixins';
6
6
  import { messageLight } from '../styles';
7
7
  import { messageProps } from './message-props';
8
- import { messageProviderInjectionKey } from './MessageProvider';
8
+ import { messageProviderInjectionKey } from './context';
9
9
  import style from './styles/index.cssr';
10
10
  const iconMap = {
11
11
  info: h(InfoIcon, null),
@@ -20,7 +20,7 @@ export default defineComponent({
20
20
  const { props: messageProviderProps, mergedClsPrefixRef
21
21
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
22
22
  } = inject(messageProviderInjectionKey);
23
- const themeRef = useTheme('Message', 'Message', style, messageLight, messageProviderProps, mergedClsPrefixRef);
23
+ const themeRef = useTheme('Message', '-message', style, messageLight, messageProviderProps, mergedClsPrefixRef);
24
24
  return {
25
25
  mergedClsPrefix: mergedClsPrefixRef,
26
26
  messageProviderProps,
@@ -1,4 +1,4 @@
1
- import { VNodeChild, ExtractPropTypes, Ref, PropType, CSSProperties } from 'vue';
1
+ import { VNodeChild, ExtractPropTypes, PropType, CSSProperties } from 'vue';
2
2
  import type { ExtractPublicPropTypes } from '../../_utils';
3
3
  import type { MessageOptions, MessageType } from './types';
4
4
  declare type ContentType = string | (() => VNodeChild);
@@ -10,7 +10,6 @@ export interface MessageApiInjection {
10
10
  loading: (content: ContentType, options?: MessageOptions) => MessageReactive;
11
11
  destroyAll: () => void;
12
12
  }
13
- export declare const messageApiInjectionKey: import("vue").InjectionKey<MessageApiInjection>;
14
13
  export interface MessageReactive {
15
14
  content?: ContentType;
16
15
  duration?: number;
@@ -185,11 +184,7 @@ declare const messageProviderProps: {
185
184
  }, any>>>;
186
185
  };
187
186
  export declare type MessageProviderProps = ExtractPublicPropTypes<typeof messageProviderProps>;
188
- declare type MessageProviderSetupProps = ExtractPropTypes<typeof messageProviderProps>;
189
- export declare const messageProviderInjectionKey: import("vue").InjectionKey<{
190
- props: MessageProviderSetupProps;
191
- mergedClsPrefixRef: Ref<string>;
192
- }>;
187
+ export declare type MessageProviderSetupProps = ExtractPropTypes<typeof messageProviderProps>;
193
188
  declare const _default: import("vue").DefineComponent<{
194
189
  to: PropType<string | HTMLElement>;
195
190
  duration: {
@@ -353,7 +348,7 @@ declare const _default: import("vue").DefineComponent<{
353
348
  }, any>>>;
354
349
  }, {
355
350
  mergedClsPrefix: import("vue").ComputedRef<string>;
356
- messageRefs: Ref<{
351
+ messageRefs: import("vue").Ref<{
357
352
  [x: string]: {
358
353
  key: string;
359
354
  hide: () => void;
@@ -367,7 +362,7 @@ declare const _default: import("vue").DefineComponent<{
367
362
  destroy: () => void;
368
363
  };
369
364
  }>;
370
- messageList: Ref<{
365
+ messageList: import("vue").Ref<{
371
366
  key: string;
372
367
  content?: ContentType | undefined;
373
368
  duration?: number | undefined;
@@ -1,9 +1,9 @@
1
1
  import { Fragment, ref, h, reactive, Teleport, defineComponent, provide } from 'vue';
2
2
  import { createId } from 'seemly';
3
- import { createInjectionKey, omit } from '../../_utils';
3
+ import { omit } from '../../_utils';
4
4
  import { useConfig, useTheme } from '../../_mixins';
5
5
  import MessageEnvironment from './MessageEnvironment';
6
- export const messageApiInjectionKey = createInjectionKey('n-message-api');
6
+ import { messageApiInjectionKey, messageProviderInjectionKey } from './context';
7
7
  const messageProviderProps = Object.assign(Object.assign({}, useTheme.props), { to: [String, Object], duration: {
8
8
  type: Number,
9
9
  default: 3000
@@ -11,7 +11,6 @@ const messageProviderProps = Object.assign(Object.assign({}, useTheme.props), {
11
11
  type: String,
12
12
  default: 'top'
13
13
  }, closable: Boolean, containerStyle: [String, Object] });
14
- export const messageProviderInjectionKey = createInjectionKey('n-message-provider');
15
14
  export default defineComponent({
16
15
  name: 'MessageProvider',
17
16
  props: messageProviderProps,
@@ -0,0 +1,7 @@
1
+ import { Ref } from 'vue';
2
+ import type { MessageApiInjection, MessageProviderSetupProps } from './MessageProvider';
3
+ export declare const messageApiInjectionKey: import("vue").InjectionKey<MessageApiInjection>;
4
+ export declare const messageProviderInjectionKey: import("vue").InjectionKey<{
5
+ props: MessageProviderSetupProps;
6
+ mergedClsPrefixRef: Ref<string>;
7
+ }>;
@@ -0,0 +1,3 @@
1
+ import { createInjectionKey } from '../../_utils';
2
+ export const messageApiInjectionKey = createInjectionKey('n-message-api');
3
+ export const messageProviderInjectionKey = createInjectionKey('n-message-provider');
@@ -1,5 +1,5 @@
1
1
  import { VNodeChild } from 'vue';
2
- import { MessageSetupProps } from './message-props';
2
+ import type { MessageSetupProps } from './message-props';
3
3
  export declare type MessageType = 'info' | 'success' | 'warning' | 'error' | 'loading';
4
4
  export declare type RenderMessageProps = Pick<MessageSetupProps, 'closable' | 'content' | 'icon' | 'onClose' | 'type'>;
5
5
  export declare type MessageRenderMessage = (props: RenderMessageProps) => VNodeChild;
@@ -1,6 +1,6 @@
1
1
  import { inject } from 'vue';
2
2
  import { throwError } from '../../_utils';
3
- import { messageApiInjectionKey } from './MessageProvider';
3
+ import { messageApiInjectionKey } from './context';
4
4
  export function useMessage() {
5
5
  const api = inject(messageApiInjectionKey, null);
6
6
  if (api === null) {
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
28
28
  onEsc: PropType<() => void>;
29
29
  icon: PropType<() => import("vue").VNodeChild>;
30
30
  type: {
31
- readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
31
+ readonly type: PropType<"default" | "success" | "error" | "warning" | "info">;
32
32
  readonly default: "default";
33
33
  };
34
34
  title: PropType<string | (() => import("vue").VNodeChild)>;
@@ -49,6 +49,7 @@ declare const _default: import("vue").DefineComponent<{
49
49
  iconPlacement: PropType<import("../../dialog/src/interface").IconPlacement>;
50
50
  contentStyle: PropType<string | import("vue").CSSProperties>;
51
51
  headerStyle: PropType<string | import("vue").CSSProperties>;
52
+ headerExtraStyle: PropType<string | import("vue").CSSProperties>;
52
53
  footerStyle: PropType<string | import("vue").CSSProperties>;
53
54
  embedded: BooleanConstructor;
54
55
  segmented: {
@@ -730,7 +731,7 @@ declare const _default: import("vue").DefineComponent<{
730
731
  onEsc: PropType<() => void>;
731
732
  icon: PropType<() => import("vue").VNodeChild>;
732
733
  type: {
733
- readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
734
+ readonly type: PropType<"default" | "success" | "error" | "warning" | "info">;
734
735
  readonly default: "default";
735
736
  };
736
737
  title: PropType<string | (() => import("vue").VNodeChild)>;
@@ -751,6 +752,7 @@ declare const _default: import("vue").DefineComponent<{
751
752
  iconPlacement: PropType<import("../../dialog/src/interface").IconPlacement>;
752
753
  contentStyle: PropType<string | import("vue").CSSProperties>;
753
754
  headerStyle: PropType<string | import("vue").CSSProperties>;
755
+ headerExtraStyle: PropType<string | import("vue").CSSProperties>;
754
756
  footerStyle: PropType<string | import("vue").CSSProperties>;
755
757
  embedded: BooleanConstructor;
756
758
  segmented: {
@@ -781,12 +783,12 @@ declare const _default: import("vue").DefineComponent<{
781
783
  default: boolean;
782
784
  };
783
785
  }>>, {
784
- type: "default" | "error" | "info" | "success" | "warning";
786
+ type: "default" | "success" | "error" | "warning" | "info";
785
787
  size: "small" | "medium" | "large" | "huge";
786
788
  autoFocus: boolean;
789
+ bordered: boolean;
787
790
  loading: boolean;
788
791
  showIcon: boolean;
789
- bordered: boolean;
790
792
  closable: boolean;
791
793
  hoverable: boolean;
792
794
  embedded: boolean;
@@ -1,12 +1,12 @@
1
1
  import { h, nextTick, toRef, watch, ref, inject, defineComponent, provide, withDirectives, vShow, Transition, mergeProps, cloneVNode } from 'vue';
2
2
  import { clickoutside } from 'vdirs';
3
3
  import { VFocusTrap } from 'vueuc';
4
- import { dialogPropKeys } from '../../dialog/src/Dialog';
4
+ import { dialogPropKeys } from '../../dialog/src/dialogProps';
5
+ import { NDialog } from '../../dialog/src/Dialog';
5
6
  import { cardBasePropKeys } from '../../card/src/Card';
6
7
  import { drawerBodyInjectionKey } from '../../drawer/src/interface';
7
8
  import { popoverBodyInjectionKey } from '../../popover/src/interface';
8
9
  import { NScrollbar } from '../../_internal';
9
- import { NDialog } from '../../dialog';
10
10
  import { NCard } from '../../card';
11
11
  import { getFirstSlotVNode, keep, warn } from '../../_utils';
12
12
  import { modalBodyInjectionKey, modalInjectionKey } from './interface';
@@ -22,7 +22,7 @@ declare const modalProps: {
22
22
  onHide: PropType<(value: false) => void>;
23
23
  icon: PropType<() => import("vue").VNodeChild>;
24
24
  type: {
25
- readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
25
+ readonly type: PropType<"default" | "success" | "error" | "warning" | "info">;
26
26
  readonly default: "default";
27
27
  };
28
28
  title: PropType<string | (() => import("vue").VNodeChild)>;
@@ -43,6 +43,7 @@ declare const modalProps: {
43
43
  iconPlacement: PropType<import("../../dialog/src/interface").IconPlacement>;
44
44
  contentStyle: PropType<string | CSSProperties>;
45
45
  headerStyle: PropType<string | CSSProperties>;
46
+ headerExtraStyle: PropType<string | CSSProperties>;
46
47
  footerStyle: PropType<string | CSSProperties>;
47
48
  embedded: BooleanConstructor;
48
49
  segmented: {
@@ -933,7 +934,7 @@ declare const _default: import("vue").DefineComponent<{
933
934
  onHide: PropType<(value: false) => void>;
934
935
  icon: PropType<() => import("vue").VNodeChild>;
935
936
  type: {
936
- readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
937
+ readonly type: PropType<"default" | "success" | "error" | "warning" | "info">;
937
938
  readonly default: "default";
938
939
  };
939
940
  title: PropType<string | (() => import("vue").VNodeChild)>;
@@ -954,6 +955,7 @@ declare const _default: import("vue").DefineComponent<{
954
955
  iconPlacement: PropType<import("../../dialog/src/interface").IconPlacement>;
955
956
  contentStyle: PropType<string | CSSProperties>;
956
957
  headerStyle: PropType<string | CSSProperties>;
958
+ headerExtraStyle: PropType<string | CSSProperties>;
957
959
  footerStyle: PropType<string | CSSProperties>;
958
960
  embedded: BooleanConstructor;
959
961
  segmented: {
@@ -1862,7 +1864,7 @@ declare const _default: import("vue").DefineComponent<{
1862
1864
  onHide: PropType<(value: false) => void>;
1863
1865
  icon: PropType<() => import("vue").VNodeChild>;
1864
1866
  type: {
1865
- readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
1867
+ readonly type: PropType<"default" | "success" | "error" | "warning" | "info">;
1866
1868
  readonly default: "default";
1867
1869
  };
1868
1870
  title: PropType<string | (() => import("vue").VNodeChild)>;
@@ -1883,6 +1885,7 @@ declare const _default: import("vue").DefineComponent<{
1883
1885
  iconPlacement: PropType<import("../../dialog/src/interface").IconPlacement>;
1884
1886
  contentStyle: PropType<string | CSSProperties>;
1885
1887
  headerStyle: PropType<string | CSSProperties>;
1888
+ headerExtraStyle: PropType<string | CSSProperties>;
1886
1889
  footerStyle: PropType<string | CSSProperties>;
1887
1890
  embedded: BooleanConstructor;
1888
1891
  segmented: {
@@ -2750,16 +2753,16 @@ declare const _default: import("vue").DefineComponent<{
2750
2753
  }, any>;
2751
2754
  }>>>;
2752
2755
  }>>, {
2753
- type: "default" | "error" | "info" | "success" | "warning";
2756
+ type: "default" | "success" | "error" | "warning" | "info";
2754
2757
  size: "small" | "medium" | "large" | "huge";
2755
2758
  show: boolean;
2756
2759
  transformOrigin: "center" | "mouse";
2757
2760
  appear: boolean | undefined;
2758
2761
  dialog: boolean;
2759
2762
  autoFocus: boolean;
2763
+ bordered: boolean;
2760
2764
  loading: boolean;
2761
2765
  showIcon: boolean;
2762
- bordered: boolean;
2763
2766
  closable: boolean;
2764
2767
  displayDirective: "show" | "if";
2765
2768
  hoverable: boolean;
@@ -2,7 +2,7 @@ import { h, withDirectives, Transition, ref, computed, defineComponent, provide,
2
2
  import { zindexable } from 'vdirs';
3
3
  import { useIsMounted, useClicked, useClickPosition } from 'vooks';
4
4
  import { VLazyTeleport } from 'vueuc';
5
- import { dialogProviderInjectionKey } from '../../dialog/src/DialogProvider';
5
+ import { dialogProviderInjectionKey } from '../../dialog/src/context';
6
6
  import { useConfig, useTheme } from '../../_mixins';
7
7
  import { keep, call, warnOnce } from '../../_utils';
8
8
  import { modalLight } from '../styles';
@@ -62,7 +62,7 @@ export default defineComponent({
62
62
  }
63
63
  const containerRef = ref(null);
64
64
  const { mergedClsPrefixRef, namespaceRef } = useConfig(props);
65
- const themeRef = useTheme('Modal', 'Modal', style, modalLight, props, mergedClsPrefixRef);
65
+ const themeRef = useTheme('Modal', '-modal', style, modalLight, props, mergedClsPrefixRef);
66
66
  const clickedRef = useClicked(64);
67
67
  const clickedPositionRef = useClickPosition();
68
68
  const isMountedRef = useIsMounted();
@@ -1,7 +1,7 @@
1
1
  declare const presetProps: {
2
2
  icon: import("vue").PropType<() => import("vue").VNodeChild>;
3
3
  type: {
4
- readonly type: import("vue").PropType<"default" | "error" | "info" | "success" | "warning">;
4
+ readonly type: import("vue").PropType<"default" | "success" | "error" | "warning" | "info">;
5
5
  readonly default: "default";
6
6
  };
7
7
  title: import("vue").PropType<string | (() => import("vue").VNodeChild)>;
@@ -25,6 +25,7 @@ declare const presetProps: {
25
25
  onClose: import("vue").PropType<() => void>;
26
26
  contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
27
27
  headerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
28
+ headerExtraStyle: import("vue").PropType<string | import("vue").CSSProperties>;
28
29
  footerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
29
30
  embedded: BooleanConstructor;
30
31
  segmented: {
@@ -38,5 +39,5 @@ declare const presetProps: {
38
39
  hoverable: BooleanConstructor;
39
40
  role: StringConstructor;
40
41
  };
41
- declare const presetPropsKeys: ("type" | "content" | "size" | "icon" | "title" | "role" | "action" | "positiveText" | "negativeText" | "loading" | "showIcon" | "bordered" | "contentStyle" | "onClose" | "closable" | "iconPlacement" | "hoverable" | "headerStyle" | "footerStyle" | "embedded" | "segmented" | "onPositiveClick" | "onNegativeClick")[];
42
+ declare const presetPropsKeys: ("type" | "content" | "size" | "icon" | "title" | "role" | "action" | "bordered" | "positiveText" | "negativeText" | "loading" | "showIcon" | "contentStyle" | "onClose" | "closable" | "iconPlacement" | "hoverable" | "headerStyle" | "headerExtraStyle" | "footerStyle" | "embedded" | "segmented" | "onPositiveClick" | "onNegativeClick")[];
42
43
  export { presetProps, presetPropsKeys };
@@ -1,4 +1,4 @@
1
- import { dialogProps } from '../../dialog/src/Dialog';
1
+ import { dialogProps } from '../../dialog/src/dialogProps';
2
2
  import { cardBaseProps } from '../../card/src/Card';
3
3
  import { keysOf } from '../../_utils';
4
4
  const presetProps = Object.assign(Object.assign({}, cardBaseProps), dialogProps);
@@ -1,3 +1,3 @@
1
1
  export { default as NNotificationProvider } from './src/NotificationProvider';
2
- export type { NotificationProviderProps, NotificationProviderInst, NotificationApiInjection as NotificationApi, NotificationOptions, NotificationReactive } from './src/NotificationProvider';
2
+ export type { NotificationProviderProps, NotificationProviderInst, NotificationApiInjection as NotificationApi, NotificationOptions, NotificationReactive, NotificationPlacement, NotificationType } from './src/NotificationProvider';
3
3
  export { useNotification } from './src/use-notification';