@weapp-tailwindcss/reset 0.1.4 → 0.1.6

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/dist/index.cjs CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- //#region \0rolldown/runtime.js
5
+ // \0rolldown/runtime.js
6
6
  var __create = Object.create;
7
7
  var __defProp = Object.defineProperty;
8
8
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -23,10 +23,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
23
  value: mod,
24
24
  enumerable: true
25
25
  }) : target, mod));
26
- //#endregion
27
26
  let tailwindcss_plugin = require("tailwindcss/plugin");
28
27
  tailwindcss_plugin = __toESM(tailwindcss_plugin, 1);
29
- //#region src/normalize.ts
28
+ // src/normalize.ts
30
29
  function normalizeResetSelectors(option, defaults) {
31
30
  const resolved = option?.selectors?.length ? option.selectors : defaults;
32
31
  const normalized = [];
@@ -89,8 +88,7 @@ function createResetRule(option, defaults) {
89
88
  pseudo
90
89
  };
91
90
  }
92
- //#endregion
93
- //#region src/index.ts
91
+ // src/index.ts
94
92
  const DEFAULT_BUTTON_RESET_SELECTORS = ["button"];
95
93
  const DEFAULT_BUTTON_DECLARATIONS = {
96
94
  padding: "0",
@@ -263,6 +261,5 @@ const reset = tailwindcss_plugin.default.withOptions((options) => {
263
261
  }, () => {
264
262
  return {};
265
263
  });
266
- //#endregion
267
264
  exports.default = reset;
268
265
  exports.reset = reset;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/types.d.ts
2
1
  type ResetPreset = 'minimal' | 'form' | 'content' | 'media' | 'all';
3
2
  type BuiltInResetName = 'buttonReset' | 'imageReset' | 'inputReset' | 'textareaReset' | 'listReset' | 'navigatorReset' | 'videoReset';
4
3
  interface ResetOptions {
@@ -44,9 +43,7 @@ interface ResetConfig {
44
43
  declarations?: Record<string, string | number | false | null | undefined>;
45
44
  pseudo?: Record<string, string | number | false | null | undefined>;
46
45
  }
47
- //#endregion
48
- //#region src/index.d.ts
49
- interface ResetPluginResult {
46
+ export interface ResetPluginResult {
50
47
  handler: (api: {
51
48
  addBase: (base: Record<string, Record<string, string>>) => void;
52
49
  }) => void;
@@ -63,6 +60,5 @@ interface ResetPlugin {
63
60
  };
64
61
  __isOptionsFunction: true;
65
62
  }
66
- declare const reset: ResetPlugin;
67
- //#endregion
68
- export { type BuiltInResetName, type ResetConfig, type ResetOptions, ResetPlugin, ResetPluginResult, type ResetPreset, reset as default, reset };
63
+ export declare const reset: ResetPlugin;
64
+ export { type BuiltInResetName, type ResetConfig, type ResetOptions, ResetPlugin, type ResetPreset, reset as default };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import plugin from "tailwindcss/plugin";
2
- //#region src/normalize.ts
2
+ // src/normalize.ts
3
3
  function normalizeResetSelectors(option, defaults) {
4
4
  const resolved = option?.selectors?.length ? option.selectors : defaults;
5
5
  const normalized = [];
@@ -62,8 +62,7 @@ function createResetRule(option, defaults) {
62
62
  pseudo
63
63
  };
64
64
  }
65
- //#endregion
66
- //#region src/index.ts
65
+ // src/index.ts
67
66
  const DEFAULT_BUTTON_RESET_SELECTORS = ["button"];
68
67
  const DEFAULT_BUTTON_DECLARATIONS = {
69
68
  padding: "0",
@@ -236,5 +235,4 @@ const reset = plugin.withOptions((options) => {
236
235
  }, () => {
237
236
  return {};
238
237
  });
239
- //#endregion
240
238
  export { reset as default, reset };
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/reset",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.1.6",
5
5
  "description": "Cross-platform reset styles for weapp-tailwindcss projects. weapp-tailwindcss 项目的跨端 reset 样式资源。",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
8
8
  "homepage": "https://tw.weapp.dev",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git+https://github.com/sonofmagic/weapp-tailwindcss.git",
11
+ "url": "git+https://github.com/weapp-tailwindcss/weapp-tailwindcss.git",
12
12
  "directory": "packages/reset"
13
13
  },
14
14
  "bugs": {
15
- "url": "https://github.com/sonofmagic/weapp-tailwindcss/issues"
15
+ "url": "https://github.com/weapp-tailwindcss/weapp-tailwindcss/issues"
16
16
  },
17
17
  "keywords": [
18
18
  "weapp-tailwindcss",