@weapp-tailwindcss/merge 0.0.1-alpha.0 → 1.0.0-alpha.1

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.
Files changed (2) hide show
  1. package/dist/index.cjs +11 -38
  2. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -1,33 +1,7 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
23
- cn: () => cn,
24
- cva: () => cva,
25
- weappTwIgnore: () => weappTwIgnore
26
- });
27
- module.exports = __toCommonJS(src_exports);
28
- var import_class_variance_authority = require("class-variance-authority");
29
- var import_clsx = require("clsx");
30
- var import_tailwind_merge = require("tailwind-merge");
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/index.ts
2
+ var _classvarianceauthority = require('class-variance-authority');
3
+ var _clsx = require('clsx');
4
+ var _tailwindmerge = require('tailwind-merge');
31
5
 
32
6
  // ../../node_modules/.pnpm/@weapp-core+escape@3.0.2/node_modules/@weapp-core/escape/dist/index.mjs
33
7
  var MappingChars2String = {
@@ -227,17 +201,16 @@ var weappTwIgnore = String.raw;
227
201
 
228
202
  // src/index.ts
229
203
  function cn(...inputs) {
230
- return replaceWxml((0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs)));
204
+ return replaceWxml(_tailwindmerge.twMerge.call(void 0, _clsx.clsx.call(void 0, inputs)));
231
205
  }
232
206
  function cva(...inputs) {
233
- const fn = (0, import_class_variance_authority.cva)(...inputs);
207
+ const fn = _classvarianceauthority.cva.call(void 0, ...inputs);
234
208
  return (...props) => {
235
209
  return replaceWxml(fn(...props));
236
210
  };
237
211
  }
238
- // Annotate the CommonJS export names for ESM import in node:
239
- 0 && (module.exports = {
240
- cn,
241
- cva,
242
- weappTwIgnore
243
- });
212
+
213
+
214
+
215
+
216
+ exports.cn = cn; exports.cva = cva; exports.weappTwIgnore = weappTwIgnore;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/merge",
3
3
  "type": "module",
4
- "version": "0.0.1-alpha.0",
4
+ "version": "1.0.0-alpha.1",
5
5
  "description": "weapp-tailwindcss",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "tailwind-merge": "^2.6.0"
32
32
  },
33
33
  "devDependencies": {
34
- "weapp-tailwindcss": "3.8.0-alpha.0"
34
+ "weapp-tailwindcss": "4.0.0-alpha.3"
35
35
  },
36
36
  "scripts": {
37
37
  "dev": "tsup --watch --sourcemap",