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
@@ -11,10 +11,10 @@ const _internal_1 = require("../../_internal");
11
11
  const styles_1 = require("../styles");
12
12
  const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
13
13
  const ConfigProvider_1 = require("../../config-provider/src/ConfigProvider");
14
- const emptyProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { description: {
15
- type: String,
16
- default: undefined
17
- }, showDescription: {
14
+ const emptyProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { description: String, showDescription: {
15
+ type: Boolean,
16
+ default: true
17
+ }, showIcon: {
18
18
  type: Boolean,
19
19
  default: true
20
20
  }, size: {
@@ -48,12 +48,12 @@ exports.default = (0, vue_1.defineComponent)({
48
48
  const { size } = props;
49
49
  const { common: { cubicBezierEaseInOut }, self: { [(0, _utils_1.createKey)('iconSize', size)]: iconSize, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, textColor, iconColor, extraTextColor } } = themeRef.value;
50
50
  return {
51
- '--icon-size': iconSize,
52
- '--font-size': fontSize,
53
- '--bezier': cubicBezierEaseInOut,
54
- '--text-color': textColor,
55
- '--icon-color': iconColor,
56
- '--extra-text-color': extraTextColor
51
+ '--n-icon-size': iconSize,
52
+ '--n-font-size': fontSize,
53
+ '--n-bezier': cubicBezierEaseInOut,
54
+ '--n-text-color': textColor,
55
+ '--n-icon-color': iconColor,
56
+ '--n-extra-text-color': extraTextColor
57
57
  };
58
58
  })
59
59
  };
@@ -61,9 +61,9 @@ exports.default = (0, vue_1.defineComponent)({
61
61
  render() {
62
62
  const { $slots, mergedClsPrefix } = this;
63
63
  return ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-empty`, style: this.cssVars },
64
- (0, vue_1.h)("div", { class: `${mergedClsPrefix}-empty__icon` }, (0, vue_1.renderSlot)($slots, 'icon', undefined, () => [
64
+ this.showIcon ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-empty__icon` }, (0, vue_1.renderSlot)($slots, 'icon', undefined, () => [
65
65
  (0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix }, { default: this.mergedRenderIcon })
66
- ])),
66
+ ]))) : null,
67
67
  this.showDescription ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-empty__description` }, (0, vue_1.renderSlot)($slots, 'default', undefined, () => [
68
68
  this.localizedDescription
69
69
  ]))) : null,
@@ -5,34 +5,35 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
 
7
7
  const cssr_1 = require("../../../_utils/cssr"); // vars:
8
- // --font-size
9
- // --icon-size
10
- // --icon-color
11
- // --bezier
12
- // --text-color
13
- // --extra-text-color
8
+ // --n-font-size
9
+ // --n-icon-size
10
+ // --n-icon-color
11
+ // --n-bezier
12
+ // --n-text-color
13
+ // --n-extra-text-color
14
14
 
15
15
 
16
16
  exports.default = (0, cssr_1.cB)('empty', `
17
17
  display: flex;
18
18
  flex-direction: column;
19
19
  align-items: center;
20
- font-size: var(--font-size);
20
+ font-size: var(--n-font-size);
21
21
  `, [(0, cssr_1.cE)('icon', `
22
- width: var(--icon-size);
23
- height: var(--icon-size);
24
- font-size: var(--icon-size);
25
- line-height: var(--icon-size);
26
- color: var(--icon-color);
22
+ width: var(--n-icon-size);
23
+ height: var(--n-icon-size);
24
+ font-size: var(--n-icon-size);
25
+ line-height: var(--n-icon-size);
26
+ color: var(--n-icon-color);
27
27
  transition:
28
- color .3s var(--bezier);
29
- `), (0, cssr_1.cE)('description', `
28
+ color .3s var(--n-bezier);
29
+ `, [(0, cssr_1.c)('+', [(0, cssr_1.cE)('description', `
30
30
  margin-top: 8px;
31
- transition: color .3s var(--bezier);
32
- color: var(--text-color);
31
+ `)])]), (0, cssr_1.cE)('description', `
32
+ transition: color .3s var(--n-bezier);
33
+ color: var(--n-text-color);
33
34
  `), (0, cssr_1.cE)('extra', `
34
35
  text-align: center;
35
- transition: color .3s var(--bezier);
36
+ transition: color .3s var(--n-bezier);
36
37
  margin-top: 12px;
37
- color: var(--extra-text-color);
38
+ color: var(--n-extra-text-color);
38
39
  `)]);
@@ -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;
@@ -243,21 +243,21 @@ exports.default = (0, vue_1.defineComponent)({
243
243
  mergedLabelTextAlign === 'right' ? 'flex-end' : 'flex-start';
244
244
  }
245
245
  const cssVars = {
246
- '--bezier': cubicBezierEaseInOut,
247
- '--line-height': lineHeight,
248
- '--blank-height': blankHeight,
249
- '--label-font-size': labelFontSize,
250
- '--label-text-align': mergedLabelTextAlign,
251
- '--label-height': labelHeight,
252
- '--label-padding': labelPadding,
253
- '--asterisk-color': asteriskColor,
254
- '--label-text-color': labelTextColor,
255
- '--feedback-padding': feedbackPadding,
256
- '--feedback-font-size': feedbackFontSize,
257
- '--feedback-height': feedbackHeight,
258
- '--feedback-text-color': feedbackTextColor,
259
- '--feedback-text-color-warning': feedbackTextColorWarning,
260
- '--feedback-text-color-error': feedbackTextColorError
246
+ '--n-bezier': cubicBezierEaseInOut,
247
+ '--n-line-height': lineHeight,
248
+ '--n-blank-height': blankHeight,
249
+ '--n-label-font-size': labelFontSize,
250
+ '--n-label-text-align': mergedLabelTextAlign,
251
+ '--n-label-height': labelHeight,
252
+ '--n-label-padding': labelPadding,
253
+ '--n-asterisk-color': asteriskColor,
254
+ '--n-label-text-color': labelTextColor,
255
+ '--n-feedback-padding': feedbackPadding,
256
+ '--n-feedback-font-size': feedbackFontSize,
257
+ '--n-feedback-height': feedbackHeight,
258
+ '--n-feedback-text-color': feedbackTextColor,
259
+ '--n-feedback-text-color-warning': feedbackTextColorWarning,
260
+ '--n-feedback-text-color-error': feedbackTextColorError
261
261
  };
262
262
  return cssVars;
263
263
  }) });
@@ -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<{
@@ -44,6 +44,7 @@ exports.default = (0, vue_1.defineComponent)({
44
44
  }
45
45
  };
46
46
  return {
47
+ formItemInstRef,
47
48
  validate,
48
49
  restoreValidation
49
50
  };
@@ -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<{
@@ -46,6 +46,7 @@ exports.default = (0, vue_1.defineComponent)({
46
46
  }
47
47
  };
48
48
  return {
49
+ formItemInstRef,
49
50
  validate,
50
51
  restoreValidation
51
52
  };
@@ -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<{
@@ -42,6 +42,7 @@ exports.default = (0, vue_1.defineComponent)({
42
42
  }
43
43
  };
44
44
  return {
45
+ formItemColInstRef,
45
46
  validate,
46
47
  restoreValidation
47
48
  };
@@ -13,52 +13,52 @@ Object.defineProperty(exports, "__esModule", {
13
13
  const cssr_1 = require("../../../_utils/cssr");
14
14
 
15
15
  const fade_down_cssr_1 = __importDefault(require("../../../_styles/transitions/fade-down.cssr")); // vars:
16
- // --line-height
17
- // --blank-height
18
- // --feedback-padding
19
- // --feedback-font-size
20
- // --label-font-size-left
21
- // --label-font-size-top
22
- // --label-height
23
- // --label-padding
24
- // --asterisk-color
25
- // --label-text-color
26
- // --bezier
27
- // --feedback-text-color
28
- // --feedback-text-color-warning
29
- // --feedback-text-color-error
30
- // --label-text-align
31
- // --label-padding
16
+ // --n-line-height
17
+ // --n-blank-height
18
+ // --n-feedback-padding
19
+ // --n-feedback-font-size
20
+ // --n-label-font-size-left
21
+ // --n-label-font-size-top
22
+ // --n-label-height
23
+ // --n-label-padding
24
+ // --n-asterisk-color
25
+ // --n-label-text-color
26
+ // --n-bezier
27
+ // --n-feedback-text-color
28
+ // --n-feedback-text-color-warning
29
+ // --n-feedback-text-color-error
30
+ // --n-label-text-align
31
+ // --n-label-padding
32
32
 
33
33
 
34
34
  exports.default = (0, cssr_1.cB)('form-item', {
35
35
  display: 'grid',
36
- lineHeight: 'var(--line-height)'
36
+ lineHeight: 'var(--n-line-height)'
37
37
  }, [(0, cssr_1.cB)('form-item-label', `
38
38
  grid-area: label;
39
39
  align-items: center;
40
40
  line-height: 1.25;
41
- text-align: var(--label-text-align);
42
- font-size: var(--label-font-size);
43
- height: var(--label-height);
44
- padding: var(--label-padding);
45
- color: var(--label-text-color);
46
- transition: color .3s var(--bezier);
41
+ text-align: var(--n-label-text-align);
42
+ font-size: var(--n-label-font-size);
43
+ height: var(--n-label-height);
44
+ padding: var(--n-label-padding);
45
+ color: var(--n-label-text-color);
46
+ transition: color .3s var(--n-bezier);
47
47
  box-sizing: border-box;
48
48
  `, [(0, cssr_1.cE)('asterisk', `
49
- color: var(--asterisk-color);
50
- transition: color .3s var(--bezier);
49
+ color: var(--n-asterisk-color);
50
+ transition: color .3s var(--n-bezier);
51
51
  `)]), (0, cssr_1.cB)('form-item-blank', {
52
52
  gridArea: 'blank',
53
- minHeight: 'var(--blank-height)'
53
+ minHeight: 'var(--n-blank-height)'
54
54
  }), (0, cssr_1.cM)('left-labelled', `
55
55
  grid-template-areas:
56
56
  "label blank"
57
57
  "label feedback";
58
58
  grid-template-columns: auto minmax(0, 1fr);
59
59
  `, [(0, cssr_1.cB)('form-item-label', `
60
- height: var(--blank-height);
61
- line-height: var(--blank-height);
60
+ height: var(--n-blank-height);
61
+ line-height: var(--n-blank-height);
62
62
  box-sizing: border-box;
63
63
  white-space: nowrap;
64
64
  flex-shrink: 0;
@@ -68,7 +68,7 @@ exports.default = (0, cssr_1.cB)('form-item', {
68
68
  "label"
69
69
  "blank"
70
70
  "feedback";
71
- grid-template-rows: var(--label-height) 1fr;
71
+ grid-template-rows: var(--n-label-height) 1fr;
72
72
  grid-template-columns: minmax(0, 100%);
73
73
  `, [(0, cssr_1.cM)('no-label', `
74
74
  grid-template-areas:
@@ -78,7 +78,7 @@ exports.default = (0, cssr_1.cB)('form-item', {
78
78
  `), (0, cssr_1.cB)('form-item-label', {
79
79
  display: 'flex',
80
80
  alignItems: 'flex-end',
81
- justifyContent: 'var(--label-text-align)'
81
+ justifyContent: 'var(--n-label-text-align)'
82
82
  })]), (0, cssr_1.cB)('form-item-blank', `
83
83
  box-sizing: border-box;
84
84
  display: flex;
@@ -87,18 +87,18 @@ exports.default = (0, cssr_1.cB)('form-item', {
87
87
  `), (0, cssr_1.cB)('form-item-feedback-wrapper', `
88
88
  grid-area: feedback;
89
89
  box-sizing: border-box;
90
- min-height: var(--feedback-height);
91
- font-size: var(--feedback-font-size);
92
- padding: var(--feedback-padding);
90
+ min-height: var(--n-feedback-height);
91
+ font-size: var(--n-feedback-font-size);
92
+ padding: var(--n-feedback-padding);
93
93
  line-height: 1.25;
94
94
  transform-origin: top left;
95
95
  `, [(0, cssr_1.cB)('form-item-feedback', {
96
- transition: 'color .3s var(--bezier)',
97
- color: 'var(--feedback-text-color)'
96
+ transition: 'color .3s var(--n-bezier)',
97
+ color: 'var(--n-feedback-text-color)'
98
98
  }, [(0, cssr_1.cM)('warning', {
99
- color: 'var(--feedback-text-color-warning)'
99
+ color: 'var(--n-feedback-text-color-warning)'
100
100
  }), (0, cssr_1.cM)('error', {
101
- color: 'var(--feedback-text-color-error)'
101
+ color: 'var(--n-feedback-text-color-error)'
102
102
  }), (0, fade_down_cssr_1.default)({
103
103
  fromOffset: '-3px',
104
104
  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;
@@ -53,11 +53,11 @@ exports.default = (0, vue_1.defineComponent)({
53
53
  const { value: type } = compatibleTypeRef;
54
54
  const { common: { cubicBezierEaseInOut }, self: { rotate, [(0, _utils_1.createKey)('colorStart', type)]: colorStart, [(0, _utils_1.createKey)('colorEnd', type)]: colorEnd, fontWeight } } = themeRef.value;
55
55
  return {
56
- '--bezier': cubicBezierEaseInOut,
57
- '--rotate': rotate,
58
- '--color-start': colorStart,
59
- '--color-end': colorEnd,
60
- '--font-weight': fontWeight
56
+ '--n-bezier': cubicBezierEaseInOut,
57
+ '--n-rotate': rotate,
58
+ '--n-color-start': colorStart,
59
+ '--n-color-end': colorEnd,
60
+ '--n-font-weight': fontWeight
61
61
  };
62
62
  })
63
63
  };
@@ -5,22 +5,22 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
 
7
7
  const cssr_1 = require("../../../_utils/cssr"); // vars:
8
- // --font-weight
9
- // --rotate
10
- // --bezier
11
- // --color-start
12
- // --color-end
8
+ // --n-font-weight
9
+ // --n-rotate
10
+ // --n-bezier
11
+ // --n-color-start
12
+ // --n-color-end
13
13
 
14
14
 
15
15
  exports.default = (0, cssr_1.cB)('gradient-text', `
16
16
  display: inline-block;
17
- font-weight: var(--font-weight);
17
+ font-weight: var(--n-font-weight);
18
18
  -webkit-background-clip: text;
19
19
  background-clip: text;
20
20
  color: #0000;
21
21
  white-space: nowrap;
22
- background-image: linear-gradient(var(--rotate), var(--color-start) 0%, var(--color-end) 100%);
22
+ background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%);
23
23
  transition:
24
- --color-start .3s var(--bezier),
25
- --color-end .3s var(--bezier);
24
+ --n-color-start .3s var(--n-bezier),
25
+ --n-color-end .3s var(--n-bezier);
26
26
  `);
@@ -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;
@@ -31,13 +31,13 @@ exports.default = (0, vue_1.defineComponent)({
31
31
  if (depth !== undefined) {
32
32
  const { color, [`opacity${depth}Depth`]: opacity } = self;
33
33
  return {
34
- '--bezier': cubicBezierEaseInOut,
35
- '--color': color,
36
- '--opacity': opacity
34
+ '--n-bezier': cubicBezierEaseInOut,
35
+ '--n-color': color,
36
+ '--n-opacity': opacity
37
37
  };
38
38
  }
39
39
  return {
40
- '--bezier': cubicBezierEaseInOut
40
+ '--n-bezier': cubicBezierEaseInOut
41
41
  };
42
42
  })
43
43
  };
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
 
7
7
  const cssr_1 = require("../../../_utils/cssr"); // vars:
8
- // --bezier
9
- // --color
10
- // --opacity
8
+ // --n-bezier
9
+ // --n-color
10
+ // --n-opacity
11
11
 
12
12
 
13
13
  exports.default = (0, cssr_1.cB)('icon', `
@@ -20,12 +20,12 @@ exports.default = (0, cssr_1.cB)('icon', `
20
20
  fill: currentColor;
21
21
  transform: translateZ(0);
22
22
  `, [(0, cssr_1.cM)('color-transition', {
23
- transition: 'color .3s var(--bezier)'
23
+ transition: 'color .3s var(--n-bezier)'
24
24
  }), (0, cssr_1.cM)('depth', {
25
- color: 'var(--color)'
25
+ color: 'var(--n-color)'
26
26
  }, [(0, cssr_1.c)('svg', {
27
- opacity: 'var(--opacity)',
28
- transition: 'opacity .3s var(--bezier)'
27
+ opacity: 'var(--n-opacity)',
28
+ transition: 'opacity .3s var(--n-bezier)'
29
29
  })]), (0, cssr_1.c)('svg', {
30
30
  height: '1em',
31
31
  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;
@@ -44,7 +44,7 @@ exports.default = (0, vue_1.defineComponent)({
44
44
  const ty = tbox.top + tbox.height / 2;
45
45
  style.transformOrigin = `${tx}px ${ty}px`;
46
46
  }
47
- function handleKeyup(e) {
47
+ function handleKeydown(e) {
48
48
  var _a, _b;
49
49
  switch (e.code) {
50
50
  case 'ArrowLeft':
@@ -58,14 +58,15 @@ exports.default = (0, vue_1.defineComponent)({
58
58
  break;
59
59
  }
60
60
  }
61
- if (props.onPrev) {
62
- (0, vue_1.watch)(showRef, (value) => {
63
- if (value)
64
- (0, evtd_1.on)('keyup', document, handleKeyup);
65
- else
66
- (0, evtd_1.off)('keyup', document, handleKeyup);
67
- });
68
- }
61
+ (0, vue_1.watch)(showRef, (value) => {
62
+ if (value)
63
+ (0, evtd_1.on)('keydown', document, handleKeydown);
64
+ else
65
+ (0, evtd_1.off)('keydown', document, handleKeydown);
66
+ });
67
+ (0, vue_1.onBeforeUnmount)(() => {
68
+ (0, evtd_1.off)('keydown', document, handleKeydown);
69
+ });
69
70
  let startX = 0;
70
71
  let startY = 0;
71
72
  let offsetX = 0;
@@ -265,8 +266,8 @@ exports.default = (0, vue_1.defineComponent)({
265
266
  handleSwitchNext }, exposedMethods), { cssVars: (0, vue_1.computed)(() => {
266
267
  const { common: { cubicBezierEaseInOut }, self: { iconColor } } = themeRef.value;
267
268
  return {
268
- '--bezier': cubicBezierEaseInOut,
269
- '--icon-color': iconColor
269
+ '--n-bezier': cubicBezierEaseInOut,
270
+ '--n-icon-color': iconColor
270
271
  };
271
272
  }) });
272
273
  },
@@ -15,8 +15,8 @@ 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
- // --icon-color
19
- // --bezier
18
+ // --n-icon-color
19
+ // --n-bezier
20
20
 
21
21
 
22
22
  exports.default = (0, cssr_1.c)([(0, cssr_1.c)('body >', [(0, cssr_1.cB)('image-container', 'position: fixed;')]), (0, cssr_1.cB)('image-preview-container', `
@@ -44,8 +44,8 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.c)('body >', [(0, cssr_1.cB)('image-
44
44
  bottom: 40px;
45
45
  padding: 0 12px;
46
46
  background: rgba(0, 0, 0, .35);
47
- color: var(--icon-color);
48
- transition: color .3s var(--bezier);
47
+ color: var(--n-icon-color);
48
+ transition: color .3s var(--n-bezier);
49
49
  display: flex;
50
50
  align-items: center;
51
51
  `, [(0, cssr_1.cB)('base-icon', `
@@ -66,7 +66,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.c)('body >', [(0, cssr_1.cB)('image-
66
66
  margin: auto;
67
67
  max-height: 100vh;
68
68
  max-width: 100vw;
69
- transition: transform .3s var(--bezier);
69
+ transition: transform .3s var(--n-bezier);
70
70
  `), (0, cssr_1.cB)('image', `
71
71
  display: inline-flex;
72
72
  max-height: 100%;