@css-hooks/preact 3.0.0 → 3.0.2
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 +3 -11
- package/cjs/index.js +2 -2
- package/package.json +6 -7
- package/types/index.d.ts +1 -0
- package/{tsdoc-metadata.json → types/tsdoc-metadata.json} +1 -1
package/README.md
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
|
|
3
|
-
<a href="https://css-hooks.com/#gh-light-mode-only" target="_blank">
|
|
4
|
-
<img alt="CSS Hooks" src="https://raw.githubusercontent.com/css-hooks/css-hooks/HEAD/.github/logo-light.svg" width="310" height="64" style="max-width: 100%;">
|
|
5
|
-
</a>
|
|
6
|
-
</p>
|
|
7
|
-
|
|
8
|
-
<p align="center">
|
|
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
|
-
<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
3
|
<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
4
|
</p>
|
|
13
5
|
|
|
@@ -93,9 +85,9 @@ experience without runtime style injection or build steps.
|
|
|
93
85
|
|
|
94
86
|
### Framework integrations
|
|
95
87
|
|
|
96
|
-
| <img src="https://
|
|
97
|
-
|
|
|
98
|
-
| <div align="center"><a href="https://www.npmjs.com/package/@css-hooks/react">✅</a></div>
|
|
88
|
+
| <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 |
|
|
89
|
+
| ----------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
|
|
90
|
+
| <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
91
|
|
|
100
92
|
### Browser support
|
|
101
93
|
|
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.2",
|
|
5
5
|
"author": "Nick Saunders",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@css-hooks/core": "3.0.
|
|
7
|
+
"@css-hooks/core": "3.0.2"
|
|
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.2"
|
|
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
|
}
|
package/types/index.d.ts
CHANGED