naive-ui 2.23.2 → 2.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/es/_internal/icons/Switcher.js +2 -3
  4. package/es/_internal/selection/src/styles/index.cssr.js +1 -1
  5. package/es/_internal/selection/styles/_common.js +1 -1
  6. package/es/auto-complete/src/AutoComplete.d.ts +12 -12
  7. package/es/auto-complete/src/AutoComplete.js +13 -15
  8. package/es/back-top/src/BackTop.d.ts +3 -3
  9. package/es/calendar/src/Calendar.d.ts +5 -1
  10. package/es/calendar/src/Calendar.js +16 -4
  11. package/es/calendar/src/interface.d.ts +4 -0
  12. package/es/carousel/index.d.ts +1 -0
  13. package/es/carousel/index.js +1 -0
  14. package/es/carousel/src/Carousel.d.ts +235 -19
  15. package/es/carousel/src/Carousel.js +683 -229
  16. package/es/carousel/src/CarouselArrow.d.ts +9 -0
  17. package/es/carousel/src/CarouselArrow.js +43 -0
  18. package/es/carousel/src/CarouselDots.d.ts +66 -0
  19. package/es/carousel/src/CarouselDots.js +118 -0
  20. package/es/carousel/src/CarouselItem.d.ts +11 -0
  21. package/es/carousel/src/CarouselItem.js +72 -0
  22. package/es/carousel/src/interface.d.ts +28 -0
  23. package/es/carousel/src/interface.js +2 -0
  24. package/es/carousel/src/styles/index.cssr.js +141 -38
  25. package/es/carousel/src/utils.d.ts +12 -0
  26. package/es/carousel/src/utils.js +58 -0
  27. package/es/carousel/styles/light.d.ts +3 -0
  28. package/es/carousel/styles/light.js +5 -2
  29. package/es/cascader/src/Cascader.d.ts +6 -2
  30. package/es/cascader/src/Cascader.js +2 -1
  31. package/es/cascader/src/CascaderOption.d.ts +1 -0
  32. package/es/cascader/src/CascaderOption.js +7 -4
  33. package/es/cascader/src/interface.d.ts +2 -1
  34. package/es/checkbox/src/styles/index.cssr.js +1 -1
  35. package/es/code/src/Code.d.ts +5 -0
  36. package/es/code/src/Code.js +6 -3
  37. package/es/code/src/styles/index.cssr.js +2 -2
  38. package/es/color-picker/src/ColorInputUnit.js +2 -2
  39. package/es/color-picker/src/ColorPicker.d.ts +13 -5
  40. package/es/color-picker/src/ColorPicker.js +19 -10
  41. package/es/color-picker/src/ColorPickerTrigger.d.ts +1 -1
  42. package/es/color-picker/src/ColorPickerTrigger.js +23 -17
  43. package/es/color-picker/src/interface.d.ts +2 -0
  44. package/es/color-picker/src/styles/index.cssr.js +1 -0
  45. package/es/config-provider/src/ConfigProvider.d.ts +27 -0
  46. package/es/data-table/src/DataTable.d.ts +10 -55
  47. package/es/data-table/src/DataTable.js +23 -49
  48. package/es/data-table/src/interface.d.ts +1 -1
  49. package/es/data-table/src/styles/index.cssr.js +4 -1
  50. package/es/data-table/src/utils.js +4 -1
  51. package/es/date-picker/src/DatePicker.d.ts +26 -22
  52. package/es/date-picker/src/DatePicker.js +99 -49
  53. package/es/date-picker/src/interface.d.ts +17 -2
  54. package/es/date-picker/src/panel/use-calendar.js +2 -2
  55. package/es/drawer/src/Drawer.d.ts +18 -58
  56. package/es/drawer/src/Drawer.js +32 -49
  57. package/es/drawer/src/DrawerBodyWrapper.js +21 -13
  58. package/es/drawer/src/DrawerContent.js +6 -6
  59. package/es/dropdown/src/Dropdown.d.ts +5 -0
  60. package/es/form/src/Feedbacks.js +4 -1
  61. package/es/form/src/Form.d.ts +7 -7
  62. package/es/form/src/Form.js +17 -8
  63. package/es/form/src/FormItem.d.ts +12 -7
  64. package/es/form/src/FormItem.js +24 -12
  65. package/es/form/src/FormItemCol.d.ts +8 -4
  66. package/es/form/src/FormItemGridItem.d.ts +8 -4
  67. package/es/form/src/FormItemRow.d.ts +7 -3
  68. package/es/form/src/interface.d.ts +6 -2
  69. package/es/form/src/styles/form-item.cssr.js +2 -0
  70. package/es/form/src/utils.d.ts +2 -2
  71. package/es/form/src/utils.js +29 -18
  72. package/es/image/src/Image.d.ts +279 -10
  73. package/es/image/src/Image.js +4 -17
  74. package/es/image/src/ImageGroup.d.ts +272 -2
  75. package/es/image/src/ImageGroup.js +5 -8
  76. package/es/image/src/ImagePreview.d.ts +195 -7
  77. package/es/image/src/ImagePreview.js +50 -31
  78. package/es/image/src/interface.d.ts +94 -0
  79. package/es/image/src/interface.js +2 -1
  80. package/es/image/src/styles/index.cssr.js +8 -4
  81. package/es/image/styles/dark.js +8 -1
  82. package/es/image/styles/light.d.ts +32 -3
  83. package/es/image/styles/light.js +8 -1
  84. package/es/input-number/src/utils.js +2 -2
  85. package/es/locales/common/deDE.js +10 -0
  86. package/es/locales/common/enUS.d.ts +9 -0
  87. package/es/locales/common/enUS.js +10 -0
  88. package/es/locales/common/frFR.js +10 -0
  89. package/es/locales/common/idID.js +10 -0
  90. package/es/locales/common/jaJP.js +10 -0
  91. package/es/locales/common/nbNO.js +10 -0
  92. package/es/locales/common/ruRU.js +10 -0
  93. package/es/locales/common/ukUA.js +10 -0
  94. package/es/locales/common/zhCN.js +9 -0
  95. package/es/locales/common/zhTW.js +10 -0
  96. package/es/mention/src/utils.js +0 -1
  97. package/es/message/index.d.ts +2 -1
  98. package/es/message/src/Message.d.ts +191 -19
  99. package/es/message/src/Message.js +13 -11
  100. package/es/message/src/MessageEnvironment.d.ts +3 -3
  101. package/es/message/src/MessageProvider.d.ts +5 -10
  102. package/es/message/src/MessageProvider.js +1 -1
  103. package/es/message/src/message-props.d.ts +5 -2
  104. package/es/message/src/types.d.ts +15 -0
  105. package/es/message/src/types.js +1 -0
  106. package/es/modal/src/Modal.d.ts +5 -0
  107. package/es/modal/src/Modal.js +2 -1
  108. package/es/page-header/index.d.ts +1 -1
  109. package/es/page-header/src/PageHeader.d.ts +1 -1
  110. package/es/pagination/index.d.ts +1 -1
  111. package/es/pagination/src/Pagination.d.ts +8 -4
  112. package/es/pagination/src/Pagination.js +66 -19
  113. package/es/pagination/src/interface.d.ts +10 -1
  114. package/es/pagination/src/utils.d.ts +2 -2
  115. package/es/pagination/src/utils.js +2 -4
  116. package/es/popconfirm/src/Popconfirm.d.ts +5 -0
  117. package/es/popover/src/Popover.d.ts +7 -0
  118. package/es/popover/src/Popover.js +24 -1
  119. package/es/popover/src/PopoverBody.d.ts +5 -0
  120. package/es/popover/src/PopoverBody.js +28 -46
  121. package/es/popover/src/styles/index.cssr.js +9 -8
  122. package/es/popselect/src/Popselect.d.ts +62 -73
  123. package/es/popselect/src/Popselect.js +2 -2
  124. package/es/progress/src/Circle.d.ts +7 -0
  125. package/es/progress/src/Circle.js +8 -1
  126. package/es/progress/src/Line.d.ts +2 -2
  127. package/es/progress/src/Line.js +4 -1
  128. package/es/progress/src/Progress.d.ts +6 -2
  129. package/es/progress/src/Progress.js +2 -2
  130. package/es/progress/src/styles/index.cssr.js +16 -16
  131. package/es/radio/src/styles/radio.cssr.js +4 -1
  132. package/es/result/src/Result.js +9 -10
  133. package/es/result/src/styles/index.cssr.js +7 -7
  134. package/es/select/src/Select.d.ts +8 -27
  135. package/es/select/src/Select.js +16 -24
  136. package/es/slider/src/Slider.d.ts +2 -4
  137. package/es/tabs/index.d.ts +1 -0
  138. package/es/tabs/src/Tabs.d.ts +2 -2
  139. package/es/tabs/src/Tabs.js +25 -22
  140. package/es/tabs/src/interface.d.ts +3 -0
  141. package/es/time-picker/src/TimePicker.d.ts +22 -2
  142. package/es/time-picker/src/TimePicker.js +59 -29
  143. package/es/time-picker/src/interface.d.ts +4 -2
  144. package/es/tooltip/src/Tooltip.d.ts +5 -0
  145. package/es/tree/src/Tree.d.ts +5 -1
  146. package/es/tree/src/Tree.js +4 -2
  147. package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
  148. package/es/tree/src/TreeNodeSwitcher.js +25 -14
  149. package/es/tree/src/interface.d.ts +2 -0
  150. package/es/tree/src/styles/index.cssr.js +4 -2
  151. package/es/upload/src/Upload.d.ts +15 -6
  152. package/es/upload/src/Upload.js +18 -9
  153. package/es/upload/src/UploadFile.d.ts +5 -5
  154. package/es/upload/src/UploadFileList.js +2 -2
  155. package/es/upload/src/interface.d.ts +11 -4
  156. package/es/version.d.ts +1 -1
  157. package/es/version.js +1 -1
  158. package/lib/_internal/icons/Switcher.js +2 -3
  159. package/lib/_internal/selection/src/styles/index.cssr.js +1 -1
  160. package/lib/_internal/selection/styles/_common.js +1 -1
  161. package/lib/auto-complete/src/AutoComplete.d.ts +12 -12
  162. package/lib/auto-complete/src/AutoComplete.js +14 -16
  163. package/lib/back-top/src/BackTop.d.ts +3 -3
  164. package/lib/calendar/src/Calendar.d.ts +5 -1
  165. package/lib/calendar/src/Calendar.js +15 -3
  166. package/lib/calendar/src/interface.d.ts +4 -0
  167. package/lib/carousel/index.d.ts +1 -0
  168. package/lib/carousel/index.js +3 -1
  169. package/lib/carousel/src/Carousel.d.ts +235 -19
  170. package/lib/carousel/src/Carousel.js +681 -227
  171. package/lib/carousel/src/CarouselArrow.d.ts +9 -0
  172. package/lib/carousel/src/CarouselArrow.js +45 -0
  173. package/lib/carousel/src/CarouselDots.d.ts +66 -0
  174. package/lib/carousel/src/CarouselDots.js +120 -0
  175. package/lib/carousel/src/CarouselItem.d.ts +11 -0
  176. package/lib/carousel/src/CarouselItem.js +74 -0
  177. package/lib/carousel/src/interface.d.ts +28 -0
  178. package/lib/carousel/src/interface.js +6 -0
  179. package/lib/carousel/src/styles/index.cssr.js +141 -38
  180. package/lib/carousel/src/utils.d.ts +12 -0
  181. package/lib/carousel/src/utils.js +69 -0
  182. package/lib/carousel/styles/light.d.ts +3 -0
  183. package/lib/carousel/styles/light.js +5 -2
  184. package/lib/cascader/src/Cascader.d.ts +6 -2
  185. package/lib/cascader/src/Cascader.js +2 -1
  186. package/lib/cascader/src/CascaderOption.d.ts +1 -0
  187. package/lib/cascader/src/CascaderOption.js +7 -4
  188. package/lib/cascader/src/interface.d.ts +2 -1
  189. package/lib/checkbox/src/styles/index.cssr.js +1 -1
  190. package/lib/code/src/Code.d.ts +5 -0
  191. package/lib/code/src/Code.js +6 -3
  192. package/lib/code/src/styles/index.cssr.js +1 -1
  193. package/lib/color-picker/src/ColorInputUnit.js +1 -1
  194. package/lib/color-picker/src/ColorPicker.d.ts +13 -5
  195. package/lib/color-picker/src/ColorPicker.js +19 -10
  196. package/lib/color-picker/src/ColorPickerTrigger.d.ts +1 -1
  197. package/lib/color-picker/src/ColorPickerTrigger.js +22 -16
  198. package/lib/color-picker/src/interface.d.ts +2 -0
  199. package/lib/color-picker/src/styles/index.cssr.js +1 -0
  200. package/lib/config-provider/src/ConfigProvider.d.ts +27 -0
  201. package/lib/data-table/src/DataTable.d.ts +10 -55
  202. package/lib/data-table/src/DataTable.js +21 -47
  203. package/lib/data-table/src/interface.d.ts +1 -1
  204. package/lib/data-table/src/styles/index.cssr.js +4 -1
  205. package/lib/data-table/src/utils.js +3 -0
  206. package/lib/date-picker/src/DatePicker.d.ts +26 -22
  207. package/lib/date-picker/src/DatePicker.js +98 -48
  208. package/lib/date-picker/src/interface.d.ts +17 -2
  209. package/lib/date-picker/src/panel/use-calendar.js +2 -2
  210. package/lib/drawer/src/Drawer.d.ts +18 -58
  211. package/lib/drawer/src/Drawer.js +30 -47
  212. package/lib/drawer/src/DrawerBodyWrapper.js +21 -13
  213. package/lib/drawer/src/DrawerContent.js +6 -6
  214. package/lib/dropdown/src/Dropdown.d.ts +5 -0
  215. package/lib/form/src/Feedbacks.js +4 -1
  216. package/lib/form/src/Form.d.ts +7 -7
  217. package/lib/form/src/Form.js +16 -7
  218. package/lib/form/src/FormItem.d.ts +12 -7
  219. package/lib/form/src/FormItem.js +23 -11
  220. package/lib/form/src/FormItemCol.d.ts +8 -4
  221. package/lib/form/src/FormItemGridItem.d.ts +8 -4
  222. package/lib/form/src/FormItemRow.d.ts +7 -3
  223. package/lib/form/src/interface.d.ts +6 -2
  224. package/lib/form/src/styles/form-item.cssr.js +2 -0
  225. package/lib/form/src/utils.d.ts +2 -2
  226. package/lib/form/src/utils.js +29 -18
  227. package/lib/image/src/Image.d.ts +279 -10
  228. package/lib/image/src/Image.js +4 -17
  229. package/lib/image/src/ImageGroup.d.ts +272 -2
  230. package/lib/image/src/ImageGroup.js +4 -7
  231. package/lib/image/src/ImagePreview.d.ts +195 -7
  232. package/lib/image/src/ImagePreview.js +49 -30
  233. package/lib/image/src/interface.d.ts +94 -0
  234. package/lib/image/src/interface.js +3 -0
  235. package/lib/image/src/styles/index.cssr.js +8 -4
  236. package/lib/image/styles/dark.js +8 -1
  237. package/lib/image/styles/light.d.ts +32 -3
  238. package/lib/image/styles/light.js +8 -1
  239. package/lib/input-number/src/utils.js +2 -2
  240. package/lib/locales/common/deDE.js +10 -0
  241. package/lib/locales/common/enUS.d.ts +9 -0
  242. package/lib/locales/common/enUS.js +10 -0
  243. package/lib/locales/common/frFR.js +10 -0
  244. package/lib/locales/common/idID.js +10 -0
  245. package/lib/locales/common/jaJP.js +10 -0
  246. package/lib/locales/common/nbNO.js +10 -0
  247. package/lib/locales/common/ruRU.js +10 -0
  248. package/lib/locales/common/ukUA.js +10 -0
  249. package/lib/locales/common/zhCN.js +9 -0
  250. package/lib/locales/common/zhTW.js +10 -0
  251. package/lib/mention/src/utils.js +0 -1
  252. package/lib/message/index.d.ts +2 -1
  253. package/lib/message/src/Message.d.ts +191 -19
  254. package/lib/message/src/Message.js +13 -11
  255. package/lib/message/src/MessageEnvironment.d.ts +3 -3
  256. package/lib/message/src/MessageProvider.d.ts +5 -10
  257. package/lib/message/src/MessageProvider.js +1 -1
  258. package/lib/message/src/message-props.d.ts +5 -2
  259. package/lib/message/src/types.d.ts +15 -0
  260. package/lib/message/src/types.js +2 -0
  261. package/lib/modal/src/Modal.d.ts +5 -0
  262. package/lib/modal/src/Modal.js +2 -1
  263. package/lib/page-header/index.d.ts +1 -1
  264. package/lib/page-header/src/PageHeader.d.ts +1 -1
  265. package/lib/pagination/index.d.ts +1 -1
  266. package/lib/pagination/src/Pagination.d.ts +8 -4
  267. package/lib/pagination/src/Pagination.js +65 -18
  268. package/lib/pagination/src/interface.d.ts +10 -1
  269. package/lib/pagination/src/utils.d.ts +2 -2
  270. package/lib/pagination/src/utils.js +2 -4
  271. package/lib/popconfirm/src/Popconfirm.d.ts +5 -0
  272. package/lib/popover/src/Popover.d.ts +7 -0
  273. package/lib/popover/src/Popover.js +23 -0
  274. package/lib/popover/src/PopoverBody.d.ts +5 -0
  275. package/lib/popover/src/PopoverBody.js +27 -45
  276. package/lib/popover/src/styles/index.cssr.js +9 -8
  277. package/lib/popselect/src/Popselect.d.ts +62 -73
  278. package/lib/popselect/src/Popselect.js +2 -2
  279. package/lib/progress/src/Circle.d.ts +7 -0
  280. package/lib/progress/src/Circle.js +8 -1
  281. package/lib/progress/src/Line.d.ts +2 -2
  282. package/lib/progress/src/Line.js +4 -1
  283. package/lib/progress/src/Progress.d.ts +6 -2
  284. package/lib/progress/src/Progress.js +2 -2
  285. package/lib/progress/src/styles/index.cssr.js +16 -16
  286. package/lib/radio/src/styles/radio.cssr.js +4 -1
  287. package/lib/result/src/Result.js +8 -9
  288. package/lib/result/src/styles/index.cssr.js +6 -6
  289. package/lib/select/src/Select.d.ts +8 -27
  290. package/lib/select/src/Select.js +14 -22
  291. package/lib/slider/src/Slider.d.ts +2 -4
  292. package/lib/tabs/index.d.ts +1 -0
  293. package/lib/tabs/src/Tabs.d.ts +2 -2
  294. package/lib/tabs/src/Tabs.js +25 -22
  295. package/lib/tabs/src/interface.d.ts +3 -0
  296. package/lib/time-picker/src/TimePicker.d.ts +22 -2
  297. package/lib/time-picker/src/TimePicker.js +59 -29
  298. package/lib/time-picker/src/interface.d.ts +4 -2
  299. package/lib/tooltip/src/Tooltip.d.ts +5 -0
  300. package/lib/tree/src/Tree.d.ts +5 -1
  301. package/lib/tree/src/Tree.js +4 -2
  302. package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
  303. package/lib/tree/src/TreeNodeSwitcher.js +24 -13
  304. package/lib/tree/src/interface.d.ts +2 -0
  305. package/lib/tree/src/styles/index.cssr.js +4 -2
  306. package/lib/upload/src/Upload.d.ts +15 -6
  307. package/lib/upload/src/Upload.js +18 -9
  308. package/lib/upload/src/UploadFile.d.ts +5 -5
  309. package/lib/upload/src/UploadFileList.js +2 -2
  310. package/lib/upload/src/interface.d.ts +11 -4
  311. package/lib/version.d.ts +1 -1
  312. package/lib/version.js +1 -1
  313. package/package.json +21 -13
  314. package/web-types.json +413 -31
@@ -1,9 +1,101 @@
1
1
  import { PropType, ImgHTMLAttributes } from 'vue';
2
- import { ExtractPublicPropTypes } from '../../_utils';
2
+ import type { ExtractPublicPropTypes } from '../../_utils';
3
3
  export interface ImageInst {
4
4
  click: () => void;
5
5
  }
6
6
  declare const imageProps: {
7
+ showToolbar: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ showToolbarTooltip: BooleanConstructor;
12
+ theme: PropType<import("../../_mixins").Theme<"Image", {
13
+ toolbarIconColor: string;
14
+ toolbarColor: string;
15
+ toolbarBoxShadow: string;
16
+ toolbarBorderRadius: string;
17
+ }, {
18
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
19
+ borderRadius: string;
20
+ boxShadow: string;
21
+ color: string;
22
+ textColor: string;
23
+ padding: string;
24
+ }, {
25
+ Popover: import("../../_mixins").Theme<"Popover", {
26
+ fontSize: string;
27
+ borderRadius: string;
28
+ color: string;
29
+ dividerColor: string;
30
+ textColor: string;
31
+ boxShadow: string;
32
+ space: string;
33
+ spaceArrow: string;
34
+ arrowOffset: string;
35
+ arrowOffsetVertical: string;
36
+ arrowHeight: string;
37
+ padding: string;
38
+ }, any>;
39
+ }>;
40
+ }>>;
41
+ themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
42
+ toolbarIconColor: string;
43
+ toolbarColor: string;
44
+ toolbarBoxShadow: string;
45
+ toolbarBorderRadius: string;
46
+ }, {
47
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
48
+ borderRadius: string;
49
+ boxShadow: string;
50
+ color: string;
51
+ textColor: string;
52
+ padding: string;
53
+ }, {
54
+ Popover: import("../../_mixins").Theme<"Popover", {
55
+ fontSize: string;
56
+ borderRadius: string;
57
+ color: string;
58
+ dividerColor: string;
59
+ textColor: string;
60
+ boxShadow: string;
61
+ space: string;
62
+ spaceArrow: string;
63
+ arrowOffset: string;
64
+ arrowOffsetVertical: string;
65
+ arrowHeight: string;
66
+ padding: string;
67
+ }, any>;
68
+ }>;
69
+ }>>>;
70
+ builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
71
+ toolbarIconColor: string;
72
+ toolbarColor: string;
73
+ toolbarBoxShadow: string;
74
+ toolbarBorderRadius: string;
75
+ }, {
76
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
77
+ borderRadius: string;
78
+ boxShadow: string;
79
+ color: string;
80
+ textColor: string;
81
+ padding: string;
82
+ }, {
83
+ Popover: import("../../_mixins").Theme<"Popover", {
84
+ fontSize: string;
85
+ borderRadius: string;
86
+ color: string;
87
+ dividerColor: string;
88
+ textColor: string;
89
+ boxShadow: string;
90
+ space: string;
91
+ spaceArrow: string;
92
+ arrowOffset: string;
93
+ arrowOffsetVertical: string;
94
+ arrowHeight: string;
95
+ padding: string;
96
+ }, any>;
97
+ }>;
98
+ }>>>;
7
99
  alt: StringConstructor;
8
100
  height: PropType<string | number>;
9
101
  imgProps: PropType<ImgHTMLAttributes>;
@@ -15,10 +107,6 @@ declare const imageProps: {
15
107
  fallbackSrc: StringConstructor;
16
108
  width: PropType<string | number>;
17
109
  src: StringConstructor;
18
- showToolbar: {
19
- type: BooleanConstructor;
20
- default: boolean;
21
- };
22
110
  previewDisabled: BooleanConstructor;
23
111
  loadDescription: StringConstructor;
24
112
  onError: PropType<(e: Event) => void>;
@@ -26,6 +114,98 @@ declare const imageProps: {
26
114
  };
27
115
  export declare type ImageProps = ExtractPublicPropTypes<typeof imageProps>;
28
116
  declare const _default: import("vue").DefineComponent<{
117
+ showToolbar: {
118
+ type: BooleanConstructor;
119
+ default: boolean;
120
+ };
121
+ showToolbarTooltip: BooleanConstructor;
122
+ theme: PropType<import("../../_mixins").Theme<"Image", {
123
+ toolbarIconColor: string;
124
+ toolbarColor: string;
125
+ toolbarBoxShadow: string;
126
+ toolbarBorderRadius: string;
127
+ }, {
128
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
129
+ borderRadius: string;
130
+ boxShadow: string;
131
+ color: string;
132
+ textColor: string;
133
+ padding: string;
134
+ }, {
135
+ Popover: import("../../_mixins").Theme<"Popover", {
136
+ fontSize: string;
137
+ borderRadius: string;
138
+ color: string;
139
+ dividerColor: string;
140
+ textColor: string;
141
+ boxShadow: string;
142
+ space: string;
143
+ spaceArrow: string;
144
+ arrowOffset: string;
145
+ arrowOffsetVertical: string;
146
+ arrowHeight: string;
147
+ padding: string;
148
+ }, any>;
149
+ }>;
150
+ }>>;
151
+ themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
152
+ toolbarIconColor: string;
153
+ toolbarColor: string;
154
+ toolbarBoxShadow: string;
155
+ toolbarBorderRadius: string;
156
+ }, {
157
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
158
+ borderRadius: string;
159
+ boxShadow: string;
160
+ color: string;
161
+ textColor: string;
162
+ padding: string;
163
+ }, {
164
+ Popover: import("../../_mixins").Theme<"Popover", {
165
+ fontSize: string;
166
+ borderRadius: string;
167
+ color: string;
168
+ dividerColor: string;
169
+ textColor: string;
170
+ boxShadow: string;
171
+ space: string;
172
+ spaceArrow: string;
173
+ arrowOffset: string;
174
+ arrowOffsetVertical: string;
175
+ arrowHeight: string;
176
+ padding: string;
177
+ }, any>;
178
+ }>;
179
+ }>>>;
180
+ builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
181
+ toolbarIconColor: string;
182
+ toolbarColor: string;
183
+ toolbarBoxShadow: string;
184
+ toolbarBorderRadius: string;
185
+ }, {
186
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
187
+ borderRadius: string;
188
+ boxShadow: string;
189
+ color: string;
190
+ textColor: string;
191
+ padding: string;
192
+ }, {
193
+ Popover: import("../../_mixins").Theme<"Popover", {
194
+ fontSize: string;
195
+ borderRadius: string;
196
+ color: string;
197
+ dividerColor: string;
198
+ textColor: string;
199
+ boxShadow: string;
200
+ space: string;
201
+ spaceArrow: string;
202
+ arrowOffset: string;
203
+ arrowOffsetVertical: string;
204
+ arrowHeight: string;
205
+ padding: string;
206
+ }, any>;
207
+ }>;
208
+ }>>>;
29
209
  alt: StringConstructor;
30
210
  height: PropType<string | number>;
31
211
  imgProps: PropType<ImgHTMLAttributes>;
@@ -37,10 +217,6 @@ declare const _default: import("vue").DefineComponent<{
37
217
  fallbackSrc: StringConstructor;
38
218
  width: PropType<string | number>;
39
219
  src: StringConstructor;
40
- showToolbar: {
41
- type: BooleanConstructor;
42
- default: boolean;
43
- };
44
220
  previewDisabled: BooleanConstructor;
45
221
  loadDescription: StringConstructor;
46
222
  onError: PropType<(e: Event) => void>;
@@ -60,6 +236,11 @@ declare const _default: import("vue").DefineComponent<{
60
236
  mergedOnError: (e: Event) => void;
61
237
  mergedOnLoad: (e: Event) => void;
62
238
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
239
+ showToolbar?: unknown;
240
+ showToolbarTooltip?: unknown;
241
+ theme?: unknown;
242
+ themeOverrides?: unknown;
243
+ builtinThemeOverrides?: unknown;
63
244
  alt?: unknown;
64
245
  height?: unknown;
65
246
  imgProps?: unknown;
@@ -68,7 +249,6 @@ declare const _default: import("vue").DefineComponent<{
68
249
  fallbackSrc?: unknown;
69
250
  width?: unknown;
70
251
  src?: unknown;
71
- showToolbar?: unknown;
72
252
  previewDisabled?: unknown;
73
253
  loadDescription?: unknown;
74
254
  onError?: unknown;
@@ -76,6 +256,7 @@ declare const _default: import("vue").DefineComponent<{
76
256
  } & {
77
257
  objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
78
258
  showToolbar: boolean;
259
+ showToolbarTooltip: boolean;
79
260
  previewDisabled: boolean;
80
261
  } & {
81
262
  onError?: ((e: Event) => void) | undefined;
@@ -84,6 +265,93 @@ declare const _default: import("vue").DefineComponent<{
84
265
  onLoad?: ((e: Event) => void) | undefined;
85
266
  alt?: string | undefined;
86
267
  src?: string | undefined;
268
+ theme?: import("../../_mixins").Theme<"Image", {
269
+ toolbarIconColor: string;
270
+ toolbarColor: string;
271
+ toolbarBoxShadow: string;
272
+ toolbarBorderRadius: string;
273
+ }, {
274
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
275
+ borderRadius: string;
276
+ boxShadow: string;
277
+ color: string;
278
+ textColor: string;
279
+ padding: string;
280
+ }, {
281
+ Popover: import("../../_mixins").Theme<"Popover", {
282
+ fontSize: string;
283
+ borderRadius: string;
284
+ color: string;
285
+ dividerColor: string;
286
+ textColor: string;
287
+ boxShadow: string;
288
+ space: string;
289
+ spaceArrow: string;
290
+ arrowOffset: string;
291
+ arrowOffsetVertical: string;
292
+ arrowHeight: string;
293
+ padding: string;
294
+ }, any>;
295
+ }>;
296
+ }> | undefined;
297
+ themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
298
+ toolbarIconColor: string;
299
+ toolbarColor: string;
300
+ toolbarBoxShadow: string;
301
+ toolbarBorderRadius: string;
302
+ }, {
303
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
304
+ borderRadius: string;
305
+ boxShadow: string;
306
+ color: string;
307
+ textColor: string;
308
+ padding: string;
309
+ }, {
310
+ Popover: import("../../_mixins").Theme<"Popover", {
311
+ fontSize: string;
312
+ borderRadius: string;
313
+ color: string;
314
+ dividerColor: string;
315
+ textColor: string;
316
+ boxShadow: string;
317
+ space: string;
318
+ spaceArrow: string;
319
+ arrowOffset: string;
320
+ arrowOffsetVertical: string;
321
+ arrowHeight: string;
322
+ padding: string;
323
+ }, any>;
324
+ }>;
325
+ }>> | undefined;
326
+ builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
327
+ toolbarIconColor: string;
328
+ toolbarColor: string;
329
+ toolbarBoxShadow: string;
330
+ toolbarBorderRadius: string;
331
+ }, {
332
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
333
+ borderRadius: string;
334
+ boxShadow: string;
335
+ color: string;
336
+ textColor: string;
337
+ padding: string;
338
+ }, {
339
+ Popover: import("../../_mixins").Theme<"Popover", {
340
+ fontSize: string;
341
+ borderRadius: string;
342
+ color: string;
343
+ dividerColor: string;
344
+ textColor: string;
345
+ boxShadow: string;
346
+ space: string;
347
+ spaceArrow: string;
348
+ arrowOffset: string;
349
+ arrowOffsetVertical: string;
350
+ arrowHeight: string;
351
+ padding: string;
352
+ }, any>;
353
+ }>;
354
+ }>> | undefined;
87
355
  fallbackSrc?: string | undefined;
88
356
  previewSrc?: string | undefined;
89
357
  imgProps?: ImgHTMLAttributes | undefined;
@@ -91,6 +359,7 @@ declare const _default: import("vue").DefineComponent<{
91
359
  }>, {
92
360
  objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
93
361
  showToolbar: boolean;
362
+ showToolbarTooltip: boolean;
94
363
  previewDisabled: boolean;
95
364
  }>;
96
365
  export default _default;
@@ -7,24 +7,11 @@ const vue_1 = require("vue");
7
7
  const ImagePreview_1 = __importDefault(require("./ImagePreview"));
8
8
  const ImageGroup_1 = require("./ImageGroup");
9
9
  const _mixins_1 = require("../../_mixins");
10
- const imageProps = {
11
- alt: String,
12
- height: [String, Number],
13
- imgProps: Object,
14
- objectFit: {
10
+ const interface_1 = require("./interface");
11
+ const imageProps = Object.assign({ alt: String, height: [String, Number], imgProps: Object, objectFit: {
15
12
  type: String,
16
13
  default: 'fill'
17
- },
18
- previewSrc: String,
19
- fallbackSrc: String,
20
- width: [String, Number],
21
- src: String,
22
- showToolbar: { type: Boolean, default: true },
23
- previewDisabled: Boolean,
24
- loadDescription: String,
25
- onError: Function,
26
- onLoad: Function
27
- };
14
+ }, previewSrc: String, fallbackSrc: String, width: [String, Number], src: String, previewDisabled: Boolean, loadDescription: String, onError: Function, onLoad: Function }, interface_1.imagePreviewSharedProps);
28
15
  exports.default = (0, vue_1.defineComponent)({
29
16
  name: 'Image',
30
17
  props: imageProps,
@@ -81,7 +68,7 @@ exports.default = (0, vue_1.defineComponent)({
81
68
  `${mergedClsPrefix}-image`,
82
69
  (this.previewDisabled || this.showError) &&
83
70
  `${mergedClsPrefix}-image--preview-disabled`
84
- ] }), this.groupId ? (imgNode) : ((0, vue_1.h)(ImagePreview_1.default, { clsPrefix: mergedClsPrefix, ref: "previewInstRef", showToolbar: this.showToolbar }, {
71
+ ] }), this.groupId ? (imgNode) : ((0, vue_1.h)(ImagePreview_1.default, { theme: this.theme, themeOverrides: this.themeOverrides, clsPrefix: mergedClsPrefix, ref: "previewInstRef", showToolbar: this.showToolbar, showToolbarTooltip: this.showToolbarTooltip }, {
85
72
  default: () => imgNode
86
73
  }))));
87
74
  }
@@ -1,6 +1,6 @@
1
1
  import { InjectionKey, Ref } from 'vue';
2
- import type { ImagePreviewInst } from './ImagePreview';
3
2
  import { ExtractPublicPropTypes } from '../../_utils';
3
+ import type { ImagePreviewInst } from './ImagePreview';
4
4
  export declare const imageGroupInjectionKey: InjectionKey<ImagePreviewInst & {
5
5
  groupId: string;
6
6
  mergedClsPrefixRef: Ref<string>;
@@ -10,6 +10,94 @@ declare const imageGroupProps: {
10
10
  type: BooleanConstructor;
11
11
  default: boolean;
12
12
  };
13
+ showToolbarTooltip: BooleanConstructor;
14
+ theme: import("vue").PropType<import("../../_mixins").Theme<"Image", {
15
+ toolbarIconColor: string;
16
+ toolbarColor: string;
17
+ toolbarBoxShadow: string;
18
+ toolbarBorderRadius: string;
19
+ }, {
20
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
21
+ borderRadius: string;
22
+ boxShadow: string;
23
+ color: string;
24
+ textColor: string;
25
+ padding: string;
26
+ }, {
27
+ Popover: import("../../_mixins").Theme<"Popover", {
28
+ fontSize: string;
29
+ borderRadius: string;
30
+ color: string;
31
+ dividerColor: string;
32
+ textColor: string;
33
+ boxShadow: string;
34
+ space: string;
35
+ spaceArrow: string;
36
+ arrowOffset: string;
37
+ arrowOffsetVertical: string;
38
+ arrowHeight: string;
39
+ padding: string;
40
+ }, any>;
41
+ }>;
42
+ }>>;
43
+ themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
44
+ toolbarIconColor: string;
45
+ toolbarColor: string;
46
+ toolbarBoxShadow: string;
47
+ toolbarBorderRadius: string;
48
+ }, {
49
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
50
+ borderRadius: string;
51
+ boxShadow: string;
52
+ color: string;
53
+ textColor: string;
54
+ padding: string;
55
+ }, {
56
+ Popover: import("../../_mixins").Theme<"Popover", {
57
+ fontSize: string;
58
+ borderRadius: string;
59
+ color: string;
60
+ dividerColor: string;
61
+ textColor: string;
62
+ boxShadow: string;
63
+ space: string;
64
+ spaceArrow: string;
65
+ arrowOffset: string;
66
+ arrowOffsetVertical: string;
67
+ arrowHeight: string;
68
+ padding: string;
69
+ }, any>;
70
+ }>;
71
+ }>>>;
72
+ builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
73
+ toolbarIconColor: string;
74
+ toolbarColor: string;
75
+ toolbarBoxShadow: string;
76
+ toolbarBorderRadius: string;
77
+ }, {
78
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
79
+ borderRadius: string;
80
+ boxShadow: string;
81
+ color: string;
82
+ textColor: string;
83
+ padding: string;
84
+ }, {
85
+ Popover: import("../../_mixins").Theme<"Popover", {
86
+ fontSize: string;
87
+ borderRadius: string;
88
+ color: string;
89
+ dividerColor: string;
90
+ textColor: string;
91
+ boxShadow: string;
92
+ space: string;
93
+ spaceArrow: string;
94
+ arrowOffset: string;
95
+ arrowOffsetVertical: string;
96
+ arrowHeight: string;
97
+ padding: string;
98
+ }, any>;
99
+ }>;
100
+ }>>>;
13
101
  };
14
102
  export declare type ImageGroupProps = ExtractPublicPropTypes<typeof imageGroupProps>;
15
103
  declare const _default: import("vue").DefineComponent<{
@@ -17,6 +105,94 @@ declare const _default: import("vue").DefineComponent<{
17
105
  type: BooleanConstructor;
18
106
  default: boolean;
19
107
  };
108
+ showToolbarTooltip: BooleanConstructor;
109
+ theme: import("vue").PropType<import("../../_mixins").Theme<"Image", {
110
+ toolbarIconColor: string;
111
+ toolbarColor: string;
112
+ toolbarBoxShadow: string;
113
+ toolbarBorderRadius: string;
114
+ }, {
115
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
116
+ borderRadius: string;
117
+ boxShadow: string;
118
+ color: string;
119
+ textColor: string;
120
+ padding: string;
121
+ }, {
122
+ Popover: import("../../_mixins").Theme<"Popover", {
123
+ fontSize: string;
124
+ borderRadius: string;
125
+ color: string;
126
+ dividerColor: string;
127
+ textColor: string;
128
+ boxShadow: string;
129
+ space: string;
130
+ spaceArrow: string;
131
+ arrowOffset: string;
132
+ arrowOffsetVertical: string;
133
+ arrowHeight: string;
134
+ padding: string;
135
+ }, any>;
136
+ }>;
137
+ }>>;
138
+ themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
139
+ toolbarIconColor: string;
140
+ toolbarColor: string;
141
+ toolbarBoxShadow: string;
142
+ toolbarBorderRadius: string;
143
+ }, {
144
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
145
+ borderRadius: string;
146
+ boxShadow: string;
147
+ color: string;
148
+ textColor: string;
149
+ padding: string;
150
+ }, {
151
+ Popover: import("../../_mixins").Theme<"Popover", {
152
+ fontSize: string;
153
+ borderRadius: string;
154
+ color: string;
155
+ dividerColor: string;
156
+ textColor: string;
157
+ boxShadow: string;
158
+ space: string;
159
+ spaceArrow: string;
160
+ arrowOffset: string;
161
+ arrowOffsetVertical: string;
162
+ arrowHeight: string;
163
+ padding: string;
164
+ }, any>;
165
+ }>;
166
+ }>>>;
167
+ builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
168
+ toolbarIconColor: string;
169
+ toolbarColor: string;
170
+ toolbarBoxShadow: string;
171
+ toolbarBorderRadius: string;
172
+ }, {
173
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
174
+ borderRadius: string;
175
+ boxShadow: string;
176
+ color: string;
177
+ textColor: string;
178
+ padding: string;
179
+ }, {
180
+ Popover: import("../../_mixins").Theme<"Popover", {
181
+ fontSize: string;
182
+ borderRadius: string;
183
+ color: string;
184
+ dividerColor: string;
185
+ textColor: string;
186
+ boxShadow: string;
187
+ space: string;
188
+ spaceArrow: string;
189
+ arrowOffset: string;
190
+ arrowOffsetVertical: string;
191
+ arrowHeight: string;
192
+ padding: string;
193
+ }, any>;
194
+ }>;
195
+ }>>>;
20
196
  }, {
21
197
  mergedClsPrefix: import("vue").ComputedRef<string>;
22
198
  previewInstRef: Ref<{
@@ -28,9 +204,103 @@ declare const _default: import("vue").DefineComponent<{
28
204
  prev: () => void;
29
205
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
30
206
  showToolbar?: unknown;
207
+ showToolbarTooltip?: unknown;
208
+ theme?: unknown;
209
+ themeOverrides?: unknown;
210
+ builtinThemeOverrides?: unknown;
31
211
  } & {
32
212
  showToolbar: boolean;
33
- } & {}>, {
213
+ showToolbarTooltip: boolean;
214
+ } & {
215
+ theme?: import("../../_mixins").Theme<"Image", {
216
+ toolbarIconColor: string;
217
+ toolbarColor: string;
218
+ toolbarBoxShadow: string;
219
+ toolbarBorderRadius: string;
220
+ }, {
221
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
222
+ borderRadius: string;
223
+ boxShadow: string;
224
+ color: string;
225
+ textColor: string;
226
+ padding: string;
227
+ }, {
228
+ Popover: import("../../_mixins").Theme<"Popover", {
229
+ fontSize: string;
230
+ borderRadius: string;
231
+ color: string;
232
+ dividerColor: string;
233
+ textColor: string;
234
+ boxShadow: string;
235
+ space: string;
236
+ spaceArrow: string;
237
+ arrowOffset: string;
238
+ arrowOffsetVertical: string;
239
+ arrowHeight: string;
240
+ padding: string;
241
+ }, any>;
242
+ }>;
243
+ }> | undefined;
244
+ themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
245
+ toolbarIconColor: string;
246
+ toolbarColor: string;
247
+ toolbarBoxShadow: string;
248
+ toolbarBorderRadius: string;
249
+ }, {
250
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
251
+ borderRadius: string;
252
+ boxShadow: string;
253
+ color: string;
254
+ textColor: string;
255
+ padding: string;
256
+ }, {
257
+ Popover: import("../../_mixins").Theme<"Popover", {
258
+ fontSize: string;
259
+ borderRadius: string;
260
+ color: string;
261
+ dividerColor: string;
262
+ textColor: string;
263
+ boxShadow: string;
264
+ space: string;
265
+ spaceArrow: string;
266
+ arrowOffset: string;
267
+ arrowOffsetVertical: string;
268
+ arrowHeight: string;
269
+ padding: string;
270
+ }, any>;
271
+ }>;
272
+ }>> | undefined;
273
+ builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
274
+ toolbarIconColor: string;
275
+ toolbarColor: string;
276
+ toolbarBoxShadow: string;
277
+ toolbarBorderRadius: string;
278
+ }, {
279
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
280
+ borderRadius: string;
281
+ boxShadow: string;
282
+ color: string;
283
+ textColor: string;
284
+ padding: string;
285
+ }, {
286
+ Popover: import("../../_mixins").Theme<"Popover", {
287
+ fontSize: string;
288
+ borderRadius: string;
289
+ color: string;
290
+ dividerColor: string;
291
+ textColor: string;
292
+ boxShadow: string;
293
+ space: string;
294
+ spaceArrow: string;
295
+ arrowOffset: string;
296
+ arrowOffsetVertical: string;
297
+ arrowHeight: string;
298
+ padding: string;
299
+ }, any>;
300
+ }>;
301
+ }>> | undefined;
302
+ }>, {
34
303
  showToolbar: boolean;
304
+ showToolbarTooltip: boolean;
35
305
  }>;
36
306
  export default _default;