tailwindcss 2.0.1-compat → 2.0.4

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.
@@ -141,6 +141,7 @@ module.exports = {
141
141
  wait: 'wait',
142
142
  text: 'text',
143
143
  move: 'move',
144
+ help: 'help',
144
145
  'not-allowed': 'not-allowed',
145
146
  },
146
147
  divideColor: (theme) => theme('borderColor'),
@@ -308,17 +309,6 @@ module.exports = {
308
309
  6: '6',
309
310
  7: '7',
310
311
  },
311
- transformOrigin: {
312
- center: 'center',
313
- top: 'top',
314
- 'top-right': 'top right',
315
- right: 'right',
316
- 'bottom-right': 'bottom right',
317
- bottom: 'bottom',
318
- 'bottom-left': 'bottom left',
319
- left: 'left',
320
- 'top-left': 'top left',
321
- },
322
312
  gridTemplateColumns: {
323
313
  none: 'none',
324
314
  1: 'repeat(1, minmax(0, 1fr))',
@@ -616,8 +606,18 @@ module.exports = {
616
606
  },
617
607
  textColor: (theme) => theme('colors'),
618
608
  textOpacity: (theme) => theme('opacity'),
619
- transitionDuration: {
620
- DEFAULT: '150ms',
609
+ transformOrigin: {
610
+ center: 'center',
611
+ top: 'top',
612
+ 'top-right': 'top right',
613
+ right: 'right',
614
+ 'bottom-right': 'bottom right',
615
+ bottom: 'bottom',
616
+ 'bottom-left': 'bottom left',
617
+ left: 'left',
618
+ 'top-left': 'top left',
619
+ },
620
+ transitionDelay: {
621
621
  75: '75ms',
622
622
  100: '100ms',
623
623
  150: '150ms',
@@ -627,7 +627,8 @@ module.exports = {
627
627
  700: '700ms',
628
628
  1000: '1000ms',
629
629
  },
630
- transitionDelay: {
630
+ transitionDuration: {
631
+ DEFAULT: '150ms',
631
632
  75: '75ms',
632
633
  100: '100ms',
633
634
  150: '150ms',
@@ -742,13 +743,13 @@ module.exports = {
742
743
  backgroundClip: ['responsive'],
743
744
  backgroundColor: ['responsive', 'dark', 'group-hover', 'focus-within', 'hover', 'focus'],
744
745
  backgroundImage: ['responsive'],
745
- backgroundOpacity: ['responsive', 'group-hover', 'focus-within', 'hover', 'focus'],
746
+ backgroundOpacity: ['responsive', 'dark', 'group-hover', 'focus-within', 'hover', 'focus'],
746
747
  backgroundPosition: ['responsive'],
747
748
  backgroundRepeat: ['responsive'],
748
749
  backgroundSize: ['responsive'],
749
750
  borderCollapse: ['responsive'],
750
751
  borderColor: ['responsive', 'dark', 'group-hover', 'focus-within', 'hover', 'focus'],
751
- borderOpacity: ['responsive', 'group-hover', 'focus-within', 'hover', 'focus'],
752
+ borderOpacity: ['responsive', 'dark', 'group-hover', 'focus-within', 'hover', 'focus'],
752
753
  borderRadius: ['responsive'],
753
754
  borderStyle: ['responsive'],
754
755
  borderWidth: ['responsive'],
@@ -759,7 +760,7 @@ module.exports = {
759
760
  cursor: ['responsive'],
760
761
  display: ['responsive'],
761
762
  divideColor: ['responsive', 'dark'],
762
- divideOpacity: ['responsive'],
763
+ divideOpacity: ['responsive', 'dark'],
763
764
  divideStyle: ['responsive'],
764
765
  divideWidth: ['responsive'],
765
766
  fill: ['responsive'],
@@ -814,14 +815,14 @@ module.exports = {
814
815
  placeItems: ['responsive'],
815
816
  placeSelf: ['responsive'],
816
817
  placeholderColor: ['responsive', 'dark', 'focus'],
817
- placeholderOpacity: ['responsive', 'focus'],
818
+ placeholderOpacity: ['responsive', 'dark', 'focus'],
818
819
  pointerEvents: ['responsive'],
819
820
  position: ['responsive'],
820
821
  resize: ['responsive'],
821
822
  ringColor: ['responsive', 'dark', 'focus-within', 'focus'],
822
823
  ringOffsetColor: ['responsive', 'dark', 'focus-within', 'focus'],
823
824
  ringOffsetWidth: ['responsive', 'focus-within', 'focus'],
824
- ringOpacity: ['responsive', 'focus-within', 'focus'],
825
+ ringOpacity: ['responsive', 'dark', 'focus-within', 'focus'],
825
826
  ringWidth: ['responsive', 'focus-within', 'focus'],
826
827
  rotate: ['responsive', 'hover', 'focus'],
827
828
  scale: ['responsive', 'hover', 'focus'],
@@ -833,7 +834,7 @@ module.exports = {
833
834
  textAlign: ['responsive'],
834
835
  textColor: ['responsive', 'dark', 'group-hover', 'focus-within', 'hover', 'focus'],
835
836
  textDecoration: ['responsive', 'group-hover', 'focus-within', 'hover', 'focus'],
836
- textOpacity: ['responsive', 'group-hover', 'focus-within', 'hover', 'focus'],
837
+ textOpacity: ['responsive', 'dark', 'group-hover', 'focus-within', 'hover', 'focus'],
837
838
  textOverflow: ['responsive'],
838
839
  textTransform: ['responsive'],
839
840
  transform: ['responsive'],
@@ -1,92 +0,0 @@
1
- "use strict";
2
-
3
- var _path = _interopRequireDefault(require("path"));
4
-
5
- var _fs = _interopRequireDefault(require("fs"));
6
-
7
- var _lodash = _interopRequireDefault(require("lodash"));
8
-
9
- var _getModuleDependencies = _interopRequireDefault(require("./lib/getModuleDependencies"));
10
-
11
- var _registerConfigAsDependency = _interopRequireDefault(require("./lib/registerConfigAsDependency"));
12
-
13
- var _processTailwindFeatures = _interopRequireDefault(require("./processTailwindFeatures"));
14
-
15
- var _formatCSS = _interopRequireDefault(require("./lib/formatCSS"));
16
-
17
- var _resolveConfig = _interopRequireDefault(require("./util/resolveConfig"));
18
-
19
- var _getAllConfigs = _interopRequireDefault(require("./util/getAllConfigs"));
20
-
21
- var _constants = require("./constants");
22
-
23
- var _defaultConfigStub = _interopRequireDefault(require("../stubs/defaultConfig.stub.js"));
24
-
25
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
26
-
27
- function resolveConfigPath(filePath) {
28
- // require('tailwindcss')({ theme: ..., variants: ... })
29
- if (_lodash.default.isObject(filePath) && !_lodash.default.has(filePath, 'config') && !_lodash.default.isEmpty(filePath)) {
30
- return undefined;
31
- } // require('tailwindcss')({ config: 'custom-config.js' })
32
-
33
-
34
- if (_lodash.default.isObject(filePath) && _lodash.default.has(filePath, 'config') && _lodash.default.isString(filePath.config)) {
35
- return _path.default.resolve(filePath.config);
36
- } // require('tailwindcss')({ config: { theme: ..., variants: ... } })
37
-
38
-
39
- if (_lodash.default.isObject(filePath) && _lodash.default.has(filePath, 'config') && _lodash.default.isObject(filePath.config)) {
40
- return undefined;
41
- } // require('tailwindcss')('custom-config.js')
42
-
43
-
44
- if (_lodash.default.isString(filePath)) {
45
- return _path.default.resolve(filePath);
46
- } // require('tailwindcss')
47
-
48
-
49
- try {
50
- const defaultConfigPath = _path.default.resolve(_constants.defaultConfigFile);
51
-
52
- _fs.default.accessSync(defaultConfigPath);
53
-
54
- return defaultConfigPath;
55
- } catch (err) {
56
- return undefined;
57
- }
58
- }
59
-
60
- const getConfigFunction = config => () => {
61
- if (_lodash.default.isUndefined(config)) {
62
- return (0, _resolveConfig.default)([...(0, _getAllConfigs.default)(_defaultConfigStub.default)]);
63
- } // Skip this if Jest is running: https://github.com/facebook/jest/pull/9841#issuecomment-621417584
64
-
65
-
66
- if (process.env.JEST_WORKER_ID === undefined) {
67
- if (!_lodash.default.isObject(config)) {
68
- (0, _getModuleDependencies.default)(config).forEach(mdl => {
69
- delete require.cache[require.resolve(mdl.file)];
70
- });
71
- }
72
- }
73
-
74
- const configObject = _lodash.default.isObject(config) ? _lodash.default.get(config, 'config', config) : require(config);
75
- return (0, _resolveConfig.default)([...(0, _getAllConfigs.default)(configObject)]);
76
- };
77
-
78
- module.exports = function (config) {
79
- const plugins = [];
80
- const resolvedConfigPath = resolveConfigPath(config);
81
-
82
- if (!_lodash.default.isUndefined(resolvedConfigPath)) {
83
- plugins.push((0, _registerConfigAsDependency.default)(resolvedConfigPath));
84
- }
85
-
86
- return {
87
- postcssPlugin: 'tailwindcss',
88
- plugins: [...plugins, (0, _processTailwindFeatures.default)(getConfigFunction(resolvedConfigPath || config)), _formatCSS.default]
89
- };
90
- };
91
-
92
- module.exports.postcss = true;
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- purge: [],
3
- darkMode: false, // or 'media' or 'class'
4
- theme: {
5
- extend: {},
6
- },
7
- variants: {},
8
- plugins: [],
9
- }