@antebudimir/eslint-plugin-vanilla-extract 1.1.2 → 1.2.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.
package/README.md
CHANGED
|
@@ -21,6 +21,7 @@ An ESLint plugin for enforcing CSS ordering in [vanilla-extract](https://github.
|
|
|
21
21
|
|
|
22
22
|
- ESLint 9.0.0 or higher
|
|
23
23
|
- Node.js 18.18.0 or higher
|
|
24
|
+
- ESM (ECMAScript Modules) only
|
|
24
25
|
|
|
25
26
|
## Installation
|
|
26
27
|
|
|
@@ -37,6 +38,8 @@ pnpm add -D @antebudimir/eslint-plugin-vanilla-extract
|
|
|
37
38
|
|
|
38
39
|
## Usage
|
|
39
40
|
|
|
41
|
+
**Note: This plugin is ESM-only.** It must be used with ESM configurations and can't be used with CommonJS `require()`.
|
|
42
|
+
|
|
40
43
|
### ESLint Flat Config (ESLint 9+)
|
|
41
44
|
|
|
42
45
|
Create or update your `eslint.config.js` or `eslint.config.mjs` file:
|
|
@@ -225,12 +228,12 @@ The roadmap outlines the project's current status and future plans:
|
|
|
225
228
|
|
|
226
229
|
### Current Work
|
|
227
230
|
|
|
228
|
-
- Compatibility testing to determine if the plugin works with ESLint v8. **Note**: There are no
|
|
231
|
+
- Compatibility testing to determine if the plugin works with ESLint v8. **Note**: There are no plans to ensure compatibility if issues arise. Upcoming features will be prioritized.
|
|
229
232
|
|
|
230
233
|
### Upcoming Features
|
|
231
234
|
|
|
232
235
|
- Begin work on test coverage.
|
|
233
|
-
- Support for additional vanilla-extract APIs, including `fontFace`, `globalFontFace
|
|
236
|
+
- Support for additional vanilla-extract APIs, including `fontFace`, `globalFontFace`.
|
|
234
237
|
- Option to sort properties within user-defined concentric groups alphabetically instead of following the concentric order. **Note**: This feature will only be implemented if there's sufficient interest from the community.
|
|
235
238
|
|
|
236
239
|
## Contributing
|
|
@@ -44,14 +44,15 @@ export const createNodeVisitors = (ruleContext, orderingStrategy, userDefinedGro
|
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
46
|
// Handle style-related functions
|
|
47
|
-
if (['
|
|
47
|
+
if (['createThemeContract', 'createVar', 'createTheme', 'keyframes', 'style', 'styleVariants'].includes(node.callee.name)) {
|
|
48
48
|
if (node.arguments.length > 0) {
|
|
49
49
|
const styleArg = node.arguments[0];
|
|
50
50
|
processStyleNode(ruleContext, styleArg, processProperty);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
// Handle
|
|
54
|
-
if (node.callee.name === '
|
|
53
|
+
// Handle global functions
|
|
54
|
+
if ((node.callee.name === 'globalKeyframes' || node.callee.name === 'globalStyle') &&
|
|
55
|
+
node.arguments.length >= 2) {
|
|
55
56
|
const styleArg = node.arguments[1];
|
|
56
57
|
processStyleNode(ruleContext, styleArg, processProperty);
|
|
57
58
|
}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import customOrderRule from './css-rules/custom-order/rule-definition.js';
|
|
|
4
4
|
export const vanillaExtract = {
|
|
5
5
|
meta: {
|
|
6
6
|
name: '@antebudimir/eslint-plugin-vanilla-extract',
|
|
7
|
-
version: '1.
|
|
7
|
+
version: '1.2.0',
|
|
8
8
|
},
|
|
9
9
|
rules: {
|
|
10
10
|
'alphabetical-order': alphabeticalOrderRule,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antebudimir/eslint-plugin-vanilla-extract",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "ESLint plugin for enforcing CSS ordering in vanilla-extract styles",
|
|
5
5
|
"author": "Ante Budimir",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
"files": [
|
|
38
38
|
"dist",
|
|
39
39
|
"LICENSE",
|
|
40
|
-
"README.md"
|
|
40
|
+
"README.md",
|
|
41
|
+
"!dist/css-sample/"
|
|
41
42
|
],
|
|
42
43
|
"engines": {
|
|
43
44
|
"node": ">=18.18.0"
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
export declare const item: string;
|
|
2
|
-
export declare const selectButtonVariants: Record<"bordered" | "borderless", string>;
|
|
3
|
-
export declare const trigger: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
4
|
-
isOpen: {
|
|
5
|
-
false: {
|
|
6
|
-
margin: "0";
|
|
7
|
-
fontSize: "large";
|
|
8
|
-
border: "Background";
|
|
9
|
-
borderRight: "ActiveBorder";
|
|
10
|
-
borderLeft: "ActiveBorder";
|
|
11
|
-
borderRadius: "initial";
|
|
12
|
-
borderBottomLeftRadius: "initial";
|
|
13
|
-
borderBottomRightRadius: "initial";
|
|
14
|
-
boxShadow: "none";
|
|
15
|
-
boxSizing: "inherit";
|
|
16
|
-
position: "relative";
|
|
17
|
-
right: "inherit";
|
|
18
|
-
display: "flex";
|
|
19
|
-
gap: "revert";
|
|
20
|
-
transform: "none";
|
|
21
|
-
outline: "none";
|
|
22
|
-
backgroundColor: "initial";
|
|
23
|
-
cursor: "pointer";
|
|
24
|
-
color: "red";
|
|
25
|
-
':hover': {
|
|
26
|
-
margin: "0";
|
|
27
|
-
fontSize: "large";
|
|
28
|
-
border: "Background";
|
|
29
|
-
borderRight: "ActiveBorder";
|
|
30
|
-
borderLeft: "ActiveBorder";
|
|
31
|
-
borderRadius: "initial";
|
|
32
|
-
borderBottomLeftRadius: "initial";
|
|
33
|
-
borderBottomRightRadius: "initial";
|
|
34
|
-
boxShadow: "none";
|
|
35
|
-
boxSizing: "inherit";
|
|
36
|
-
position: "relative";
|
|
37
|
-
right: "inherit";
|
|
38
|
-
display: "flex";
|
|
39
|
-
gap: "revert";
|
|
40
|
-
transform: "none";
|
|
41
|
-
outline: "none";
|
|
42
|
-
backgroundColor: "initial";
|
|
43
|
-
cursor: "pointer";
|
|
44
|
-
color: "red";
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
true: {
|
|
48
|
-
margin: "0";
|
|
49
|
-
fontSize: "large";
|
|
50
|
-
border: "Background";
|
|
51
|
-
borderRight: "ActiveBorder";
|
|
52
|
-
borderLeft: "ActiveBorder";
|
|
53
|
-
borderRadius: "initial";
|
|
54
|
-
borderBottomLeftRadius: "initial";
|
|
55
|
-
borderBottomRightRadius: "initial";
|
|
56
|
-
boxShadow: "none";
|
|
57
|
-
boxSizing: "inherit";
|
|
58
|
-
position: "relative";
|
|
59
|
-
right: "inherit";
|
|
60
|
-
display: "flex";
|
|
61
|
-
gap: "revert";
|
|
62
|
-
transform: "none";
|
|
63
|
-
outline: "none";
|
|
64
|
-
backgroundColor: "initial";
|
|
65
|
-
cursor: "pointer";
|
|
66
|
-
color: "red";
|
|
67
|
-
':hover': {
|
|
68
|
-
margin: "0";
|
|
69
|
-
fontSize: "large";
|
|
70
|
-
border: "Background";
|
|
71
|
-
borderRight: "ActiveBorder";
|
|
72
|
-
borderLeft: "ActiveBorder";
|
|
73
|
-
borderRadius: "initial";
|
|
74
|
-
borderBottomLeftRadius: "initial";
|
|
75
|
-
borderBottomRightRadius: "initial";
|
|
76
|
-
boxShadow: "none";
|
|
77
|
-
boxSizing: "inherit";
|
|
78
|
-
position: "relative";
|
|
79
|
-
right: "inherit";
|
|
80
|
-
display: "flex";
|
|
81
|
-
gap: "revert";
|
|
82
|
-
transform: "none";
|
|
83
|
-
outline: "none";
|
|
84
|
-
backgroundColor: "initial";
|
|
85
|
-
cursor: "pointer";
|
|
86
|
-
color: "red";
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
}>;
|
|
91
|
-
export declare const accordionContent: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
92
|
-
isOpen: {
|
|
93
|
-
false: {
|
|
94
|
-
margin: "0";
|
|
95
|
-
fontSize: "large";
|
|
96
|
-
border: "Background";
|
|
97
|
-
borderRight: "ActiveBorder";
|
|
98
|
-
borderLeft: "ActiveBorder";
|
|
99
|
-
borderRadius: "initial";
|
|
100
|
-
borderBottomLeftRadius: "initial";
|
|
101
|
-
borderBottomRightRadius: "initial";
|
|
102
|
-
boxShadow: "none";
|
|
103
|
-
boxSizing: "inherit";
|
|
104
|
-
position: "relative";
|
|
105
|
-
right: "inherit";
|
|
106
|
-
display: "flex";
|
|
107
|
-
gap: "revert";
|
|
108
|
-
transform: "none";
|
|
109
|
-
outline: "none";
|
|
110
|
-
backgroundColor: "initial";
|
|
111
|
-
cursor: "pointer";
|
|
112
|
-
color: "red";
|
|
113
|
-
};
|
|
114
|
-
true: {
|
|
115
|
-
margin: "0";
|
|
116
|
-
fontSize: "large";
|
|
117
|
-
border: "Background";
|
|
118
|
-
borderRight: "ActiveBorder";
|
|
119
|
-
borderLeft: "ActiveBorder";
|
|
120
|
-
borderRadius: "initial";
|
|
121
|
-
borderBottomLeftRadius: "initial";
|
|
122
|
-
borderBottomRightRadius: "initial";
|
|
123
|
-
boxShadow: "none";
|
|
124
|
-
boxSizing: "inherit";
|
|
125
|
-
position: "relative";
|
|
126
|
-
right: "inherit";
|
|
127
|
-
display: "flex";
|
|
128
|
-
gap: "revert";
|
|
129
|
-
transform: "none";
|
|
130
|
-
outline: "none";
|
|
131
|
-
backgroundColor: "initial";
|
|
132
|
-
cursor: "pointer";
|
|
133
|
-
color: "red";
|
|
134
|
-
':focus-visible': {
|
|
135
|
-
margin: "0";
|
|
136
|
-
fontSize: "large";
|
|
137
|
-
border: "Background";
|
|
138
|
-
borderRight: "ActiveBorder";
|
|
139
|
-
borderLeft: "ActiveBorder";
|
|
140
|
-
borderRadius: "initial";
|
|
141
|
-
borderBottomLeftRadius: "initial";
|
|
142
|
-
borderBottomRightRadius: "initial";
|
|
143
|
-
boxShadow: "none";
|
|
144
|
-
boxSizing: "inherit";
|
|
145
|
-
position: "relative";
|
|
146
|
-
right: "inherit";
|
|
147
|
-
display: "flex";
|
|
148
|
-
gap: "revert";
|
|
149
|
-
transform: "none";
|
|
150
|
-
outline: "none";
|
|
151
|
-
backgroundColor: "initial";
|
|
152
|
-
cursor: "pointer";
|
|
153
|
-
color: "red";
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
}>;
|
|
158
|
-
export declare const clearAllFiltersButton: string;
|
|
159
|
-
export declare const theFont: string;
|
|
160
|
-
export declare const starter: string;
|
|
161
|
-
export declare const spinster: void;
|
|
@@ -1,551 +0,0 @@
|
|
|
1
|
-
import { fontFace, globalFontFace, globalKeyframes, globalStyle, keyframes, style, styleVariants, } from '@vanilla-extract/css';
|
|
2
|
-
import { recipe } from '@vanilla-extract/recipes';
|
|
3
|
-
globalStyle('*, ::before, ::after', {
|
|
4
|
-
// Comment to test that the linter doesn't remove it
|
|
5
|
-
margin: '0',
|
|
6
|
-
fontSize: 'large',
|
|
7
|
-
border: 'Background',
|
|
8
|
-
borderRight: 'ActiveBorder',
|
|
9
|
-
borderLeft: 'ActiveBorder',
|
|
10
|
-
borderRadius: 'initial',
|
|
11
|
-
borderBottomLeftRadius: 'initial',
|
|
12
|
-
borderBottomRightRadius: 'initial',
|
|
13
|
-
boxSizing: 'inherit',
|
|
14
|
-
position: 'relative',
|
|
15
|
-
right: 'inherit',
|
|
16
|
-
display: 'flex',
|
|
17
|
-
gap: 'revert',
|
|
18
|
-
transform: 'none',
|
|
19
|
-
outline: 'none',
|
|
20
|
-
backgroundColor: 'initial',
|
|
21
|
-
cursor: 'pointer',
|
|
22
|
-
color: 'red',
|
|
23
|
-
});
|
|
24
|
-
export const item = style({
|
|
25
|
-
margin: '0',
|
|
26
|
-
fontSize: 'large',
|
|
27
|
-
border: 'Background',
|
|
28
|
-
borderRight: 'ActiveBorder',
|
|
29
|
-
borderLeft: 'ActiveBorder',
|
|
30
|
-
borderRadius: 'initial',
|
|
31
|
-
borderBottomLeftRadius: 'initial',
|
|
32
|
-
borderBottomRightRadius: 'initial',
|
|
33
|
-
boxSizing: 'inherit',
|
|
34
|
-
position: 'relative',
|
|
35
|
-
right: 'inherit',
|
|
36
|
-
display: 'flex',
|
|
37
|
-
gap: 'revert',
|
|
38
|
-
transform: 'none',
|
|
39
|
-
outline: 'none',
|
|
40
|
-
backgroundColor: 'initial',
|
|
41
|
-
cursor: 'pointer',
|
|
42
|
-
color: 'red',
|
|
43
|
-
});
|
|
44
|
-
const triggerBase = style({
|
|
45
|
-
// Comment to test that the linter doesn't remove it
|
|
46
|
-
margin: '0',
|
|
47
|
-
fontSize: 'large',
|
|
48
|
-
border: 'Background',
|
|
49
|
-
borderRight: 'ActiveBorder',
|
|
50
|
-
borderLeft: 'ActiveBorder',
|
|
51
|
-
borderRadius: 'initial',
|
|
52
|
-
borderBottomLeftRadius: 'initial',
|
|
53
|
-
borderBottomRightRadius: 'initial',
|
|
54
|
-
boxSizing: 'inherit',
|
|
55
|
-
position: 'relative',
|
|
56
|
-
right: 'inherit',
|
|
57
|
-
display: 'flex',
|
|
58
|
-
gap: 'revert',
|
|
59
|
-
transform: 'none',
|
|
60
|
-
outline: 'none',
|
|
61
|
-
backgroundColor: 'initial',
|
|
62
|
-
cursor: 'pointer',
|
|
63
|
-
color: 'red',
|
|
64
|
-
// Comment to test that the linter doesn't remove it
|
|
65
|
-
':focus-visible': {
|
|
66
|
-
// Comment to test that the linter doesn't remove it
|
|
67
|
-
margin: '0',
|
|
68
|
-
fontSize: 'large',
|
|
69
|
-
border: 'Background',
|
|
70
|
-
borderRight: 'ActiveBorder',
|
|
71
|
-
borderLeft: 'ActiveBorder',
|
|
72
|
-
borderRadius: 'initial',
|
|
73
|
-
borderBottomLeftRadius: 'initial',
|
|
74
|
-
borderBottomRightRadius: 'initial',
|
|
75
|
-
boxShadow: 'none',
|
|
76
|
-
boxSizing: 'inherit',
|
|
77
|
-
position: 'relative',
|
|
78
|
-
right: 'inherit',
|
|
79
|
-
display: 'flex',
|
|
80
|
-
gap: 'revert',
|
|
81
|
-
transform: 'none',
|
|
82
|
-
outline: 'none',
|
|
83
|
-
backgroundColor: 'initial',
|
|
84
|
-
cursor: 'pointer',
|
|
85
|
-
color: 'red',
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
export const selectButtonVariants = styleVariants({
|
|
89
|
-
// Comment to test that the linter doesn't remove it
|
|
90
|
-
bordered: {
|
|
91
|
-
// Comment to test that the linter doesn't remove it
|
|
92
|
-
margin: '0',
|
|
93
|
-
fontSize: 'large',
|
|
94
|
-
border: 'Background',
|
|
95
|
-
borderRight: 'ActiveBorder',
|
|
96
|
-
borderLeft: 'ActiveBorder',
|
|
97
|
-
borderRadius: 'initial',
|
|
98
|
-
borderBottomLeftRadius: 'initial',
|
|
99
|
-
borderBottomRightRadius: 'initial',
|
|
100
|
-
boxSizing: 'inherit',
|
|
101
|
-
position: 'relative',
|
|
102
|
-
right: 'inherit',
|
|
103
|
-
display: 'flex',
|
|
104
|
-
gap: 'revert',
|
|
105
|
-
transform: 'none',
|
|
106
|
-
outline: 'none',
|
|
107
|
-
backgroundColor: 'initial',
|
|
108
|
-
cursor: 'pointer',
|
|
109
|
-
color: 'red',
|
|
110
|
-
},
|
|
111
|
-
borderless: {
|
|
112
|
-
margin: '0',
|
|
113
|
-
fontSize: 'large',
|
|
114
|
-
border: 'Background',
|
|
115
|
-
borderRight: 'ActiveBorder',
|
|
116
|
-
borderLeft: 'ActiveBorder',
|
|
117
|
-
borderRadius: 'initial',
|
|
118
|
-
borderBottomLeftRadius: 'initial',
|
|
119
|
-
borderBottomRightRadius: 'initial',
|
|
120
|
-
boxShadow: 'none',
|
|
121
|
-
boxSizing: 'inherit',
|
|
122
|
-
position: 'relative',
|
|
123
|
-
right: 'inherit',
|
|
124
|
-
display: 'flex',
|
|
125
|
-
gap: 'revert',
|
|
126
|
-
transform: 'none',
|
|
127
|
-
outline: 'none',
|
|
128
|
-
backgroundColor: 'initial',
|
|
129
|
-
cursor: 'pointer',
|
|
130
|
-
color: 'red',
|
|
131
|
-
},
|
|
132
|
-
});
|
|
133
|
-
export const trigger = recipe({
|
|
134
|
-
// Comment to test that the linter doesn't remove it
|
|
135
|
-
base: triggerBase,
|
|
136
|
-
// Comment to test that the linter doesn't remove it
|
|
137
|
-
variants: {
|
|
138
|
-
// Comment to test that the linter doesn't remove it
|
|
139
|
-
isOpen: {
|
|
140
|
-
false: {
|
|
141
|
-
margin: '0',
|
|
142
|
-
fontSize: 'large',
|
|
143
|
-
border: 'Background',
|
|
144
|
-
borderRight: 'ActiveBorder',
|
|
145
|
-
borderLeft: 'ActiveBorder',
|
|
146
|
-
borderRadius: 'initial',
|
|
147
|
-
borderBottomLeftRadius: 'initial',
|
|
148
|
-
borderBottomRightRadius: 'initial',
|
|
149
|
-
boxShadow: 'none',
|
|
150
|
-
boxSizing: 'inherit',
|
|
151
|
-
position: 'relative',
|
|
152
|
-
right: 'inherit',
|
|
153
|
-
display: 'flex',
|
|
154
|
-
gap: 'revert',
|
|
155
|
-
transform: 'none',
|
|
156
|
-
outline: 'none',
|
|
157
|
-
backgroundColor: 'initial',
|
|
158
|
-
cursor: 'pointer',
|
|
159
|
-
color: 'red',
|
|
160
|
-
// Comment to test that the linter doesn't remove it
|
|
161
|
-
':hover': {
|
|
162
|
-
margin: '0',
|
|
163
|
-
fontSize: 'large',
|
|
164
|
-
border: 'Background',
|
|
165
|
-
borderRight: 'ActiveBorder',
|
|
166
|
-
borderLeft: 'ActiveBorder',
|
|
167
|
-
borderRadius: 'initial',
|
|
168
|
-
borderBottomLeftRadius: 'initial',
|
|
169
|
-
borderBottomRightRadius: 'initial',
|
|
170
|
-
boxShadow: 'none',
|
|
171
|
-
boxSizing: 'inherit',
|
|
172
|
-
position: 'relative',
|
|
173
|
-
right: 'inherit',
|
|
174
|
-
display: 'flex',
|
|
175
|
-
gap: 'revert',
|
|
176
|
-
transform: 'none',
|
|
177
|
-
outline: 'none',
|
|
178
|
-
backgroundColor: 'initial',
|
|
179
|
-
cursor: 'pointer',
|
|
180
|
-
color: 'red',
|
|
181
|
-
},
|
|
182
|
-
},
|
|
183
|
-
// Comment to test that the linter doesn't remove it
|
|
184
|
-
true: {
|
|
185
|
-
// Comment to test that the linter doesn't remove it
|
|
186
|
-
margin: '0',
|
|
187
|
-
fontSize: 'large',
|
|
188
|
-
border: 'Background',
|
|
189
|
-
borderRight: 'ActiveBorder',
|
|
190
|
-
borderLeft: 'ActiveBorder',
|
|
191
|
-
borderRadius: 'initial',
|
|
192
|
-
borderBottomLeftRadius: 'initial',
|
|
193
|
-
borderBottomRightRadius: 'initial',
|
|
194
|
-
boxShadow: 'none',
|
|
195
|
-
boxSizing: 'inherit',
|
|
196
|
-
position: 'relative',
|
|
197
|
-
right: 'inherit',
|
|
198
|
-
display: 'flex',
|
|
199
|
-
gap: 'revert',
|
|
200
|
-
transform: 'none',
|
|
201
|
-
outline: 'none',
|
|
202
|
-
backgroundColor: 'initial',
|
|
203
|
-
cursor: 'pointer',
|
|
204
|
-
color: 'red',
|
|
205
|
-
// Comment to test that the linter doesn't remove it
|
|
206
|
-
':hover': {
|
|
207
|
-
// Comment to test that the linter doesn't remove it
|
|
208
|
-
margin: '0',
|
|
209
|
-
fontSize: 'large',
|
|
210
|
-
border: 'Background',
|
|
211
|
-
borderRight: 'ActiveBorder',
|
|
212
|
-
borderLeft: 'ActiveBorder',
|
|
213
|
-
borderRadius: 'initial',
|
|
214
|
-
borderBottomLeftRadius: 'initial',
|
|
215
|
-
borderBottomRightRadius: 'initial',
|
|
216
|
-
boxShadow: 'none',
|
|
217
|
-
boxSizing: 'inherit',
|
|
218
|
-
position: 'relative',
|
|
219
|
-
right: 'inherit',
|
|
220
|
-
display: 'flex',
|
|
221
|
-
gap: 'revert',
|
|
222
|
-
transform: 'none',
|
|
223
|
-
outline: 'none',
|
|
224
|
-
backgroundColor: 'initial',
|
|
225
|
-
cursor: 'pointer',
|
|
226
|
-
color: 'red',
|
|
227
|
-
},
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
});
|
|
232
|
-
const accordionContentBase = style([
|
|
233
|
-
// Comment to test that the linter doesn't remove it
|
|
234
|
-
{
|
|
235
|
-
// Comment to test that the linter doesn't remove it
|
|
236
|
-
margin: '0',
|
|
237
|
-
fontSize: 'large',
|
|
238
|
-
border: 'Background',
|
|
239
|
-
borderRight: 'ActiveBorder',
|
|
240
|
-
borderLeft: 'ActiveBorder',
|
|
241
|
-
borderRadius: 'initial',
|
|
242
|
-
borderBottomLeftRadius: 'initial',
|
|
243
|
-
borderBottomRightRadius: 'initial',
|
|
244
|
-
boxShadow: 'none',
|
|
245
|
-
boxSizing: 'inherit',
|
|
246
|
-
position: 'relative',
|
|
247
|
-
right: 'inherit',
|
|
248
|
-
display: 'flex',
|
|
249
|
-
gap: 'revert',
|
|
250
|
-
transform: 'none',
|
|
251
|
-
outline: 'none',
|
|
252
|
-
backgroundColor: 'initial',
|
|
253
|
-
cursor: 'pointer',
|
|
254
|
-
color: 'red',
|
|
255
|
-
// Comment to test that the linter doesn't remove it
|
|
256
|
-
'@supports': {
|
|
257
|
-
'(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none)': {
|
|
258
|
-
// Comment to test that the linter doesn't remove it
|
|
259
|
-
margin: '0',
|
|
260
|
-
fontSize: 'large',
|
|
261
|
-
border: 'Background',
|
|
262
|
-
borderRight: 'ActiveBorder',
|
|
263
|
-
borderLeft: 'ActiveBorder',
|
|
264
|
-
borderRadius: 'initial',
|
|
265
|
-
borderBottomLeftRadius: 'initial',
|
|
266
|
-
borderBottomRightRadius: 'initial',
|
|
267
|
-
boxShadow: 'none',
|
|
268
|
-
boxSizing: 'inherit',
|
|
269
|
-
position: 'relative',
|
|
270
|
-
right: 'inherit',
|
|
271
|
-
display: 'flex',
|
|
272
|
-
gap: 'revert',
|
|
273
|
-
transform: 'none',
|
|
274
|
-
outline: 'none',
|
|
275
|
-
backgroundColor: 'initial',
|
|
276
|
-
cursor: 'pointer',
|
|
277
|
-
color: 'red',
|
|
278
|
-
},
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
]);
|
|
282
|
-
export const accordionContent = recipe({
|
|
283
|
-
// Comment to test that the linter doesn't remove it
|
|
284
|
-
base: accordionContentBase,
|
|
285
|
-
// Comment to test that the linter doesn't remove it
|
|
286
|
-
variants: {
|
|
287
|
-
// Comment to test that the linter doesn't remove it
|
|
288
|
-
isOpen: {
|
|
289
|
-
// Comment to test that the linter doesn't remove it
|
|
290
|
-
false: {
|
|
291
|
-
// Comment to test that the linter doesn't remove it
|
|
292
|
-
margin: '0',
|
|
293
|
-
fontSize: 'large',
|
|
294
|
-
border: 'Background',
|
|
295
|
-
borderRight: 'ActiveBorder',
|
|
296
|
-
borderLeft: 'ActiveBorder',
|
|
297
|
-
borderRadius: 'initial',
|
|
298
|
-
borderBottomLeftRadius: 'initial',
|
|
299
|
-
borderBottomRightRadius: 'initial',
|
|
300
|
-
boxShadow: 'none',
|
|
301
|
-
boxSizing: 'inherit',
|
|
302
|
-
position: 'relative',
|
|
303
|
-
right: 'inherit',
|
|
304
|
-
display: 'flex',
|
|
305
|
-
gap: 'revert',
|
|
306
|
-
transform: 'none',
|
|
307
|
-
outline: 'none',
|
|
308
|
-
backgroundColor: 'initial',
|
|
309
|
-
cursor: 'pointer',
|
|
310
|
-
color: 'red',
|
|
311
|
-
},
|
|
312
|
-
true: {
|
|
313
|
-
margin: '0',
|
|
314
|
-
fontSize: 'large',
|
|
315
|
-
border: 'Background',
|
|
316
|
-
borderRight: 'ActiveBorder',
|
|
317
|
-
borderLeft: 'ActiveBorder',
|
|
318
|
-
borderRadius: 'initial',
|
|
319
|
-
borderBottomLeftRadius: 'initial',
|
|
320
|
-
borderBottomRightRadius: 'initial',
|
|
321
|
-
boxShadow: 'none',
|
|
322
|
-
boxSizing: 'inherit',
|
|
323
|
-
position: 'relative',
|
|
324
|
-
right: 'inherit',
|
|
325
|
-
display: 'flex',
|
|
326
|
-
gap: 'revert',
|
|
327
|
-
transform: 'none',
|
|
328
|
-
outline: 'none',
|
|
329
|
-
backgroundColor: 'initial',
|
|
330
|
-
cursor: 'pointer',
|
|
331
|
-
color: 'red',
|
|
332
|
-
// Comment to test that the linter doesn't remove it
|
|
333
|
-
':focus-visible': {
|
|
334
|
-
// Comment to test that the linter doesn't remove it
|
|
335
|
-
margin: '0',
|
|
336
|
-
fontSize: 'large',
|
|
337
|
-
border: 'Background',
|
|
338
|
-
borderRight: 'ActiveBorder',
|
|
339
|
-
borderLeft: 'ActiveBorder',
|
|
340
|
-
borderRadius: 'initial',
|
|
341
|
-
borderBottomLeftRadius: 'initial',
|
|
342
|
-
borderBottomRightRadius: 'initial',
|
|
343
|
-
boxShadow: 'none',
|
|
344
|
-
boxSizing: 'inherit',
|
|
345
|
-
position: 'relative',
|
|
346
|
-
right: 'inherit',
|
|
347
|
-
display: 'flex',
|
|
348
|
-
gap: 'revert',
|
|
349
|
-
transform: 'none',
|
|
350
|
-
outline: 'none',
|
|
351
|
-
backgroundColor: 'initial',
|
|
352
|
-
cursor: 'pointer',
|
|
353
|
-
color: 'red',
|
|
354
|
-
},
|
|
355
|
-
},
|
|
356
|
-
},
|
|
357
|
-
},
|
|
358
|
-
});
|
|
359
|
-
export const clearAllFiltersButton = style({
|
|
360
|
-
margin: '0',
|
|
361
|
-
fontSize: 'large',
|
|
362
|
-
border: 'Background',
|
|
363
|
-
borderRight: 'ActiveBorder',
|
|
364
|
-
borderLeft: 'ActiveBorder',
|
|
365
|
-
borderRadius: 'initial',
|
|
366
|
-
borderBottomLeftRadius: 'initial',
|
|
367
|
-
borderBottomRightRadius: 'initial',
|
|
368
|
-
boxShadow: 'none',
|
|
369
|
-
boxSizing: 'inherit',
|
|
370
|
-
position: 'relative',
|
|
371
|
-
right: 'inherit',
|
|
372
|
-
display: 'flex',
|
|
373
|
-
gap: 'revert',
|
|
374
|
-
transform: 'none',
|
|
375
|
-
outline: 'none',
|
|
376
|
-
backgroundColor: 'initial',
|
|
377
|
-
cursor: 'pointer',
|
|
378
|
-
color: 'red',
|
|
379
|
-
':hover': {
|
|
380
|
-
margin: '0',
|
|
381
|
-
fontSize: 'large',
|
|
382
|
-
border: 'Background',
|
|
383
|
-
borderRight: 'ActiveBorder',
|
|
384
|
-
borderLeft: 'ActiveBorder',
|
|
385
|
-
borderRadius: 'initial',
|
|
386
|
-
borderBottomLeftRadius: 'initial',
|
|
387
|
-
borderBottomRightRadius: 'initial',
|
|
388
|
-
boxShadow: 'none',
|
|
389
|
-
boxSizing: 'inherit',
|
|
390
|
-
position: 'relative',
|
|
391
|
-
right: 'inherit',
|
|
392
|
-
display: 'flex',
|
|
393
|
-
gap: 'revert',
|
|
394
|
-
transform: 'none',
|
|
395
|
-
outline: 'none',
|
|
396
|
-
backgroundColor: 'initial',
|
|
397
|
-
cursor: 'pointer',
|
|
398
|
-
color: 'red',
|
|
399
|
-
},
|
|
400
|
-
selectors: {
|
|
401
|
-
// Comment to test that the linter doesn't remove it
|
|
402
|
-
'&[data-pressed]': {
|
|
403
|
-
// Comment to test that the linter doesn't remove it
|
|
404
|
-
margin: '0',
|
|
405
|
-
fontSize: 'large',
|
|
406
|
-
border: 'Background',
|
|
407
|
-
borderRight: 'ActiveBorder',
|
|
408
|
-
borderLeft: 'ActiveBorder',
|
|
409
|
-
borderRadius: 'initial',
|
|
410
|
-
borderBottomLeftRadius: 'initial',
|
|
411
|
-
borderBottomRightRadius: 'initial',
|
|
412
|
-
boxShadow: 'none',
|
|
413
|
-
boxSizing: 'inherit',
|
|
414
|
-
position: 'relative',
|
|
415
|
-
right: 'inherit',
|
|
416
|
-
display: 'flex',
|
|
417
|
-
gap: 'revert',
|
|
418
|
-
transform: 'none',
|
|
419
|
-
outline: 'none',
|
|
420
|
-
backgroundColor: 'initial',
|
|
421
|
-
cursor: 'pointer',
|
|
422
|
-
color: 'red',
|
|
423
|
-
},
|
|
424
|
-
},
|
|
425
|
-
});
|
|
426
|
-
export const theFont = fontFace({
|
|
427
|
-
// Comment to test that the linter doesn't remove it
|
|
428
|
-
src: ['url("/fonts/MyFont.woff2") format("woff2")', 'url("/fonts/MyFont.woff") format("woff")'],
|
|
429
|
-
fontWeight: '400 700',
|
|
430
|
-
fontStyle: 'normal',
|
|
431
|
-
fontStretch: 'normal',
|
|
432
|
-
fontDisplay: 'swap',
|
|
433
|
-
unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD',
|
|
434
|
-
ascentOverride: '90%',
|
|
435
|
-
descentOverride: '10%',
|
|
436
|
-
lineGapOverride: '10%',
|
|
437
|
-
sizeAdjust: '90%',
|
|
438
|
-
fontVariant: 'normal',
|
|
439
|
-
fontFeatureSettings: '"liga" 1',
|
|
440
|
-
fontVariationSettings: '"wght" 400',
|
|
441
|
-
});
|
|
442
|
-
globalFontFace('GlobalFont', {
|
|
443
|
-
// Comment to test that the linter doesn't remove it
|
|
444
|
-
src: ['url("/fonts/MyFont.woff2") format("woff2")', 'url("/fonts/MyFont.woff") format("woff")'],
|
|
445
|
-
fontWeight: '400 700',
|
|
446
|
-
fontStyle: 'normal',
|
|
447
|
-
fontStretch: 'normal',
|
|
448
|
-
fontDisplay: 'swap',
|
|
449
|
-
unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD',
|
|
450
|
-
ascentOverride: '90%',
|
|
451
|
-
descentOverride: '10%',
|
|
452
|
-
lineGapOverride: '10%',
|
|
453
|
-
sizeAdjust: '90%',
|
|
454
|
-
fontVariant: 'normal',
|
|
455
|
-
fontFeatureSettings: '"liga" 1',
|
|
456
|
-
fontVariationSettings: '"wght" 400',
|
|
457
|
-
});
|
|
458
|
-
export const starter = keyframes({
|
|
459
|
-
// Comment to test that the linter doesn't remove it
|
|
460
|
-
'0%': {
|
|
461
|
-
backgroundColor: 'initial',
|
|
462
|
-
border: 'Background',
|
|
463
|
-
borderBottomLeftRadius: 'initial',
|
|
464
|
-
borderBottomRightRadius: 'initial',
|
|
465
|
-
borderLeft: 'ActiveBorder',
|
|
466
|
-
borderRadius: 'initial',
|
|
467
|
-
borderRight: 'ActiveBorder',
|
|
468
|
-
boxShadow: 'none',
|
|
469
|
-
boxSizing: 'inherit',
|
|
470
|
-
color: 'red',
|
|
471
|
-
cursor: 'pointer',
|
|
472
|
-
display: 'flex',
|
|
473
|
-
fontSize: 'large',
|
|
474
|
-
gap: 'revert',
|
|
475
|
-
margin: '0',
|
|
476
|
-
outline: 'none',
|
|
477
|
-
position: 'relative',
|
|
478
|
-
right: 'inherit',
|
|
479
|
-
transform: 'none',
|
|
480
|
-
},
|
|
481
|
-
// Comment to test that the linter doesn't remove it
|
|
482
|
-
'100%': {
|
|
483
|
-
// Comment to test that the linter doesn't remove it
|
|
484
|
-
backgroundColor: 'initial',
|
|
485
|
-
border: 'Background',
|
|
486
|
-
borderBottomLeftRadius: 'initial',
|
|
487
|
-
borderBottomRightRadius: 'initial',
|
|
488
|
-
borderLeft: 'ActiveBorder',
|
|
489
|
-
borderRadius: 'initial',
|
|
490
|
-
borderRight: 'ActiveBorder',
|
|
491
|
-
boxShadow: 'none',
|
|
492
|
-
boxSizing: 'inherit',
|
|
493
|
-
color: 'red',
|
|
494
|
-
cursor: 'pointer',
|
|
495
|
-
display: 'flex',
|
|
496
|
-
fontSize: 'large',
|
|
497
|
-
gap: 'revert',
|
|
498
|
-
margin: '0',
|
|
499
|
-
outline: 'none',
|
|
500
|
-
position: 'relative',
|
|
501
|
-
right: 'inherit',
|
|
502
|
-
transform: 'none',
|
|
503
|
-
},
|
|
504
|
-
});
|
|
505
|
-
export const spinster = globalKeyframes('spin', {
|
|
506
|
-
// Comment to test that the linter doesn't remove it
|
|
507
|
-
from: {
|
|
508
|
-
backgroundColor: 'initial',
|
|
509
|
-
border: 'Background',
|
|
510
|
-
borderBottomLeftRadius: 'initial',
|
|
511
|
-
borderBottomRightRadius: 'initial',
|
|
512
|
-
borderLeft: 'ActiveBorder',
|
|
513
|
-
borderRadius: 'initial',
|
|
514
|
-
borderRight: 'ActiveBorder',
|
|
515
|
-
boxShadow: 'none',
|
|
516
|
-
boxSizing: 'inherit',
|
|
517
|
-
color: 'red',
|
|
518
|
-
cursor: 'pointer',
|
|
519
|
-
display: 'flex',
|
|
520
|
-
fontSize: 'large',
|
|
521
|
-
gap: 'revert',
|
|
522
|
-
margin: '0',
|
|
523
|
-
outline: 'none',
|
|
524
|
-
position: 'relative',
|
|
525
|
-
right: 'inherit',
|
|
526
|
-
transform: 'none',
|
|
527
|
-
},
|
|
528
|
-
// Comment to test that the linter doesn't remove it
|
|
529
|
-
to: {
|
|
530
|
-
// Comment to test that the linter doesn't remove it
|
|
531
|
-
backgroundColor: 'initial',
|
|
532
|
-
border: 'Background',
|
|
533
|
-
borderBottomLeftRadius: 'initial',
|
|
534
|
-
borderBottomRightRadius: 'initial',
|
|
535
|
-
borderLeft: 'ActiveBorder',
|
|
536
|
-
borderRadius: 'initial',
|
|
537
|
-
borderRight: 'ActiveBorder',
|
|
538
|
-
boxShadow: 'none',
|
|
539
|
-
boxSizing: 'inherit',
|
|
540
|
-
color: 'red',
|
|
541
|
-
cursor: 'pointer',
|
|
542
|
-
display: 'flex',
|
|
543
|
-
fontSize: 'large',
|
|
544
|
-
gap: 'revert',
|
|
545
|
-
margin: '0',
|
|
546
|
-
outline: 'none',
|
|
547
|
-
position: 'relative',
|
|
548
|
-
right: 'inherit',
|
|
549
|
-
transform: 'none',
|
|
550
|
-
},
|
|
551
|
-
});
|