@css-hooks/preact 0.7.0 → 1.0.0
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 -5
- package/package.json +2 -2
- package/types/index.d.ts +3 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<p align="center">
|
|
11
11
|
<a href="https://github.com/css-hooks/css-hooks/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/css-hooks/css-hooks/ci.yml?branch=master" alt="Build Status"></a>
|
|
12
|
-
<a href="https://github.com/css-hooks/css-hooks/releases"><img src="https://img.shields.io/npm/v
|
|
12
|
+
<a href="https://github.com/css-hooks/css-hooks/releases"><img src="https://img.shields.io/npm/v/@css-hooks%2Fcore.svg" alt="Latest Release"></a>
|
|
13
13
|
<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>
|
|
14
14
|
</p>
|
|
15
15
|
|
|
@@ -49,11 +49,10 @@ Please visit [css-hooks.com](https://css-hooks.com) to get started.
|
|
|
49
49
|
|
|
50
50
|
## Packages
|
|
51
51
|
|
|
52
|
-
- [hooks.css](packages/hooks.css): The style sheet that enables CSS Hooks
|
|
53
52
|
- [@css-hooks/react](packages/react): React framework integration
|
|
54
53
|
- [@css-hooks/solid](packages/solid): Solid framework integration
|
|
55
54
|
- [@css-hooks/preact](packages/preact): Preact framework integration
|
|
56
|
-
- [@css-hooks/core](packages/core): Core
|
|
55
|
+
- [@css-hooks/core](packages/core): Core package (internal use only)
|
|
57
56
|
|
|
58
57
|
## Contributing
|
|
59
58
|
|
|
@@ -62,5 +61,4 @@ Contributions are welcome. Please see the
|
|
|
62
61
|
|
|
63
62
|
## License
|
|
64
63
|
|
|
65
|
-
CSS Hooks is offered under the [MIT license](LICENSE)
|
|
66
|
-
[Nick Saunders](https://github.com/nsaunders).
|
|
64
|
+
CSS Hooks is offered under the [MIT license](LICENSE).
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@css-hooks/preact",
|
|
3
3
|
"description": "CSS Hooks for Preact",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"author": "Nick Saunders",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@css-hooks/core": "^0.
|
|
7
|
+
"@css-hooks/core": "^1.0.0"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@tsconfig/node-lts": "^18.12.3",
|
package/types/index.d.ts
CHANGED
|
@@ -25,5 +25,7 @@ export declare function stringifyValue(propertyName: string | number | symbol, v
|
|
|
25
25
|
*
|
|
26
26
|
* @returns The CSS required to enable the configured hooks, along with the corresponding `hooks` function for use in components.
|
|
27
27
|
*/
|
|
28
|
-
export declare const createHooks: <HookProperties extends string | number | symbol>(config: Record<HookProperties, `@container ${string}` | `@media ${string}` | `:${string}` | `${string}&${string}
|
|
28
|
+
export declare const createHooks: <HookProperties extends string | number | symbol>(config: Record<HookProperties, `@container ${string}` | `@media ${string}` | `:${string}` | `${string}&${string}` | {
|
|
29
|
+
or: readonly ((`@container ${string}` | `@media ${string}` | `:${string}` | `${string}&${string}` | any) & string)[];
|
|
30
|
+
}>) => readonly [string, (properties: import("@css-hooks/core").WithHooks<HookProperties, CSSProperties>) => CSSProperties];
|
|
29
31
|
export { recommended };
|