@cssints/css-grammar 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,355 @@
1
+ //#region src/functions.d.ts
2
+ export declare const functions: {
3
+ readonly abs: {
4
+ readonly sep: ", ";
5
+ readonly math: "same";
6
+ };
7
+ readonly acos: {
8
+ readonly sep: ", ";
9
+ readonly math: "angle";
10
+ };
11
+ readonly anchor: {
12
+ readonly sep: ", ";
13
+ };
14
+ readonly "anchor-size": {
15
+ readonly sep: ", ";
16
+ };
17
+ readonly asin: {
18
+ readonly sep: ", ";
19
+ readonly math: "angle";
20
+ };
21
+ readonly atan: {
22
+ readonly sep: ", ";
23
+ readonly math: "angle";
24
+ };
25
+ readonly atan2: {
26
+ readonly sep: ", ";
27
+ readonly math: "angle";
28
+ };
29
+ readonly attr: {
30
+ readonly sep: ", ";
31
+ };
32
+ readonly blur: {
33
+ readonly sep: " ";
34
+ };
35
+ readonly brightness: {
36
+ readonly sep: " ";
37
+ };
38
+ readonly calc: {
39
+ readonly sep: ", ";
40
+ readonly math: "same";
41
+ };
42
+ readonly "calc-size": {
43
+ readonly sep: ", ";
44
+ };
45
+ readonly circle: {
46
+ readonly sep: " ";
47
+ };
48
+ readonly clamp: {
49
+ readonly sep: ", ";
50
+ readonly math: "same";
51
+ };
52
+ readonly color: {
53
+ readonly sep: " ";
54
+ };
55
+ readonly "color-mix": {
56
+ readonly sep: ", ";
57
+ };
58
+ readonly "conic-gradient": {
59
+ readonly sep: ", ";
60
+ };
61
+ readonly contrast: {
62
+ readonly sep: " ";
63
+ };
64
+ readonly cos: {
65
+ readonly sep: ", ";
66
+ readonly math: "number";
67
+ };
68
+ readonly counter: {
69
+ readonly sep: ", ";
70
+ };
71
+ readonly counters: {
72
+ readonly sep: ", ";
73
+ };
74
+ readonly "cross-fade": {
75
+ readonly sep: ", ";
76
+ };
77
+ readonly "cubic-bezier": {
78
+ readonly sep: ", ";
79
+ };
80
+ readonly "drop-shadow": {
81
+ readonly sep: " ";
82
+ };
83
+ readonly element: {
84
+ readonly sep: " ";
85
+ };
86
+ readonly ellipse: {
87
+ readonly sep: " ";
88
+ };
89
+ readonly env: {
90
+ readonly sep: ", ";
91
+ };
92
+ readonly exp: {
93
+ readonly sep: ", ";
94
+ readonly math: "number";
95
+ };
96
+ readonly "fit-content": {
97
+ readonly sep: " ";
98
+ };
99
+ readonly grayscale: {
100
+ readonly sep: " ";
101
+ };
102
+ readonly hsl: {
103
+ readonly sep: ", ";
104
+ };
105
+ readonly hsla: {
106
+ readonly sep: ", ";
107
+ };
108
+ readonly "hue-rotate": {
109
+ readonly sep: " ";
110
+ };
111
+ readonly hwb: {
112
+ readonly sep: " ";
113
+ };
114
+ readonly hypot: {
115
+ readonly sep: ", ";
116
+ readonly math: "same";
117
+ };
118
+ readonly image: {
119
+ readonly sep: ", ";
120
+ };
121
+ readonly "image-set": {
122
+ readonly sep: ", ";
123
+ };
124
+ readonly inset: {
125
+ readonly sep: " ";
126
+ };
127
+ readonly invert: {
128
+ readonly sep: " ";
129
+ };
130
+ readonly lab: {
131
+ readonly sep: " ";
132
+ };
133
+ readonly layer: {
134
+ readonly sep: " ";
135
+ };
136
+ readonly lch: {
137
+ readonly sep: " ";
138
+ };
139
+ readonly leader: {
140
+ readonly sep: " ";
141
+ };
142
+ readonly "light-dark": {
143
+ readonly sep: ", ";
144
+ };
145
+ readonly linear: {
146
+ readonly sep: ", ";
147
+ };
148
+ readonly "linear-gradient": {
149
+ readonly sep: ", ";
150
+ };
151
+ readonly log: {
152
+ readonly sep: ", ";
153
+ readonly math: "number";
154
+ };
155
+ readonly matrix: {
156
+ readonly sep: ", ";
157
+ };
158
+ readonly matrix3d: {
159
+ readonly sep: ", ";
160
+ };
161
+ readonly max: {
162
+ readonly sep: ", ";
163
+ readonly math: "same";
164
+ };
165
+ readonly min: {
166
+ readonly sep: ", ";
167
+ readonly math: "same";
168
+ };
169
+ readonly minmax: {
170
+ readonly sep: ", ";
171
+ };
172
+ readonly mod: {
173
+ readonly sep: ", ";
174
+ readonly math: "same";
175
+ };
176
+ readonly oklab: {
177
+ readonly sep: " ";
178
+ };
179
+ readonly oklch: {
180
+ readonly sep: " ";
181
+ };
182
+ readonly opacity: {
183
+ readonly sep: " ";
184
+ };
185
+ readonly paint: {
186
+ readonly sep: ", ";
187
+ };
188
+ readonly "palette-mix": {
189
+ readonly sep: ", ";
190
+ };
191
+ readonly path: {
192
+ readonly sep: ", ";
193
+ };
194
+ readonly perspective: {
195
+ readonly sep: " ";
196
+ };
197
+ readonly polygon: {
198
+ readonly sep: ", ";
199
+ };
200
+ readonly pow: {
201
+ readonly sep: ", ";
202
+ readonly math: "number";
203
+ };
204
+ readonly "radial-gradient": {
205
+ readonly sep: ", ";
206
+ };
207
+ readonly ray: {
208
+ readonly sep: " ";
209
+ };
210
+ readonly rect: {
211
+ readonly sep: " ";
212
+ };
213
+ readonly rem: {
214
+ readonly sep: ", ";
215
+ readonly math: "same";
216
+ };
217
+ readonly "repeating-conic-gradient": {
218
+ readonly sep: ", ";
219
+ };
220
+ readonly "repeating-linear-gradient": {
221
+ readonly sep: ", ";
222
+ };
223
+ readonly "repeating-radial-gradient": {
224
+ readonly sep: ", ";
225
+ };
226
+ readonly rgb: {
227
+ readonly sep: ", ";
228
+ };
229
+ readonly rgba: {
230
+ readonly sep: ", ";
231
+ };
232
+ readonly rotate: {
233
+ readonly sep: " ";
234
+ };
235
+ readonly rotate3d: {
236
+ readonly sep: ", ";
237
+ };
238
+ readonly rotateX: {
239
+ readonly sep: " ";
240
+ };
241
+ readonly rotateY: {
242
+ readonly sep: " ";
243
+ };
244
+ readonly rotateZ: {
245
+ readonly sep: " ";
246
+ };
247
+ readonly round: {
248
+ readonly sep: ", ";
249
+ readonly math: "same";
250
+ };
251
+ readonly saturate: {
252
+ readonly sep: " ";
253
+ };
254
+ readonly scale: {
255
+ readonly sep: ", ";
256
+ };
257
+ readonly scale3d: {
258
+ readonly sep: ", ";
259
+ };
260
+ readonly scaleX: {
261
+ readonly sep: " ";
262
+ };
263
+ readonly scaleY: {
264
+ readonly sep: " ";
265
+ };
266
+ readonly scaleZ: {
267
+ readonly sep: " ";
268
+ };
269
+ readonly scroll: {
270
+ readonly sep: " ";
271
+ };
272
+ readonly sepia: {
273
+ readonly sep: " ";
274
+ };
275
+ readonly sign: {
276
+ readonly sep: ", ";
277
+ readonly math: "number";
278
+ };
279
+ readonly sin: {
280
+ readonly sep: ", ";
281
+ readonly math: "number";
282
+ };
283
+ readonly skew: {
284
+ readonly sep: ", ";
285
+ };
286
+ readonly skewX: {
287
+ readonly sep: " ";
288
+ };
289
+ readonly skewY: {
290
+ readonly sep: " ";
291
+ };
292
+ readonly sqrt: {
293
+ readonly sep: ", ";
294
+ readonly math: "number";
295
+ };
296
+ readonly steps: {
297
+ readonly sep: ", ";
298
+ };
299
+ readonly symbols: {
300
+ readonly sep: " ";
301
+ };
302
+ readonly tan: {
303
+ readonly sep: ", ";
304
+ readonly math: "number";
305
+ };
306
+ readonly "target-counter": {
307
+ readonly sep: ", ";
308
+ };
309
+ readonly "target-counters": {
310
+ readonly sep: ", ";
311
+ };
312
+ readonly "target-text": {
313
+ readonly sep: ", ";
314
+ };
315
+ readonly translate: {
316
+ readonly sep: ", ";
317
+ };
318
+ readonly translate3d: {
319
+ readonly sep: ", ";
320
+ };
321
+ readonly translateX: {
322
+ readonly sep: " ";
323
+ };
324
+ readonly translateY: {
325
+ readonly sep: " ";
326
+ };
327
+ readonly translateZ: {
328
+ readonly sep: " ";
329
+ };
330
+ readonly var: {
331
+ readonly sep: ", ";
332
+ };
333
+ readonly view: {
334
+ readonly sep: " ";
335
+ };
336
+ readonly xywh: {
337
+ readonly sep: " ";
338
+ };
339
+ readonly url: {
340
+ readonly sep: " ";
341
+ };
342
+ readonly src: {
343
+ readonly sep: " ";
344
+ };
345
+ readonly "contrast-color": {
346
+ readonly sep: " ";
347
+ };
348
+ readonly superellipse: {
349
+ readonly sep: " ";
350
+ };
351
+ readonly "dynamic-range-limit-mix": {
352
+ readonly sep: ", ";
353
+ };
354
+ };
355
+ //#endregion
@@ -0,0 +1,178 @@
1
+ //#region src/functions.ts
2
+ const functions = {
3
+ abs: {
4
+ "sep": ", ",
5
+ "math": "same"
6
+ },
7
+ acos: {
8
+ "sep": ", ",
9
+ "math": "angle"
10
+ },
11
+ anchor: { "sep": ", " },
12
+ "anchor-size": { "sep": ", " },
13
+ asin: {
14
+ "sep": ", ",
15
+ "math": "angle"
16
+ },
17
+ atan: {
18
+ "sep": ", ",
19
+ "math": "angle"
20
+ },
21
+ atan2: {
22
+ "sep": ", ",
23
+ "math": "angle"
24
+ },
25
+ attr: { "sep": ", " },
26
+ blur: { "sep": " " },
27
+ brightness: { "sep": " " },
28
+ calc: {
29
+ "sep": ", ",
30
+ "math": "same"
31
+ },
32
+ "calc-size": { "sep": ", " },
33
+ circle: { "sep": " " },
34
+ clamp: {
35
+ "sep": ", ",
36
+ "math": "same"
37
+ },
38
+ color: { "sep": " " },
39
+ "color-mix": { "sep": ", " },
40
+ "conic-gradient": { "sep": ", " },
41
+ contrast: { "sep": " " },
42
+ cos: {
43
+ "sep": ", ",
44
+ "math": "number"
45
+ },
46
+ counter: { "sep": ", " },
47
+ counters: { "sep": ", " },
48
+ "cross-fade": { "sep": ", " },
49
+ "cubic-bezier": { "sep": ", " },
50
+ "drop-shadow": { "sep": " " },
51
+ element: { "sep": " " },
52
+ ellipse: { "sep": " " },
53
+ env: { "sep": ", " },
54
+ exp: {
55
+ "sep": ", ",
56
+ "math": "number"
57
+ },
58
+ "fit-content": { "sep": " " },
59
+ grayscale: { "sep": " " },
60
+ hsl: { "sep": ", " },
61
+ hsla: { "sep": ", " },
62
+ "hue-rotate": { "sep": " " },
63
+ hwb: { "sep": " " },
64
+ hypot: {
65
+ "sep": ", ",
66
+ "math": "same"
67
+ },
68
+ image: { "sep": ", " },
69
+ "image-set": { "sep": ", " },
70
+ inset: { "sep": " " },
71
+ invert: { "sep": " " },
72
+ lab: { "sep": " " },
73
+ layer: { "sep": " " },
74
+ lch: { "sep": " " },
75
+ leader: { "sep": " " },
76
+ "light-dark": { "sep": ", " },
77
+ linear: { "sep": ", " },
78
+ "linear-gradient": { "sep": ", " },
79
+ log: {
80
+ "sep": ", ",
81
+ "math": "number"
82
+ },
83
+ matrix: { "sep": ", " },
84
+ matrix3d: { "sep": ", " },
85
+ max: {
86
+ "sep": ", ",
87
+ "math": "same"
88
+ },
89
+ min: {
90
+ "sep": ", ",
91
+ "math": "same"
92
+ },
93
+ minmax: { "sep": ", " },
94
+ mod: {
95
+ "sep": ", ",
96
+ "math": "same"
97
+ },
98
+ oklab: { "sep": " " },
99
+ oklch: { "sep": " " },
100
+ opacity: { "sep": " " },
101
+ paint: { "sep": ", " },
102
+ "palette-mix": { "sep": ", " },
103
+ path: { "sep": ", " },
104
+ perspective: { "sep": " " },
105
+ polygon: { "sep": ", " },
106
+ pow: {
107
+ "sep": ", ",
108
+ "math": "number"
109
+ },
110
+ "radial-gradient": { "sep": ", " },
111
+ ray: { "sep": " " },
112
+ rect: { "sep": " " },
113
+ rem: {
114
+ "sep": ", ",
115
+ "math": "same"
116
+ },
117
+ "repeating-conic-gradient": { "sep": ", " },
118
+ "repeating-linear-gradient": { "sep": ", " },
119
+ "repeating-radial-gradient": { "sep": ", " },
120
+ rgb: { "sep": ", " },
121
+ rgba: { "sep": ", " },
122
+ rotate: { "sep": " " },
123
+ rotate3d: { "sep": ", " },
124
+ rotateX: { "sep": " " },
125
+ rotateY: { "sep": " " },
126
+ rotateZ: { "sep": " " },
127
+ round: {
128
+ "sep": ", ",
129
+ "math": "same"
130
+ },
131
+ saturate: { "sep": " " },
132
+ scale: { "sep": ", " },
133
+ scale3d: { "sep": ", " },
134
+ scaleX: { "sep": " " },
135
+ scaleY: { "sep": " " },
136
+ scaleZ: { "sep": " " },
137
+ scroll: { "sep": " " },
138
+ sepia: { "sep": " " },
139
+ sign: {
140
+ "sep": ", ",
141
+ "math": "number"
142
+ },
143
+ sin: {
144
+ "sep": ", ",
145
+ "math": "number"
146
+ },
147
+ skew: { "sep": ", " },
148
+ skewX: { "sep": " " },
149
+ skewY: { "sep": " " },
150
+ sqrt: {
151
+ "sep": ", ",
152
+ "math": "number"
153
+ },
154
+ steps: { "sep": ", " },
155
+ symbols: { "sep": " " },
156
+ tan: {
157
+ "sep": ", ",
158
+ "math": "number"
159
+ },
160
+ "target-counter": { "sep": ", " },
161
+ "target-counters": { "sep": ", " },
162
+ "target-text": { "sep": ", " },
163
+ translate: { "sep": ", " },
164
+ translate3d: { "sep": ", " },
165
+ translateX: { "sep": " " },
166
+ translateY: { "sep": " " },
167
+ translateZ: { "sep": " " },
168
+ var: { "sep": ", " },
169
+ view: { "sep": " " },
170
+ xywh: { "sep": " " },
171
+ url: { "sep": " " },
172
+ src: { "sep": " " },
173
+ "contrast-color": { "sep": " " },
174
+ superellipse: { "sep": " " },
175
+ "dynamic-range-limit-mix": { "sep": ", " }
176
+ };
177
+ //#endregion
178
+ export { functions };