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,11 +1,10 @@
1
- import { defineComponent, h, ref, provide, renderSlot, getCurrentInstance } from 'vue';
1
+ import { defineComponent, h, ref, provide, getCurrentInstance } from 'vue';
2
2
  import { createId } from 'seemly';
3
- import NImagePreview from './ImagePreview';
4
3
  import { useConfig } from '../../_mixins';
4
+ import NImagePreview from './ImagePreview';
5
+ import { imagePreviewSharedProps } from './interface';
5
6
  export const imageGroupInjectionKey = Symbol('image-group');
6
- const imageGroupProps = {
7
- showToolbar: { type: Boolean, default: true }
8
- };
7
+ const imageGroupProps = imagePreviewSharedProps;
9
8
  export default defineComponent({
10
9
  name: 'ImageGroup',
11
10
  props: imageGroupProps,
@@ -57,8 +56,6 @@ export default defineComponent({
57
56
  };
58
57
  },
59
58
  render() {
60
- return (h(NImagePreview, { clsPrefix: this.mergedClsPrefix, ref: "previewInstRef", onPrev: this.prev, onNext: this.next, showToolbar: this.showToolbar }, {
61
- default: () => renderSlot(this.$slots, 'default')
62
- }));
59
+ return (h(NImagePreview, { theme: this.theme, themeOverrides: this.themeOverrides, clsPrefix: this.mergedClsPrefix, ref: "previewInstRef", onPrev: this.prev, onNext: this.next, showToolbar: this.showToolbar, showToolbarTooltip: this.showToolbarTooltip }, this.$slots));
63
60
  }
64
61
  });
@@ -1,22 +1,109 @@
1
- import { PropType } from 'vue';
1
+ import { PropType, VNode } from 'vue';
2
2
  export interface ImagePreviewInst {
3
3
  setThumbnailEl: (e: HTMLImageElement | null) => void;
4
4
  setPreviewSrc: (src?: string) => void;
5
5
  toggleShow: () => void;
6
6
  }
7
7
  declare const _default: import("vue").DefineComponent<{
8
- showToolbar: BooleanConstructor;
9
8
  onNext: PropType<() => void>;
10
9
  onPrev: PropType<() => void>;
11
10
  clsPrefix: {
12
11
  type: StringConstructor;
13
12
  required: true;
14
13
  };
14
+ showToolbar: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ showToolbarTooltip: BooleanConstructor;
19
+ theme: PropType<import("../../_mixins").Theme<"Image", {
20
+ toolbarIconColor: string;
21
+ toolbarColor: string;
22
+ toolbarBoxShadow: string;
23
+ toolbarBorderRadius: string;
24
+ }, {
25
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
26
+ borderRadius: string;
27
+ boxShadow: string;
28
+ color: string;
29
+ textColor: string;
30
+ padding: string;
31
+ }, {
32
+ Popover: import("../../_mixins").Theme<"Popover", {
33
+ fontSize: string;
34
+ borderRadius: string;
35
+ color: string;
36
+ dividerColor: string;
37
+ textColor: string;
38
+ boxShadow: string;
39
+ space: string;
40
+ spaceArrow: string;
41
+ arrowOffset: string;
42
+ arrowOffsetVertical: string;
43
+ arrowHeight: string;
44
+ padding: string;
45
+ }, any>;
46
+ }>;
47
+ }>>;
48
+ themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
49
+ toolbarIconColor: string;
50
+ toolbarColor: string;
51
+ toolbarBoxShadow: string;
52
+ toolbarBorderRadius: string;
53
+ }, {
54
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
55
+ borderRadius: string;
56
+ boxShadow: string;
57
+ color: string;
58
+ textColor: string;
59
+ padding: string;
60
+ }, {
61
+ Popover: import("../../_mixins").Theme<"Popover", {
62
+ fontSize: string;
63
+ borderRadius: string;
64
+ color: string;
65
+ dividerColor: string;
66
+ textColor: string;
67
+ boxShadow: string;
68
+ space: string;
69
+ spaceArrow: string;
70
+ arrowOffset: string;
71
+ arrowOffsetVertical: string;
72
+ arrowHeight: string;
73
+ padding: string;
74
+ }, any>;
75
+ }>;
76
+ }>>>;
77
+ builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
78
+ toolbarIconColor: string;
79
+ toolbarColor: string;
80
+ toolbarBoxShadow: string;
81
+ toolbarBorderRadius: string;
82
+ }, {
83
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
84
+ borderRadius: string;
85
+ boxShadow: string;
86
+ color: string;
87
+ textColor: string;
88
+ padding: string;
89
+ }, {
90
+ Popover: import("../../_mixins").Theme<"Popover", {
91
+ fontSize: string;
92
+ borderRadius: string;
93
+ color: string;
94
+ dividerColor: string;
95
+ textColor: string;
96
+ boxShadow: string;
97
+ space: string;
98
+ spaceArrow: string;
99
+ arrowOffset: string;
100
+ arrowOffsetVertical: string;
101
+ arrowHeight: string;
102
+ padding: string;
103
+ }, any>;
104
+ }>;
105
+ }>>>;
15
106
  }, {
16
- cssVars: import("vue").ComputedRef<{
17
- '--n-bezier': string;
18
- '--n-icon-color': string;
19
- }>;
20
107
  setThumbnailEl: (e: HTMLImageElement | null) => void;
21
108
  setPreviewSrc: (src?: string | undefined) => void;
22
109
  toggleShow: () => void;
@@ -37,18 +124,119 @@ declare const _default: import("vue").DefineComponent<{
37
124
  rotateClockwise: () => void;
38
125
  handleSwitchPrev: () => void;
39
126
  handleSwitchNext: () => void;
127
+ withTooltip: (node: VNode, tooltipKey: "tipPrevious" | "tipNext" | "tipCounterclockwise" | "tipClockwise" | "tipZoomOut" | "tipZoomIn" | "tipClose") => VNode;
128
+ cssVars: import("vue").ComputedRef<{
129
+ '--n-bezier': string;
130
+ '--n-toolbar-icon-color': string;
131
+ '--n-toolbar-color': string;
132
+ '--n-toolbar-border-radius': string;
133
+ '--n-toolbar-box-shadow': string;
134
+ }>;
40
135
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
41
- showToolbar?: unknown;
42
136
  onNext?: unknown;
43
137
  onPrev?: unknown;
44
138
  clsPrefix?: unknown;
139
+ showToolbar?: unknown;
140
+ showToolbarTooltip?: unknown;
141
+ theme?: unknown;
142
+ themeOverrides?: unknown;
143
+ builtinThemeOverrides?: unknown;
45
144
  } & {
46
145
  clsPrefix: string;
47
146
  showToolbar: boolean;
147
+ showToolbarTooltip: boolean;
48
148
  } & {
149
+ theme?: import("../../_mixins").Theme<"Image", {
150
+ toolbarIconColor: string;
151
+ toolbarColor: string;
152
+ toolbarBoxShadow: string;
153
+ toolbarBorderRadius: string;
154
+ }, {
155
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
156
+ borderRadius: string;
157
+ boxShadow: string;
158
+ color: string;
159
+ textColor: string;
160
+ padding: string;
161
+ }, {
162
+ Popover: import("../../_mixins").Theme<"Popover", {
163
+ fontSize: string;
164
+ borderRadius: string;
165
+ color: string;
166
+ dividerColor: string;
167
+ textColor: string;
168
+ boxShadow: string;
169
+ space: string;
170
+ spaceArrow: string;
171
+ arrowOffset: string;
172
+ arrowOffsetVertical: string;
173
+ arrowHeight: string;
174
+ padding: string;
175
+ }, any>;
176
+ }>;
177
+ }> | undefined;
178
+ themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
179
+ toolbarIconColor: string;
180
+ toolbarColor: string;
181
+ toolbarBoxShadow: string;
182
+ toolbarBorderRadius: string;
183
+ }, {
184
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
185
+ borderRadius: string;
186
+ boxShadow: string;
187
+ color: string;
188
+ textColor: string;
189
+ padding: string;
190
+ }, {
191
+ Popover: import("../../_mixins").Theme<"Popover", {
192
+ fontSize: string;
193
+ borderRadius: string;
194
+ color: string;
195
+ dividerColor: string;
196
+ textColor: string;
197
+ boxShadow: string;
198
+ space: string;
199
+ spaceArrow: string;
200
+ arrowOffset: string;
201
+ arrowOffsetVertical: string;
202
+ arrowHeight: string;
203
+ padding: string;
204
+ }, any>;
205
+ }>;
206
+ }>> | undefined;
207
+ builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
208
+ toolbarIconColor: string;
209
+ toolbarColor: string;
210
+ toolbarBoxShadow: string;
211
+ toolbarBorderRadius: string;
212
+ }, {
213
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
214
+ borderRadius: string;
215
+ boxShadow: string;
216
+ color: string;
217
+ textColor: string;
218
+ padding: string;
219
+ }, {
220
+ Popover: import("../../_mixins").Theme<"Popover", {
221
+ fontSize: string;
222
+ borderRadius: string;
223
+ color: string;
224
+ dividerColor: string;
225
+ textColor: string;
226
+ boxShadow: string;
227
+ space: string;
228
+ spaceArrow: string;
229
+ arrowOffset: string;
230
+ arrowOffsetVertical: string;
231
+ arrowHeight: string;
232
+ padding: string;
233
+ }, any>;
234
+ }>;
235
+ }>> | undefined;
49
236
  onNext?: (() => void) | undefined;
50
237
  onPrev?: (() => void) | undefined;
51
238
  }>, {
52
239
  showToolbar: boolean;
240
+ showToolbarTooltip: boolean;
53
241
  }>;
54
242
  export default _default;
@@ -5,30 +5,28 @@ import { LazyTeleport } from 'vueuc';
5
5
  import { on, off } from 'evtd';
6
6
  import { beforeNextFrameOnce } from 'seemly';
7
7
  import { RotateClockwiseIcon, RotateCounterclockwiseIcon, ZoomInIcon, ZoomOutIcon } from '../../_internal/icons';
8
- import { useTheme } from '../../_mixins';
8
+ import { useLocale, useTheme } from '../../_mixins';
9
9
  import { NBaseIcon } from '../../_internal';
10
10
  import { imageLight } from '../styles';
11
11
  import { prevIcon, nextIcon, closeIcon } from './icons';
12
+ import { imagePreviewSharedProps } from './interface';
12
13
  import style from './styles/index.cssr';
14
+ import { NTooltip } from '../../tooltip';
13
15
  export default defineComponent({
14
16
  name: 'ImagePreview',
15
- props: {
16
- showToolbar: Boolean,
17
- onNext: Function,
18
- onPrev: Function,
19
- clsPrefix: {
17
+ props: Object.assign(Object.assign({}, imagePreviewSharedProps), { onNext: Function, onPrev: Function, clsPrefix: {
20
18
  type: String,
21
19
  required: true
22
- }
23
- },
20
+ } }),
24
21
  setup(props) {
25
- const themeRef = useTheme('Image', 'Image', style, imageLight, {}, toRef(props, 'clsPrefix'));
22
+ const themeRef = useTheme('Image', 'Image', style, imageLight, props, toRef(props, 'clsPrefix'));
26
23
  let thumbnailEl = null;
27
24
  const previewRef = ref(null);
28
25
  const previewWrapperRef = ref(null);
29
26
  const previewSrcRef = ref(undefined);
30
27
  const showRef = ref(false);
31
28
  const displayedRef = ref(false);
29
+ const { localeRef } = useLocale('Image');
32
30
  function syncTransformOrigin() {
33
31
  const { value: previewWrapper } = previewWrapperRef;
34
32
  if (!thumbnailEl || !previewWrapper)
@@ -81,12 +79,8 @@ export default defineComponent({
81
79
  const { mouseUpClientX, mouseUpClientY, mouseDownClientX, mouseDownClientY } = opts;
82
80
  const deltaHorizontal = mouseDownClientX - mouseUpClientX;
83
81
  const deltaVertical = mouseDownClientY - mouseUpClientY;
84
- let moveVerticalDirection = null;
85
- let moveHorizontalDirection = null;
86
- moveVerticalDirection = ('vertical' +
87
- (deltaVertical > 0 ? 'Top' : 'Bottom'));
88
- moveHorizontalDirection = ('horizontal' +
89
- (deltaHorizontal > 0 ? 'Left' : 'Right'));
82
+ const moveVerticalDirection = `vertical${deltaVertical > 0 ? 'Top' : 'Bottom'}`;
83
+ const moveHorizontalDirection = `horizontal${deltaHorizontal > 0 ? 'Left' : 'Right'}`;
90
84
  return {
91
85
  moveVerticalDirection,
92
86
  moveHorizontalDirection,
@@ -244,7 +238,21 @@ export default defineComponent({
244
238
  },
245
239
  toggleShow
246
240
  };
247
- return Object.assign(Object.assign({ previewRef,
241
+ function withTooltip(node, tooltipKey) {
242
+ if (props.showToolbarTooltip) {
243
+ const { value: theme } = themeRef;
244
+ return (h(NTooltip, { to: false, theme: theme.peers.Tooltip, themeOverrides: theme.peerOverrides.Tooltip }, {
245
+ default: () => {
246
+ return localeRef.value[tooltipKey];
247
+ },
248
+ trigger: () => node
249
+ }));
250
+ }
251
+ else {
252
+ return node;
253
+ }
254
+ }
255
+ return Object.assign({ previewRef,
248
256
  previewWrapperRef, previewSrc: previewSrcRef, show: showRef, appear: useIsMounted(), displayed: displayedRef, handlePreviewMousedown,
249
257
  handlePreviewDblclick,
250
258
  syncTransformOrigin, handleAfterLeave: () => {
@@ -258,13 +266,17 @@ export default defineComponent({
258
266
  rotateCounterclockwise,
259
267
  rotateClockwise,
260
268
  handleSwitchPrev,
261
- handleSwitchNext }, exposedMethods), { cssVars: computed(() => {
262
- const { common: { cubicBezierEaseInOut }, self: { iconColor } } = themeRef.value;
269
+ handleSwitchNext,
270
+ withTooltip, cssVars: computed(() => {
271
+ const { common: { cubicBezierEaseInOut }, self: { toolbarIconColor, toolbarBorderRadius, toolbarBoxShadow, toolbarColor } } = themeRef.value;
263
272
  return {
264
273
  '--n-bezier': cubicBezierEaseInOut,
265
- '--n-icon-color': iconColor
274
+ '--n-toolbar-icon-color': toolbarIconColor,
275
+ '--n-toolbar-color': toolbarColor,
276
+ '--n-toolbar-border-radius': toolbarBorderRadius,
277
+ '--n-toolbar-box-shadow': toolbarBoxShadow
266
278
  };
267
- }) });
279
+ }) }, exposedMethods);
268
280
  },
269
281
  render() {
270
282
  const { clsPrefix } = this;
@@ -277,17 +289,24 @@ export default defineComponent({
277
289
  default: () => this.show ? (h("div", { class: `${clsPrefix}-image-preview-overlay`, onClick: this.toggleShow })) : null
278
290
  }),
279
291
  this.showToolbar ? (h(Transition, { name: "fade-in-transition", appear: this.appear }, {
280
- default: () => this.show ? (h("div", { class: `${clsPrefix}-image-preview-toolbar` },
281
- this.onPrev ? (h(Fragment, null,
282
- h(NBaseIcon, { clsPrefix: clsPrefix, onClick: this.handleSwitchPrev }, { default: () => prevIcon }),
283
- h(NBaseIcon, { clsPrefix: clsPrefix, onClick: this.handleSwitchNext }, { default: () => nextIcon }))) : null,
284
- h(NBaseIcon, { clsPrefix: clsPrefix, onClick: this.rotateCounterclockwise }, {
285
- default: () => (h(RotateCounterclockwiseIcon, null))
286
- }),
287
- h(NBaseIcon, { clsPrefix: clsPrefix, onClick: this.rotateClockwise }, { default: () => h(RotateClockwiseIcon, null) }),
288
- h(NBaseIcon, { clsPrefix: clsPrefix, onClick: this.zoomOut }, { default: () => h(ZoomOutIcon, null) }),
289
- h(NBaseIcon, { clsPrefix: clsPrefix, onClick: this.zoomIn }, { default: () => h(ZoomInIcon, null) }),
290
- h(NBaseIcon, { clsPrefix: clsPrefix, onClick: this.toggleShow }, { default: () => closeIcon }))) : null
292
+ default: () => {
293
+ if (!this.show)
294
+ return null;
295
+ const { withTooltip } = this;
296
+ return (h("div", { class: `${clsPrefix}-image-preview-toolbar` },
297
+ this.onPrev ? (h(Fragment, null,
298
+ withTooltip(h(NBaseIcon, { clsPrefix: clsPrefix, onClick: this.handleSwitchPrev }, { default: () => prevIcon }), 'tipPrevious'),
299
+ withTooltip(h(NBaseIcon, { clsPrefix: clsPrefix, onClick: this.handleSwitchNext }, { default: () => nextIcon }), 'tipNext'))) : null,
300
+ withTooltip(h(NBaseIcon, { clsPrefix: clsPrefix, onClick: this.rotateCounterclockwise }, {
301
+ default: () => (h(RotateCounterclockwiseIcon, null))
302
+ }), 'tipCounterclockwise'),
303
+ withTooltip(h(NBaseIcon, { clsPrefix: clsPrefix, onClick: this.rotateClockwise }, {
304
+ default: () => h(RotateClockwiseIcon, null)
305
+ }), 'tipClockwise'),
306
+ withTooltip(h(NBaseIcon, { clsPrefix: clsPrefix, onClick: this.zoomOut }, { default: () => h(ZoomOutIcon, null) }), 'tipZoomOut'),
307
+ withTooltip(h(NBaseIcon, { clsPrefix: clsPrefix, onClick: this.zoomIn }, { default: () => h(ZoomInIcon, null) }), 'tipZoomIn'),
308
+ withTooltip(h(NBaseIcon, { clsPrefix: clsPrefix, onClick: this.toggleShow }, { default: () => closeIcon }), 'tipClose')));
309
+ }
291
310
  })) : null,
292
311
  h(Transition, { name: "fade-in-scale-up-transition", onAfterLeave: this.handleAfterLeave, appear: this.appear,
293
312
  // BUG:
@@ -4,3 +4,97 @@ export interface MoveStrategy {
4
4
  deltaHorizontal: number;
5
5
  deltaVertical: number;
6
6
  }
7
+ export declare const imagePreviewSharedProps: {
8
+ showToolbar: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ showToolbarTooltip: BooleanConstructor;
13
+ theme: import("vue").PropType<import("../../_mixins").Theme<"Image", {
14
+ toolbarIconColor: string;
15
+ toolbarColor: string;
16
+ toolbarBoxShadow: string;
17
+ toolbarBorderRadius: string;
18
+ }, {
19
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
20
+ borderRadius: string;
21
+ boxShadow: string;
22
+ color: string;
23
+ textColor: string;
24
+ padding: string;
25
+ }, {
26
+ Popover: import("../../_mixins").Theme<"Popover", {
27
+ fontSize: string;
28
+ borderRadius: string;
29
+ color: string;
30
+ dividerColor: string;
31
+ textColor: string;
32
+ boxShadow: string;
33
+ space: string;
34
+ spaceArrow: string;
35
+ arrowOffset: string;
36
+ arrowOffsetVertical: string;
37
+ arrowHeight: string;
38
+ padding: string;
39
+ }, any>;
40
+ }>;
41
+ }>>;
42
+ themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
43
+ toolbarIconColor: string;
44
+ toolbarColor: string;
45
+ toolbarBoxShadow: string;
46
+ toolbarBorderRadius: string;
47
+ }, {
48
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
49
+ borderRadius: string;
50
+ boxShadow: string;
51
+ color: string;
52
+ textColor: string;
53
+ padding: string;
54
+ }, {
55
+ Popover: import("../../_mixins").Theme<"Popover", {
56
+ fontSize: string;
57
+ borderRadius: string;
58
+ color: string;
59
+ dividerColor: string;
60
+ textColor: string;
61
+ boxShadow: string;
62
+ space: string;
63
+ spaceArrow: string;
64
+ arrowOffset: string;
65
+ arrowOffsetVertical: string;
66
+ arrowHeight: string;
67
+ padding: string;
68
+ }, any>;
69
+ }>;
70
+ }>>>;
71
+ builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
72
+ toolbarIconColor: string;
73
+ toolbarColor: string;
74
+ toolbarBoxShadow: string;
75
+ toolbarBorderRadius: string;
76
+ }, {
77
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
78
+ borderRadius: string;
79
+ boxShadow: string;
80
+ color: string;
81
+ textColor: string;
82
+ padding: string;
83
+ }, {
84
+ Popover: import("../../_mixins").Theme<"Popover", {
85
+ fontSize: string;
86
+ borderRadius: string;
87
+ color: string;
88
+ dividerColor: string;
89
+ textColor: string;
90
+ boxShadow: string;
91
+ space: string;
92
+ spaceArrow: string;
93
+ arrowOffset: string;
94
+ arrowOffsetVertical: string;
95
+ arrowHeight: string;
96
+ padding: string;
97
+ }, any>;
98
+ }>;
99
+ }>>>;
100
+ };
@@ -1 +1,2 @@
1
- export {};
1
+ import { useTheme } from '../../_mixins';
2
+ export const imagePreviewSharedProps = Object.assign(Object.assign({}, useTheme.props), { showToolbar: { type: Boolean, default: true }, showToolbarTooltip: Boolean });
@@ -1,7 +1,10 @@
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
- // --n-icon-color
4
+ // --n-toolbar-icon-color
5
+ // --n-toolbar-color
6
+ // --n-toolbar-border-radius
7
+ // --n-toolbar-box-shadow
5
8
  // --n-bezier
6
9
 
7
10
  export default c([c('body >', [cB('image-container', 'position: fixed;')]), cB('image-preview-container', `
@@ -24,12 +27,13 @@ export default c([c('body >', [cB('image-container', 'position: fixed;')]), cB('
24
27
  position: absolute;
25
28
  left: 50%;
26
29
  transform: translateX(-50%);
27
- border-radius: 24px;
30
+ border-radius: var(--n-toolbar-border-radius);
28
31
  height: 48px;
29
32
  bottom: 40px;
30
33
  padding: 0 12px;
31
- background: rgba(0, 0, 0, .35);
32
- color: var(--n-icon-color);
34
+ background: var(--n-toolbar-color);
35
+ box-shadow: var(--n-toolbar-box-shadow);
36
+ color: var(--n-toolbar-icon-color);
33
37
  transition: color .3s var(--n-bezier);
34
38
  display: flex;
35
39
  align-items: center;
@@ -1,11 +1,18 @@
1
+ import { tooltipDark } from '../../styles';
1
2
  import { commonDark } from '../../_styles/common';
2
3
  export const imageDark = {
3
4
  name: 'Image',
4
5
  common: commonDark,
6
+ peers: {
7
+ Tooltip: tooltipDark
8
+ },
5
9
  self: (vars) => {
6
10
  const { textColor2 } = vars;
7
11
  return {
8
- iconColor: textColor2
12
+ toolbarIconColor: textColor2,
13
+ toolbarColor: 'rgba(0, 0, 0, .35)',
14
+ toolbarBoxShadow: 'none',
15
+ toolbarBorderRadius: '24px'
9
16
  };
10
17
  }
11
18
  };
@@ -1,9 +1,38 @@
1
1
  declare function self(): {
2
- iconColor: string;
2
+ toolbarIconColor: string;
3
+ toolbarColor: string;
4
+ toolbarBoxShadow: string;
5
+ toolbarBorderRadius: string;
3
6
  };
4
7
  export declare const imageLight: import("../../_mixins").Theme<"Image", {
5
- iconColor: string;
6
- }, unknown>;
8
+ toolbarIconColor: string;
9
+ toolbarColor: string;
10
+ toolbarBoxShadow: string;
11
+ toolbarBorderRadius: string;
12
+ }, {
13
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
14
+ borderRadius: string;
15
+ boxShadow: string;
16
+ color: string;
17
+ textColor: string;
18
+ padding: string;
19
+ }, {
20
+ Popover: import("../../_mixins").Theme<"Popover", {
21
+ fontSize: string;
22
+ borderRadius: string;
23
+ color: string;
24
+ dividerColor: string;
25
+ textColor: string;
26
+ boxShadow: string;
27
+ space: string;
28
+ spaceArrow: string;
29
+ arrowOffset: string;
30
+ arrowOffsetVertical: string;
31
+ arrowHeight: string;
32
+ padding: string;
33
+ }, any>;
34
+ }>;
35
+ }>;
7
36
  export declare type ImageTheme = typeof imageLight;
8
37
  export declare type ImageThemeVars = ReturnType<typeof self>;
9
38
  export {};
@@ -1,12 +1,19 @@
1
+ import { tooltipLight } from '../../tooltip/styles';
1
2
  import { createTheme } from '../../_mixins';
2
3
  import { commonLight } from '../../_styles/common';
3
4
  function self() {
4
5
  return {
5
- iconColor: 'rgba(255, 255, 255, .9)'
6
+ toolbarIconColor: 'rgba(255, 255, 255, .9)',
7
+ toolbarColor: 'rgba(0, 0, 0, .35)',
8
+ toolbarBoxShadow: 'none',
9
+ toolbarBorderRadius: '24px'
6
10
  };
7
11
  }
8
12
  export const imageLight = createTheme({
9
13
  name: 'Image',
10
14
  common: commonLight,
15
+ peers: {
16
+ Tooltip: tooltipLight
17
+ },
11
18
  self
12
19
  });
@@ -9,9 +9,9 @@ export function parse(value) {
9
9
  return Number(value);
10
10
  }
11
11
  // can be parsed to number but shouldn't be applied when inputing
12
- // Ending with 0 and. doesn't update, if 0 parse func will remove 0
12
+ // when value includes `.`, ending with 0 and`.`, doesn't update, if 0 parse func will remove 0
13
13
  export function isWipValue(value) {
14
- return /^(-)?\d+.*(\.|0)$/.test(value) || /^\.\d+$/.test(value);
14
+ return value.includes('.') && (/^(-)?\d+.*(\.|0)$/.test(value) || /^\.\d+$/.test(value));
15
15
  }
16
16
  // string => boolean (expected, not implemented)
17
17
  // number => boolean (legacy)
@@ -96,6 +96,16 @@ const deDE = {
96
96
  import: 'Importieren',
97
97
  export: 'Exportieren',
98
98
  restore: 'Auf Standard zurücksetzen'
99
+ },
100
+ // TODO: translation
101
+ Image: {
102
+ tipPrevious: 'Previous picture (←)',
103
+ tipNext: 'Next picture (→)',
104
+ tipCounterclockwise: 'Counterclockwise',
105
+ tipClockwise: 'Clockwise',
106
+ tipZoomOut: 'Zoom out',
107
+ tipZoomIn: 'Zoom in',
108
+ tipClose: 'Close (Esc)'
99
109
  }
100
110
  };
101
111
  export default deDE;
@@ -96,6 +96,15 @@ declare const enUS: {
96
96
  export: string;
97
97
  restore: string;
98
98
  };
99
+ Image: {
100
+ tipPrevious: string;
101
+ tipNext: string;
102
+ tipCounterclockwise: string;
103
+ tipClockwise: string;
104
+ tipZoomOut: string;
105
+ tipZoomIn: string;
106
+ tipClose: string;
107
+ };
99
108
  };
100
109
  export declare type NLocale = typeof enUS;
101
110
  export default enUS;