@css-hooks/qwik 4.0.0-next.51 → 4.0.0-next.52

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/v4.0.0-next.51/.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.52/.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/v4.0.0-next.51/.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.52/.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/v4.0.0-next.51"><img src="https://img.shields.io/badge/tag-v4.0.0--next.51-ffd700" alt="tag v4.0.0-next.51"></a>
12
- <a href="https://www.npmjs.com/package/@css-hooks/qwik/v/4.0.0-next.51"><img src="https://img.shields.io/badge/npm-v4.0.0--next.51-ffd700" alt="npm version"></a>
13
- <a href="https://github.com/css-hooks/css-hooks/blob/v4.0.0-next.51/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.52"><img src="https://img.shields.io/badge/tag-v4.0.0--next.52-ffd700" alt="tag v4.0.0-next.52"></a>
12
+ <a href="https://www.npmjs.com/package/@css-hooks/qwik/v/4.0.0-next.52"><img src="https://img.shields.io/badge/npm-v4.0.0--next.52-ffd700" alt="npm version"></a>
13
+ <a href="https://github.com/css-hooks/css-hooks/blob/v4.0.0-next.52/LICENSE"><img src="https://img.shields.io/badge/license-MIT-ffd700" alt="license"></a>
14
14
  </div>
15
15
 
16
16
  ---
@@ -29,7 +29,7 @@ experience without runtime style injection or build steps.
29
29
 
30
30
  ```jsx
31
31
  <button
32
- style={pipe(
32
+ style={mergeStyles(
33
33
  {
34
34
  background: "#004982",
35
35
  color: "#eeeff0",
@@ -52,7 +52,7 @@ experience without runtime style injection or build steps.
52
52
  <label>
53
53
  <input type="checkbox" checked />
54
54
  <span
55
- style={pipe(
55
+ style={mergeStyles(
56
56
  {},
57
57
  on(":checked + &", {
58
58
  textDecoration: "line-through",
@@ -69,7 +69,7 @@ experience without runtime style injection or build steps.
69
69
  ```jsx
70
70
  <>
71
71
  <span
72
- style={pipe(
72
+ style={mergeStyles(
73
73
  {},
74
74
  on(not("@container (width < 400px)"), {
75
75
  display: "none",
@@ -79,7 +79,7 @@ experience without runtime style injection or build steps.
79
79
  sm
80
80
  </span>
81
81
  <span
82
- style={pipe(
82
+ style={mergeStyles(
83
83
  {},
84
84
  on("@container (width < 400px)", {
85
85
  display: "none",
@@ -93,7 +93,7 @@ experience without runtime style injection or build steps.
93
93
 
94
94
  ## Compatibility
95
95
 
96
- ### Framework integrations
96
+ ### Frameworks
97
97
 
98
98
  | <img src="https://dl.svgcdn.com/svg/logos/react.svg" alt="React" width="24" height="24" /><br/>React | <img src="https://dl.svgcdn.com/svg/logos/preact.svg" alt="Preact" width="24" height="24" /><br/>Preact | <img src="https://dl.svgcdn.com/svg/logos/solidjs-icon.svg" alt="Solid" width="24" height="24" /><br/>Solid | <img src="https://dl.svgcdn.com/svg/logos/qwik-icon.svg" alt="Qwik" width="24" height="24" /><br/>Qwik |
99
99
  | :--------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------: |
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.51",
4
+ "version": "4.0.0-next.52",
5
5
  "author": "Nick Saunders",
6
6
  "dependencies": {
7
- "@css-hooks/core": "4.0.0-next.51"
7
+ "@css-hooks/core": "4.0.0-next.52"
8
8
  },
9
9
  "devDependencies": {
10
10
  "@qwik.dev/core": "^2.0.0-beta.30",
package/types/index.d.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
+ import type { HooksSystem } from "@css-hooks/core";
6
7
  import type { CSSProperties } from "@qwik.dev/core";
7
8
  import type { CSSPropertyConflicts } from "./css-property-conflicts.ts";
8
9
  export type * from "@css-hooks/core";
@@ -15,12 +16,9 @@ export declare function _stringifyValue(value: unknown, propertyName: string): s
15
16
  *
16
17
  * @public
17
18
  */
18
- export declare const createHooks: import("@css-hooks/core").CreateHooksFn<CSSProperties, CSSPropertyConflicts>;
19
+ export declare const createHooks: import("@css-hooks/core").CreateHooksFn<CSSProperties>;
19
20
  /** A style merger configured to use Qwik's `CSSProperties` type. @public */
20
- export declare const mergeStyles: <const OverrideStyle extends CSSProperties, Style extends CSSProperties>(overrideStyle: OverrideStyle | null | undefined) => {
21
- <ActualStyle extends CSSProperties>(style: ActualStyle): Omit<ActualStyle, keyof OverrideStyle> & OverrideStyle;
22
- (style: CSSProperties & Style): Omit<Style, keyof OverrideStyle> & OverrideStyle;
23
- };
21
+ export declare const mergeStyles: HooksSystem<CSSProperties, CSSPropertyConflicts>["mergeStyles"];
24
22
  /**
25
23
  * Following code (c) Builder.io. Source modified to account for custom
26
24
  * properties.