@pikacss/plugin-reset 0.0.52 → 0.0.54
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 +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +5 -4
- package/package.json +4 -4
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -40,9 +40,10 @@ declare module '@pikacss/core' {
|
|
|
40
40
|
*
|
|
41
41
|
* @remarks
|
|
42
42
|
* The plugin reads the `reset` option from the engine config to select a
|
|
43
|
-
* stylesheet. If unset, it defaults to `'modern-normalize'`.
|
|
44
|
-
*
|
|
45
|
-
*
|
|
43
|
+
* stylesheet. If unset, it defaults to `'modern-normalize'`. The `reset`
|
|
44
|
+
* layer's order defaults to `-1` (set only when `layers.reset` is not
|
|
45
|
+
* already configured), which places the reset styles before utility output
|
|
46
|
+
* unless the config overrides the layer order.
|
|
46
47
|
*
|
|
47
48
|
* @example
|
|
48
49
|
* ```ts
|
package/dist/index.mjs
CHANGED
|
@@ -918,9 +918,10 @@ const resetStyles = {
|
|
|
918
918
|
*
|
|
919
919
|
* @remarks
|
|
920
920
|
* The plugin reads the `reset` option from the engine config to select a
|
|
921
|
-
* stylesheet. If unset, it defaults to `'modern-normalize'`.
|
|
922
|
-
*
|
|
923
|
-
*
|
|
921
|
+
* stylesheet. If unset, it defaults to `'modern-normalize'`. The `reset`
|
|
922
|
+
* layer's order defaults to `-1` (set only when `layers.reset` is not
|
|
923
|
+
* already configured), which places the reset styles before utility output
|
|
924
|
+
* unless the config overrides the layer order.
|
|
924
925
|
*
|
|
925
926
|
* @example
|
|
926
927
|
* ```ts
|
|
@@ -940,7 +941,7 @@ function reset() {
|
|
|
940
941
|
configureRawConfig: (config) => {
|
|
941
942
|
if (config.reset) style = config.reset;
|
|
942
943
|
config.layers ??= {};
|
|
943
|
-
config.layers.reset
|
|
944
|
+
config.layers.reset ??= -1;
|
|
944
945
|
},
|
|
945
946
|
configureEngine: async (engine) => {
|
|
946
947
|
const resetCss = resetStyles[style];
|
package/package.json
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.0.
|
|
7
|
+
"version": "0.0.54",
|
|
8
8
|
"author": "DevilTea <ch19980814@gmail.com>",
|
|
9
9
|
"license": "MIT",
|
|
10
|
-
"homepage": "https://pikacss.
|
|
10
|
+
"homepage": "https://pikacss.github.io",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "git+https://github.com/pikacss/pikacss.git",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"node": ">=22"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@pikacss/core": "0.0.
|
|
42
|
+
"@pikacss/core": "0.0.54"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@pikacss/core": "0.0.
|
|
45
|
+
"@pikacss/core": "0.0.54"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsdown",
|