layerpro 0.9.61 → 0.9.73
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/README.md +109 -34
- package/docs/index.md +109 -34
- package/example/{index.ts → index.tsx} +18 -6
- package/index.js +4 -4
- package/package.json +2 -2
- package/types/layerpro.d.ts +31 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "layerpro",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.73",
|
|
4
4
|
"description": "Custom popups, alert, confirmn, prompt... by Dario Passariello",
|
|
5
5
|
"copyright": "Dario Passariello",
|
|
6
6
|
"license": "MIT",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"jquery": "3.7.1",
|
|
163
163
|
"react": "19.0.0",
|
|
164
164
|
"react-dom": "19.0.0",
|
|
165
|
-
"sass": "^1.83.
|
|
165
|
+
"sass": "^1.83.1",
|
|
166
166
|
"sass-loader": "^16.0.4",
|
|
167
167
|
"style-loader": "^4.0.0",
|
|
168
168
|
"terser-webpack-plugin": "^5.3.11",
|
package/types/layerpro.d.ts
CHANGED
|
@@ -18,45 +18,56 @@ declare function prompt(f1?: string, func1?: Function): any
|
|
|
18
18
|
////////////////////////////////////////////////////////////////////////////////////
|
|
19
19
|
|
|
20
20
|
interface GenLayerProps {
|
|
21
|
+
|
|
21
22
|
id: string
|
|
22
|
-
|
|
23
|
+
body?: any
|
|
24
|
+
name?: string
|
|
25
|
+
style?: any
|
|
26
|
+
class?: string
|
|
27
|
+
icon?: string
|
|
28
|
+
|
|
29
|
+
buttons?: {
|
|
30
|
+
confirm?: {
|
|
31
|
+
text: string
|
|
32
|
+
cb?: () => void
|
|
33
|
+
}
|
|
34
|
+
cancel?: {
|
|
35
|
+
text: string
|
|
36
|
+
cb?: () => void
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
23
41
|
top?: number | string
|
|
24
42
|
left?: number | string
|
|
25
43
|
right?: number | string
|
|
26
44
|
bottom?: number | string
|
|
45
|
+
|
|
27
46
|
width?: number | string
|
|
28
47
|
height?: number | string
|
|
48
|
+
|
|
29
49
|
minWidth?: number
|
|
30
50
|
minHeight?: number
|
|
31
51
|
maxWidth?: number
|
|
32
52
|
maxHeight?: number
|
|
53
|
+
|
|
33
54
|
fadeIn?: number
|
|
34
55
|
fadeOut?: number
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
name?: string
|
|
38
|
-
iconize?: boolean
|
|
56
|
+
timer?: number
|
|
57
|
+
|
|
39
58
|
maximize?: boolean
|
|
40
59
|
isMaximize?: boolean
|
|
41
60
|
dockable?: boolean
|
|
61
|
+
movable?: boolean
|
|
62
|
+
|
|
63
|
+
resizable?: boolean
|
|
42
64
|
close?: boolean
|
|
43
|
-
|
|
65
|
+
raised?: boolean
|
|
66
|
+
iconize?: boolean
|
|
67
|
+
|
|
44
68
|
source?: string
|
|
45
|
-
body?: any
|
|
46
69
|
store?: any
|
|
47
|
-
|
|
48
|
-
buttons?: {
|
|
49
|
-
confirm?: {
|
|
50
|
-
text: string
|
|
51
|
-
cb?: () => void
|
|
52
|
-
}
|
|
53
|
-
cancel?: {
|
|
54
|
-
text: string
|
|
55
|
-
cb?: () => void
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
movable?: boolean
|
|
59
|
-
resizable?: boolean
|
|
70
|
+
|
|
60
71
|
}
|
|
61
72
|
|
|
62
73
|
/**
|
|
@@ -70,7 +81,6 @@ interface _layerpro {
|
|
|
70
81
|
readonly confirm: (txt: string, yesCallback: () => void, noCallback: () => void) => void
|
|
71
82
|
readonly purge: (document: Document) => void
|
|
72
83
|
readonly credits: (txt: string) => void
|
|
73
|
-
readonly smoothScroll: (target: HTMLElement, speed: number, smooth: boolean) => void
|
|
74
84
|
|
|
75
85
|
readonly popup: {
|
|
76
86
|
readonly open: (props: GenLayerProps) => GenLayerProps
|