@master/css 2.0.0-beta.183 → 2.0.0-beta.184
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/bin/index.bundle.js +9 -9
- package/dist/config/functions.d.ts +2 -3
- package/dist/config/index.d.ts +25 -28
- package/dist/config/{viewports.d.ts → media-queries.d.ts} +2 -2
- package/dist/config/rules.d.ts +274 -265
- package/dist/config/variables.d.ts +32 -0
- package/dist/constants/config-esm-text.d.ts +1 -1
- package/dist/constants/config-text.d.ts +1 -1
- package/dist/constants/config-ts-text.d.ts +1 -1
- package/dist/core.d.ts +7 -9
- package/dist/index.browser.bundle.js +1 -1
- package/dist/index.bundle.js +9 -9
- package/dist/index.bundle.mjs +10 -10
- package/dist/rule.d.ts +5 -6
- package/dist/utils/flatten-obj.d.ts +4 -0
- package/package.json +1 -1
- package/dist/config/fonts.d.ts +0 -6
package/dist/config/rules.d.ts
CHANGED
|
@@ -1,268 +1,277 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CoreLayer } from '../layer';
|
|
2
|
+
import { RuleOptions } from './';
|
|
2
3
|
declare const rules: {
|
|
3
|
-
group:
|
|
4
|
-
variable:
|
|
5
|
-
fontSize:
|
|
6
|
-
fontWeight:
|
|
7
|
-
fontFamily:
|
|
8
|
-
fontSmoothing:
|
|
9
|
-
fontStyle:
|
|
10
|
-
fontVariantNumeric:
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
4
|
+
group: RuleOptions;
|
|
5
|
+
variable: RuleOptions;
|
|
6
|
+
fontSize: RuleOptions;
|
|
7
|
+
fontWeight: RuleOptions;
|
|
8
|
+
fontFamily: RuleOptions;
|
|
9
|
+
fontSmoothing: RuleOptions;
|
|
10
|
+
fontStyle: RuleOptions;
|
|
11
|
+
fontVariantNumeric: RuleOptions;
|
|
12
|
+
fontVariant: {
|
|
13
|
+
layer: CoreLayer;
|
|
14
|
+
};
|
|
15
|
+
fontFeatureSettings: RuleOptions;
|
|
16
|
+
font: RuleOptions;
|
|
17
|
+
color: RuleOptions;
|
|
18
|
+
marginLeft: RuleOptions;
|
|
19
|
+
marginRight: RuleOptions;
|
|
20
|
+
marginTop: RuleOptions;
|
|
21
|
+
marginBottom: RuleOptions;
|
|
22
|
+
marginX: RuleOptions;
|
|
23
|
+
marginY: RuleOptions;
|
|
24
|
+
margin: RuleOptions;
|
|
25
|
+
marginInlineStart: RuleOptions;
|
|
26
|
+
marginInlineEnd: RuleOptions;
|
|
27
|
+
marginInline: RuleOptions;
|
|
28
|
+
paddingLeft: RuleOptions;
|
|
29
|
+
paddingRight: RuleOptions;
|
|
30
|
+
paddingTop: RuleOptions;
|
|
31
|
+
paddingBottom: RuleOptions;
|
|
32
|
+
paddingX: RuleOptions;
|
|
33
|
+
paddingY: RuleOptions;
|
|
34
|
+
padding: RuleOptions;
|
|
35
|
+
paddingInlineStart: RuleOptions;
|
|
36
|
+
paddingInlineEnd: RuleOptions;
|
|
37
|
+
paddingInline: RuleOptions;
|
|
38
|
+
flexBasis: RuleOptions;
|
|
39
|
+
flexWrap: RuleOptions;
|
|
40
|
+
flexGrow: RuleOptions;
|
|
41
|
+
flexShrink: RuleOptions;
|
|
42
|
+
flexDirection: RuleOptions;
|
|
43
|
+
flex: RuleOptions;
|
|
44
|
+
display: RuleOptions;
|
|
45
|
+
width: RuleOptions;
|
|
46
|
+
Height: RuleOptions;
|
|
47
|
+
minWidth: RuleOptions;
|
|
48
|
+
minHeight: RuleOptions;
|
|
49
|
+
box: RuleOptions;
|
|
50
|
+
minBox: RuleOptions;
|
|
51
|
+
maxBox: RuleOptions;
|
|
52
|
+
boxSizing: RuleOptions;
|
|
53
|
+
boxDecorationBreak: RuleOptions;
|
|
54
|
+
contain: RuleOptions;
|
|
55
|
+
content: RuleOptions;
|
|
56
|
+
counterIncrement: RuleOptions;
|
|
57
|
+
counterReset: RuleOptions;
|
|
58
|
+
letterSpacing: RuleOptions;
|
|
59
|
+
lineHeight: RuleOptions;
|
|
60
|
+
objectFit: RuleOptions;
|
|
61
|
+
objectPosition: RuleOptions;
|
|
62
|
+
textAlign: RuleOptions;
|
|
63
|
+
textDecorationColor: RuleOptions;
|
|
64
|
+
textDecorationStyle: RuleOptions;
|
|
65
|
+
textDecorationThickness: RuleOptions;
|
|
66
|
+
textDecorationLine: RuleOptions;
|
|
67
|
+
textDecoration: RuleOptions;
|
|
68
|
+
textUnderlineOffset: RuleOptions;
|
|
69
|
+
textOverflow: RuleOptions;
|
|
70
|
+
textOrientation: RuleOptions;
|
|
71
|
+
textTransform: RuleOptions;
|
|
72
|
+
textRendering: RuleOptions;
|
|
73
|
+
textIndent: RuleOptions;
|
|
74
|
+
verticalAlign: RuleOptions;
|
|
75
|
+
columns: RuleOptions;
|
|
76
|
+
whiteSpace: RuleOptions;
|
|
77
|
+
top: RuleOptions;
|
|
78
|
+
bottom: RuleOptions;
|
|
79
|
+
left: RuleOptions;
|
|
80
|
+
right: RuleOptions;
|
|
81
|
+
inset: RuleOptions;
|
|
82
|
+
lines: RuleOptions;
|
|
83
|
+
maxHeight: RuleOptions;
|
|
84
|
+
maxWidth: RuleOptions;
|
|
85
|
+
opacity: RuleOptions;
|
|
86
|
+
visibility: RuleOptions;
|
|
87
|
+
clear: RuleOptions;
|
|
88
|
+
float: RuleOptions;
|
|
89
|
+
isolation: RuleOptions;
|
|
90
|
+
overflowX: RuleOptions;
|
|
91
|
+
overflowY: RuleOptions;
|
|
92
|
+
overflow: RuleOptions;
|
|
93
|
+
overscrollBehaviorX: RuleOptions;
|
|
94
|
+
overscrollBehaviorY: RuleOptions;
|
|
95
|
+
overscrollBehavior: RuleOptions;
|
|
96
|
+
zIndex: RuleOptions;
|
|
97
|
+
position: RuleOptions;
|
|
98
|
+
cursor: RuleOptions;
|
|
99
|
+
pointerEvents: RuleOptions;
|
|
100
|
+
resize: RuleOptions;
|
|
101
|
+
touchAction: RuleOptions;
|
|
102
|
+
wordBreak: RuleOptions;
|
|
103
|
+
wordSpacing: RuleOptions;
|
|
104
|
+
userDrag: RuleOptions;
|
|
105
|
+
userSelect: RuleOptions;
|
|
106
|
+
textShadow: RuleOptions;
|
|
107
|
+
textSize: RuleOptions;
|
|
108
|
+
textFillColor: RuleOptions;
|
|
109
|
+
textStrokeWidth: RuleOptions;
|
|
110
|
+
textStrokeColor: RuleOptions;
|
|
111
|
+
textStroke: RuleOptions;
|
|
112
|
+
boxShadow: RuleOptions;
|
|
113
|
+
tableLayout: RuleOptions;
|
|
114
|
+
transformBox: RuleOptions;
|
|
115
|
+
transformStyle: RuleOptions;
|
|
116
|
+
transformOrigin: RuleOptions;
|
|
117
|
+
transform: RuleOptions;
|
|
118
|
+
transitionProperty: RuleOptions;
|
|
119
|
+
transitionTimingFunction: RuleOptions;
|
|
120
|
+
transitionDuration: RuleOptions;
|
|
121
|
+
transitionDelay: RuleOptions;
|
|
122
|
+
transition: RuleOptions;
|
|
123
|
+
animationDelay: RuleOptions;
|
|
124
|
+
animationDirection: RuleOptions;
|
|
125
|
+
animationDuration: RuleOptions;
|
|
126
|
+
animationFillMode: RuleOptions;
|
|
127
|
+
animationIterationCount: RuleOptions;
|
|
128
|
+
animationName: RuleOptions;
|
|
129
|
+
animationPlayState: RuleOptions;
|
|
130
|
+
animationTimingFunction: RuleOptions;
|
|
131
|
+
animation: RuleOptions;
|
|
132
|
+
borderCollapse: RuleOptions;
|
|
133
|
+
borderSpacing: RuleOptions;
|
|
134
|
+
borderTopColor: RuleOptions;
|
|
135
|
+
borderBottomColor: RuleOptions;
|
|
136
|
+
borderLeftColor: RuleOptions;
|
|
137
|
+
borderRightColor: RuleOptions;
|
|
138
|
+
borderXColor: RuleOptions;
|
|
139
|
+
borderYColor: RuleOptions;
|
|
140
|
+
borderColor: RuleOptions;
|
|
141
|
+
borderTopLeftRadius: RuleOptions;
|
|
142
|
+
borderTopRightRadius: RuleOptions;
|
|
143
|
+
borderBottomLeftRadius: RuleOptions;
|
|
144
|
+
borderBottomRightRadius: RuleOptions;
|
|
145
|
+
borderTopRadius: RuleOptions;
|
|
146
|
+
borderBottomRadius: RuleOptions;
|
|
147
|
+
borderLeftRadius: RuleOptions;
|
|
148
|
+
borderRightRadius: RuleOptions;
|
|
149
|
+
borderRadius: RuleOptions;
|
|
150
|
+
borderTopStyle: RuleOptions;
|
|
151
|
+
borderBottomStyle: RuleOptions;
|
|
152
|
+
borderLeftStyle: RuleOptions;
|
|
153
|
+
borderRightStyle: RuleOptions;
|
|
154
|
+
borderXStyle: RuleOptions;
|
|
155
|
+
borderYStyle: RuleOptions;
|
|
156
|
+
borderStyle: RuleOptions;
|
|
157
|
+
borderTopWidth: RuleOptions;
|
|
158
|
+
borderBottomWidth: RuleOptions;
|
|
159
|
+
borderLeftWidth: RuleOptions;
|
|
160
|
+
borderRightWidth: RuleOptions;
|
|
161
|
+
borderXWidth: RuleOptions;
|
|
162
|
+
borderYWidth: RuleOptions;
|
|
163
|
+
borderWidth: RuleOptions;
|
|
164
|
+
borderImageOutset: RuleOptions;
|
|
165
|
+
borderImageRepeat: RuleOptions;
|
|
166
|
+
borderImageSlice: RuleOptions;
|
|
167
|
+
borderImageSource: RuleOptions;
|
|
168
|
+
borderImageWidth: RuleOptions;
|
|
169
|
+
borderImage: RuleOptions;
|
|
170
|
+
borderTop: RuleOptions;
|
|
171
|
+
borderBottom: RuleOptions;
|
|
172
|
+
borderLeft: RuleOptions;
|
|
173
|
+
borderRight: RuleOptions;
|
|
174
|
+
borderX: RuleOptions;
|
|
175
|
+
borderY: RuleOptions;
|
|
176
|
+
border: RuleOptions;
|
|
177
|
+
backgroundAttachment: RuleOptions;
|
|
178
|
+
backgroundBlendMode: RuleOptions;
|
|
179
|
+
backgroundColor: RuleOptions;
|
|
180
|
+
backgroundClip: RuleOptions;
|
|
181
|
+
backgroundOrigin: RuleOptions;
|
|
182
|
+
backgroundPosition: RuleOptions;
|
|
183
|
+
backgroundRepeat: RuleOptions;
|
|
184
|
+
backgroundSize: RuleOptions;
|
|
185
|
+
backgroundImage: RuleOptions;
|
|
186
|
+
background: RuleOptions;
|
|
187
|
+
gradient: RuleOptions;
|
|
188
|
+
mixBlendMode: RuleOptions;
|
|
189
|
+
backdropFilter: RuleOptions;
|
|
190
|
+
filter: RuleOptions;
|
|
191
|
+
fill: RuleOptions;
|
|
192
|
+
strokeDasharray: RuleOptions;
|
|
193
|
+
strokeDashoffset: RuleOptions;
|
|
194
|
+
strokeWidth: RuleOptions;
|
|
195
|
+
stroke: RuleOptions;
|
|
196
|
+
x: RuleOptions;
|
|
197
|
+
y: RuleOptions;
|
|
198
|
+
cx: RuleOptions;
|
|
199
|
+
cy: RuleOptions;
|
|
200
|
+
rx: RuleOptions;
|
|
201
|
+
ry: RuleOptions;
|
|
202
|
+
gridColumnStart: RuleOptions;
|
|
203
|
+
gridColumnEnd: RuleOptions;
|
|
204
|
+
gridColumn: RuleOptions;
|
|
205
|
+
gridColumns: RuleOptions;
|
|
206
|
+
gridRowStart: RuleOptions;
|
|
207
|
+
gridRowEnd: RuleOptions;
|
|
208
|
+
gridRow: RuleOptions;
|
|
209
|
+
gridRows: RuleOptions;
|
|
210
|
+
gridAutoColumns: RuleOptions;
|
|
211
|
+
gridAutoFlow: RuleOptions;
|
|
212
|
+
gridAutoRows: RuleOptions;
|
|
213
|
+
gridTemplateAreas: RuleOptions;
|
|
214
|
+
gridTemplateColumns: RuleOptions;
|
|
215
|
+
gridTemplateRows: RuleOptions;
|
|
216
|
+
gridTemplate: RuleOptions;
|
|
217
|
+
gridArea: RuleOptions;
|
|
218
|
+
grid: RuleOptions;
|
|
219
|
+
columnGap: RuleOptions;
|
|
220
|
+
rowGap: RuleOptions;
|
|
221
|
+
gap: RuleOptions;
|
|
222
|
+
order: RuleOptions;
|
|
223
|
+
breakInside: RuleOptions;
|
|
224
|
+
breakBefore: RuleOptions;
|
|
225
|
+
breakAfter: RuleOptions;
|
|
226
|
+
aspectRatio: RuleOptions;
|
|
227
|
+
columnSpan: RuleOptions;
|
|
228
|
+
alignContent: RuleOptions;
|
|
229
|
+
alignItems: RuleOptions;
|
|
230
|
+
alignSelf: RuleOptions;
|
|
231
|
+
justifyContent: RuleOptions;
|
|
232
|
+
justifyItems: RuleOptions;
|
|
233
|
+
justifySelf: RuleOptions;
|
|
234
|
+
placeContent: RuleOptions;
|
|
235
|
+
placeItems: RuleOptions;
|
|
236
|
+
placeSelf: RuleOptions;
|
|
237
|
+
listStylePosition: RuleOptions;
|
|
238
|
+
listStyleType: RuleOptions;
|
|
239
|
+
listStyleImage: RuleOptions;
|
|
240
|
+
listStyle: RuleOptions;
|
|
241
|
+
outlineColor: RuleOptions;
|
|
242
|
+
outlineOffset: RuleOptions;
|
|
243
|
+
outlineStyle: RuleOptions;
|
|
244
|
+
outlineWidth: RuleOptions;
|
|
245
|
+
outline: RuleOptions;
|
|
246
|
+
accentColor: RuleOptions;
|
|
247
|
+
appearance: RuleOptions;
|
|
248
|
+
caretColor: RuleOptions;
|
|
249
|
+
scrollBehavior: RuleOptions;
|
|
250
|
+
scrollMarginLeft: RuleOptions;
|
|
251
|
+
scrollMarginRight: RuleOptions;
|
|
252
|
+
scrollMarginTop: RuleOptions;
|
|
253
|
+
scrollMarginBottom: RuleOptions;
|
|
254
|
+
scrollMarginX: RuleOptions;
|
|
255
|
+
scrollMarginY: RuleOptions;
|
|
256
|
+
scrollMargin: RuleOptions;
|
|
257
|
+
scrollPaddingLeft: RuleOptions;
|
|
258
|
+
scrollPaddingRight: RuleOptions;
|
|
259
|
+
scrollPaddingTop: RuleOptions;
|
|
260
|
+
scrollPaddingBottom: RuleOptions;
|
|
261
|
+
scrollPaddingX: RuleOptions;
|
|
262
|
+
scrollPaddingY: RuleOptions;
|
|
263
|
+
scrollPadding: RuleOptions;
|
|
264
|
+
scrollSnapAlign: RuleOptions;
|
|
265
|
+
scrollSnapStop: RuleOptions;
|
|
266
|
+
scrollSnapType: RuleOptions;
|
|
267
|
+
willChange: RuleOptions;
|
|
268
|
+
writingMode: RuleOptions;
|
|
269
|
+
direction: RuleOptions;
|
|
270
|
+
shapeOutside: RuleOptions;
|
|
271
|
+
shapeMargin: RuleOptions;
|
|
272
|
+
shapeImageThreshold: RuleOptions;
|
|
273
|
+
clipPath: RuleOptions;
|
|
274
|
+
quotes: RuleOptions;
|
|
275
|
+
maskImage: RuleOptions;
|
|
267
276
|
};
|
|
268
277
|
export default rules;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const variables: {
|
|
2
|
+
fontFamily: {
|
|
3
|
+
mono: string[];
|
|
4
|
+
sans: string[];
|
|
5
|
+
serif: string[];
|
|
6
|
+
};
|
|
7
|
+
fontWeight: {
|
|
8
|
+
thin: number;
|
|
9
|
+
extralight: number;
|
|
10
|
+
light: number;
|
|
11
|
+
regular: number;
|
|
12
|
+
medium: number;
|
|
13
|
+
semibold: number;
|
|
14
|
+
bold: number;
|
|
15
|
+
extrabold: number;
|
|
16
|
+
heavy: number;
|
|
17
|
+
};
|
|
18
|
+
box: {
|
|
19
|
+
'4xs': number;
|
|
20
|
+
'3xs': number;
|
|
21
|
+
'2xs': number;
|
|
22
|
+
xs: number;
|
|
23
|
+
sm: number;
|
|
24
|
+
md: number;
|
|
25
|
+
lg: number;
|
|
26
|
+
xl: number;
|
|
27
|
+
'2xl': number;
|
|
28
|
+
'3xl': number;
|
|
29
|
+
'4xl': number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export default variables;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CONFIG_ESM_TEXT = "/** @type {import('@master/css').Config} */\nexport default {\n
|
|
1
|
+
export declare const CONFIG_ESM_TEXT = "/** @type {import('@master/css').Config} */\nexport default {\n styles: {},\n colors: {},\n rules: {},\n variables: {},\n semantics: {},\n viewports: {},\n mediaQueries: {},\n animations: {},\n selectors: {},\n functions: {}\n}\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CONFIG_TEXT = "/** @type {import('@master/css').Config} */\nmodule.exports = {\n
|
|
1
|
+
export declare const CONFIG_TEXT = "/** @type {import('@master/css').Config} */\nmodule.exports = {\n styles: {},\n colors: {},\n rules: {},\n variables: {},\n semantics: {},\n viewports: {},\n mediaQueries: {},\n animations: {},\n selectors: {},\n functions: {}\n}\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CONFIG_TS_TEXT = "import type { Config } from '@master/css'\n\nexport default {\n
|
|
1
|
+
export declare const CONFIG_TS_TEXT = "import type { Config } from '@master/css'\n\nexport default {\n styles: {},\n colors: {},\n rules: {},\n variables: {},\n semantics: {},\n viewports: {},\n mediaQueries: {},\n animations: {},\n selectors: {},\n functions: {}\n} as Config\n";
|
package/dist/core.d.ts
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { Rule, RuleNative } from './rule';
|
|
2
2
|
import type { Config } from './config';
|
|
3
|
-
import {
|
|
3
|
+
import { RuleOptions } from './config';
|
|
4
4
|
export interface MasterCSS {
|
|
5
5
|
readonly style: HTMLStyleElement;
|
|
6
6
|
readonly host: Element;
|
|
7
7
|
readonly root: Document | ShadowRoot;
|
|
8
|
-
|
|
8
|
+
styles: Record<string, string[]>;
|
|
9
9
|
colors: Record<string, Record<string, string>>;
|
|
10
10
|
colorNames: string[];
|
|
11
11
|
themeNames: string[];
|
|
12
|
-
|
|
12
|
+
stylesBy: Record<string, string[]>;
|
|
13
13
|
selectors: Record<string, [RegExp, string[]][]>;
|
|
14
14
|
fonts: Record<string, string>;
|
|
15
|
-
|
|
16
|
-
globalValues: Record<string, string | number>;
|
|
17
|
-
viewports: Record<string, number>;
|
|
15
|
+
variables: Record<string, string | number>;
|
|
18
16
|
mediaQueries: Record<string, string>;
|
|
19
17
|
keyframesMap: Record<string, {
|
|
20
18
|
native: RuleNative;
|
|
@@ -33,8 +31,8 @@ export declare class MasterCSS {
|
|
|
33
31
|
readonly countBy: {};
|
|
34
32
|
readonly observing = false;
|
|
35
33
|
readonly config: Config;
|
|
36
|
-
private readonly
|
|
37
|
-
private readonly
|
|
34
|
+
private readonly semanticRuleOptions;
|
|
35
|
+
private readonly ruleOptions;
|
|
38
36
|
colorTokenRegExp: RegExp;
|
|
39
37
|
observer: MutationObserver;
|
|
40
38
|
private colorByThemeByColorName;
|
|
@@ -53,7 +51,7 @@ export declare class MasterCSS {
|
|
|
53
51
|
* @param syntax class syntax
|
|
54
52
|
* @returns css text
|
|
55
53
|
*/
|
|
56
|
-
match(syntax: string):
|
|
54
|
+
match(syntax: string): RuleOptions;
|
|
57
55
|
/**
|
|
58
56
|
* Create rules from class syntax
|
|
59
57
|
* @param syntax class syntax
|