naive-ui 2.23.1 → 2.24.2

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 (1261) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/es/_internal/clear/src/Clear.d.ts +8 -10
  4. package/es/_internal/clear/src/styles/index.cssr.js +10 -10
  5. package/es/_internal/close/src/Close.d.ts +11 -10
  6. package/es/_internal/close/src/styles/index.cssr.js +9 -10
  7. package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +10 -20
  8. package/es/_internal/focus-detector/src/FocusDetector.d.ts +4 -7
  9. package/es/_internal/icon/src/Icon.d.ts +19 -20
  10. package/es/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
  11. package/es/_internal/icons/Add.d.ts +1 -1
  12. package/es/_internal/icons/ArrowBack.d.ts +1 -1
  13. package/es/_internal/icons/ArrowDown.d.ts +1 -1
  14. package/es/_internal/icons/Attach.d.ts +1 -1
  15. package/es/_internal/icons/Backward.d.ts +1 -1
  16. package/es/_internal/icons/Cancel.d.ts +1 -1
  17. package/es/_internal/icons/Checkmark.d.ts +1 -1
  18. package/es/_internal/icons/ChevronDown.d.ts +1 -1
  19. package/es/_internal/icons/ChevronDownFilled.d.ts +1 -1
  20. package/es/_internal/icons/ChevronLeft.d.ts +1 -1
  21. package/es/_internal/icons/ChevronRight.d.ts +1 -1
  22. package/es/_internal/icons/Clear.d.ts +1 -1
  23. package/es/_internal/icons/Close.d.ts +1 -1
  24. package/es/_internal/icons/Close.js +1 -1
  25. package/es/_internal/icons/Date.d.ts +1 -1
  26. package/es/_internal/icons/Download.d.ts +1 -1
  27. package/es/_internal/icons/Empty.d.ts +1 -1
  28. package/es/_internal/icons/Error.d.ts +1 -1
  29. package/es/_internal/icons/Eye.d.ts +1 -1
  30. package/es/_internal/icons/EyeOff.d.ts +1 -1
  31. package/es/_internal/icons/FastBackward.d.ts +1 -1
  32. package/es/_internal/icons/FastForward.d.ts +1 -1
  33. package/es/_internal/icons/File.d.ts +1 -1
  34. package/es/_internal/icons/Filter.d.ts +1 -1
  35. package/es/_internal/icons/Forward.d.ts +1 -1
  36. package/es/_internal/icons/Info.d.ts +1 -1
  37. package/es/_internal/icons/More.d.ts +1 -1
  38. package/es/_internal/icons/Photo.d.ts +1 -1
  39. package/es/_internal/icons/Remove.d.ts +1 -1
  40. package/es/_internal/icons/Retry.d.ts +1 -1
  41. package/es/_internal/icons/RotateClockwise.d.ts +1 -1
  42. package/es/_internal/icons/RotateCounterclockwise.d.ts +1 -1
  43. package/es/_internal/icons/Search.d.ts +1 -1
  44. package/es/_internal/icons/Success.d.ts +1 -1
  45. package/es/_internal/icons/Switcher.d.ts +1 -1
  46. package/es/_internal/icons/Switcher.js +2 -3
  47. package/es/_internal/icons/Time.d.ts +1 -1
  48. package/es/_internal/icons/To.d.ts +1 -1
  49. package/es/_internal/icons/Trash.d.ts +1 -1
  50. package/es/_internal/icons/Warning.d.ts +1 -1
  51. package/es/_internal/icons/ZoomIn.d.ts +1 -1
  52. package/es/_internal/icons/ZoomOut.d.ts +1 -1
  53. package/es/_internal/icons/replaceable.d.ts +1 -1
  54. package/es/_internal/loading/src/Loading.d.ts +26 -16
  55. package/es/_internal/menu-mask/src/MenuMask.d.ts +6 -5
  56. package/es/_internal/scrollbar/src/ScrollBar.d.ts +60 -64
  57. package/es/_internal/scrollbar/src/ScrollBar.js +96 -73
  58. package/es/_internal/scrollbar/src/styles/index.cssr.js +15 -15
  59. package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +10 -7
  60. package/es/_internal/select-menu/src/SelectMenu.d.ts +88 -84
  61. package/es/_internal/select-menu/src/SelectMenu.js +43 -42
  62. package/es/_internal/select-menu/src/SelectOption.d.ts +10 -7
  63. package/es/_internal/select-menu/src/interface.d.ts +3 -3
  64. package/es/_internal/select-menu/src/interface.js +3 -2
  65. package/es/_internal/select-menu/src/styles/index.cssr.js +35 -35
  66. package/es/_internal/select-menu/styles/_common.js +1 -1
  67. package/es/_internal/selection/src/Selection.d.ts +111 -113
  68. package/es/_internal/selection/src/Selection.js +69 -52
  69. package/es/_internal/selection/src/styles/index.cssr.js +80 -79
  70. package/es/_internal/selection/styles/_common.d.ts +1 -0
  71. package/es/_internal/selection/styles/_common.js +2 -1
  72. package/es/_internal/selection/styles/light.d.ts +2 -0
  73. package/es/_internal/slot-machine/src/SlotMachine.d.ts +18 -12
  74. package/es/_internal/slot-machine/src/SlotMachineNumber.d.ts +18 -12
  75. package/es/_internal/suffix/src/Suffix.d.ts +19 -14
  76. package/es/_internal/suffix/src/Suffix.js +7 -2
  77. package/es/_internal/wave/src/Wave.d.ts +6 -5
  78. package/es/_mixins/common.d.ts +1 -0
  79. package/es/_mixins/common.js +1 -0
  80. package/es/_mixins/index.d.ts +1 -0
  81. package/es/_mixins/index.js +1 -0
  82. package/es/_mixins/use-css-vars-class.d.ts +2 -0
  83. package/es/_mixins/use-css-vars-class.js +22 -0
  84. package/es/_mixins/use-form-item.d.ts +2 -2
  85. package/es/_mixins/use-form-item.js +2 -1
  86. package/es/_mixins/use-locale.d.ts +1 -1
  87. package/es/_mixins/use-locale.js +1 -1
  88. package/es/_mixins/use-rtl.js +2 -0
  89. package/es/_mixins/use-style.js +3 -0
  90. package/es/_mixins/use-theme.js +3 -0
  91. package/es/_utils/composable/use-houdini.js +2 -2
  92. package/es/_utils/index.d.ts +1 -1
  93. package/es/_utils/index.js +1 -1
  94. package/es/_utils/vue/create-injection-key.d.ts +2 -0
  95. package/es/_utils/vue/create-injection-key.js +3 -0
  96. package/es/_utils/vue/index.d.ts +2 -0
  97. package/es/_utils/vue/index.js +2 -0
  98. package/es/_utils/vue/resolve-slot.d.ts +2 -0
  99. package/es/_utils/vue/resolve-slot.js +20 -0
  100. package/es/affix/src/Affix.d.ts +26 -22
  101. package/es/alert/src/Alert.d.ts +35 -28
  102. package/es/alert/src/Alert.js +2 -4
  103. package/es/anchor/src/AnchorAdapter.d.ts +52 -47
  104. package/es/anchor/src/BaseAnchor.d.ts +25 -20
  105. package/es/anchor/src/Link.d.ts +6 -9
  106. package/es/anchor/src/Link.js +6 -5
  107. package/es/auto-complete/src/AutoComplete.d.ts +60 -67
  108. package/es/auto-complete/src/AutoComplete.js +13 -15
  109. package/es/avatar/index.d.ts +2 -0
  110. package/es/avatar/index.js +1 -0
  111. package/es/avatar/src/Avatar.d.ts +87 -51
  112. package/es/avatar/src/Avatar.js +39 -11
  113. package/es/avatar/src/AvatarGroup.d.ts +48 -0
  114. package/es/avatar/src/AvatarGroup.js +64 -0
  115. package/es/avatar/src/interface.d.ts +2 -0
  116. package/es/avatar/src/interface.js +1 -0
  117. package/es/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
  118. package/es/avatar/src/styles/avatar-group.cssr.js +14 -0
  119. package/es/avatar/src/styles/index.cssr.js +8 -3
  120. package/es/avatar/styles/light.d.ts +3 -0
  121. package/es/avatar/styles/light.js +6 -2
  122. package/es/back-top/src/BackTop.d.ts +50 -35
  123. package/es/back-top/src/BackTop.js +2 -4
  124. package/es/badge/src/Badge.d.ts +31 -29
  125. package/es/badge/src/Badge.js +6 -5
  126. package/es/breadcrumb/src/Breadcrumb.d.ts +23 -26
  127. package/es/breadcrumb/src/Breadcrumb.js +10 -9
  128. package/es/breadcrumb/src/BreadcrumbItem.d.ts +4 -7
  129. package/es/breadcrumb/src/styles/index.cssr.js +23 -23
  130. package/es/button/src/Button.d.ts +53 -61
  131. package/es/button/src/Button.js +5 -2
  132. package/es/button/src/ButtonGroup.d.ts +10 -11
  133. package/es/button/src/ButtonGroup.js +2 -1
  134. package/es/calendar/src/Calendar.d.ts +45 -46
  135. package/es/calendar/src/Calendar.js +52 -27
  136. package/es/calendar/src/interface.d.ts +4 -0
  137. package/es/calendar/src/styles/index.cssr.js +57 -57
  138. package/es/card/src/Card.d.ts +58 -58
  139. package/es/card/src/Card.js +30 -29
  140. package/es/card/src/styles/index.cssr.js +71 -69
  141. package/es/carousel/index.d.ts +1 -0
  142. package/es/carousel/index.js +1 -0
  143. package/es/carousel/src/Carousel.d.ts +271 -45
  144. package/es/carousel/src/Carousel.js +684 -233
  145. package/es/carousel/src/CarouselArrow.d.ts +9 -0
  146. package/es/carousel/src/CarouselArrow.js +43 -0
  147. package/es/carousel/src/CarouselDots.d.ts +72 -0
  148. package/es/carousel/src/CarouselDots.js +118 -0
  149. package/es/carousel/src/CarouselItem.d.ts +11 -0
  150. package/es/carousel/src/CarouselItem.js +75 -0
  151. package/es/carousel/src/interface.d.ts +35 -0
  152. package/es/carousel/src/interface.js +3 -0
  153. package/es/carousel/src/styles/index.cssr.js +150 -47
  154. package/es/carousel/src/utils.d.ts +12 -0
  155. package/es/carousel/src/utils.js +58 -0
  156. package/es/carousel/styles/light.d.ts +3 -0
  157. package/es/carousel/styles/light.js +5 -2
  158. package/es/cascader/index.d.ts +1 -1
  159. package/es/cascader/src/Cascader.d.ts +130 -97
  160. package/es/cascader/src/Cascader.js +45 -46
  161. package/es/cascader/src/CascaderMenu.d.ts +34 -24
  162. package/es/cascader/src/CascaderMenu.js +3 -5
  163. package/es/cascader/src/CascaderOption.d.ts +8 -5
  164. package/es/cascader/src/CascaderOption.js +7 -4
  165. package/es/cascader/src/CascaderSelectMenu.d.ts +26 -20
  166. package/es/cascader/src/CascaderSubmenu.d.ts +16 -9
  167. package/es/cascader/src/interface.d.ts +7 -2
  168. package/es/cascader/src/interface.js +2 -1
  169. package/es/cascader/src/styles/index.cssr.js +44 -44
  170. package/es/cascader/styles/light.d.ts +1 -0
  171. package/es/cascader/styles/light.js +1 -1
  172. package/es/checkbox/index.d.ts +1 -0
  173. package/es/checkbox/src/Checkbox.d.ts +66 -66
  174. package/es/checkbox/src/Checkbox.js +40 -28
  175. package/es/checkbox/src/CheckboxGroup.d.ts +23 -24
  176. package/es/checkbox/src/CheckboxGroup.js +2 -2
  177. package/es/checkbox/src/interface.d.ts +4 -0
  178. package/es/checkbox/src/styles/index.cssr.js +59 -59
  179. package/es/code/src/Code.d.ts +41 -44
  180. package/es/code/src/Code.js +32 -20
  181. package/es/code/src/styles/index.cssr.js +33 -30
  182. package/es/collapse/src/Collapse.d.ts +43 -41
  183. package/es/collapse/src/Collapse.js +10 -10
  184. package/es/collapse/src/CollapseItem.d.ts +5 -9
  185. package/es/collapse/src/CollapseItem.js +8 -15
  186. package/es/collapse/src/CollapseItemContent.d.ts +11 -9
  187. package/es/collapse/src/styles/index.cssr.js +24 -24
  188. package/es/collapse-transition/src/CollapseTransition.d.ts +19 -20
  189. package/es/collapse-transition/src/CollapseTransition.js +1 -1
  190. package/es/color-picker/src/AlphaSlider.d.ts +19 -14
  191. package/es/color-picker/src/ColorInput.d.ts +34 -19
  192. package/es/color-picker/src/ColorInputUnit.d.ts +15 -11
  193. package/es/color-picker/src/ColorInputUnit.js +2 -2
  194. package/es/color-picker/src/ColorPicker.d.ts +65 -62
  195. package/es/color-picker/src/ColorPicker.js +27 -20
  196. package/es/color-picker/src/ColorPickerSwatches.d.ts +18 -11
  197. package/es/color-picker/src/ColorPickerTrigger.d.ts +15 -12
  198. package/es/color-picker/src/ColorPickerTrigger.js +23 -17
  199. package/es/color-picker/src/ColorPreview.d.ts +19 -11
  200. package/es/color-picker/src/HueSlider.d.ts +15 -12
  201. package/es/color-picker/src/Pallete.d.ts +23 -16
  202. package/es/color-picker/src/interface.d.ts +2 -0
  203. package/es/color-picker/src/styles/index.cssr.js +29 -28
  204. package/es/components.d.ts +2 -0
  205. package/es/components.js +2 -0
  206. package/es/composables/use-theme-vars.d.ts +2 -1
  207. package/es/config-provider/src/ConfigProvider.d.ts +57 -37
  208. package/es/config-provider/src/ConfigProvider.js +6 -5
  209. package/es/config-provider/src/interface.d.ts +4 -1
  210. package/es/countdown/index.d.ts +2 -0
  211. package/es/countdown/index.js +1 -0
  212. package/es/countdown/src/Countdown.d.ts +73 -0
  213. package/es/countdown/src/Countdown.js +126 -0
  214. package/es/countdown/src/utils.d.ts +0 -0
  215. package/es/countdown/src/utils.js +1 -0
  216. package/es/data-table/index.d.ts +1 -1
  217. package/es/data-table/src/DataTable.d.ts +153 -198
  218. package/es/data-table/src/DataTable.js +65 -91
  219. package/es/data-table/src/HeaderButton/FilterButton.d.ts +12 -7
  220. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +36 -19
  221. package/es/data-table/src/HeaderButton/RenderFilter.d.ts +14 -9
  222. package/es/data-table/src/HeaderButton/RenderSorter.d.ts +10 -7
  223. package/es/data-table/src/HeaderButton/SortButton.d.ts +6 -5
  224. package/es/data-table/src/HeaderButton/SortButton.js +6 -6
  225. package/es/data-table/src/MainTable.d.ts +1 -1
  226. package/es/data-table/src/TableParts/Body.d.ts +13 -14
  227. package/es/data-table/src/TableParts/Body.js +8 -8
  228. package/es/data-table/src/TableParts/BodyCheckbox.d.ts +14 -9
  229. package/es/data-table/src/TableParts/Cell.d.ts +865 -855
  230. package/es/data-table/src/TableParts/ExpandTrigger.d.ts +11 -9
  231. package/es/data-table/src/TableParts/Header.d.ts +8 -5
  232. package/es/data-table/src/TableParts/SelectionMenu.d.ts +6 -5
  233. package/es/data-table/src/interface.d.ts +10 -7
  234. package/es/data-table/src/interface.js +2 -1
  235. package/es/data-table/src/styles/index.cssr.js +138 -135
  236. package/es/data-table/src/utils.js +4 -1
  237. package/es/data-table/styles/light.d.ts +1 -0
  238. package/es/date-picker/index.d.ts +1 -0
  239. package/es/date-picker/src/DatePicker.d.ts +132 -149
  240. package/es/date-picker/src/DatePicker.js +162 -157
  241. package/es/date-picker/src/interface.d.ts +23 -5
  242. package/es/date-picker/src/interface.js +2 -1
  243. package/es/date-picker/src/panel/date.d.ts +77 -34
  244. package/es/date-picker/src/panel/date.js +6 -7
  245. package/es/date-picker/src/panel/daterange.d.ts +31 -26
  246. package/es/date-picker/src/panel/daterange.js +6 -9
  247. package/es/date-picker/src/panel/datetime.d.ts +41 -30
  248. package/es/date-picker/src/panel/datetime.js +4 -5
  249. package/es/date-picker/src/panel/datetimerange.d.ts +31 -26
  250. package/es/date-picker/src/panel/datetimerange.js +5 -8
  251. package/es/date-picker/src/panel/month.d.ts +48 -32
  252. package/es/date-picker/src/panel/month.js +13 -4
  253. package/es/date-picker/src/panel/panelHeader.d.ts +2435 -0
  254. package/es/date-picker/src/panel/panelHeader.js +72 -0
  255. package/es/date-picker/src/panel/use-calendar.d.ts +16 -4
  256. package/es/date-picker/src/panel/use-calendar.js +44 -5
  257. package/es/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
  258. package/es/date-picker/src/panel/use-dual-calendar.js +10 -1
  259. package/es/date-picker/src/panel/use-panel-common.d.ts +2 -0
  260. package/es/date-picker/src/panel/use-panel-common.js +7 -1
  261. package/es/date-picker/src/styles/index.cssr.js +120 -117
  262. package/es/descriptions/src/Descriptions.d.ts +51 -51
  263. package/es/descriptions/src/Descriptions.js +19 -20
  264. package/es/descriptions/src/DescriptionsItem.d.ts +9 -12
  265. package/es/descriptions/src/styles/index.cssr.js +61 -61
  266. package/es/dialog/src/Dialog.d.ts +34 -45
  267. package/es/dialog/src/Dialog.js +28 -21
  268. package/es/dialog/src/DialogEnvironment.d.ts +41 -46
  269. package/es/dialog/src/DialogProvider.d.ts +8 -11
  270. package/es/dialog/src/DialogProvider.js +3 -3
  271. package/es/divider/src/Divider.d.ts +14 -19
  272. package/es/drawer/src/Drawer.d.ts +120 -123
  273. package/es/drawer/src/Drawer.js +62 -68
  274. package/es/drawer/src/DrawerBodyWrapper.d.ts +40 -16
  275. package/es/drawer/src/DrawerBodyWrapper.js +31 -14
  276. package/es/drawer/src/DrawerContent.d.ts +15 -20
  277. package/es/drawer/src/DrawerContent.js +6 -6
  278. package/es/drawer/src/interface.d.ts +3 -3
  279. package/es/drawer/src/interface.js +3 -2
  280. package/es/drawer/src/styles/index.cssr.js +41 -40
  281. package/es/dropdown/src/Dropdown.d.ts +113 -99
  282. package/es/dropdown/src/Dropdown.js +36 -34
  283. package/es/dropdown/src/DropdownDivider.d.ts +6 -5
  284. package/es/dropdown/src/DropdownGroup.d.ts +14 -9
  285. package/es/dropdown/src/DropdownGroupHeader.d.ts +10 -7
  286. package/es/dropdown/src/DropdownMenu.d.ts +18 -16
  287. package/es/dropdown/src/DropdownMenu.js +2 -1
  288. package/es/dropdown/src/DropdownOption.d.ts +19 -14
  289. package/es/dropdown/src/DropdownOption.js +2 -2
  290. package/es/dropdown/src/DropdownRenderOption.d.ts +6 -5
  291. package/es/dropdown/src/styles/index.cssr.js +59 -59
  292. package/es/dynamic-input/src/DynamicInput.d.ts +50 -45
  293. package/es/dynamic-input/src/DynamicInput.js +2 -2
  294. package/es/dynamic-input/src/InputPreset.d.ts +16 -14
  295. package/es/dynamic-input/src/PairPreset.d.ts +23 -18
  296. package/es/dynamic-input/src/interface.d.ts +2 -2
  297. package/es/dynamic-input/src/interface.js +2 -1
  298. package/es/dynamic-tags/src/DynamicTags.d.ts +41 -41
  299. package/es/element/src/Element.d.ts +9 -12
  300. package/es/ellipsis/src/Ellipsis.d.ts +14 -19
  301. package/es/empty/src/Empty.d.ts +40 -37
  302. package/es/empty/src/Empty.js +15 -19
  303. package/es/empty/src/styles/index.cssr.js +20 -19
  304. package/es/form/src/Feedbacks.d.ts +8 -10
  305. package/es/form/src/Feedbacks.js +4 -1
  306. package/es/form/src/Form.d.ts +44 -44
  307. package/es/form/src/Form.js +17 -8
  308. package/es/form/src/FormItem.d.ts +60 -70
  309. package/es/form/src/FormItem.js +45 -29
  310. package/es/form/src/FormItemCol.d.ts +63 -60
  311. package/es/form/src/FormItemCol.js +1 -0
  312. package/es/form/src/FormItemGridItem.d.ts +63 -66
  313. package/es/form/src/FormItemGridItem.js +1 -0
  314. package/es/form/src/FormItemRow.d.ts +68 -65
  315. package/es/form/src/FormItemRow.js +1 -0
  316. package/es/form/src/interface.d.ts +8 -4
  317. package/es/form/src/interface.js +3 -2
  318. package/es/form/src/styles/form-item.cssr.js +39 -37
  319. package/es/form/src/utils.d.ts +2 -2
  320. package/es/form/src/utils.js +29 -18
  321. package/es/global-style/src/GlobalStyle.d.ts +1 -1
  322. package/es/gradient-text/src/GradientText.d.ts +21 -28
  323. package/es/gradient-text/src/GradientText.js +5 -5
  324. package/es/gradient-text/src/styles/index.cssr.js +9 -9
  325. package/es/grid/src/Grid.d.ts +27 -22
  326. package/es/grid/src/Grid.js +2 -2
  327. package/es/grid/src/GridItem.d.ts +18 -18
  328. package/es/grid/src/GridItem.js +3 -2
  329. package/es/icon/src/Icon.d.ts +17 -24
  330. package/es/icon/src/Icon.js +4 -4
  331. package/es/icon/src/styles/index.cssr.js +7 -7
  332. package/es/image/src/Image.d.ts +295 -39
  333. package/es/image/src/Image.js +4 -17
  334. package/es/image/src/ImageGroup.d.ts +274 -8
  335. package/es/image/src/ImageGroup.js +7 -9
  336. package/es/image/src/ImagePreview.d.ts +203 -18
  337. package/es/image/src/ImagePreview.js +70 -46
  338. package/es/image/src/interface.d.ts +94 -0
  339. package/es/image/src/interface.js +2 -1
  340. package/es/image/src/styles/index.cssr.js +11 -7
  341. package/es/image/styles/dark.js +8 -1
  342. package/es/image/styles/light.d.ts +32 -3
  343. package/es/image/styles/light.js +8 -1
  344. package/es/index.d.ts +1 -1
  345. package/es/index.js +1 -1
  346. package/es/input/src/Input.d.ts +158 -155
  347. package/es/input/src/Input.js +123 -77
  348. package/es/input/src/InputGroup.d.ts +5 -9
  349. package/es/input/src/InputGroupLabel.d.ts +24 -25
  350. package/es/input/src/InputGroupLabel.js +12 -11
  351. package/es/input/src/WordCount.d.ts +1 -1
  352. package/es/input/src/interface.d.ts +2 -2
  353. package/es/input/src/interface.js +2 -1
  354. package/es/input/src/styles/input-group-label.cssr.js +18 -18
  355. package/es/input/src/styles/input.cssr.js +137 -155
  356. package/es/input-number/src/InputNumber.d.ts +68 -56
  357. package/es/input-number/src/InputNumber.js +5 -2
  358. package/es/input-number/src/utils.js +2 -1
  359. package/es/layout/src/Layout.d.ts +96 -71
  360. package/es/layout/src/Layout.js +5 -4
  361. package/es/layout/src/LayoutContent.d.ts +36 -34
  362. package/es/layout/src/LayoutFooter.d.ts +14 -19
  363. package/es/layout/src/LayoutFooter.js +7 -7
  364. package/es/layout/src/LayoutHeader.d.ts +17 -19
  365. package/es/layout/src/LayoutHeader.js +7 -7
  366. package/es/layout/src/LayoutSider.d.ts +64 -61
  367. package/es/layout/src/LayoutSider.js +13 -13
  368. package/es/layout/src/ToggleBar.d.ts +7 -8
  369. package/es/layout/src/ToggleButton.d.ts +7 -8
  370. package/es/layout/src/interface.d.ts +2 -2
  371. package/es/layout/src/interface.js +2 -1
  372. package/es/layout/src/styles/layout-footer.cssr.js +11 -11
  373. package/es/layout/src/styles/layout-header.cssr.js +11 -11
  374. package/es/layout/src/styles/layout-sider.cssr.js +45 -37
  375. package/es/layout/src/styles/layout.cssr.js +8 -8
  376. package/es/legacy-grid/src/Col.d.ts +18 -11
  377. package/es/legacy-grid/src/Row.d.ts +11 -13
  378. package/es/legacy-grid/src/Row.js +2 -2
  379. package/es/list/src/List.d.ts +29 -30
  380. package/es/list/src/List.js +17 -15
  381. package/es/list/src/ListItem.d.ts +1 -1
  382. package/es/list/src/ListItem.js +3 -3
  383. package/es/list/src/styles/index.cssr.js +30 -30
  384. package/es/loading-bar/src/LoadingBar.d.ts +4 -4
  385. package/es/loading-bar/src/LoadingBar.js +3 -3
  386. package/es/loading-bar/src/LoadingBarProvider.d.ts +22 -23
  387. package/es/loading-bar/src/LoadingBarProvider.js +7 -6
  388. package/es/loading-bar/src/styles/index.cssr.js +7 -7
  389. package/es/locales/common/deDE.js +10 -0
  390. package/es/locales/common/enUS.d.ts +9 -0
  391. package/es/locales/common/enUS.js +10 -0
  392. package/es/locales/common/esAR.d.ts +109 -0
  393. package/es/locales/common/esAR.js +110 -0
  394. package/es/locales/common/frFR.js +17 -8
  395. package/es/locales/common/idID.js +10 -0
  396. package/es/locales/common/itIT.d.ts +3 -0
  397. package/es/locales/common/itIT.js +109 -0
  398. package/es/locales/common/jaJP.js +10 -0
  399. package/es/locales/common/nbNO.js +10 -0
  400. package/es/locales/common/ruRU.js +10 -0
  401. package/es/locales/common/ukUA.js +10 -0
  402. package/es/locales/common/zhCN.js +9 -0
  403. package/es/locales/common/zhTW.js +10 -0
  404. package/es/locales/date/esAR.d.ts +3 -0
  405. package/es/locales/date/esAR.js +6 -0
  406. package/es/locales/date/itIT.d.ts +3 -0
  407. package/es/locales/date/itIT.js +6 -0
  408. package/es/locales/index.d.ts +4 -0
  409. package/es/locales/index.js +4 -0
  410. package/es/log/src/Log.d.ts +48 -46
  411. package/es/log/src/Log.js +2 -2
  412. package/es/log/src/LogLine.d.ts +6 -5
  413. package/es/log/src/LogLoader.d.ts +6 -5
  414. package/es/mention/src/Mention.d.ts +56 -57
  415. package/es/mention/src/Mention.js +1 -1
  416. package/es/mention/src/styles/index.cssr.js +2 -2
  417. package/es/mention/src/utils.js +0 -1
  418. package/es/menu/src/Menu.d.ts +87 -88
  419. package/es/menu/src/Menu.js +45 -42
  420. package/es/menu/src/MenuDivider.d.ts +1 -1
  421. package/es/menu/src/MenuOption.d.ts +22 -295
  422. package/es/menu/src/MenuOption.js +2 -1
  423. package/es/menu/src/MenuOptionContent.d.ts +33 -305
  424. package/es/menu/src/MenuOptionGroup.d.ts +20 -20
  425. package/es/menu/src/MenuOptionGroup.js +4 -3
  426. package/es/menu/src/Submenu.d.ts +35 -301
  427. package/es/menu/src/Submenu.js +4 -2
  428. package/es/menu/src/styles/index.cssr.js +71 -71
  429. package/es/menu/src/use-menu-child-props.d.ts +2 -1
  430. package/es/menu/src/use-menu-child.d.ts +5 -7
  431. package/es/menu/src/use-menu-child.js +0 -2
  432. package/es/message/index.d.ts +2 -1
  433. package/es/message/src/Message.d.ts +205 -53
  434. package/es/message/src/Message.js +35 -33
  435. package/es/message/src/MessageEnvironment.d.ts +28 -36
  436. package/es/message/src/MessageProvider.d.ts +29 -40
  437. package/es/message/src/MessageProvider.js +9 -9
  438. package/es/message/src/message-props.d.ts +5 -2
  439. package/es/message/src/styles/index.cssr.js +48 -48
  440. package/es/message/src/types.d.ts +15 -0
  441. package/es/message/src/types.js +1 -0
  442. package/es/modal/src/BodyWrapper.d.ts +97 -64
  443. package/es/modal/src/BodyWrapper.js +30 -21
  444. package/es/modal/src/Modal.d.ts +134 -966
  445. package/es/modal/src/Modal.js +27 -8
  446. package/es/modal/src/interface.d.ts +3 -3
  447. package/es/modal/src/interface.js +3 -2
  448. package/es/modal/src/presetProps.d.ts +2 -1
  449. package/es/modal/src/styles/index.cssr.js +8 -8
  450. package/es/notification/src/Notification.d.ts +44 -46
  451. package/es/notification/src/Notification.js +24 -24
  452. package/es/notification/src/NotificationContainer.d.ts +10 -7
  453. package/es/notification/src/NotificationEnvironment.d.ts +32 -40
  454. package/es/notification/src/NotificationProvider.d.ts +32 -35
  455. package/es/notification/src/NotificationProvider.js +8 -8
  456. package/es/notification/src/styles/index.cssr.js +65 -65
  457. package/es/number-animation/index.d.ts +3 -0
  458. package/es/number-animation/index.js +1 -0
  459. package/es/number-animation/src/NumberAnimation.d.ts +91 -0
  460. package/es/number-animation/src/NumberAnimation.js +96 -0
  461. package/es/number-animation/src/utils.d.ts +8 -0
  462. package/es/number-animation/src/utils.js +17 -0
  463. package/es/page-header/index.d.ts +1 -1
  464. package/es/page-header/src/PageHeader.d.ts +23 -31
  465. package/es/page-header/src/PageHeader.js +14 -15
  466. package/es/page-header/src/styles/index.cssr.js +23 -23
  467. package/es/pagination/index.d.ts +1 -1
  468. package/es/pagination/src/Pagination.d.ts +107 -102
  469. package/es/pagination/src/Pagination.js +118 -64
  470. package/es/pagination/src/interface.d.ts +10 -1
  471. package/es/pagination/src/styles/index.cssr.js +81 -81
  472. package/es/pagination/src/utils.d.ts +2 -2
  473. package/es/pagination/src/utils.js +2 -4
  474. package/es/pagination/styles/light.d.ts +1 -0
  475. package/es/popconfirm/src/Popconfirm.d.ts +94 -86
  476. package/es/popconfirm/src/PopconfirmPanel.d.ts +20 -18
  477. package/es/popconfirm/src/PopconfirmPanel.js +8 -9
  478. package/es/popconfirm/src/interface.d.ts +2 -2
  479. package/es/popconfirm/src/interface.js +2 -1
  480. package/es/popconfirm/src/styles/index.cssr.js +8 -8
  481. package/es/popover/src/Popover.d.ts +93 -77
  482. package/es/popover/src/Popover.js +24 -1
  483. package/es/popover/src/PopoverBody.d.ts +35 -51
  484. package/es/popover/src/PopoverBody.js +47 -62
  485. package/es/popover/src/interface.d.ts +2 -2
  486. package/es/popover/src/interface.js +2 -1
  487. package/es/popover/src/styles/index.cssr.js +63 -62
  488. package/es/popselect/src/Popselect.d.ts +139 -155
  489. package/es/popselect/src/Popselect.js +2 -2
  490. package/es/popselect/src/PopselectPanel.d.ts +24 -30
  491. package/es/popselect/src/interface.d.ts +2 -2
  492. package/es/popselect/src/interface.js +2 -1
  493. package/es/progress/src/Circle.d.ts +40 -26
  494. package/es/progress/src/Circle.js +8 -1
  495. package/es/progress/src/Line.d.ts +37 -32
  496. package/es/progress/src/Line.js +4 -1
  497. package/es/progress/src/MultipleCircle.d.ts +38 -21
  498. package/es/progress/src/Progress.d.ts +71 -64
  499. package/es/progress/src/Progress.js +16 -16
  500. package/es/progress/src/styles/index.cssr.js +68 -68
  501. package/es/radio/src/Radio.d.ts +45 -46
  502. package/es/radio/src/Radio.js +15 -15
  503. package/es/radio/src/RadioButton.d.ts +24 -22
  504. package/es/radio/src/RadioGroup.d.ts +35 -41
  505. package/es/radio/src/RadioGroup.js +14 -14
  506. package/es/radio/src/styles/radio-group.cssr.js +43 -43
  507. package/es/radio/src/styles/radio.cssr.js +40 -37
  508. package/es/radio/src/use-radio.d.ts +2 -2
  509. package/es/radio/src/use-radio.js +2 -2
  510. package/es/rate/src/Rate.d.ts +30 -35
  511. package/es/rate/src/Rate.js +4 -4
  512. package/es/rate/src/styles/index.cssr.js +11 -11
  513. package/es/result/src/Result.d.ts +27 -30
  514. package/es/result/src/Result.js +18 -19
  515. package/es/result/src/styles/index.cssr.js +26 -26
  516. package/es/scrollbar/src/ScrollBar.d.ts +10 -17
  517. package/es/select/index.d.ts +1 -1
  518. package/es/select/src/Select.d.ts +135 -122
  519. package/es/select/src/Select.js +42 -65
  520. package/es/select/src/interface.d.ts +4 -0
  521. package/es/select/src/styles/index.cssr.js +2 -2
  522. package/es/select/styles/light.d.ts +1 -0
  523. package/es/skeleton/src/Skeleton.d.ts +29 -34
  524. package/es/skeleton/src/Skeleton.js +3 -3
  525. package/es/skeleton/src/styles/index.cssr.js +12 -12
  526. package/es/slider/src/Slider.d.ts +80 -80
  527. package/es/slider/src/Slider.js +31 -30
  528. package/es/slider/src/styles/index.cssr.js +87 -87
  529. package/es/space/src/Space.d.ts +24 -27
  530. package/es/spin/src/Spin.d.ts +33 -32
  531. package/es/spin/src/Spin.js +5 -5
  532. package/es/spin/src/styles/index.cssr.js +15 -15
  533. package/es/statistic/src/Statistic.d.ts +32 -60
  534. package/es/statistic/src/Statistic.js +15 -22
  535. package/es/statistic/src/styles/index.cssr.js +19 -19
  536. package/es/steps/src/Step.d.ts +9 -12
  537. package/es/steps/src/Step.js +5 -7
  538. package/es/steps/src/Steps.d.ts +20 -23
  539. package/es/steps/src/Steps.js +2 -2
  540. package/es/switch/src/Switch.d.ts +45 -40
  541. package/es/table/src/Table.d.ts +47 -46
  542. package/es/table/src/Table.js +21 -21
  543. package/es/table/src/Tbody.d.ts +1 -1
  544. package/es/table/src/Td.d.ts +1 -1
  545. package/es/table/src/Th.d.ts +1 -1
  546. package/es/table/src/Thead.d.ts +1 -1
  547. package/es/table/src/Tr.d.ts +1 -1
  548. package/es/table/src/styles/index.cssr.js +55 -55
  549. package/es/tabs/index.d.ts +1 -0
  550. package/es/tabs/src/Tab.d.ts +30 -37
  551. package/es/tabs/src/Tab.js +11 -4
  552. package/es/tabs/src/TabPane.d.ts +32 -38
  553. package/es/tabs/src/TabPane.js +14 -15
  554. package/es/tabs/src/Tabs.d.ts +39 -54
  555. package/es/tabs/src/Tabs.js +27 -24
  556. package/es/tabs/src/interface.d.ts +5 -2
  557. package/es/tabs/src/interface.js +2 -1
  558. package/es/tabs/src/styles/index.cssr.js +4 -1
  559. package/es/tabs/styles/light.js +1 -1
  560. package/es/tag/src/Tag.d.ts +43 -47
  561. package/es/tag/src/Tag.js +3 -2
  562. package/es/theme-editor/src/ThemeEditor.d.ts +1 -1
  563. package/es/theme-editor/src/ThemeEditor.js +161 -158
  564. package/es/themes/index.d.ts +1 -0
  565. package/es/themes/index.js +1 -0
  566. package/es/thing/src/Thing.d.ts +16 -23
  567. package/es/thing/src/Thing.js +25 -29
  568. package/es/thing/src/styles/index.cssr.js +11 -11
  569. package/es/time/src/Time.d.ts +18 -18
  570. package/es/time-picker/index.d.ts +1 -0
  571. package/es/time-picker/src/Panel.d.ts +75 -72
  572. package/es/time-picker/src/PanelCol.d.ts +15 -12
  573. package/es/time-picker/src/TimePicker.d.ts +111 -78
  574. package/es/time-picker/src/TimePicker.js +76 -70
  575. package/es/time-picker/src/interface.d.ts +10 -4
  576. package/es/time-picker/src/interface.js +2 -1
  577. package/es/timeline/src/Timeline.d.ts +21 -24
  578. package/es/timeline/src/Timeline.js +2 -1
  579. package/es/timeline/src/TimelineItem.d.ts +10 -14
  580. package/es/timeline/src/TimelineItem.js +4 -4
  581. package/es/tooltip/src/Tooltip.d.ts +85 -75
  582. package/es/transfer/src/Transfer.d.ts +60 -64
  583. package/es/transfer/src/Transfer.js +21 -21
  584. package/es/transfer/src/TransferFilter.d.ts +17 -16
  585. package/es/transfer/src/TransferHeader.d.ts +11 -10
  586. package/es/transfer/src/TransferList.d.ts +35 -19
  587. package/es/transfer/src/TransferList.js +5 -7
  588. package/es/transfer/src/TransferListItem.d.ts +18 -11
  589. package/es/transfer/src/interface.d.ts +2 -2
  590. package/es/transfer/src/interface.js +2 -1
  591. package/es/transfer/src/styles/index.cssr.js +38 -38
  592. package/es/tree/src/MotionWrapper.d.ts +19 -14
  593. package/es/tree/src/Tree.d.ts +127 -134
  594. package/es/tree/src/Tree.js +4 -2
  595. package/es/tree/src/TreeNode.d.ts +10 -7
  596. package/es/tree/src/TreeNodeCheckbox.d.ts +11 -16
  597. package/es/tree/src/TreeNodeContent.d.ts +15 -18
  598. package/es/tree/src/TreeNodeSwitcher.d.ts +10 -14
  599. package/es/tree/src/TreeNodeSwitcher.js +25 -14
  600. package/es/tree/src/interface.d.ts +4 -2
  601. package/es/tree/src/interface.js +2 -1
  602. package/es/tree/src/styles/index.cssr.js +4 -2
  603. package/es/tree-select/src/TreeSelect.d.ts +112 -97
  604. package/es/tree-select/src/TreeSelect.js +2 -4
  605. package/es/tree-select/src/interface.d.ts +2 -2
  606. package/es/tree-select/src/interface.js +2 -1
  607. package/es/tree-select/styles/light.d.ts +1 -0
  608. package/es/typography/src/a.d.ts +8 -12
  609. package/es/typography/src/blockquote.d.ts +9 -15
  610. package/es/typography/src/create-header.d.ts +14 -19
  611. package/es/typography/src/headers.d.ts +84 -114
  612. package/es/typography/src/hr.d.ts +8 -12
  613. package/es/typography/src/li.d.ts +1 -1
  614. package/es/typography/src/ol.d.ts +9 -15
  615. package/es/typography/src/p.d.ts +9 -14
  616. package/es/typography/src/text.d.ts +24 -31
  617. package/es/typography/src/text.js +4 -3
  618. package/es/typography/src/ul.d.ts +9 -15
  619. package/es/upload/src/Upload.d.ts +95 -85
  620. package/es/upload/src/Upload.js +22 -10
  621. package/es/upload/src/UploadDragger.d.ts +1 -1
  622. package/es/upload/src/UploadFile.d.ts +18 -13
  623. package/es/upload/src/UploadFileList.d.ts +1 -1
  624. package/es/upload/src/UploadFileList.js +2 -2
  625. package/es/upload/src/UploadProgress.d.ts +11 -9
  626. package/es/upload/src/UploadTrigger.d.ts +3 -5
  627. package/es/upload/src/interface.d.ts +14 -6
  628. package/es/upload/src/interface.js +2 -1
  629. package/es/version.d.ts +1 -1
  630. package/es/version.js +1 -1
  631. package/lib/_internal/clear/src/Clear.d.ts +8 -10
  632. package/lib/_internal/clear/src/styles/index.cssr.js +10 -10
  633. package/lib/_internal/close/src/Close.d.ts +11 -10
  634. package/lib/_internal/close/src/styles/index.cssr.js +9 -10
  635. package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +10 -20
  636. package/lib/_internal/focus-detector/src/FocusDetector.d.ts +4 -7
  637. package/lib/_internal/icon/src/Icon.d.ts +19 -20
  638. package/lib/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
  639. package/lib/_internal/icons/Add.d.ts +1 -1
  640. package/lib/_internal/icons/ArrowBack.d.ts +1 -1
  641. package/lib/_internal/icons/ArrowDown.d.ts +1 -1
  642. package/lib/_internal/icons/Attach.d.ts +1 -1
  643. package/lib/_internal/icons/Backward.d.ts +1 -1
  644. package/lib/_internal/icons/Cancel.d.ts +1 -1
  645. package/lib/_internal/icons/Checkmark.d.ts +1 -1
  646. package/lib/_internal/icons/ChevronDown.d.ts +1 -1
  647. package/lib/_internal/icons/ChevronDownFilled.d.ts +1 -1
  648. package/lib/_internal/icons/ChevronLeft.d.ts +1 -1
  649. package/lib/_internal/icons/ChevronRight.d.ts +1 -1
  650. package/lib/_internal/icons/Clear.d.ts +1 -1
  651. package/lib/_internal/icons/Close.d.ts +1 -1
  652. package/lib/_internal/icons/Close.js +1 -1
  653. package/lib/_internal/icons/Date.d.ts +1 -1
  654. package/lib/_internal/icons/Download.d.ts +1 -1
  655. package/lib/_internal/icons/Empty.d.ts +1 -1
  656. package/lib/_internal/icons/Error.d.ts +1 -1
  657. package/lib/_internal/icons/Eye.d.ts +1 -1
  658. package/lib/_internal/icons/EyeOff.d.ts +1 -1
  659. package/lib/_internal/icons/FastBackward.d.ts +1 -1
  660. package/lib/_internal/icons/FastForward.d.ts +1 -1
  661. package/lib/_internal/icons/File.d.ts +1 -1
  662. package/lib/_internal/icons/Filter.d.ts +1 -1
  663. package/lib/_internal/icons/Forward.d.ts +1 -1
  664. package/lib/_internal/icons/Info.d.ts +1 -1
  665. package/lib/_internal/icons/More.d.ts +1 -1
  666. package/lib/_internal/icons/Photo.d.ts +1 -1
  667. package/lib/_internal/icons/Remove.d.ts +1 -1
  668. package/lib/_internal/icons/Retry.d.ts +1 -1
  669. package/lib/_internal/icons/RotateClockwise.d.ts +1 -1
  670. package/lib/_internal/icons/RotateCounterclockwise.d.ts +1 -1
  671. package/lib/_internal/icons/Search.d.ts +1 -1
  672. package/lib/_internal/icons/Success.d.ts +1 -1
  673. package/lib/_internal/icons/Switcher.d.ts +1 -1
  674. package/lib/_internal/icons/Switcher.js +2 -3
  675. package/lib/_internal/icons/Time.d.ts +1 -1
  676. package/lib/_internal/icons/To.d.ts +1 -1
  677. package/lib/_internal/icons/Trash.d.ts +1 -1
  678. package/lib/_internal/icons/Warning.d.ts +1 -1
  679. package/lib/_internal/icons/ZoomIn.d.ts +1 -1
  680. package/lib/_internal/icons/ZoomOut.d.ts +1 -1
  681. package/lib/_internal/icons/replaceable.d.ts +1 -1
  682. package/lib/_internal/loading/src/Loading.d.ts +26 -16
  683. package/lib/_internal/menu-mask/src/MenuMask.d.ts +6 -5
  684. package/lib/_internal/scrollbar/src/ScrollBar.d.ts +60 -64
  685. package/lib/_internal/scrollbar/src/ScrollBar.js +95 -72
  686. package/lib/_internal/scrollbar/src/styles/index.cssr.js +15 -15
  687. package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +10 -7
  688. package/lib/_internal/select-menu/src/SelectMenu.d.ts +88 -84
  689. package/lib/_internal/select-menu/src/SelectMenu.js +42 -41
  690. package/lib/_internal/select-menu/src/SelectOption.d.ts +10 -7
  691. package/lib/_internal/select-menu/src/interface.d.ts +3 -3
  692. package/lib/_internal/select-menu/src/interface.js +3 -2
  693. package/lib/_internal/select-menu/src/styles/index.cssr.js +35 -35
  694. package/lib/_internal/select-menu/styles/_common.js +1 -1
  695. package/lib/_internal/selection/src/Selection.d.ts +111 -113
  696. package/lib/_internal/selection/src/Selection.js +69 -52
  697. package/lib/_internal/selection/src/styles/index.cssr.js +80 -79
  698. package/lib/_internal/selection/styles/_common.d.ts +1 -0
  699. package/lib/_internal/selection/styles/_common.js +2 -1
  700. package/lib/_internal/selection/styles/light.d.ts +2 -0
  701. package/lib/_internal/slot-machine/src/SlotMachine.d.ts +18 -12
  702. package/lib/_internal/slot-machine/src/SlotMachineNumber.d.ts +18 -12
  703. package/lib/_internal/suffix/src/Suffix.d.ts +19 -14
  704. package/lib/_internal/suffix/src/Suffix.js +7 -2
  705. package/lib/_internal/wave/src/Wave.d.ts +6 -5
  706. package/lib/_mixins/common.d.ts +1 -0
  707. package/lib/_mixins/common.js +4 -0
  708. package/lib/_mixins/index.d.ts +1 -0
  709. package/lib/_mixins/index.js +3 -1
  710. package/lib/_mixins/use-css-vars-class.d.ts +2 -0
  711. package/lib/_mixins/use-css-vars-class.js +29 -0
  712. package/lib/_mixins/use-form-item.d.ts +2 -2
  713. package/lib/_mixins/use-form-item.js +2 -1
  714. package/lib/_mixins/use-locale.d.ts +1 -1
  715. package/lib/_mixins/use-locale.js +2 -2
  716. package/lib/_mixins/use-rtl.js +2 -0
  717. package/lib/_mixins/use-style.js +3 -0
  718. package/lib/_mixins/use-theme.js +3 -0
  719. package/lib/_utils/composable/use-houdini.js +2 -2
  720. package/lib/_utils/index.d.ts +1 -1
  721. package/lib/_utils/index.js +2 -1
  722. package/lib/_utils/vue/create-injection-key.d.ts +2 -0
  723. package/lib/_utils/vue/create-injection-key.js +7 -0
  724. package/lib/_utils/vue/index.d.ts +2 -0
  725. package/lib/_utils/vue/index.js +5 -1
  726. package/lib/_utils/vue/resolve-slot.d.ts +2 -0
  727. package/lib/_utils/vue/resolve-slot.js +24 -0
  728. package/lib/affix/src/Affix.d.ts +26 -22
  729. package/lib/alert/src/Alert.d.ts +35 -28
  730. package/lib/alert/src/Alert.js +1 -3
  731. package/lib/anchor/src/AnchorAdapter.d.ts +52 -47
  732. package/lib/anchor/src/BaseAnchor.d.ts +25 -20
  733. package/lib/anchor/src/Link.d.ts +6 -9
  734. package/lib/anchor/src/Link.js +4 -3
  735. package/lib/auto-complete/src/AutoComplete.d.ts +60 -67
  736. package/lib/auto-complete/src/AutoComplete.js +14 -16
  737. package/lib/avatar/index.d.ts +2 -0
  738. package/lib/avatar/index.js +3 -1
  739. package/lib/avatar/src/Avatar.d.ts +87 -51
  740. package/lib/avatar/src/Avatar.js +41 -12
  741. package/lib/avatar/src/AvatarGroup.d.ts +48 -0
  742. package/lib/avatar/src/AvatarGroup.js +70 -0
  743. package/lib/avatar/src/interface.d.ts +2 -0
  744. package/lib/avatar/src/interface.js +2 -0
  745. package/lib/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
  746. package/lib/avatar/src/styles/avatar-group.cssr.js +21 -0
  747. package/lib/avatar/src/styles/index.cssr.js +7 -2
  748. package/lib/avatar/styles/light.d.ts +3 -0
  749. package/lib/avatar/styles/light.js +6 -2
  750. package/lib/back-top/src/BackTop.d.ts +50 -35
  751. package/lib/back-top/src/BackTop.js +1 -3
  752. package/lib/badge/src/Badge.d.ts +31 -29
  753. package/lib/badge/src/Badge.js +5 -4
  754. package/lib/breadcrumb/src/Breadcrumb.d.ts +23 -26
  755. package/lib/breadcrumb/src/Breadcrumb.js +10 -9
  756. package/lib/breadcrumb/src/BreadcrumbItem.d.ts +4 -7
  757. package/lib/breadcrumb/src/styles/index.cssr.js +23 -23
  758. package/lib/button/src/Button.d.ts +53 -61
  759. package/lib/button/src/Button.js +4 -1
  760. package/lib/button/src/ButtonGroup.d.ts +10 -11
  761. package/lib/button/src/ButtonGroup.js +2 -1
  762. package/lib/calendar/src/Calendar.d.ts +45 -46
  763. package/lib/calendar/src/Calendar.js +51 -26
  764. package/lib/calendar/src/interface.d.ts +4 -0
  765. package/lib/calendar/src/styles/index.cssr.js +57 -57
  766. package/lib/card/src/Card.d.ts +58 -58
  767. package/lib/card/src/Card.js +29 -28
  768. package/lib/card/src/styles/index.cssr.js +71 -69
  769. package/lib/carousel/index.d.ts +1 -0
  770. package/lib/carousel/index.js +3 -1
  771. package/lib/carousel/src/Carousel.d.ts +271 -45
  772. package/lib/carousel/src/Carousel.js +682 -231
  773. package/lib/carousel/src/CarouselArrow.d.ts +9 -0
  774. package/lib/carousel/src/CarouselArrow.js +45 -0
  775. package/lib/carousel/src/CarouselDots.d.ts +72 -0
  776. package/lib/carousel/src/CarouselDots.js +120 -0
  777. package/lib/carousel/src/CarouselItem.d.ts +11 -0
  778. package/lib/carousel/src/CarouselItem.js +77 -0
  779. package/lib/carousel/src/interface.d.ts +35 -0
  780. package/lib/carousel/src/interface.js +7 -0
  781. package/lib/carousel/src/styles/index.cssr.js +150 -47
  782. package/lib/carousel/src/utils.d.ts +12 -0
  783. package/lib/carousel/src/utils.js +69 -0
  784. package/lib/carousel/styles/light.d.ts +3 -0
  785. package/lib/carousel/styles/light.js +5 -2
  786. package/lib/cascader/index.d.ts +1 -1
  787. package/lib/cascader/src/Cascader.d.ts +130 -97
  788. package/lib/cascader/src/Cascader.js +45 -46
  789. package/lib/cascader/src/CascaderMenu.d.ts +34 -24
  790. package/lib/cascader/src/CascaderMenu.js +2 -4
  791. package/lib/cascader/src/CascaderOption.d.ts +8 -5
  792. package/lib/cascader/src/CascaderOption.js +7 -4
  793. package/lib/cascader/src/CascaderSelectMenu.d.ts +26 -20
  794. package/lib/cascader/src/CascaderSubmenu.d.ts +16 -9
  795. package/lib/cascader/src/interface.d.ts +7 -2
  796. package/lib/cascader/src/interface.js +2 -1
  797. package/lib/cascader/src/styles/index.cssr.js +44 -44
  798. package/lib/cascader/styles/light.d.ts +1 -0
  799. package/lib/cascader/styles/light.js +1 -1
  800. package/lib/checkbox/index.d.ts +1 -0
  801. package/lib/checkbox/src/Checkbox.d.ts +66 -66
  802. package/lib/checkbox/src/Checkbox.js +39 -27
  803. package/lib/checkbox/src/CheckboxGroup.d.ts +23 -24
  804. package/lib/checkbox/src/CheckboxGroup.js +1 -1
  805. package/lib/checkbox/src/interface.d.ts +4 -0
  806. package/lib/checkbox/src/styles/index.cssr.js +59 -59
  807. package/lib/code/src/Code.d.ts +41 -44
  808. package/lib/code/src/Code.js +32 -20
  809. package/lib/code/src/styles/index.cssr.js +32 -29
  810. package/lib/collapse/src/Collapse.d.ts +43 -41
  811. package/lib/collapse/src/Collapse.js +9 -9
  812. package/lib/collapse/src/CollapseItem.d.ts +5 -9
  813. package/lib/collapse/src/CollapseItem.js +7 -14
  814. package/lib/collapse/src/CollapseItemContent.d.ts +11 -9
  815. package/lib/collapse/src/styles/index.cssr.js +24 -24
  816. package/lib/collapse-transition/src/CollapseTransition.d.ts +19 -20
  817. package/lib/collapse-transition/src/CollapseTransition.js +1 -1
  818. package/lib/color-picker/src/AlphaSlider.d.ts +19 -14
  819. package/lib/color-picker/src/ColorInput.d.ts +34 -19
  820. package/lib/color-picker/src/ColorInputUnit.d.ts +15 -11
  821. package/lib/color-picker/src/ColorInputUnit.js +1 -1
  822. package/lib/color-picker/src/ColorPicker.d.ts +65 -62
  823. package/lib/color-picker/src/ColorPicker.js +27 -20
  824. package/lib/color-picker/src/ColorPickerSwatches.d.ts +18 -11
  825. package/lib/color-picker/src/ColorPickerTrigger.d.ts +15 -12
  826. package/lib/color-picker/src/ColorPickerTrigger.js +22 -16
  827. package/lib/color-picker/src/ColorPreview.d.ts +19 -11
  828. package/lib/color-picker/src/HueSlider.d.ts +15 -12
  829. package/lib/color-picker/src/Pallete.d.ts +23 -16
  830. package/lib/color-picker/src/interface.d.ts +2 -0
  831. package/lib/color-picker/src/styles/index.cssr.js +29 -28
  832. package/lib/components.d.ts +2 -0
  833. package/lib/components.js +2 -0
  834. package/lib/composables/use-theme-vars.d.ts +2 -1
  835. package/lib/config-provider/src/ConfigProvider.d.ts +57 -37
  836. package/lib/config-provider/src/ConfigProvider.js +4 -3
  837. package/lib/config-provider/src/interface.d.ts +4 -1
  838. package/lib/countdown/index.d.ts +2 -0
  839. package/lib/countdown/index.js +8 -0
  840. package/lib/countdown/src/Countdown.d.ts +73 -0
  841. package/lib/countdown/src/Countdown.js +128 -0
  842. package/lib/countdown/src/utils.d.ts +0 -0
  843. package/lib/countdown/src/utils.js +1 -0
  844. package/lib/data-table/index.d.ts +1 -1
  845. package/lib/data-table/src/DataTable.d.ts +153 -198
  846. package/lib/data-table/src/DataTable.js +63 -89
  847. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +12 -7
  848. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +36 -19
  849. package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +14 -9
  850. package/lib/data-table/src/HeaderButton/RenderSorter.d.ts +10 -7
  851. package/lib/data-table/src/HeaderButton/SortButton.d.ts +6 -5
  852. package/lib/data-table/src/HeaderButton/SortButton.js +6 -6
  853. package/lib/data-table/src/MainTable.d.ts +1 -1
  854. package/lib/data-table/src/TableParts/Body.d.ts +13 -14
  855. package/lib/data-table/src/TableParts/Body.js +7 -7
  856. package/lib/data-table/src/TableParts/BodyCheckbox.d.ts +14 -9
  857. package/lib/data-table/src/TableParts/Cell.d.ts +865 -855
  858. package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +11 -9
  859. package/lib/data-table/src/TableParts/Header.d.ts +8 -5
  860. package/lib/data-table/src/TableParts/SelectionMenu.d.ts +6 -5
  861. package/lib/data-table/src/interface.d.ts +10 -7
  862. package/lib/data-table/src/interface.js +2 -1
  863. package/lib/data-table/src/styles/index.cssr.js +138 -135
  864. package/lib/data-table/src/utils.js +3 -0
  865. package/lib/data-table/styles/light.d.ts +1 -0
  866. package/lib/date-picker/index.d.ts +1 -0
  867. package/lib/date-picker/src/DatePicker.d.ts +132 -149
  868. package/lib/date-picker/src/DatePicker.js +159 -154
  869. package/lib/date-picker/src/interface.d.ts +23 -5
  870. package/lib/date-picker/src/interface.js +2 -1
  871. package/lib/date-picker/src/panel/date.d.ts +77 -34
  872. package/lib/date-picker/src/panel/date.js +8 -6
  873. package/lib/date-picker/src/panel/daterange.d.ts +31 -26
  874. package/lib/date-picker/src/panel/daterange.js +8 -8
  875. package/lib/date-picker/src/panel/datetime.d.ts +41 -30
  876. package/lib/date-picker/src/panel/datetime.js +6 -4
  877. package/lib/date-picker/src/panel/datetimerange.d.ts +31 -26
  878. package/lib/date-picker/src/panel/datetimerange.js +7 -7
  879. package/lib/date-picker/src/panel/month.d.ts +48 -32
  880. package/lib/date-picker/src/panel/month.js +12 -3
  881. package/lib/date-picker/src/panel/panelHeader.d.ts +2435 -0
  882. package/lib/date-picker/src/panel/panelHeader.js +77 -0
  883. package/lib/date-picker/src/panel/use-calendar.d.ts +16 -4
  884. package/lib/date-picker/src/panel/use-calendar.js +43 -4
  885. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
  886. package/lib/date-picker/src/panel/use-dual-calendar.js +10 -1
  887. package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -0
  888. package/lib/date-picker/src/panel/use-panel-common.js +7 -1
  889. package/lib/date-picker/src/styles/index.cssr.js +120 -117
  890. package/lib/descriptions/src/Descriptions.d.ts +51 -51
  891. package/lib/descriptions/src/Descriptions.js +19 -20
  892. package/lib/descriptions/src/DescriptionsItem.d.ts +9 -12
  893. package/lib/descriptions/src/styles/index.cssr.js +61 -61
  894. package/lib/dialog/src/Dialog.d.ts +34 -45
  895. package/lib/dialog/src/Dialog.js +27 -20
  896. package/lib/dialog/src/DialogEnvironment.d.ts +41 -46
  897. package/lib/dialog/src/DialogProvider.d.ts +8 -11
  898. package/lib/dialog/src/DialogProvider.js +2 -2
  899. package/lib/divider/src/Divider.d.ts +14 -19
  900. package/lib/drawer/src/Drawer.d.ts +120 -123
  901. package/lib/drawer/src/Drawer.js +60 -66
  902. package/lib/drawer/src/DrawerBodyWrapper.d.ts +40 -16
  903. package/lib/drawer/src/DrawerBodyWrapper.js +31 -14
  904. package/lib/drawer/src/DrawerContent.d.ts +15 -20
  905. package/lib/drawer/src/DrawerContent.js +6 -6
  906. package/lib/drawer/src/interface.d.ts +3 -3
  907. package/lib/drawer/src/interface.js +3 -2
  908. package/lib/drawer/src/styles/index.cssr.js +41 -40
  909. package/lib/dropdown/src/Dropdown.d.ts +113 -99
  910. package/lib/dropdown/src/Dropdown.js +35 -33
  911. package/lib/dropdown/src/DropdownDivider.d.ts +6 -5
  912. package/lib/dropdown/src/DropdownGroup.d.ts +14 -9
  913. package/lib/dropdown/src/DropdownGroupHeader.d.ts +10 -7
  914. package/lib/dropdown/src/DropdownMenu.d.ts +18 -16
  915. package/lib/dropdown/src/DropdownMenu.js +2 -1
  916. package/lib/dropdown/src/DropdownOption.d.ts +19 -14
  917. package/lib/dropdown/src/DropdownOption.js +1 -1
  918. package/lib/dropdown/src/DropdownRenderOption.d.ts +6 -5
  919. package/lib/dropdown/src/styles/index.cssr.js +59 -59
  920. package/lib/dynamic-input/src/DynamicInput.d.ts +50 -45
  921. package/lib/dynamic-input/src/DynamicInput.js +1 -1
  922. package/lib/dynamic-input/src/InputPreset.d.ts +16 -14
  923. package/lib/dynamic-input/src/PairPreset.d.ts +23 -18
  924. package/lib/dynamic-input/src/interface.d.ts +2 -2
  925. package/lib/dynamic-input/src/interface.js +2 -1
  926. package/lib/dynamic-tags/src/DynamicTags.d.ts +41 -41
  927. package/lib/element/src/Element.d.ts +9 -12
  928. package/lib/ellipsis/src/Ellipsis.d.ts +14 -19
  929. package/lib/empty/src/Empty.d.ts +40 -37
  930. package/lib/empty/src/Empty.js +14 -18
  931. package/lib/empty/src/styles/index.cssr.js +19 -18
  932. package/lib/form/src/Feedbacks.d.ts +8 -10
  933. package/lib/form/src/Feedbacks.js +4 -1
  934. package/lib/form/src/Form.d.ts +44 -44
  935. package/lib/form/src/Form.js +16 -7
  936. package/lib/form/src/FormItem.d.ts +60 -70
  937. package/lib/form/src/FormItem.js +44 -28
  938. package/lib/form/src/FormItemCol.d.ts +63 -60
  939. package/lib/form/src/FormItemCol.js +1 -0
  940. package/lib/form/src/FormItemGridItem.d.ts +63 -66
  941. package/lib/form/src/FormItemGridItem.js +1 -0
  942. package/lib/form/src/FormItemRow.d.ts +68 -65
  943. package/lib/form/src/FormItemRow.js +1 -0
  944. package/lib/form/src/interface.d.ts +8 -4
  945. package/lib/form/src/interface.js +3 -2
  946. package/lib/form/src/styles/form-item.cssr.js +39 -37
  947. package/lib/form/src/utils.d.ts +2 -2
  948. package/lib/form/src/utils.js +29 -18
  949. package/lib/global-style/src/GlobalStyle.d.ts +1 -1
  950. package/lib/gradient-text/src/GradientText.d.ts +21 -28
  951. package/lib/gradient-text/src/GradientText.js +5 -5
  952. package/lib/gradient-text/src/styles/index.cssr.js +9 -9
  953. package/lib/grid/src/Grid.d.ts +27 -22
  954. package/lib/grid/src/Grid.js +1 -1
  955. package/lib/grid/src/GridItem.d.ts +18 -18
  956. package/lib/grid/src/GridItem.js +2 -1
  957. package/lib/icon/src/Icon.d.ts +17 -24
  958. package/lib/icon/src/Icon.js +4 -4
  959. package/lib/icon/src/styles/index.cssr.js +7 -7
  960. package/lib/image/src/Image.d.ts +295 -39
  961. package/lib/image/src/Image.js +4 -17
  962. package/lib/image/src/ImageGroup.d.ts +274 -8
  963. package/lib/image/src/ImageGroup.js +6 -8
  964. package/lib/image/src/ImagePreview.d.ts +203 -18
  965. package/lib/image/src/ImagePreview.js +68 -44
  966. package/lib/image/src/interface.d.ts +94 -0
  967. package/lib/image/src/interface.js +3 -0
  968. package/lib/image/src/styles/index.cssr.js +11 -7
  969. package/lib/image/styles/dark.js +8 -1
  970. package/lib/image/styles/light.d.ts +32 -3
  971. package/lib/image/styles/light.js +8 -1
  972. package/lib/index.d.ts +1 -1
  973. package/lib/index.js +2 -1
  974. package/lib/input/src/Input.d.ts +158 -155
  975. package/lib/input/src/Input.js +122 -76
  976. package/lib/input/src/InputGroup.d.ts +5 -9
  977. package/lib/input/src/InputGroupLabel.d.ts +24 -25
  978. package/lib/input/src/InputGroupLabel.js +11 -10
  979. package/lib/input/src/WordCount.d.ts +1 -1
  980. package/lib/input/src/interface.d.ts +2 -2
  981. package/lib/input/src/interface.js +2 -1
  982. package/lib/input/src/styles/input-group-label.cssr.js +18 -18
  983. package/lib/input/src/styles/input.cssr.js +137 -155
  984. package/lib/input-number/src/InputNumber.d.ts +68 -56
  985. package/lib/input-number/src/InputNumber.js +5 -2
  986. package/lib/input-number/src/utils.js +2 -1
  987. package/lib/layout/src/Layout.d.ts +96 -71
  988. package/lib/layout/src/Layout.js +5 -4
  989. package/lib/layout/src/LayoutContent.d.ts +36 -34
  990. package/lib/layout/src/LayoutFooter.d.ts +14 -19
  991. package/lib/layout/src/LayoutFooter.js +7 -7
  992. package/lib/layout/src/LayoutHeader.d.ts +17 -19
  993. package/lib/layout/src/LayoutHeader.js +7 -7
  994. package/lib/layout/src/LayoutSider.d.ts +64 -61
  995. package/lib/layout/src/LayoutSider.js +13 -13
  996. package/lib/layout/src/ToggleBar.d.ts +7 -8
  997. package/lib/layout/src/ToggleButton.d.ts +7 -8
  998. package/lib/layout/src/interface.d.ts +2 -2
  999. package/lib/layout/src/interface.js +2 -1
  1000. package/lib/layout/src/styles/layout-footer.cssr.js +11 -11
  1001. package/lib/layout/src/styles/layout-header.cssr.js +11 -11
  1002. package/lib/layout/src/styles/layout-sider.cssr.js +45 -37
  1003. package/lib/layout/src/styles/layout.cssr.js +8 -8
  1004. package/lib/legacy-grid/src/Col.d.ts +18 -11
  1005. package/lib/legacy-grid/src/Row.d.ts +11 -13
  1006. package/lib/legacy-grid/src/Row.js +1 -1
  1007. package/lib/list/src/List.d.ts +29 -30
  1008. package/lib/list/src/List.js +16 -14
  1009. package/lib/list/src/ListItem.d.ts +1 -1
  1010. package/lib/list/src/ListItem.js +2 -2
  1011. package/lib/list/src/styles/index.cssr.js +30 -30
  1012. package/lib/loading-bar/src/LoadingBar.d.ts +4 -4
  1013. package/lib/loading-bar/src/LoadingBar.js +3 -3
  1014. package/lib/loading-bar/src/LoadingBarProvider.d.ts +22 -23
  1015. package/lib/loading-bar/src/LoadingBarProvider.js +6 -5
  1016. package/lib/loading-bar/src/styles/index.cssr.js +7 -7
  1017. package/lib/locales/common/deDE.js +10 -0
  1018. package/lib/locales/common/enUS.d.ts +9 -0
  1019. package/lib/locales/common/enUS.js +10 -0
  1020. package/lib/locales/common/esAR.d.ts +109 -0
  1021. package/lib/locales/common/esAR.js +112 -0
  1022. package/lib/locales/common/frFR.js +17 -8
  1023. package/lib/locales/common/idID.js +10 -0
  1024. package/lib/locales/common/itIT.d.ts +3 -0
  1025. package/lib/locales/common/itIT.js +111 -0
  1026. package/lib/locales/common/jaJP.js +10 -0
  1027. package/lib/locales/common/nbNO.js +10 -0
  1028. package/lib/locales/common/ruRU.js +10 -0
  1029. package/lib/locales/common/ukUA.js +10 -0
  1030. package/lib/locales/common/zhCN.js +9 -0
  1031. package/lib/locales/common/zhTW.js +10 -0
  1032. package/lib/locales/date/esAR.d.ts +3 -0
  1033. package/lib/locales/date/esAR.js +11 -0
  1034. package/lib/locales/date/itIT.d.ts +3 -0
  1035. package/lib/locales/date/itIT.js +11 -0
  1036. package/lib/locales/index.d.ts +4 -0
  1037. package/lib/locales/index.js +9 -1
  1038. package/lib/log/src/Log.d.ts +48 -46
  1039. package/lib/log/src/Log.js +1 -1
  1040. package/lib/log/src/LogLine.d.ts +6 -5
  1041. package/lib/log/src/LogLoader.d.ts +6 -5
  1042. package/lib/mention/src/Mention.d.ts +56 -57
  1043. package/lib/mention/src/Mention.js +1 -1
  1044. package/lib/mention/src/styles/index.cssr.js +2 -2
  1045. package/lib/mention/src/utils.js +0 -1
  1046. package/lib/menu/src/Menu.d.ts +87 -88
  1047. package/lib/menu/src/Menu.js +44 -41
  1048. package/lib/menu/src/MenuDivider.d.ts +1 -1
  1049. package/lib/menu/src/MenuOption.d.ts +22 -295
  1050. package/lib/menu/src/MenuOption.js +2 -1
  1051. package/lib/menu/src/MenuOptionContent.d.ts +33 -305
  1052. package/lib/menu/src/MenuOptionGroup.d.ts +20 -20
  1053. package/lib/menu/src/MenuOptionGroup.js +3 -2
  1054. package/lib/menu/src/Submenu.d.ts +35 -301
  1055. package/lib/menu/src/Submenu.js +4 -2
  1056. package/lib/menu/src/styles/index.cssr.js +71 -71
  1057. package/lib/menu/src/use-menu-child-props.d.ts +2 -1
  1058. package/lib/menu/src/use-menu-child.d.ts +5 -7
  1059. package/lib/menu/src/use-menu-child.js +1 -3
  1060. package/lib/message/index.d.ts +2 -1
  1061. package/lib/message/src/Message.d.ts +205 -53
  1062. package/lib/message/src/Message.js +35 -33
  1063. package/lib/message/src/MessageEnvironment.d.ts +28 -36
  1064. package/lib/message/src/MessageProvider.d.ts +29 -40
  1065. package/lib/message/src/MessageProvider.js +7 -7
  1066. package/lib/message/src/message-props.d.ts +5 -2
  1067. package/lib/message/src/styles/index.cssr.js +48 -48
  1068. package/lib/message/src/types.d.ts +15 -0
  1069. package/lib/message/src/types.js +2 -0
  1070. package/lib/modal/src/BodyWrapper.d.ts +97 -64
  1071. package/lib/modal/src/BodyWrapper.js +30 -21
  1072. package/lib/modal/src/Modal.d.ts +134 -966
  1073. package/lib/modal/src/Modal.js +27 -8
  1074. package/lib/modal/src/interface.d.ts +3 -3
  1075. package/lib/modal/src/interface.js +3 -2
  1076. package/lib/modal/src/presetProps.d.ts +2 -1
  1077. package/lib/modal/src/styles/index.cssr.js +8 -8
  1078. package/lib/notification/src/Notification.d.ts +44 -46
  1079. package/lib/notification/src/Notification.js +24 -24
  1080. package/lib/notification/src/NotificationContainer.d.ts +10 -7
  1081. package/lib/notification/src/NotificationEnvironment.d.ts +32 -40
  1082. package/lib/notification/src/NotificationProvider.d.ts +32 -35
  1083. package/lib/notification/src/NotificationProvider.js +6 -6
  1084. package/lib/notification/src/styles/index.cssr.js +65 -65
  1085. package/lib/number-animation/index.d.ts +3 -0
  1086. package/lib/number-animation/index.js +8 -0
  1087. package/lib/number-animation/src/NumberAnimation.d.ts +91 -0
  1088. package/lib/number-animation/src/NumberAnimation.js +98 -0
  1089. package/lib/number-animation/src/utils.d.ts +8 -0
  1090. package/lib/number-animation/src/utils.js +21 -0
  1091. package/lib/page-header/index.d.ts +1 -1
  1092. package/lib/page-header/src/PageHeader.d.ts +23 -31
  1093. package/lib/page-header/src/PageHeader.js +14 -15
  1094. package/lib/page-header/src/styles/index.cssr.js +23 -23
  1095. package/lib/pagination/index.d.ts +1 -1
  1096. package/lib/pagination/src/Pagination.d.ts +107 -102
  1097. package/lib/pagination/src/Pagination.js +117 -63
  1098. package/lib/pagination/src/interface.d.ts +10 -1
  1099. package/lib/pagination/src/styles/index.cssr.js +81 -81
  1100. package/lib/pagination/src/utils.d.ts +2 -2
  1101. package/lib/pagination/src/utils.js +2 -4
  1102. package/lib/pagination/styles/light.d.ts +1 -0
  1103. package/lib/popconfirm/src/Popconfirm.d.ts +94 -86
  1104. package/lib/popconfirm/src/PopconfirmPanel.d.ts +20 -18
  1105. package/lib/popconfirm/src/PopconfirmPanel.js +7 -8
  1106. package/lib/popconfirm/src/interface.d.ts +2 -2
  1107. package/lib/popconfirm/src/interface.js +2 -1
  1108. package/lib/popconfirm/src/styles/index.cssr.js +8 -8
  1109. package/lib/popover/src/Popover.d.ts +93 -77
  1110. package/lib/popover/src/Popover.js +23 -0
  1111. package/lib/popover/src/PopoverBody.d.ts +35 -51
  1112. package/lib/popover/src/PopoverBody.js +45 -60
  1113. package/lib/popover/src/interface.d.ts +2 -2
  1114. package/lib/popover/src/interface.js +2 -1
  1115. package/lib/popover/src/styles/index.cssr.js +63 -62
  1116. package/lib/popselect/src/Popselect.d.ts +139 -155
  1117. package/lib/popselect/src/Popselect.js +2 -2
  1118. package/lib/popselect/src/PopselectPanel.d.ts +24 -30
  1119. package/lib/popselect/src/interface.d.ts +2 -2
  1120. package/lib/popselect/src/interface.js +2 -1
  1121. package/lib/progress/src/Circle.d.ts +40 -26
  1122. package/lib/progress/src/Circle.js +8 -1
  1123. package/lib/progress/src/Line.d.ts +37 -32
  1124. package/lib/progress/src/Line.js +4 -1
  1125. package/lib/progress/src/MultipleCircle.d.ts +38 -21
  1126. package/lib/progress/src/Progress.d.ts +71 -64
  1127. package/lib/progress/src/Progress.js +16 -16
  1128. package/lib/progress/src/styles/index.cssr.js +68 -68
  1129. package/lib/radio/src/Radio.d.ts +45 -46
  1130. package/lib/radio/src/Radio.js +15 -15
  1131. package/lib/radio/src/RadioButton.d.ts +24 -22
  1132. package/lib/radio/src/RadioGroup.d.ts +35 -41
  1133. package/lib/radio/src/RadioGroup.js +14 -14
  1134. package/lib/radio/src/styles/radio-group.cssr.js +43 -43
  1135. package/lib/radio/src/styles/radio.cssr.js +40 -37
  1136. package/lib/radio/src/use-radio.d.ts +2 -2
  1137. package/lib/radio/src/use-radio.js +1 -1
  1138. package/lib/rate/src/Rate.d.ts +30 -35
  1139. package/lib/rate/src/Rate.js +4 -4
  1140. package/lib/rate/src/styles/index.cssr.js +11 -11
  1141. package/lib/result/src/Result.d.ts +27 -30
  1142. package/lib/result/src/Result.js +17 -18
  1143. package/lib/result/src/styles/index.cssr.js +26 -26
  1144. package/lib/scrollbar/src/ScrollBar.d.ts +10 -17
  1145. package/lib/select/index.d.ts +1 -1
  1146. package/lib/select/src/Select.d.ts +135 -122
  1147. package/lib/select/src/Select.js +40 -63
  1148. package/lib/select/src/interface.d.ts +4 -0
  1149. package/lib/select/src/styles/index.cssr.js +2 -2
  1150. package/lib/select/styles/light.d.ts +1 -0
  1151. package/lib/skeleton/src/Skeleton.d.ts +29 -34
  1152. package/lib/skeleton/src/Skeleton.js +3 -3
  1153. package/lib/skeleton/src/styles/index.cssr.js +12 -12
  1154. package/lib/slider/src/Slider.d.ts +80 -80
  1155. package/lib/slider/src/Slider.js +31 -30
  1156. package/lib/slider/src/styles/index.cssr.js +87 -87
  1157. package/lib/space/src/Space.d.ts +24 -27
  1158. package/lib/spin/src/Spin.d.ts +33 -32
  1159. package/lib/spin/src/Spin.js +5 -5
  1160. package/lib/spin/src/styles/index.cssr.js +15 -15
  1161. package/lib/statistic/src/Statistic.d.ts +32 -60
  1162. package/lib/statistic/src/Statistic.js +14 -21
  1163. package/lib/statistic/src/styles/index.cssr.js +19 -19
  1164. package/lib/steps/src/Step.d.ts +9 -12
  1165. package/lib/steps/src/Step.js +4 -6
  1166. package/lib/steps/src/Steps.d.ts +20 -23
  1167. package/lib/steps/src/Steps.js +1 -1
  1168. package/lib/switch/src/Switch.d.ts +45 -40
  1169. package/lib/table/src/Table.d.ts +47 -46
  1170. package/lib/table/src/Table.js +21 -21
  1171. package/lib/table/src/Tbody.d.ts +1 -1
  1172. package/lib/table/src/Td.d.ts +1 -1
  1173. package/lib/table/src/Th.d.ts +1 -1
  1174. package/lib/table/src/Thead.d.ts +1 -1
  1175. package/lib/table/src/Tr.d.ts +1 -1
  1176. package/lib/table/src/styles/index.cssr.js +55 -55
  1177. package/lib/tabs/index.d.ts +1 -0
  1178. package/lib/tabs/src/Tab.d.ts +30 -37
  1179. package/lib/tabs/src/Tab.js +10 -3
  1180. package/lib/tabs/src/TabPane.d.ts +32 -38
  1181. package/lib/tabs/src/TabPane.js +12 -13
  1182. package/lib/tabs/src/Tabs.d.ts +39 -54
  1183. package/lib/tabs/src/Tabs.js +27 -24
  1184. package/lib/tabs/src/interface.d.ts +5 -2
  1185. package/lib/tabs/src/interface.js +2 -1
  1186. package/lib/tabs/src/styles/index.cssr.js +4 -1
  1187. package/lib/tabs/styles/light.js +1 -1
  1188. package/lib/tag/src/Tag.d.ts +43 -47
  1189. package/lib/tag/src/Tag.js +2 -1
  1190. package/lib/theme-editor/src/ThemeEditor.d.ts +1 -1
  1191. package/lib/theme-editor/src/ThemeEditor.js +160 -157
  1192. package/lib/themes/index.d.ts +1 -0
  1193. package/lib/themes/index.js +3 -1
  1194. package/lib/thing/src/Thing.d.ts +16 -23
  1195. package/lib/thing/src/Thing.js +24 -28
  1196. package/lib/thing/src/styles/index.cssr.js +11 -11
  1197. package/lib/time/src/Time.d.ts +18 -18
  1198. package/lib/time-picker/index.d.ts +1 -0
  1199. package/lib/time-picker/src/Panel.d.ts +75 -72
  1200. package/lib/time-picker/src/PanelCol.d.ts +15 -12
  1201. package/lib/time-picker/src/TimePicker.d.ts +111 -78
  1202. package/lib/time-picker/src/TimePicker.js +76 -70
  1203. package/lib/time-picker/src/interface.d.ts +10 -4
  1204. package/lib/time-picker/src/interface.js +2 -1
  1205. package/lib/timeline/src/Timeline.d.ts +21 -24
  1206. package/lib/timeline/src/Timeline.js +2 -1
  1207. package/lib/timeline/src/TimelineItem.d.ts +10 -14
  1208. package/lib/timeline/src/TimelineItem.js +3 -3
  1209. package/lib/tooltip/src/Tooltip.d.ts +85 -75
  1210. package/lib/transfer/src/Transfer.d.ts +60 -64
  1211. package/lib/transfer/src/Transfer.js +21 -21
  1212. package/lib/transfer/src/TransferFilter.d.ts +17 -16
  1213. package/lib/transfer/src/TransferHeader.d.ts +11 -10
  1214. package/lib/transfer/src/TransferList.d.ts +35 -19
  1215. package/lib/transfer/src/TransferList.js +5 -7
  1216. package/lib/transfer/src/TransferListItem.d.ts +18 -11
  1217. package/lib/transfer/src/interface.d.ts +2 -2
  1218. package/lib/transfer/src/interface.js +2 -1
  1219. package/lib/transfer/src/styles/index.cssr.js +38 -38
  1220. package/lib/tree/src/MotionWrapper.d.ts +19 -14
  1221. package/lib/tree/src/Tree.d.ts +127 -134
  1222. package/lib/tree/src/Tree.js +4 -2
  1223. package/lib/tree/src/TreeNode.d.ts +10 -7
  1224. package/lib/tree/src/TreeNodeCheckbox.d.ts +11 -16
  1225. package/lib/tree/src/TreeNodeContent.d.ts +15 -18
  1226. package/lib/tree/src/TreeNodeSwitcher.d.ts +10 -14
  1227. package/lib/tree/src/TreeNodeSwitcher.js +24 -13
  1228. package/lib/tree/src/interface.d.ts +4 -2
  1229. package/lib/tree/src/interface.js +2 -1
  1230. package/lib/tree/src/styles/index.cssr.js +4 -2
  1231. package/lib/tree-select/src/TreeSelect.d.ts +112 -97
  1232. package/lib/tree-select/src/TreeSelect.js +1 -3
  1233. package/lib/tree-select/src/interface.d.ts +2 -2
  1234. package/lib/tree-select/src/interface.js +2 -1
  1235. package/lib/tree-select/styles/light.d.ts +1 -0
  1236. package/lib/typography/src/a.d.ts +8 -12
  1237. package/lib/typography/src/blockquote.d.ts +9 -15
  1238. package/lib/typography/src/create-header.d.ts +14 -19
  1239. package/lib/typography/src/headers.d.ts +84 -114
  1240. package/lib/typography/src/hr.d.ts +8 -12
  1241. package/lib/typography/src/li.d.ts +1 -1
  1242. package/lib/typography/src/ol.d.ts +9 -15
  1243. package/lib/typography/src/p.d.ts +9 -14
  1244. package/lib/typography/src/text.d.ts +24 -31
  1245. package/lib/typography/src/text.js +3 -2
  1246. package/lib/typography/src/ul.d.ts +9 -15
  1247. package/lib/upload/src/Upload.d.ts +95 -85
  1248. package/lib/upload/src/Upload.js +22 -10
  1249. package/lib/upload/src/UploadDragger.d.ts +1 -1
  1250. package/lib/upload/src/UploadFile.d.ts +18 -13
  1251. package/lib/upload/src/UploadFileList.d.ts +1 -1
  1252. package/lib/upload/src/UploadFileList.js +2 -2
  1253. package/lib/upload/src/UploadProgress.d.ts +11 -9
  1254. package/lib/upload/src/UploadTrigger.d.ts +3 -5
  1255. package/lib/upload/src/interface.d.ts +14 -6
  1256. package/lib/upload/src/interface.js +2 -1
  1257. package/lib/version.d.ts +1 -1
  1258. package/lib/version.js +1 -1
  1259. package/package.json +32 -23
  1260. package/volar.d.ts +144 -0
  1261. package/web-types.json +766 -54
@@ -27,9 +27,18 @@ const modalProps = Object.assign(Object.assign(Object.assign(Object.assign({}, _
27
27
  }, transformOrigin: {
28
28
  type: String,
29
29
  default: 'mouse'
30
+ }, zIndex: Number, autoFocus: {
31
+ type: Boolean,
32
+ default: true
33
+ }, trapFocus: {
34
+ type: Boolean,
35
+ default: true
36
+ }, closeOnEsc: {
37
+ type: Boolean,
38
+ default: true
30
39
  } }), presetProps_1.presetProps), {
31
40
  // events
32
- 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], onAfterEnter: Function, onBeforeLeave: Function, onAfterLeave: Function, onClose: Function, onPositiveClick: Function, onNegativeClick: Function, onMaskClick: Function,
41
+ onEsc: Function, 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], onAfterEnter: Function, onBeforeLeave: Function, onAfterLeave: Function, onClose: Function, onPositiveClick: Function, onNegativeClick: Function, onMaskClick: Function,
33
42
  // private
34
43
  dialog: Boolean, appear: {
35
44
  type: Boolean,
@@ -142,6 +151,13 @@ exports.default = (0, vue_1.defineComponent)({
142
151
  }
143
152
  }
144
153
  }
154
+ function handleEsc(e) {
155
+ var _a;
156
+ (_a = props.onEsc) === null || _a === void 0 ? void 0 : _a.call(props);
157
+ if (props.closeOnEsc) {
158
+ doUpdateShow(false);
159
+ }
160
+ }
145
161
  (0, vue_1.provide)(interface_1.modalInjectionKey, {
146
162
  getMousePosition: () => {
147
163
  if (NDialogProvider) {
@@ -168,8 +184,10 @@ exports.default = (0, vue_1.defineComponent)({
168
184
  containerRef,
169
185
  presetProps: (0, vue_1.computed)(() => {
170
186
  const pickedProps = (0, _utils_1.keep)(props, presetProps_1.presetPropsKeys);
187
+ // TODO: remove as any after vue fix the issue introduced in 3.2.27
171
188
  return pickedProps;
172
189
  }),
190
+ handleEsc,
173
191
  handleAfterLeave,
174
192
  handleClickoutside,
175
193
  handleBeforeLeave,
@@ -180,10 +198,10 @@ exports.default = (0, vue_1.defineComponent)({
180
198
  cssVars: (0, vue_1.computed)(() => {
181
199
  const { common: { cubicBezierEaseOut }, self: { boxShadow, color, textColor } } = themeRef.value;
182
200
  return {
183
- '--bezier-ease-out': cubicBezierEaseOut,
184
- '--box-shadow': boxShadow,
185
- '--color': color,
186
- '--text-color': textColor
201
+ '--n-bezier-ease-out': cubicBezierEaseOut,
202
+ '--n-box-shadow': boxShadow,
203
+ '--n-color': color,
204
+ '--n-text-color': textColor
187
205
  };
188
206
  })
189
207
  };
@@ -194,16 +212,17 @@ exports.default = (0, vue_1.defineComponent)({
194
212
  default: () => {
195
213
  var _a;
196
214
  return [
197
- (0, vue_1.withDirectives)((0, vue_1.h)("div", { ref: "containerRef", class: [`${mergedClsPrefix}-modal-container`, this.namespace], style: this.cssVars },
215
+ (0, vue_1.withDirectives)((0, vue_1.h)("div", { role: "none", ref: "containerRef", class: [`${mergedClsPrefix}-modal-container`, this.namespace], style: this.cssVars },
198
216
  this.unstableShowMask ? ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-transition", key: "mask", appear: (_a = this.appear) !== null && _a !== void 0 ? _a : this.isMounted }, {
199
217
  default: () => {
200
- return this.show ? ((0, vue_1.h)("div", { ref: "containerRef", class: `${mergedClsPrefix}-modal-mask` })) : null;
218
+ return this.show ? ((0, vue_1.h)("div", { "aria-hidden": true, ref: "containerRef", class: `${mergedClsPrefix}-modal-mask` })) : null;
201
219
  }
202
220
  })) : null,
203
- (0, vue_1.h)(BodyWrapper_1.default, Object.assign({ style: this.overlayStyle }, this.$attrs, { ref: 'bodyWrapper', displayDirective: this.displayDirective, show: this.show, preset: this.preset }, this.presetProps, { onClose: this.handleCloseClick, onNegativeClick: this.handleNegativeClick, onPositiveClick: this.handlePositiveClick, onBeforeLeave: this.handleBeforeLeave, onAfterEnter: this.onAfterEnter, onAfterLeave: this.handleAfterLeave, onClickoutside: this.handleClickoutside }), this.$slots)), [
221
+ (0, vue_1.h)(BodyWrapper_1.default, Object.assign({ style: this.overlayStyle }, this.$attrs, { ref: 'bodyWrapper', displayDirective: this.displayDirective, show: this.show, preset: this.preset, autoFocus: this.autoFocus, trapFocus: this.trapFocus }, this.presetProps, { onEsc: this.handleEsc, onClose: this.handleCloseClick, onNegativeClick: this.handleNegativeClick, onPositiveClick: this.handlePositiveClick, onBeforeLeave: this.handleBeforeLeave, onAfterEnter: this.onAfterEnter, onAfterLeave: this.handleAfterLeave, onClickoutside: this.handleClickoutside }), this.$slots)), [
204
222
  [
205
223
  vdirs_1.zindexable,
206
224
  {
225
+ zIndex: this.zIndex,
207
226
  enabled: this.show
208
227
  }
209
228
  ]
@@ -1,8 +1,8 @@
1
- import { Ref, ComponentPublicInstance, InjectionKey } from 'vue';
1
+ import { Ref, ComponentPublicInstance } from 'vue';
2
2
  import type { MergedTheme } from '../../_mixins';
3
3
  import type { ModalTheme } from '../styles';
4
4
  export declare type ModalBodyInjection = Ref<HTMLElement | ComponentPublicInstance | null> | null;
5
- export declare const modalBodyInjectionKey: InjectionKey<ModalBodyInjection>;
5
+ export declare const modalBodyInjectionKey: import("vue").InjectionKey<ModalBodyInjection>;
6
6
  export interface ModalInjection {
7
7
  getMousePosition: () => {
8
8
  x: number;
@@ -14,4 +14,4 @@ export interface ModalInjection {
14
14
  appearRef: Ref<boolean | undefined>;
15
15
  transformOriginRef: Ref<'mouse' | 'center'>;
16
16
  }
17
- export declare const modalInjectionKey: InjectionKey<ModalInjection>;
17
+ export declare const modalInjectionKey: import("vue").InjectionKey<ModalInjection>;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.modalInjectionKey = exports.modalBodyInjectionKey = void 0;
4
- exports.modalBodyInjectionKey = Symbol('modalBody');
5
- exports.modalInjectionKey = Symbol('modal');
4
+ const create_injection_key_1 = require("../../_utils/vue/create-injection-key");
5
+ exports.modalBodyInjectionKey = (0, create_injection_key_1.createInjectionKey)('n-modal-body');
6
+ exports.modalInjectionKey = (0, create_injection_key_1.createInjectionKey)('n-modal');
@@ -36,6 +36,7 @@ declare const presetProps: {
36
36
  readonly default: "medium";
37
37
  };
38
38
  hoverable: BooleanConstructor;
39
+ role: StringConstructor;
39
40
  };
40
- declare const presetPropsKeys: ("type" | "content" | "size" | "icon" | "title" | "action" | "positiveText" | "negativeText" | "loading" | "bordered" | "contentStyle" | "onClose" | "closable" | "showIcon" | "iconPlacement" | "hoverable" | "headerStyle" | "footerStyle" | "embedded" | "segmented" | "onPositiveClick" | "onNegativeClick")[];
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")[];
41
42
  export { presetProps, presetPropsKeys };
@@ -15,10 +15,10 @@ const cssr_1 = require("../../../_utils/cssr");
15
15
  const fade_in_cssr_1 = __importDefault(require("../../../_styles/transitions/fade-in.cssr"));
16
16
 
17
17
  const fade_in_scale_up_cssr_1 = __importDefault(require("../../../_styles/transitions/fade-in-scale-up.cssr")); // vars:
18
- // --bezier-ease-out
19
- // --box-shadow
20
- // --color
21
- // --text-color
18
+ // --n-bezier-ease-out
19
+ // --n-box-shadow
20
+ // --n-color
21
+ // --n-text-color
22
22
 
23
23
 
24
24
  exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('modal-container', `
@@ -38,8 +38,8 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('modal-container', `
38
38
  `, [(0, fade_in_cssr_1.default)({
39
39
  enterDuration: '.25s',
40
40
  leaveDuration: '.25s',
41
- enterCubicBezier: 'var(--bezier-ease-out)',
42
- leaveCubicBezier: 'var(--bezier-ease-out)'
41
+ enterCubicBezier: 'var(--n-bezier-ease-out)',
42
+ leaveCubicBezier: 'var(--n-bezier-ease-out)'
43
43
  })]), (0, cssr_1.cB)('modal-body-wrapper', `
44
44
  position: fixed;
45
45
  left: 0;
@@ -53,9 +53,9 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('modal-container', `
53
53
  position: relative;
54
54
  `)]), (0, cssr_1.cB)('modal', `
55
55
  align-self: center;
56
- color: var(--text-color);
56
+ color: var(--n-text-color);
57
57
  margin: auto;
58
- box-shadow: var(--box-shadow);
58
+ box-shadow: var(--n-box-shadow);
59
59
  `, [(0, fade_in_scale_up_cssr_1.default)({
60
60
  duration: '.25s',
61
61
  enterScale: '.5'
@@ -44,53 +44,51 @@ declare const _default: import("vue").DefineComponent<{
44
44
  showAvatar: import("vue").ComputedRef<boolean | (() => VNodeChild)>;
45
45
  handleCloseClick(): void;
46
46
  cssVars: import("vue").ComputedRef<{
47
- '--color': string;
48
- '--font-size': string;
49
- '--text-color': string;
50
- '--description-text-color': string;
51
- '--action-text-color': string;
52
- '--title-text-color': string;
53
- '--title-font-weight': string;
54
- '--bezier': string;
55
- '--bezier-ease-out': string;
56
- '--bezier-ease-in': string;
57
- '--border-radius': string;
58
- '--box-shadow': string;
59
- '--close-color': string;
60
- '--close-color-hover': string;
61
- '--close-color-pressed': string;
62
- '--line-height': string;
63
- '--icon-color': string;
64
- '--close-margin': string;
65
- '--close-size': string;
66
- '--width': string;
67
- '--padding-left': string;
68
- '--padding-right': string;
69
- '--padding-top': string;
70
- '--padding-bottom': string;
47
+ '--n-color': string;
48
+ '--n-font-size': string;
49
+ '--n-text-color': string;
50
+ '--n-description-text-color': string;
51
+ '--n-action-text-color': string;
52
+ '--n-title-text-color': string;
53
+ '--n-title-font-weight': string;
54
+ '--n-bezier': string;
55
+ '--n-bezier-ease-out': string;
56
+ '--n-bezier-ease-in': string;
57
+ '--n-border-radius': string;
58
+ '--n-box-shadow': string;
59
+ '--n-close-color': string;
60
+ '--n-close-color-hover': string;
61
+ '--n-close-color-pressed': string;
62
+ '--n-line-height': string;
63
+ '--n-icon-color': string;
64
+ '--n-close-margin': string;
65
+ '--n-close-size': string;
66
+ '--n-width': string;
67
+ '--n-padding-left': string;
68
+ '--n-padding-right': string;
69
+ '--n-padding-top': string;
70
+ '--n-padding-bottom': string;
71
71
  }>;
72
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
73
- readonly closable?: unknown;
74
- readonly type?: unknown;
75
- readonly avatar?: unknown;
76
- readonly title?: unknown;
77
- readonly description?: unknown;
78
- readonly content?: unknown;
79
- readonly meta?: unknown;
80
- readonly action?: unknown;
81
- readonly onClose?: unknown;
82
- } & {
83
- type: "default" | "error" | "info" | "success" | "warning";
84
- onClose: () => void;
85
- closable: boolean;
86
- } & {
87
- meta?: string | (() => VNodeChild) | undefined;
88
- content?: string | (() => VNodeChild) | undefined;
89
- description?: string | (() => VNodeChild) | undefined;
90
- title?: string | (() => VNodeChild) | undefined;
91
- action?: string | (() => VNodeChild) | undefined;
92
- avatar?: (() => VNodeChild) | undefined;
93
- }>, {
72
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
73
+ readonly closable: {
74
+ readonly type: BooleanConstructor;
75
+ readonly default: true;
76
+ };
77
+ readonly type: {
78
+ readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
79
+ readonly default: "default";
80
+ };
81
+ readonly avatar: PropType<() => VNodeChild>;
82
+ readonly title: PropType<string | (() => VNodeChild)>;
83
+ readonly description: PropType<string | (() => VNodeChild)>;
84
+ readonly content: PropType<string | (() => VNodeChild)>;
85
+ readonly meta: PropType<string | (() => VNodeChild)>;
86
+ readonly action: PropType<string | (() => VNodeChild)>;
87
+ readonly onClose: {
88
+ readonly type: PropType<() => void>;
89
+ readonly required: true;
90
+ };
91
+ }>>, {
94
92
  type: "default" | "error" | "info" | "success" | "warning";
95
93
  closable: boolean;
96
94
  }>;
@@ -56,30 +56,30 @@ exports.default = (0, vue_1.defineComponent)({
56
56
  const { self: { color, textColor, closeColor, closeColorHover, closeColorPressed, headerTextColor, descriptionTextColor, actionTextColor, borderRadius, headerFontWeight, boxShadow, lineHeight, fontSize, closeMargin, closeSize, width, padding, [(0, _utils_1.createKey)('iconColor', type)]: iconColor }, common: { cubicBezierEaseOut, cubicBezierEaseIn, cubicBezierEaseInOut } } = mergedThemeRef.value;
57
57
  const { left, right, top, bottom } = (0, seemly_1.getPadding)(padding);
58
58
  return {
59
- '--color': color,
60
- '--font-size': fontSize,
61
- '--text-color': textColor,
62
- '--description-text-color': descriptionTextColor,
63
- '--action-text-color': actionTextColor,
64
- '--title-text-color': headerTextColor,
65
- '--title-font-weight': headerFontWeight,
66
- '--bezier': cubicBezierEaseInOut,
67
- '--bezier-ease-out': cubicBezierEaseOut,
68
- '--bezier-ease-in': cubicBezierEaseIn,
69
- '--border-radius': borderRadius,
70
- '--box-shadow': boxShadow,
71
- '--close-color': closeColor,
72
- '--close-color-hover': closeColorHover,
73
- '--close-color-pressed': closeColorPressed,
74
- '--line-height': lineHeight,
75
- '--icon-color': iconColor,
76
- '--close-margin': closeMargin,
77
- '--close-size': closeSize,
78
- '--width': width,
79
- '--padding-left': left,
80
- '--padding-right': right,
81
- '--padding-top': top,
82
- '--padding-bottom': bottom
59
+ '--n-color': color,
60
+ '--n-font-size': fontSize,
61
+ '--n-text-color': textColor,
62
+ '--n-description-text-color': descriptionTextColor,
63
+ '--n-action-text-color': actionTextColor,
64
+ '--n-title-text-color': headerTextColor,
65
+ '--n-title-font-weight': headerFontWeight,
66
+ '--n-bezier': cubicBezierEaseInOut,
67
+ '--n-bezier-ease-out': cubicBezierEaseOut,
68
+ '--n-bezier-ease-in': cubicBezierEaseIn,
69
+ '--n-border-radius': borderRadius,
70
+ '--n-box-shadow': boxShadow,
71
+ '--n-close-color': closeColor,
72
+ '--n-close-color-hover': closeColorHover,
73
+ '--n-close-color-pressed': closeColorPressed,
74
+ '--n-line-height': lineHeight,
75
+ '--n-icon-color': iconColor,
76
+ '--n-close-margin': closeMargin,
77
+ '--n-close-size': closeSize,
78
+ '--n-width': width,
79
+ '--n-padding-left': left,
80
+ '--n-padding-right': right,
81
+ '--n-padding-top': top,
82
+ '--n-padding-bottom': bottom
83
83
  };
84
84
  })
85
85
  };
@@ -152,11 +152,14 @@ declare const _default: import("vue").DefineComponent<{
152
152
  };
153
153
  }>;
154
154
  mergedClsPrefix: import("vue").Ref<string>;
155
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
156
- scrollable?: unknown;
157
- placement?: unknown;
158
- } & {
159
- placement: "top-left" | "top-right" | "bottom-left" | "bottom-right";
160
- scrollable: boolean;
161
- } & {}>, {}>;
155
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
156
+ scrollable: {
157
+ type: BooleanConstructor;
158
+ required: true;
159
+ };
160
+ placement: {
161
+ type: PropType<"top-left" | "top-right" | "bottom-left" | "bottom-right">;
162
+ required: true;
163
+ };
164
+ }>>, {}>;
162
165
  export default _default;
@@ -66,46 +66,38 @@ declare const _default: import("vue").DefineComponent<{
66
66
  handleBeforeLeave: (el: HTMLElement) => void;
67
67
  handleAfterEnter: (el: HTMLElement) => void;
68
68
  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<{
70
- internalKey?: unknown;
71
- onInternalAfterLeave?: unknown;
72
- duration?: unknown;
73
- onClose?: unknown;
74
- onLeave?: unknown;
75
- onAfterEnter?: unknown;
76
- onAfterLeave?: unknown;
77
- onHide?: unknown;
78
- onAfterShow?: unknown;
79
- onAfterHide?: unknown;
80
- closable?: unknown;
81
- type?: unknown;
82
- avatar?: unknown;
83
- title?: unknown;
84
- description?: unknown;
85
- content?: unknown;
86
- meta?: unknown;
87
- action?: unknown;
88
- } & {
89
- type: "default" | "error" | "info" | "success" | "warning";
90
- closable: boolean;
91
- internalKey: string;
92
- onInternalAfterLeave: (key: string) => void;
93
- } & {
94
- meta?: string | (() => import("vue").VNodeChild) | undefined;
95
- content?: string | (() => import("vue").VNodeChild) | undefined;
96
- description?: string | (() => import("vue").VNodeChild) | undefined;
97
- duration?: number | undefined;
98
- onAfterEnter?: (() => void) | undefined;
99
- onLeave?: (() => void) | undefined;
100
- onAfterLeave?: (() => void) | undefined;
101
- title?: string | (() => import("vue").VNodeChild) | undefined;
102
- action?: string | (() => import("vue").VNodeChild) | undefined;
103
- avatar?: (() => import("vue").VNodeChild) | undefined;
104
- onClose?: (() => any) | undefined;
105
- onHide?: (() => void) | undefined;
106
- onAfterHide?: (() => void) | undefined;
107
- onAfterShow?: (() => void) | undefined;
108
- }>, {
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
+ internalKey: {
71
+ type: StringConstructor;
72
+ required: true;
73
+ };
74
+ onInternalAfterLeave: {
75
+ type: PropType<(key: string) => void>;
76
+ required: true;
77
+ };
78
+ duration: NumberConstructor;
79
+ onClose: PropType<() => any>;
80
+ onLeave: PropType<() => void>;
81
+ onAfterEnter: PropType<() => void>;
82
+ onAfterLeave: PropType<() => void>;
83
+ onHide: PropType<() => void>;
84
+ onAfterShow: PropType<() => void>;
85
+ onAfterHide: PropType<() => void>;
86
+ closable: {
87
+ readonly type: BooleanConstructor;
88
+ readonly default: true;
89
+ };
90
+ type: {
91
+ readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
92
+ readonly default: "default";
93
+ };
94
+ avatar: PropType<() => import("vue").VNodeChild>;
95
+ title: PropType<string | (() => import("vue").VNodeChild)>;
96
+ description: PropType<string | (() => import("vue").VNodeChild)>;
97
+ content: PropType<string | (() => import("vue").VNodeChild)>;
98
+ meta: PropType<string | (() => import("vue").VNodeChild)>;
99
+ action: PropType<string | (() => import("vue").VNodeChild)>;
100
+ }>>, {
109
101
  type: "default" | "error" | "info" | "success" | "warning";
110
102
  closable: boolean;
111
103
  }>;
@@ -1,4 +1,4 @@
1
- import { PropType, ExtractPropTypes, InjectionKey, Ref } from 'vue';
1
+ import { PropType, ExtractPropTypes, Ref } from 'vue';
2
2
  import type { MergedTheme } from '../../_mixins';
3
3
  import { ExtractPublicPropTypes, Mutable } from '../../_utils';
4
4
  import { NotificationTheme } from '../styles';
@@ -8,7 +8,7 @@ export interface NotificationProviderInjection {
8
8
  mergedClsPrefixRef: Ref<string>;
9
9
  mergedThemeRef: Ref<MergedTheme<NotificationTheme>>;
10
10
  }
11
- export declare const notificationProviderInjectionKey: InjectionKey<NotificationProviderInjection>;
11
+ export declare const notificationProviderInjectionKey: import("vue").InjectionKey<NotificationProviderInjection>;
12
12
  declare type Create = (options: NotificationOptions) => NotificationReactive;
13
13
  declare type TypedCreate = (options: Omit<NotificationOptions, 'type'>) => NotificationReactive;
14
14
  export interface NotificationApiInjection {
@@ -22,7 +22,7 @@ export interface NotificationApiInjection {
22
22
  destroyAll: () => void;
23
23
  }
24
24
  export declare type NotificationProviderInst = NotificationApiInjection;
25
- export declare const notificationApiInjectionKey: InjectionKey<NotificationApiInjection>;
25
+ export declare const notificationApiInjectionKey: import("vue").InjectionKey<NotificationApiInjection>;
26
26
  export declare type NotificationReactive = {
27
27
  readonly key: string;
28
28
  readonly destroy: () => void;
@@ -239,22 +239,22 @@ declare const _default: import("vue").DefineComponent<{
239
239
  readonly destroy: () => void;
240
240
  readonly hide: () => void;
241
241
  readonly deactivate: () => void;
242
+ type?: "default" | "error" | "info" | "success" | "warning" | undefined;
243
+ closable?: boolean | undefined;
244
+ meta?: string | (() => import("vue").VNodeChild) | undefined;
245
+ content?: string | (() => import("vue").VNodeChild) | undefined;
246
+ description?: string | (() => import("vue").VNodeChild) | undefined;
242
247
  duration?: number | undefined;
243
- onClose?: (() => any) | undefined;
244
- onLeave?: (() => void) | undefined;
245
248
  onAfterEnter?: (() => void) | undefined;
249
+ onLeave?: (() => void) | undefined;
246
250
  onAfterLeave?: (() => void) | undefined;
247
- onHide?: (() => void) | undefined;
248
- onAfterShow?: (() => void) | undefined;
249
- onAfterHide?: (() => void) | undefined;
250
- closable?: boolean | undefined;
251
- type?: "default" | "error" | "info" | "success" | "warning" | undefined;
252
- avatar?: (() => import("vue").VNodeChild) | undefined;
253
251
  title?: string | (() => import("vue").VNodeChild) | undefined;
254
- description?: string | (() => import("vue").VNodeChild) | undefined;
255
- content?: string | (() => import("vue").VNodeChild) | undefined;
256
- meta?: string | (() => import("vue").VNodeChild) | undefined;
257
252
  action?: string | (() => import("vue").VNodeChild) | undefined;
253
+ avatar?: (() => import("vue").VNodeChild) | undefined;
254
+ onClose?: (() => any) | undefined;
255
+ onHide?: (() => void) | undefined;
256
+ onAfterHide?: (() => void) | undefined;
257
+ onAfterShow?: (() => void) | undefined;
258
258
  }[]>;
259
259
  notificationRefs: Record<string, NotificationRef>;
260
260
  handleAfterLeave: (key: string) => void;
@@ -266,21 +266,18 @@ declare const _default: import("vue").DefineComponent<{
266
266
  error: (options: Omit<NotificationOptions, 'type'>) => NotificationReactive;
267
267
  open: (options: NotificationOptions) => NotificationReactive;
268
268
  destroyAll: () => void;
269
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
270
- to?: unknown;
271
- scrollable?: unknown;
272
- max?: unknown;
273
- placement?: unknown;
274
- theme?: unknown;
275
- themeOverrides?: unknown;
276
- builtinThemeOverrides?: unknown;
277
- } & {
278
- placement: "top-left" | "top-right" | "bottom-left" | "bottom-right";
279
- scrollable: boolean;
280
- } & {
281
- max?: number | undefined;
282
- to?: string | HTMLElement | undefined;
283
- theme?: import("../../_mixins").Theme<"Notification", {
269
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
270
+ to: PropType<string | HTMLElement>;
271
+ scrollable: {
272
+ type: BooleanConstructor;
273
+ default: boolean;
274
+ };
275
+ max: NumberConstructor;
276
+ placement: {
277
+ type: PropType<"top-left" | "top-right" | "bottom-left" | "bottom-right">;
278
+ default: string;
279
+ };
280
+ theme: PropType<import("../../_mixins").Theme<"Notification", {
284
281
  borderRadius: string;
285
282
  lineHeight: string;
286
283
  fontSize: string;
@@ -308,8 +305,8 @@ declare const _default: import("vue").DefineComponent<{
308
305
  color: string;
309
306
  colorHover: string;
310
307
  }, any>;
311
- }> | undefined;
312
- themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Notification", {
308
+ }>>;
309
+ themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Notification", {
313
310
  borderRadius: string;
314
311
  lineHeight: string;
315
312
  fontSize: string;
@@ -337,8 +334,8 @@ declare const _default: import("vue").DefineComponent<{
337
334
  color: string;
338
335
  colorHover: string;
339
336
  }, any>;
340
- }>> | undefined;
341
- builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Notification", {
337
+ }>>>;
338
+ builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Notification", {
342
339
  borderRadius: string;
343
340
  lineHeight: string;
344
341
  fontSize: string;
@@ -366,8 +363,8 @@ declare const _default: import("vue").DefineComponent<{
366
363
  color: string;
367
364
  colorHover: string;
368
365
  }, any>;
369
- }>> | undefined;
370
- }>, {
366
+ }>>>;
367
+ }>>, {
371
368
  placement: "top-left" | "top-right" | "bottom-left" | "bottom-right";
372
369
  scrollable: boolean;
373
370
  }>;
@@ -13,8 +13,8 @@ const styles_1 = require("../styles");
13
13
  const NotificationContainer_1 = __importDefault(require("./NotificationContainer"));
14
14
  const NotificationEnvironment_1 = __importDefault(require("./NotificationEnvironment"));
15
15
  const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
16
- exports.notificationProviderInjectionKey = Symbol('notificationProvider');
17
- exports.notificationApiInjectionKey = Symbol('notificationApi');
16
+ exports.notificationProviderInjectionKey = (0, _utils_1.createInjectionKey)('n-notification-provider');
17
+ exports.notificationApiInjectionKey = (0, _utils_1.createInjectionKey)('n-notification-api');
18
18
  const notificationProviderProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { to: [String, Object], scrollable: {
19
19
  type: Boolean,
20
20
  default: true
@@ -101,10 +101,10 @@ exports.default = (0, vue_1.defineComponent)({
101
101
  }, api);
102
102
  },
103
103
  render() {
104
- var _a;
105
- return ((0, vue_1.h)(vue_1.Fragment, null,
106
- (0, vue_1.renderSlot)(this.$slots, 'default'),
107
- this.notificationList.length ? ((0, vue_1.h)(vue_1.Teleport, { to: (_a = this.to) !== null && _a !== void 0 ? _a : 'body' },
104
+ var _a, _b, _c;
105
+ return ((0, vue_1.h)(vue_1.Fragment, null, (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 :
106
+ _b.call(_a),
107
+ this.notificationList.length ? ((0, vue_1.h)(vue_1.Teleport, { to: (_c = this.to) !== null && _c !== void 0 ? _c : 'body' },
108
108
  (0, vue_1.h)(NotificationContainer_1.default, { scrollable: this.scrollable, placement: this.placement }, {
109
109
  default: () => {
110
110
  return this.notificationList.map((notification) => {