@esportsplus/ui 0.2.3 → 0.2.5
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.
|
@@ -1,222 +1,107 @@
|
|
|
1
|
+
import checkbox from './checkbox';
|
|
2
|
+
import select from './select';
|
|
3
|
+
import s from './switch';
|
|
4
|
+
import text from './text';
|
|
1
5
|
declare const _default: {
|
|
2
6
|
checkbox: (data: {
|
|
3
|
-
class?: string
|
|
7
|
+
class?: string;
|
|
4
8
|
field?: {
|
|
5
9
|
content?: any;
|
|
6
|
-
}
|
|
10
|
+
};
|
|
7
11
|
mask?: {
|
|
8
|
-
class?: string
|
|
9
|
-
style?: string
|
|
10
|
-
}
|
|
11
|
-
name?: string
|
|
12
|
-
style?: string
|
|
12
|
+
class?: string;
|
|
13
|
+
style?: string;
|
|
14
|
+
};
|
|
15
|
+
name?: string;
|
|
16
|
+
style?: string;
|
|
13
17
|
title: string;
|
|
14
18
|
value?: any;
|
|
15
19
|
} & {
|
|
16
|
-
description?: string
|
|
20
|
+
description?: string;
|
|
17
21
|
}) => import("@esportsplus/template").Renderable;
|
|
18
22
|
file: (data: {
|
|
19
|
-
accept?: string
|
|
20
|
-
class?: string
|
|
23
|
+
accept?: string;
|
|
24
|
+
class?: string;
|
|
21
25
|
mask?: {
|
|
22
|
-
class?: string
|
|
26
|
+
class?: string;
|
|
23
27
|
content?: any;
|
|
24
|
-
style?: string
|
|
25
|
-
}
|
|
26
|
-
name?: string
|
|
27
|
-
placeholder?: string
|
|
28
|
-
style?: string
|
|
29
|
-
type?: string
|
|
28
|
+
style?: string;
|
|
29
|
+
};
|
|
30
|
+
name?: string;
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
style?: string;
|
|
33
|
+
type?: string;
|
|
30
34
|
value?: unknown;
|
|
31
35
|
} & {
|
|
32
|
-
description?: string
|
|
36
|
+
description?: string;
|
|
33
37
|
} & {
|
|
34
|
-
required?: boolean
|
|
35
|
-
title?: string
|
|
38
|
+
required?: boolean;
|
|
39
|
+
title?: string;
|
|
36
40
|
}) => import("@esportsplus/template").Renderable;
|
|
37
41
|
optional: {
|
|
38
|
-
select: (data: {
|
|
39
|
-
|
|
40
|
-
field?: {
|
|
41
|
-
content?: any;
|
|
42
|
-
} | undefined;
|
|
43
|
-
mask?: {
|
|
44
|
-
class?: string | undefined;
|
|
45
|
-
style?: string | undefined;
|
|
46
|
-
} | undefined;
|
|
47
|
-
name?: string | undefined;
|
|
48
|
-
style?: string | undefined;
|
|
49
|
-
title: string;
|
|
50
|
-
value?: any;
|
|
51
|
-
} & {
|
|
52
|
-
description?: string | undefined;
|
|
53
|
-
} & {
|
|
54
|
-
field: {
|
|
55
|
-
class?: string | undefined;
|
|
56
|
-
effect?: ((selected: string | number) => void) | undefined;
|
|
57
|
-
mask?: {
|
|
58
|
-
class?: string | undefined;
|
|
59
|
-
content?: any;
|
|
60
|
-
style?: string | undefined;
|
|
61
|
-
} | undefined;
|
|
62
|
-
name?: string | undefined;
|
|
63
|
-
options: Record<string | number, string | number>;
|
|
64
|
-
option?: {
|
|
65
|
-
class?: string | undefined;
|
|
66
|
-
style?: string | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
selected?: any;
|
|
69
|
-
scrollbar?: {
|
|
70
|
-
style?: string | undefined;
|
|
71
|
-
} | undefined;
|
|
72
|
-
style?: string | undefined;
|
|
73
|
-
text?: {
|
|
74
|
-
class?: string | undefined;
|
|
75
|
-
} | undefined;
|
|
76
|
-
tooltip?: {
|
|
77
|
-
class?: string | undefined;
|
|
78
|
-
direction?: any;
|
|
79
|
-
style?: string | undefined;
|
|
80
|
-
} | undefined;
|
|
81
|
-
} & {
|
|
82
|
-
description?: string | undefined;
|
|
83
|
-
} & {
|
|
84
|
-
required?: boolean | undefined;
|
|
85
|
-
title?: string | undefined;
|
|
86
|
-
};
|
|
42
|
+
select: (data: Parameters<typeof s>[0] & {
|
|
43
|
+
field: Parameters<typeof select>[0];
|
|
87
44
|
}) => import("@esportsplus/template").Renderable;
|
|
88
|
-
text: (data: {
|
|
89
|
-
|
|
90
|
-
field?: {
|
|
91
|
-
content?: any;
|
|
92
|
-
} | undefined;
|
|
93
|
-
mask?: {
|
|
94
|
-
class?: string | undefined;
|
|
95
|
-
style?: string | undefined;
|
|
96
|
-
} | undefined;
|
|
97
|
-
name?: string | undefined;
|
|
98
|
-
style?: string | undefined;
|
|
99
|
-
title: string;
|
|
100
|
-
value?: any;
|
|
101
|
-
} & {
|
|
102
|
-
description?: string | undefined;
|
|
103
|
-
} & {
|
|
104
|
-
field: {
|
|
105
|
-
class?: string | undefined;
|
|
106
|
-
mask?: {
|
|
107
|
-
class?: string | undefined;
|
|
108
|
-
content?: any;
|
|
109
|
-
style?: string | undefined;
|
|
110
|
-
} | undefined;
|
|
111
|
-
name?: string | undefined;
|
|
112
|
-
placeholder?: string | undefined;
|
|
113
|
-
style?: string | undefined;
|
|
114
|
-
tag?: {
|
|
115
|
-
class?: string | undefined;
|
|
116
|
-
} | undefined;
|
|
117
|
-
textarea?: boolean | undefined;
|
|
118
|
-
type?: string | undefined;
|
|
119
|
-
value?: unknown;
|
|
120
|
-
} & {
|
|
121
|
-
description?: string | undefined;
|
|
122
|
-
} & {
|
|
123
|
-
required?: boolean | undefined;
|
|
124
|
-
title?: string | undefined;
|
|
125
|
-
};
|
|
45
|
+
text: (data: Parameters<typeof s>[0] & {
|
|
46
|
+
field: Parameters<typeof text>[0];
|
|
126
47
|
}) => import("@esportsplus/template").Renderable;
|
|
127
48
|
};
|
|
128
49
|
select: (data: {
|
|
129
|
-
class?: string
|
|
130
|
-
effect?: (
|
|
50
|
+
class?: string;
|
|
51
|
+
effect?: (selected: number | string) => void;
|
|
131
52
|
mask?: {
|
|
132
|
-
class?: string
|
|
53
|
+
class?: string;
|
|
133
54
|
content?: any;
|
|
134
|
-
style?: string
|
|
135
|
-
}
|
|
136
|
-
name?: string
|
|
137
|
-
options: Record<
|
|
55
|
+
style?: string;
|
|
56
|
+
};
|
|
57
|
+
name?: string;
|
|
58
|
+
options: Record<number | string, number | string>;
|
|
138
59
|
option?: {
|
|
139
|
-
class?: string
|
|
140
|
-
style?: string
|
|
141
|
-
}
|
|
60
|
+
class?: string;
|
|
61
|
+
style?: string;
|
|
62
|
+
};
|
|
142
63
|
selected?: any;
|
|
143
64
|
scrollbar?: {
|
|
144
|
-
style?: string
|
|
145
|
-
}
|
|
146
|
-
style?: string
|
|
65
|
+
style?: string;
|
|
66
|
+
};
|
|
67
|
+
style?: string;
|
|
147
68
|
text?: {
|
|
148
|
-
class?: string
|
|
149
|
-
}
|
|
69
|
+
class?: string;
|
|
70
|
+
};
|
|
150
71
|
tooltip?: {
|
|
151
|
-
class?: string
|
|
72
|
+
class?: string;
|
|
152
73
|
direction?: any;
|
|
153
|
-
style?: string
|
|
154
|
-
}
|
|
74
|
+
style?: string;
|
|
75
|
+
};
|
|
155
76
|
} & {
|
|
156
|
-
description?: string
|
|
77
|
+
description?: string;
|
|
157
78
|
} & {
|
|
158
|
-
required?: boolean
|
|
159
|
-
title?: string
|
|
160
|
-
}) => import("@esportsplus/template").Renderable;
|
|
161
|
-
switch: (data: {
|
|
162
|
-
class?: string | undefined;
|
|
163
|
-
field?: {
|
|
164
|
-
content?: any;
|
|
165
|
-
} | undefined;
|
|
166
|
-
mask?: {
|
|
167
|
-
class?: string | undefined;
|
|
168
|
-
style?: string | undefined;
|
|
169
|
-
} | undefined;
|
|
170
|
-
name?: string | undefined;
|
|
171
|
-
style?: string | undefined;
|
|
172
|
-
title: string;
|
|
173
|
-
value?: any;
|
|
174
|
-
} & {
|
|
175
|
-
description?: string | undefined;
|
|
176
|
-
}) => import("@esportsplus/template").Renderable;
|
|
177
|
-
textarea: (data: {
|
|
178
|
-
class?: string | undefined;
|
|
179
|
-
mask?: {
|
|
180
|
-
class?: string | undefined;
|
|
181
|
-
content?: any;
|
|
182
|
-
style?: string | undefined;
|
|
183
|
-
} | undefined;
|
|
184
|
-
name?: string | undefined;
|
|
185
|
-
placeholder?: string | undefined;
|
|
186
|
-
style?: string | undefined;
|
|
187
|
-
tag?: {
|
|
188
|
-
class?: string | undefined;
|
|
189
|
-
} | undefined;
|
|
190
|
-
textarea?: boolean | undefined;
|
|
191
|
-
type?: string | undefined;
|
|
192
|
-
value?: unknown;
|
|
193
|
-
} & {
|
|
194
|
-
description?: string | undefined;
|
|
195
|
-
} & {
|
|
196
|
-
required?: boolean | undefined;
|
|
197
|
-
title?: string | undefined;
|
|
79
|
+
required?: boolean;
|
|
80
|
+
title?: string;
|
|
198
81
|
}) => import("@esportsplus/template").Renderable;
|
|
82
|
+
switch: (data: Parameters<typeof checkbox>[0]) => import("@esportsplus/template").Renderable;
|
|
83
|
+
textarea: (data: Parameters<typeof text>[0]) => import("@esportsplus/template").Renderable;
|
|
199
84
|
text: (data: {
|
|
200
|
-
class?: string
|
|
85
|
+
class?: string;
|
|
201
86
|
mask?: {
|
|
202
|
-
class?: string
|
|
87
|
+
class?: string;
|
|
203
88
|
content?: any;
|
|
204
|
-
style?: string
|
|
205
|
-
}
|
|
206
|
-
name?: string
|
|
207
|
-
placeholder?: string
|
|
208
|
-
style?: string
|
|
89
|
+
style?: string;
|
|
90
|
+
};
|
|
91
|
+
name?: string;
|
|
92
|
+
placeholder?: string;
|
|
93
|
+
style?: string;
|
|
209
94
|
tag?: {
|
|
210
|
-
class?: string
|
|
211
|
-
}
|
|
212
|
-
textarea?: boolean
|
|
213
|
-
type?: string
|
|
95
|
+
class?: string;
|
|
96
|
+
};
|
|
97
|
+
textarea?: boolean;
|
|
98
|
+
type?: string;
|
|
214
99
|
value?: unknown;
|
|
215
100
|
} & {
|
|
216
|
-
description?: string
|
|
101
|
+
description?: string;
|
|
217
102
|
} & {
|
|
218
|
-
required?: boolean
|
|
219
|
-
title?: string
|
|
103
|
+
required?: boolean;
|
|
104
|
+
title?: string;
|
|
220
105
|
}) => import("@esportsplus/template").Renderable;
|
|
221
106
|
};
|
|
222
107
|
export default _default;
|
|
@@ -1,92 +1,12 @@
|
|
|
1
|
+
import sel from './select';
|
|
2
|
+
import s from './switch';
|
|
3
|
+
import tex from './text';
|
|
1
4
|
declare const _default: {
|
|
2
|
-
select: (data: {
|
|
3
|
-
|
|
4
|
-
field?: {
|
|
5
|
-
content?: any;
|
|
6
|
-
} | undefined;
|
|
7
|
-
mask?: {
|
|
8
|
-
class?: string | undefined;
|
|
9
|
-
style?: string | undefined;
|
|
10
|
-
} | undefined;
|
|
11
|
-
name?: string | undefined;
|
|
12
|
-
style?: string | undefined;
|
|
13
|
-
title: string;
|
|
14
|
-
value?: any;
|
|
15
|
-
} & {
|
|
16
|
-
description?: string | undefined;
|
|
17
|
-
} & {
|
|
18
|
-
field: {
|
|
19
|
-
class?: string | undefined;
|
|
20
|
-
effect?: ((selected: string | number) => void) | undefined;
|
|
21
|
-
mask?: {
|
|
22
|
-
class?: string | undefined;
|
|
23
|
-
content?: any;
|
|
24
|
-
style?: string | undefined;
|
|
25
|
-
} | undefined;
|
|
26
|
-
name?: string | undefined;
|
|
27
|
-
options: Record<string | number, string | number>;
|
|
28
|
-
option?: {
|
|
29
|
-
class?: string | undefined;
|
|
30
|
-
style?: string | undefined;
|
|
31
|
-
} | undefined;
|
|
32
|
-
selected?: any;
|
|
33
|
-
scrollbar?: {
|
|
34
|
-
style?: string | undefined;
|
|
35
|
-
} | undefined;
|
|
36
|
-
style?: string | undefined;
|
|
37
|
-
text?: {
|
|
38
|
-
class?: string | undefined;
|
|
39
|
-
} | undefined;
|
|
40
|
-
tooltip?: {
|
|
41
|
-
class?: string | undefined;
|
|
42
|
-
direction?: any;
|
|
43
|
-
style?: string | undefined;
|
|
44
|
-
} | undefined;
|
|
45
|
-
} & {
|
|
46
|
-
description?: string | undefined;
|
|
47
|
-
} & {
|
|
48
|
-
required?: boolean | undefined;
|
|
49
|
-
title?: string | undefined;
|
|
50
|
-
};
|
|
5
|
+
select: (data: Parameters<typeof s>[0] & {
|
|
6
|
+
field: Parameters<typeof sel>[0];
|
|
51
7
|
}) => import("@esportsplus/template").Renderable;
|
|
52
|
-
text: (data: {
|
|
53
|
-
|
|
54
|
-
field?: {
|
|
55
|
-
content?: any;
|
|
56
|
-
} | undefined;
|
|
57
|
-
mask?: {
|
|
58
|
-
class?: string | undefined;
|
|
59
|
-
style?: string | undefined;
|
|
60
|
-
} | undefined;
|
|
61
|
-
name?: string | undefined;
|
|
62
|
-
style?: string | undefined;
|
|
63
|
-
title: string;
|
|
64
|
-
value?: any;
|
|
65
|
-
} & {
|
|
66
|
-
description?: string | undefined;
|
|
67
|
-
} & {
|
|
68
|
-
field: {
|
|
69
|
-
class?: string | undefined;
|
|
70
|
-
mask?: {
|
|
71
|
-
class?: string | undefined;
|
|
72
|
-
content?: any;
|
|
73
|
-
style?: string | undefined;
|
|
74
|
-
} | undefined;
|
|
75
|
-
name?: string | undefined;
|
|
76
|
-
placeholder?: string | undefined;
|
|
77
|
-
style?: string | undefined;
|
|
78
|
-
tag?: {
|
|
79
|
-
class?: string | undefined;
|
|
80
|
-
} | undefined;
|
|
81
|
-
textarea?: boolean | undefined;
|
|
82
|
-
type?: string | undefined;
|
|
83
|
-
value?: unknown;
|
|
84
|
-
} & {
|
|
85
|
-
description?: string | undefined;
|
|
86
|
-
} & {
|
|
87
|
-
required?: boolean | undefined;
|
|
88
|
-
title?: string | undefined;
|
|
89
|
-
};
|
|
8
|
+
text: (data: Parameters<typeof s>[0] & {
|
|
9
|
+
field: Parameters<typeof tex>[0];
|
|
90
10
|
}) => import("@esportsplus/template").Renderable;
|
|
91
11
|
};
|
|
92
12
|
export default _default;
|
|
@@ -5,18 +5,18 @@ declare const _default: {
|
|
|
5
5
|
attributes: (reactive: {
|
|
6
6
|
error: string;
|
|
7
7
|
}) => (element: HTMLInputElement | HTMLSelectElement) => void;
|
|
8
|
-
get: (element?: HTMLInputElement | HTMLSelectElement
|
|
8
|
+
get: (element?: HTMLInputElement | HTMLSelectElement) => {
|
|
9
9
|
error: string;
|
|
10
10
|
} | undefined;
|
|
11
11
|
};
|
|
12
12
|
layout: (data: {
|
|
13
13
|
action?: any;
|
|
14
14
|
button?: {
|
|
15
|
-
class?: string
|
|
15
|
+
class?: string;
|
|
16
16
|
content?: any;
|
|
17
|
-
style?: string
|
|
18
|
-
}
|
|
19
|
-
class?: string
|
|
17
|
+
style?: string;
|
|
18
|
+
};
|
|
19
|
+
class?: string;
|
|
20
20
|
content?: any;
|
|
21
21
|
}) => import("@esportsplus/template").Renderable;
|
|
22
22
|
};
|
|
@@ -2,7 +2,7 @@ declare const _default: {
|
|
|
2
2
|
attributes: (reactive: {
|
|
3
3
|
error: string;
|
|
4
4
|
}) => (element: HTMLInputElement | HTMLSelectElement) => void;
|
|
5
|
-
get: (element?: HTMLInputElement | HTMLSelectElement
|
|
5
|
+
get: (element?: HTMLInputElement | HTMLSelectElement) => {
|
|
6
6
|
error: string;
|
|
7
7
|
} | undefined;
|
|
8
8
|
};
|
|
@@ -1,27 +1,9 @@
|
|
|
1
|
+
import menu from './menu';
|
|
1
2
|
declare const _default: {
|
|
2
3
|
onclick: (data?: {
|
|
3
|
-
active?: boolean
|
|
4
|
-
menu?:
|
|
5
|
-
|
|
6
|
-
direction?: string | undefined;
|
|
7
|
-
items?: {
|
|
8
|
-
border?: {
|
|
9
|
-
class?: string | undefined;
|
|
10
|
-
} | undefined;
|
|
11
|
-
class?: string | undefined;
|
|
12
|
-
onclick?: ((...args: any[]) => void) | undefined;
|
|
13
|
-
style?: string | undefined;
|
|
14
|
-
svg?: string | undefined;
|
|
15
|
-
target?: string | undefined;
|
|
16
|
-
text: string;
|
|
17
|
-
url?: string | undefined;
|
|
18
|
-
}[] | undefined;
|
|
19
|
-
state?: {
|
|
20
|
-
active?: boolean | undefined;
|
|
21
|
-
} | undefined;
|
|
22
|
-
style?: string | undefined;
|
|
23
|
-
} | undefined;
|
|
24
|
-
toggle?: boolean | undefined;
|
|
4
|
+
active?: boolean;
|
|
5
|
+
menu?: Parameters<typeof menu>[0];
|
|
6
|
+
toggle?: boolean;
|
|
25
7
|
}) => {
|
|
26
8
|
attributes: {
|
|
27
9
|
class: () => string;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "ICJR",
|
|
3
3
|
"dependencies": {
|
|
4
|
-
"@esportsplus/action": "^0.0.
|
|
5
|
-
"@esportsplus/reactivity": "^0.1.
|
|
6
|
-
"@esportsplus/template": "^0.2.
|
|
4
|
+
"@esportsplus/action": "^0.0.50",
|
|
5
|
+
"@esportsplus/reactivity": "^0.1.27",
|
|
6
|
+
"@esportsplus/template": "^0.2.10"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@esportsplus/webpack": "^0.
|
|
9
|
+
"@esportsplus/webpack": "^0.4.9",
|
|
10
10
|
"modern-normalize": "^2.0.0"
|
|
11
11
|
},
|
|
12
12
|
"main": "build/index.js",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"types": "build/index.d.ts",
|
|
24
|
-
"version": "0.2.
|
|
24
|
+
"version": "0.2.5"
|
|
25
25
|
}
|