tailwindcss 0.0.0-oxide-insiders.2a40326 → 0.0.0-oxide-insiders.9e34619

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.
package/CHANGELOG.md CHANGED
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
  - Add `--watch=always` option to prevent exit when stdin closes ([#9966](https://github.com/tailwindlabs/tailwindcss/pull/9966))
15
15
  - Add standalone CLI build for 64-bit Windows on ARM (`node16-win-arm64`) ([#10001](https://github.com/tailwindlabs/tailwindcss/pull/10001))
16
16
  - Add `delay-0` and `duration-0` by default ([#10294](https://github.com/tailwindlabs/tailwindcss/pull/10294))
17
+ - Add logical properties support for inline direction ([#10166](https://github.com/tailwindlabs/tailwindcss/pull/10166))
17
18
 
18
19
  ### Fixed
19
20
 
@@ -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
  [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "0.0.0-oxide-insiders.2a40326",
3
+ "version": "0.0.0-oxide-insiders.9e34619",
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",
@@ -73,7 +73,7 @@
73
73
  "postcss": "^8.0.9"
74
74
  },
75
75
  "dependencies": {
76
- "@tailwindcss/oxide": "0.0.0-oxide-insiders.2a40326",
76
+ "@tailwindcss/oxide": "0.0.0-oxide-insiders.9e34619",
77
77
  "arg": "^5.0.2",
78
78
  "browserslist": "^4.21.4",
79
79
  "chokidar": "^3.5.3",
@@ -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) {
@@ -1,6 +1,7 @@
1
1
  import fs from 'fs'
2
2
  import * as path from 'path'
3
3
  import postcss from 'postcss'
4
+ import { env } from './lib/sharedState'
4
5
  import createUtilityPlugin from './util/createUtilityPlugin'
5
6
  import buildMediaQuery from './util/buildMediaQuery'
6
7
  import escapeClassName from './util/escapeClassName'
@@ -623,6 +624,8 @@ export let corePlugins = {
623
624
  ['inset-y', ['top', 'bottom']],
624
625
  ],
625
626
  [
627
+ ['start', ['inset-inline-start']],
628
+ ['end', ['inset-inline-end']],
626
629
  ['top', ['top']],
627
630
  ['right', ['right']],
628
631
  ['bottom', ['bottom']],
@@ -674,6 +677,8 @@ export let corePlugins = {
674
677
  ['my', ['margin-top', 'margin-bottom']],
675
678
  ],
676
679
  [
680
+ ['ms', ['margin-inline-start']],
681
+ ['me', ['margin-inline-end']],
677
682
  ['mt', ['margin-top']],
678
683
  ['mr', ['margin-right']],
679
684
  ['mb', ['margin-bottom']],
@@ -1022,6 +1027,8 @@ export let corePlugins = {
1022
1027
  ['scroll-my', ['scroll-margin-top', 'scroll-margin-bottom']],
1023
1028
  ],
1024
1029
  [
1030
+ ['scroll-ms', ['scroll-margin-inline-start']],
1031
+ ['scroll-me', ['scroll-margin-inline-end']],
1025
1032
  ['scroll-mt', ['scroll-margin-top']],
1026
1033
  ['scroll-mr', ['scroll-margin-right']],
1027
1034
  ['scroll-mb', ['scroll-margin-bottom']],
@@ -1038,6 +1045,8 @@ export let corePlugins = {
1038
1045
  ['scroll-py', ['scroll-padding-top', 'scroll-padding-bottom']],
1039
1046
  ],
1040
1047
  [
1048
+ ['scroll-ps', ['scroll-padding-inline-start']],
1049
+ ['scroll-pe', ['scroll-padding-inline-end']],
1041
1050
  ['scroll-pt', ['scroll-padding-top']],
1042
1051
  ['scroll-pr', ['scroll-padding-right']],
1043
1052
  ['scroll-pb', ['scroll-padding-bottom']],
@@ -1211,6 +1220,16 @@ export let corePlugins = {
1211
1220
  'space-x': (value) => {
1212
1221
  value = value === '0' ? '0px' : value
1213
1222
 
1223
+ if (env.OXIDE) {
1224
+ return {
1225
+ '& > :not([hidden]) ~ :not([hidden])': {
1226
+ '--tw-space-x-reverse': '0',
1227
+ 'margin-inline-end': `calc(${value} * var(--tw-space-x-reverse))`,
1228
+ 'margin-inline-start': `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`,
1229
+ },
1230
+ }
1231
+ }
1232
+
1214
1233
  return {
1215
1234
  '& > :not([hidden]) ~ :not([hidden])': {
1216
1235
  '--tw-space-x-reverse': '0',
@@ -1246,6 +1265,17 @@ export let corePlugins = {
1246
1265
  'divide-x': (value) => {
1247
1266
  value = value === '0' ? '0px' : value
1248
1267
 
1268
+ if (env.OXIDE) {
1269
+ return {
1270
+ '& > :not([hidden]) ~ :not([hidden])': {
1271
+ '@defaults border-width': {},
1272
+ '--tw-divide-x-reverse': '0',
1273
+ 'border-inline-end-width': `calc(${value} * var(--tw-divide-x-reverse))`,
1274
+ 'border-inline-start-width': `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`,
1275
+ },
1276
+ }
1277
+ }
1278
+
1249
1279
  return {
1250
1280
  '& > :not([hidden]) ~ :not([hidden])': {
1251
1281
  '@defaults border-width': {},
@@ -1435,12 +1465,18 @@ export let corePlugins = {
1435
1465
  borderRadius: createUtilityPlugin('borderRadius', [
1436
1466
  ['rounded', ['border-radius']],
1437
1467
  [
1468
+ ['rounded-s', ['border-start-start-radius', 'border-end-start-radius']],
1469
+ ['rounded-e', ['border-start-end-radius', 'border-end-end-radius']],
1438
1470
  ['rounded-t', ['border-top-left-radius', 'border-top-right-radius']],
1439
1471
  ['rounded-r', ['border-top-right-radius', 'border-bottom-right-radius']],
1440
1472
  ['rounded-b', ['border-bottom-right-radius', 'border-bottom-left-radius']],
1441
1473
  ['rounded-l', ['border-top-left-radius', 'border-bottom-left-radius']],
1442
1474
  ],
1443
1475
  [
1476
+ ['rounded-ss', ['border-start-start-radius']],
1477
+ ['rounded-se', ['border-start-end-radius']],
1478
+ ['rounded-ee', ['border-end-end-radius']],
1479
+ ['rounded-es', ['border-end-start-radius']],
1444
1480
  ['rounded-tl', ['border-top-left-radius']],
1445
1481
  ['rounded-tr', ['border-top-right-radius']],
1446
1482
  ['rounded-br', ['border-bottom-right-radius']],
@@ -1457,6 +1493,8 @@ export let corePlugins = {
1457
1493
  ['border-y', [['@defaults border-width', {}], 'border-top-width', 'border-bottom-width']],
1458
1494
  ],
1459
1495
  [
1496
+ ['border-s', [['@defaults border-width', {}], 'border-inline-start-width']],
1497
+ ['border-e', [['@defaults border-width', {}], 'border-inline-end-width']],
1460
1498
  ['border-t', [['@defaults border-width', {}], 'border-top-width']],
1461
1499
  ['border-r', [['@defaults border-width', {}], 'border-right-width']],
1462
1500
  ['border-b', [['@defaults border-width', {}], 'border-bottom-width']],
@@ -1539,6 +1577,32 @@ export let corePlugins = {
1539
1577
 
1540
1578
  matchUtilities(
1541
1579
  {
1580
+ 'border-s': (value) => {
1581
+ if (!corePlugins('borderOpacity')) {
1582
+ return {
1583
+ 'border-inline-start-color': toColorValue(value),
1584
+ }
1585
+ }
1586
+
1587
+ return withAlphaVariable({
1588
+ color: value,
1589
+ property: 'border-inline-start-color',
1590
+ variable: '--tw-border-opacity',
1591
+ })
1592
+ },
1593
+ 'border-e': (value) => {
1594
+ if (!corePlugins('borderOpacity')) {
1595
+ return {
1596
+ 'border-inline-end-color': toColorValue(value),
1597
+ }
1598
+ }
1599
+
1600
+ return withAlphaVariable({
1601
+ color: value,
1602
+ property: 'border-inline-end-color',
1603
+ variable: '--tw-border-opacity',
1604
+ })
1605
+ },
1542
1606
  'border-t': (value) => {
1543
1607
  if (!corePlugins('borderOpacity')) {
1544
1608
  return {
@@ -1775,6 +1839,8 @@ export let corePlugins = {
1775
1839
  ['py', ['padding-top', 'padding-bottom']],
1776
1840
  ],
1777
1841
  [
1842
+ ['ps', ['padding-inline-start']],
1843
+ ['pe', ['padding-inline-end']],
1778
1844
  ['pt', ['padding-top']],
1779
1845
  ['pr', ['padding-right']],
1780
1846
  ['pb', ['padding-bottom']],