@varlet/ui 2.9.0 → 2.9.1-alpha.1678874318012

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "2.9.0",
3
+ "version": "2.9.1-alpha.1678874318012",
4
4
  "description": "A material like components library",
5
5
  "main": "lib/varlet.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -46,9 +46,9 @@
46
46
  "@popperjs/core": "^2.11.6",
47
47
  "dayjs": "^1.10.4",
48
48
  "decimal.js": "^10.2.1",
49
- "@varlet/icons": "2.9.0",
50
- "@varlet/use": "2.9.0",
51
- "@varlet/shared": "2.9.0"
49
+ "@varlet/icons": "2.9.1-alpha.1678874318012",
50
+ "@varlet/shared": "2.9.1-alpha.1678874318012",
51
+ "@varlet/use": "2.9.1-alpha.1678874318012"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/jest": "^26.0.15",
@@ -63,8 +63,8 @@
63
63
  "typescript": "^4.4.4",
64
64
  "vue": "3.2.25",
65
65
  "vue-router": "4.0.12",
66
- "@varlet/cli": "2.9.0",
67
- "@varlet/touch-emulator": "2.9.0"
66
+ "@varlet/cli": "2.9.1-alpha.1678874318012",
67
+ "@varlet/touch-emulator": "2.9.1-alpha.1678874318012"
68
68
  },
69
69
  "browserslist": [
70
70
  "Chrome >= 54",
@@ -0,0 +1,13 @@
1
+ import { VarComponent, BasicAttributes } from './varComponent'
2
+
3
+ export declare const hoverOverlayProps: Record<string, any>
4
+
5
+ export interface HoverOverlayProps extends BasicAttributes {
6
+ hovering?: boolean
7
+ }
8
+
9
+ export class HoverOverlay extends VarComponent {
10
+ $props: HoverOverlayProps
11
+ }
12
+
13
+ export class _HoverOverlayComponent extends HoverOverlay {}
@@ -21,7 +21,6 @@ export interface ImagePreviewProps extends BasicAttributes {
21
21
  }
22
22
 
23
23
  export interface ImagePreviewOptions {
24
- show?: boolean
25
24
  current?: string
26
25
  images?: string[]
27
26
  zoom?: string | number
@@ -47,8 +46,13 @@ export class ImagePreviewComponent extends VarComponent {
47
46
 
48
47
  export interface IImagePreview {
49
48
  (options: string | string[] | ImagePreviewOptions): void
49
+
50
50
  Component: typeof ImagePreviewComponent
51
51
 
52
+ setDefaultOptions(options: ImagePreviewOptions): void
53
+
54
+ resetDefaultOptions(): void
55
+
52
56
  close(): void
53
57
 
54
58
  install(app: App): void
package/types/index.d.ts CHANGED
@@ -33,6 +33,7 @@ export * from './fab'
33
33
  export * from './form'
34
34
  export * from './formDetails'
35
35
  export * from './hover'
36
+ export * from './hoverOverlay'
36
37
  export * from './icon'
37
38
  export * from './image'
38
39
  export * from './imagePreview'
@@ -116,6 +117,7 @@ declare module 'vue' {
116
117
  VarForm: typeof import('@varlet/ui')['_FormComponent']
117
118
  VarFormDetails: typeof import('@varlet/ui')['_FormDetailsComponent']
118
119
  VarHover: typeof import('@varlet/ui')['_HoverComponent']
120
+ VarHoverOverlay: typeof import('@varlet/ui')['_HoverOverlayComponent']
119
121
  VarIcon: typeof import('@varlet/ui')['_IconComponent']
120
122
  VarImage: typeof import('@varlet/ui')['_ImageComponent']
121
123
  VarImagePreview: typeof import('@varlet/ui')['_ImagePreviewComponent']