@css-hooks/preact 1.7.0 → 1.8.1
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/package.json +2 -2
- package/types/index.d.ts +7 -13
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": "1.
|
|
4
|
+
"version": "1.8.1",
|
|
5
5
|
"author": "Nick Saunders",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@css-hooks/core": "^1.
|
|
7
|
+
"@css-hooks/core": "^1.8.1"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@tsconfig/strictest": "^2.0.1",
|
package/types/index.d.ts
CHANGED
|
@@ -25,28 +25,22 @@ export declare function stringifyValue(propertyName: string | number | symbol, v
|
|
|
25
25
|
*
|
|
26
26
|
* @returns The `hooks` CSS required to enable the configured hooks, along with the corresponding `css` function for use in components.
|
|
27
27
|
*/
|
|
28
|
-
export declare const createHooks: <HookProperties extends string>(config: Record<HookProperties, `@container ${string}` | `@media ${string}` | `:${string}` | `${string}&${string}` | {
|
|
29
|
-
or: readonly (`@container ${string}` | `@media ${string}` | `:${string}` | `${string}&${string}` | any | {
|
|
30
|
-
and: readonly (`@container ${string}` | `@media ${string}` | `:${string}` | `${string}&${string}` | any | any)[];
|
|
28
|
+
export declare const createHooks: <HookProperties extends string>(config: Record<HookProperties, `@container ${string}` | `@media ${string}` | `@supports ${string}` | `:${string}` | `${string}&${string}` | {
|
|
29
|
+
or: readonly (`@container ${string}` | `@media ${string}` | `@supports ${string}` | `:${string}` | `${string}&${string}` | any | {
|
|
30
|
+
and: readonly (`@container ${string}` | `@media ${string}` | `@supports ${string}` | `:${string}` | `${string}&${string}` | any | any)[];
|
|
31
31
|
})[];
|
|
32
32
|
} | {
|
|
33
|
-
and: readonly (`@container ${string}` | `@media ${string}` | `:${string}` | `${string}&${string}` | {
|
|
34
|
-
or: readonly (`@container ${string}` | `@media ${string}` | `:${string}` | `${string}&${string}` | any | any)[];
|
|
33
|
+
and: readonly (`@container ${string}` | `@media ${string}` | `@supports ${string}` | `:${string}` | `${string}&${string}` | {
|
|
34
|
+
or: readonly (`@container ${string}` | `@media ${string}` | `@supports ${string}` | `:${string}` | `${string}&${string}` | any | any)[];
|
|
35
35
|
} | any)[];
|
|
36
36
|
}>, options?: (({
|
|
37
37
|
debug?: boolean;
|
|
38
38
|
hookNameToId?: undefined;
|
|
39
39
|
} | {
|
|
40
40
|
debug?: undefined;
|
|
41
|
-
hookNameToId?: (hookName: string) => string;
|
|
42
|
-
* Creates the hooks specified in the configuration.
|
|
43
|
-
*
|
|
44
|
-
* @param config - The hooks to build
|
|
45
|
-
*
|
|
46
|
-
* @returns The `hooks` CSS required to enable the configured hooks, along with the corresponding `css` function for use in components.
|
|
47
|
-
*/
|
|
41
|
+
hookNameToId?: (hookName: string) => string;
|
|
48
42
|
}) & {
|
|
49
43
|
fallback?: "unset" | "revert-layer";
|
|
50
44
|
sort?: boolean;
|
|
51
|
-
}) | undefined) => [string, (
|
|
45
|
+
}) | undefined) => [string, (styles_0: import("@css-hooks/core").WithHooks<HookProperties, CSSProperties>, ...styles_1: (import("@css-hooks/core").WithHooks<HookProperties, CSSProperties> | undefined)[]) => CSSProperties];
|
|
52
46
|
export { recommended };
|