tailwindcss 0.0.0-insiders.f4635e0 → 0.0.0-insiders.f6eeed3
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/CHANGELOG.md +360 -1
- package/LICENSE +1 -2
- package/README.md +8 -4
- package/colors.d.ts +3 -0
- package/colors.js +2 -304
- package/defaultConfig.d.ts +3 -0
- package/defaultConfig.js +2 -4
- package/defaultTheme.d.ts +3 -0
- package/defaultTheme.js +2 -4
- package/lib/cli-peer-dependencies.js +5 -10
- package/lib/cli.js +702 -706
- package/lib/constants.js +23 -23
- package/lib/corePluginList.js +175 -4
- package/lib/corePlugins.js +3601 -2950
- package/lib/css/preflight.css +18 -5
- package/lib/featureFlags.js +44 -45
- package/lib/index.js +35 -25
- package/lib/lib/cacheInvalidation.js +69 -0
- package/lib/lib/collapseAdjacentRules.js +47 -36
- package/lib/lib/collapseDuplicateDeclarations.js +80 -0
- package/lib/lib/defaultExtractor.js +44 -0
- package/lib/lib/detectNesting.js +29 -16
- package/lib/lib/evaluateTailwindFunctions.js +134 -155
- package/lib/lib/expandApplyAtRules.js +391 -203
- package/lib/lib/expandTailwindAtRules.js +238 -236
- package/lib/lib/generateRules.js +594 -310
- package/lib/lib/getModuleDependencies.js +38 -43
- package/lib/lib/normalizeTailwindDirectives.js +74 -58
- package/lib/lib/partitionApplyAtRules.js +53 -0
- package/lib/lib/resolveDefaultsAtRules.js +129 -91
- package/lib/lib/setupContextUtils.js +806 -666
- package/lib/lib/setupTrackingContext.js +145 -164
- package/lib/lib/sharedState.js +40 -17
- package/lib/lib/substituteScreenAtRules.js +22 -26
- package/{nesting → lib/postcss-plugins/nesting}/README.md +0 -0
- package/lib/postcss-plugins/nesting/index.js +17 -0
- package/lib/postcss-plugins/nesting/plugin.js +85 -0
- package/lib/processTailwindFeatures.js +45 -46
- package/lib/public/colors.js +329 -0
- package/lib/public/create-plugin.js +13 -0
- package/lib/public/default-config.js +14 -0
- package/lib/public/default-theme.js +14 -0
- package/lib/public/resolve-config.js +19 -0
- package/lib/util/bigSign.js +3 -5
- package/lib/util/buildMediaQuery.js +15 -31
- package/lib/util/cloneDeep.js +14 -13
- package/lib/util/cloneNodes.js +21 -14
- package/lib/util/color.js +89 -63
- package/lib/util/configurePlugins.js +13 -14
- package/lib/util/createPlugin.js +20 -24
- package/lib/util/createUtilityPlugin.js +43 -45
- package/lib/util/dataTypes.js +235 -0
- package/lib/util/defaults.js +16 -14
- package/lib/util/escapeClassName.js +12 -14
- package/lib/util/escapeCommas.js +3 -5
- package/lib/util/flattenColorPalette.js +12 -10
- package/lib/util/formatVariantSelector.js +186 -0
- package/lib/util/getAllConfigs.js +23 -16
- package/lib/util/hashConfig.js +10 -10
- package/lib/util/isKeyframeRule.js +3 -5
- package/lib/util/isPlainObject.js +7 -10
- package/lib/util/isValidArbitraryValue.js +64 -0
- package/lib/util/log.js +45 -32
- package/lib/util/nameClass.js +22 -27
- package/lib/util/negateValue.js +14 -15
- package/lib/util/normalizeConfig.js +240 -0
- package/lib/util/normalizeScreens.js +59 -0
- package/lib/util/parseAnimationValue.js +83 -54
- package/lib/util/parseBoxShadowValue.js +117 -0
- package/lib/util/parseDependency.js +51 -62
- package/lib/util/parseObjectStyles.js +23 -20
- package/lib/util/pluginUtils.js +146 -285
- package/lib/util/prefixSelector.js +15 -18
- package/lib/util/resolveConfig.js +218 -252
- package/lib/util/resolveConfigPath.js +39 -47
- package/lib/util/responsive.js +12 -11
- package/lib/util/tap.js +4 -6
- package/lib/util/toColorValue.js +3 -5
- package/lib/util/toPath.js +9 -6
- package/lib/util/transformThemeValue.js +53 -26
- package/lib/util/withAlphaVariable.js +59 -57
- package/nesting/index.js +2 -12
- package/package.json +48 -60
- package/peers/index.js +72849 -84292
- package/plugin.d.ts +6 -0
- package/plugin.js +1 -2
- package/resolveConfig.js +2 -7
- package/scripts/create-plugin-list.js +2 -2
- package/scripts/generate-types.js +52 -0
- package/src/cli.js +115 -36
- package/src/corePluginList.js +1 -1
- package/src/corePlugins.js +2147 -1968
- package/src/css/preflight.css +18 -5
- package/src/featureFlags.js +14 -8
- package/src/index.js +14 -6
- package/src/lib/cacheInvalidation.js +52 -0
- package/src/lib/collapseAdjacentRules.js +16 -1
- package/src/lib/collapseDuplicateDeclarations.js +93 -0
- package/src/lib/defaultExtractor.js +50 -0
- package/src/lib/detectNesting.js +22 -3
- package/src/lib/evaluateTailwindFunctions.js +6 -3
- package/src/lib/expandApplyAtRules.js +285 -56
- package/src/lib/expandTailwindAtRules.js +87 -57
- package/src/lib/generateRules.js +364 -41
- package/src/lib/normalizeTailwindDirectives.js +10 -3
- package/src/lib/partitionApplyAtRules.js +52 -0
- package/src/lib/resolveDefaultsAtRules.js +81 -40
- package/src/lib/setupContextUtils.js +374 -201
- package/src/lib/setupTrackingContext.js +17 -16
- package/src/lib/sharedState.js +42 -7
- package/src/lib/substituteScreenAtRules.js +6 -3
- package/src/postcss-plugins/nesting/README.md +42 -0
- package/src/postcss-plugins/nesting/index.js +13 -0
- package/src/postcss-plugins/nesting/plugin.js +80 -0
- package/src/processTailwindFeatures.js +18 -3
- package/src/public/colors.js +300 -0
- package/src/public/create-plugin.js +2 -0
- package/src/public/default-config.js +4 -0
- package/src/public/default-theme.js +4 -0
- package/src/public/resolve-config.js +7 -0
- package/src/util/buildMediaQuery.js +14 -18
- package/src/util/cloneNodes.js +14 -1
- package/src/util/color.js +25 -10
- package/src/util/createUtilityPlugin.js +2 -11
- package/src/util/dataTypes.js +250 -0
- package/src/util/defaults.js +6 -0
- package/src/util/formatVariantSelector.js +196 -0
- package/src/util/isValidArbitraryValue.js +61 -0
- package/src/util/log.js +23 -22
- package/src/util/nameClass.js +2 -2
- package/src/util/negateValue.js +4 -2
- package/src/util/normalizeConfig.js +270 -0
- package/src/util/normalizeScreens.js +45 -0
- package/src/util/parseAnimationValue.js +7 -1
- package/src/util/parseBoxShadowValue.js +119 -0
- package/src/util/parseDependency.js +4 -0
- package/src/util/pluginUtils.js +101 -204
- package/src/util/prefixSelector.js +7 -8
- package/src/util/resolveConfig.js +53 -66
- package/src/util/toPath.js +23 -1
- package/src/util/transformThemeValue.js +22 -7
- package/src/util/withAlphaVariable.js +13 -8
- package/stubs/defaultConfig.stub.js +168 -99
- package/stubs/simpleConfig.stub.js +0 -1
- package/types/config.d.ts +323 -0
- package/types/generated/.gitkeep +0 -0
- package/types/generated/colors.d.ts +276 -0
- package/types/generated/corePluginList.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types.d.ts +1 -0
- package/lib/lib/setupWatchingContext.js +0 -331
- package/nesting/plugin.js +0 -41
- package/src/lib/setupWatchingContext.js +0 -307
package/lib/constants.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
5
4
|
});
|
|
6
5
|
exports.defaultPostCssConfigStubFile = exports.simpleConfigStubFile = exports.defaultConfigStubFile = exports.supportedPostCssConfigFile = exports.supportedConfigFiles = exports.cjsPostCssConfigFile = exports.cjsConfigFile = exports.defaultPostCssConfigFile = exports.defaultConfigFile = exports.cli = void 0;
|
|
7
|
-
|
|
8
6
|
var _path = _interopRequireDefault(require("path"));
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
function _interopRequireDefault(obj) {
|
|
8
|
+
return obj && obj.__esModule ? obj : {
|
|
9
|
+
default: obj
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const cli = "tailwind";
|
|
13
13
|
exports.cli = cli;
|
|
14
|
-
const defaultConfigFile =
|
|
14
|
+
const defaultConfigFile = "./tailwind.config.js";
|
|
15
15
|
exports.defaultConfigFile = defaultConfigFile;
|
|
16
|
-
const defaultPostCssConfigFile =
|
|
16
|
+
const defaultPostCssConfigFile = "./postcss.config.js";
|
|
17
17
|
exports.defaultPostCssConfigFile = defaultPostCssConfigFile;
|
|
18
|
-
const cjsConfigFile =
|
|
18
|
+
const cjsConfigFile = "./tailwind.config.cjs";
|
|
19
19
|
exports.cjsConfigFile = cjsConfigFile;
|
|
20
|
-
const cjsPostCssConfigFile =
|
|
20
|
+
const cjsPostCssConfigFile = "./postcss.config.cjs";
|
|
21
21
|
exports.cjsPostCssConfigFile = cjsPostCssConfigFile;
|
|
22
|
-
const supportedConfigFiles = [
|
|
22
|
+
const supportedConfigFiles = [
|
|
23
|
+
cjsConfigFile,
|
|
24
|
+
defaultConfigFile
|
|
25
|
+
];
|
|
23
26
|
exports.supportedConfigFiles = supportedConfigFiles;
|
|
24
|
-
const supportedPostCssConfigFile = [
|
|
27
|
+
const supportedPostCssConfigFile = [
|
|
28
|
+
cjsPostCssConfigFile,
|
|
29
|
+
defaultPostCssConfigFile
|
|
30
|
+
];
|
|
25
31
|
exports.supportedPostCssConfigFile = supportedPostCssConfigFile;
|
|
26
|
-
|
|
27
|
-
const defaultConfigStubFile = _path.default.resolve(__dirname, '../stubs/defaultConfig.stub.js');
|
|
28
|
-
|
|
32
|
+
const defaultConfigStubFile = _path.default.resolve(__dirname, "../stubs/defaultConfig.stub.js");
|
|
29
33
|
exports.defaultConfigStubFile = defaultConfigStubFile;
|
|
30
|
-
|
|
31
|
-
const simpleConfigStubFile = _path.default.resolve(__dirname, '../stubs/simpleConfig.stub.js');
|
|
32
|
-
|
|
34
|
+
const simpleConfigStubFile = _path.default.resolve(__dirname, "../stubs/simpleConfig.stub.js");
|
|
33
35
|
exports.simpleConfigStubFile = simpleConfigStubFile;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
exports.defaultPostCssConfigStubFile = defaultPostCssConfigStubFile;
|
|
36
|
+
const defaultPostCssConfigStubFile = _path.default.resolve(__dirname, "../stubs/defaultPostCssConfig.stub.js");
|
|
37
|
+
exports.defaultPostCssConfigStubFile = defaultPostCssConfigStubFile;
|
package/lib/corePluginList.js
CHANGED
|
@@ -1,8 +1,179 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
5
4
|
});
|
|
6
5
|
exports.default = void 0;
|
|
7
|
-
var _default = [
|
|
8
|
-
|
|
6
|
+
var _default = [
|
|
7
|
+
"preflight",
|
|
8
|
+
"container",
|
|
9
|
+
"accessibility",
|
|
10
|
+
"pointerEvents",
|
|
11
|
+
"visibility",
|
|
12
|
+
"position",
|
|
13
|
+
"inset",
|
|
14
|
+
"isolation",
|
|
15
|
+
"zIndex",
|
|
16
|
+
"order",
|
|
17
|
+
"gridColumn",
|
|
18
|
+
"gridColumnStart",
|
|
19
|
+
"gridColumnEnd",
|
|
20
|
+
"gridRow",
|
|
21
|
+
"gridRowStart",
|
|
22
|
+
"gridRowEnd",
|
|
23
|
+
"float",
|
|
24
|
+
"clear",
|
|
25
|
+
"margin",
|
|
26
|
+
"boxSizing",
|
|
27
|
+
"display",
|
|
28
|
+
"aspectRatio",
|
|
29
|
+
"height",
|
|
30
|
+
"maxHeight",
|
|
31
|
+
"minHeight",
|
|
32
|
+
"width",
|
|
33
|
+
"minWidth",
|
|
34
|
+
"maxWidth",
|
|
35
|
+
"flex",
|
|
36
|
+
"flexShrink",
|
|
37
|
+
"flexGrow",
|
|
38
|
+
"flexBasis",
|
|
39
|
+
"tableLayout",
|
|
40
|
+
"borderCollapse",
|
|
41
|
+
"borderSpacing",
|
|
42
|
+
"transformOrigin",
|
|
43
|
+
"translate",
|
|
44
|
+
"rotate",
|
|
45
|
+
"skew",
|
|
46
|
+
"scale",
|
|
47
|
+
"transform",
|
|
48
|
+
"animation",
|
|
49
|
+
"cursor",
|
|
50
|
+
"touchAction",
|
|
51
|
+
"userSelect",
|
|
52
|
+
"resize",
|
|
53
|
+
"scrollSnapType",
|
|
54
|
+
"scrollSnapAlign",
|
|
55
|
+
"scrollSnapStop",
|
|
56
|
+
"scrollMargin",
|
|
57
|
+
"scrollPadding",
|
|
58
|
+
"listStylePosition",
|
|
59
|
+
"listStyleType",
|
|
60
|
+
"appearance",
|
|
61
|
+
"columns",
|
|
62
|
+
"breakBefore",
|
|
63
|
+
"breakInside",
|
|
64
|
+
"breakAfter",
|
|
65
|
+
"gridAutoColumns",
|
|
66
|
+
"gridAutoFlow",
|
|
67
|
+
"gridAutoRows",
|
|
68
|
+
"gridTemplateColumns",
|
|
69
|
+
"gridTemplateRows",
|
|
70
|
+
"flexDirection",
|
|
71
|
+
"flexWrap",
|
|
72
|
+
"placeContent",
|
|
73
|
+
"placeItems",
|
|
74
|
+
"alignContent",
|
|
75
|
+
"alignItems",
|
|
76
|
+
"justifyContent",
|
|
77
|
+
"justifyItems",
|
|
78
|
+
"gap",
|
|
79
|
+
"space",
|
|
80
|
+
"divideWidth",
|
|
81
|
+
"divideStyle",
|
|
82
|
+
"divideColor",
|
|
83
|
+
"divideOpacity",
|
|
84
|
+
"placeSelf",
|
|
85
|
+
"alignSelf",
|
|
86
|
+
"justifySelf",
|
|
87
|
+
"overflow",
|
|
88
|
+
"overscrollBehavior",
|
|
89
|
+
"scrollBehavior",
|
|
90
|
+
"textOverflow",
|
|
91
|
+
"whitespace",
|
|
92
|
+
"wordBreak",
|
|
93
|
+
"borderRadius",
|
|
94
|
+
"borderWidth",
|
|
95
|
+
"borderStyle",
|
|
96
|
+
"borderColor",
|
|
97
|
+
"borderOpacity",
|
|
98
|
+
"backgroundColor",
|
|
99
|
+
"backgroundOpacity",
|
|
100
|
+
"backgroundImage",
|
|
101
|
+
"gradientColorStops",
|
|
102
|
+
"boxDecorationBreak",
|
|
103
|
+
"backgroundSize",
|
|
104
|
+
"backgroundAttachment",
|
|
105
|
+
"backgroundClip",
|
|
106
|
+
"backgroundPosition",
|
|
107
|
+
"backgroundRepeat",
|
|
108
|
+
"backgroundOrigin",
|
|
109
|
+
"fill",
|
|
110
|
+
"stroke",
|
|
111
|
+
"strokeWidth",
|
|
112
|
+
"objectFit",
|
|
113
|
+
"objectPosition",
|
|
114
|
+
"padding",
|
|
115
|
+
"textAlign",
|
|
116
|
+
"textIndent",
|
|
117
|
+
"verticalAlign",
|
|
118
|
+
"fontFamily",
|
|
119
|
+
"fontSize",
|
|
120
|
+
"fontWeight",
|
|
121
|
+
"textTransform",
|
|
122
|
+
"fontStyle",
|
|
123
|
+
"fontVariantNumeric",
|
|
124
|
+
"lineHeight",
|
|
125
|
+
"letterSpacing",
|
|
126
|
+
"textColor",
|
|
127
|
+
"textOpacity",
|
|
128
|
+
"textDecoration",
|
|
129
|
+
"textDecorationColor",
|
|
130
|
+
"textDecorationStyle",
|
|
131
|
+
"textDecorationThickness",
|
|
132
|
+
"textUnderlineOffset",
|
|
133
|
+
"fontSmoothing",
|
|
134
|
+
"placeholderColor",
|
|
135
|
+
"placeholderOpacity",
|
|
136
|
+
"caretColor",
|
|
137
|
+
"accentColor",
|
|
138
|
+
"opacity",
|
|
139
|
+
"backgroundBlendMode",
|
|
140
|
+
"mixBlendMode",
|
|
141
|
+
"boxShadow",
|
|
142
|
+
"boxShadowColor",
|
|
143
|
+
"outlineStyle",
|
|
144
|
+
"outlineWidth",
|
|
145
|
+
"outlineOffset",
|
|
146
|
+
"outlineColor",
|
|
147
|
+
"ringWidth",
|
|
148
|
+
"ringColor",
|
|
149
|
+
"ringOpacity",
|
|
150
|
+
"ringOffsetWidth",
|
|
151
|
+
"ringOffsetColor",
|
|
152
|
+
"blur",
|
|
153
|
+
"brightness",
|
|
154
|
+
"contrast",
|
|
155
|
+
"dropShadow",
|
|
156
|
+
"grayscale",
|
|
157
|
+
"hueRotate",
|
|
158
|
+
"invert",
|
|
159
|
+
"saturate",
|
|
160
|
+
"sepia",
|
|
161
|
+
"filter",
|
|
162
|
+
"backdropBlur",
|
|
163
|
+
"backdropBrightness",
|
|
164
|
+
"backdropContrast",
|
|
165
|
+
"backdropGrayscale",
|
|
166
|
+
"backdropHueRotate",
|
|
167
|
+
"backdropInvert",
|
|
168
|
+
"backdropOpacity",
|
|
169
|
+
"backdropSaturate",
|
|
170
|
+
"backdropSepia",
|
|
171
|
+
"backdropFilter",
|
|
172
|
+
"transitionProperty",
|
|
173
|
+
"transitionDelay",
|
|
174
|
+
"transitionDuration",
|
|
175
|
+
"transitionTimingFunction",
|
|
176
|
+
"willChange",
|
|
177
|
+
"content"
|
|
178
|
+
];
|
|
179
|
+
exports.default = _default;
|