tailwindcss 0.0.0-insiders.c03f9ad → 0.0.0-insiders.c42ffc1

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 (46) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/lib/cli.js +11 -14
  3. package/lib/corePluginList.js +6 -0
  4. package/lib/corePlugins.js +334 -51
  5. package/lib/featureFlags.js +2 -2
  6. package/lib/lib/expandTailwindAtRules.js +13 -26
  7. package/lib/lib/generateRules.js +57 -10
  8. package/lib/lib/normalizeTailwindDirectives.js +3 -2
  9. package/lib/lib/setupContextUtils.js +146 -121
  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 +6 -9
  15. package/lib/util/log.js +30 -18
  16. package/lib/util/normalizeConfig.js +194 -0
  17. package/lib/util/parseAnimationValue.js +7 -1
  18. package/lib/util/parseDependency.js +3 -0
  19. package/lib/util/pluginUtils.js +22 -18
  20. package/lib/util/resolveConfig.js +6 -69
  21. package/lib/util/withAlphaVariable.js +29 -14
  22. package/package.json +3 -3
  23. package/peers/index.js +758 -617
  24. package/scripts/create-plugin-list.js +2 -2
  25. package/src/cli.js +18 -16
  26. package/src/corePluginList.js +1 -1
  27. package/src/corePlugins.js +193 -55
  28. package/src/featureFlags.js +2 -2
  29. package/src/lib/expandTailwindAtRules.js +13 -28
  30. package/src/lib/generateRules.js +73 -8
  31. package/src/lib/normalizeTailwindDirectives.js +3 -2
  32. package/src/lib/setupContextUtils.js +134 -113
  33. package/src/lib/setupTrackingContext.js +8 -8
  34. package/src/lib/setupWatchingContext.js +4 -7
  35. package/src/lib/sharedState.js +0 -3
  36. package/src/processTailwindFeatures.js +1 -1
  37. package/src/public/colors.js +6 -10
  38. package/src/util/log.js +18 -21
  39. package/src/util/normalizeConfig.js +233 -0
  40. package/src/util/parseAnimationValue.js +7 -1
  41. package/src/util/parseDependency.js +4 -0
  42. package/src/util/pluginUtils.js +25 -17
  43. package/src/util/resolveConfig.js +5 -64
  44. package/src/util/withAlphaVariable.js +13 -8
  45. package/stubs/defaultConfig.stub.js +44 -38
  46. 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,24 @@ 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))
34
+ - Add `[open]` variant ([#5627](https://github.com/tailwindlabs/tailwindcss/pull/5627))
28
35
 
29
36
  ### Fixed
30
37
 
31
38
  - Fix defining colors as functions when color opacity plugins are disabled ([#5470](https://github.com/tailwindlabs/tailwindcss/pull/5470))
39
+ - Fix using negated `content` globs ([#5625](https://github.com/tailwindlabs/tailwindcss/pull/5625))
40
+ - Fix using backslashes in `content` globs ([#5628](https://github.com/tailwindlabs/tailwindcss/pull/5628))
41
+
42
+ ## [2.2.16] - 2021-09-26
43
+
44
+ ### Fixed
45
+
46
+ - JIT: Properly handle animations that use CSS custom properties ([#5602](https://github.com/tailwindlabs/tailwindcss/pull/5602))
32
47
 
33
48
  ## [2.2.15] - 2021-09-10
34
49
 
@@ -1582,7 +1597,8 @@ No release notes
1582
1597
 
1583
1598
  - Everything!
1584
1599
 
1585
- [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.15...HEAD
1600
+ [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.16...HEAD
1601
+ [2.2.16]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.15...v2.2.16
1586
1602
  [2.2.15]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.14...v2.2.15
1587
1603
  [2.2.14]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.13...v2.2.14
1588
1604
  [2.2.13]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.12...v2.2.13
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
  });
@@ -45,8 +45,14 @@ var _default = [
45
45
  "transform",
46
46
  "animation",
47
47
  "cursor",
48
+ "touchAction",
48
49
  "userSelect",
49
50
  "resize",
51
+ "scrollSnapType",
52
+ "scrollSnapAlign",
53
+ "scrollSnapStop",
54
+ "scrollMargin",
55
+ "scrollPadding",
50
56
  "listStylePosition",
51
57
  "listStyleType",
52
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,9 +272,9 @@ var _default = {
255
272
  let mode = config('darkMode', 'media');
256
273
  if (mode === false) {
257
274
  mode = 'media';
258
- _log.default.warn([
259
- '`darkMode` is set to `false` in your config.',
260
- 'This will behave just like the `media` value.',
275
+ _log.default.warn('darkmode-false', [
276
+ 'The `darkMode` option in your Tailwind CSS configuration is set to `false`, which now behaves the same as `media`.',
277
+ 'Change `darkMode` to `media` or remove it entirely.',
261
278
  ]);
262
279
  }
263
280
  if (mode === 'class') {
@@ -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,37 +1060,66 @@ 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')
1072
1086
  });
1073
1087
  },
1074
1088
  cursor: (0, _createUtilityPlugin).default('cursor'),
1089
+ touchAction: ({ addUtilities })=>{
1090
+ addUtilities({
1091
+ '.touch-auto': {
1092
+ 'touch-action': 'auto'
1093
+ },
1094
+ '.touch-none': {
1095
+ 'touch-action': 'none'
1096
+ },
1097
+ '.touch-pan-x': {
1098
+ 'touch-action': 'pan-x'
1099
+ },
1100
+ '.touch-pan-left': {
1101
+ 'touch-action': 'pan-left'
1102
+ },
1103
+ '.touch-pan-right': {
1104
+ 'touch-action': 'pan-right'
1105
+ },
1106
+ '.touch-pan-y': {
1107
+ 'touch-action': 'pan-y'
1108
+ },
1109
+ '.touch-pan-up': {
1110
+ 'touch-action': 'pan-up'
1111
+ },
1112
+ '.touch-pan-down': {
1113
+ 'touch-action': 'pan-down'
1114
+ },
1115
+ '.touch-pinch-zoom': {
1116
+ 'touch-action': 'pinch-zoom'
1117
+ },
1118
+ '.touch-manipulation': {
1119
+ 'touch-action': 'manipulation'
1120
+ }
1121
+ });
1122
+ },
1075
1123
  userSelect: ({ addUtilities })=>{
1076
1124
  addUtilities({
1077
1125
  '.select-none': {
@@ -1104,6 +1152,165 @@ var _default = {
1104
1152
  }
1105
1153
  });
1106
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
+ ]),
1107
1314
  listStylePosition: ({ addUtilities })=>{
1108
1315
  addUtilities({
1109
1316
  '.list-inside': {
@@ -1632,6 +1839,9 @@ var _default = {
1632
1839
  '.overflow-hidden': {
1633
1840
  overflow: 'hidden'
1634
1841
  },
1842
+ '.overflow-clip': {
1843
+ overflow: 'clip'
1844
+ },
1635
1845
  '.overflow-visible': {
1636
1846
  overflow: 'visible'
1637
1847
  },
@@ -1650,6 +1860,12 @@ var _default = {
1650
1860
  '.overflow-y-hidden': {
1651
1861
  'overflow-y': 'hidden'
1652
1862
  },
1863
+ '.overflow-x-clip': {
1864
+ 'overflow-x': 'clip'
1865
+ },
1866
+ '.overflow-y-clip': {
1867
+ 'overflow-y': 'clip'
1868
+ },
1653
1869
  '.overflow-x-visible': {
1654
1870
  'overflow-x': 'visible'
1655
1871
  },
@@ -1715,7 +1931,10 @@ var _default = {
1715
1931
  '.overflow-ellipsis': {
1716
1932
  'text-overflow': 'ellipsis'
1717
1933
  },
1718
- '.overflow-clip': {
1934
+ '.text-ellipsis': {
1935
+ 'text-overflow': 'ellipsis'
1936
+ },
1937
+ '.text-clip': {
1719
1938
  'text-overflow': 'clip'
1720
1939
  }
1721
1940
  });
@@ -1829,6 +2048,32 @@ var _default = {
1829
2048
  'border-width'
1830
2049
  ]
1831
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
+ ],
1832
2077
  [
1833
2078
  [
1834
2079
  'border-t',
@@ -1940,6 +2185,44 @@ var _default = {
1940
2185
  'color'
1941
2186
  ]
1942
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
+ });
1943
2226
  matchUtilities({
1944
2227
  'border-t': (value)=>{
1945
2228
  if (!corePlugins('borderOpacity')) {
@@ -3245,4 +3528,4 @@ var _default = {
3245
3528
  ]),
3246
3529
  content: (0, _createUtilityPlugin).default('content')
3247
3530
  };
3248
- exports.default = _default;
3531
+ exports.corePlugins = corePlugins;