tailwindcss 3.0.1 → 3.0.2

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.
@@ -13,7 +13,9 @@ function _interopRequireDefault(obj) {
13
13
  };
14
14
  }
15
15
  let defaults = {
16
- optimizeUniversalDefaults: true
16
+ // TODO: Drop this once we can safely rely on optimizeUniversalDefaults being
17
+ // the default.
18
+ optimizeUniversalDefaults: process.env.NODE_ENV === 'test' ? true : false
17
19
  };
18
20
  let featureFlags = {
19
21
  future: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -51,7 +51,7 @@
51
51
  "cross-env": "^7.0.3",
52
52
  "cssnano": "^5.0.12",
53
53
  "esbuild": "^0.14.2",
54
- "eslint": "^8.2.0",
54
+ "eslint": "^8.4.1",
55
55
  "eslint-config-prettier": "^8.3.0",
56
56
  "eslint-plugin-prettier": "^4.0.0",
57
57
  "jest": "^27.4.3",
@@ -0,0 +1,75 @@
1
+ # replace default config
2
+
3
+ # multipass: true
4
+ # full: true
5
+
6
+ plugins:
7
+
8
+ # - name
9
+ #
10
+ # or:
11
+ # - name: false
12
+ # - name: true
13
+ #
14
+ # or:
15
+ # - name:
16
+ # param1: 1
17
+ # param2: 2
18
+
19
+ - removeDoctype
20
+ - removeXMLProcInst
21
+ - removeComments
22
+ - removeMetadata
23
+ - removeXMLNS
24
+ - removeEditorsNSData
25
+ - cleanupAttrs
26
+ - inlineStyles
27
+ - minifyStyles
28
+ - convertStyleToAttrs
29
+ - cleanupIDs
30
+ - prefixIds
31
+ - removeRasterImages
32
+ - removeUselessDefs
33
+ - cleanupNumericValues
34
+ - cleanupListOfValues
35
+ - convertColors
36
+ - removeUnknownsAndDefaults
37
+ - removeNonInheritableGroupAttrs
38
+ - removeUselessStrokeAndFill
39
+ - removeViewBox
40
+ - cleanupEnableBackground
41
+ - removeHiddenElems
42
+ - removeEmptyText
43
+ - convertShapeToPath
44
+ - convertEllipseToCircle
45
+ - moveElemsAttrsToGroup
46
+ - moveGroupAttrsToElems
47
+ - collapseGroups
48
+ - convertPathData
49
+ - convertTransform
50
+ - removeEmptyAttrs
51
+ - removeEmptyContainers
52
+ - mergePaths
53
+ - removeUnusedNS
54
+ - sortAttrs
55
+ - sortDefsChildren
56
+ - removeTitle
57
+ - removeDesc
58
+ - removeDimensions
59
+ - removeAttrs
60
+ - removeAttributesBySelector
61
+ - removeElementsByAttr
62
+ - addClassesToSVGElement
63
+ - removeStyleElement
64
+ - removeScriptElement
65
+ - addAttributesToSVGElement
66
+ - removeOffCanvasPaths
67
+ - reusePaths
68
+
69
+ # configure the indent (default 4 spaces) used by `--pretty` here:
70
+ #
71
+ # @see https://github.com/svg/svgo/blob/master/lib/svgo/js2svg.js#L6 for more config options
72
+ #
73
+ # js2svg:
74
+ # pretty: true
75
+ # indent: ' '
package/peers/index.js CHANGED
@@ -52842,48 +52842,44 @@ var require_walker = __commonJS({
52842
52842
  var require_package = __commonJS({
52843
52843
  "node_modules/css-tree/package.json"(exports2, module2) {
52844
52844
  module2.exports = {
52845
- _args: [
52846
- [
52847
- "css-tree@1.1.3",
52848
- "/home/runner/work/tailwindcss/tailwindcss"
52849
- ]
52850
- ],
52851
- _from: "css-tree@1.1.3",
52852
- _id: "css-tree@1.1.3",
52853
- _inBundle: false,
52854
- _integrity: "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==",
52855
- _location: "/css-tree",
52856
- _phantomChildren: {},
52857
- _requested: {
52858
- type: "version",
52859
- registry: true,
52860
- raw: "css-tree@1.1.3",
52861
- name: "css-tree",
52862
- escapedName: "css-tree",
52863
- rawSpec: "1.1.3",
52864
- saveSpec: null,
52865
- fetchSpec: "1.1.3"
52866
- },
52867
- _requiredBy: [
52868
- "/csso",
52869
- "/svgo"
52845
+ name: "css-tree",
52846
+ version: "1.1.3",
52847
+ description: "A tool set for CSS: fast detailed parser (CSS \u2192 AST), walker (AST traversal), generator (AST \u2192 CSS) and lexer (validation and matching) based on specs and browser implementations",
52848
+ author: "Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)",
52849
+ license: "MIT",
52850
+ repository: "csstree/csstree",
52851
+ keywords: [
52852
+ "css",
52853
+ "ast",
52854
+ "tokenizer",
52855
+ "parser",
52856
+ "walker",
52857
+ "lexer",
52858
+ "generator",
52859
+ "utils",
52860
+ "syntax",
52861
+ "validation"
52870
52862
  ],
52871
- _resolved: "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz",
52872
- _spec: "1.1.3",
52873
- _where: "/home/runner/work/tailwindcss/tailwindcss",
52874
- author: {
52875
- name: "Roman Dvornov",
52876
- email: "rdvornov@gmail.com",
52877
- url: "https://github.com/lahmatiy"
52878
- },
52879
- bugs: {
52880
- url: "https://github.com/csstree/csstree/issues"
52863
+ main: "lib/index.js",
52864
+ unpkg: "dist/csstree.min.js",
52865
+ jsdelivr: "dist/csstree.min.js",
52866
+ scripts: {
52867
+ build: "rollup --config",
52868
+ lint: "eslint data lib scripts test && node scripts/review-syntax-patch --lint && node scripts/update-docs --lint",
52869
+ "lint-and-test": "npm run lint && npm test",
52870
+ "update:docs": "node scripts/update-docs",
52871
+ "review:syntax-patch": "node scripts/review-syntax-patch",
52872
+ test: "mocha --reporter progress",
52873
+ coverage: "nyc npm test",
52874
+ travis: "nyc npm run lint-and-test && npm run coveralls",
52875
+ coveralls: "nyc report --reporter=text-lcov | coveralls",
52876
+ prepublishOnly: "npm run build",
52877
+ hydrogen: "node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/parse --stat -o /dev/null"
52881
52878
  },
52882
52879
  dependencies: {
52883
52880
  "mdn-data": "2.0.14",
52884
52881
  "source-map": "^0.6.1"
52885
52882
  },
52886
- description: "A tool set for CSS: fast detailed parser (CSS \u2192 AST), walker (AST traversal), generator (AST \u2192 CSS) and lexer (validation and matching) based on specs and browser implementations",
52887
52883
  devDependencies: {
52888
52884
  "@rollup/plugin-commonjs": "^11.0.2",
52889
52885
  "@rollup/plugin-json": "^4.0.2",
@@ -52903,43 +52899,7 @@ var require_package = __commonJS({
52903
52899
  "data",
52904
52900
  "dist",
52905
52901
  "lib"
52906
- ],
52907
- homepage: "https://github.com/csstree/csstree#readme",
52908
- jsdelivr: "dist/csstree.min.js",
52909
- keywords: [
52910
- "css",
52911
- "ast",
52912
- "tokenizer",
52913
- "parser",
52914
- "walker",
52915
- "lexer",
52916
- "generator",
52917
- "utils",
52918
- "syntax",
52919
- "validation"
52920
- ],
52921
- license: "MIT",
52922
- main: "lib/index.js",
52923
- name: "css-tree",
52924
- repository: {
52925
- type: "git",
52926
- url: "git+https://github.com/csstree/csstree.git"
52927
- },
52928
- scripts: {
52929
- build: "rollup --config",
52930
- coverage: "nyc npm test",
52931
- coveralls: "nyc report --reporter=text-lcov | coveralls",
52932
- hydrogen: "node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/parse --stat -o /dev/null",
52933
- lint: "eslint data lib scripts test && node scripts/review-syntax-patch --lint && node scripts/update-docs --lint",
52934
- "lint-and-test": "npm run lint && npm test",
52935
- prepublishOnly: "npm run build",
52936
- "review:syntax-patch": "node scripts/review-syntax-patch",
52937
- test: "mocha --reporter progress",
52938
- travis: "nyc npm run lint-and-test && npm run coveralls",
52939
- "update:docs": "node scripts/update-docs"
52940
- },
52941
- unpkg: "dist/csstree.min.js",
52942
- version: "1.1.3"
52902
+ ]
52943
52903
  };
52944
52904
  }
52945
52905
  });
@@ -56517,49 +56477,50 @@ var require_compress = __commonJS({
56517
56477
  var require_package2 = __commonJS({
56518
56478
  "node_modules/csso/package.json"(exports2, module2) {
56519
56479
  module2.exports = {
56520
- _args: [
56521
- [
56522
- "csso@4.2.0",
56523
- "/home/runner/work/tailwindcss/tailwindcss"
56524
- ]
56525
- ],
56526
- _from: "csso@4.2.0",
56527
- _id: "csso@4.2.0",
56528
- _inBundle: false,
56529
- _integrity: "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==",
56530
- _location: "/csso",
56531
- _phantomChildren: {},
56532
- _requested: {
56533
- type: "version",
56534
- registry: true,
56535
- raw: "csso@4.2.0",
56536
- name: "csso",
56537
- escapedName: "csso",
56538
- rawSpec: "4.2.0",
56539
- saveSpec: null,
56540
- fetchSpec: "4.2.0"
56541
- },
56542
- _requiredBy: [
56543
- "/svgo"
56480
+ name: "csso",
56481
+ version: "4.2.0",
56482
+ description: "CSS minifier with structural optimisations",
56483
+ homepage: "https://github.com/css/csso",
56484
+ author: "Sergey Kryzhanovsky <skryzhanovsky@ya.ru> (https://github.com/afelix)",
56485
+ maintainers: [
56486
+ {
56487
+ name: "Roman Dvornov",
56488
+ email: "rdvornov@gmail.com",
56489
+ "github-username": "lahmatiy"
56490
+ }
56544
56491
  ],
56545
- _resolved: "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz",
56546
- _spec: "4.2.0",
56547
- _where: "/home/runner/work/tailwindcss/tailwindcss",
56548
- author: {
56549
- name: "Sergey Kryzhanovsky",
56550
- email: "skryzhanovsky@ya.ru",
56551
- url: "https://github.com/afelix"
56552
- },
56553
- browser: {
56554
- "css-tree": "css-tree/dist/csstree.min.js"
56555
- },
56492
+ license: "MIT",
56493
+ repository: "css/csso",
56556
56494
  bugs: {
56557
56495
  url: "https://github.com/css/csso/issues"
56558
56496
  },
56497
+ keywords: [
56498
+ "css",
56499
+ "compress",
56500
+ "minifier",
56501
+ "minify",
56502
+ "optimise",
56503
+ "optimisation",
56504
+ "csstree"
56505
+ ],
56506
+ main: "./lib/index",
56507
+ scripts: {
56508
+ test: "mocha --reporter dot",
56509
+ lint: "eslint lib test",
56510
+ "lint-and-test": "npm run lint && npm test",
56511
+ build: "rollup --config && terser dist/csso.js --compress --mangle -o dist/csso.min.js",
56512
+ coverage: "nyc npm test",
56513
+ coveralls: "nyc report --reporter=text-lcov | coveralls",
56514
+ travis: "nyc npm run lint-and-test && npm run coveralls",
56515
+ hydrogen: "node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/csso --stat -o /dev/null",
56516
+ prepublishOnly: "npm run build"
56517
+ },
56559
56518
  dependencies: {
56560
56519
  "css-tree": "^1.1.2"
56561
56520
  },
56562
- description: "CSS minifier with structural optimisations",
56521
+ browser: {
56522
+ "css-tree": "css-tree/dist/csstree.min.js"
56523
+ },
56563
56524
  devDependencies: {
56564
56525
  "@rollup/plugin-commonjs": "^11.0.1",
56565
56526
  "@rollup/plugin-json": "^4.0.1",
@@ -56578,42 +56539,7 @@ var require_package2 = __commonJS({
56578
56539
  files: [
56579
56540
  "dist",
56580
56541
  "lib"
56581
- ],
56582
- homepage: "https://github.com/css/csso",
56583
- keywords: [
56584
- "css",
56585
- "compress",
56586
- "minifier",
56587
- "minify",
56588
- "optimise",
56589
- "optimisation",
56590
- "csstree"
56591
- ],
56592
- license: "MIT",
56593
- main: "./lib/index",
56594
- maintainers: [
56595
- {
56596
- name: "Roman Dvornov",
56597
- email: "rdvornov@gmail.com"
56598
- }
56599
- ],
56600
- name: "csso",
56601
- repository: {
56602
- type: "git",
56603
- url: "git+https://github.com/css/csso.git"
56604
- },
56605
- scripts: {
56606
- build: "rollup --config && terser dist/csso.js --compress --mangle -o dist/csso.min.js",
56607
- coverage: "nyc npm test",
56608
- coveralls: "nyc report --reporter=text-lcov | coveralls",
56609
- hydrogen: "node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/csso --stat -o /dev/null",
56610
- lint: "eslint lib test",
56611
- "lint-and-test": "npm run lint && npm test",
56612
- prepublishOnly: "npm run build",
56613
- test: "mocha --reporter dot",
56614
- travis: "nyc npm run lint-and-test && npm run coveralls"
56615
- },
56616
- version: "4.2.0"
56542
+ ]
56617
56543
  };
56618
56544
  }
56619
56545
  });
@@ -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
+ ]