tailwindcss 3.1.7 → 3.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.
Files changed (112) hide show
  1. package/README.md +12 -8
  2. package/lib/cli/build/deps.js +54 -0
  3. package/lib/cli/build/index.js +44 -0
  4. package/lib/cli/build/plugin.js +335 -0
  5. package/lib/cli/build/utils.js +78 -0
  6. package/lib/cli/build/watching.js +113 -0
  7. package/lib/cli/help/index.js +71 -0
  8. package/lib/cli/index.js +18 -0
  9. package/lib/cli/init/index.js +46 -0
  10. package/lib/cli/shared.js +12 -0
  11. package/lib/cli.js +11 -590
  12. package/lib/corePlugins.js +332 -108
  13. package/lib/css/preflight.css +5 -0
  14. package/lib/featureFlags.js +7 -4
  15. package/lib/index.js +6 -1
  16. package/lib/lib/content.js +167 -0
  17. package/lib/lib/defaultExtractor.js +15 -10
  18. package/lib/lib/detectNesting.js +2 -2
  19. package/lib/lib/evaluateTailwindFunctions.js +17 -1
  20. package/lib/lib/expandApplyAtRules.js +71 -37
  21. package/lib/lib/expandTailwindAtRules.js +10 -42
  22. package/lib/lib/findAtConfigPath.js +44 -0
  23. package/lib/lib/generateRules.js +181 -96
  24. package/lib/lib/normalizeTailwindDirectives.js +1 -1
  25. package/lib/lib/offsets.js +217 -0
  26. package/lib/lib/regex.js +1 -1
  27. package/lib/lib/setupContextUtils.js +339 -100
  28. package/lib/lib/setupTrackingContext.js +5 -39
  29. package/lib/lib/sharedState.js +2 -0
  30. package/lib/public/colors.js +1 -1
  31. package/lib/util/buildMediaQuery.js +6 -3
  32. package/lib/util/configurePlugins.js +1 -1
  33. package/lib/util/dataTypes.js +15 -19
  34. package/lib/util/formatVariantSelector.js +92 -8
  35. package/lib/util/getAllConfigs.js +14 -3
  36. package/lib/util/isValidArbitraryValue.js +1 -1
  37. package/lib/util/nameClass.js +3 -0
  38. package/lib/util/negateValue.js +15 -2
  39. package/lib/util/normalizeConfig.js +17 -3
  40. package/lib/util/normalizeScreens.js +100 -3
  41. package/lib/util/parseAnimationValue.js +1 -1
  42. package/lib/util/parseBoxShadowValue.js +1 -1
  43. package/lib/util/parseDependency.js +33 -54
  44. package/lib/util/parseGlob.js +34 -0
  45. package/lib/util/parseObjectStyles.js +1 -1
  46. package/lib/util/pluginUtils.js +86 -17
  47. package/lib/util/resolveConfig.js +3 -3
  48. package/lib/util/splitAtTopLevelOnly.js +31 -81
  49. package/lib/util/transformThemeValue.js +9 -2
  50. package/lib/util/validateConfig.js +1 -1
  51. package/lib/util/validateFormalSyntax.js +24 -0
  52. package/package.json +14 -12
  53. package/peers/.DS_Store +0 -0
  54. package/peers/.svgo.yml +75 -0
  55. package/peers/index.js +3690 -2274
  56. package/peers/orders/concentric-css.json +299 -0
  57. package/peers/orders/smacss.json +299 -0
  58. package/peers/orders/source.json +295 -0
  59. package/plugin.d.ts +3 -3
  60. package/scripts/release-channel.js +18 -0
  61. package/scripts/release-notes.js +21 -0
  62. package/src/.DS_Store +0 -0
  63. package/src/cli/build/deps.js +56 -0
  64. package/src/cli/build/index.js +45 -0
  65. package/src/cli/build/plugin.js +397 -0
  66. package/src/cli/build/utils.js +76 -0
  67. package/src/cli/build/watching.js +134 -0
  68. package/src/cli/help/index.js +70 -0
  69. package/src/cli/index.js +3 -0
  70. package/src/cli/init/index.js +50 -0
  71. package/src/cli/shared.js +5 -0
  72. package/src/cli.js +4 -696
  73. package/src/corePlugins.js +262 -39
  74. package/src/css/preflight.css +5 -0
  75. package/src/featureFlags.js +12 -2
  76. package/src/index.js +5 -0
  77. package/src/lib/content.js +205 -0
  78. package/src/lib/defaultExtractor.js +3 -0
  79. package/src/lib/evaluateTailwindFunctions.js +22 -1
  80. package/src/lib/expandApplyAtRules.js +76 -29
  81. package/src/lib/expandTailwindAtRules.js +8 -46
  82. package/src/lib/findAtConfigPath.js +48 -0
  83. package/src/lib/generateRules.js +224 -105
  84. package/src/lib/offsets.js +270 -0
  85. package/src/lib/setupContextUtils.js +376 -89
  86. package/src/lib/setupTrackingContext.js +4 -45
  87. package/src/lib/sharedState.js +2 -0
  88. package/src/util/buildMediaQuery.js +5 -3
  89. package/src/util/dataTypes.js +15 -17
  90. package/src/util/formatVariantSelector.js +113 -9
  91. package/src/util/getAllConfigs.js +14 -2
  92. package/src/util/nameClass.js +4 -0
  93. package/src/util/negateValue.js +10 -2
  94. package/src/util/normalizeConfig.js +22 -2
  95. package/src/util/normalizeScreens.js +99 -4
  96. package/src/util/parseBoxShadowValue.js +1 -1
  97. package/src/util/parseDependency.js +37 -42
  98. package/src/util/parseGlob.js +24 -0
  99. package/src/util/pluginUtils.js +90 -14
  100. package/src/util/resolveConfig.js +2 -2
  101. package/src/util/splitAtTopLevelOnly.js +23 -49
  102. package/src/util/transformThemeValue.js +9 -1
  103. package/src/util/validateFormalSyntax.js +34 -0
  104. package/stubs/defaultConfig.stub.js +19 -3
  105. package/tmp.css +11 -0
  106. package/tmp.dependency-graph.js +2 -0
  107. package/tmp.in.css +3 -0
  108. package/tmp.js +0 -0
  109. package/tmp.out.css +524 -0
  110. package/types/config.d.ts +47 -13
  111. package/types/generated/default-theme.d.ts +11 -0
  112. package/CHANGELOG.md +0 -2222
@@ -0,0 +1,299 @@
1
+ [
2
+ "all",
3
+ "display",
4
+ "position",
5
+ "top",
6
+ "right",
7
+ "bottom",
8
+ "left",
9
+ "offset-inline-start",
10
+ "offset-inline-end",
11
+ "offset-block-start",
12
+ "offset-block-end",
13
+ "grid",
14
+ "grid-area",
15
+ "grid-auto-columns",
16
+ "grid-auto-flow",
17
+ "grid-auto-rows",
18
+ "grid-column",
19
+ "grid-column-end",
20
+ "grid-column-start",
21
+ "grid-row",
22
+ "grid-row-end",
23
+ "grid-row-start",
24
+ "grid-template",
25
+ "grid-template-areas",
26
+ "grid-template-columns",
27
+ "grid-template-rows",
28
+ "flex",
29
+ "flex-basis",
30
+ "flex-direction",
31
+ "flex-flow",
32
+ "flex-grow",
33
+ "flex-shrink",
34
+ "flex-wrap",
35
+ "box-decoration-break",
36
+ "place-content",
37
+ "place-items",
38
+ "place-self",
39
+ "align-content",
40
+ "align-items",
41
+ "align-self",
42
+ "justify-content",
43
+ "justify-items",
44
+ "justify-self",
45
+ "vertical-align",
46
+ "order",
47
+ "float",
48
+ "clear",
49
+ "shape-margin",
50
+ "shape-outside",
51
+ "shape-image-threshold",
52
+ "orphans",
53
+ "columns",
54
+ "column-gap",
55
+ "column-fill",
56
+ "column-rule",
57
+ "column-rule-color",
58
+ "column-rule-style",
59
+ "column-rule-width",
60
+ "column-span",
61
+ "column-count",
62
+ "column-width",
63
+ "break-before",
64
+ "break-after",
65
+ "break-inside",
66
+ "page-break-before",
67
+ "page-break-after",
68
+ "page-break-inside",
69
+ "transform",
70
+ "transform-box",
71
+ "transform-origin",
72
+ "transform-style",
73
+ "rotate",
74
+ "scale",
75
+
76
+ "perspective",
77
+ "perspective-origin",
78
+ "visibility",
79
+ "opacity",
80
+ "z-index",
81
+ "mix-blend-mode",
82
+ "backface-visibility",
83
+ "backdrop-filter",
84
+ "clip-path",
85
+ "mask",
86
+ "mask-clip",
87
+ "mask-image",
88
+ "mask-origin",
89
+ "mask-position",
90
+ "mask-repeat",
91
+ "mask-size",
92
+ "mask-type",
93
+ "filter",
94
+ "animation",
95
+ "animation-name",
96
+ "animation-duration",
97
+ "animation-fill-mode",
98
+ "animation-play-state",
99
+ "animation-timing-function",
100
+ "animation-delay",
101
+ "animation-iteration-count",
102
+ "animation-direction",
103
+ "transition",
104
+ "transition-delay",
105
+ "transition-duration",
106
+ "transition-property",
107
+ "transition-timing-function",
108
+ "will-change",
109
+ "counter-increment",
110
+ "counter-reset",
111
+ "cursor",
112
+
113
+ "box-sizing",
114
+ "margin",
115
+ "margin-top",
116
+ "margin-right",
117
+ "margin-bottom",
118
+ "margin-left",
119
+ "margin-inline-start",
120
+ "margin-inline-end",
121
+ "margin-block-start",
122
+ "margin-block-end",
123
+ "outline",
124
+ "outline-color",
125
+ "outline-offset",
126
+ "outline-style",
127
+ "outline-width",
128
+ "box-shadow",
129
+ "border",
130
+ "border-top",
131
+ "border-right",
132
+ "border-bottom",
133
+ "border-left",
134
+ "border-width",
135
+ "border-top-width",
136
+ "border-right-width",
137
+ "border-bottom-width",
138
+ "border-left-width",
139
+ "border-style",
140
+ "border-top-style",
141
+ "border-right-style",
142
+ "border-bottom-style",
143
+ "border-left-style",
144
+ "border-radius",
145
+ "border-top-right-radius",
146
+ "border-top-left-radius",
147
+ "border-bottom-right-radius",
148
+ "border-bottom-left-radius",
149
+ "border-color",
150
+ "border-top-color",
151
+ "border-right-color",
152
+ "border-bottom-color",
153
+ "border-left-color",
154
+ "border-inline-start",
155
+ "border-inline-start-color",
156
+ "border-inline-start-style",
157
+ "border-inline-start-width",
158
+ "border-inline-end",
159
+ "border-inline-end-color",
160
+ "border-inline-end-style",
161
+ "border-inline-end-width",
162
+ "border-block-start",
163
+ "border-block-start-color",
164
+ "border-block-start-style",
165
+ "border-block-start-width",
166
+ "border-block-end",
167
+ "border-block-end-color",
168
+ "border-block-end-style",
169
+ "border-block-end-width",
170
+ "border-image",
171
+ "border-image-outset",
172
+ "border-image-repeat",
173
+ "border-image-slice",
174
+ "border-image-source",
175
+ "border-image-width",
176
+ "border-collapse",
177
+ "border-spacing",
178
+ "background",
179
+ "background-attachment",
180
+ "background-blend-mode",
181
+ "background-clip",
182
+ "background-color",
183
+ "background-image",
184
+ "background-origin",
185
+ "background-position",
186
+ "background-position-x",
187
+ "background-position-y",
188
+ "background-repeat",
189
+ "background-size",
190
+ "isolation",
191
+ "padding",
192
+ "padding-top",
193
+ "padding-right",
194
+ "padding-bottom",
195
+ "padding-left",
196
+ "padding-inline-start",
197
+ "padding-inline-end",
198
+ "padding-block-start",
199
+ "padding-block-end",
200
+ "image-orientation",
201
+ "image-rendering",
202
+
203
+ "width",
204
+ "min-width",
205
+ "max-width",
206
+ "height",
207
+ "min-height",
208
+ "max-height",
209
+ "inline-size",
210
+ "min-inline-size",
211
+ "max-inline-size",
212
+ "block-size",
213
+ "min-block-size",
214
+ "max-block-size",
215
+ "table-layout",
216
+ "caption-side",
217
+ "empty-cells",
218
+ "overflow",
219
+ "overflow-x",
220
+ "overflow-y",
221
+ "resize",
222
+ "object-fit",
223
+ "object-position",
224
+ "scroll-behavior",
225
+ "scroll-snap-coordinate",
226
+ "scroll-snap-destination",
227
+ "scroll-snap-type",
228
+ "touch-action",
229
+ "pointer-events",
230
+
231
+ "ruby-align",
232
+ "ruby-position",
233
+ "color",
234
+ "caret-color",
235
+ "font",
236
+ "font-family",
237
+ "font-feature-settings",
238
+ "font-kerning",
239
+ "font-language-override",
240
+ "font-size",
241
+ "font-optical-sizing",
242
+ "font-size-adjust",
243
+ "font-stretch",
244
+ "font-style",
245
+ "font-synthesis",
246
+ "font-variant",
247
+ "font-variant-alternates",
248
+ "font-variant-caps",
249
+ "font-variant-east-asian",
250
+ "font-variant-ligatures",
251
+ "font-variant-numeric",
252
+ "font-variant-position",
253
+ "font-weight",
254
+ "hyphens",
255
+ "initial-letter",
256
+ "initial-letter-align",
257
+ "letter-spacing",
258
+ "line-break",
259
+ "line-height",
260
+ "list-style",
261
+ "list-style-image",
262
+ "list-style-position",
263
+ "list-style-type",
264
+ "writing-mode",
265
+ "direction",
266
+ "unicode-bidi",
267
+ "unicode-range",
268
+ "user-select",
269
+ "text-combine-upright",
270
+ "text-align",
271
+ "text-align-last",
272
+ "text-decoration",
273
+ "text-decoration-color",
274
+ "text-decoration-line",
275
+ "text-decoration-skip",
276
+ "text-decoration-style",
277
+ "text-decoration-skip-ink",
278
+ "text-emphasis",
279
+ "text-emphasis-position",
280
+ "text-emphasis-color",
281
+ "text-emphasis-style",
282
+ "text-indent",
283
+ "text-justify",
284
+ "text-underline-position",
285
+ "text-orientation",
286
+ "text-overflow",
287
+ "text-rendering",
288
+ "text-shadow",
289
+ "text-size-adjust",
290
+ "text-transform",
291
+ "white-space",
292
+ "word-break",
293
+ "word-spacing",
294
+ "overflow-wrap",
295
+ "quotes",
296
+ "tab-size",
297
+ "content",
298
+ "widows"
299
+ ]
@@ -0,0 +1,299 @@
1
+ [
2
+ "box-sizing",
3
+ "display",
4
+ "visibility",
5
+ "z-index",
6
+ "position",
7
+ "top",
8
+ "right",
9
+ "bottom",
10
+ "left",
11
+ "offset-inline-start",
12
+ "offset-inline-end",
13
+ "offset-block-start",
14
+ "offset-block-end",
15
+ "grid",
16
+ "grid-area",
17
+ "grid-auto-columns",
18
+ "grid-auto-flow",
19
+ "grid-auto-rows",
20
+ "grid-column",
21
+ "grid-column-end",
22
+ "grid-column-start",
23
+ "grid-row",
24
+ "grid-row-end",
25
+ "grid-row-start",
26
+ "grid-template",
27
+ "grid-template-areas",
28
+ "grid-template-columns",
29
+ "grid-template-rows",
30
+ "flex",
31
+ "flex-basis",
32
+ "flex-direction",
33
+ "flex-flow",
34
+ "flex-grow",
35
+ "flex-shrink",
36
+ "flex-wrap",
37
+ "box-decoration-break",
38
+ "place-content",
39
+ "place-items",
40
+ "place-self",
41
+ "align-content",
42
+ "align-items",
43
+ "align-self",
44
+ "justify-content",
45
+ "justify-items",
46
+ "justify-self",
47
+ "order",
48
+ "width",
49
+ "min-width",
50
+ "max-width",
51
+ "height",
52
+ "min-height",
53
+ "max-height",
54
+ "inline-size",
55
+ "min-inline-size",
56
+ "max-inline-size",
57
+ "block-size",
58
+ "min-block-size",
59
+ "max-block-size",
60
+ "margin",
61
+ "margin-top",
62
+ "margin-right",
63
+ "margin-bottom",
64
+ "margin-left",
65
+ "margin-inline-start",
66
+ "margin-inline-end",
67
+ "margin-block-start",
68
+ "margin-block-end",
69
+ "padding",
70
+ "padding-top",
71
+ "padding-right",
72
+ "padding-bottom",
73
+ "padding-left",
74
+ "padding-inline-start",
75
+ "padding-inline-end",
76
+ "padding-block-start",
77
+ "padding-block-end",
78
+ "float",
79
+ "clear",
80
+ "overflow",
81
+ "overflow-x",
82
+ "overflow-y",
83
+ "orphans",
84
+ "columns",
85
+ "column-gap",
86
+ "column-fill",
87
+ "column-rule",
88
+ "column-rule-color",
89
+ "column-rule-style",
90
+ "column-rule-width",
91
+ "column-span",
92
+ "column-count",
93
+ "column-width",
94
+ "object-fit",
95
+ "object-position",
96
+ "transform",
97
+ "transform-box",
98
+ "transform-origin",
99
+ "transform-style",
100
+ "rotate",
101
+ "scale",
102
+
103
+ "border",
104
+ "border-top",
105
+ "border-right",
106
+ "border-bottom",
107
+ "border-left",
108
+ "border-width",
109
+ "border-top-width",
110
+ "border-right-width",
111
+ "border-bottom-width",
112
+ "border-left-width",
113
+ "border-style",
114
+ "border-top-style",
115
+ "border-right-style",
116
+ "border-bottom-style",
117
+ "border-left-style",
118
+ "border-radius",
119
+ "border-top-right-radius",
120
+ "border-top-left-radius",
121
+ "border-bottom-right-radius",
122
+ "border-bottom-left-radius",
123
+ "border-inline-start",
124
+ "border-inline-start-color",
125
+ "border-inline-start-style",
126
+ "border-inline-start-width",
127
+ "border-inline-end",
128
+ "border-inline-end-color",
129
+ "border-inline-end-style",
130
+ "border-inline-end-width",
131
+ "border-block-start",
132
+ "border-block-start-color",
133
+ "border-block-start-style",
134
+ "border-block-start-width",
135
+ "border-block-end",
136
+ "border-block-end-color",
137
+ "border-block-end-style",
138
+ "border-block-end-width",
139
+ "border-color",
140
+ "border-image",
141
+ "border-image-outset",
142
+ "border-image-repeat",
143
+ "border-image-slice",
144
+ "border-image-source",
145
+ "border-image-width",
146
+ "border-top-color",
147
+ "border-right-color",
148
+ "border-bottom-color",
149
+ "border-left-color",
150
+ "border-collapse",
151
+ "border-spacing",
152
+ "outline",
153
+ "outline-color",
154
+ "outline-offset",
155
+ "outline-style",
156
+ "outline-width",
157
+
158
+ "backdrop-filter",
159
+ "backface-visibility",
160
+ "background",
161
+ "background-attachment",
162
+ "background-blend-mode",
163
+ "background-clip",
164
+ "background-color",
165
+ "background-image",
166
+ "background-origin",
167
+ "background-position",
168
+ "background-position-x",
169
+ "background-position-y",
170
+ "background-repeat",
171
+ "background-size",
172
+ "box-shadow",
173
+ "isolation",
174
+
175
+ "ruby-align",
176
+ "ruby-position",
177
+ "color",
178
+ "caret-color",
179
+ "font",
180
+ "font-family",
181
+ "font-feature-settings",
182
+ "font-kerning",
183
+ "font-language-override",
184
+ "font-size",
185
+ "font-optical-sizing",
186
+ "font-size-adjust",
187
+ "font-stretch",
188
+ "font-style",
189
+ "font-synthesis",
190
+ "font-variant",
191
+ "font-variant-alternates",
192
+ "font-variant-caps",
193
+ "font-variant-east-asian",
194
+ "font-variant-ligatures",
195
+ "font-variant-numeric",
196
+ "font-variant-position",
197
+ "font-weight",
198
+ "hyphens",
199
+ "initial-letter",
200
+ "initial-letter-align",
201
+ "letter-spacing",
202
+ "line-break",
203
+ "line-height",
204
+ "list-style",
205
+ "list-style-image",
206
+ "list-style-position",
207
+ "list-style-type",
208
+ "direction",
209
+ "text-align",
210
+ "text-align-last",
211
+ "text-decoration",
212
+ "text-decoration-color",
213
+ "text-decoration-line",
214
+ "text-decoration-skip",
215
+ "text-decoration-style",
216
+ "text-decoration-skip-ink",
217
+ "text-emphasis",
218
+ "text-emphasis-position",
219
+ "text-emphasis-color",
220
+ "text-emphasis-style",
221
+ "text-indent",
222
+ "text-justify",
223
+ "text-underline-position",
224
+ "text-orientation",
225
+ "text-overflow",
226
+ "text-rendering",
227
+ "text-shadow",
228
+ "text-size-adjust",
229
+ "text-transform",
230
+ "vertical-align",
231
+ "white-space",
232
+ "word-break",
233
+ "word-spacing",
234
+ "overflow-wrap",
235
+
236
+ "all",
237
+ "animation",
238
+ "animation-name",
239
+ "animation-duration",
240
+ "animation-fill-mode",
241
+ "animation-play-state",
242
+ "animation-timing-function",
243
+ "animation-delay",
244
+ "animation-iteration-count",
245
+ "animation-direction",
246
+ "mix-blend-mode",
247
+ "break-before",
248
+ "break-after",
249
+ "break-inside",
250
+ "page-break-before",
251
+ "page-break-after",
252
+ "page-break-inside",
253
+ "caption-side",
254
+ "clip-path",
255
+ "content",
256
+ "counter-increment",
257
+ "counter-reset",
258
+ "cursor",
259
+ "empty-cells",
260
+ "filter",
261
+ "image-orientation",
262
+ "image-rendering",
263
+ "mask",
264
+ "mask-clip",
265
+ "mask-image",
266
+ "mask-origin",
267
+ "mask-position",
268
+ "mask-repeat",
269
+ "mask-size",
270
+ "mask-type",
271
+ "opacity",
272
+ "perspective",
273
+ "perspective-origin",
274
+ "pointer-events",
275
+ "quotes",
276
+ "resize",
277
+ "scroll-behavior",
278
+ "scroll-snap-coordinate",
279
+ "scroll-snap-destination",
280
+ "scroll-snap-type",
281
+ "shape-image-threshold",
282
+ "shape-margin",
283
+ "shape-outside",
284
+ "tab-size",
285
+ "table-layout",
286
+ "text-combine-upright",
287
+ "touch-action",
288
+ "transition",
289
+ "transition-delay",
290
+ "transition-duration",
291
+ "transition-property",
292
+ "transition-timing-function",
293
+ "will-change",
294
+ "unicode-bidi",
295
+ "unicode-range",
296
+ "user-select",
297
+ "widows",
298
+ "writing-mode"
299
+ ]