@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 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/v3.2.0-next.9/.github/logomark.svg" height="128" /></a><br/><br/>
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/v3.2.0-next.9/.github/wordmark-dark.svg" width="256"></a>
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/v3.2.0-next.9"><img src="https://img.shields.io/badge/tag-v3.2.0--next.9-ffd700" alt="tag v3.2.0-next.9"></a>
12
- <a href="https://www.npmjs.com/package/@css-hooks/react/v/3.2.0-next.9"><img src="https://img.shields.io/badge/npm-v3.2.0--next.9-ffd700" alt="npm version"></a>
13
- <a href="https://github.com/css-hooks/css-hooks/blob/v3.2.0-next.9/LICENSE"><img src="https://img.shields.io/badge/license-MIT-ffd700" alt="license"></a>
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
  ---
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /*
3
+ * Generated from @webref/css by @scripts/css-property-conflicts.
4
+ * Do not edit this file directly.
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
package/cjs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * CSS Hooks for {@link https://react.dev | React}
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
- * Source modified to account for custom properties.
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([
@@ -0,0 +1,5 @@
1
+ /*
2
+ * Generated from @webref/css by @scripts/css-property-conflicts.
3
+ * Do not edit this file directly.
4
+ */
5
+ export {};
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * CSS Hooks for {@link https://react.dev | React}
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
- * Source modified to account for custom properties.
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": "3.2.0-next.9",
4
+ "version": "4.0.0-next.10",
5
5
  "author": "Nick Saunders",
6
6
  "dependencies": {
7
- "@css-hooks/core": "3.2.0-next.9"
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
  },