flinker-dom 1.1.16 → 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/esm/core.js +2 -0
- package/dist/esm/processor.js +3 -1
- package/dist/types/components.d.ts +3 -0
- package/dist/types/core.d.ts +2 -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;
|
package/dist/esm/core.js
CHANGED
|
@@ -141,11 +141,13 @@ const RuleBuilder = () => {
|
|
|
141
141
|
setValue('-webkit-user-select', value ? 'text' : 'none', false);
|
|
142
142
|
};
|
|
143
143
|
operator.target = (value) => { setValue('target', value); };
|
|
144
|
+
operator.bg = (value) => { setValue('background', value); };
|
|
144
145
|
operator.bgImage = (value) => { setValue('background-image', value); };
|
|
145
146
|
operator.bgImageSrc = (value) => { setValue('background-image', 'url(' + value + ')'); };
|
|
146
147
|
operator.bgImageRepeat = (value) => { setValue('background-repeat', value); };
|
|
147
148
|
operator.bgImageSize = (value) => { setValue('background-size', value); };
|
|
148
149
|
operator.bgImageAttachment = (value) => { setValue('background-attachment', value); };
|
|
150
|
+
operator.maskImage = (value) => { setValue('mask-image', value); };
|
|
149
151
|
operator.animate = (value) => { setValue('transition', value); };
|
|
150
152
|
operator.animateAll = (value) => { setValue('transition', 'all ' + value); };
|
|
151
153
|
operator.pseudo = (values) => {
|
package/dist/esm/processor.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const abbreviations = {
|
|
2
2
|
'align-items': 'A',
|
|
3
3
|
'backdrop-filter': 'BF',
|
|
4
|
-
'background
|
|
4
|
+
'background': 'BG',
|
|
5
|
+
'background-color': 'BGC',
|
|
5
6
|
'background-image': 'BI',
|
|
6
7
|
'background-attachment': 'BIA',
|
|
7
8
|
'background-repeat': 'BIR',
|
|
@@ -39,6 +40,7 @@ const abbreviations = {
|
|
|
39
40
|
'margin-right': 'MR',
|
|
40
41
|
'margin-top': 'MT',
|
|
41
42
|
'margin-bottom': 'MB',
|
|
43
|
+
'mask-image': 'MI',
|
|
42
44
|
'max-height': 'MAH',
|
|
43
45
|
'max-width': 'MAW',
|
|
44
46
|
'min-height': 'MIH',
|
|
@@ -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;
|
package/dist/types/core.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface UIComponentProps {
|
|
|
9
9
|
alignItems?: 'normal' | 'stretch' | 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'baseline' | 'inherit';
|
|
10
10
|
animate?: string;
|
|
11
11
|
animateAll?: string;
|
|
12
|
+
bg?: string;
|
|
12
13
|
bgColor?: string;
|
|
13
14
|
bgImageAttachment?: 'scroll' | 'fixed' | 'unset' | 'inherit';
|
|
14
15
|
bgImageRepeat?: 'no-repeat' | 'repeat' | 'repeat-x' | 'repeat-y' | 'unset' | 'space' | 'inherit';
|
|
@@ -58,6 +59,7 @@ export interface UIComponentProps {
|
|
|
58
59
|
marginRight?: string;
|
|
59
60
|
marginTop?: string;
|
|
60
61
|
marginVertical?: string;
|
|
62
|
+
maskImage?: string;
|
|
61
63
|
mouseEnabled?: boolean;
|
|
62
64
|
minHeight?: string;
|
|
63
65
|
minWidth?: string;
|