@antebudimir/eslint-plugin-vanilla-extract 1.0.2 → 1.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.
- package/README.md +0 -1
- package/dist/cjs/css-rules/alphabetical-order/index.d.ts +2 -0
- package/dist/cjs/css-rules/alphabetical-order/index.js +7 -0
- package/dist/cjs/css-rules/alphabetical-order/property-order-enforcer.d.ts +14 -0
- package/dist/cjs/css-rules/alphabetical-order/property-order-enforcer.js +60 -0
- package/dist/cjs/css-rules/alphabetical-order/recipe-order-enforcer.d.ts +14 -0
- package/dist/cjs/css-rules/alphabetical-order/recipe-order-enforcer.js +25 -0
- package/dist/cjs/css-rules/alphabetical-order/rule-definition.d.ts +3 -0
- package/dist/cjs/css-rules/alphabetical-order/rule-definition.js +22 -0
- package/dist/cjs/css-rules/alphabetical-order/style-object-processor.d.ts +15 -0
- package/dist/cjs/css-rules/alphabetical-order/style-object-processor.js +32 -0
- package/dist/cjs/css-rules/concentric-order/concentric-groups.d.ts +7 -0
- package/dist/cjs/css-rules/concentric-order/concentric-groups.js +310 -0
- package/dist/cjs/css-rules/concentric-order/index.d.ts +2 -0
- package/dist/cjs/css-rules/concentric-order/index.js +7 -0
- package/dist/cjs/css-rules/concentric-order/property-order-enforcer.d.ts +16 -0
- package/dist/cjs/css-rules/concentric-order/property-order-enforcer.js +64 -0
- package/dist/cjs/css-rules/concentric-order/recipe-order-enforcer.d.ts +14 -0
- package/dist/cjs/css-rules/concentric-order/recipe-order-enforcer.js +25 -0
- package/dist/cjs/css-rules/concentric-order/rule-definition.d.ts +3 -0
- package/dist/cjs/css-rules/concentric-order/rule-definition.js +22 -0
- package/dist/cjs/css-rules/concentric-order/style-object-processor.d.ts +21 -0
- package/dist/cjs/css-rules/concentric-order/style-object-processor.js +63 -0
- package/dist/cjs/css-rules/concentric-order/types.d.ts +8 -0
- package/dist/cjs/css-rules/concentric-order/types.js +2 -0
- package/dist/cjs/css-rules/custom-order/property-order-enforcer.d.ts +17 -0
- package/dist/cjs/css-rules/custom-order/property-order-enforcer.js +71 -0
- package/dist/cjs/css-rules/custom-order/recipe-order-enforcer.d.ts +16 -0
- package/dist/cjs/css-rules/custom-order/recipe-order-enforcer.js +27 -0
- package/dist/cjs/css-rules/custom-order/rule-definition.d.ts +3 -0
- package/dist/cjs/css-rules/custom-order/rule-definition.js +42 -0
- package/dist/cjs/css-rules/custom-order/style-object-processor.d.ts +19 -0
- package/dist/cjs/css-rules/custom-order/style-object-processor.js +56 -0
- package/dist/cjs/css-rules/shared-utils/css-order-fixer.d.ts +17 -0
- package/dist/cjs/css-rules/shared-utils/css-order-fixer.js +43 -0
- package/dist/cjs/css-rules/shared-utils/css-property-priority-map.d.ts +25 -0
- package/dist/cjs/css-rules/shared-utils/css-property-priority-map.js +52 -0
- package/dist/cjs/css-rules/shared-utils/nested-selectors-processor.d.ts +25 -0
- package/dist/cjs/css-rules/shared-utils/nested-selectors-processor.js +40 -0
- package/dist/cjs/css-rules/shared-utils/order-strategy-visitor-creator.d.ts +17 -0
- package/dist/cjs/css-rules/shared-utils/order-strategy-visitor-creator.js +79 -0
- package/dist/cjs/css-rules/shared-utils/property-separator.d.ts +28 -0
- package/dist/cjs/css-rules/shared-utils/property-separator.js +53 -0
- package/dist/cjs/css-rules/shared-utils/recipe-property-processor.d.ts +16 -0
- package/dist/cjs/css-rules/shared-utils/recipe-property-processor.js +40 -0
- package/dist/cjs/css-rules/shared-utils/style-node-processor.d.ts +9 -0
- package/dist/cjs/css-rules/shared-utils/style-node-processor.js +25 -0
- package/dist/cjs/css-sample/sample.css.d.ts +161 -0
- package/dist/cjs/css-sample/sample.css.js +554 -0
- package/dist/cjs/index.d.ts +38 -0
- package/dist/cjs/index.js +43 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Rule } from 'eslint';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an ESLint rule listener with visitors for style-related function calls.
|
|
4
|
+
* @param ruleContext The ESLint rule context.
|
|
5
|
+
* @param orderingStrategy The strategy to use for ordering CSS properties ('alphabetical', 'concentric', or 'userDefinedGroupOrder').
|
|
6
|
+
* @param userDefinedGroupOrder An optional array of property groups for the 'userDefinedGroupOrder' strategy.
|
|
7
|
+
* @param sortRemainingProperties An optional strategy for sorting properties not in user-defined groups.
|
|
8
|
+
* @returns An object with visitor functions for the ESLint rule.
|
|
9
|
+
*
|
|
10
|
+
* This function sets up visitors for the following cases:
|
|
11
|
+
* 1. Style-related functions: 'style', 'styleVariants', 'createVar', 'createTheme', 'createThemeContract'
|
|
12
|
+
* 2. The 'globalStyle' function
|
|
13
|
+
* 3. The 'recipe' function
|
|
14
|
+
*
|
|
15
|
+
* Each visitor applies the appropriate ordering strategy to the style objects in these function calls.
|
|
16
|
+
*/
|
|
17
|
+
export declare const createNodeVisitors: (ruleContext: Rule.RuleContext, orderingStrategy: "alphabetical" | "concentric" | "userDefinedGroupOrder", userDefinedGroupOrder?: string[], sortRemainingProperties?: "alphabetical" | "concentric") => Rule.RuleListener;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createNodeVisitors = void 0;
|
|
4
|
+
const recipe_order_enforcer_js_1 = require("../alphabetical-order/recipe-order-enforcer.js");
|
|
5
|
+
const style_object_processor_js_1 = require("../alphabetical-order/style-object-processor.js");
|
|
6
|
+
const recipe_order_enforcer_js_2 = require("../concentric-order/recipe-order-enforcer.js");
|
|
7
|
+
const style_object_processor_js_2 = require("../concentric-order/style-object-processor.js");
|
|
8
|
+
const recipe_order_enforcer_js_3 = require("../custom-order/recipe-order-enforcer.js");
|
|
9
|
+
const style_object_processor_js_3 = require("../custom-order/style-object-processor.js");
|
|
10
|
+
const style_node_processor_js_1 = require("./style-node-processor.js");
|
|
11
|
+
/**
|
|
12
|
+
* Creates an ESLint rule listener with visitors for style-related function calls.
|
|
13
|
+
* @param ruleContext The ESLint rule context.
|
|
14
|
+
* @param orderingStrategy The strategy to use for ordering CSS properties ('alphabetical', 'concentric', or 'userDefinedGroupOrder').
|
|
15
|
+
* @param userDefinedGroupOrder An optional array of property groups for the 'userDefinedGroupOrder' strategy.
|
|
16
|
+
* @param sortRemainingProperties An optional strategy for sorting properties not in user-defined groups.
|
|
17
|
+
* @returns An object with visitor functions for the ESLint rule.
|
|
18
|
+
*
|
|
19
|
+
* This function sets up visitors for the following cases:
|
|
20
|
+
* 1. Style-related functions: 'style', 'styleVariants', 'createVar', 'createTheme', 'createThemeContract'
|
|
21
|
+
* 2. The 'globalStyle' function
|
|
22
|
+
* 3. The 'recipe' function
|
|
23
|
+
*
|
|
24
|
+
* Each visitor applies the appropriate ordering strategy to the style objects in these function calls.
|
|
25
|
+
*/
|
|
26
|
+
const createNodeVisitors = (ruleContext, orderingStrategy, userDefinedGroupOrder, sortRemainingProperties) => {
|
|
27
|
+
// Select the appropriate property processing function based on the ordering strategy
|
|
28
|
+
const processProperty = (() => {
|
|
29
|
+
switch (orderingStrategy) {
|
|
30
|
+
case 'alphabetical':
|
|
31
|
+
return style_object_processor_js_1.enforceAlphabeticalCSSOrderInStyleObject;
|
|
32
|
+
case 'concentric':
|
|
33
|
+
return style_object_processor_js_2.enforceConcentricCSSOrderInStyleObject;
|
|
34
|
+
case 'userDefinedGroupOrder':
|
|
35
|
+
if (!userDefinedGroupOrder || userDefinedGroupOrder.length === 0) {
|
|
36
|
+
throw new Error('💥 👿 User-defined group order must be provided for userDefinedGroupOrder strategy');
|
|
37
|
+
}
|
|
38
|
+
return (ruleContext, node) => (0, style_object_processor_js_3.enforceUserDefinedGroupOrderInStyleObject)(ruleContext, node, userDefinedGroupOrder, sortRemainingProperties);
|
|
39
|
+
default:
|
|
40
|
+
return style_object_processor_js_1.enforceAlphabeticalCSSOrderInStyleObject;
|
|
41
|
+
}
|
|
42
|
+
})();
|
|
43
|
+
return {
|
|
44
|
+
CallExpression(node) {
|
|
45
|
+
if (node.callee.type !== 'Identifier') {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
// Handle style-related functions
|
|
49
|
+
if (['style', 'styleVariants', 'createVar', 'createTheme', 'createThemeContract'].includes(node.callee.name)) {
|
|
50
|
+
if (node.arguments.length > 0) {
|
|
51
|
+
const styleArg = node.arguments[0];
|
|
52
|
+
(0, style_node_processor_js_1.processStyleNode)(ruleContext, styleArg, processProperty);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
// Handle globalStyle function
|
|
56
|
+
if (node.callee.name === 'globalStyle' && node.arguments.length >= 2) {
|
|
57
|
+
const styleArg = node.arguments[1];
|
|
58
|
+
(0, style_node_processor_js_1.processStyleNode)(ruleContext, styleArg, processProperty);
|
|
59
|
+
}
|
|
60
|
+
// Handle recipe function
|
|
61
|
+
if (node.callee.name === 'recipe') {
|
|
62
|
+
switch (orderingStrategy) {
|
|
63
|
+
case 'alphabetical':
|
|
64
|
+
(0, recipe_order_enforcer_js_1.enforceAlphabeticalCSSOrderInRecipe)(node, ruleContext);
|
|
65
|
+
break;
|
|
66
|
+
case 'concentric':
|
|
67
|
+
(0, recipe_order_enforcer_js_2.enforceConcentricCSSOrderInRecipe)(ruleContext, node);
|
|
68
|
+
break;
|
|
69
|
+
case 'userDefinedGroupOrder':
|
|
70
|
+
if (userDefinedGroupOrder) {
|
|
71
|
+
(0, recipe_order_enforcer_js_3.enforceUserDefinedGroupOrderInRecipe)(ruleContext, node, userDefinedGroupOrder, sortRemainingProperties);
|
|
72
|
+
}
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
exports.createNodeVisitors = createNodeVisitors;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TSESTree } from '@typescript-eslint/utils';
|
|
2
|
+
/**
|
|
3
|
+
* Extracts the name of a property from a TSESTree.Property node.
|
|
4
|
+
* @param property The property node to extract the name from.
|
|
5
|
+
* @returns The name of the property as a string, or an empty string if the name cannot be determined.
|
|
6
|
+
*
|
|
7
|
+
* This function handles two types of property keys:
|
|
8
|
+
* - Identifier: Returns the name directly.
|
|
9
|
+
* - Literal (string): Returns the string value.
|
|
10
|
+
* For any other type of key, it returns an empty string.
|
|
11
|
+
*/
|
|
12
|
+
export declare const getPropertyName: (property: TSESTree.Property) => string;
|
|
13
|
+
/**
|
|
14
|
+
* Separates object properties into regular and special categories.
|
|
15
|
+
* @param properties An array of object literal elements to be categorized.
|
|
16
|
+
* @returns An object containing two arrays: regularProperties and specialProperties.
|
|
17
|
+
*
|
|
18
|
+
* This function categorizes properties as follows:
|
|
19
|
+
* - Regular properties: Standard CSS properties.
|
|
20
|
+
* - Special properties: Properties that start with ':' (pseudo-selectors),
|
|
21
|
+
* '@' (at-rules), or are named 'selectors'.
|
|
22
|
+
*
|
|
23
|
+
* Non-Property type elements in the input array are ignored.
|
|
24
|
+
*/
|
|
25
|
+
export declare const separateProperties: (properties: TSESTree.ObjectLiteralElement[]) => {
|
|
26
|
+
regularProperties: TSESTree.Property[];
|
|
27
|
+
specialProperties: TSESTree.Property[];
|
|
28
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.separateProperties = exports.getPropertyName = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Extracts the name of a property from a TSESTree.Property node.
|
|
6
|
+
* @param property The property node to extract the name from.
|
|
7
|
+
* @returns The name of the property as a string, or an empty string if the name cannot be determined.
|
|
8
|
+
*
|
|
9
|
+
* This function handles two types of property keys:
|
|
10
|
+
* - Identifier: Returns the name directly.
|
|
11
|
+
* - Literal (string): Returns the string value.
|
|
12
|
+
* For any other type of key, it returns an empty string.
|
|
13
|
+
*/
|
|
14
|
+
const getPropertyName = (property) => {
|
|
15
|
+
if (property.key.type === 'Identifier') {
|
|
16
|
+
return property.key.name;
|
|
17
|
+
}
|
|
18
|
+
else if (property.key.type === 'Literal' && typeof property.key.value === 'string') {
|
|
19
|
+
return property.key.value;
|
|
20
|
+
}
|
|
21
|
+
return '';
|
|
22
|
+
};
|
|
23
|
+
exports.getPropertyName = getPropertyName;
|
|
24
|
+
/**
|
|
25
|
+
* Separates object properties into regular and special categories.
|
|
26
|
+
* @param properties An array of object literal elements to be categorized.
|
|
27
|
+
* @returns An object containing two arrays: regularProperties and specialProperties.
|
|
28
|
+
*
|
|
29
|
+
* This function categorizes properties as follows:
|
|
30
|
+
* - Regular properties: Standard CSS properties.
|
|
31
|
+
* - Special properties: Properties that start with ':' (pseudo-selectors),
|
|
32
|
+
* '@' (at-rules), or are named 'selectors'.
|
|
33
|
+
*
|
|
34
|
+
* Non-Property type elements in the input array are ignored.
|
|
35
|
+
*/
|
|
36
|
+
const separateProperties = (properties) => {
|
|
37
|
+
const regularProperties = [];
|
|
38
|
+
const specialProperties = [];
|
|
39
|
+
// Separate regular CSS properties from special ones (pseudo selectors, etc.)
|
|
40
|
+
properties.forEach((property) => {
|
|
41
|
+
if (property.type === 'Property') {
|
|
42
|
+
const propName = (0, exports.getPropertyName)(property);
|
|
43
|
+
if (propName.startsWith(':') || propName.startsWith('@') || propName === 'selectors') {
|
|
44
|
+
specialProperties.push(property);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
regularProperties.push(property);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
return { regularProperties, specialProperties };
|
|
52
|
+
};
|
|
53
|
+
exports.separateProperties = separateProperties;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Rule } from 'eslint';
|
|
2
|
+
import { TSESTree } from '@typescript-eslint/utils';
|
|
3
|
+
/**
|
|
4
|
+
* Processes the `base` and `variants` properties of a recipe object.
|
|
5
|
+
* @param ruleContext The ESLint rule context.
|
|
6
|
+
* @param recipeNode The recipe object node to process.
|
|
7
|
+
* @param processProperty A callback function to process each property object (e.g., for alphabetical or concentric ordering).
|
|
8
|
+
*
|
|
9
|
+
* This function iterates through the properties of the recipe object:
|
|
10
|
+
* - For the `base` property, it directly processes the object.
|
|
11
|
+
* - For the `variants` property, it processes each variant's options individually.
|
|
12
|
+
*
|
|
13
|
+
* The function skips any non-Property nodes or nodes without an Identifier key.
|
|
14
|
+
* It only processes ObjectExpression values to ensure type safety.
|
|
15
|
+
*/
|
|
16
|
+
export declare const processRecipeProperties: (ruleContext: Rule.RuleContext, recipeNode: TSESTree.ObjectExpression, processProperty: (ruleContext: Rule.RuleContext, value: TSESTree.ObjectExpression) => void) => void;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.processRecipeProperties = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Processes the `base` and `variants` properties of a recipe object.
|
|
6
|
+
* @param ruleContext The ESLint rule context.
|
|
7
|
+
* @param recipeNode The recipe object node to process.
|
|
8
|
+
* @param processProperty A callback function to process each property object (e.g., for alphabetical or concentric ordering).
|
|
9
|
+
*
|
|
10
|
+
* This function iterates through the properties of the recipe object:
|
|
11
|
+
* - For the `base` property, it directly processes the object.
|
|
12
|
+
* - For the `variants` property, it processes each variant's options individually.
|
|
13
|
+
*
|
|
14
|
+
* The function skips any non-Property nodes or nodes without an Identifier key.
|
|
15
|
+
* It only processes ObjectExpression values to ensure type safety.
|
|
16
|
+
*/
|
|
17
|
+
const processRecipeProperties = (ruleContext, recipeNode, processProperty) => {
|
|
18
|
+
recipeNode.properties.forEach((property) => {
|
|
19
|
+
if (property.type !== 'Property' || property.key.type !== 'Identifier') {
|
|
20
|
+
return; // Skip non-property nodes or nodes without an identifier key
|
|
21
|
+
}
|
|
22
|
+
// Process the `base` property
|
|
23
|
+
if (property.key.name === 'base' && property.value.type === 'ObjectExpression') {
|
|
24
|
+
processProperty(ruleContext, property.value);
|
|
25
|
+
}
|
|
26
|
+
// Process the `variants` property
|
|
27
|
+
if (property.key.name === 'variants' && property.value.type === 'ObjectExpression') {
|
|
28
|
+
property.value.properties.forEach((variantProperty) => {
|
|
29
|
+
if (variantProperty.type === 'Property' && variantProperty.value.type === 'ObjectExpression') {
|
|
30
|
+
variantProperty.value.properties.forEach((optionProperty) => {
|
|
31
|
+
if (optionProperty.type === 'Property' && optionProperty.value.type === 'ObjectExpression') {
|
|
32
|
+
processProperty(ruleContext, optionProperty.value);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
exports.processRecipeProperties = processRecipeProperties;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Rule } from 'eslint';
|
|
2
|
+
import { TSESTree } from '@typescript-eslint/utils';
|
|
3
|
+
/**
|
|
4
|
+
* Recursively processes a style node, which can be an object or an array of objects.
|
|
5
|
+
* @param ruleContext The ESLint rule context.
|
|
6
|
+
* @param node The node to process.
|
|
7
|
+
* @param processProperty A function to process each object expression.
|
|
8
|
+
*/
|
|
9
|
+
export declare const processStyleNode: (ruleContext: Rule.RuleContext, node: TSESTree.Node | undefined, processProperty: (ruleContext: Rule.RuleContext, value: TSESTree.ObjectExpression) => void) => void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.processStyleNode = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Recursively processes a style node, which can be an object or an array of objects.
|
|
6
|
+
* @param ruleContext The ESLint rule context.
|
|
7
|
+
* @param node The node to process.
|
|
8
|
+
* @param processProperty A function to process each object expression.
|
|
9
|
+
*/
|
|
10
|
+
const processStyleNode = (ruleContext, node, processProperty) => {
|
|
11
|
+
if (!node) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (node.type === 'ObjectExpression') {
|
|
15
|
+
processProperty(ruleContext, node);
|
|
16
|
+
}
|
|
17
|
+
if (node.type === 'ArrayExpression') {
|
|
18
|
+
node.elements.forEach((element) => {
|
|
19
|
+
if (element && element.type === 'ObjectExpression') {
|
|
20
|
+
processProperty(ruleContext, element);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.processStyleNode = processStyleNode;
|
|
@@ -0,0 +1,161 @@
|
|
|
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;
|