naive-ui 2.23.1 → 2.23.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 (450) hide show
  1. package/es/_internal/clear/src/styles/index.cssr.js +10 -10
  2. package/es/_internal/close/src/styles/index.cssr.js +9 -10
  3. package/es/_internal/icons/Close.js +1 -1
  4. package/es/_internal/scrollbar/src/ScrollBar.d.ts +6 -6
  5. package/es/_internal/scrollbar/src/ScrollBar.js +11 -10
  6. package/es/_internal/scrollbar/src/styles/index.cssr.js +15 -15
  7. package/es/_internal/select-menu/src/SelectMenu.d.ts +21 -21
  8. package/es/_internal/select-menu/src/SelectMenu.js +21 -21
  9. package/es/_internal/select-menu/src/styles/index.cssr.js +35 -35
  10. package/es/_internal/select-menu/styles/_common.js +1 -1
  11. package/es/_internal/selection/src/Selection.d.ts +44 -44
  12. package/es/_internal/selection/src/Selection.js +44 -44
  13. package/es/_internal/selection/src/styles/index.cssr.js +78 -78
  14. package/es/_mixins/common.d.ts +1 -0
  15. package/es/_mixins/common.js +1 -0
  16. package/es/_mixins/index.d.ts +1 -0
  17. package/es/_mixins/index.js +1 -0
  18. package/es/_mixins/use-css-vars-class.d.ts +2 -0
  19. package/es/_mixins/use-css-vars-class.js +22 -0
  20. package/es/_mixins/use-rtl.js +2 -0
  21. package/es/_mixins/use-style.js +3 -0
  22. package/es/_mixins/use-theme.js +3 -0
  23. package/es/_utils/composable/use-houdini.js +2 -2
  24. package/es/alert/src/Alert.d.ts +2 -2
  25. package/es/avatar/index.d.ts +2 -0
  26. package/es/avatar/index.js +1 -0
  27. package/es/avatar/src/Avatar.d.ts +67 -28
  28. package/es/avatar/src/Avatar.js +39 -11
  29. package/es/avatar/src/AvatarGroup.d.ts +52 -0
  30. package/es/avatar/src/AvatarGroup.js +61 -0
  31. package/es/avatar/src/interface.d.ts +2 -0
  32. package/es/avatar/src/interface.js +1 -0
  33. package/es/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
  34. package/es/avatar/src/styles/avatar-group.cssr.js +14 -0
  35. package/es/avatar/src/styles/index.cssr.js +8 -3
  36. package/es/avatar/styles/light.d.ts +3 -0
  37. package/es/avatar/styles/light.js +6 -2
  38. package/es/breadcrumb/src/Breadcrumb.d.ts +8 -8
  39. package/es/breadcrumb/src/Breadcrumb.js +8 -8
  40. package/es/breadcrumb/src/styles/index.cssr.js +23 -23
  41. package/es/calendar/src/Calendar.d.ts +21 -21
  42. package/es/calendar/src/Calendar.js +21 -21
  43. package/es/calendar/src/styles/index.cssr.js +57 -57
  44. package/es/card/src/Card.d.ts +28 -23
  45. package/es/card/src/Card.js +24 -23
  46. package/es/card/src/styles/index.cssr.js +71 -69
  47. package/es/carousel/src/Carousel.d.ts +5 -5
  48. package/es/carousel/src/Carousel.js +5 -5
  49. package/es/carousel/src/styles/index.cssr.js +10 -10
  50. package/es/cascader/src/Cascader.d.ts +25 -17
  51. package/es/cascader/src/Cascader.js +30 -20
  52. package/es/cascader/src/CascaderMenu.js +1 -1
  53. package/es/cascader/src/styles/index.cssr.js +44 -44
  54. package/es/cascader/styles/light.js +1 -1
  55. package/es/checkbox/src/Checkbox.d.ts +23 -23
  56. package/es/checkbox/src/Checkbox.js +23 -23
  57. package/es/checkbox/src/styles/index.cssr.js +58 -58
  58. package/es/code/src/Code.d.ts +14 -14
  59. package/es/code/src/Code.js +26 -17
  60. package/es/code/src/styles/index.cssr.js +28 -28
  61. package/es/collapse/src/Collapse.d.ts +8 -8
  62. package/es/collapse/src/Collapse.js +8 -8
  63. package/es/collapse/src/styles/index.cssr.js +24 -24
  64. package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
  65. package/es/collapse-transition/src/CollapseTransition.js +1 -1
  66. package/es/color-picker/src/ColorPicker.d.ts +10 -10
  67. package/es/color-picker/src/ColorPicker.js +10 -10
  68. package/es/color-picker/src/styles/index.cssr.js +28 -28
  69. package/es/components.d.ts +2 -0
  70. package/es/components.js +2 -0
  71. package/es/countdown/index.d.ts +2 -0
  72. package/es/countdown/index.js +1 -0
  73. package/es/countdown/src/Countdown.d.ts +72 -0
  74. package/es/countdown/src/Countdown.js +126 -0
  75. package/es/countdown/src/utils.d.ts +0 -0
  76. package/es/countdown/src/utils.js +1 -0
  77. package/es/data-table/src/DataTable.d.ts +39 -39
  78. package/es/data-table/src/DataTable.js +42 -42
  79. package/es/data-table/src/TableParts/Body.js +6 -4
  80. package/es/data-table/src/styles/index.cssr.js +130 -130
  81. package/es/date-picker/src/DatePicker.d.ts +45 -45
  82. package/es/date-picker/src/DatePicker.js +45 -45
  83. package/es/date-picker/src/styles/index.cssr.js +115 -115
  84. package/es/descriptions/src/Descriptions.d.ts +18 -18
  85. package/es/descriptions/src/Descriptions.js +19 -20
  86. package/es/descriptions/src/styles/index.cssr.js +61 -61
  87. package/es/dialog/src/Dialog.d.ts +3 -3
  88. package/es/dialog/src/Dialog.js +3 -3
  89. package/es/dialog/src/DialogEnvironment.d.ts +2 -2
  90. package/es/dialog/src/DialogProvider.d.ts +1 -1
  91. package/es/drawer/src/Drawer.d.ts +19 -19
  92. package/es/drawer/src/Drawer.js +19 -19
  93. package/es/drawer/src/styles/index.cssr.js +41 -40
  94. package/es/dropdown/src/Dropdown.js +34 -32
  95. package/es/dropdown/src/styles/index.cssr.js +59 -59
  96. package/es/empty/src/Empty.d.ts +19 -15
  97. package/es/empty/src/Empty.js +12 -12
  98. package/es/empty/src/styles/index.cssr.js +20 -19
  99. package/es/form/src/FormItem.d.ts +15 -15
  100. package/es/form/src/FormItem.js +15 -15
  101. package/es/form/src/FormItemCol.d.ts +6 -0
  102. package/es/form/src/FormItemCol.js +1 -0
  103. package/es/form/src/FormItemGridItem.d.ts +6 -0
  104. package/es/form/src/FormItemGridItem.js +1 -0
  105. package/es/form/src/FormItemRow.d.ts +6 -0
  106. package/es/form/src/FormItemRow.js +1 -0
  107. package/es/form/src/styles/form-item.cssr.js +37 -37
  108. package/es/gradient-text/src/GradientText.d.ts +5 -5
  109. package/es/gradient-text/src/GradientText.js +5 -5
  110. package/es/gradient-text/src/styles/index.cssr.js +9 -9
  111. package/es/icon/src/Icon.d.ts +6 -6
  112. package/es/icon/src/Icon.js +4 -4
  113. package/es/icon/src/styles/index.cssr.js +7 -7
  114. package/es/image/src/ImagePreview.d.ts +2 -2
  115. package/es/image/src/ImagePreview.js +13 -12
  116. package/es/image/src/styles/index.cssr.js +5 -5
  117. package/es/input/src/Input.d.ts +52 -47
  118. package/es/input/src/Input.js +54 -49
  119. package/es/input/src/InputGroupLabel.d.ts +8 -8
  120. package/es/input/src/InputGroupLabel.js +8 -8
  121. package/es/input/src/styles/input-group-label.cssr.js +18 -18
  122. package/es/input/src/styles/input.cssr.js +108 -109
  123. package/es/input-number/src/InputNumber.d.ts +11 -0
  124. package/es/input-number/src/InputNumber.js +5 -2
  125. package/es/input-number/src/utils.js +2 -1
  126. package/es/layout/src/Layout.d.ts +6 -6
  127. package/es/layout/src/Layout.js +3 -3
  128. package/es/layout/src/LayoutContent.d.ts +3 -3
  129. package/es/layout/src/LayoutFooter.js +7 -7
  130. package/es/layout/src/LayoutHeader.js +7 -7
  131. package/es/layout/src/LayoutSider.js +13 -13
  132. package/es/layout/src/styles/layout-footer.cssr.js +11 -11
  133. package/es/layout/src/styles/layout-header.cssr.js +11 -11
  134. package/es/layout/src/styles/layout-sider.cssr.js +32 -32
  135. package/es/layout/src/styles/layout.cssr.js +8 -8
  136. package/es/list/src/List.d.ts +10 -10
  137. package/es/list/src/List.js +10 -10
  138. package/es/list/src/styles/index.cssr.js +30 -30
  139. package/es/loading-bar/src/LoadingBar.d.ts +3 -3
  140. package/es/loading-bar/src/LoadingBar.js +3 -3
  141. package/es/loading-bar/src/styles/index.cssr.js +7 -7
  142. package/es/locales/common/frFR.js +7 -8
  143. package/es/mention/src/Mention.d.ts +1 -1
  144. package/es/mention/src/Mention.js +1 -1
  145. package/es/mention/src/styles/index.cssr.js +2 -2
  146. package/es/menu/src/Menu.js +43 -40
  147. package/es/menu/src/styles/index.cssr.js +71 -71
  148. package/es/message/src/Message.d.ts +22 -22
  149. package/es/message/src/Message.js +22 -22
  150. package/es/message/src/styles/index.cssr.js +48 -48
  151. package/es/modal/src/BodyWrapper.d.ts +11 -2
  152. package/es/modal/src/BodyWrapper.js +23 -17
  153. package/es/modal/src/Modal.d.ts +14 -8
  154. package/es/modal/src/Modal.js +13 -7
  155. package/es/modal/src/presetProps.d.ts +2 -1
  156. package/es/modal/src/styles/index.cssr.js +8 -8
  157. package/es/notification/src/Notification.d.ts +24 -24
  158. package/es/notification/src/Notification.js +24 -24
  159. package/es/notification/src/styles/index.cssr.js +65 -65
  160. package/es/number-animation/index.d.ts +3 -0
  161. package/es/number-animation/index.js +1 -0
  162. package/es/number-animation/src/NumberAnimation.d.ts +79 -0
  163. package/es/number-animation/src/NumberAnimation.js +81 -0
  164. package/es/number-animation/src/utils.d.ts +8 -0
  165. package/es/number-animation/src/utils.js +17 -0
  166. package/es/page-header/src/PageHeader.d.ts +10 -10
  167. package/es/page-header/src/PageHeader.js +10 -10
  168. package/es/page-header/src/styles/index.cssr.js +23 -23
  169. package/es/pagination/src/Pagination.d.ts +42 -41
  170. package/es/pagination/src/Pagination.js +52 -45
  171. package/es/pagination/src/styles/index.cssr.js +81 -81
  172. package/es/popconfirm/src/Popconfirm.d.ts +2 -2
  173. package/es/popconfirm/src/PopconfirmPanel.d.ts +4 -4
  174. package/es/popconfirm/src/PopconfirmPanel.js +4 -4
  175. package/es/popconfirm/src/styles/index.cssr.js +8 -8
  176. package/es/popover/src/PopoverBody.js +15 -15
  177. package/es/popover/src/styles/index.cssr.js +62 -62
  178. package/es/progress/src/Progress.d.ts +14 -14
  179. package/es/progress/src/Progress.js +14 -14
  180. package/es/progress/src/styles/index.cssr.js +53 -53
  181. package/es/radio/src/Radio.d.ts +15 -15
  182. package/es/radio/src/Radio.js +15 -15
  183. package/es/radio/src/RadioGroup.d.ts +14 -14
  184. package/es/radio/src/RadioGroup.js +14 -14
  185. package/es/radio/src/styles/radio-group.cssr.js +43 -43
  186. package/es/radio/src/styles/radio.cssr.js +36 -36
  187. package/es/rate/src/Rate.d.ts +4 -4
  188. package/es/rate/src/Rate.js +4 -4
  189. package/es/rate/src/styles/index.cssr.js +11 -11
  190. package/es/result/src/Result.d.ts +9 -9
  191. package/es/result/src/Result.js +9 -9
  192. package/es/result/src/styles/index.cssr.js +20 -20
  193. package/es/select/src/Select.d.ts +1 -1
  194. package/es/select/src/Select.js +1 -1
  195. package/es/select/src/styles/index.cssr.js +2 -2
  196. package/es/skeleton/src/Skeleton.d.ts +3 -3
  197. package/es/skeleton/src/Skeleton.js +3 -3
  198. package/es/skeleton/src/styles/index.cssr.js +12 -12
  199. package/es/slider/src/Slider.d.ts +29 -29
  200. package/es/slider/src/Slider.js +29 -29
  201. package/es/slider/src/styles/index.cssr.js +87 -87
  202. package/es/spin/src/Spin.d.ts +5 -5
  203. package/es/spin/src/Spin.js +5 -5
  204. package/es/spin/src/styles/index.cssr.js +15 -15
  205. package/es/statistic/src/Statistic.d.ts +25 -45
  206. package/es/statistic/src/Statistic.js +12 -19
  207. package/es/statistic/src/styles/index.cssr.js +19 -19
  208. package/es/table/src/Table.d.ts +21 -21
  209. package/es/table/src/Table.js +21 -21
  210. package/es/table/src/styles/index.cssr.js +55 -55
  211. package/es/tabs/src/styles/index.cssr.js +4 -1
  212. package/es/tabs/styles/light.js +1 -1
  213. package/es/tag/src/Tag.d.ts +1 -0
  214. package/es/tag/src/Tag.js +1 -0
  215. package/es/thing/src/Thing.js +5 -5
  216. package/es/thing/src/styles/index.cssr.js +11 -11
  217. package/es/time-picker/src/TimePicker.d.ts +2 -2
  218. package/es/transfer/src/Transfer.d.ts +21 -21
  219. package/es/transfer/src/Transfer.js +21 -21
  220. package/es/transfer/src/TransferList.js +5 -7
  221. package/es/transfer/src/styles/index.cssr.js +38 -38
  222. package/es/upload/src/Upload.d.ts +1 -1
  223. package/es/version.d.ts +1 -1
  224. package/es/version.js +1 -1
  225. package/lib/_internal/clear/src/styles/index.cssr.js +10 -10
  226. package/lib/_internal/close/src/styles/index.cssr.js +9 -10
  227. package/lib/_internal/icons/Close.js +1 -1
  228. package/lib/_internal/scrollbar/src/ScrollBar.d.ts +6 -6
  229. package/lib/_internal/scrollbar/src/ScrollBar.js +11 -10
  230. package/lib/_internal/scrollbar/src/styles/index.cssr.js +15 -15
  231. package/lib/_internal/select-menu/src/SelectMenu.d.ts +21 -21
  232. package/lib/_internal/select-menu/src/SelectMenu.js +21 -21
  233. package/lib/_internal/select-menu/src/styles/index.cssr.js +35 -35
  234. package/lib/_internal/select-menu/styles/_common.js +1 -1
  235. package/lib/_internal/selection/src/Selection.d.ts +44 -44
  236. package/lib/_internal/selection/src/Selection.js +44 -44
  237. package/lib/_internal/selection/src/styles/index.cssr.js +78 -78
  238. package/lib/_mixins/common.d.ts +1 -0
  239. package/lib/_mixins/common.js +4 -0
  240. package/lib/_mixins/index.d.ts +1 -0
  241. package/lib/_mixins/index.js +3 -1
  242. package/lib/_mixins/use-css-vars-class.d.ts +2 -0
  243. package/lib/_mixins/use-css-vars-class.js +29 -0
  244. package/lib/_mixins/use-rtl.js +2 -0
  245. package/lib/_mixins/use-style.js +3 -0
  246. package/lib/_mixins/use-theme.js +3 -0
  247. package/lib/_utils/composable/use-houdini.js +2 -2
  248. package/lib/alert/src/Alert.d.ts +2 -2
  249. package/lib/avatar/index.d.ts +2 -0
  250. package/lib/avatar/index.js +3 -1
  251. package/lib/avatar/src/Avatar.d.ts +67 -28
  252. package/lib/avatar/src/Avatar.js +41 -12
  253. package/lib/avatar/src/AvatarGroup.d.ts +52 -0
  254. package/lib/avatar/src/AvatarGroup.js +67 -0
  255. package/lib/avatar/src/interface.d.ts +2 -0
  256. package/lib/avatar/src/interface.js +2 -0
  257. package/lib/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
  258. package/lib/avatar/src/styles/avatar-group.cssr.js +21 -0
  259. package/lib/avatar/src/styles/index.cssr.js +7 -2
  260. package/lib/avatar/styles/light.d.ts +3 -0
  261. package/lib/avatar/styles/light.js +6 -2
  262. package/lib/breadcrumb/src/Breadcrumb.d.ts +8 -8
  263. package/lib/breadcrumb/src/Breadcrumb.js +8 -8
  264. package/lib/breadcrumb/src/styles/index.cssr.js +23 -23
  265. package/lib/calendar/src/Calendar.d.ts +21 -21
  266. package/lib/calendar/src/Calendar.js +21 -21
  267. package/lib/calendar/src/styles/index.cssr.js +57 -57
  268. package/lib/card/src/Card.d.ts +28 -23
  269. package/lib/card/src/Card.js +24 -23
  270. package/lib/card/src/styles/index.cssr.js +71 -69
  271. package/lib/carousel/src/Carousel.d.ts +5 -5
  272. package/lib/carousel/src/Carousel.js +5 -5
  273. package/lib/carousel/src/styles/index.cssr.js +10 -10
  274. package/lib/cascader/src/Cascader.d.ts +25 -17
  275. package/lib/cascader/src/Cascader.js +30 -20
  276. package/lib/cascader/src/CascaderMenu.js +1 -1
  277. package/lib/cascader/src/styles/index.cssr.js +44 -44
  278. package/lib/cascader/styles/light.js +1 -1
  279. package/lib/checkbox/src/Checkbox.d.ts +23 -23
  280. package/lib/checkbox/src/Checkbox.js +23 -23
  281. package/lib/checkbox/src/styles/index.cssr.js +58 -58
  282. package/lib/code/src/Code.d.ts +14 -14
  283. package/lib/code/src/Code.js +26 -17
  284. package/lib/code/src/styles/index.cssr.js +28 -28
  285. package/lib/collapse/src/Collapse.d.ts +8 -8
  286. package/lib/collapse/src/Collapse.js +8 -8
  287. package/lib/collapse/src/styles/index.cssr.js +24 -24
  288. package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
  289. package/lib/collapse-transition/src/CollapseTransition.js +1 -1
  290. package/lib/color-picker/src/ColorPicker.d.ts +10 -10
  291. package/lib/color-picker/src/ColorPicker.js +10 -10
  292. package/lib/color-picker/src/styles/index.cssr.js +28 -28
  293. package/lib/components.d.ts +2 -0
  294. package/lib/components.js +2 -0
  295. package/lib/countdown/index.d.ts +2 -0
  296. package/lib/countdown/index.js +8 -0
  297. package/lib/countdown/src/Countdown.d.ts +72 -0
  298. package/lib/countdown/src/Countdown.js +128 -0
  299. package/lib/countdown/src/utils.d.ts +0 -0
  300. package/lib/countdown/src/utils.js +1 -0
  301. package/lib/data-table/src/DataTable.d.ts +39 -39
  302. package/lib/data-table/src/DataTable.js +42 -42
  303. package/lib/data-table/src/TableParts/Body.js +6 -4
  304. package/lib/data-table/src/styles/index.cssr.js +130 -130
  305. package/lib/date-picker/src/DatePicker.d.ts +45 -45
  306. package/lib/date-picker/src/DatePicker.js +45 -45
  307. package/lib/date-picker/src/styles/index.cssr.js +115 -115
  308. package/lib/descriptions/src/Descriptions.d.ts +18 -18
  309. package/lib/descriptions/src/Descriptions.js +19 -20
  310. package/lib/descriptions/src/styles/index.cssr.js +61 -61
  311. package/lib/dialog/src/Dialog.d.ts +3 -3
  312. package/lib/dialog/src/Dialog.js +3 -3
  313. package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
  314. package/lib/dialog/src/DialogProvider.d.ts +1 -1
  315. package/lib/drawer/src/Drawer.d.ts +19 -19
  316. package/lib/drawer/src/Drawer.js +19 -19
  317. package/lib/drawer/src/styles/index.cssr.js +41 -40
  318. package/lib/dropdown/src/Dropdown.js +34 -32
  319. package/lib/dropdown/src/styles/index.cssr.js +59 -59
  320. package/lib/empty/src/Empty.d.ts +19 -15
  321. package/lib/empty/src/Empty.js +12 -12
  322. package/lib/empty/src/styles/index.cssr.js +19 -18
  323. package/lib/form/src/FormItem.d.ts +15 -15
  324. package/lib/form/src/FormItem.js +15 -15
  325. package/lib/form/src/FormItemCol.d.ts +6 -0
  326. package/lib/form/src/FormItemCol.js +1 -0
  327. package/lib/form/src/FormItemGridItem.d.ts +6 -0
  328. package/lib/form/src/FormItemGridItem.js +1 -0
  329. package/lib/form/src/FormItemRow.d.ts +6 -0
  330. package/lib/form/src/FormItemRow.js +1 -0
  331. package/lib/form/src/styles/form-item.cssr.js +37 -37
  332. package/lib/gradient-text/src/GradientText.d.ts +5 -5
  333. package/lib/gradient-text/src/GradientText.js +5 -5
  334. package/lib/gradient-text/src/styles/index.cssr.js +9 -9
  335. package/lib/icon/src/Icon.d.ts +6 -6
  336. package/lib/icon/src/Icon.js +4 -4
  337. package/lib/icon/src/styles/index.cssr.js +7 -7
  338. package/lib/image/src/ImagePreview.d.ts +2 -2
  339. package/lib/image/src/ImagePreview.js +12 -11
  340. package/lib/image/src/styles/index.cssr.js +5 -5
  341. package/lib/input/src/Input.d.ts +52 -47
  342. package/lib/input/src/Input.js +54 -49
  343. package/lib/input/src/InputGroupLabel.d.ts +8 -8
  344. package/lib/input/src/InputGroupLabel.js +8 -8
  345. package/lib/input/src/styles/input-group-label.cssr.js +18 -18
  346. package/lib/input/src/styles/input.cssr.js +108 -109
  347. package/lib/input-number/src/InputNumber.d.ts +11 -0
  348. package/lib/input-number/src/InputNumber.js +5 -2
  349. package/lib/input-number/src/utils.js +2 -1
  350. package/lib/layout/src/Layout.d.ts +6 -6
  351. package/lib/layout/src/Layout.js +3 -3
  352. package/lib/layout/src/LayoutContent.d.ts +3 -3
  353. package/lib/layout/src/LayoutFooter.js +7 -7
  354. package/lib/layout/src/LayoutHeader.js +7 -7
  355. package/lib/layout/src/LayoutSider.js +13 -13
  356. package/lib/layout/src/styles/layout-footer.cssr.js +11 -11
  357. package/lib/layout/src/styles/layout-header.cssr.js +11 -11
  358. package/lib/layout/src/styles/layout-sider.cssr.js +32 -32
  359. package/lib/layout/src/styles/layout.cssr.js +8 -8
  360. package/lib/list/src/List.d.ts +10 -10
  361. package/lib/list/src/List.js +10 -10
  362. package/lib/list/src/styles/index.cssr.js +30 -30
  363. package/lib/loading-bar/src/LoadingBar.d.ts +3 -3
  364. package/lib/loading-bar/src/LoadingBar.js +3 -3
  365. package/lib/loading-bar/src/styles/index.cssr.js +7 -7
  366. package/lib/locales/common/frFR.js +7 -8
  367. package/lib/mention/src/Mention.d.ts +1 -1
  368. package/lib/mention/src/Mention.js +1 -1
  369. package/lib/mention/src/styles/index.cssr.js +2 -2
  370. package/lib/menu/src/Menu.js +43 -40
  371. package/lib/menu/src/styles/index.cssr.js +71 -71
  372. package/lib/message/src/Message.d.ts +22 -22
  373. package/lib/message/src/Message.js +22 -22
  374. package/lib/message/src/styles/index.cssr.js +48 -48
  375. package/lib/modal/src/BodyWrapper.d.ts +11 -2
  376. package/lib/modal/src/BodyWrapper.js +23 -17
  377. package/lib/modal/src/Modal.d.ts +14 -8
  378. package/lib/modal/src/Modal.js +13 -7
  379. package/lib/modal/src/presetProps.d.ts +2 -1
  380. package/lib/modal/src/styles/index.cssr.js +8 -8
  381. package/lib/notification/src/Notification.d.ts +24 -24
  382. package/lib/notification/src/Notification.js +24 -24
  383. package/lib/notification/src/styles/index.cssr.js +65 -65
  384. package/lib/number-animation/index.d.ts +3 -0
  385. package/lib/number-animation/index.js +8 -0
  386. package/lib/number-animation/src/NumberAnimation.d.ts +79 -0
  387. package/lib/number-animation/src/NumberAnimation.js +83 -0
  388. package/lib/number-animation/src/utils.d.ts +8 -0
  389. package/lib/number-animation/src/utils.js +21 -0
  390. package/lib/page-header/src/PageHeader.d.ts +10 -10
  391. package/lib/page-header/src/PageHeader.js +10 -10
  392. package/lib/page-header/src/styles/index.cssr.js +23 -23
  393. package/lib/pagination/src/Pagination.d.ts +42 -41
  394. package/lib/pagination/src/Pagination.js +52 -45
  395. package/lib/pagination/src/styles/index.cssr.js +81 -81
  396. package/lib/popconfirm/src/Popconfirm.d.ts +2 -2
  397. package/lib/popconfirm/src/PopconfirmPanel.d.ts +4 -4
  398. package/lib/popconfirm/src/PopconfirmPanel.js +4 -4
  399. package/lib/popconfirm/src/styles/index.cssr.js +8 -8
  400. package/lib/popover/src/PopoverBody.js +15 -15
  401. package/lib/popover/src/styles/index.cssr.js +62 -62
  402. package/lib/progress/src/Progress.d.ts +14 -14
  403. package/lib/progress/src/Progress.js +14 -14
  404. package/lib/progress/src/styles/index.cssr.js +53 -53
  405. package/lib/radio/src/Radio.d.ts +15 -15
  406. package/lib/radio/src/Radio.js +15 -15
  407. package/lib/radio/src/RadioGroup.d.ts +14 -14
  408. package/lib/radio/src/RadioGroup.js +14 -14
  409. package/lib/radio/src/styles/radio-group.cssr.js +43 -43
  410. package/lib/radio/src/styles/radio.cssr.js +36 -36
  411. package/lib/rate/src/Rate.d.ts +4 -4
  412. package/lib/rate/src/Rate.js +4 -4
  413. package/lib/rate/src/styles/index.cssr.js +11 -11
  414. package/lib/result/src/Result.d.ts +9 -9
  415. package/lib/result/src/Result.js +9 -9
  416. package/lib/result/src/styles/index.cssr.js +20 -20
  417. package/lib/select/src/Select.d.ts +1 -1
  418. package/lib/select/src/Select.js +1 -1
  419. package/lib/select/src/styles/index.cssr.js +2 -2
  420. package/lib/skeleton/src/Skeleton.d.ts +3 -3
  421. package/lib/skeleton/src/Skeleton.js +3 -3
  422. package/lib/skeleton/src/styles/index.cssr.js +12 -12
  423. package/lib/slider/src/Slider.d.ts +29 -29
  424. package/lib/slider/src/Slider.js +29 -29
  425. package/lib/slider/src/styles/index.cssr.js +87 -87
  426. package/lib/spin/src/Spin.d.ts +5 -5
  427. package/lib/spin/src/Spin.js +5 -5
  428. package/lib/spin/src/styles/index.cssr.js +15 -15
  429. package/lib/statistic/src/Statistic.d.ts +25 -45
  430. package/lib/statistic/src/Statistic.js +12 -19
  431. package/lib/statistic/src/styles/index.cssr.js +19 -19
  432. package/lib/table/src/Table.d.ts +21 -21
  433. package/lib/table/src/Table.js +21 -21
  434. package/lib/table/src/styles/index.cssr.js +55 -55
  435. package/lib/tabs/src/styles/index.cssr.js +4 -1
  436. package/lib/tabs/styles/light.js +1 -1
  437. package/lib/tag/src/Tag.d.ts +1 -0
  438. package/lib/tag/src/Tag.js +1 -0
  439. package/lib/thing/src/Thing.js +5 -5
  440. package/lib/thing/src/styles/index.cssr.js +11 -11
  441. package/lib/time-picker/src/TimePicker.d.ts +2 -2
  442. package/lib/transfer/src/Transfer.d.ts +21 -21
  443. package/lib/transfer/src/Transfer.js +21 -21
  444. package/lib/transfer/src/TransferList.js +5 -7
  445. package/lib/transfer/src/styles/index.cssr.js +38 -38
  446. package/lib/upload/src/Upload.d.ts +1 -1
  447. package/lib/version.d.ts +1 -1
  448. package/lib/version.js +1 -1
  449. package/package.json +11 -10
  450. package/web-types.json +230 -7
@@ -6,10 +6,10 @@ import { NBaseIcon } from '../../_internal';
6
6
  import { emptyLight } from '../styles';
7
7
  import style from './styles/index.cssr';
8
8
  import { configProviderInjectionKey } from '../../config-provider/src/ConfigProvider';
9
- const emptyProps = Object.assign(Object.assign({}, useTheme.props), { description: {
10
- type: String,
11
- default: undefined
12
- }, showDescription: {
9
+ const emptyProps = Object.assign(Object.assign({}, useTheme.props), { description: String, showDescription: {
10
+ type: Boolean,
11
+ default: true
12
+ }, showIcon: {
13
13
  type: Boolean,
14
14
  default: true
15
15
  }, size: {
@@ -43,12 +43,12 @@ export default defineComponent({
43
43
  const { size } = props;
44
44
  const { common: { cubicBezierEaseInOut }, self: { [createKey('iconSize', size)]: iconSize, [createKey('fontSize', size)]: fontSize, textColor, iconColor, extraTextColor } } = themeRef.value;
45
45
  return {
46
- '--icon-size': iconSize,
47
- '--font-size': fontSize,
48
- '--bezier': cubicBezierEaseInOut,
49
- '--text-color': textColor,
50
- '--icon-color': iconColor,
51
- '--extra-text-color': extraTextColor
46
+ '--n-icon-size': iconSize,
47
+ '--n-font-size': fontSize,
48
+ '--n-bezier': cubicBezierEaseInOut,
49
+ '--n-text-color': textColor,
50
+ '--n-icon-color': iconColor,
51
+ '--n-extra-text-color': extraTextColor
52
52
  };
53
53
  })
54
54
  };
@@ -56,9 +56,9 @@ export default defineComponent({
56
56
  render() {
57
57
  const { $slots, mergedClsPrefix } = this;
58
58
  return (h("div", { class: `${mergedClsPrefix}-empty`, style: this.cssVars },
59
- h("div", { class: `${mergedClsPrefix}-empty__icon` }, renderSlot($slots, 'icon', undefined, () => [
59
+ this.showIcon ? (h("div", { class: `${mergedClsPrefix}-empty__icon` }, renderSlot($slots, 'icon', undefined, () => [
60
60
  h(NBaseIcon, { clsPrefix: mergedClsPrefix }, { default: this.mergedRenderIcon })
61
- ])),
61
+ ]))) : null,
62
62
  this.showDescription ? (h("div", { class: `${mergedClsPrefix}-empty__description` }, renderSlot($slots, 'default', undefined, () => [
63
63
  this.localizedDescription
64
64
  ]))) : null,
@@ -1,31 +1,32 @@
1
- import { cB, cE } from '../../../_utils/cssr'; // vars:
2
- // --font-size
3
- // --icon-size
4
- // --icon-color
5
- // --bezier
6
- // --text-color
7
- // --extra-text-color
1
+ import { c, cB, cE } from '../../../_utils/cssr'; // vars:
2
+ // --n-font-size
3
+ // --n-icon-size
4
+ // --n-icon-color
5
+ // --n-bezier
6
+ // --n-text-color
7
+ // --n-extra-text-color
8
8
 
9
9
  export default cB('empty', `
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  align-items: center;
13
- font-size: var(--font-size);
13
+ font-size: var(--n-font-size);
14
14
  `, [cE('icon', `
15
- width: var(--icon-size);
16
- height: var(--icon-size);
17
- font-size: var(--icon-size);
18
- line-height: var(--icon-size);
19
- color: var(--icon-color);
15
+ width: var(--n-icon-size);
16
+ height: var(--n-icon-size);
17
+ font-size: var(--n-icon-size);
18
+ line-height: var(--n-icon-size);
19
+ color: var(--n-icon-color);
20
20
  transition:
21
- color .3s var(--bezier);
22
- `), cE('description', `
21
+ color .3s var(--n-bezier);
22
+ `, [c('+', [cE('description', `
23
23
  margin-top: 8px;
24
- transition: color .3s var(--bezier);
25
- color: var(--text-color);
24
+ `)])]), cE('description', `
25
+ transition: color .3s var(--n-bezier);
26
+ color: var(--n-text-color);
26
27
  `), cE('extra', `
27
28
  text-align: center;
28
- transition: color .3s var(--bezier);
29
+ transition: color .3s var(--n-bezier);
29
30
  margin-top: 12px;
30
- color: var(--extra-text-color);
31
+ color: var(--n-extra-text-color);
31
32
  `)]);
@@ -249,21 +249,21 @@ declare const _default: import("vue").DefineComponent<{
249
249
  }, any>>>;
250
250
  }, {
251
251
  cssVars: import("vue").ComputedRef<{
252
- '--bezier': string;
253
- '--line-height': string;
254
- '--blank-height': string;
255
- '--label-font-size': string;
256
- '--label-text-align': string;
257
- '--label-height': string;
258
- '--label-padding': string;
259
- '--asterisk-color': string;
260
- '--label-text-color': string;
261
- '--feedback-padding': string;
262
- '--feedback-font-size': string;
263
- '--feedback-height': string;
264
- '--feedback-text-color': string;
265
- '--feedback-text-color-warning': string;
266
- '--feedback-text-color-error': string;
252
+ '--n-bezier': string;
253
+ '--n-line-height': string;
254
+ '--n-blank-height': string;
255
+ '--n-label-font-size': string;
256
+ '--n-label-text-align': string;
257
+ '--n-label-height': string;
258
+ '--n-label-padding': string;
259
+ '--n-asterisk-color': string;
260
+ '--n-label-text-color': string;
261
+ '--n-feedback-padding': string;
262
+ '--n-feedback-font-size': string;
263
+ '--n-feedback-height': string;
264
+ '--n-feedback-text-color': string;
265
+ '--n-feedback-text-color-warning': string;
266
+ '--n-feedback-text-color-error': string;
267
267
  }>;
268
268
  validate: import("./interface").FormItemValidate;
269
269
  restoreValidation: () => void;
@@ -237,21 +237,21 @@ export default defineComponent({
237
237
  mergedLabelTextAlign === 'right' ? 'flex-end' : 'flex-start';
238
238
  }
239
239
  const cssVars = {
240
- '--bezier': cubicBezierEaseInOut,
241
- '--line-height': lineHeight,
242
- '--blank-height': blankHeight,
243
- '--label-font-size': labelFontSize,
244
- '--label-text-align': mergedLabelTextAlign,
245
- '--label-height': labelHeight,
246
- '--label-padding': labelPadding,
247
- '--asterisk-color': asteriskColor,
248
- '--label-text-color': labelTextColor,
249
- '--feedback-padding': feedbackPadding,
250
- '--feedback-font-size': feedbackFontSize,
251
- '--feedback-height': feedbackHeight,
252
- '--feedback-text-color': feedbackTextColor,
253
- '--feedback-text-color-warning': feedbackTextColorWarning,
254
- '--feedback-text-color-error': feedbackTextColorError
240
+ '--n-bezier': cubicBezierEaseInOut,
241
+ '--n-line-height': lineHeight,
242
+ '--n-blank-height': blankHeight,
243
+ '--n-label-font-size': labelFontSize,
244
+ '--n-label-text-align': mergedLabelTextAlign,
245
+ '--n-label-height': labelHeight,
246
+ '--n-label-padding': labelPadding,
247
+ '--n-asterisk-color': asteriskColor,
248
+ '--n-label-text-color': labelTextColor,
249
+ '--n-feedback-padding': feedbackPadding,
250
+ '--n-feedback-font-size': feedbackFontSize,
251
+ '--n-feedback-height': feedbackHeight,
252
+ '--n-feedback-text-color': feedbackTextColor,
253
+ '--n-feedback-text-color-warning': feedbackTextColorWarning,
254
+ '--n-feedback-text-color-error': feedbackTextColorError
255
255
  };
256
256
  return cssVars;
257
257
  }) });
@@ -277,6 +277,12 @@ declare const _default: import("vue").DefineComponent<{
277
277
  readonly default: 0;
278
278
  };
279
279
  }, {
280
+ formItemInstRef: import("vue").Ref<{
281
+ validate: import("./interface").FormItemValidate;
282
+ restoreValidation: () => void;
283
+ path?: string | undefined;
284
+ internalValidate: import("./interface").FormItemInternalValidate;
285
+ } | null>;
280
286
  validate: import("./interface").FormItemValidate;
281
287
  restoreValidation: () => void;
282
288
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
@@ -22,6 +22,7 @@ export default defineComponent({
22
22
  }
23
23
  };
24
24
  return {
25
+ formItemInstRef,
25
26
  validate,
26
27
  restoreValidation
27
28
  };
@@ -277,6 +277,12 @@ declare const _default: import("vue").DefineComponent<{
277
277
  readonly default: true;
278
278
  };
279
279
  }, {
280
+ formItemInstRef: import("vue").Ref<{
281
+ validate: import("./interface").FormItemValidate;
282
+ restoreValidation: () => void;
283
+ path?: string | undefined;
284
+ internalValidate: import("./interface").FormItemInternalValidate;
285
+ } | null>;
280
286
  validate: import("./interface").FormItemValidate;
281
287
  restoreValidation: () => void;
282
288
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
@@ -24,6 +24,7 @@ export default defineComponent({
24
24
  }
25
25
  };
26
26
  return {
27
+ formItemInstRef,
27
28
  validate,
28
29
  restoreValidation
29
30
  };
@@ -288,6 +288,12 @@ declare const _default: import("vue").DefineComponent<{
288
288
  alignItems: StringConstructor;
289
289
  justifyContent: StringConstructor;
290
290
  }, {
291
+ formItemColInstRef: import("vue").Ref<{
292
+ validate: import("./interface").FormItemValidate;
293
+ restoreValidation: () => void;
294
+ path?: string | undefined;
295
+ internalValidate: import("./interface").FormItemInternalValidate;
296
+ } | null>;
291
297
  validate: import("./interface").FormItemValidate;
292
298
  restoreValidation: () => void;
293
299
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
@@ -21,6 +21,7 @@ export default defineComponent({
21
21
  }
22
22
  };
23
23
  return {
24
+ formItemColInstRef,
24
25
  validate,
25
26
  restoreValidation
26
27
  };
@@ -1,50 +1,50 @@
1
1
  import { cB, cE, cM } from '../../../_utils/cssr';
2
2
  import fadeDownTranstion from '../../../_styles/transitions/fade-down.cssr'; // vars:
3
- // --line-height
4
- // --blank-height
5
- // --feedback-padding
6
- // --feedback-font-size
7
- // --label-font-size-left
8
- // --label-font-size-top
9
- // --label-height
10
- // --label-padding
11
- // --asterisk-color
12
- // --label-text-color
13
- // --bezier
14
- // --feedback-text-color
15
- // --feedback-text-color-warning
16
- // --feedback-text-color-error
17
- // --label-text-align
18
- // --label-padding
3
+ // --n-line-height
4
+ // --n-blank-height
5
+ // --n-feedback-padding
6
+ // --n-feedback-font-size
7
+ // --n-label-font-size-left
8
+ // --n-label-font-size-top
9
+ // --n-label-height
10
+ // --n-label-padding
11
+ // --n-asterisk-color
12
+ // --n-label-text-color
13
+ // --n-bezier
14
+ // --n-feedback-text-color
15
+ // --n-feedback-text-color-warning
16
+ // --n-feedback-text-color-error
17
+ // --n-label-text-align
18
+ // --n-label-padding
19
19
 
20
20
  export default cB('form-item', {
21
21
  display: 'grid',
22
- lineHeight: 'var(--line-height)'
22
+ lineHeight: 'var(--n-line-height)'
23
23
  }, [cB('form-item-label', `
24
24
  grid-area: label;
25
25
  align-items: center;
26
26
  line-height: 1.25;
27
- text-align: var(--label-text-align);
28
- font-size: var(--label-font-size);
29
- height: var(--label-height);
30
- padding: var(--label-padding);
31
- color: var(--label-text-color);
32
- transition: color .3s var(--bezier);
27
+ text-align: var(--n-label-text-align);
28
+ font-size: var(--n-label-font-size);
29
+ height: var(--n-label-height);
30
+ padding: var(--n-label-padding);
31
+ color: var(--n-label-text-color);
32
+ transition: color .3s var(--n-bezier);
33
33
  box-sizing: border-box;
34
34
  `, [cE('asterisk', `
35
- color: var(--asterisk-color);
36
- transition: color .3s var(--bezier);
35
+ color: var(--n-asterisk-color);
36
+ transition: color .3s var(--n-bezier);
37
37
  `)]), cB('form-item-blank', {
38
38
  gridArea: 'blank',
39
- minHeight: 'var(--blank-height)'
39
+ minHeight: 'var(--n-blank-height)'
40
40
  }), cM('left-labelled', `
41
41
  grid-template-areas:
42
42
  "label blank"
43
43
  "label feedback";
44
44
  grid-template-columns: auto minmax(0, 1fr);
45
45
  `, [cB('form-item-label', `
46
- height: var(--blank-height);
47
- line-height: var(--blank-height);
46
+ height: var(--n-blank-height);
47
+ line-height: var(--n-blank-height);
48
48
  box-sizing: border-box;
49
49
  white-space: nowrap;
50
50
  flex-shrink: 0;
@@ -54,7 +54,7 @@ export default cB('form-item', {
54
54
  "label"
55
55
  "blank"
56
56
  "feedback";
57
- grid-template-rows: var(--label-height) 1fr;
57
+ grid-template-rows: var(--n-label-height) 1fr;
58
58
  grid-template-columns: minmax(0, 100%);
59
59
  `, [cM('no-label', `
60
60
  grid-template-areas:
@@ -64,7 +64,7 @@ export default cB('form-item', {
64
64
  `), cB('form-item-label', {
65
65
  display: 'flex',
66
66
  alignItems: 'flex-end',
67
- justifyContent: 'var(--label-text-align)'
67
+ justifyContent: 'var(--n-label-text-align)'
68
68
  })]), cB('form-item-blank', `
69
69
  box-sizing: border-box;
70
70
  display: flex;
@@ -73,18 +73,18 @@ export default cB('form-item', {
73
73
  `), cB('form-item-feedback-wrapper', `
74
74
  grid-area: feedback;
75
75
  box-sizing: border-box;
76
- min-height: var(--feedback-height);
77
- font-size: var(--feedback-font-size);
78
- padding: var(--feedback-padding);
76
+ min-height: var(--n-feedback-height);
77
+ font-size: var(--n-feedback-font-size);
78
+ padding: var(--n-feedback-padding);
79
79
  line-height: 1.25;
80
80
  transform-origin: top left;
81
81
  `, [cB('form-item-feedback', {
82
- transition: 'color .3s var(--bezier)',
83
- color: 'var(--feedback-text-color)'
82
+ transition: 'color .3s var(--n-bezier)',
83
+ color: 'var(--n-feedback-text-color)'
84
84
  }, [cM('warning', {
85
- color: 'var(--feedback-text-color-warning)'
85
+ color: 'var(--n-feedback-text-color-warning)'
86
86
  }), cM('error', {
87
- color: 'var(--feedback-text-color-error)'
87
+ color: 'var(--n-feedback-text-color-error)'
88
88
  }), fadeDownTranstion({
89
89
  fromOffset: '-3px',
90
90
  enterDuration: '.3s',
@@ -115,11 +115,11 @@ declare const _default: import("vue").DefineComponent<{
115
115
  styleFontSize: import("vue").ComputedRef<string | number | undefined>;
116
116
  styleBgImage: import("vue").ComputedRef<string | undefined>;
117
117
  cssVars: import("vue").ComputedRef<{
118
- '--bezier': string;
119
- '--rotate': string;
120
- '--color-start': string;
121
- '--color-end': string;
122
- '--font-weight': string;
118
+ '--n-bezier': string;
119
+ '--n-rotate': string;
120
+ '--n-color-start': string;
121
+ '--n-color-end': string;
122
+ '--n-font-weight': string;
123
123
  }>;
124
124
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
125
125
  readonly size?: unknown;
@@ -48,11 +48,11 @@ export default defineComponent({
48
48
  const { value: type } = compatibleTypeRef;
49
49
  const { common: { cubicBezierEaseInOut }, self: { rotate, [createKey('colorStart', type)]: colorStart, [createKey('colorEnd', type)]: colorEnd, fontWeight } } = themeRef.value;
50
50
  return {
51
- '--bezier': cubicBezierEaseInOut,
52
- '--rotate': rotate,
53
- '--color-start': colorStart,
54
- '--color-end': colorEnd,
55
- '--font-weight': fontWeight
51
+ '--n-bezier': cubicBezierEaseInOut,
52
+ '--n-rotate': rotate,
53
+ '--n-color-start': colorStart,
54
+ '--n-color-end': colorEnd,
55
+ '--n-font-weight': fontWeight
56
56
  };
57
57
  })
58
58
  };
@@ -1,19 +1,19 @@
1
1
  import { cB } from '../../../_utils/cssr'; // vars:
2
- // --font-weight
3
- // --rotate
4
- // --bezier
5
- // --color-start
6
- // --color-end
2
+ // --n-font-weight
3
+ // --n-rotate
4
+ // --n-bezier
5
+ // --n-color-start
6
+ // --n-color-end
7
7
 
8
8
  export default cB('gradient-text', `
9
9
  display: inline-block;
10
- font-weight: var(--font-weight);
10
+ font-weight: var(--n-font-weight);
11
11
  -webkit-background-clip: text;
12
12
  background-clip: text;
13
13
  color: #0000;
14
14
  white-space: nowrap;
15
- background-image: linear-gradient(var(--rotate), var(--color-start) 0%, var(--color-end) 100%);
15
+ background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%);
16
16
  transition:
17
- --color-start .3s var(--bezier),
18
- --color-end .3s var(--bezier);
17
+ --n-color-start .3s var(--n-bezier),
18
+ --n-color-end .3s var(--n-bezier);
19
19
  `);
@@ -35,13 +35,13 @@ declare const _default: import("vue").DefineComponent<{
35
35
  color: string | undefined;
36
36
  }>;
37
37
  cssVars: import("vue").ComputedRef<{
38
- '--bezier': string;
39
- '--color': string;
40
- '--opacity': string;
38
+ '--n-bezier': string;
39
+ '--n-color': string;
40
+ '--n-opacity': string;
41
41
  } | {
42
- '--bezier': string;
43
- '--color'?: undefined;
44
- '--opacity'?: undefined;
42
+ '--n-bezier': string;
43
+ '--n-color'?: undefined;
44
+ '--n-opacity'?: undefined;
45
45
  }>;
46
46
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
47
47
  depth?: unknown;
@@ -26,13 +26,13 @@ export default defineComponent({
26
26
  if (depth !== undefined) {
27
27
  const { color, [`opacity${depth}Depth`]: opacity } = self;
28
28
  return {
29
- '--bezier': cubicBezierEaseInOut,
30
- '--color': color,
31
- '--opacity': opacity
29
+ '--n-bezier': cubicBezierEaseInOut,
30
+ '--n-color': color,
31
+ '--n-opacity': opacity
32
32
  };
33
33
  }
34
34
  return {
35
- '--bezier': cubicBezierEaseInOut
35
+ '--n-bezier': cubicBezierEaseInOut
36
36
  };
37
37
  })
38
38
  };
@@ -1,7 +1,7 @@
1
1
  import { c, cB, cM } from '../../../_utils/cssr'; // vars:
2
- // --bezier
3
- // --color
4
- // --opacity
2
+ // --n-bezier
3
+ // --n-color
4
+ // --n-opacity
5
5
 
6
6
  export default cB('icon', `
7
7
  height: 1em;
@@ -13,12 +13,12 @@ export default cB('icon', `
13
13
  fill: currentColor;
14
14
  transform: translateZ(0);
15
15
  `, [cM('color-transition', {
16
- transition: 'color .3s var(--bezier)'
16
+ transition: 'color .3s var(--n-bezier)'
17
17
  }), cM('depth', {
18
- color: 'var(--color)'
18
+ color: 'var(--n-color)'
19
19
  }, [c('svg', {
20
- opacity: 'var(--opacity)',
21
- transition: 'opacity .3s var(--bezier)'
20
+ opacity: 'var(--n-opacity)',
21
+ transition: 'opacity .3s var(--n-bezier)'
22
22
  })]), c('svg', {
23
23
  height: '1em',
24
24
  width: '1em'
@@ -14,8 +14,8 @@ declare const _default: import("vue").DefineComponent<{
14
14
  };
15
15
  }, {
16
16
  cssVars: import("vue").ComputedRef<{
17
- '--bezier': string;
18
- '--icon-color': string;
17
+ '--n-bezier': string;
18
+ '--n-icon-color': string;
19
19
  }>;
20
20
  setThumbnailEl: (e: HTMLImageElement | null) => void;
21
21
  setPreviewSrc: (src?: string | undefined) => void;
@@ -1,4 +1,4 @@
1
- import { h, defineComponent, Fragment, ref, withDirectives, Transition, vShow, renderSlot, watch, computed, toRef } from 'vue';
1
+ import { h, defineComponent, Fragment, ref, withDirectives, Transition, vShow, renderSlot, watch, computed, toRef, onBeforeUnmount } from 'vue';
2
2
  import { zindexable } from 'vdirs';
3
3
  import { useIsMounted } from 'vooks';
4
4
  import { LazyTeleport } from 'vueuc';
@@ -39,7 +39,7 @@ export default defineComponent({
39
39
  const ty = tbox.top + tbox.height / 2;
40
40
  style.transformOrigin = `${tx}px ${ty}px`;
41
41
  }
42
- function handleKeyup(e) {
42
+ function handleKeydown(e) {
43
43
  var _a, _b;
44
44
  switch (e.code) {
45
45
  case 'ArrowLeft':
@@ -53,14 +53,15 @@ export default defineComponent({
53
53
  break;
54
54
  }
55
55
  }
56
- if (props.onPrev) {
57
- watch(showRef, (value) => {
58
- if (value)
59
- on('keyup', document, handleKeyup);
60
- else
61
- off('keyup', document, handleKeyup);
62
- });
63
- }
56
+ watch(showRef, (value) => {
57
+ if (value)
58
+ on('keydown', document, handleKeydown);
59
+ else
60
+ off('keydown', document, handleKeydown);
61
+ });
62
+ onBeforeUnmount(() => {
63
+ off('keydown', document, handleKeydown);
64
+ });
64
65
  let startX = 0;
65
66
  let startY = 0;
66
67
  let offsetX = 0;
@@ -260,8 +261,8 @@ export default defineComponent({
260
261
  handleSwitchNext }, exposedMethods), { cssVars: computed(() => {
261
262
  const { common: { cubicBezierEaseInOut }, self: { iconColor } } = themeRef.value;
262
263
  return {
263
- '--bezier': cubicBezierEaseInOut,
264
- '--icon-color': iconColor
264
+ '--n-bezier': cubicBezierEaseInOut,
265
+ '--n-icon-color': iconColor
265
266
  };
266
267
  }) });
267
268
  },
@@ -1,8 +1,8 @@
1
1
  import { c, cB, cNotM } from '../../../_utils/cssr';
2
2
  import fadeInTransition from '../../../_styles/transitions/fade-in.cssr';
3
3
  import fadeInzoomInTransiton from '../../../_styles/transitions/fade-in-scale-up.cssr'; // vars:
4
- // --icon-color
5
- // --bezier
4
+ // --n-icon-color
5
+ // --n-bezier
6
6
 
7
7
  export default c([c('body >', [cB('image-container', 'position: fixed;')]), cB('image-preview-container', `
8
8
  position: fixed;
@@ -29,8 +29,8 @@ export default c([c('body >', [cB('image-container', 'position: fixed;')]), cB('
29
29
  bottom: 40px;
30
30
  padding: 0 12px;
31
31
  background: rgba(0, 0, 0, .35);
32
- color: var(--icon-color);
33
- transition: color .3s var(--bezier);
32
+ color: var(--n-icon-color);
33
+ transition: color .3s var(--n-bezier);
34
34
  display: flex;
35
35
  align-items: center;
36
36
  `, [cB('base-icon', `
@@ -51,7 +51,7 @@ export default c([c('body >', [cB('image-container', 'position: fixed;')]), cB('
51
51
  margin: auto;
52
52
  max-height: 100vh;
53
53
  max-width: 100vw;
54
- transition: transform .3s var(--bezier);
54
+ transition: transform .3s var(--n-bezier);
55
55
  `), cB('image', `
56
56
  display: inline-flex;
57
57
  max-height: 100%;