flinker-dom 1.1.17 → 1.1.18
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/dist/esm/components.js +12 -0
- package/dist/types/components.d.ts +3 -0
- package/package.json +1 -1
package/dist/esm/components.js
CHANGED
|
@@ -162,6 +162,18 @@ export class UIComponent {
|
|
|
162
162
|
this.dom.addEventListener('mousedown', callback);
|
|
163
163
|
return this;
|
|
164
164
|
}
|
|
165
|
+
onMouseOver(callback) {
|
|
166
|
+
this.dom.addEventListener('mouseover', callback);
|
|
167
|
+
return this;
|
|
168
|
+
}
|
|
169
|
+
onMouseOut(callback) {
|
|
170
|
+
this.dom.addEventListener('mouseout', callback);
|
|
171
|
+
return this;
|
|
172
|
+
}
|
|
173
|
+
onMouseLeave(callback) {
|
|
174
|
+
this.dom.addEventListener('mouseleave', callback);
|
|
175
|
+
return this;
|
|
176
|
+
}
|
|
165
177
|
onKeyUp(callback) {
|
|
166
178
|
this.dom.addEventListener('keyup', callback);
|
|
167
179
|
return this;
|
|
@@ -34,6 +34,9 @@ export declare class UIComponent<P extends UIComponentProps> {
|
|
|
34
34
|
onClick(callback: (event: MouseEvent) => void): this;
|
|
35
35
|
onDoubleClick(callback: (event: MouseEvent) => void): this;
|
|
36
36
|
onMouseDown(callback: (event: MouseEvent) => void): this;
|
|
37
|
+
onMouseOver(callback: (event: MouseEvent) => void): this;
|
|
38
|
+
onMouseOut(callback: (event: MouseEvent) => void): this;
|
|
39
|
+
onMouseLeave(callback: (event: MouseEvent) => void): this;
|
|
37
40
|
onKeyUp(callback: (event: KeyboardEvent) => void): this;
|
|
38
41
|
onKeyDown(callback: (event: KeyboardEvent) => void): this;
|
|
39
42
|
onBlur(callback: (event: FocusEvent) => void): this;
|