tailwindcss 0.0.0-insiders.4efc597 → 0.0.0-insiders.55cf564

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 (44) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/cli.js +11 -14
  3. package/lib/corePluginList.js +5 -0
  4. package/lib/corePlugins.js +298 -49
  5. package/lib/featureFlags.js +1 -1
  6. package/lib/lib/expandTailwindAtRules.js +13 -26
  7. package/lib/lib/generateRules.js +59 -10
  8. package/lib/lib/normalizeTailwindDirectives.js +1 -1
  9. package/lib/lib/setupContextUtils.js +154 -120
  10. package/lib/lib/setupTrackingContext.js +9 -6
  11. package/lib/lib/setupWatchingContext.js +5 -5
  12. package/lib/lib/sharedState.js +1 -11
  13. package/lib/processTailwindFeatures.js +1 -1
  14. package/lib/public/colors.js +4 -8
  15. package/lib/util/log.js +30 -18
  16. package/lib/util/normalizeConfig.js +194 -0
  17. package/lib/util/parseDependency.js +3 -0
  18. package/lib/util/pluginUtils.js +22 -18
  19. package/lib/util/resolveConfig.js +6 -69
  20. package/lib/util/withAlphaVariable.js +29 -14
  21. package/package.json +3 -3
  22. package/peers/index.js +758 -617
  23. package/scripts/create-plugin-list.js +2 -2
  24. package/src/cli.js +18 -16
  25. package/src/corePluginList.js +1 -1
  26. package/src/corePlugins.js +176 -53
  27. package/src/featureFlags.js +1 -1
  28. package/src/lib/expandTailwindAtRules.js +13 -28
  29. package/src/lib/generateRules.js +80 -8
  30. package/src/lib/normalizeTailwindDirectives.js +1 -1
  31. package/src/lib/setupContextUtils.js +144 -112
  32. package/src/lib/setupTrackingContext.js +8 -8
  33. package/src/lib/setupWatchingContext.js +4 -7
  34. package/src/lib/sharedState.js +0 -3
  35. package/src/processTailwindFeatures.js +1 -1
  36. package/src/public/colors.js +4 -9
  37. package/src/util/log.js +18 -21
  38. package/src/util/normalizeConfig.js +232 -0
  39. package/src/util/parseDependency.js +4 -0
  40. package/src/util/pluginUtils.js +25 -17
  41. package/src/util/resolveConfig.js +5 -64
  42. package/src/util/withAlphaVariable.js +13 -8
  43. package/stubs/defaultConfig.stub.js +42 -37
  44. package/stubs/simpleConfig.stub.js +0 -1
package/CHANGELOG.md CHANGED
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
  - Remove dependency on `modern-normalize`, inline and consolidate with Preflight ([#5358](https://github.com/tailwindlabs/tailwindcss/pull/5358))
15
15
  - Enable extended color palette by default with updated color names ([#5384](https://github.com/tailwindlabs/tailwindcss/pull/5384))
16
16
  - Move `vertical-align` values to config file instead of hard-coding ([#5487](https://github.com/tailwindlabs/tailwindcss/pull/5487))
17
+ - Rename `overflow-clip` to `text-clip` and `overflow-ellipsis` to `text-ellipsis` ([#5630](https://github.com/tailwindlabs/tailwindcss/pull/5630))
17
18
 
18
19
  ### Added
19
20
 
@@ -25,10 +26,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
25
26
  - Add `align-sub` and `align-super` utilities by default ([#5486](https://github.com/tailwindlabs/tailwindcss/pull/5486))
26
27
  - Add `break-before`, `break-inside` and `break-after` utilities ([#5530](https://github.com/tailwindlabs/tailwindcss/pull/5530))
27
28
  - Add `file` variant for `::file-selector-button` pseudo element ([#4936](https://github.com/tailwindlabs/tailwindcss/pull/4936))
29
+ - Add `touch-action` utilities ([#5603](https://github.com/tailwindlabs/tailwindcss/pull/5603))
30
+ - Add `inherit` to default color palette ([#5597](https://github.com/tailwindlabs/tailwindcss/pull/5597))
31
+ - Add `overflow-clip`, `overflow-x-clip` and `overflow-y-clip` utilities ([#5630](https://github.com/tailwindlabs/tailwindcss/pull/5630))
32
+ - Add `scroll-snap` utilities ([#5637](https://github.com/tailwindlabs/tailwindcss/pull/5637))
33
+ - Add `border-x` and `border-y` width and color utilities ([#5639](https://github.com/tailwindlabs/tailwindcss/pull/5639))
28
34
 
29
35
  ### Fixed
30
36
 
31
37
  - Fix defining colors as functions when color opacity plugins are disabled ([#5470](https://github.com/tailwindlabs/tailwindcss/pull/5470))
38
+ - Fix using negated `content` globs ([#5625](https://github.com/tailwindlabs/tailwindcss/pull/5625))
39
+ - Fix using backslashes in `content` globs ([#5628](https://github.com/tailwindlabs/tailwindcss/pull/5628))
32
40
 
33
41
  ## [2.2.16] - 2021-09-26
34
42
 
package/lib/cli.js CHANGED
@@ -15,6 +15,7 @@ var _fastGlob = _interopRequireDefault(require("fast-glob"));
15
15
  var _getModuleDependencies = _interopRequireDefault(require("./lib/getModuleDependencies"));
16
16
  var _log = _interopRequireDefault(require("./util/log"));
17
17
  var _packageJson = _interopRequireDefault(require("../package.json"));
18
+ var _normalizePath = _interopRequireDefault(require("normalize-path"));
18
19
  function _interopRequireDefault(obj) {
19
20
  return obj && obj.__esModule ? obj : {
20
21
  default: obj
@@ -386,14 +387,12 @@ async function build() {
386
387
  };
387
388
  let resolvedConfig = (0, _resolveConfig).default(config);
388
389
  if (args['--purge']) {
389
- _log.default.warn([
390
+ _log.default.warn('purge-flag-deprecated', [
390
391
  'The `--purge` flag has been deprecated.',
391
- 'Please use `--content` instead.'
392
+ 'Please use `--content` instead.',
392
393
  ]);
393
394
  if (!args['--content']) {
394
- args['--content'] = [
395
- '--purge'
396
- ];
395
+ args['--content'] = args['--purge'];
397
396
  }
398
397
  }
399
398
  if (args['--content']) {
@@ -401,19 +400,17 @@ async function build() {
401
400
  }
402
401
  return resolvedConfig;
403
402
  }
404
- function extractContent(config) {
405
- return config.content.content.concat(config.content.safelist);
406
- }
407
403
  function extractFileGlobs(config) {
408
- return extractContent(config).filter((file)=>{
404
+ return config.content.files.filter((file)=>{
409
405
  // Strings in this case are files / globs. If it is something else,
410
406
  // like an object it's probably a raw content object. But this object
411
407
  // is not watchable, so let's remove it.
412
408
  return typeof file === 'string';
413
- });
409
+ }).map((glob)=>(0, _normalizePath).default(glob)
410
+ );
414
411
  }
415
412
  function extractRawContent(config) {
416
- return extractContent(config).filter((file)=>{
413
+ return config.content.files.filter((file)=>{
417
414
  return typeof file === 'object' && file !== null;
418
415
  });
419
416
  }
@@ -425,7 +422,7 @@ async function build() {
425
422
  for (let file of files){
426
423
  changedContent.push({
427
424
  content: _fs.default.readFileSync(_path.default.resolve(file), 'utf8'),
428
- extension: _path.default.extname(file)
425
+ extension: _path.default.extname(file).slice(1)
429
426
  });
430
427
  }
431
428
  // Resolve raw content in the tailwind config
@@ -674,7 +671,7 @@ async function build() {
674
671
  chain = chain.then(async ()=>{
675
672
  changedContent.push({
676
673
  content: _fs.default.readFileSync(_path.default.resolve(file), 'utf8'),
677
- extension: _path.default.extname(file)
674
+ extension: _path.default.extname(file).slice(1)
678
675
  });
679
676
  await rebuild(config);
680
677
  });
@@ -684,7 +681,7 @@ async function build() {
684
681
  chain = chain.then(async ()=>{
685
682
  changedContent.push({
686
683
  content: _fs.default.readFileSync(_path.default.resolve(file), 'utf8'),
687
- extension: _path.default.extname(file)
684
+ extension: _path.default.extname(file).slice(1)
688
685
  });
689
686
  await rebuild(config);
690
687
  });
@@ -48,6 +48,11 @@ var _default = [
48
48
  "touchAction",
49
49
  "userSelect",
50
50
  "resize",
51
+ "scrollSnapType",
52
+ "scrollSnapAlign",
53
+ "scrollSnapStop",
54
+ "scrollMargin",
55
+ "scrollPadding",
51
56
  "listStylePosition",
52
57
  "listStyleType",
53
58
  "appearance",
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- exports.default = void 0;
5
+ exports.variantPlugins = exports.corePlugins = void 0;
6
6
  var _fs = _interopRequireDefault(require("fs"));
7
7
  var _postcss = _interopRequireDefault(require("postcss"));
8
8
  var _createUtilityPlugin = _interopRequireDefault(require("./util/createUtilityPlugin"));
@@ -15,7 +15,7 @@ var _toColorValue = _interopRequireDefault(require("./util/toColorValue"));
15
15
  var _isPlainObject = _interopRequireDefault(require("./util/isPlainObject"));
16
16
  var _transformThemeValue = _interopRequireDefault(require("./util/transformThemeValue"));
17
17
  var _pluginUtils = require("./util/pluginUtils");
18
- var _packageJson = _interopRequireDefault(require("../package.json"));
18
+ var _packageJson = require("../package.json");
19
19
  var _log = _interopRequireDefault(require("./util/log"));
20
20
  function _interopRequireDefault(obj) {
21
21
  return obj && obj.__esModule ? obj : {
@@ -45,8 +45,7 @@ function _interopRequireWildcard(obj) {
45
45
  return newObj;
46
46
  }
47
47
  }
48
- var _default = {
49
- // Variant plugins
48
+ let variantPlugins = {
50
49
  pseudoElementVariants: ({ config , addVariant })=>{
51
50
  addVariant('first-letter', (0, _pluginUtils).transformAllSelectors((selector)=>{
52
51
  return (0, _pluginUtils).updateAllClasses(selector, (className, { withPseudo })=>{
@@ -131,23 +130,23 @@ var _default = {
131
130
  // Positional
132
131
  [
133
132
  'first',
134
- 'first-child'
133
+ ':first-child'
135
134
  ],
136
135
  [
137
136
  'last',
138
- 'last-child'
137
+ ':last-child'
139
138
  ],
140
139
  [
141
140
  'only',
142
- 'only-child'
141
+ ':only-child'
143
142
  ],
144
143
  [
145
144
  'odd',
146
- 'nth-child(odd)'
145
+ ':nth-child(odd)'
147
146
  ],
148
147
  [
149
148
  'even',
150
- 'nth-child(even)'
149
+ ':nth-child(even)'
151
150
  ],
152
151
  'first-of-type',
153
152
  'last-of-type',
@@ -155,6 +154,10 @@ var _default = {
155
154
  // State
156
155
  'visited',
157
156
  'target',
157
+ [
158
+ 'open',
159
+ '[open]'
160
+ ],
158
161
  // Forms
159
162
  'default',
160
163
  'checked',
@@ -180,17 +183,21 @@ var _default = {
180
183
  for (let variant of pseudoVariants){
181
184
  let [variantName, state] = Array.isArray(variant) ? variant : [
182
185
  variant,
183
- variant
186
+ `:${variant}`
184
187
  ];
185
- addVariant(variantName, (0, _pluginUtils).transformAllClasses((className, { withPseudo })=>{
186
- return withPseudo(`${variantName}${config('separator')}${className}`, `:${state}`);
188
+ addVariant(variantName, (0, _pluginUtils).transformAllClasses((className, { withAttr , withPseudo })=>{
189
+ if (state.startsWith(':')) {
190
+ return withPseudo(`${variantName}${config('separator')}${className}`, state);
191
+ } else if (state.startsWith('[')) {
192
+ return withAttr(`${variantName}${config('separator')}${className}`, state);
193
+ }
187
194
  }));
188
195
  }
189
196
  let groupMarker = (0, _prefixSelector).default(config('prefix'), '.group');
190
197
  for (let variant1 of pseudoVariants){
191
198
  let [variantName, state] = Array.isArray(variant1) ? variant1 : [
192
199
  variant1,
193
- variant1
200
+ `:${variant1}`
194
201
  ];
195
202
  let groupVariantName = `group-${variantName}`;
196
203
  addVariant(groupVariantName, (0, _pluginUtils).transformAllSelectors((selector)=>{
@@ -201,7 +208,7 @@ var _default = {
201
208
  if (variantSelector === selector) {
202
209
  return null;
203
210
  }
204
- return (0, _pluginUtils).applyPseudoToMarker(variantSelector, groupMarker, state, (marker, selector)=>`${marker} ${selector}`
211
+ return (0, _pluginUtils).applyStateToMarker(variantSelector, groupMarker, state, (marker, selector)=>`${marker} ${selector}`
205
212
  );
206
213
  }));
207
214
  }
@@ -209,7 +216,7 @@ var _default = {
209
216
  for (let variant2 of pseudoVariants){
210
217
  let [variantName, state] = Array.isArray(variant2) ? variant2 : [
211
218
  variant2,
212
- variant2
219
+ `:${variant2}`
213
220
  ];
214
221
  let peerVariantName = `peer-${variantName}`;
215
222
  addVariant(peerVariantName, (0, _pluginUtils).transformAllSelectors((selector)=>{
@@ -220,18 +227,28 @@ var _default = {
220
227
  if (variantSelector === selector) {
221
228
  return null;
222
229
  }
223
- return (0, _pluginUtils).applyPseudoToMarker(variantSelector, peerMarker, state, (marker, selector)=>selector.trim().startsWith('~') ? `${marker}${selector}` : `${marker} ~ ${selector}`
230
+ return (0, _pluginUtils).applyStateToMarker(variantSelector, peerMarker, state, (marker, selector)=>selector.trim().startsWith('~') ? `${marker}${selector}` : `${marker} ~ ${selector}`
224
231
  );
225
232
  }));
226
233
  }
227
234
  },
228
235
  directionVariants: ({ config , addVariant })=>{
229
- addVariant('ltr', (0, _pluginUtils).transformAllSelectors((selector)=>`[dir="ltr"] ${(0, _pluginUtils).updateAllClasses(selector, (className)=>`ltr${config('separator')}${className}`
230
- )}`
231
- ));
232
- addVariant('rtl', (0, _pluginUtils).transformAllSelectors((selector)=>`[dir="rtl"] ${(0, _pluginUtils).updateAllClasses(selector, (className)=>`rtl${config('separator')}${className}`
233
- )}`
234
- ));
236
+ addVariant('ltr', (0, _pluginUtils).transformAllSelectors((selector)=>{
237
+ _log.default.warn('rtl-experimental', [
238
+ 'The RTL features in Tailwind CSS are currently in preview.',
239
+ 'Preview features are not covered by semver, and may be improved in breaking ways at any time.',
240
+ ]);
241
+ return `[dir="ltr"] ${(0, _pluginUtils).updateAllClasses(selector, (className)=>`ltr${config('separator')}${className}`
242
+ )}`;
243
+ }));
244
+ addVariant('rtl', (0, _pluginUtils).transformAllSelectors((selector)=>{
245
+ _log.default.warn('rtl-experimental', [
246
+ 'The RTL features in Tailwind CSS are currently in preview.',
247
+ 'Preview features are not covered by semver, and may be improved in breaking ways at any time.',
248
+ ]);
249
+ return `[dir="rtl"] ${(0, _pluginUtils).updateAllClasses(selector, (className)=>`rtl${config('separator')}${className}`
250
+ )}`;
251
+ }));
235
252
  },
236
253
  reducedMotionVariants: ({ config , addVariant })=>{
237
254
  addVariant('motion-safe', (0, _pluginUtils).transformLastClasses((className)=>{
@@ -255,7 +272,7 @@ var _default = {
255
272
  let mode = config('darkMode', 'media');
256
273
  if (mode === false) {
257
274
  mode = 'media';
258
- _log.default.warn([
275
+ _log.default.warn('darkmode-false', [
259
276
  '`darkMode` is set to `false` in your config.',
260
277
  'This will behave just like the `media` value.',
261
278
  ]);
@@ -295,13 +312,15 @@ var _default = {
295
312
  })
296
313
  }));
297
314
  }
298
- },
299
- // Actual plugins
315
+ }
316
+ };
317
+ exports.variantPlugins = variantPlugins;
318
+ let corePlugins = {
300
319
  preflight: ({ addBase })=>{
301
320
  let preflightStyles = _postcss.default.parse(_fs.default.readFileSync(`${__dirname}/css/preflight.css`, 'utf8'));
302
321
  addBase([
303
322
  _postcss.default.comment({
304
- text: `! tailwindcss v${_packageJson.default.version} | MIT License | https://tailwindcss.com`
323
+ text: `! tailwindcss v${_packageJson.version} | MIT License | https://tailwindcss.com`
305
324
  }),
306
325
  ...preflightStyles.nodes,
307
326
  ]);
@@ -1041,31 +1060,26 @@ var _default = {
1041
1060
  }).map(([key, value])=>{
1042
1061
  return [
1043
1062
  key,
1044
- [
1045
- {
1046
- [`@keyframes ${prefixName(key)}`]: value
1047
- }
1048
- ]
1063
+ {
1064
+ [`@keyframes ${prefixName(key)}`]: value
1065
+ }
1049
1066
  ];
1050
1067
  }));
1051
1068
  matchUtilities({
1052
- animate: (value, { includeRules })=>{
1069
+ animate: (value)=>{
1053
1070
  let animations = (0, _parseAnimationValue).default(value);
1054
- for (let { name } of animations){
1055
- if (keyframes[name] !== undefined) {
1056
- includeRules(keyframes[name], {
1057
- respectImportant: false
1058
- });
1059
- }
1060
- }
1061
- return {
1062
- animation: animations.map(({ name , value })=>{
1063
- if (name === undefined || keyframes[name] === undefined) {
1064
- return value;
1065
- }
1066
- return value.replace(name, prefixName(name));
1067
- }).join(', ')
1068
- };
1071
+ return [
1072
+ ...animations.flatMap((animation)=>keyframes[animation.name]
1073
+ ),
1074
+ {
1075
+ animation: animations.map(({ name , value })=>{
1076
+ if (name === undefined || keyframes[name] === undefined) {
1077
+ return value;
1078
+ }
1079
+ return value.replace(name, prefixName(name));
1080
+ }).join(', ')
1081
+ },
1082
+ ];
1069
1083
  }
1070
1084
  }, {
1071
1085
  values: theme('animation')
@@ -1138,6 +1152,165 @@ var _default = {
1138
1152
  }
1139
1153
  });
1140
1154
  },
1155
+ scrollSnapType: ({ addUtilities , addBase })=>{
1156
+ addBase({
1157
+ '@defaults scroll-snap-type': {
1158
+ '--tw-scroll-snap-strictness': 'proximity'
1159
+ }
1160
+ });
1161
+ addUtilities({
1162
+ '.snap-none': {
1163
+ 'scroll-snap-type': 'none'
1164
+ },
1165
+ '.snap-x': {
1166
+ '@defaults scroll-snap-type': {
1167
+ },
1168
+ 'scroll-snap-type': 'x var(--tw-scroll-snap-strictness)'
1169
+ },
1170
+ '.snap-y': {
1171
+ '@defaults scroll-snap-type': {
1172
+ },
1173
+ 'scroll-snap-type': 'y var(--tw-scroll-snap-strictness)'
1174
+ },
1175
+ '.snap-both': {
1176
+ '@defaults scroll-snap-type': {
1177
+ },
1178
+ 'scroll-snap-type': 'both var(--tw-scroll-snap-strictness)'
1179
+ },
1180
+ '.snap-mandatory': {
1181
+ '--tw-scroll-snap-strictness': 'mandatory'
1182
+ },
1183
+ '.snap-proximity': {
1184
+ '--tw-scroll-snap-strictness': 'proximity'
1185
+ }
1186
+ });
1187
+ },
1188
+ scrollSnapAlign: ({ addUtilities })=>{
1189
+ addUtilities({
1190
+ '.snap-start': {
1191
+ 'scroll-snap-align': 'start'
1192
+ },
1193
+ '.snap-end': {
1194
+ 'scroll-snap-align': 'end'
1195
+ },
1196
+ '.snap-center': {
1197
+ 'scroll-snap-align': 'center'
1198
+ },
1199
+ '.snap-align-none': {
1200
+ 'scroll-snap-align': 'none'
1201
+ }
1202
+ });
1203
+ },
1204
+ scrollSnapStop: ({ addUtilities })=>{
1205
+ addUtilities({
1206
+ '.snap-normal': {
1207
+ 'scroll-snap-stop': 'normal'
1208
+ },
1209
+ '.snap-always': {
1210
+ 'scroll-snap-stop': 'always'
1211
+ }
1212
+ });
1213
+ },
1214
+ scrollMargin: (0, _createUtilityPlugin).default('scrollMargin', [
1215
+ [
1216
+ 'scroll-m',
1217
+ [
1218
+ 'scroll-margin'
1219
+ ]
1220
+ ],
1221
+ [
1222
+ [
1223
+ 'scroll-mx',
1224
+ [
1225
+ 'scroll-margin-left',
1226
+ 'scroll-margin-right'
1227
+ ]
1228
+ ],
1229
+ [
1230
+ 'scroll-my',
1231
+ [
1232
+ 'scroll-margin-top',
1233
+ 'scroll-margin-bottom'
1234
+ ]
1235
+ ],
1236
+ ],
1237
+ [
1238
+ [
1239
+ 'scroll-mt',
1240
+ [
1241
+ 'scroll-margin-top'
1242
+ ]
1243
+ ],
1244
+ [
1245
+ 'scroll-mr',
1246
+ [
1247
+ 'scroll-margin-right'
1248
+ ]
1249
+ ],
1250
+ [
1251
+ 'scroll-mb',
1252
+ [
1253
+ 'scroll-margin-bottom'
1254
+ ]
1255
+ ],
1256
+ [
1257
+ 'scroll-ml',
1258
+ [
1259
+ 'scroll-margin-left'
1260
+ ]
1261
+ ],
1262
+ ],
1263
+ ]),
1264
+ scrollPadding: (0, _createUtilityPlugin).default('scrollPadding', [
1265
+ [
1266
+ 'scroll-p',
1267
+ [
1268
+ 'scroll-padding'
1269
+ ]
1270
+ ],
1271
+ [
1272
+ [
1273
+ 'scroll-px',
1274
+ [
1275
+ 'scroll-padding-left',
1276
+ 'scroll-padding-right'
1277
+ ]
1278
+ ],
1279
+ [
1280
+ 'scroll-py',
1281
+ [
1282
+ 'scroll-padding-top',
1283
+ 'scroll-padding-bottom'
1284
+ ]
1285
+ ],
1286
+ ],
1287
+ [
1288
+ [
1289
+ 'scroll-pt',
1290
+ [
1291
+ 'scroll-padding-top'
1292
+ ]
1293
+ ],
1294
+ [
1295
+ 'scroll-pr',
1296
+ [
1297
+ 'scroll-padding-right'
1298
+ ]
1299
+ ],
1300
+ [
1301
+ 'scroll-pb',
1302
+ [
1303
+ 'scroll-padding-bottom'
1304
+ ]
1305
+ ],
1306
+ [
1307
+ 'scroll-pl',
1308
+ [
1309
+ 'scroll-padding-left'
1310
+ ]
1311
+ ],
1312
+ ],
1313
+ ]),
1141
1314
  listStylePosition: ({ addUtilities })=>{
1142
1315
  addUtilities({
1143
1316
  '.list-inside': {
@@ -1666,6 +1839,9 @@ var _default = {
1666
1839
  '.overflow-hidden': {
1667
1840
  overflow: 'hidden'
1668
1841
  },
1842
+ '.overflow-clip': {
1843
+ overflow: 'clip'
1844
+ },
1669
1845
  '.overflow-visible': {
1670
1846
  overflow: 'visible'
1671
1847
  },
@@ -1684,6 +1860,12 @@ var _default = {
1684
1860
  '.overflow-y-hidden': {
1685
1861
  'overflow-y': 'hidden'
1686
1862
  },
1863
+ '.overflow-x-clip': {
1864
+ 'overflow-x': 'clip'
1865
+ },
1866
+ '.overflow-y-clip': {
1867
+ 'overflow-y': 'clip'
1868
+ },
1687
1869
  '.overflow-x-visible': {
1688
1870
  'overflow-x': 'visible'
1689
1871
  },
@@ -1749,7 +1931,10 @@ var _default = {
1749
1931
  '.overflow-ellipsis': {
1750
1932
  'text-overflow': 'ellipsis'
1751
1933
  },
1752
- '.overflow-clip': {
1934
+ '.text-ellipsis': {
1935
+ 'text-overflow': 'ellipsis'
1936
+ },
1937
+ '.text-clip': {
1753
1938
  'text-overflow': 'clip'
1754
1939
  }
1755
1940
  });
@@ -1863,6 +2048,32 @@ var _default = {
1863
2048
  'border-width'
1864
2049
  ]
1865
2050
  ],
2051
+ [
2052
+ [
2053
+ 'border-x',
2054
+ [
2055
+ [
2056
+ '@defaults border-width',
2057
+ {
2058
+ }
2059
+ ],
2060
+ 'border-left-width',
2061
+ 'border-right-width'
2062
+ ]
2063
+ ],
2064
+ [
2065
+ 'border-y',
2066
+ [
2067
+ [
2068
+ '@defaults border-width',
2069
+ {
2070
+ }
2071
+ ],
2072
+ 'border-top-width',
2073
+ 'border-bottom-width'
2074
+ ]
2075
+ ],
2076
+ ],
1866
2077
  [
1867
2078
  [
1868
2079
  'border-t',
@@ -1974,6 +2185,44 @@ var _default = {
1974
2185
  'color'
1975
2186
  ]
1976
2187
  });
2188
+ matchUtilities({
2189
+ 'border-x': (value)=>{
2190
+ if (!corePlugins('borderOpacity')) {
2191
+ return {
2192
+ 'border-left-color': (0, _toColorValue).default(value),
2193
+ 'border-right-color': (0, _toColorValue).default(value)
2194
+ };
2195
+ }
2196
+ return (0, _withAlphaVariable).default({
2197
+ color: value,
2198
+ property: [
2199
+ 'border-left-color',
2200
+ 'border-right-color'
2201
+ ],
2202
+ variable: '--tw-border-opacity'
2203
+ });
2204
+ },
2205
+ 'border-y': (value)=>{
2206
+ if (!corePlugins('borderOpacity')) {
2207
+ return {
2208
+ 'border-top-color': (0, _toColorValue).default(value),
2209
+ 'border-bottom-color': (0, _toColorValue).default(value)
2210
+ };
2211
+ }
2212
+ return (0, _withAlphaVariable).default({
2213
+ color: value,
2214
+ property: [
2215
+ 'border-top-color',
2216
+ 'border-bottom-color'
2217
+ ],
2218
+ variable: '--tw-border-opacity'
2219
+ });
2220
+ }
2221
+ }, {
2222
+ values: (({ DEFAULT: _ , ...colors })=>colors
2223
+ )((0, _flattenColorPalette).default(theme('borderColor'))),
2224
+ type: 'color'
2225
+ });
1977
2226
  matchUtilities({
1978
2227
  'border-t': (value)=>{
1979
2228
  if (!corePlugins('borderOpacity')) {
@@ -3279,4 +3528,4 @@ var _default = {
3279
3528
  ]),
3280
3529
  content: (0, _createUtilityPlugin).default('content')
3281
3530
  };
3282
- exports.default = _default;
3531
+ exports.corePlugins = corePlugins;
@@ -47,7 +47,7 @@ function issueFlagNotices(config) {
47
47
  if (experimentalFlagsEnabled(config).length > 0) {
48
48
  const changes = experimentalFlagsEnabled(config).map((s)=>_chalk.default.yellow(s)
49
49
  ).join(', ');
50
- _log.default.warn([
50
+ _log.default.warn('experimental-flags-enabled', [
51
51
  `You have enabled experimental features: ${changes}`,
52
52
  'Experimental features are not covered by semver, may introduce breaking changes, and can change at any time.',
53
53
  ]);