@css-hooks/qwik 4.0.0-next.80 → 4.0.0-next.82

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/esm/index.d.ts ADDED
@@ -0,0 +1,33 @@
1
+ /**
2
+ * CSS Hooks for {@link https://qwik.dev | Qwik}
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ import type { HooksSystem } from "@css-hooks/core";
7
+ import type { CSSProperties } from "@qwik.dev/core" with {
8
+ "resolution-mode": "import"
9
+ };
10
+ import type { CSSPropertyConflicts } from "./css-property-conflicts.ts";
11
+ export type * from "@css-hooks/core";
12
+ export type { CSSPropertyConflicts } from "./css-property-conflicts.ts";
13
+ /** @internal */
14
+ export declare function _stringifyValue(value: unknown, propertyName: string): string | null;
15
+ /**
16
+ * A hook factory configured to use Qwik’s `CSSProperties` type and logic for
17
+ * converting CSS values into strings
18
+ *
19
+ * @public
20
+ */
21
+ export declare const createHooks: import("@css-hooks/core").CreateHooksFn<CSSProperties>;
22
+ /** A style merger configured to use Qwik’s `CSSProperties` type. @public */
23
+ export declare const mergeStyles: HooksSystem<CSSProperties, CSSPropertyConflicts>["mergeStyles"];
24
+ /**
25
+ * Following code (c) Builder.io. Source modified to account for custom
26
+ * properties.
27
+ */
28
+ /**
29
+ * CSS properties which accept numbers but are not in units of "px".
30
+ *
31
+ * @internal
32
+ */
33
+ export declare const _unitlessNumbers: Set<string>;
package/esm/index.js CHANGED
@@ -17,13 +17,13 @@ export function _stringifyValue(value, propertyName) {
17
17
  }
18
18
  const hooksSystem = createHooksSystem(_stringifyValue);
19
19
  /**
20
- * A hook factory configured to use Qwik's `CSSProperties` type and logic for
20
+ * A hook factory configured to use Qwik’s `CSSProperties` type and logic for
21
21
  * converting CSS values into strings
22
22
  *
23
23
  * @public
24
24
  */
25
25
  export const createHooks = hooksSystem.createHooks;
26
- /** A style merger configured to use Qwik's `CSSProperties` type. @public */
26
+ /** A style merger configured to use Qwik’s `CSSProperties` type. @public */
27
27
  export const mergeStyles = hooksSystem.mergeStyles;
28
28
  /**
29
29
  * Following code (c) Builder.io. Source modified to account for custom
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@css-hooks/qwik",
3
3
  "description": "CSS Hooks for Qwik",
4
- "version": "4.0.0-next.80",
4
+ "version": "4.0.0-next.82",
5
5
  "author": "Nick Saunders",
6
6
  "dependencies": {
7
- "@css-hooks/core": "4.0.0-next.80"
7
+ "@css-hooks/core": "4.0.0-next.82"
8
8
  },
9
9
  "devDependencies": {
10
10
  "@qwik.dev/core": "^2.0.0-beta.30"
@@ -12,7 +12,6 @@
12
12
  "files": [
13
13
  "cjs",
14
14
  "esm",
15
- "types",
16
15
  "tsdoc-metadata.json",
17
16
  "!**/*.test.*"
18
17
  ],
@@ -37,12 +36,19 @@
37
36
  "directory": "packages/qwik"
38
37
  },
39
38
  "scripts": {
39
+ "attw": "wireit",
40
40
  "build": "wireit",
41
41
  "codegen": "npm run --silent start -w @scripts/css-property-conflicts -- --casing camel --casing kebab > src/css-property-conflicts.ts",
42
42
  "prepublishOnly": "wireit",
43
43
  "test": "node --conditions @css-hooks/source --test src/index.test.ts"
44
44
  },
45
45
  "wireit": {
46
+ "attw": {
47
+ "command": "attw --pack .",
48
+ "dependencies": [
49
+ "build"
50
+ ]
51
+ },
46
52
  "apix": {
47
53
  "command": "api-extractor run",
48
54
  "dependencies": [
@@ -61,13 +67,12 @@
61
67
  ]
62
68
  }
63
69
  },
64
- "types": "types",
70
+ "types": "./esm/index.d.ts",
65
71
  "exports": {
66
72
  ".": {
67
73
  "@css-hooks/source": "./src/index.ts",
68
74
  "import": "./esm/index.js",
69
- "require": "./cjs/index.js",
70
- "types": "./types/index.d.ts"
75
+ "require": "./cjs/index.js"
71
76
  }
72
77
  }
73
78
  }
File without changes