@weapp-tailwindcss/cn 0.1.4 → 0.2.0
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 +2 -0
- package/README.zh-CN.md +2 -0
- package/dist/index.cjs +1 -2
- package/dist/index.d.cts +0 -2
- package/dist/index.d.mts +0 -2
- package/dist/index.mjs +1 -2
- package/package.json +7 -7
package/README.md
CHANGED
package/README.zh-CN.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _weapp_tailwindcss_runtime = require("@weapp-tailwindcss/runtime");
|
|
3
3
|
let cn = require("cn");
|
|
4
|
-
|
|
4
|
+
// src/index.ts
|
|
5
5
|
const transformers = (0, _weapp_tailwindcss_runtime.resolveTransformers)();
|
|
6
6
|
const rpxTransform = (0, _weapp_tailwindcss_runtime.createRpxLengthTransform)();
|
|
7
7
|
/**
|
|
@@ -9,5 +9,4 @@ const rpxTransform = (0, _weapp_tailwindcss_runtime.createRpxLengthTransform)();
|
|
|
9
9
|
* 经 runtime 聚合包装:有界 LRU、rpx 长度归一化、按需 unescape/escape。
|
|
10
10
|
*/
|
|
11
11
|
const cn$1 = (0, _weapp_tailwindcss_runtime.wrapRuntimeAggregator)(cn.twMerge, transformers, rpxTransform.prepareValue, rpxTransform.restoreValue);
|
|
12
|
-
//#endregion
|
|
13
12
|
exports.cn = cn$1;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ClassValue } from "@weapp-tailwindcss/runtime";
|
|
2
|
-
//#region src/index.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* 组合条件类名,并按 Tailwind 冲突规则保留最后一个类名。
|
|
5
4
|
* 经 runtime 聚合包装:有界 LRU、rpx 长度归一化、按需 unescape/escape。
|
|
6
5
|
*/
|
|
7
6
|
export declare const cn: import("@weapp-tailwindcss/runtime").TailwindMergeRuntime;
|
|
8
|
-
//#endregion
|
|
9
7
|
export type { ClassValue };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ClassValue } from "@weapp-tailwindcss/runtime";
|
|
2
|
-
//#region src/index.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* 组合条件类名,并按 Tailwind 冲突规则保留最后一个类名。
|
|
5
4
|
* 经 runtime 聚合包装:有界 LRU、rpx 长度归一化、按需 unescape/escape。
|
|
6
5
|
*/
|
|
7
6
|
export declare const cn: import("@weapp-tailwindcss/runtime").TailwindMergeRuntime;
|
|
8
|
-
//#endregion
|
|
9
7
|
export type { ClassValue };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRpxLengthTransform, resolveTransformers, wrapRuntimeAggregator } from "@weapp-tailwindcss/runtime";
|
|
2
2
|
import { twMerge } from "cn";
|
|
3
|
-
|
|
3
|
+
// src/index.ts
|
|
4
4
|
const transformers = resolveTransformers();
|
|
5
5
|
const rpxTransform = createRpxLengthTransform();
|
|
6
6
|
/**
|
|
@@ -8,5 +8,4 @@ const rpxTransform = createRpxLengthTransform();
|
|
|
8
8
|
* 经 runtime 聚合包装:有界 LRU、rpx 长度归一化、按需 unescape/escape。
|
|
9
9
|
*/
|
|
10
10
|
const cn = wrapRuntimeAggregator(twMerge, transformers, rpxTransform.prepareValue, rpxTransform.restoreValue);
|
|
11
|
-
//#endregion
|
|
12
11
|
export { cn };
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-tailwindcss/cn",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"description": "Cross-platform Tailwind CSS class name utility for mini-programs. 面向小程序的跨端 Tailwind CSS 类名组合工具。",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://tw.weapp.dev/docs/community/merge",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/
|
|
11
|
+
"url": "git+https://github.com/weapp-tailwindcss/weapp-tailwindcss.git",
|
|
12
12
|
"directory": "packages-runtime/cn"
|
|
13
13
|
},
|
|
14
14
|
"bugs": {
|
|
15
|
-
"url": "https://github.com/
|
|
15
|
+
"url": "https://github.com/weapp-tailwindcss/weapp-tailwindcss/issues"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"tailwindcss",
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"dist"
|
|
41
41
|
],
|
|
42
42
|
"engines": {
|
|
43
|
-
"node": "
|
|
43
|
+
"node": ">=22.12.0"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@weapp-tailwindcss/runtime": "0.1.
|
|
50
|
-
"cn": "^0.
|
|
49
|
+
"@weapp-tailwindcss/runtime": "0.1.11",
|
|
50
|
+
"cn": "^0.5.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@weapp-
|
|
53
|
+
"@weapp-tailwindcss/escape": "0.0.2",
|
|
54
54
|
"tsd": "^0.33.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|