flinker-dom 1.1.15 → 1.1.17
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/core.js +2 -0
- package/dist/esm/processor.js +4 -2
- package/dist/types/core.d.ts +2 -0
- package/dist/types/processor.d.ts +1 -1
- package/package.json +1 -1
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',
|
|
@@ -71,7 +73,7 @@ const abbreviations = {
|
|
|
71
73
|
'user-select': 'U',
|
|
72
74
|
'z-index': 'Z'
|
|
73
75
|
};
|
|
74
|
-
const pseudoClasses = ['none', ':hover', ':focus', '
|
|
76
|
+
const pseudoClasses = ['none', ':hover', ':focus', '::placeholder', '::before'];
|
|
75
77
|
export class StyleSheetProcessor {
|
|
76
78
|
constructor(styleSheet) {
|
|
77
79
|
this.hash = new Map();
|
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RulePriority } from './core';
|
|
2
|
-
declare const pseudoClasses: readonly ["none", ":hover", ":focus", "
|
|
2
|
+
declare const pseudoClasses: readonly ["none", ":hover", ":focus", "::placeholder", "::before"];
|
|
3
3
|
export type PseudoClassType = typeof pseudoClasses[number];
|
|
4
4
|
export declare class StyleSheetProcessor {
|
|
5
5
|
private readonly hash;
|