@css-hooks/preact 3.0.1 → 3.0.3
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 +4 -3
- package/cjs/index.js +2 -2
- package/package.json +6 -7
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
<p align="center">
|
|
9
9
|
<a href="https://github.com/css-hooks/css-hooks/actions/workflows/build.yml"><img src="https://img.shields.io/github/actions/workflow/status/css-hooks/css-hooks/build.yml?branch=master" alt="Build Status"></a>
|
|
10
10
|
<a href="https://www.npmjs.com/org/css-hooks"><img src="https://img.shields.io/npm/v/@css-hooks%2Fcore.svg" alt="Latest Release"></a>
|
|
11
|
+
|
|
11
12
|
<a href="https://github.com/css-hooks/css-hooks/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/css-hooks.svg" alt="License"></a>
|
|
12
13
|
</p>
|
|
13
14
|
|
|
@@ -93,9 +94,9 @@ experience without runtime style injection or build steps.
|
|
|
93
94
|
|
|
94
95
|
### Framework integrations
|
|
95
96
|
|
|
96
|
-
| <img src="https://
|
|
97
|
-
|
|
|
98
|
-
| <div align="center"><a href="https://www.npmjs.com/package/@css-hooks/react">✅</a></div>
|
|
97
|
+
| <img src="https://upload.wikimedia.org/wikipedia/commons/a/a7/React-icon.svg" alt="React" width="24" height="24" /><br/>React | <img src="https://github.com/preactjs.png" alt="Preact" width="24" height="24" /><br/>Preact | <img src="https://github.com/solidjs.png" alt="Solid" width="24" heght="24" /><br/>Solid | <img src="https://github.com/qwikdev.png" alt="Qwik" width="24" height="24" /><br/>Qwik |
|
|
98
|
+
| ----------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
|
|
99
|
+
| <div align="center"><a href="https://www.npmjs.com/package/@css-hooks/react">✅</a></div> | <div align="center"><a href="https://www.npmjs.com/package/@css-hooks/preact">✅</a></div> | <div align="center"><a href="https://www.npmjs.com/package/@css-hooks/solid">✅</a></div> | <div align="center"><a href="https://www.npmjs.com/package/@css-hooks/qwik">✅</a></div> |
|
|
99
100
|
|
|
100
101
|
### Browser support
|
|
101
102
|
|
package/cjs/index.js
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.createHooks = void 0;
|
|
9
|
+
exports._stringifyValue = _stringifyValue;
|
|
9
10
|
const core_1 = require("@css-hooks/core");
|
|
10
11
|
const IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
11
12
|
/**
|
|
@@ -29,4 +30,3 @@ function _stringifyValue(value, propertyName) {
|
|
|
29
30
|
return null;
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
|
-
exports._stringifyValue = _stringifyValue;
|
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@css-hooks/preact",
|
|
3
3
|
"description": "CSS Hooks for Preact",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.3",
|
|
5
5
|
"author": "Nick Saunders",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@css-hooks/core": "3.0.
|
|
7
|
+
"@css-hooks/core": "3.0.3"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@microsoft/api-extractor": "^7.39.4",
|
|
11
|
-
"@types/node": "^
|
|
11
|
+
"@types/node": "^22.0.0",
|
|
12
12
|
"preact": ">=10.0.0 <11.0.0",
|
|
13
|
-
"rimraf": "^
|
|
14
|
-
"
|
|
15
|
-
"typescript": "=5.4.5"
|
|
13
|
+
"rimraf": "^6.0.1",
|
|
14
|
+
"typescript": "5.7.0-beta"
|
|
16
15
|
},
|
|
17
16
|
"files": [
|
|
18
17
|
"cjs",
|
|
@@ -50,6 +49,6 @@
|
|
|
50
49
|
},
|
|
51
50
|
"scripts": {
|
|
52
51
|
"clean": "rimraf cjs esm types",
|
|
53
|
-
"test": "node --
|
|
52
|
+
"test": "node --experimental-strip-types --conditions @css-hooks/source --test src/index.test.ts"
|
|
54
53
|
}
|
|
55
54
|
}
|