@master/css 2.0.0-beta.26 → 2.0.0-beta.28
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/config/index.d.ts +5 -5
- package/dist/css.d.ts +14 -14
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +3 -3
- package/dist/rule.d.ts +18 -18
- package/dist/rules/accent-color.d.ts +2 -2
- package/dist/rules/align-content.d.ts +2 -2
- package/dist/rules/align-items.d.ts +2 -2
- package/dist/rules/align-self.d.ts +2 -2
- package/dist/rules/animation-delay.d.ts +2 -2
- package/dist/rules/animation-direction.d.ts +2 -2
- package/dist/rules/animation-duration.d.ts +2 -2
- package/dist/rules/animation-fill-mode.d.ts +2 -2
- package/dist/rules/animation-iteration-count.d.ts +2 -2
- package/dist/rules/animation-name.d.ts +2 -2
- package/dist/rules/animation-play-state.d.ts +2 -2
- package/dist/rules/animation-timing-function.d.ts +2 -2
- package/dist/rules/animation.d.ts +2 -2
- package/dist/rules/appearance.d.ts +2 -2
- package/dist/rules/aspect-radio.d.ts +2 -2
- package/dist/rules/backdrop-filter.d.ts +4 -4
- package/dist/rules/background-attachment.d.ts +2 -2
- package/dist/rules/background-blend-mode.d.ts +2 -2
- package/dist/rules/background-clip.d.ts +2 -2
- package/dist/rules/background-color.d.ts +2 -2
- package/dist/rules/background-image.d.ts +2 -2
- package/dist/rules/background-origin.d.ts +2 -2
- package/dist/rules/background-position.d.ts +2 -2
- package/dist/rules/background-repeat.d.ts +2 -2
- package/dist/rules/background-size.d.ts +2 -2
- package/dist/rules/background.d.ts +2 -2
- package/dist/rules/border-collapse.d.ts +2 -2
- package/dist/rules/border-color.d.ts +2 -2
- package/dist/rules/border-image-outset.d.ts +2 -2
- package/dist/rules/border-image-repeat.d.ts +2 -2
- package/dist/rules/border-image-slice.d.ts +2 -2
- package/dist/rules/border-image-source.d.ts +2 -2
- package/dist/rules/border-image-width.d.ts +2 -2
- package/dist/rules/border-image.d.ts +2 -2
- package/dist/rules/border-radius.d.ts +2 -2
- package/dist/rules/border-spacing.d.ts +2 -2
- package/dist/rules/border-style.d.ts +2 -2
- package/dist/rules/border-width.d.ts +2 -2
- package/dist/rules/border.d.ts +2 -2
- package/dist/rules/box-decoration-break.d.ts +2 -2
- package/dist/rules/box-shadow.d.ts +2 -2
- package/dist/rules/box-sizing.d.ts +2 -2
- package/dist/rules/break-after.d.ts +2 -2
- package/dist/rules/break-before.d.ts +2 -2
- package/dist/rules/break-inside.d.ts +2 -2
- package/dist/rules/caret-color.d.ts +2 -2
- package/dist/rules/clear.d.ts +2 -2
- package/dist/rules/clip-path.d.ts +2 -2
- package/dist/rules/color.d.ts +2 -2
- package/dist/rules/column-span.d.ts +2 -2
- package/dist/rules/columns.d.ts +2 -2
- package/dist/rules/contain.d.ts +2 -2
- package/dist/rules/content.d.ts +2 -2
- package/dist/rules/counter-increment.d.ts +2 -2
- package/dist/rules/counter-reset.d.ts +2 -2
- package/dist/rules/cursor.d.ts +2 -2
- package/dist/rules/cx.d.ts +2 -2
- package/dist/rules/cy.d.ts +2 -2
- package/dist/rules/direction.d.ts +2 -2
- package/dist/rules/display.d.ts +2 -2
- package/dist/rules/fill.d.ts +2 -2
- package/dist/rules/filter.d.ts +4 -4
- package/dist/rules/flex-basis.d.ts +2 -2
- package/dist/rules/flex-direction.d.ts +2 -2
- package/dist/rules/flex-grow.d.ts +2 -2
- package/dist/rules/flex-shrink.d.ts +2 -2
- package/dist/rules/flex-wrap.d.ts +2 -2
- package/dist/rules/flex.d.ts +2 -2
- package/dist/rules/float.d.ts +2 -2
- package/dist/rules/font-family.d.ts +2 -2
- package/dist/rules/font-size.d.ts +2 -2
- package/dist/rules/font-smoothing.d.ts +2 -2
- package/dist/rules/font-style.d.ts +2 -2
- package/dist/rules/font-variant-numeric.d.ts +2 -2
- package/dist/rules/font-weight.d.ts +2 -2
- package/dist/rules/font.d.ts +2 -2
- package/dist/rules/gap.d.ts +2 -2
- package/dist/rules/grid-area.d.ts +2 -2
- package/dist/rules/grid-auto-columns.d.ts +2 -2
- package/dist/rules/grid-auto-flow.d.ts +2 -2
- package/dist/rules/grid-auto-rows.d.ts +2 -2
- package/dist/rules/grid-column-end.d.ts +2 -2
- package/dist/rules/grid-column-start.d.ts +2 -2
- package/dist/rules/grid-column.d.ts +2 -2
- package/dist/rules/grid-columns.d.ts +2 -2
- package/dist/rules/grid-row-end.d.ts +2 -2
- package/dist/rules/grid-row-start.d.ts +2 -2
- package/dist/rules/grid-row.d.ts +2 -2
- package/dist/rules/grid-rows.d.ts +2 -2
- package/dist/rules/grid-template-areas.d.ts +2 -2
- package/dist/rules/grid-template-columns.d.ts +2 -2
- package/dist/rules/grid-template-rows.d.ts +2 -2
- package/dist/rules/grid-template.d.ts +2 -2
- package/dist/rules/grid.d.ts +2 -2
- package/dist/rules/group.d.ts +4 -4
- package/dist/rules/height.d.ts +2 -2
- package/dist/rules/inset.d.ts +2 -2
- package/dist/rules/isolation.d.ts +2 -2
- package/dist/rules/justify-content.d.ts +2 -2
- package/dist/rules/justify-items.d.ts +2 -2
- package/dist/rules/justify-self.d.ts +2 -2
- package/dist/rules/letter-spacing.d.ts +2 -2
- package/dist/rules/line-clamp.d.ts +2 -2
- package/dist/rules/line-height.d.ts +2 -2
- package/dist/rules/lines.d.ts +2 -2
- package/dist/rules/list-style-image.d.ts +2 -2
- package/dist/rules/list-style-position.d.ts +2 -2
- package/dist/rules/list-style-type.d.ts +2 -2
- package/dist/rules/list-style.d.ts +2 -2
- package/dist/rules/margin.d.ts +2 -2
- package/dist/rules/mask-image.d.ts +2 -2
- package/dist/rules/max-height.d.ts +2 -2
- package/dist/rules/max-width.d.ts +2 -2
- package/dist/rules/min-height.d.ts +2 -2
- package/dist/rules/min-width.d.ts +2 -2
- package/dist/rules/mix-blend-mode.d.ts +2 -2
- package/dist/rules/object-fit.d.ts +2 -2
- package/dist/rules/object-position.d.ts +2 -2
- package/dist/rules/opacity.d.ts +2 -2
- package/dist/rules/order.d.ts +2 -2
- package/dist/rules/outline-color.d.ts +2 -2
- package/dist/rules/outline-offset.d.ts +2 -2
- package/dist/rules/outline-style.d.ts +2 -2
- package/dist/rules/outline-width.d.ts +2 -2
- package/dist/rules/outline.d.ts +2 -2
- package/dist/rules/overflow.d.ts +2 -2
- package/dist/rules/overscroll-behavior.d.ts +2 -2
- package/dist/rules/padding.d.ts +2 -2
- package/dist/rules/place-content.d.ts +2 -2
- package/dist/rules/place-items.d.ts +2 -2
- package/dist/rules/place-self.d.ts +2 -2
- package/dist/rules/placement.d.ts +2 -2
- package/dist/rules/pointer-events.d.ts +2 -2
- package/dist/rules/position.d.ts +2 -2
- package/dist/rules/quotes.d.ts +2 -2
- package/dist/rules/resize.d.ts +2 -2
- package/dist/rules/rx.d.ts +2 -2
- package/dist/rules/ry.d.ts +2 -2
- package/dist/rules/scroll-behavior.d.ts +2 -2
- package/dist/rules/scroll-margin.d.ts +2 -2
- package/dist/rules/scroll-padding.d.ts +2 -2
- package/dist/rules/scroll-snap-align.d.ts +2 -2
- package/dist/rules/scroll-snap-stop.d.ts +2 -2
- package/dist/rules/scroll-snap-type.d.ts +2 -2
- package/dist/rules/shape-image-threshold.d.ts +2 -2
- package/dist/rules/shape-margin.d.ts +2 -2
- package/dist/rules/shape-outside.d.ts +2 -2
- package/dist/rules/spacing.d.ts +2 -2
- package/dist/rules/stroke-dasharray.d.ts +2 -2
- package/dist/rules/stroke-dashoffset.d.ts +2 -2
- package/dist/rules/stroke-width.d.ts +2 -2
- package/dist/rules/stroke.d.ts +2 -2
- package/dist/rules/table-layout.d.ts +2 -2
- package/dist/rules/text-align.d.ts +2 -2
- package/dist/rules/text-decoration-color.d.ts +2 -2
- package/dist/rules/text-decoration-line.d.ts +2 -2
- package/dist/rules/text-decoration-style.d.ts +2 -2
- package/dist/rules/text-decoration-thickness.d.ts +2 -2
- package/dist/rules/text-decoration.d.ts +2 -2
- package/dist/rules/text-fill-color.d.ts +2 -2
- package/dist/rules/text-indent.d.ts +2 -2
- package/dist/rules/text-orientation.d.ts +2 -2
- package/dist/rules/text-overflow.d.ts +2 -2
- package/dist/rules/text-rendering.d.ts +2 -2
- package/dist/rules/text-shadow.d.ts +2 -2
- package/dist/rules/text-size.d.ts +2 -2
- package/dist/rules/text-stroke-color.d.ts +2 -2
- package/dist/rules/text-stroke-width.d.ts +2 -2
- package/dist/rules/text-stroke.d.ts +2 -2
- package/dist/rules/text-transform.d.ts +2 -2
- package/dist/rules/text-underline-offset.d.ts +2 -2
- package/dist/rules/touch-action.d.ts +2 -2
- package/dist/rules/transform-box.d.ts +2 -2
- package/dist/rules/transform-origin.d.ts +2 -2
- package/dist/rules/transform-style.d.ts +2 -2
- package/dist/rules/transform.d.ts +4 -4
- package/dist/rules/transition-delay.d.ts +2 -2
- package/dist/rules/transition-duration.d.ts +2 -2
- package/dist/rules/transition-property.d.ts +2 -2
- package/dist/rules/transition-timing-function.d.ts +2 -2
- package/dist/rules/transition.d.ts +2 -2
- package/dist/rules/user-drag.d.ts +2 -2
- package/dist/rules/user-select.d.ts +2 -2
- package/dist/rules/variable.d.ts +2 -2
- package/dist/rules/vertical-align.d.ts +2 -2
- package/dist/rules/visibility.d.ts +2 -2
- package/dist/rules/white-space.d.ts +2 -2
- package/dist/rules/width.d.ts +2 -2
- package/dist/rules/will-change.d.ts +2 -2
- package/dist/rules/word-break.d.ts +2 -2
- package/dist/rules/word-spacing.d.ts +2 -2
- package/dist/rules/writing-mode.d.ts +2 -2
- package/dist/rules/x.d.ts +2 -2
- package/dist/rules/y.d.ts +2 -2
- package/dist/rules/z-index.d.ts +2 -2
- package/dist/utils/parse-value-unit.d.ts +2 -2
- package/package.json +1 -1
package/dist/rule.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import MasterCSS from './css';
|
|
2
|
-
import type {
|
|
3
|
-
export default class
|
|
2
|
+
import type { Config } from './config';
|
|
3
|
+
export default class Rule {
|
|
4
4
|
readonly className: string;
|
|
5
|
-
readonly matching:
|
|
5
|
+
readonly matching: RuleMatching;
|
|
6
6
|
css: MasterCSS;
|
|
7
7
|
readonly prefix: string;
|
|
8
8
|
readonly symbol: string;
|
|
@@ -10,18 +10,18 @@ export default class MasterCSSRule {
|
|
|
10
10
|
readonly prefixSelectors: string[];
|
|
11
11
|
readonly vendorSuffixSelectors: Record<string, string[]>;
|
|
12
12
|
readonly important: boolean;
|
|
13
|
-
readonly media:
|
|
13
|
+
readonly media: MediaQuery;
|
|
14
14
|
readonly at: Record<string, string>;
|
|
15
15
|
readonly direction: string;
|
|
16
|
-
readonly
|
|
16
|
+
readonly theme: string;
|
|
17
17
|
readonly unitToken: string;
|
|
18
18
|
readonly hasWhere: boolean;
|
|
19
|
-
readonly
|
|
19
|
+
readonly priority: number;
|
|
20
20
|
readonly natives: {
|
|
21
21
|
unit: string;
|
|
22
22
|
value: string | Record<string, string | number>;
|
|
23
23
|
text: string;
|
|
24
|
-
|
|
24
|
+
theme: string;
|
|
25
25
|
cssRule?: CSSRule;
|
|
26
26
|
}[];
|
|
27
27
|
static id: string;
|
|
@@ -31,35 +31,35 @@ export default class MasterCSSRule {
|
|
|
31
31
|
static unit: string;
|
|
32
32
|
static colorful: boolean;
|
|
33
33
|
static get prop(): string;
|
|
34
|
-
static match(name: string, colorNames: string[]):
|
|
35
|
-
constructor(className: string, matching:
|
|
34
|
+
static match(name: string, colorNames: string[]): RuleMatching;
|
|
35
|
+
constructor(className: string, matching: RuleMatching, css: MasterCSS);
|
|
36
36
|
}
|
|
37
|
-
export default interface
|
|
37
|
+
export default interface Rule {
|
|
38
38
|
readonly order?: number;
|
|
39
|
-
parseValue(value: string, config:
|
|
40
|
-
get(declaration:
|
|
41
|
-
getThemeProps(declaration:
|
|
39
|
+
parseValue(value: string, config: Config): string;
|
|
40
|
+
get(declaration: Declaration): Record<string, any>;
|
|
41
|
+
getThemeProps(declaration: Declaration, css: MasterCSS): Record<string, Record<string, string>>;
|
|
42
42
|
}
|
|
43
|
-
export interface
|
|
43
|
+
export interface MediaFeatureRule {
|
|
44
44
|
token: string;
|
|
45
45
|
tokenType?: string;
|
|
46
46
|
operator?: string;
|
|
47
47
|
value?: number;
|
|
48
48
|
unit?: string;
|
|
49
49
|
}
|
|
50
|
-
export interface
|
|
50
|
+
export interface MediaQuery {
|
|
51
51
|
token: string;
|
|
52
52
|
features?: {
|
|
53
|
-
[key: string]:
|
|
53
|
+
[key: string]: MediaFeatureRule;
|
|
54
54
|
};
|
|
55
55
|
type?: string;
|
|
56
56
|
}
|
|
57
|
-
export interface
|
|
57
|
+
export interface Declaration {
|
|
58
58
|
value: any;
|
|
59
59
|
unit: string;
|
|
60
60
|
important: boolean;
|
|
61
61
|
}
|
|
62
|
-
export interface
|
|
62
|
+
export interface RuleMatching {
|
|
63
63
|
origin: 'matches' | 'semantics' | 'symbol';
|
|
64
64
|
value?: string;
|
|
65
65
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
export default class extends
|
|
1
|
+
import type { Config } from '../config';
|
|
2
|
+
import Rule from '../rule';
|
|
3
|
+
export default class extends Rule {
|
|
4
4
|
static id: string;
|
|
5
5
|
static matches: RegExp;
|
|
6
6
|
static colorful: boolean;
|
|
7
7
|
get(declaration: any): {
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
};
|
|
10
|
-
parseValue(value: string, config:
|
|
10
|
+
parseValue(value: string, config: Config): string;
|
|
11
11
|
}
|
package/dist/rules/border.d.ts
CHANGED
package/dist/rules/clear.d.ts
CHANGED
package/dist/rules/color.d.ts
CHANGED
package/dist/rules/columns.d.ts
CHANGED
package/dist/rules/contain.d.ts
CHANGED
package/dist/rules/content.d.ts
CHANGED
package/dist/rules/cursor.d.ts
CHANGED
package/dist/rules/cx.d.ts
CHANGED
package/dist/rules/cy.d.ts
CHANGED
package/dist/rules/display.d.ts
CHANGED