tailwindcss 0.0.0-insiders.b3d8464 → 0.0.0-insiders.b4833a9

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.
@@ -15,6 +15,7 @@ _export(exports, {
15
15
  const _fs = /*#__PURE__*/ _interopRequireDefault(require("fs"));
16
16
  const _path = /*#__PURE__*/ _interopRequireWildcard(require("path"));
17
17
  const _postcss = /*#__PURE__*/ _interopRequireDefault(require("postcss"));
18
+ const _sharedState = require("./lib/sharedState");
18
19
  const _createUtilityPlugin = /*#__PURE__*/ _interopRequireDefault(require("./util/createUtilityPlugin"));
19
20
  const _buildMediaQuery = /*#__PURE__*/ _interopRequireDefault(require("./util/buildMediaQuery"));
20
21
  const _escapeClassName = /*#__PURE__*/ _interopRequireDefault(require("./util/escapeClassName"));
@@ -650,6 +651,18 @@ let corePlugins = {
650
651
  ]
651
652
  ],
652
653
  [
654
+ [
655
+ "start",
656
+ [
657
+ "inset-inline-start"
658
+ ]
659
+ ],
660
+ [
661
+ "end",
662
+ [
663
+ "inset-inline-end"
664
+ ]
665
+ ],
653
666
  [
654
667
  "top",
655
668
  [
@@ -802,6 +815,18 @@ let corePlugins = {
802
815
  ]
803
816
  ],
804
817
  [
818
+ [
819
+ "ms",
820
+ [
821
+ "margin-inline-start"
822
+ ]
823
+ ],
824
+ [
825
+ "me",
826
+ [
827
+ "margin-inline-end"
828
+ ]
829
+ ],
805
830
  [
806
831
  "mt",
807
832
  [
@@ -1416,6 +1441,18 @@ let corePlugins = {
1416
1441
  ]
1417
1442
  ],
1418
1443
  [
1444
+ [
1445
+ "scroll-ms",
1446
+ [
1447
+ "scroll-margin-inline-start"
1448
+ ]
1449
+ ],
1450
+ [
1451
+ "scroll-me",
1452
+ [
1453
+ "scroll-margin-inline-end"
1454
+ ]
1455
+ ],
1419
1456
  [
1420
1457
  "scroll-mt",
1421
1458
  [
@@ -1468,6 +1505,18 @@ let corePlugins = {
1468
1505
  ]
1469
1506
  ],
1470
1507
  [
1508
+ [
1509
+ "scroll-ps",
1510
+ [
1511
+ "scroll-padding-inline-start"
1512
+ ]
1513
+ ],
1514
+ [
1515
+ "scroll-pe",
1516
+ [
1517
+ "scroll-padding-inline-end"
1518
+ ]
1519
+ ],
1471
1520
  [
1472
1521
  "scroll-pt",
1473
1522
  [
@@ -1834,6 +1883,15 @@ let corePlugins = {
1834
1883
  matchUtilities({
1835
1884
  "space-x": (value)=>{
1836
1885
  value = value === "0" ? "0px" : value;
1886
+ if (_sharedState.env.OXIDE) {
1887
+ return {
1888
+ "& > :not([hidden]) ~ :not([hidden])": {
1889
+ "--tw-space-x-reverse": "0",
1890
+ "margin-inline-end": `calc(${value} * var(--tw-space-x-reverse))`,
1891
+ "margin-inline-start": `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`
1892
+ }
1893
+ };
1894
+ }
1837
1895
  return {
1838
1896
  "& > :not([hidden]) ~ :not([hidden])": {
1839
1897
  "--tw-space-x-reverse": "0",
@@ -1869,6 +1927,16 @@ let corePlugins = {
1869
1927
  matchUtilities({
1870
1928
  "divide-x": (value)=>{
1871
1929
  value = value === "0" ? "0px" : value;
1930
+ if (_sharedState.env.OXIDE) {
1931
+ return {
1932
+ "& > :not([hidden]) ~ :not([hidden])": {
1933
+ "@defaults border-width": {},
1934
+ "--tw-divide-x-reverse": "0",
1935
+ "border-inline-end-width": `calc(${value} * var(--tw-divide-x-reverse))`,
1936
+ "border-inline-start-width": `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
1937
+ }
1938
+ };
1939
+ }
1872
1940
  return {
1873
1941
  "& > :not([hidden]) ~ :not([hidden])": {
1874
1942
  "@defaults border-width": {},
@@ -2178,6 +2246,20 @@ let corePlugins = {
2178
2246
  ]
2179
2247
  ],
2180
2248
  [
2249
+ [
2250
+ "rounded-s",
2251
+ [
2252
+ "border-start-start-radius",
2253
+ "border-end-start-radius"
2254
+ ]
2255
+ ],
2256
+ [
2257
+ "rounded-e",
2258
+ [
2259
+ "border-start-end-radius",
2260
+ "border-end-end-radius"
2261
+ ]
2262
+ ],
2181
2263
  [
2182
2264
  "rounded-t",
2183
2265
  [
@@ -2208,6 +2290,30 @@ let corePlugins = {
2208
2290
  ]
2209
2291
  ],
2210
2292
  [
2293
+ [
2294
+ "rounded-ss",
2295
+ [
2296
+ "border-start-start-radius"
2297
+ ]
2298
+ ],
2299
+ [
2300
+ "rounded-se",
2301
+ [
2302
+ "border-start-end-radius"
2303
+ ]
2304
+ ],
2305
+ [
2306
+ "rounded-ee",
2307
+ [
2308
+ "border-end-end-radius"
2309
+ ]
2310
+ ],
2311
+ [
2312
+ "rounded-es",
2313
+ [
2314
+ "border-end-start-radius"
2315
+ ]
2316
+ ],
2211
2317
  [
2212
2318
  "rounded-tl",
2213
2319
  [
@@ -2270,6 +2376,26 @@ let corePlugins = {
2270
2376
  ]
2271
2377
  ],
2272
2378
  [
2379
+ [
2380
+ "border-s",
2381
+ [
2382
+ [
2383
+ "@defaults border-width",
2384
+ {}
2385
+ ],
2386
+ "border-inline-start-width"
2387
+ ]
2388
+ ],
2389
+ [
2390
+ "border-e",
2391
+ [
2392
+ [
2393
+ "@defaults border-width",
2394
+ {}
2395
+ ],
2396
+ "border-inline-end-width"
2397
+ ]
2398
+ ],
2273
2399
  [
2274
2400
  "border-t",
2275
2401
  [
@@ -2401,6 +2527,30 @@ let corePlugins = {
2401
2527
  ]
2402
2528
  });
2403
2529
  matchUtilities({
2530
+ "border-s": (value)=>{
2531
+ if (!corePlugins("borderOpacity")) {
2532
+ return {
2533
+ "border-inline-start-color": (0, _toColorValue.default)(value)
2534
+ };
2535
+ }
2536
+ return (0, _withAlphaVariable.default)({
2537
+ color: value,
2538
+ property: "border-inline-start-color",
2539
+ variable: "--tw-border-opacity"
2540
+ });
2541
+ },
2542
+ "border-e": (value)=>{
2543
+ if (!corePlugins("borderOpacity")) {
2544
+ return {
2545
+ "border-inline-end-color": (0, _toColorValue.default)(value)
2546
+ };
2547
+ }
2548
+ return (0, _withAlphaVariable.default)({
2549
+ color: value,
2550
+ property: "border-inline-end-color",
2551
+ variable: "--tw-border-opacity"
2552
+ });
2553
+ },
2404
2554
  "border-t": (value)=>{
2405
2555
  if (!corePlugins("borderOpacity")) {
2406
2556
  return {
@@ -2756,6 +2906,18 @@ let corePlugins = {
2756
2906
  ]
2757
2907
  ],
2758
2908
  [
2909
+ [
2910
+ "ps",
2911
+ [
2912
+ "padding-inline-start"
2913
+ ]
2914
+ ],
2915
+ [
2916
+ "pe",
2917
+ [
2918
+ "padding-inline-end"
2919
+ ]
2920
+ ],
2759
2921
  [
2760
2922
  "pt",
2761
2923
  [
@@ -199,7 +199,7 @@ function applyVariant(variant, matches, context) {
199
199
  // Retrieve "modifier"
200
200
  {
201
201
  let match = /(.*)\/(.*)$/g.exec(variant);
202
- if (match) {
202
+ if (match && !context.variantMap.has(variant)) {
203
203
  variant = match[1];
204
204
  args.modifier = match[2];
205
205
  if (!(0, _featureFlags.flagEnabled)(context.tailwindConfig, "generalizedModifiers")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "0.0.0-insiders.b3d8464",
3
+ "version": "0.0.0-insiders.b4833a9",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -23,7 +23,7 @@
23
23
  "rebuild-fixtures": "npm run build && node -r @swc/register scripts/rebuildFixtures.js",
24
24
  "style": "eslint .",
25
25
  "pretest": "npm run generate",
26
- "test": "jest",
26
+ "test": "jest && OXIDE=1 jest",
27
27
  "test:integrations": "npm run test --prefix ./integrations",
28
28
  "install:integrations": "node scripts/install-integrations.js",
29
29
  "generate:plugin-list": "node -r @swc/register scripts/create-plugin-list.js",
@@ -59,7 +59,7 @@
59
59
  "concurrently": "^7.5.0",
60
60
  "cssnano": "^5.1.14",
61
61
  "esbuild": "^0.16.10",
62
- "eslint": "^8.30.0",
62
+ "eslint": "^8.31.0",
63
63
  "eslint-config-prettier": "^8.6.0",
64
64
  "eslint-plugin-prettier": "^4.2.1",
65
65
  "jest": "^28.1.3",
@@ -67,7 +67,7 @@
67
67
  "prettier": "^2.8.1",
68
68
  "rimraf": "^3.0.0",
69
69
  "source-map-js": "^1.0.2",
70
- "turbo": "^1.6.3"
70
+ "turbo": "^1.7.0"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "postcss": "^8.0.9"
@@ -90,7 +90,7 @@
90
90
  "normalize-path": "^3.0.0",
91
91
  "object-hash": "^3.0.0",
92
92
  "picocolors": "^1.0.0",
93
- "postcss": "^8.0.9",
93
+ "postcss": "^8.4.21",
94
94
  "postcss-import": "^14.1.0",
95
95
  "postcss-js": "^4.0.0",
96
96
  "postcss-load-config": "^3.1.4",
package/peers/index.js CHANGED
@@ -3248,7 +3248,7 @@ var require_input = __commonJS({
3248
3248
  if (line && typeof line === "object") {
3249
3249
  let start = line;
3250
3250
  let end = column;
3251
- if (typeof line.offset === "number") {
3251
+ if (typeof start.offset === "number") {
3252
3252
  let pos = this.fromOffset(start.offset);
3253
3253
  line = pos.line;
3254
3254
  column = pos.col;
@@ -5577,7 +5577,7 @@ var require_processor = __commonJS({
5577
5577
  var Root = require_root();
5578
5578
  var Processor = class {
5579
5579
  constructor(plugins = []) {
5580
- this.version = "8.4.20";
5580
+ this.version = "8.4.21";
5581
5581
  this.plugins = this.normalize(plugins);
5582
5582
  }
5583
5583
  use(plugin) {
@@ -56609,46 +56609,44 @@ var require_walker = __commonJS({
56609
56609
  var require_package = __commonJS({
56610
56610
  "node_modules/css-tree/package.json"(exports2, module2) {
56611
56611
  module2.exports = {
56612
- _development: true,
56613
- _from: "css-tree@1.1.3",
56614
- _id: "css-tree@1.1.3",
56615
- _inBundle: false,
56616
- _integrity: "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==",
56617
- _location: "/css-tree",
56618
- _phantomChildren: {},
56619
- _requested: {
56620
- type: "version",
56621
- registry: true,
56622
- raw: "css-tree@1.1.3",
56623
- name: "css-tree",
56624
- escapedName: "css-tree",
56625
- rawSpec: "1.1.3",
56626
- saveSpec: null,
56627
- fetchSpec: "1.1.3"
56628
- },
56629
- _requiredBy: [
56630
- "/csso",
56631
- "/svgo"
56612
+ name: "css-tree",
56613
+ version: "1.1.3",
56614
+ 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",
56615
+ author: "Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)",
56616
+ license: "MIT",
56617
+ repository: "csstree/csstree",
56618
+ keywords: [
56619
+ "css",
56620
+ "ast",
56621
+ "tokenizer",
56622
+ "parser",
56623
+ "walker",
56624
+ "lexer",
56625
+ "generator",
56626
+ "utils",
56627
+ "syntax",
56628
+ "validation"
56632
56629
  ],
56633
- _resolved: "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz",
56634
- _shasum: "eb4870fb6fd7707327ec95c2ff2ab09b5e8db91d",
56635
- _spec: "css-tree@1.1.3",
56636
- _where: "/home/runner/work/tailwindcss/tailwindcss",
56637
- author: {
56638
- name: "Roman Dvornov",
56639
- email: "rdvornov@gmail.com",
56640
- url: "https://github.com/lahmatiy"
56641
- },
56642
- bugs: {
56643
- url: "https://github.com/csstree/csstree/issues"
56630
+ main: "lib/index.js",
56631
+ unpkg: "dist/csstree.min.js",
56632
+ jsdelivr: "dist/csstree.min.js",
56633
+ scripts: {
56634
+ build: "rollup --config",
56635
+ lint: "eslint data lib scripts test && node scripts/review-syntax-patch --lint && node scripts/update-docs --lint",
56636
+ "lint-and-test": "npm run lint && npm test",
56637
+ "update:docs": "node scripts/update-docs",
56638
+ "review:syntax-patch": "node scripts/review-syntax-patch",
56639
+ test: "mocha --reporter progress",
56640
+ coverage: "nyc npm test",
56641
+ travis: "nyc npm run lint-and-test && npm run coveralls",
56642
+ coveralls: "nyc report --reporter=text-lcov | coveralls",
56643
+ prepublishOnly: "npm run build",
56644
+ 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"
56644
56645
  },
56645
- bundleDependencies: false,
56646
56646
  dependencies: {
56647
56647
  "mdn-data": "2.0.14",
56648
56648
  "source-map": "^0.6.1"
56649
56649
  },
56650
- deprecated: false,
56651
- 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",
56652
56650
  devDependencies: {
56653
56651
  "@rollup/plugin-commonjs": "^11.0.2",
56654
56652
  "@rollup/plugin-json": "^4.0.2",
@@ -56668,43 +56666,7 @@ var require_package = __commonJS({
56668
56666
  "data",
56669
56667
  "dist",
56670
56668
  "lib"
56671
- ],
56672
- homepage: "https://github.com/csstree/csstree#readme",
56673
- jsdelivr: "dist/csstree.min.js",
56674
- keywords: [
56675
- "css",
56676
- "ast",
56677
- "tokenizer",
56678
- "parser",
56679
- "walker",
56680
- "lexer",
56681
- "generator",
56682
- "utils",
56683
- "syntax",
56684
- "validation"
56685
- ],
56686
- license: "MIT",
56687
- main: "lib/index.js",
56688
- name: "css-tree",
56689
- repository: {
56690
- type: "git",
56691
- url: "git+https://github.com/csstree/csstree.git"
56692
- },
56693
- scripts: {
56694
- build: "rollup --config",
56695
- coverage: "nyc npm test",
56696
- coveralls: "nyc report --reporter=text-lcov | coveralls",
56697
- 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",
56698
- lint: "eslint data lib scripts test && node scripts/review-syntax-patch --lint && node scripts/update-docs --lint",
56699
- "lint-and-test": "npm run lint && npm test",
56700
- prepublishOnly: "npm run build",
56701
- "review:syntax-patch": "node scripts/review-syntax-patch",
56702
- test: "mocha --reporter progress",
56703
- travis: "nyc npm run lint-and-test && npm run coveralls",
56704
- "update:docs": "node scripts/update-docs"
56705
- },
56706
- unpkg: "dist/csstree.min.js",
56707
- version: "1.1.3"
56669
+ ]
56708
56670
  };
56709
56671
  }
56710
56672
  });
@@ -60326,47 +60288,50 @@ var require_compress = __commonJS({
60326
60288
  var require_package2 = __commonJS({
60327
60289
  "node_modules/csso/package.json"(exports2, module2) {
60328
60290
  module2.exports = {
60329
- _development: true,
60330
- _from: "csso@4.2.0",
60331
- _id: "csso@4.2.0",
60332
- _inBundle: false,
60333
- _integrity: "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==",
60334
- _location: "/csso",
60335
- _phantomChildren: {},
60336
- _requested: {
60337
- type: "version",
60338
- registry: true,
60339
- raw: "csso@4.2.0",
60340
- name: "csso",
60341
- escapedName: "csso",
60342
- rawSpec: "4.2.0",
60343
- saveSpec: null,
60344
- fetchSpec: "4.2.0"
60345
- },
60346
- _requiredBy: [
60347
- "/svgo"
60291
+ name: "csso",
60292
+ version: "4.2.0",
60293
+ description: "CSS minifier with structural optimisations",
60294
+ homepage: "https://github.com/css/csso",
60295
+ author: "Sergey Kryzhanovsky <skryzhanovsky@ya.ru> (https://github.com/afelix)",
60296
+ maintainers: [
60297
+ {
60298
+ name: "Roman Dvornov",
60299
+ email: "rdvornov@gmail.com",
60300
+ "github-username": "lahmatiy"
60301
+ }
60348
60302
  ],
60349
- _resolved: "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz",
60350
- _shasum: "ea3a561346e8dc9f546d6febedd50187cf389529",
60351
- _spec: "csso@4.2.0",
60352
- _where: "/home/runner/work/tailwindcss/tailwindcss",
60353
- author: {
60354
- name: "Sergey Kryzhanovsky",
60355
- email: "skryzhanovsky@ya.ru",
60356
- url: "https://github.com/afelix"
60357
- },
60358
- browser: {
60359
- "css-tree": "css-tree/dist/csstree.min.js"
60360
- },
60303
+ license: "MIT",
60304
+ repository: "css/csso",
60361
60305
  bugs: {
60362
60306
  url: "https://github.com/css/csso/issues"
60363
60307
  },
60364
- bundleDependencies: false,
60308
+ keywords: [
60309
+ "css",
60310
+ "compress",
60311
+ "minifier",
60312
+ "minify",
60313
+ "optimise",
60314
+ "optimisation",
60315
+ "csstree"
60316
+ ],
60317
+ main: "./lib/index",
60318
+ scripts: {
60319
+ test: "mocha --reporter dot",
60320
+ lint: "eslint lib test",
60321
+ "lint-and-test": "npm run lint && npm test",
60322
+ build: "rollup --config && terser dist/csso.js --compress --mangle -o dist/csso.min.js",
60323
+ coverage: "nyc npm test",
60324
+ coveralls: "nyc report --reporter=text-lcov | coveralls",
60325
+ travis: "nyc npm run lint-and-test && npm run coveralls",
60326
+ 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",
60327
+ prepublishOnly: "npm run build"
60328
+ },
60365
60329
  dependencies: {
60366
60330
  "css-tree": "^1.1.2"
60367
60331
  },
60368
- deprecated: false,
60369
- description: "CSS minifier with structural optimisations",
60332
+ browser: {
60333
+ "css-tree": "css-tree/dist/csstree.min.js"
60334
+ },
60370
60335
  devDependencies: {
60371
60336
  "@rollup/plugin-commonjs": "^11.0.1",
60372
60337
  "@rollup/plugin-json": "^4.0.1",
@@ -60385,42 +60350,7 @@ var require_package2 = __commonJS({
60385
60350
  files: [
60386
60351
  "dist",
60387
60352
  "lib"
60388
- ],
60389
- homepage: "https://github.com/css/csso",
60390
- keywords: [
60391
- "css",
60392
- "compress",
60393
- "minifier",
60394
- "minify",
60395
- "optimise",
60396
- "optimisation",
60397
- "csstree"
60398
- ],
60399
- license: "MIT",
60400
- main: "./lib/index",
60401
- maintainers: [
60402
- {
60403
- name: "Roman Dvornov",
60404
- email: "rdvornov@gmail.com"
60405
- }
60406
- ],
60407
- name: "csso",
60408
- repository: {
60409
- type: "git",
60410
- url: "git+https://github.com/css/csso.git"
60411
- },
60412
- scripts: {
60413
- build: "rollup --config && terser dist/csso.js --compress --mangle -o dist/csso.min.js",
60414
- coverage: "nyc npm test",
60415
- coveralls: "nyc report --reporter=text-lcov | coveralls",
60416
- 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",
60417
- lint: "eslint lib test",
60418
- "lint-and-test": "npm run lint && npm test",
60419
- prepublishOnly: "npm run build",
60420
- test: "mocha --reporter dot",
60421
- travis: "nyc npm run lint-and-test && npm run coveralls"
60422
- },
60423
- version: "4.2.0"
60353
+ ]
60424
60354
  };
60425
60355
  }
60426
60356
  });