@css-hooks/core 1.5.1 → 1.5.2
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/cjs/index.js +4 -6
- package/esm/index.js +4 -6
- package/package.json +9 -2
- package/types/index.d.ts +1 -1
package/cjs/index.js
CHANGED
|
@@ -203,12 +203,10 @@ function buildHooksSystem(stringify = genericStringify) {
|
|
|
203
203
|
});
|
|
204
204
|
return properties;
|
|
205
205
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
},
|
|
211
|
-
];
|
|
206
|
+
function css(properties) {
|
|
207
|
+
return cssImpl(JSON.parse(JSON.stringify(properties)));
|
|
208
|
+
}
|
|
209
|
+
return [`*{${hooks.init}}${hooks.rule}`, css];
|
|
212
210
|
};
|
|
213
211
|
}
|
|
214
212
|
exports.buildHooksSystem = buildHooksSystem;
|
package/esm/index.js
CHANGED
|
@@ -199,12 +199,10 @@ export function buildHooksSystem(stringify = genericStringify) {
|
|
|
199
199
|
});
|
|
200
200
|
return properties;
|
|
201
201
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
},
|
|
207
|
-
];
|
|
202
|
+
function css(properties) {
|
|
203
|
+
return cssImpl(JSON.parse(JSON.stringify(properties)));
|
|
204
|
+
}
|
|
205
|
+
return [`*{${hooks.init}}${hooks.rule}`, css];
|
|
208
206
|
};
|
|
209
207
|
}
|
|
210
208
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@css-hooks/core",
|
|
3
3
|
"description": "CSS Hooks core library",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.2",
|
|
5
5
|
"author": "Nick Saunders",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@tsconfig/strictest": "^2.0.1",
|
|
@@ -37,5 +37,12 @@
|
|
|
37
37
|
"prepublishOnly": "tsc -p tsconfig.dist.json --outDir esm --module es6 && tsc -p tsconfig.dist.json --outDir cjs --module commonjs && tsc -p tsconfig.dist.json --outDir types --declaration --emitDeclarationOnly",
|
|
38
38
|
"test": "jest"
|
|
39
39
|
},
|
|
40
|
-
"types": "types"
|
|
40
|
+
"types": "types",
|
|
41
|
+
"exports": {
|
|
42
|
+
".": {
|
|
43
|
+
"import": "./esm/index.js",
|
|
44
|
+
"require": "./cjs/index.js",
|
|
45
|
+
"types": "./types/index.d.ts"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
41
48
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare function buildHooksSystem<Properties = Record<string, unknown>>(s
|
|
|
18
18
|
/** @internal */ hookNameToId?: (hookName: string) => string;
|
|
19
19
|
}) & {
|
|
20
20
|
fallback?: "unset" | "revert-layer";
|
|
21
|
-
}) | undefined) =>
|
|
21
|
+
}) | undefined) => [string, (properties: WithHooks<HookProperties, Properties>) => Properties];
|
|
22
22
|
/**
|
|
23
23
|
* A list of hooks offered as a "sensible default" to solve the most common use cases.
|
|
24
24
|
*
|