tailwindcss 0.0.0-insiders.df011dc → 0.0.0-insiders.e2d5f21
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 +106 -1
- package/README.md +1 -1
- package/colors.js +1 -304
- package/defaultConfig.js +1 -4
- package/defaultTheme.js +1 -4
- package/lib/cli-peer-dependencies.js +4 -9
- package/lib/cli.js +646 -705
- package/lib/constants.js +15 -15
- package/lib/corePluginList.js +174 -4
- package/lib/corePlugins.js +3637 -2934
- package/lib/css/preflight.css +14 -1
- package/lib/featureFlags.js +44 -44
- package/lib/index.js +25 -24
- package/lib/lib/collapseAdjacentRules.js +33 -35
- package/lib/lib/collapseDuplicateDeclarations.js +29 -0
- package/lib/lib/detectNesting.js +34 -0
- package/lib/lib/evaluateTailwindFunctions.js +134 -155
- package/lib/lib/expandApplyAtRules.js +183 -200
- package/lib/lib/expandTailwindAtRules.js +219 -232
- package/lib/lib/generateRules.js +478 -311
- package/lib/lib/getModuleDependencies.js +36 -41
- package/lib/lib/normalizeTailwindDirectives.js +66 -58
- package/lib/lib/resolveDefaultsAtRules.js +110 -90
- package/lib/lib/setupContextUtils.js +740 -580
- package/lib/lib/setupTrackingContext.js +142 -162
- package/lib/lib/setupWatchingContext.js +235 -278
- package/lib/lib/sharedState.js +7 -17
- package/lib/lib/substituteScreenAtRules.js +22 -26
- package/lib/processTailwindFeatures.js +38 -44
- 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 +9 -13
- package/lib/util/color.js +69 -59
- package/lib/util/configurePlugins.js +13 -14
- package/lib/util/createPlugin.js +21 -24
- package/lib/util/createUtilityPlugin.js +47 -45
- package/lib/util/dataTypes.js +231 -0
- package/lib/util/defaults.js +10 -14
- package/lib/util/escapeClassName.js +12 -14
- package/lib/util/escapeCommas.js +3 -5
- package/lib/util/flattenColorPalette.js +14 -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 +39 -30
- package/lib/util/nameClass.js +23 -23
- package/lib/util/negateValue.js +14 -15
- package/lib/util/normalizeConfig.js +208 -0
- package/lib/util/normalizeScreens.js +58 -0
- package/lib/util/parseAnimationValue.js +82 -53
- package/lib/util/parseBoxShadowValue.js +77 -0
- package/lib/util/parseDependency.js +49 -60
- package/lib/util/parseObjectStyles.js +23 -20
- package/lib/util/pluginUtils.js +153 -285
- package/lib/util/prefixSelector.js +14 -16
- package/lib/util/resolveConfig.js +194 -249
- package/lib/util/resolveConfigPath.js +38 -45
- package/lib/util/responsive.js +12 -11
- package/lib/util/tap.js +4 -6
- package/lib/util/toColorValue.js +4 -5
- package/lib/util/toPath.js +4 -6
- package/lib/util/transformThemeValue.js +57 -26
- package/lib/util/withAlphaVariable.js +56 -54
- package/package.json +27 -37
- package/peers/index.js +73099 -84294
- package/plugin.js +1 -3
- package/resolveConfig.js +1 -7
- package/scripts/create-plugin-list.js +2 -2
- package/src/cli.js +27 -18
- package/src/corePluginList.js +1 -1
- package/src/corePlugins.js +2124 -1968
- package/src/css/preflight.css +14 -1
- package/src/featureFlags.js +12 -6
- package/src/lib/collapseDuplicateDeclarations.js +28 -0
- package/src/lib/detectNesting.js +39 -0
- package/src/lib/evaluateTailwindFunctions.js +5 -2
- package/src/lib/expandTailwindAtRules.js +24 -32
- package/src/lib/generateRules.js +230 -20
- package/src/lib/normalizeTailwindDirectives.js +3 -2
- package/src/lib/resolveDefaultsAtRules.js +46 -30
- package/src/lib/setupContextUtils.js +275 -113
- package/src/lib/setupTrackingContext.js +9 -8
- package/src/lib/setupWatchingContext.js +12 -7
- package/src/lib/sharedState.js +1 -4
- package/src/lib/substituteScreenAtRules.js +6 -3
- package/src/processTailwindFeatures.js +8 -1
- 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/createUtilityPlugin.js +2 -11
- package/src/util/dataTypes.js +246 -0
- package/src/util/formatVariantSelector.js +196 -0
- package/src/util/isValidArbitraryValue.js +61 -0
- package/src/util/log.js +18 -21
- package/src/util/nameClass.js +10 -6
- package/src/util/negateValue.js +4 -2
- package/src/util/normalizeConfig.js +249 -0
- package/src/util/normalizeScreens.js +42 -0
- package/src/util/parseAnimationValue.js +7 -1
- package/src/util/parseBoxShadowValue.js +71 -0
- package/src/util/parseDependency.js +4 -0
- package/src/util/pluginUtils.js +101 -204
- package/src/util/prefixSelector.js +1 -4
- package/src/util/resolveConfig.js +12 -65
- package/src/util/transformThemeValue.js +22 -7
- package/src/util/withAlphaVariable.js +13 -8
- package/stubs/defaultConfig.stub.js +163 -97
- package/stubs/simpleConfig.stub.js +0 -1
package/lib/constants.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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
|
-
|
|
7
|
+
function _interopRequireDefault(obj) {
|
|
8
|
+
return obj && obj.__esModule ? obj : {
|
|
9
|
+
default: obj
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
12
|
const cli = 'tailwind';
|
|
13
13
|
exports.cli = cli;
|
|
14
14
|
const defaultConfigFile = './tailwind.config.js';
|
|
@@ -19,19 +19,19 @@ const cjsConfigFile = './tailwind.config.cjs';
|
|
|
19
19
|
exports.cjsConfigFile = cjsConfigFile;
|
|
20
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
32
|
const defaultConfigStubFile = _path.default.resolve(__dirname, '../stubs/defaultConfig.stub.js');
|
|
28
|
-
|
|
29
33
|
exports.defaultConfigStubFile = defaultConfigStubFile;
|
|
30
|
-
|
|
31
34
|
const simpleConfigStubFile = _path.default.resolve(__dirname, '../stubs/simpleConfig.stub.js');
|
|
32
|
-
|
|
33
35
|
exports.simpleConfigStubFile = simpleConfigStubFile;
|
|
34
|
-
|
|
35
36
|
const defaultPostCssConfigStubFile = _path.default.resolve(__dirname, '../stubs/defaultPostCssConfig.stub.js');
|
|
36
|
-
|
|
37
|
-
exports.defaultPostCssConfigStubFile = defaultPostCssConfigStubFile;
|
|
37
|
+
exports.defaultPostCssConfigStubFile = defaultPostCssConfigStubFile;
|
package/lib/corePluginList.js
CHANGED
|
@@ -1,8 +1,178 @@
|
|
|
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
|
+
"transformOrigin",
|
|
42
|
+
"translate",
|
|
43
|
+
"rotate",
|
|
44
|
+
"skew",
|
|
45
|
+
"scale",
|
|
46
|
+
"transform",
|
|
47
|
+
"animation",
|
|
48
|
+
"cursor",
|
|
49
|
+
"touchAction",
|
|
50
|
+
"userSelect",
|
|
51
|
+
"resize",
|
|
52
|
+
"scrollSnapType",
|
|
53
|
+
"scrollSnapAlign",
|
|
54
|
+
"scrollSnapStop",
|
|
55
|
+
"scrollMargin",
|
|
56
|
+
"scrollPadding",
|
|
57
|
+
"listStylePosition",
|
|
58
|
+
"listStyleType",
|
|
59
|
+
"appearance",
|
|
60
|
+
"columns",
|
|
61
|
+
"breakBefore",
|
|
62
|
+
"breakInside",
|
|
63
|
+
"breakAfter",
|
|
64
|
+
"gridAutoColumns",
|
|
65
|
+
"gridAutoFlow",
|
|
66
|
+
"gridAutoRows",
|
|
67
|
+
"gridTemplateColumns",
|
|
68
|
+
"gridTemplateRows",
|
|
69
|
+
"flexDirection",
|
|
70
|
+
"flexWrap",
|
|
71
|
+
"placeContent",
|
|
72
|
+
"placeItems",
|
|
73
|
+
"alignContent",
|
|
74
|
+
"alignItems",
|
|
75
|
+
"justifyContent",
|
|
76
|
+
"justifyItems",
|
|
77
|
+
"gap",
|
|
78
|
+
"space",
|
|
79
|
+
"divideWidth",
|
|
80
|
+
"divideStyle",
|
|
81
|
+
"divideColor",
|
|
82
|
+
"divideOpacity",
|
|
83
|
+
"placeSelf",
|
|
84
|
+
"alignSelf",
|
|
85
|
+
"justifySelf",
|
|
86
|
+
"overflow",
|
|
87
|
+
"overscrollBehavior",
|
|
88
|
+
"scrollBehavior",
|
|
89
|
+
"textOverflow",
|
|
90
|
+
"whitespace",
|
|
91
|
+
"wordBreak",
|
|
92
|
+
"borderRadius",
|
|
93
|
+
"borderWidth",
|
|
94
|
+
"borderStyle",
|
|
95
|
+
"borderColor",
|
|
96
|
+
"borderOpacity",
|
|
97
|
+
"backgroundColor",
|
|
98
|
+
"backgroundOpacity",
|
|
99
|
+
"backgroundImage",
|
|
100
|
+
"gradientColorStops",
|
|
101
|
+
"boxDecorationBreak",
|
|
102
|
+
"backgroundSize",
|
|
103
|
+
"backgroundAttachment",
|
|
104
|
+
"backgroundClip",
|
|
105
|
+
"backgroundPosition",
|
|
106
|
+
"backgroundRepeat",
|
|
107
|
+
"backgroundOrigin",
|
|
108
|
+
"fill",
|
|
109
|
+
"stroke",
|
|
110
|
+
"strokeWidth",
|
|
111
|
+
"objectFit",
|
|
112
|
+
"objectPosition",
|
|
113
|
+
"padding",
|
|
114
|
+
"textAlign",
|
|
115
|
+
"textIndent",
|
|
116
|
+
"verticalAlign",
|
|
117
|
+
"fontFamily",
|
|
118
|
+
"fontSize",
|
|
119
|
+
"fontWeight",
|
|
120
|
+
"textTransform",
|
|
121
|
+
"fontStyle",
|
|
122
|
+
"fontVariantNumeric",
|
|
123
|
+
"lineHeight",
|
|
124
|
+
"letterSpacing",
|
|
125
|
+
"textColor",
|
|
126
|
+
"textOpacity",
|
|
127
|
+
"textDecoration",
|
|
128
|
+
"textDecorationColor",
|
|
129
|
+
"textDecorationStyle",
|
|
130
|
+
"textDecorationThickness",
|
|
131
|
+
"textUnderlineOffset",
|
|
132
|
+
"fontSmoothing",
|
|
133
|
+
"placeholderColor",
|
|
134
|
+
"placeholderOpacity",
|
|
135
|
+
"caretColor",
|
|
136
|
+
"accentColor",
|
|
137
|
+
"opacity",
|
|
138
|
+
"backgroundBlendMode",
|
|
139
|
+
"mixBlendMode",
|
|
140
|
+
"boxShadow",
|
|
141
|
+
"boxShadowColor",
|
|
142
|
+
"outlineStyle",
|
|
143
|
+
"outlineWidth",
|
|
144
|
+
"outlineOffset",
|
|
145
|
+
"outlineColor",
|
|
146
|
+
"ringWidth",
|
|
147
|
+
"ringColor",
|
|
148
|
+
"ringOpacity",
|
|
149
|
+
"ringOffsetWidth",
|
|
150
|
+
"ringOffsetColor",
|
|
151
|
+
"blur",
|
|
152
|
+
"brightness",
|
|
153
|
+
"contrast",
|
|
154
|
+
"dropShadow",
|
|
155
|
+
"grayscale",
|
|
156
|
+
"hueRotate",
|
|
157
|
+
"invert",
|
|
158
|
+
"saturate",
|
|
159
|
+
"sepia",
|
|
160
|
+
"filter",
|
|
161
|
+
"backdropBlur",
|
|
162
|
+
"backdropBrightness",
|
|
163
|
+
"backdropContrast",
|
|
164
|
+
"backdropGrayscale",
|
|
165
|
+
"backdropHueRotate",
|
|
166
|
+
"backdropInvert",
|
|
167
|
+
"backdropOpacity",
|
|
168
|
+
"backdropSaturate",
|
|
169
|
+
"backdropSepia",
|
|
170
|
+
"backdropFilter",
|
|
171
|
+
"transitionProperty",
|
|
172
|
+
"transitionDelay",
|
|
173
|
+
"transitionDuration",
|
|
174
|
+
"transitionTimingFunction",
|
|
175
|
+
"willChange",
|
|
176
|
+
"content"
|
|
177
|
+
];
|
|
178
|
+
exports.default = _default;
|