@css-hooks/core 1.2.0 → 1.2.1

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/cjs/index.js CHANGED
@@ -129,7 +129,7 @@ function buildHooksSystem(stringify = genericStringify) {
129
129
  const b = `${x}B`;
130
130
  return [
131
131
  `--${x}-0:var(--${a}-0,var(--${b}-0));`,
132
- `--${x}-1:var(--${a}-0,var(--${b}-1)) var(--${b}-0,var(--${a}-1)) var(--${a}-1,var(--${b}-1));`,
132
+ `--${x}-1:var(--${a}-1) var(--${b}-1);`,
133
133
  ].join("");
134
134
  })(name),
135
135
  },
@@ -150,8 +150,8 @@ function buildHooksSystem(stringify = genericStringify) {
150
150
  const a = `${x}A`;
151
151
  const b = `${x}B`;
152
152
  return [
153
- `--${x}-0:var(--${a}-0,var(--${b}-0)) var(--${a}-1,var(--${b}-0)) var(--${b}-1,var(--${a}-0));`,
154
- `--${x}-1:var(--${a}-1,var(${b}-1));`,
153
+ `--${x}-0:var(--${a}-0) var(--${b}-0);`,
154
+ `--${x}-1:var(--${a}-1,var(--${b}-1));`,
155
155
  ].join("");
156
156
  })(name),
157
157
  },
package/esm/index.js CHANGED
@@ -125,7 +125,7 @@ export function buildHooksSystem(stringify = genericStringify) {
125
125
  const b = `${x}B`;
126
126
  return [
127
127
  `--${x}-0:var(--${a}-0,var(--${b}-0));`,
128
- `--${x}-1:var(--${a}-0,var(--${b}-1)) var(--${b}-0,var(--${a}-1)) var(--${a}-1,var(--${b}-1));`,
128
+ `--${x}-1:var(--${a}-1) var(--${b}-1);`,
129
129
  ].join("");
130
130
  })(name),
131
131
  },
@@ -146,8 +146,8 @@ export function buildHooksSystem(stringify = genericStringify) {
146
146
  const a = `${x}A`;
147
147
  const b = `${x}B`;
148
148
  return [
149
- `--${x}-0:var(--${a}-0,var(--${b}-0)) var(--${a}-1,var(--${b}-0)) var(--${b}-1,var(--${a}-0));`,
150
- `--${x}-1:var(--${a}-1,var(${b}-1));`,
149
+ `--${x}-0:var(--${a}-0) var(--${b}-0);`,
150
+ `--${x}-1:var(--${a}-1,var(--${b}-1));`,
151
151
  ].join("");
152
152
  })(name),
153
153
  },
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@css-hooks/core",
3
3
  "description": "CSS Hooks core library",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "author": "Nick Saunders",
6
6
  "devDependencies": {
7
- "@tsconfig/node-lts": "^18.12.3",
8
7
  "@tsconfig/strictest": "^2.0.1",
9
8
  "@types/css-tree": "^2.3.2",
10
9
  "@types/jest": "^29.5.3",
@@ -33,6 +32,7 @@
33
32
  },
34
33
  "scripts": {
35
34
  "clean": "rimraf cjs esm types",
35
+ "compile": "tsc",
36
36
  "lint": "eslint __tests__ src .*.*js *.*js",
37
37
  "prepublishOnly": "tsc -p tsconfig.dist.json --outDir esm --module es6 && tsc -p tsconfig.dist.json --outDir cjs --module commonjs && tsc -p tsconfig.dist.json --outDir types --declaration --emitDeclarationOnly",
38
38
  "test": "jest"