@css-hooks/react 3.2.0-next.9 → 4.0.0-next.10
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 +5 -5
- package/cjs/css-property-conflicts.js +6 -0
- package/cjs/index.js +4 -4
- package/esm/css-property-conflicts.js +5 -0
- package/esm/index.js +4 -4
- package/package.json +5 -3
- package/types/css-property-conflicts.d.ts +825 -0
- package/types/index.d.ts +8 -5
package/README.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<a id="logomark" href="https://next.css-hooks.com"><img alt="CSS Hooks" src="https://github.com/css-hooks/css-hooks/raw/
|
|
2
|
+
<a id="logomark" href="https://next.css-hooks.com"><img alt="CSS Hooks" src="https://github.com/css-hooks/css-hooks/raw/v4.0.0-next.10/.github/logomark.svg" height="128" /></a><br/><br/>
|
|
3
3
|
<div id="wordmark">
|
|
4
|
-
<a href="https://next.css-hooks.com"><img alt="CSS Hooks" src="https://github.com/css-hooks/css-hooks/raw/
|
|
4
|
+
<a href="https://next.css-hooks.com"><img alt="CSS Hooks" src="https://github.com/css-hooks/css-hooks/raw/v4.0.0-next.10/.github/wordmark-dark.svg" width="256"></a>
|
|
5
5
|
</div>
|
|
6
6
|
</div>
|
|
7
7
|
|
|
8
8
|
<br/>
|
|
9
9
|
|
|
10
10
|
<div align="center" id="badges">
|
|
11
|
-
<a href="https://github.com/css-hooks/css-hooks/tree/
|
|
12
|
-
<a href="https://www.npmjs.com/package/@css-hooks/react/v/
|
|
13
|
-
<a href="https://github.com/css-hooks/css-hooks/blob/
|
|
11
|
+
<a href="https://github.com/css-hooks/css-hooks/tree/v4.0.0-next.10"><img src="https://img.shields.io/badge/tag-v4.0.0--next.10-ffd700" alt="tag v4.0.0-next.10"></a>
|
|
12
|
+
<a href="https://www.npmjs.com/package/@css-hooks/react/v/4.0.0-next.10"><img src="https://img.shields.io/badge/npm-v4.0.0--next.10-ffd700" alt="npm version"></a>
|
|
13
|
+
<a href="https://github.com/css-hooks/css-hooks/blob/v4.0.0-next.10/LICENSE"><img src="https://img.shields.io/badge/license-MIT-ffd700" alt="license"></a>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
16
|
---
|
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* CSS Hooks for {@link https://react.dev | React}
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
@@ -22,14 +22,14 @@ function _stringifyValue(value, propertyName) {
|
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* A {@link @css-hooks/core#CreateHooksFn} configured to use React's
|
|
25
|
-
* `CSSProperties` type and logic for converting CSS values into strings
|
|
25
|
+
* `CSSProperties` type and logic for converting CSS values into strings
|
|
26
26
|
*
|
|
27
27
|
* @public
|
|
28
28
|
*/
|
|
29
29
|
exports.createHooks = (0, core_1.buildHooksSystem)(_stringifyValue);
|
|
30
30
|
/**
|
|
31
|
-
* Following code (c) Meta Platforms, Inc. and affiliates.
|
|
32
|
-
*
|
|
31
|
+
* Following code (c) Meta Platforms, Inc. and affiliates. Source modified to
|
|
32
|
+
* account for custom properties.
|
|
33
33
|
*/
|
|
34
34
|
/** @internal */
|
|
35
35
|
exports._unitlessNumbers = new Set([
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* CSS Hooks for {@link https://react.dev | React}
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
@@ -18,14 +18,14 @@ export function _stringifyValue(value, propertyName) {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* A {@link @css-hooks/core#CreateHooksFn} configured to use React's
|
|
21
|
-
* `CSSProperties` type and logic for converting CSS values into strings
|
|
21
|
+
* `CSSProperties` type and logic for converting CSS values into strings
|
|
22
22
|
*
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
25
|
export const createHooks = buildHooksSystem(_stringifyValue);
|
|
26
26
|
/**
|
|
27
|
-
* Following code (c) Meta Platforms, Inc. and affiliates.
|
|
28
|
-
*
|
|
27
|
+
* Following code (c) Meta Platforms, Inc. and affiliates. Source modified to
|
|
28
|
+
* account for custom properties.
|
|
29
29
|
*/
|
|
30
30
|
/** @internal */
|
|
31
31
|
export const _unitlessNumbers = new Set([
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@css-hooks/react",
|
|
3
3
|
"description": "CSS Hooks for React",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0-next.10",
|
|
5
5
|
"author": "Nick Saunders",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@css-hooks/core": "
|
|
7
|
+
"@css-hooks/core": "4.0.0-next.10"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@types/react": "^19.0.4"
|
|
10
|
+
"@types/react": "^19.0.4",
|
|
11
|
+
"remeda": "^2.45.0"
|
|
11
12
|
},
|
|
12
13
|
"files": [
|
|
13
14
|
"cjs",
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
},
|
|
37
38
|
"scripts": {
|
|
38
39
|
"build": "wireit",
|
|
40
|
+
"codegen": "npm run --silent start -w @scripts/css-property-conflicts -- --casing camel > src/css-property-conflicts.ts",
|
|
39
41
|
"prepublishOnly": "wireit",
|
|
40
42
|
"test": "node --conditions @css-hooks/source --test src/index.test.ts"
|
|
41
43
|
},
|