tailwindcss 0.0.0-insiders.f679362 → 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.
Files changed (84) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/colors.d.ts +3 -0
  3. package/defaultConfig.d.ts +3 -0
  4. package/defaultTheme.d.ts +3 -0
  5. package/lib/cli-peer-dependencies.js +3 -3
  6. package/lib/cli.js +179 -159
  7. package/lib/constants.js +8 -8
  8. package/lib/corePluginList.js +1 -0
  9. package/lib/corePlugins.js +1555 -1521
  10. package/lib/featureFlags.js +7 -7
  11. package/lib/index.js +8 -8
  12. package/lib/lib/cacheInvalidation.js +3 -3
  13. package/lib/lib/collapseAdjacentRules.js +13 -13
  14. package/lib/lib/collapseDuplicateDeclarations.js +1 -1
  15. package/lib/lib/defaultExtractor.js +2 -2
  16. package/lib/lib/detectNesting.js +9 -9
  17. package/lib/lib/evaluateTailwindFunctions.js +16 -16
  18. package/lib/lib/expandApplyAtRules.js +21 -21
  19. package/lib/lib/expandTailwindAtRules.js +132 -132
  20. package/lib/lib/generateRules.js +84 -69
  21. package/lib/lib/getModuleDependencies.js +14 -14
  22. package/lib/lib/normalizeTailwindDirectives.js +35 -35
  23. package/lib/lib/partitionApplyAtRules.js +7 -7
  24. package/lib/lib/resolveDefaultsAtRules.js +75 -75
  25. package/lib/lib/setupContextUtils.js +75 -61
  26. package/lib/lib/setupTrackingContext.js +57 -57
  27. package/lib/lib/sharedState.js +7 -7
  28. package/lib/lib/substituteScreenAtRules.js +2 -2
  29. package/lib/postcss-plugins/nesting/index.js +1 -1
  30. package/lib/postcss-plugins/nesting/plugin.js +10 -10
  31. package/lib/processTailwindFeatures.js +7 -7
  32. package/lib/public/colors.js +241 -241
  33. package/lib/public/resolve-config.js +5 -5
  34. package/lib/util/buildMediaQuery.js +2 -2
  35. package/lib/util/cloneDeep.js +1 -1
  36. package/lib/util/cloneNodes.js +1 -1
  37. package/lib/util/color.js +21 -20
  38. package/lib/util/createUtilityPlugin.js +6 -6
  39. package/lib/util/dataTypes.js +77 -75
  40. package/lib/util/escapeClassName.js +5 -5
  41. package/lib/util/escapeCommas.js +1 -1
  42. package/lib/util/flattenColorPalette.js +2 -2
  43. package/lib/util/formatVariantSelector.js +19 -19
  44. package/lib/util/getAllConfigs.js +5 -5
  45. package/lib/util/hashConfig.js +5 -5
  46. package/lib/util/isKeyframeRule.js +1 -1
  47. package/lib/util/isPlainObject.js +1 -1
  48. package/lib/util/isValidArbitraryValue.js +27 -27
  49. package/lib/util/log.js +5 -5
  50. package/lib/util/nameClass.js +7 -7
  51. package/lib/util/negateValue.js +4 -4
  52. package/lib/util/normalizeConfig.js +39 -39
  53. package/lib/util/normalizeScreens.js +4 -4
  54. package/lib/util/parseAnimationValue.js +56 -56
  55. package/lib/util/parseBoxShadowValue.js +20 -20
  56. package/lib/util/parseDependency.js +32 -32
  57. package/lib/util/parseObjectStyles.js +6 -6
  58. package/lib/util/pluginUtils.js +9 -9
  59. package/lib/util/prefixSelector.js +1 -1
  60. package/lib/util/resolveConfig.js +32 -32
  61. package/lib/util/resolveConfigPath.js +16 -16
  62. package/lib/util/responsive.js +6 -6
  63. package/lib/util/toColorValue.js +1 -1
  64. package/lib/util/toPath.js +2 -2
  65. package/lib/util/transformThemeValue.js +27 -27
  66. package/lib/util/withAlphaVariable.js +19 -19
  67. package/package.json +23 -20
  68. package/peers/index.js +2707 -1925
  69. package/plugin.d.ts +6 -0
  70. package/scripts/generate-types.js +52 -0
  71. package/src/cli.js +31 -8
  72. package/src/corePluginList.js +1 -1
  73. package/src/corePlugins.js +38 -0
  74. package/src/lib/generateRules.js +62 -43
  75. package/src/lib/setupContextUtils.js +21 -5
  76. package/src/util/color.js +7 -5
  77. package/src/util/dataTypes.js +3 -1
  78. package/stubs/defaultConfig.stub.js +3 -0
  79. package/types/config.d.ts +323 -0
  80. package/types/generated/.gitkeep +0 -0
  81. package/types/generated/colors.d.ts +276 -0
  82. package/types/generated/corePluginList.d.ts +1 -0
  83. package/types/index.d.ts +1 -0
  84. package/types.d.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -18,11 +18,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
18
18
  - Only add `!` to selector class matching template candidate when using important modifier with mutli-class selectors ([#7664](https://github.com/tailwindlabs/tailwindcss/pull/7664))
19
19
  - Correctly parse and prefix animation names with dots ([#7163](https://github.com/tailwindlabs/tailwindcss/pull/7163))
20
20
  - Fix extraction from template literal/function with array ([#7481](https://github.com/tailwindlabs/tailwindcss/pull/7481))
21
+ - Don't output unparsable arbitrary values ([#7789](https://github.com/tailwindlabs/tailwindcss/pull/7789))
22
+ - Fix generation of `div:not(.foo)` if `.foo` is never defined ([#7815](https://github.com/tailwindlabs/tailwindcss/pull/7815))
23
+ - Allow for custom properties in `rgb`, `rgba`, `hsl` and `hsla` colors ([#7933](https://github.com/tailwindlabs/tailwindcss/pull/7933))
24
+ - Remove autoprefixer as explicit peer-dependency to avoid invalid warnings in situations where it isn't actually needed ([#7949](https://github.com/tailwindlabs/tailwindcss/pull/7949))
25
+ - Types: allow for arbitrary theme values (for 3rd party plugins) ([#7926](https://github.com/tailwindlabs/tailwindcss/pull/7926))
26
+ - Ensure the `percentage` data type is validated correctly ([#8015](https://github.com/tailwindlabs/tailwindcss/pull/8015))
21
27
 
22
28
  ### Changed
23
29
 
24
30
  - Replace `chalk` with `picocolors` ([#6039](https://github.com/tailwindlabs/tailwindcss/pull/6039))
25
31
  - Replace `cosmiconfig` with `lilconfig` ([#6039](https://github.com/tailwindlabs/tailwindcss/pull/6038))
32
+ - Update `cssnano` to avoid removing empty variables when minifying ([#7818](https://github.com/tailwindlabs/tailwindcss/pull/7818))
26
33
 
27
34
  ### Added
28
35
 
@@ -31,6 +38,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
31
38
  - Support PostCSS `Document` nodes ([#7291](https://github.com/tailwindlabs/tailwindcss/pull/7291))
32
39
  - Add `text-start` and `text-end` utilities ([#6656](https://github.com/tailwindlabs/tailwindcss/pull/6656))
33
40
  - Support customizing class name when using `darkMode: 'class'` ([#5800](https://github.com/tailwindlabs/tailwindcss/pull/5800))
41
+ - Add `--poll` option to the CLI ([#7725](https://github.com/tailwindlabs/tailwindcss/pull/7725))
42
+ - Add new `border-spacing` utilities ([#7102](https://github.com/tailwindlabs/tailwindcss/pull/7102))
43
+ - Add `enabled` variant ([#7905](https://github.com/tailwindlabs/tailwindcss/pull/7905))
44
+ - Add TypeScript types for the `tailwind.config.js` file ([#7891](https://github.com/tailwindlabs/tailwindcss/pull/7891))
45
+ - Add `backdrop` variant ([#7924](https://github.com/tailwindlabs/tailwindcss/pull/7924))
34
46
 
35
47
  ## [3.0.23] - 2022-02-16
36
48
 
package/colors.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { DefaultColors } from './types/generated/colors'
2
+ declare const colors: DefaultColors
3
+ export = colors
@@ -0,0 +1,3 @@
1
+ import type { Config } from './types/config'
2
+ declare const config: Config
3
+ export = config
@@ -0,0 +1,3 @@
1
+ import type { Config } from './types/config'
2
+ declare const theme: Config['theme']
3
+ export = theme
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  exports.lazyAutoprefixer = lazyAutoprefixer;
6
6
  exports.lazyCssnano = lazyCssnano;
7
7
  exports.postcss = void 0;
8
- let postcss = require('postcss');
8
+ let postcss = require("postcss");
9
9
  exports.postcss = postcss;
10
10
  function lazyAutoprefixer() {
11
- return require('autoprefixer');
11
+ return require("autoprefixer");
12
12
  }
13
13
  function lazyCssnano() {
14
- return require('cssnano');
14
+ return require("cssnano");
15
15
  }