@teacss/classes 0.10.14 → 0.10.16
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/README.md +1 -1
- package/dist/merge.js +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -115,7 +115,7 @@ user exceptions propagate unchanged. Invalid array lengths throw `TypeError`.
|
|
|
115
115
|
Only tokens with identical ordered conditions can conflict. Like the generator,
|
|
116
116
|
`cn` orders conditions by selector role, so `p:4@md@hover` and `p:2@hover@md`
|
|
117
117
|
conflict, while `p:1@hover@focus` and `p:2@focus@hover` do not. The guards
|
|
118
|
-
`dark`, `light`, `
|
|
118
|
+
`dark`, `light`, `rtl` and `ltr` are the
|
|
119
119
|
exception within one role (they have no negated form): consecutive guards apply to
|
|
120
120
|
the same element, so their order is free, and `p:4@rtl@dark` and `p:2@dark@rtl`
|
|
121
121
|
conflict. A combinator between guards keeps them apart: `p:4@rtl@>li` and
|
package/dist/merge.js
CHANGED
|
@@ -80,7 +80,7 @@ const subjectStates = new Set([
|
|
|
80
80
|
"open",
|
|
81
81
|
"inert",
|
|
82
82
|
]);
|
|
83
|
-
const targetGuards = new Set(["dark", "light", "
|
|
83
|
+
const targetGuards = new Set(["dark", "light", "rtl", "ltr"]);
|
|
84
84
|
/**
|
|
85
85
|
* The roles a condition's CSS occupies, mirroring the Standard resolvers. A role
|
|
86
86
|
* the condition may not use is harmless: it only keeps more condition keys apart.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teacss/classes",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.16",
|
|
4
4
|
"description": "TeaCSS class composition — typed recipes, nested class-value joining, and semantic conflict resolution.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -28,8 +28,9 @@
|
|
|
28
28
|
"node": ">=26"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/node": "^
|
|
32
|
-
"typescript": "^
|
|
31
|
+
"@types/node": "^26.6.11",
|
|
32
|
+
"typescript": "^7.0.2",
|
|
33
|
+
"typescript6": "npm:typescript@^6.0.3"
|
|
33
34
|
},
|
|
34
35
|
"scripts": {
|
|
35
36
|
"build:ts": "node -e \"for (const d of ['build','dist']) require('fs').rmSync(d,{recursive:true,force:true})\" && tsc -p tsconfig.json && tsc -p tsconfig.test.json",
|