@css-hooks/solid 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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/types/index.d.ts +6 -6
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@css-hooks/solid",
3
3
  "description": "CSS Hooks for Solid",
4
- "version": "1.7.0",
4
+ "version": "1.8.1",
5
5
  "author": "Nick Saunders",
6
6
  "dependencies": {
7
- "@css-hooks/core": "^1.7.0",
7
+ "@css-hooks/core": "^1.8.1",
8
8
  "ts-toolbelt": "^9.6.0"
9
9
  },
10
10
  "devDependencies": {
package/types/index.d.ts CHANGED
@@ -9,13 +9,13 @@ export declare const stringifyValue: typeof genericStringify;
9
9
  *
10
10
  * @returns The `hooks` CSS required to enable the configured hooks, along with the corresponding `css` function for use in components.
11
11
  */
12
- export declare const createHooks: <HookProperties extends string>(config: Record<HookProperties, `@container ${string}` | `@media ${string}` | `:${string}` | `${string}&${string}` | {
13
- or: readonly (`@container ${string}` | `@media ${string}` | `:${string}` | `${string}&${string}` | any | {
14
- and: readonly (`@container ${string}` | `@media ${string}` | `:${string}` | `${string}&${string}` | any | any)[];
12
+ export declare const createHooks: <HookProperties extends string>(config: Record<HookProperties, `@container ${string}` | `@media ${string}` | `@supports ${string}` | `:${string}` | `${string}&${string}` | {
13
+ or: readonly (`@container ${string}` | `@media ${string}` | `@supports ${string}` | `:${string}` | `${string}&${string}` | any | {
14
+ and: readonly (`@container ${string}` | `@media ${string}` | `@supports ${string}` | `:${string}` | `${string}&${string}` | any | any)[];
15
15
  })[];
16
16
  } | {
17
- and: readonly (`@container ${string}` | `@media ${string}` | `:${string}` | `${string}&${string}` | {
18
- or: readonly (`@container ${string}` | `@media ${string}` | `:${string}` | `${string}&${string}` | any | any)[];
17
+ and: readonly (`@container ${string}` | `@media ${string}` | `@supports ${string}` | `:${string}` | `${string}&${string}` | {
18
+ or: readonly (`@container ${string}` | `@media ${string}` | `@supports ${string}` | `:${string}` | `${string}&${string}` | any | any)[];
19
19
  } | any)[];
20
20
  }>, options?: (({
21
21
  debug?: boolean;
@@ -26,7 +26,7 @@ export declare const createHooks: <HookProperties extends string>(config: Record
26
26
  }) & {
27
27
  fallback?: "unset" | "revert-layer";
28
28
  sort?: boolean;
29
- }) | undefined) => [string, (properties_0: import("@css-hooks/core").WithHooks<HookProperties, JSX.CSSProperties>, ...properties_1: (import("@css-hooks/core").WithHooks<HookProperties, JSX.CSSProperties> | undefined)[]) => JSX.CSSProperties];
29
+ }) | undefined) => [string, (styles_0: import("@css-hooks/core").WithHooks<HookProperties, JSX.CSSProperties>, ...styles_1: (import("@css-hooks/core").WithHooks<HookProperties, JSX.CSSProperties> | undefined)[]) => JSX.CSSProperties];
30
30
  /**
31
31
  * A list of hooks offered as a "sensible default" to solve the most common use cases.
32
32
  *