@master/css 2.0.0-beta.11 → 2.0.0-beta.111
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/README.md +102 -109
- package/dist/apis/render-from-html.d.ts +2 -2
- package/dist/apis/render-into-html.d.ts +2 -2
- package/dist/apis/render.d.ts +2 -2
- package/dist/config/breakpoints.d.ts +2 -2
- package/dist/config/colors.d.ts +2 -2
- package/dist/config/important.d.ts +2 -0
- package/dist/config/index.d.ts +44 -16
- package/dist/config/observe.d.ts +2 -0
- package/dist/config/override.d.ts +2 -0
- package/dist/config/root-size.d.ts +2 -2
- package/dist/config/rules.d.ts +198 -2
- package/dist/config/scheme.d.ts +2 -2
- package/dist/config/scope.d.ts +2 -0
- package/dist/config/selectors.d.ts +2 -2
- package/dist/config/semantics.d.ts +143 -43
- package/dist/config/themes.d.ts +2 -2
- package/dist/config/values.d.ts +2 -2
- package/dist/constants/start-symbol.d.ts +1 -0
- package/dist/css.d.ts +44 -31
- package/dist/index.browser.d.ts +1 -0
- package/dist/index.browser.js +1 -2
- package/dist/index.cjs +1 -2
- package/dist/index.d.ts +16 -15
- package/dist/index.mjs +1 -2
- package/dist/rule.d.ts +26 -26
- package/dist/rules/accent-color.d.ts +3 -4
- package/dist/rules/align-content.d.ts +4 -5
- package/dist/rules/align-items.d.ts +4 -5
- package/dist/rules/align-self.d.ts +4 -5
- package/dist/rules/animation-delay.d.ts +4 -5
- package/dist/rules/animation-direction.d.ts +4 -5
- package/dist/rules/animation-duration.d.ts +4 -5
- package/dist/rules/animation-fill-mode.d.ts +4 -5
- package/dist/rules/animation-iteration-count.d.ts +4 -5
- package/dist/rules/animation-name.d.ts +4 -5
- package/dist/rules/animation-play-state.d.ts +4 -5
- package/dist/rules/animation-timing-function.d.ts +4 -5
- package/dist/rules/animation.d.ts +3 -4
- package/dist/rules/appearance.d.ts +3 -4
- package/dist/rules/aspect-ratio.d.ts +6 -0
- package/dist/rules/backdrop-filter.d.ts +7 -7
- package/dist/rules/background-attachment.d.ts +4 -5
- package/dist/rules/background-blend-mode.d.ts +3 -4
- package/dist/rules/background-clip.d.ts +4 -5
- package/dist/rules/background-color.d.ts +3 -4
- package/dist/rules/background-image.d.ts +4 -5
- package/dist/rules/background-origin.d.ts +4 -5
- package/dist/rules/background-position.d.ts +4 -5
- package/dist/rules/background-repeat.d.ts +4 -5
- package/dist/rules/background-size.d.ts +4 -5
- package/dist/rules/background.d.ts +4 -5
- package/dist/rules/border-collapse.d.ts +4 -5
- package/dist/rules/border-color.d.ts +5 -4
- package/dist/rules/border-image-outset.d.ts +3 -4
- package/dist/rules/border-image-repeat.d.ts +4 -5
- package/dist/rules/border-image-slice.d.ts +3 -4
- package/dist/rules/border-image-source.d.ts +4 -5
- package/dist/rules/border-image-width.d.ts +4 -5
- package/dist/rules/border-image.d.ts +3 -4
- package/dist/rules/border-radius.d.ts +5 -4
- package/dist/rules/border-spacing.d.ts +3 -4
- package/dist/rules/border-style.d.ts +5 -4
- package/dist/rules/border-width.d.ts +5 -4
- package/dist/rules/border.d.ts +5 -4
- package/dist/rules/box-decoration-break.d.ts +4 -5
- package/dist/rules/box-shadow.d.ts +4 -5
- package/dist/rules/box-sizing.d.ts +4 -5
- package/dist/rules/break-after.d.ts +3 -4
- package/dist/rules/break-before.d.ts +3 -4
- package/dist/rules/break-inside.d.ts +3 -4
- package/dist/rules/caret-color.d.ts +3 -4
- package/dist/rules/clear.d.ts +3 -4
- package/dist/rules/clip-path.d.ts +4 -5
- package/dist/rules/color.d.ts +4 -5
- package/dist/rules/column-span.d.ts +4 -5
- package/dist/rules/columns.d.ts +4 -5
- package/dist/rules/contain.d.ts +3 -4
- package/dist/rules/content.d.ts +3 -4
- package/dist/rules/counter-increment.d.ts +3 -4
- package/dist/rules/counter-reset.d.ts +5 -0
- package/dist/rules/cursor.d.ts +3 -4
- package/dist/rules/cx.d.ts +3 -4
- package/dist/rules/cy.d.ts +3 -4
- package/dist/rules/direction.d.ts +3 -4
- package/dist/rules/display.d.ts +4 -5
- package/dist/rules/fill.d.ts +3 -4
- package/dist/rules/filter.d.ts +7 -7
- package/dist/rules/flex-basis.d.ts +3 -4
- package/dist/rules/flex-direction.d.ts +4 -5
- package/dist/rules/flex-grow.d.ts +3 -4
- package/dist/rules/flex-shrink.d.ts +3 -4
- package/dist/rules/flex-wrap.d.ts +4 -5
- package/dist/rules/flex.d.ts +3 -4
- package/dist/rules/float.d.ts +3 -4
- package/dist/rules/font-family.d.ts +4 -5
- package/dist/rules/font-feature-settings.d.ts +5 -0
- package/dist/rules/font-size.d.ts +4 -5
- package/dist/rules/font-smoothing.d.ts +5 -4
- package/dist/rules/font-style.d.ts +4 -5
- package/dist/rules/font-variant-numeric.d.ts +4 -5
- package/dist/rules/font-weight.d.ts +4 -5
- package/dist/rules/font.d.ts +4 -5
- package/dist/rules/gap.d.ts +5 -4
- package/dist/rules/grid-area.d.ts +3 -4
- package/dist/rules/grid-auto-columns.d.ts +4 -5
- package/dist/rules/grid-auto-flow.d.ts +4 -5
- package/dist/rules/grid-auto-rows.d.ts +3 -4
- package/dist/rules/grid-column-end.d.ts +4 -5
- package/dist/rules/grid-column-start.d.ts +4 -5
- package/dist/rules/grid-column.d.ts +4 -5
- package/dist/rules/grid-columns.d.ts +4 -5
- package/dist/rules/grid-row-end.d.ts +3 -4
- package/dist/rules/grid-row-start.d.ts +3 -4
- package/dist/rules/grid-row.d.ts +4 -5
- package/dist/rules/grid-rows.d.ts +3 -4
- package/dist/rules/grid-template-areas.d.ts +3 -4
- package/dist/rules/grid-template-columns.d.ts +4 -5
- package/dist/rules/grid-template-rows.d.ts +3 -4
- package/dist/rules/grid-template.d.ts +3 -4
- package/dist/rules/grid.d.ts +3 -4
- package/dist/rules/group.d.ts +10 -6
- package/dist/rules/height.d.ts +4 -5
- package/dist/rules/inset.d.ts +4 -5
- package/dist/rules/isolation.d.ts +3 -4
- package/dist/rules/justify-content.d.ts +4 -5
- package/dist/rules/justify-items.d.ts +4 -5
- package/dist/rules/justify-self.d.ts +4 -5
- package/dist/rules/letter-spacing.d.ts +4 -5
- package/dist/rules/line-clamp.d.ts +3 -4
- package/dist/rules/line-height.d.ts +4 -5
- package/dist/rules/lines.d.ts +5 -4
- package/dist/rules/list-style-image.d.ts +4 -5
- package/dist/rules/list-style-position.d.ts +4 -5
- package/dist/rules/list-style-type.d.ts +4 -5
- package/dist/rules/list-style.d.ts +3 -4
- package/dist/rules/margin.d.ts +5 -4
- package/dist/rules/mask-image.d.ts +3 -4
- package/dist/rules/max-height.d.ts +4 -5
- package/dist/rules/max-wh.d.ts +12 -0
- package/dist/rules/max-width.d.ts +4 -5
- package/dist/rules/min-height.d.ts +4 -5
- package/dist/rules/min-wh.d.ts +12 -0
- package/dist/rules/min-width.d.ts +4 -5
- package/dist/rules/mix-blend-mode.d.ts +4 -5
- package/dist/rules/object-fit.d.ts +4 -5
- package/dist/rules/object-position.d.ts +4 -5
- package/dist/rules/opacity.d.ts +3 -4
- package/dist/rules/order.d.ts +4 -5
- package/dist/rules/outline-color.d.ts +3 -4
- package/dist/rules/outline-offset.d.ts +3 -4
- package/dist/rules/outline-style.d.ts +4 -5
- package/dist/rules/outline-width.d.ts +4 -5
- package/dist/rules/outline.d.ts +3 -4
- package/dist/rules/overflow.d.ts +5 -4
- package/dist/rules/overscroll-behavior.d.ts +5 -4
- package/dist/rules/padding.d.ts +5 -4
- package/dist/rules/place-content.d.ts +3 -4
- package/dist/rules/place-items.d.ts +3 -4
- package/dist/rules/place-self.d.ts +3 -4
- package/dist/rules/pointer-events.d.ts +3 -4
- package/dist/rules/position.d.ts +3 -4
- package/dist/rules/quotes.d.ts +3 -4
- package/dist/rules/resize.d.ts +3 -4
- package/dist/rules/rx.d.ts +3 -4
- package/dist/rules/ry.d.ts +3 -4
- package/dist/rules/scroll-behavior.d.ts +3 -4
- package/dist/rules/scroll-margin.d.ts +5 -4
- package/dist/rules/scroll-padding.d.ts +5 -4
- package/dist/rules/scroll-snap-align.d.ts +4 -5
- package/dist/rules/scroll-snap-stop.d.ts +4 -5
- package/dist/rules/scroll-snap-type.d.ts +4 -5
- package/dist/rules/shape-image-threshold.d.ts +3 -4
- package/dist/rules/shape-margin.d.ts +4 -5
- package/dist/rules/shape-outside.d.ts +4 -5
- package/dist/rules/spacing.d.ts +5 -4
- package/dist/rules/stroke-dasharray.d.ts +3 -4
- package/dist/rules/stroke-dashoffset.d.ts +3 -4
- package/dist/rules/stroke-width.d.ts +4 -5
- package/dist/rules/stroke.d.ts +3 -4
- package/dist/rules/table-layout.d.ts +3 -4
- package/dist/rules/text-align.d.ts +4 -5
- package/dist/rules/text-decoration-color.d.ts +3 -4
- package/dist/rules/text-decoration-line.d.ts +4 -5
- package/dist/rules/text-decoration-style.d.ts +4 -5
- package/dist/rules/text-decoration-thickness.d.ts +4 -5
- package/dist/rules/text-decoration.d.ts +4 -5
- package/dist/rules/text-fill-color.d.ts +5 -4
- package/dist/rules/text-indent.d.ts +3 -4
- package/dist/rules/text-orientation.d.ts +4 -5
- package/dist/rules/text-overflow.d.ts +4 -5
- package/dist/rules/text-rendering.d.ts +4 -5
- package/dist/rules/text-shadow.d.ts +3 -4
- package/dist/rules/text-size.d.ts +5 -4
- package/dist/rules/text-stroke-color.d.ts +5 -4
- package/dist/rules/text-stroke-width.d.ts +5 -4
- package/dist/rules/text-stroke.d.ts +5 -4
- package/dist/rules/text-transform.d.ts +4 -5
- package/dist/rules/text-underline-offset.d.ts +3 -4
- package/dist/rules/touch-action.d.ts +3 -4
- package/dist/rules/transform-box.d.ts +4 -5
- package/dist/rules/transform-origin.d.ts +4 -5
- package/dist/rules/transform-style.d.ts +4 -5
- package/dist/rules/transform.d.ts +6 -7
- package/dist/rules/transition-delay.d.ts +4 -5
- package/dist/rules/transition-duration.d.ts +4 -5
- package/dist/rules/transition-property.d.ts +4 -5
- package/dist/rules/transition-timing-function.d.ts +4 -5
- package/dist/rules/transition.d.ts +3 -4
- package/dist/rules/user-drag.d.ts +3 -4
- package/dist/rules/user-select.d.ts +3 -4
- package/dist/rules/variable.d.ts +5 -4
- package/dist/rules/vertical-align.d.ts +4 -5
- package/dist/rules/visibility.d.ts +3 -4
- package/dist/rules/wh.d.ts +12 -0
- package/dist/rules/white-space.d.ts +3 -4
- package/dist/rules/width.d.ts +4 -5
- package/dist/rules/will-change.d.ts +3 -4
- package/dist/rules/word-break.d.ts +3 -4
- package/dist/rules/word-spacing.d.ts +3 -4
- package/dist/rules/writing-mode.d.ts +4 -5
- package/dist/rules/x.d.ts +3 -4
- package/dist/rules/y.d.ts +3 -4
- package/dist/rules/z-index.d.ts +4 -5
- package/dist/utils/analyze-unit-value.d.ts +4 -0
- package/dist/utils/analyze-value-token.d.ts +3 -0
- package/dist/utils/delay.d.ts +2 -0
- package/dist/utils/is-plain-object.d.ts +1 -1
- package/dist/utils/normalize-css-calc-text.d.ts +1 -1
- package/dist/utils/parse-value-unit.d.ts +2 -2
- package/dist/utils/parse-value.d.ts +1 -2
- package/dist/utils/test-css.d.ts +3 -0
- package/package.json +1 -162
- package/LICENSE +0 -21
- package/dist/apis/extend.d.ts +0 -5
- package/dist/apis/init.d.ts +0 -3
- package/dist/index.browser.js.map +0 -7
- package/dist/index.cjs.map +0 -7
- package/dist/index.mjs.map +0 -7
- package/dist/rules/aspect-radio.d.ts +0 -7
- package/dist/rules/placement.d.ts +0 -8
- package/readme.md +0 -118
|
@@ -1,45 +1,145 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
square:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
declare const semantics: {
|
|
2
|
+
square: {
|
|
3
|
+
'aspect-ratio': string;
|
|
4
|
+
};
|
|
5
|
+
video: {
|
|
6
|
+
'aspect-ratio': string;
|
|
7
|
+
};
|
|
8
|
+
rounded: {
|
|
9
|
+
'border-radius': string;
|
|
10
|
+
};
|
|
11
|
+
round: {
|
|
12
|
+
'border-radius': string;
|
|
13
|
+
};
|
|
14
|
+
hidden: {
|
|
15
|
+
display: string;
|
|
16
|
+
};
|
|
17
|
+
hide: {
|
|
18
|
+
display: string;
|
|
19
|
+
};
|
|
20
|
+
block: {
|
|
21
|
+
display: string;
|
|
22
|
+
};
|
|
23
|
+
table: {
|
|
24
|
+
display: string;
|
|
25
|
+
};
|
|
26
|
+
flex: {
|
|
27
|
+
display: string;
|
|
28
|
+
};
|
|
29
|
+
grid: {
|
|
30
|
+
display: string;
|
|
31
|
+
};
|
|
32
|
+
contents: {
|
|
33
|
+
display: string;
|
|
34
|
+
};
|
|
35
|
+
inline: {
|
|
36
|
+
display: string;
|
|
37
|
+
};
|
|
38
|
+
'inline-block': {
|
|
39
|
+
display: string;
|
|
40
|
+
};
|
|
41
|
+
'inline-flex': {
|
|
42
|
+
display: string;
|
|
43
|
+
};
|
|
44
|
+
'inline-grid': {
|
|
45
|
+
display: string;
|
|
46
|
+
};
|
|
47
|
+
'inline-table': {
|
|
48
|
+
display: string;
|
|
49
|
+
};
|
|
50
|
+
'table-cell': {
|
|
51
|
+
display: string;
|
|
52
|
+
};
|
|
53
|
+
'table-caption': {
|
|
54
|
+
display: string;
|
|
55
|
+
};
|
|
56
|
+
'flow-root': {
|
|
57
|
+
display: string;
|
|
58
|
+
};
|
|
59
|
+
'list-item': {
|
|
60
|
+
display: string;
|
|
61
|
+
};
|
|
62
|
+
'table-row': {
|
|
63
|
+
display: string;
|
|
64
|
+
};
|
|
65
|
+
'table-column': {
|
|
66
|
+
display: string;
|
|
67
|
+
};
|
|
68
|
+
'table-row-group': {
|
|
69
|
+
display: string;
|
|
70
|
+
};
|
|
71
|
+
'table-column-group': {
|
|
72
|
+
display: string;
|
|
73
|
+
};
|
|
74
|
+
'table-header-group': {
|
|
75
|
+
display: string;
|
|
76
|
+
};
|
|
77
|
+
'table-footer-group': {
|
|
78
|
+
display: string;
|
|
79
|
+
};
|
|
80
|
+
italic: {
|
|
81
|
+
'font-style': string;
|
|
82
|
+
};
|
|
83
|
+
oblique: {
|
|
84
|
+
'font-style': string;
|
|
85
|
+
};
|
|
86
|
+
isolate: {
|
|
87
|
+
isolation: string;
|
|
88
|
+
};
|
|
89
|
+
overflow: {
|
|
90
|
+
overflow: string;
|
|
91
|
+
};
|
|
92
|
+
untouchable: {
|
|
93
|
+
'pointer-events': string;
|
|
94
|
+
};
|
|
95
|
+
static: {
|
|
96
|
+
position: string;
|
|
97
|
+
};
|
|
98
|
+
fixed: {
|
|
99
|
+
position: string;
|
|
100
|
+
};
|
|
101
|
+
abs: {
|
|
102
|
+
position: string;
|
|
103
|
+
};
|
|
104
|
+
rel: {
|
|
105
|
+
position: string;
|
|
106
|
+
};
|
|
107
|
+
sticky: {
|
|
108
|
+
position: string;
|
|
109
|
+
};
|
|
110
|
+
uppercase: {
|
|
111
|
+
'text-transform': string;
|
|
112
|
+
};
|
|
113
|
+
lowercase: {
|
|
114
|
+
'text-transform': string;
|
|
115
|
+
};
|
|
116
|
+
capitalize: {
|
|
117
|
+
'text-transform': string;
|
|
118
|
+
};
|
|
119
|
+
visible: {
|
|
120
|
+
visibility: string;
|
|
121
|
+
};
|
|
122
|
+
invisible: {
|
|
123
|
+
visibility: string;
|
|
124
|
+
};
|
|
125
|
+
vw: {
|
|
126
|
+
width: string;
|
|
127
|
+
};
|
|
128
|
+
vh: {
|
|
129
|
+
height: string;
|
|
130
|
+
};
|
|
131
|
+
'max-vw': {
|
|
132
|
+
'max-width': string;
|
|
133
|
+
};
|
|
134
|
+
'max-vh': {
|
|
135
|
+
'max-height': string;
|
|
136
|
+
};
|
|
137
|
+
'min-vw': {
|
|
138
|
+
'min-width': string;
|
|
139
|
+
};
|
|
140
|
+
'min-vh': {
|
|
141
|
+
'min-height': string;
|
|
142
|
+
};
|
|
43
143
|
'center-content': {
|
|
44
144
|
'justify-content': string;
|
|
45
145
|
'align-items': string;
|
|
@@ -79,4 +179,4 @@ declare const defaultSemantics: {
|
|
|
79
179
|
overflow: string;
|
|
80
180
|
};
|
|
81
181
|
};
|
|
82
|
-
export default
|
|
182
|
+
export default semantics;
|
package/dist/config/themes.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const themes: string[];
|
|
2
|
+
export default themes;
|
package/dist/config/values.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const values: {
|
|
2
2
|
BackgroundClip: {
|
|
3
3
|
content: string;
|
|
4
4
|
border: string;
|
|
@@ -123,4 +123,4 @@ declare const defaultValues: {
|
|
|
123
123
|
min: string;
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
export default
|
|
126
|
+
export default values;
|
package/dist/css.d.ts
CHANGED
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import MasterCSSRule from './rule';
|
|
1
|
+
import type { Config } from './config';
|
|
2
|
+
import Rule, { RuleMatching } from './rule';
|
|
4
3
|
declare const MutationObserver: ObjectConstructor | {
|
|
5
4
|
new (callback: MutationCallback): MutationObserver;
|
|
6
5
|
prototype: MutationObserver;
|
|
7
6
|
};
|
|
8
7
|
export default class MasterCSS extends MutationObserver {
|
|
9
8
|
#private;
|
|
10
|
-
config?:
|
|
11
|
-
root?: Document | ShadowRoot;
|
|
12
|
-
static init: typeof init;
|
|
13
|
-
static defaultConfig: MasterCSSConfig;
|
|
9
|
+
config?: Config;
|
|
14
10
|
static instances: MasterCSS[];
|
|
15
11
|
static root: MasterCSS;
|
|
16
12
|
/**
|
|
17
|
-
* 全部 sheet 根據目前蒐集到的所有 DOM class 重新
|
|
13
|
+
* 全部 sheet 根據目前蒐集到的所有 DOM class 重新 create
|
|
18
14
|
*/
|
|
19
|
-
static refresh(config:
|
|
15
|
+
static refresh(config: Config): void;
|
|
20
16
|
readonly style: HTMLStyleElement;
|
|
21
|
-
readonly rules:
|
|
22
|
-
readonly ruleOfClass: Record<string,
|
|
17
|
+
readonly rules: Rule[];
|
|
18
|
+
readonly ruleOfClass: Record<string, Rule>;
|
|
23
19
|
readonly countOfClass: {};
|
|
24
20
|
readonly host: Element;
|
|
21
|
+
readonly root: Document | ShadowRoot;
|
|
25
22
|
readonly ready: boolean;
|
|
26
|
-
semantics: [RegExp, string][];
|
|
23
|
+
semantics: [RegExp, [string, string | Record<string, string>]][];
|
|
27
24
|
classes: Record<string, string[]>;
|
|
28
|
-
|
|
25
|
+
colorThemesMap: Record<string, Record<string, string>>;
|
|
29
26
|
colorNames: string[];
|
|
30
27
|
themeNames: string[];
|
|
31
28
|
relationThemesMap: Record<string, Record<string, string[]>>;
|
|
32
29
|
relations: Record<string, string[]>;
|
|
33
30
|
selectors: Record<string, [RegExp, string[]][]>;
|
|
31
|
+
values: Record<string, Record<string, string | number>>;
|
|
32
|
+
globalValues: Record<string, string | number>;
|
|
33
|
+
breakpoints: Record<string, number>;
|
|
34
|
+
mediaQueries: Record<string, string>;
|
|
35
|
+
matches: Record<string, RegExp>;
|
|
34
36
|
private schemeMQL;
|
|
35
|
-
constructor(config?:
|
|
37
|
+
constructor(config?: Config);
|
|
36
38
|
get storageScheme(): string;
|
|
37
39
|
set scheme(scheme: string);
|
|
38
40
|
get scheme(): string;
|
|
@@ -41,32 +43,43 @@ export default class MasterCSS extends MutationObserver {
|
|
|
41
43
|
private removeSchemeListener;
|
|
42
44
|
private onThemeChange;
|
|
43
45
|
private cache;
|
|
44
|
-
observe(options?: MutationObserverInit): this;
|
|
46
|
+
observe(root: Document | ShadowRoot | null, options?: MutationObserverInit): this;
|
|
45
47
|
disconnect(): void;
|
|
46
48
|
/**
|
|
47
|
-
*
|
|
49
|
+
* 比對是否為 Master CSS 的類名語法
|
|
48
50
|
*/
|
|
49
|
-
|
|
51
|
+
match(className: string): RuleMatching;
|
|
50
52
|
/**
|
|
51
|
-
*
|
|
53
|
+
* 透過類名 ( 包含 .classes ) 生成 rules[]
|
|
52
54
|
*/
|
|
53
|
-
|
|
55
|
+
create(className: string): Rule[];
|
|
56
|
+
/**
|
|
57
|
+
* 根據蒐集到的所有 DOM class 重新 create
|
|
58
|
+
*/
|
|
59
|
+
refresh(config: Config): void;
|
|
54
60
|
destroy(): void;
|
|
55
61
|
/**
|
|
56
|
-
*
|
|
57
|
-
* 2. normal
|
|
58
|
-
* 3. where selectors
|
|
59
|
-
* 4. normal selectors
|
|
60
|
-
* 5. media where
|
|
61
|
-
* 6. media normal
|
|
62
|
-
* 7. media selectors
|
|
63
|
-
* 8. media width where
|
|
64
|
-
* 9. media width
|
|
65
|
-
* 10. media width selectors
|
|
62
|
+
* 透過類名來刪除對應的 Rules
|
|
66
63
|
*/
|
|
67
|
-
insert(rule: MasterCSSRule): void;
|
|
68
64
|
delete(className: string): void;
|
|
69
|
-
|
|
65
|
+
/**
|
|
66
|
+
* 依類名插入規則
|
|
67
|
+
*/
|
|
68
|
+
insert(eachClassName: string): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* 加工插入規則
|
|
71
|
+
* 1. where
|
|
72
|
+
* 2. normal
|
|
73
|
+
* 3. where selectors
|
|
74
|
+
* 4. normal selectors
|
|
75
|
+
* 5. media where
|
|
76
|
+
* 6. media normal
|
|
77
|
+
* 7. media selectors
|
|
78
|
+
* 8. media width where
|
|
79
|
+
* 9. media width
|
|
80
|
+
* 10. media width selectors
|
|
81
|
+
*/
|
|
82
|
+
insertRules(rules: Rule[]): void;
|
|
70
83
|
get text(): string;
|
|
71
84
|
}
|
|
72
85
|
declare global {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|